blob: a75e72105f20078c59d0b0e56adb70566feacf82 [file] [log] [blame]
Patrick Williams213cb262021-08-07 19:21:33 -05001From fd34d57c9e2a0bff1283a6707062ed4a42476b10 Mon Sep 17 00:00:00 2001
Andrew Geissler82c905d2020-04-13 13:39:40 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 14 Feb 2016 17:04:07 +0000
Andrew Geisslerd1e89492021-02-12 15:35:20 -06004Subject: [PATCH] Use libtool 2.4
Andrew Geissler82c905d2020-04-13 13:39:40 -05005
6get libtool sysroot support
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
Patrick Williams213cb262021-08-07 19:21:33 -050012 bfd/configure | 1340 +++++++++++++++-----
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 bfd/configure.ac | 2 +-
Patrick Williams213cb262021-08-07 19:21:33 -050014 binutils/configure | 1338 +++++++++++++++-----
15 gas/configure | 1338 +++++++++++++++-----
16 gprof/configure | 1338 +++++++++++++++-----
17 ld/configure | 1713 +++++++++++++++++++-------
18 libctf/configure | 1337 +++++++++++++++-----
19 libtool.m4 | 1100 +++++++++++------
Andrew Geissler82c905d2020-04-13 13:39:40 -050020 ltmain.sh | 2925 +++++++++++++++++++++++++++++---------------
21 ltoptions.m4 | 2 +-
22 ltversion.m4 | 12 +-
23 lt~obsolete.m4 | 2 +-
Patrick Williams213cb262021-08-07 19:21:33 -050024 opcodes/configure | 1338 +++++++++++++++-----
25 zlib/configure | 1338 +++++++++++++++-----
26 14 files changed, 10995 insertions(+), 4128 deletions(-)
Andrew Geissler82c905d2020-04-13 13:39:40 -050027
28diff --git a/bfd/configure b/bfd/configure
Patrick Williams213cb262021-08-07 19:21:33 -050029index daa51244369..79d0c4b4623 100755
Andrew Geissler82c905d2020-04-13 13:39:40 -050030--- a/bfd/configure
31+++ b/bfd/configure
Andrew Geisslerd1e89492021-02-12 15:35:20 -060032@@ -705,6 +705,9 @@ OTOOL
Andrew Geissler82c905d2020-04-13 13:39:40 -050033 LIPO
34 NMEDIT
35 DSYMUTIL
36+MANIFEST_TOOL
37+ac_ct_AR
38+DLLTOOL
39 OBJDUMP
40 LN_S
41 NM
Andrew Geisslerd1e89492021-02-12 15:35:20 -060042@@ -823,6 +826,7 @@ enable_static
Andrew Geissler82c905d2020-04-13 13:39:40 -050043 with_pic
44 enable_fast_install
45 with_gnu_ld
46+with_libtool_sysroot
47 enable_libtool_lock
48 enable_plugins
49 enable_largefile
Patrick Williams213cb262021-08-07 19:21:33 -050050@@ -1507,6 +1511,8 @@ Optional Packages:
Andrew Geissler82c905d2020-04-13 13:39:40 -050051 --with-pic try to use only PIC/non-PIC objects [default=use
52 both]
53 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
54+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
55+ (or the compiler's sysroot if not specified).
56 --with-mmap try using mmap for BFD input files if available
57 --with-separate-debug-dir=DIR
58 Look for global separate debug info in DIR
Patrick Williams213cb262021-08-07 19:21:33 -050059@@ -4988,8 +4994,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050060
61
62
63-macro_version='2.2.7a'
64-macro_revision='1.3134'
65+macro_version='2.4'
66+macro_revision='1.3293'
67
68
69
Patrick Williams213cb262021-08-07 19:21:33 -050070@@ -5029,7 +5035,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Andrew Geissler82c905d2020-04-13 13:39:40 -050071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
72 $as_echo_n "checking how to print strings... " >&6; }
73 # Test print first, because it will be a builtin if present.
74-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
75+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
76 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
77 ECHO='print -r --'
78 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Patrick Williams213cb262021-08-07 19:21:33 -050079@@ -5715,8 +5721,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
Andrew Geissler82c905d2020-04-13 13:39:40 -050080 # Try some XSI features
81 xsi_shell=no
82 ( _lt_dummy="a/b/c"
83- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
84- = c,a/b,, \
85+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
86+ = c,a/b,b/c, \
87 && eval 'test $(( 1 + 1 )) -eq 2 \
88 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
89 && xsi_shell=yes
Patrick Williams213cb262021-08-07 19:21:33 -050090@@ -5765,6 +5771,80 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050091
92
93
94+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
95+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
96+if ${lt_cv_to_host_file_cmd+:} false; then :
97+ $as_echo_n "(cached) " >&6
98+else
99+ case $host in
100+ *-*-mingw* )
101+ case $build in
102+ *-*-mingw* ) # actually msys
103+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
104+ ;;
105+ *-*-cygwin* )
106+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
107+ ;;
108+ * ) # otherwise, assume *nix
109+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
110+ ;;
111+ esac
112+ ;;
113+ *-*-cygwin* )
114+ case $build in
115+ *-*-mingw* ) # actually msys
116+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
117+ ;;
118+ *-*-cygwin* )
119+ lt_cv_to_host_file_cmd=func_convert_file_noop
120+ ;;
121+ * ) # otherwise, assume *nix
122+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
123+ ;;
124+ esac
125+ ;;
126+ * ) # unhandled hosts (and "normal" native builds)
127+ lt_cv_to_host_file_cmd=func_convert_file_noop
128+ ;;
129+esac
130+
131+fi
132+
133+to_host_file_cmd=$lt_cv_to_host_file_cmd
134+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
135+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
136+
137+
138+
139+
140+
141+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
142+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
143+if ${lt_cv_to_tool_file_cmd+:} false; then :
144+ $as_echo_n "(cached) " >&6
145+else
146+ #assume ordinary cross tools, or native build.
147+lt_cv_to_tool_file_cmd=func_convert_file_noop
148+case $host in
149+ *-*-mingw* )
150+ case $build in
151+ *-*-mingw* ) # actually msys
152+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
153+ ;;
154+ esac
155+ ;;
156+esac
157+
158+fi
159+
160+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
161+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
162+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
163+
164+
165+
166+
167+
168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
169 $as_echo_n "checking for $LD option to reload object files... " >&6; }
170 if ${lt_cv_ld_reload_flag+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -0500171@@ -5781,6 +5861,11 @@ case $reload_flag in
Andrew Geissler82c905d2020-04-13 13:39:40 -0500172 esac
173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
174 case $host_os in
175+ cygwin* | mingw* | pw32* | cegcc*)
176+ if test "$GCC" != yes; then
177+ reload_cmds=false
178+ fi
179+ ;;
180 darwin*)
181 if test "$GCC" = yes; then
182 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Patrick Williams213cb262021-08-07 19:21:33 -0500183@@ -5949,7 +6034,8 @@ mingw* | pw32*)
Andrew Geissler82c905d2020-04-13 13:39:40 -0500184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
185 lt_cv_file_magic_cmd='func_win32_libid'
186 else
187- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
188+ # Keep this pattern in sync with the one in func_win32_libid.
189+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
190 lt_cv_file_magic_cmd='$OBJDUMP -f'
191 fi
192 ;;
Patrick Williams213cb262021-08-07 19:21:33 -0500193@@ -6103,6 +6189,21 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -0500194 fi
195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
196 $as_echo "$lt_cv_deplibs_check_method" >&6; }
197+
198+file_magic_glob=
199+want_nocaseglob=no
200+if test "$build" = "$host"; then
201+ case $host_os in
202+ mingw* | pw32*)
203+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
204+ want_nocaseglob=yes
205+ else
206+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
207+ fi
208+ ;;
209+ esac
210+fi
211+
212 file_magic_cmd=$lt_cv_file_magic_cmd
213 deplibs_check_method=$lt_cv_deplibs_check_method
214 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -0500215@@ -6118,6 +6219,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler82c905d2020-04-13 13:39:40 -0500216
217
218
219+
220+
221+
222+
223+
224+
225+
226+
227+
228+
Patrick Williams213cb262021-08-07 19:21:33 -0500229+if test -n "$ac_tool_prefix"; then
Andrew Geissler82c905d2020-04-13 13:39:40 -0500230+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
231+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
232+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
233+$as_echo_n "checking for $ac_word... " >&6; }
234+if ${ac_cv_prog_DLLTOOL+:} false; then :
235+ $as_echo_n "(cached) " >&6
236+else
237+ if test -n "$DLLTOOL"; then
238+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
239+else
240+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241+for as_dir in $PATH
242+do
243+ IFS=$as_save_IFS
244+ test -z "$as_dir" && as_dir=.
245+ for ac_exec_ext in '' $ac_executable_extensions; do
246+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
247+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
248+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
249+ break 2
250+ fi
251+done
252+ done
253+IFS=$as_save_IFS
254+
255+fi
256+fi
257+DLLTOOL=$ac_cv_prog_DLLTOOL
258+if test -n "$DLLTOOL"; then
259+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
260+$as_echo "$DLLTOOL" >&6; }
261+else
262+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
263+$as_echo "no" >&6; }
264+fi
265+
266+
267+fi
268+if test -z "$ac_cv_prog_DLLTOOL"; then
269+ ac_ct_DLLTOOL=$DLLTOOL
270+ # Extract the first word of "dlltool", so it can be a program name with args.
271+set dummy dlltool; ac_word=$2
272+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
273+$as_echo_n "checking for $ac_word... " >&6; }
274+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
275+ $as_echo_n "(cached) " >&6
276+else
277+ if test -n "$ac_ct_DLLTOOL"; then
278+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
279+else
280+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
281+for as_dir in $PATH
282+do
283+ IFS=$as_save_IFS
284+ test -z "$as_dir" && as_dir=.
285+ for ac_exec_ext in '' $ac_executable_extensions; do
286+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
287+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
288+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
289+ break 2
290+ fi
291+done
292+ done
293+IFS=$as_save_IFS
294+
295+fi
296+fi
297+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
298+if test -n "$ac_ct_DLLTOOL"; then
299+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
300+$as_echo "$ac_ct_DLLTOOL" >&6; }
301+else
302+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
303+$as_echo "no" >&6; }
304+fi
305+
306+ if test "x$ac_ct_DLLTOOL" = x; then
307+ DLLTOOL="false"
308+ else
309+ case $cross_compiling:$ac_tool_warned in
310+yes:)
311+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
312+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
313+ac_tool_warned=yes ;;
314+esac
315+ DLLTOOL=$ac_ct_DLLTOOL
316+ fi
317+else
318+ DLLTOOL="$ac_cv_prog_DLLTOOL"
319+fi
320+
321+test -z "$DLLTOOL" && DLLTOOL=dlltool
322+
323+
324+
325+
326+
327+
328+
329+
330+
331+
332+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
333+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
334+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
335+ $as_echo_n "(cached) " >&6
336+else
337+ lt_cv_sharedlib_from_linklib_cmd='unknown'
338+
339+case $host_os in
340+cygwin* | mingw* | pw32* | cegcc*)
341+ # two different shell functions defined in ltmain.sh
342+ # decide which to use based on capabilities of $DLLTOOL
343+ case `$DLLTOOL --help 2>&1` in
344+ *--identify-strict*)
345+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
346+ ;;
347+ *)
348+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
349+ ;;
350+ esac
351+ ;;
352+*)
353+ # fallback: assume linklib IS sharedlib
354+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
355+ ;;
356+esac
357+
358+fi
359+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
360+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
361+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
362+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
363+
364+
365+
366+
367+
368+
369+
Patrick Williams213cb262021-08-07 19:21:33 -0500370 plugin_option=
371 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
372 for plugin in $plugin_names; do
373@@ -6132,8 +6384,10 @@ for plugin in $plugin_names; do
374 done
375
376 if test -n "$ac_tool_prefix"; then
377- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
378-set dummy ${ac_tool_prefix}ar; ac_word=$2
Andrew Geissler82c905d2020-04-13 13:39:40 -0500379+ for ac_prog in ar
380+ do
381+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
382+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
384 $as_echo_n "checking for $ac_word... " >&6; }
385 if ${ac_cv_prog_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -0500386@@ -6149,7 +6403,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -0500387 test -z "$as_dir" && as_dir=.
388 for ac_exec_ext in '' $ac_executable_extensions; do
389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
390- ac_cv_prog_AR="${ac_tool_prefix}ar"
391+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
393 break 2
394 fi
Patrick Williams213cb262021-08-07 19:21:33 -0500395@@ -6169,11 +6423,15 @@ $as_echo "no" >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -0500396 fi
397
398
399+ test -n "$AR" && break
400+ done
401 fi
402-if test -z "$ac_cv_prog_AR"; then
403+if test -z "$AR"; then
404 ac_ct_AR=$AR
405- # Extract the first word of "ar", so it can be a program name with args.
406-set dummy ar; ac_word=$2
407+ for ac_prog in ar
408+do
409+ # Extract the first word of "$ac_prog", so it can be a program name with args.
410+set dummy $ac_prog; ac_word=$2
411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
412 $as_echo_n "checking for $ac_word... " >&6; }
413 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -0500414@@ -6189,7 +6447,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -0500415 test -z "$as_dir" && as_dir=.
416 for ac_exec_ext in '' $ac_executable_extensions; do
417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
418- ac_cv_prog_ac_ct_AR="ar"
419+ ac_cv_prog_ac_ct_AR="$ac_prog"
420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
421 break 2
422 fi
Patrick Williams213cb262021-08-07 19:21:33 -0500423@@ -6208,6 +6466,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -0500424 $as_echo "no" >&6; }
425 fi
426
427+
428+ test -n "$ac_ct_AR" && break
429+done
430+
431 if test "x$ac_ct_AR" = x; then
432 AR="false"
433 else
Patrick Williams213cb262021-08-07 19:21:33 -0500434@@ -6219,25 +6481,20 @@ ac_tool_warned=yes ;;
Andrew Geissler82c905d2020-04-13 13:39:40 -0500435 esac
436 AR=$ac_ct_AR
437 fi
438-else
439- AR="$ac_cv_prog_AR"
440 fi
441
442-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -0500443-if test -n "$plugin_option"; then
444- if $AR --help 2>&1 | grep -q "\--plugin"; then
445- touch conftest.c
446- $AR $plugin_option rc conftest.a conftest.c
447- if test "$?" != 0; then
448- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
449+ touch conftest.c
450+ $AR $plugin_option rc conftest.a conftest.c
451+ if test "$?" != 0; then
452+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
453 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
454- else
455- AR="$AR $plugin_option"
456- fi
457- rm -f conftest.*
458+ else
459+ AR="$AR $plugin_option"
460 fi
461-fi
Andrew Geissler82c905d2020-04-13 13:39:40 -0500462-test -z "$AR_FLAGS" && AR_FLAGS=cru
Patrick Williams213cb262021-08-07 19:21:33 -0500463+ rm -f conftest.*
Andrew Geissler82c905d2020-04-13 13:39:40 -0500464+: ${AR=ar}
465+: ${AR_FLAGS=cru}
466+
Patrick Williams213cb262021-08-07 19:21:33 -0500467
468
469
470@@ -6248,6 +6505,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
471
472
473
Andrew Geissler82c905d2020-04-13 13:39:40 -0500474+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
475+$as_echo_n "checking for archiver @FILE support... " >&6; }
476+if ${lt_cv_ar_at_file+:} false; then :
477+ $as_echo_n "(cached) " >&6
478+else
479+ lt_cv_ar_at_file=no
480+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
481+/* end confdefs.h. */
482+
483+int
484+main ()
485+{
Patrick Williams213cb262021-08-07 19:21:33 -0500486+
Andrew Geissler82c905d2020-04-13 13:39:40 -0500487+ ;
488+ return 0;
489+}
490+_ACEOF
491+if ac_fn_c_try_compile "$LINENO"; then :
492+ echo conftest.$ac_objext > conftest.lst
493+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
494+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
495+ (eval $lt_ar_try) 2>&5
496+ ac_status=$?
497+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
498+ test $ac_status = 0; }
499+ if test "$ac_status" -eq 0; then
500+ # Ensure the archiver fails upon bogus file names.
501+ rm -f conftest.$ac_objext libconftest.a
502+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
503+ (eval $lt_ar_try) 2>&5
504+ ac_status=$?
505+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
506+ test $ac_status = 0; }
507+ if test "$ac_status" -ne 0; then
508+ lt_cv_ar_at_file=@
509+ fi
510+ fi
511+ rm -f conftest.* libconftest.a
Patrick Williams213cb262021-08-07 19:21:33 -0500512+
Andrew Geissler82c905d2020-04-13 13:39:40 -0500513+fi
514+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -0500515+
Andrew Geissler82c905d2020-04-13 13:39:40 -0500516+fi
517+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
518+$as_echo "$lt_cv_ar_at_file" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -0500519+
Andrew Geissler82c905d2020-04-13 13:39:40 -0500520+if test "x$lt_cv_ar_at_file" = xno; then
521+ archiver_list_spec=
522+else
523+ archiver_list_spec=$lt_cv_ar_at_file
524+fi
Patrick Williams213cb262021-08-07 19:21:33 -0500525+
526+
527+
528+
529+
530+
Andrew Geissler82c905d2020-04-13 13:39:40 -0500531
Patrick Williams213cb262021-08-07 19:21:33 -0500532 if test -n "$ac_tool_prefix"; then
533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
534@@ -6588,8 +6902,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -0500535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
536
537 # Transform an extracted symbol line into symbol name and symbol address
538-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
539-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
540+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
541+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
542
543 # Handle CRLF in mingw tool chain
544 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -0500545@@ -6625,6 +6939,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler82c905d2020-04-13 13:39:40 -0500546 else
547 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
548 fi
549+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
550
551 # Check to see that the pipe works correctly.
552 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -0500553@@ -6666,6 +6981,18 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500554 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
555 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
556 cat <<_LT_EOF > conftest.$ac_ext
557+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
558+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
559+/* DATA imports from DLLs on WIN32 con't be const, because runtime
560+ relocations are performed -- see ld's documentation on pseudo-relocs. */
561+# define LT_DLSYM_CONST
562+#elif defined(__osf__)
563+/* This system does not cope well with relocations in const data. */
564+# define LT_DLSYM_CONST
565+#else
566+# define LT_DLSYM_CONST const
567+#endif
568+
569 #ifdef __cplusplus
570 extern "C" {
571 #endif
Patrick Williams213cb262021-08-07 19:21:33 -0500572@@ -6677,7 +7004,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500573 cat <<_LT_EOF >> conftest.$ac_ext
574
575 /* The mapping between symbol names and symbols. */
576-const struct {
577+LT_DLSYM_CONST struct {
578 const char *name;
579 void *address;
580 }
Patrick Williams213cb262021-08-07 19:21:33 -0500581@@ -6703,8 +7030,8 @@ static const void *lt_preloaded_setup() {
Andrew Geissler82c905d2020-04-13 13:39:40 -0500582 _LT_EOF
583 # Now try linking the two files.
584 mv conftest.$ac_objext conftstm.$ac_objext
585- lt_save_LIBS="$LIBS"
586- lt_save_CFLAGS="$CFLAGS"
587+ lt_globsym_save_LIBS=$LIBS
588+ lt_globsym_save_CFLAGS=$CFLAGS
589 LIBS="conftstm.$ac_objext"
590 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Patrick Williams213cb262021-08-07 19:21:33 -0500592@@ -6714,8 +7041,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500593 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
594 pipe_works=yes
595 fi
596- LIBS="$lt_save_LIBS"
597- CFLAGS="$lt_save_CFLAGS"
598+ LIBS=$lt_globsym_save_LIBS
599+ CFLAGS=$lt_globsym_save_CFLAGS
600 else
601 echo "cannot find nm_test_func in $nlist" >&5
602 fi
Patrick Williams213cb262021-08-07 19:21:33 -0500603@@ -6752,6 +7079,14 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -0500604 $as_echo "ok" >&6; }
605 fi
606
607+# Response file support.
608+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
609+ nm_file_list_spec='@'
610+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
611+ nm_file_list_spec='@'
612+fi
613+
614+
Andrew Geissler82c905d2020-04-13 13:39:40 -0500615
616
617
Patrick Williams213cb262021-08-07 19:21:33 -0500618@@ -6770,6 +7105,47 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -0500619
620
621
622+
623+
624+
625+
626+
627+
628+
629+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
630+$as_echo_n "checking for sysroot... " >&6; }
631+
632+# Check whether --with-libtool-sysroot was given.
633+if test "${with_libtool_sysroot+set}" = set; then :
634+ withval=$with_libtool_sysroot;
635+else
636+ with_libtool_sysroot=no
637+fi
638+
639+
640+lt_sysroot=
641+case ${with_libtool_sysroot} in #(
642+ yes)
643+ if test "$GCC" = yes; then
644+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
645+ fi
646+ ;; #(
647+ /*)
648+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
649+ ;; #(
650+ no|'')
651+ ;; #(
652+ *)
653+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
654+$as_echo "${with_libtool_sysroot}" >&6; }
655+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
656+ ;;
657+esac
658+
659+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
660+$as_echo "${lt_sysroot:-no}" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -0500661+
662+
Andrew Geissler82c905d2020-04-13 13:39:40 -0500663
664
665
Patrick Williams213cb262021-08-07 19:21:33 -0500666@@ -6979,6 +7355,123 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -0500667
668 need_locks="$enable_libtool_lock"
669
670+if test -n "$ac_tool_prefix"; then
671+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
672+set dummy ${ac_tool_prefix}mt; ac_word=$2
673+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
674+$as_echo_n "checking for $ac_word... " >&6; }
675+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
676+ $as_echo_n "(cached) " >&6
677+else
678+ if test -n "$MANIFEST_TOOL"; then
679+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
680+else
681+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
682+for as_dir in $PATH
683+do
684+ IFS=$as_save_IFS
685+ test -z "$as_dir" && as_dir=.
686+ for ac_exec_ext in '' $ac_executable_extensions; do
687+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
688+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
689+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
690+ break 2
691+ fi
692+done
693+ done
694+IFS=$as_save_IFS
695+
696+fi
697+fi
698+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
699+if test -n "$MANIFEST_TOOL"; then
700+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
701+$as_echo "$MANIFEST_TOOL" >&6; }
702+else
703+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
704+$as_echo "no" >&6; }
705+fi
706+
707+
708+fi
709+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
710+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
711+ # Extract the first word of "mt", so it can be a program name with args.
712+set dummy mt; ac_word=$2
713+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
714+$as_echo_n "checking for $ac_word... " >&6; }
715+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
716+ $as_echo_n "(cached) " >&6
717+else
718+ if test -n "$ac_ct_MANIFEST_TOOL"; then
719+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
720+else
721+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
722+for as_dir in $PATH
723+do
724+ IFS=$as_save_IFS
725+ test -z "$as_dir" && as_dir=.
726+ for ac_exec_ext in '' $ac_executable_extensions; do
727+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
728+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
729+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
730+ break 2
731+ fi
732+done
733+ done
734+IFS=$as_save_IFS
735+
736+fi
737+fi
738+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
739+if test -n "$ac_ct_MANIFEST_TOOL"; then
740+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
741+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
742+else
743+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
744+$as_echo "no" >&6; }
745+fi
746+
747+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
748+ MANIFEST_TOOL=":"
749+ else
750+ case $cross_compiling:$ac_tool_warned in
751+yes:)
752+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
753+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
754+ac_tool_warned=yes ;;
755+esac
756+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
757+ fi
758+else
759+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
760+fi
761+
762+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
763+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
764+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
765+if ${lt_cv_path_mainfest_tool+:} false; then :
766+ $as_echo_n "(cached) " >&6
767+else
768+ lt_cv_path_mainfest_tool=no
769+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
770+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
771+ cat conftest.err >&5
772+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
773+ lt_cv_path_mainfest_tool=yes
774+ fi
775+ rm -f conftest*
776+fi
777+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
778+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
779+if test "x$lt_cv_path_mainfest_tool" != xyes; then
780+ MANIFEST_TOOL=:
781+fi
782+
783+
784+
785+
786+
787
788 case $host_os in
789 rhapsody* | darwin*)
Patrick Williams213cb262021-08-07 19:21:33 -0500790@@ -7542,6 +8035,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500791 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
792 echo "$AR cru libconftest.a conftest.o" >&5
793 $AR cru libconftest.a conftest.o 2>&5
794+ echo "$RANLIB libconftest.a" >&5
795+ $RANLIB libconftest.a 2>&5
796 cat > conftest.c << _LT_EOF
797 int main() { return 0;}
798 _LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -0500799@@ -7706,7 +8201,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -0500800 LIBTOOL_DEPS="$ltmain"
801
802 # Always use our own libtool.
803-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
804+LIBTOOL='$(SHELL) $(top_builddir)'
805+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
806
807
808
Patrick Williams213cb262021-08-07 19:21:33 -0500809@@ -7795,7 +8291,7 @@ aix3*)
Andrew Geissler82c905d2020-04-13 13:39:40 -0500810 esac
811
812 # Global variables:
813-ofile=libtool
814+ofile=${host_alias}-libtool
815 can_build_shared=yes
816
817 # All known linkers require a `.a' archive for static linking (except MSVC,
Patrick Williams213cb262021-08-07 19:21:33 -0500818@@ -8093,8 +8589,6 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -0500819 lt_prog_compiler_pic=
820 lt_prog_compiler_static=
821
822-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
823-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
824
825 if test "$GCC" = yes; then
826 lt_prog_compiler_wl='-Wl,'
Patrick Williams213cb262021-08-07 19:21:33 -0500827@@ -8260,6 +8754,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -0500828 lt_prog_compiler_pic='--shared'
829 lt_prog_compiler_static='--static'
830 ;;
831+ nagfor*)
832+ # NAG Fortran compiler
833+ lt_prog_compiler_wl='-Wl,-Wl,,'
834+ lt_prog_compiler_pic='-PIC'
835+ lt_prog_compiler_static='-Bstatic'
836+ ;;
837 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
838 # Portland Group compilers (*not* the Pentium gcc compiler,
839 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -0500840@@ -8322,7 +8822,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -0500841 lt_prog_compiler_pic='-KPIC'
842 lt_prog_compiler_static='-Bstatic'
843 case $cc_basename in
844- f77* | f90* | f95*)
845+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
846 lt_prog_compiler_wl='-Qoption ld ';;
847 *)
848 lt_prog_compiler_wl='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -0500849@@ -8379,13 +8879,17 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -0500850 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
851 ;;
852 esac
853-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
854-$as_echo "$lt_prog_compiler_pic" >&6; }
855-
856-
857-
858-
859
860+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
861+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
862+if ${lt_cv_prog_compiler_pic+:} false; then :
863+ $as_echo_n "(cached) " >&6
864+else
865+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
866+fi
867+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
868+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
869+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
870
871 #
872 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -0500873@@ -8446,6 +8950,11 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -0500874
875
876
877+
878+
879+
880+
881+
882 #
883 # Check to make sure the static flag actually works.
884 #
Patrick Williams213cb262021-08-07 19:21:33 -0500885@@ -8796,7 +9305,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500886 allow_undefined_flag=unsupported
887 always_export_symbols=no
888 enable_shared_with_static_runtimes=yes
889- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
890+ 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'
891+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
892
893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Patrick Williams213cb262021-08-07 19:21:33 -0500895@@ -8895,12 +9405,12 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500896 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
897 hardcode_libdir_flag_spec=
898 hardcode_libdir_flag_spec_ld='-rpath $libdir'
899- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
900+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
901 if test "x$supports_anon_versioning" = xyes; then
902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
904 echo "local: *; };" >> $output_objdir/$libname.ver~
905- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
906+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
907 fi
908 ;;
909 esac
Patrick Williams213cb262021-08-07 19:21:33 -0500910@@ -8914,8 +9424,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
912 wlarc=
913 else
914- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
915- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
916+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
917+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
918 fi
919 ;;
920
Patrick Williams213cb262021-08-07 19:21:33 -0500921@@ -8933,8 +9443,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500922
923 _LT_EOF
924 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
925- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
926- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
927+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
928+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
929 else
930 ld_shlibs=no
931 fi
Patrick Williams213cb262021-08-07 19:21:33 -0500932@@ -8980,8 +9490,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500933
934 *)
935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
936- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
937- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
938+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
939+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
940 else
941 ld_shlibs=no
942 fi
Patrick Williams213cb262021-08-07 19:21:33 -0500943@@ -9111,7 +9621,13 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -0500944 allow_undefined_flag='-berok'
945 # Determine the default libpath from the value encoded in an
946 # empty executable.
947- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
948+ if test "${lt_cv_aix_libpath+set}" = set; then
949+ aix_libpath=$lt_cv_aix_libpath
950+else
951+ if ${lt_cv_aix_libpath_+:} false; then :
952+ $as_echo_n "(cached) " >&6
953+else
954+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
955 /* end confdefs.h. */
956
957 int
Patrick Williams213cb262021-08-07 19:21:33 -0500958@@ -9124,22 +9640,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -0500959 _ACEOF
960 if ac_fn_c_try_link "$LINENO"; then :
961
962-lt_aix_libpath_sed='
963- /Import File Strings/,/^$/ {
964- /^0/ {
965- s/^0 *\(.*\)$/\1/
966- p
967- }
968- }'
969-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
970-# Check for a 64-bit object if we didn't find anything.
971-if test -z "$aix_libpath"; then
972- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
973-fi
974+ lt_aix_libpath_sed='
975+ /Import File Strings/,/^$/ {
976+ /^0/ {
977+ s/^0 *\([^ ]*\) *$/\1/
978+ p
979+ }
980+ }'
981+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
982+ # Check for a 64-bit object if we didn't find anything.
983+ if test -z "$lt_cv_aix_libpath_"; then
984+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
985+ fi
986 fi
987 rm -f core conftest.err conftest.$ac_objext \
988 conftest$ac_exeext conftest.$ac_ext
989-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
990+ if test -z "$lt_cv_aix_libpath_"; then
991+ lt_cv_aix_libpath_="/usr/lib:/lib"
992+ fi
993+
994+fi
995+
996+ aix_libpath=$lt_cv_aix_libpath_
997+fi
998
999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1000 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"
Patrick Williams213cb262021-08-07 19:21:33 -05001001@@ -9151,7 +9674,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001002 else
1003 # Determine the default libpath from the value encoded in an
1004 # empty executable.
1005- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1006+ if test "${lt_cv_aix_libpath+set}" = set; then
1007+ aix_libpath=$lt_cv_aix_libpath
1008+else
1009+ if ${lt_cv_aix_libpath_+:} false; then :
1010+ $as_echo_n "(cached) " >&6
1011+else
1012+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1013 /* end confdefs.h. */
1014
1015 int
Patrick Williams213cb262021-08-07 19:21:33 -05001016@@ -9164,22 +9693,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05001017 _ACEOF
1018 if ac_fn_c_try_link "$LINENO"; then :
1019
1020-lt_aix_libpath_sed='
1021- /Import File Strings/,/^$/ {
1022- /^0/ {
1023- s/^0 *\(.*\)$/\1/
1024- p
1025- }
1026- }'
1027-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1028-# Check for a 64-bit object if we didn't find anything.
1029-if test -z "$aix_libpath"; then
1030- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1031-fi
1032+ lt_aix_libpath_sed='
1033+ /Import File Strings/,/^$/ {
1034+ /^0/ {
1035+ s/^0 *\([^ ]*\) *$/\1/
1036+ p
1037+ }
1038+ }'
1039+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1040+ # Check for a 64-bit object if we didn't find anything.
1041+ if test -z "$lt_cv_aix_libpath_"; then
1042+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1043+ fi
1044 fi
1045 rm -f core conftest.err conftest.$ac_objext \
1046 conftest$ac_exeext conftest.$ac_ext
1047-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1048+ if test -z "$lt_cv_aix_libpath_"; then
1049+ lt_cv_aix_libpath_="/usr/lib:/lib"
1050+ fi
1051+
1052+fi
1053+
1054+ aix_libpath=$lt_cv_aix_libpath_
1055+fi
1056
1057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1058 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -05001059@@ -9224,20 +9760,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001060 # Microsoft Visual C++.
1061 # hardcode_libdir_flag_spec is actually meaningless, as there is
1062 # no search path for DLLs.
1063- hardcode_libdir_flag_spec=' '
1064- allow_undefined_flag=unsupported
1065- # Tell ltmain to make .lib files, not .a files.
1066- libext=lib
1067- # Tell ltmain to make .dll files, not .so files.
1068- shrext_cmds=".dll"
1069- # FIXME: Setting linknames here is a bad hack.
1070- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1071- # The linker will automatically build a .lib file if we build a DLL.
1072- old_archive_from_new_cmds='true'
1073- # FIXME: Should let the user specify the lib program.
1074- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1075- fix_srcfile_path='`cygpath -w "$srcfile"`'
1076- enable_shared_with_static_runtimes=yes
1077+ case $cc_basename in
1078+ cl*)
1079+ # Native MSVC
1080+ hardcode_libdir_flag_spec=' '
1081+ allow_undefined_flag=unsupported
1082+ always_export_symbols=yes
1083+ file_list_spec='@'
1084+ # Tell ltmain to make .lib files, not .a files.
1085+ libext=lib
1086+ # Tell ltmain to make .dll files, not .so files.
1087+ shrext_cmds=".dll"
1088+ # FIXME: Setting linknames here is a bad hack.
1089+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
1090+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1091+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
1092+ else
1093+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
1094+ fi~
1095+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
1096+ linknames='
1097+ # The linker will not automatically build a static lib if we build a DLL.
1098+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
1099+ enable_shared_with_static_runtimes=yes
1100+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1101+ # Don't use ranlib
1102+ old_postinstall_cmds='chmod 644 $oldlib'
1103+ postlink_cmds='lt_outputfile="@OUTPUT@"~
1104+ lt_tool_outputfile="@TOOL_OUTPUT@"~
1105+ case $lt_outputfile in
1106+ *.exe|*.EXE) ;;
1107+ *)
1108+ lt_outputfile="$lt_outputfile.exe"
1109+ lt_tool_outputfile="$lt_tool_outputfile.exe"
1110+ ;;
1111+ esac~
1112+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
1113+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
1114+ $RM "$lt_outputfile.manifest";
1115+ fi'
1116+ ;;
1117+ *)
1118+ # Assume MSVC wrapper
1119+ hardcode_libdir_flag_spec=' '
1120+ allow_undefined_flag=unsupported
1121+ # Tell ltmain to make .lib files, not .a files.
1122+ libext=lib
1123+ # Tell ltmain to make .dll files, not .so files.
1124+ shrext_cmds=".dll"
1125+ # FIXME: Setting linknames here is a bad hack.
1126+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1127+ # The linker will automatically build a .lib file if we build a DLL.
1128+ old_archive_from_new_cmds='true'
1129+ # FIXME: Should let the user specify the lib program.
1130+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1131+ enable_shared_with_static_runtimes=yes
1132+ ;;
1133+ esac
1134 ;;
1135
1136 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -05001137@@ -9298,7 +9877,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001138
1139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1140 freebsd* | dragonfly*)
1141- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1142+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1143 hardcode_libdir_flag_spec='-R$libdir'
1144 hardcode_direct=yes
1145 hardcode_shlibpath_var=no
Patrick Williams213cb262021-08-07 19:21:33 -05001146@@ -9306,7 +9885,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001147
1148 hpux9*)
1149 if test "$GCC" = yes; then
1150- 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'
1151+ 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'
1152 else
1153 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'
1154 fi
Patrick Williams213cb262021-08-07 19:21:33 -05001155@@ -9322,7 +9901,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001156
1157 hpux10*)
1158 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1159- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1160+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1161 else
1162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1163 fi
Patrick Williams213cb262021-08-07 19:21:33 -05001164@@ -9346,10 +9925,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001165 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1166 ;;
1167 ia64*)
1168- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1169+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1170 ;;
1171 *)
1172- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1173+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1174 ;;
1175 esac
1176 else
Patrick Williams213cb262021-08-07 19:21:33 -05001177@@ -9428,23 +10007,36 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001178
1179 irix5* | irix6* | nonstopux*)
1180 if test "$GCC" = yes; then
1181- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1182+ 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'
1183 # Try to use the -exported_symbol ld option, if it does not
1184 # work, assume that -exports_file does not work either and
1185 # implicitly export all symbols.
1186- save_LDFLAGS="$LDFLAGS"
1187- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1188- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1189+ # This should be the same for all languages, so no per-tag cache variable.
1190+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
1191+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
1192+if ${lt_cv_irix_exported_symbol+:} false; then :
1193+ $as_echo_n "(cached) " >&6
1194+else
1195+ save_LDFLAGS="$LDFLAGS"
1196+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1197+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1198 /* end confdefs.h. */
1199-int foo(void) {}
1200+int foo (void) { return 0; }
1201 _ACEOF
1202 if ac_fn_c_try_link "$LINENO"; then :
1203- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1204-
1205+ lt_cv_irix_exported_symbol=yes
1206+else
1207+ lt_cv_irix_exported_symbol=no
1208 fi
1209 rm -f core conftest.err conftest.$ac_objext \
1210 conftest$ac_exeext conftest.$ac_ext
1211- LDFLAGS="$save_LDFLAGS"
1212+ LDFLAGS="$save_LDFLAGS"
1213+fi
1214+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
1215+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
1216+ if test "$lt_cv_irix_exported_symbol" = yes; then
1217+ 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'
1218+ fi
1219 else
1220 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'
1221 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'
Patrick Williams213cb262021-08-07 19:21:33 -05001222@@ -9529,7 +10121,7 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05001223 osf4* | osf5*) # as osf3* with the addition of -msym flag
1224 if test "$GCC" = yes; then
1225 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1226- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1227+ 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'
1228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1229 else
1230 allow_undefined_flag=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -05001231@@ -9548,9 +10140,9 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05001232 no_undefined_flag=' -z defs'
1233 if test "$GCC" = yes; then
1234 wlarc='${wl}'
1235- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1236+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1238- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1239+ $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'
1240 else
1241 case `$CC -V 2>&1` in
1242 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -05001243@@ -10126,8 +10718,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05001244 need_version=no
1245 need_lib_prefix=no
1246
1247- case $GCC,$host_os in
1248- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1249+ case $GCC,$cc_basename in
1250+ yes,*)
1251+ # gcc
1252 library_names_spec='$libname.dll.a'
1253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1254 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -05001255@@ -10160,13 +10753,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05001256 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1257 ;;
1258 esac
1259+ dynamic_linker='Win32 ld.exe'
1260+ ;;
1261+
1262+ *,cl*)
1263+ # Native MSVC
1264+ libname_spec='$name'
1265+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1266+ library_names_spec='${libname}.dll.lib'
1267+
1268+ case $build_os in
1269+ mingw*)
1270+ sys_lib_search_path_spec=
1271+ lt_save_ifs=$IFS
1272+ IFS=';'
1273+ for lt_path in $LIB
1274+ do
1275+ IFS=$lt_save_ifs
1276+ # Let DOS variable expansion print the short 8.3 style file name.
1277+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
1278+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
1279+ done
1280+ IFS=$lt_save_ifs
1281+ # Convert to MSYS style.
1282+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1283+ ;;
1284+ cygwin*)
1285+ # Convert to unix form, then to dos form, then back to unix form
1286+ # but this time dos style (no spaces!) so that the unix form looks
1287+ # like /cygdrive/c/PROGRA~1:/cygdr...
1288+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
1289+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
1290+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1291+ ;;
1292+ *)
1293+ sys_lib_search_path_spec="$LIB"
1294+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1295+ # It is most probably a Windows format PATH.
1296+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1297+ else
1298+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1299+ fi
1300+ # FIXME: find the short name or the path components, as spaces are
1301+ # common. (e.g. "Program Files" -> "PROGRA~1")
1302+ ;;
1303+ esac
1304+
1305+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
1306+ postinstall_cmds='base_file=`basename \${file}`~
1307+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1308+ dldir=$destdir/`dirname \$dlpath`~
1309+ test -d \$dldir || mkdir -p \$dldir~
1310+ $install_prog $dir/$dlname \$dldir/$dlname'
1311+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1312+ dlpath=$dir/\$dldll~
1313+ $RM \$dlpath'
1314+ shlibpath_overrides_runpath=yes
1315+ dynamic_linker='Win32 link.exe'
1316 ;;
1317
1318 *)
1319+ # Assume MSVC wrapper
1320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1321+ dynamic_linker='Win32 ld.exe'
1322 ;;
1323 esac
1324- dynamic_linker='Win32 ld.exe'
1325 # FIXME: first we should search . and the directory the executable is in
1326 shlibpath_var=PATH
1327 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05001328@@ -10248,7 +10899,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05001329 soname_spec='${libname}${release}${shared_ext}$major'
1330 shlibpath_var=LIBRARY_PATH
1331 shlibpath_overrides_runpath=yes
1332- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
1333+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1334 hardcode_into_libs=yes
1335 ;;
1336
Patrick Williams213cb262021-08-07 19:21:33 -05001337@@ -11044,7 +11695,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05001338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1339 lt_status=$lt_dlunknown
1340 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05001341-#line 11047 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05001342+#line $LINENO "configure"
1343 #include "confdefs.h"
1344
1345 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05001346@@ -11088,10 +11739,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05001347 /* When -fvisbility=hidden is used, assume the code has been annotated
1348 correspondingly for the symbols needed. */
1349 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1350-void fnord () __attribute__((visibility("default")));
1351+int fnord () __attribute__((visibility("default")));
1352 #endif
1353
1354-void fnord () { int i=42; }
1355+int fnord () { return 42; }
1356 int main ()
1357 {
1358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05001359@@ -11150,7 +11801,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05001360 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1361 lt_status=$lt_dlunknown
1362 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05001363-#line 11153 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05001364+#line $LINENO "configure"
1365 #include "confdefs.h"
1366
1367 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05001368@@ -11194,10 +11845,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05001369 /* When -fvisbility=hidden is used, assume the code has been annotated
1370 correspondingly for the symbols needed. */
1371 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1372-void fnord () __attribute__((visibility("default")));
1373+int fnord () __attribute__((visibility("default")));
1374 #endif
1375
1376-void fnord () { int i=42; }
1377+int fnord () { return 42; }
1378 int main ()
1379 {
1380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05001381@@ -13114,7 +13765,7 @@ SHARED_LDFLAGS=
Andrew Geissler82c905d2020-04-13 13:39:40 -05001382 if test "$enable_shared" = "yes"; then
1383 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
1384 if test -n "$x"; then
1385- SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
1386+ SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a"
1387 fi
Patrick Williams213cb262021-08-07 19:21:33 -05001388 fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001389
Patrick Williams213cb262021-08-07 19:21:33 -05001390@@ -15762,13 +16413,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Andrew Geissler82c905d2020-04-13 13:39:40 -05001391 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1392 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1393 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
1394+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
1395+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1396 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1397 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1398 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1399 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1400 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1401+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
1402+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
1403+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
1404+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1405 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1406 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1407+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1408 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1409 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1410 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05001411@@ -15783,14 +16441,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
Andrew Geissler82c905d2020-04-13 13:39:40 -05001412 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1413 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1414 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"`'
1415+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1416+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1417 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1418 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1419 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1420-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1421 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1422+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1423 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1424 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1425 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
1426+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
1427 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1428 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1429 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05001430@@ -15823,12 +16484,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
Andrew Geissler82c905d2020-04-13 13:39:40 -05001431 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1432 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1433 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
1434-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
1435 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1436 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1437 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1438 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1439 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
1440+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
1441 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1442 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1443 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05001444@@ -15883,8 +16544,13 @@ reload_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05001445 OBJDUMP \
1446 deplibs_check_method \
1447 file_magic_cmd \
1448+file_magic_glob \
1449+want_nocaseglob \
1450+DLLTOOL \
1451+sharedlib_from_linklib_cmd \
1452 AR \
1453 AR_FLAGS \
1454+archiver_list_spec \
1455 STRIP \
1456 RANLIB \
1457 CC \
Patrick Williams213cb262021-08-07 19:21:33 -05001458@@ -15894,12 +16560,14 @@ lt_cv_sys_global_symbol_pipe \
Andrew Geissler82c905d2020-04-13 13:39:40 -05001459 lt_cv_sys_global_symbol_to_cdecl \
1460 lt_cv_sys_global_symbol_to_c_name_address \
1461 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1462+nm_file_list_spec \
1463 lt_prog_compiler_no_builtin_flag \
1464-lt_prog_compiler_wl \
1465 lt_prog_compiler_pic \
1466+lt_prog_compiler_wl \
1467 lt_prog_compiler_static \
1468 lt_cv_prog_compiler_c_o \
1469 need_locks \
1470+MANIFEST_TOOL \
1471 DSYMUTIL \
1472 NMEDIT \
1473 LIPO \
Patrick Williams213cb262021-08-07 19:21:33 -05001474@@ -15915,7 +16583,6 @@ no_undefined_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05001475 hardcode_libdir_flag_spec \
1476 hardcode_libdir_flag_spec_ld \
1477 hardcode_libdir_separator \
1478-fix_srcfile_path \
1479 exclude_expsyms \
1480 include_expsyms \
1481 file_list_spec \
Patrick Williams213cb262021-08-07 19:21:33 -05001482@@ -15951,6 +16618,7 @@ module_cmds \
Andrew Geissler82c905d2020-04-13 13:39:40 -05001483 module_expsym_cmds \
1484 export_symbols_cmds \
1485 prelink_cmds \
1486+postlink_cmds \
1487 postinstall_cmds \
1488 postuninstall_cmds \
1489 finish_cmds \
Patrick Williams213cb262021-08-07 19:21:33 -05001490@@ -16720,7 +17388,8 @@ $as_echo X"$file" |
Andrew Geissler82c905d2020-04-13 13:39:40 -05001491 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1492 #
1493 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1494-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1495+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1496+# Inc.
1497 # Written by Gordon Matzigkeit, 1996
1498 #
1499 # This file is part of GNU Libtool.
Patrick Williams213cb262021-08-07 19:21:33 -05001500@@ -16823,19 +17492,42 @@ SP2NL=$lt_lt_SP2NL
Andrew Geissler82c905d2020-04-13 13:39:40 -05001501 # turn newlines into spaces.
1502 NL2SP=$lt_lt_NL2SP
1503
1504+# convert \$build file names to \$host format.
1505+to_host_file_cmd=$lt_cv_to_host_file_cmd
1506+
1507+# convert \$build files to toolchain format.
1508+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1509+
1510 # An object symbol dumper.
1511 OBJDUMP=$lt_OBJDUMP
1512
1513 # Method to check whether dependent libraries are shared objects.
1514 deplibs_check_method=$lt_deplibs_check_method
1515
1516-# Command to use when deplibs_check_method == "file_magic".
1517+# Command to use when deplibs_check_method = "file_magic".
1518 file_magic_cmd=$lt_file_magic_cmd
1519
1520+# How to find potential files when deplibs_check_method = "file_magic".
1521+file_magic_glob=$lt_file_magic_glob
1522+
1523+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
1524+want_nocaseglob=$lt_want_nocaseglob
1525+
1526+# DLL creation program.
1527+DLLTOOL=$lt_DLLTOOL
1528+
1529+# Command to associate shared and link libraries.
1530+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1531+
1532 # The archiver.
1533 AR=$lt_AR
1534+
1535+# Flags to create an archive.
1536 AR_FLAGS=$lt_AR_FLAGS
1537
1538+# How to feed a file listing to the archiver.
1539+archiver_list_spec=$lt_archiver_list_spec
1540+
1541 # A symbol stripping program.
1542 STRIP=$lt_STRIP
1543
Patrick Williams213cb262021-08-07 19:21:33 -05001544@@ -16865,6 +17557,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Andrew Geissler82c905d2020-04-13 13:39:40 -05001545 # Transform the output of nm in a C name address pair when lib prefix is needed.
1546 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1547
1548+# Specify filename containing input files for \$NM.
1549+nm_file_list_spec=$lt_nm_file_list_spec
1550+
1551+# The root where to search for dependent libraries,and in which our libraries should be installed.
1552+lt_sysroot=$lt_sysroot
1553+
1554 # The name of the directory that contains temporary libtool files.
1555 objdir=$objdir
1556
Patrick Williams213cb262021-08-07 19:21:33 -05001557@@ -16874,6 +17572,9 @@ MAGIC_CMD=$MAGIC_CMD
Andrew Geissler82c905d2020-04-13 13:39:40 -05001558 # Must we lock files when doing compilation?
1559 need_locks=$lt_need_locks
1560
1561+# Manifest tool.
1562+MANIFEST_TOOL=$lt_MANIFEST_TOOL
1563+
1564 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1565 DSYMUTIL=$lt_DSYMUTIL
1566
Patrick Williams213cb262021-08-07 19:21:33 -05001567@@ -16988,12 +17689,12 @@ with_gcc=$GCC
Andrew Geissler82c905d2020-04-13 13:39:40 -05001568 # Compiler flag to turn off builtin functions.
1569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1570
1571-# How to pass a linker flag through the compiler.
1572-wl=$lt_lt_prog_compiler_wl
1573-
1574 # Additional compiler flags for building library objects.
1575 pic_flag=$lt_lt_prog_compiler_pic
1576
1577+# How to pass a linker flag through the compiler.
1578+wl=$lt_lt_prog_compiler_wl
1579+
1580 # Compiler flag to prevent dynamic linking.
1581 link_static_flag=$lt_lt_prog_compiler_static
1582
Patrick Williams213cb262021-08-07 19:21:33 -05001583@@ -17080,9 +17781,6 @@ inherit_rpath=$inherit_rpath
Andrew Geissler82c905d2020-04-13 13:39:40 -05001584 # Whether libtool must link a program against all its dependency libraries.
1585 link_all_deplibs=$link_all_deplibs
1586
1587-# Fix the shell variable \$srcfile for the compiler.
1588-fix_srcfile_path=$lt_fix_srcfile_path
1589-
1590 # Set to "yes" if exported symbols are required.
1591 always_export_symbols=$always_export_symbols
1592
Patrick Williams213cb262021-08-07 19:21:33 -05001593@@ -17098,6 +17796,9 @@ include_expsyms=$lt_include_expsyms
Andrew Geissler82c905d2020-04-13 13:39:40 -05001594 # Commands necessary for linking programs (against libraries) with templates.
1595 prelink_cmds=$lt_prelink_cmds
1596
1597+# Commands necessary for finishing linking programs.
1598+postlink_cmds=$lt_postlink_cmds
1599+
1600 # Specify filename containing input files.
1601 file_list_spec=$lt_file_list_spec
1602
Patrick Williams213cb262021-08-07 19:21:33 -05001603@@ -17130,210 +17831,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -05001604 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1605 # text mode, it properly converts lines to CR/LF. This bash problem
1606 # is reportedly fixed, but why not run on old versions too?
1607- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1608- || (rm -f "$cfgfile"; exit 1)
1609-
1610- case $xsi_shell in
1611- yes)
1612- cat << \_LT_EOF >> "$cfgfile"
1613-
1614-# func_dirname file append nondir_replacement
1615-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
1616-# otherwise set result to NONDIR_REPLACEMENT.
1617-func_dirname ()
1618-{
1619- case ${1} in
1620- */*) func_dirname_result="${1%/*}${2}" ;;
1621- * ) func_dirname_result="${3}" ;;
1622- esac
1623-}
1624-
1625-# func_basename file
1626-func_basename ()
1627-{
1628- func_basename_result="${1##*/}"
1629-}
1630-
1631-# func_dirname_and_basename file append nondir_replacement
1632-# perform func_basename and func_dirname in a single function
1633-# call:
1634-# dirname: Compute the dirname of FILE. If nonempty,
1635-# add APPEND to the result, otherwise set result
1636-# to NONDIR_REPLACEMENT.
1637-# value returned in "$func_dirname_result"
1638-# basename: Compute filename of FILE.
1639-# value retuned in "$func_basename_result"
1640-# Implementation must be kept synchronized with func_dirname
1641-# and func_basename. For efficiency, we do not delegate to
1642-# those functions but instead duplicate the functionality here.
1643-func_dirname_and_basename ()
1644-{
1645- case ${1} in
1646- */*) func_dirname_result="${1%/*}${2}" ;;
1647- * ) func_dirname_result="${3}" ;;
1648- esac
1649- func_basename_result="${1##*/}"
1650-}
1651-
1652-# func_stripname prefix suffix name
1653-# strip PREFIX and SUFFIX off of NAME.
1654-# PREFIX and SUFFIX must not contain globbing or regex special
1655-# characters, hashes, percent signs, but SUFFIX may contain a leading
1656-# dot (in which case that matches only a dot).
1657-func_stripname ()
1658-{
1659- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1660- # positional parameters, so assign one to ordinary parameter first.
1661- func_stripname_result=${3}
1662- func_stripname_result=${func_stripname_result#"${1}"}
1663- func_stripname_result=${func_stripname_result%"${2}"}
1664-}
1665-
1666-# func_opt_split
1667-func_opt_split ()
1668-{
1669- func_opt_split_opt=${1%%=*}
1670- func_opt_split_arg=${1#*=}
1671-}
1672-
1673-# func_lo2o object
1674-func_lo2o ()
1675-{
1676- case ${1} in
1677- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
1678- *) func_lo2o_result=${1} ;;
1679- esac
1680-}
1681-
1682-# func_xform libobj-or-source
1683-func_xform ()
1684-{
1685- func_xform_result=${1%.*}.lo
1686-}
1687-
1688-# func_arith arithmetic-term...
1689-func_arith ()
1690-{
1691- func_arith_result=$(( $* ))
1692-}
1693-
1694-# func_len string
1695-# STRING may not start with a hyphen.
1696-func_len ()
1697-{
1698- func_len_result=${#1}
1699-}
1700-
1701-_LT_EOF
1702- ;;
1703- *) # Bourne compatible functions.
1704- cat << \_LT_EOF >> "$cfgfile"
1705-
1706-# func_dirname file append nondir_replacement
1707-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
1708-# otherwise set result to NONDIR_REPLACEMENT.
1709-func_dirname ()
1710-{
1711- # Extract subdirectory from the argument.
1712- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1713- if test "X$func_dirname_result" = "X${1}"; then
1714- func_dirname_result="${3}"
1715- else
1716- func_dirname_result="$func_dirname_result${2}"
1717- fi
1718-}
1719-
1720-# func_basename file
1721-func_basename ()
1722-{
1723- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1724-}
1725-
1726-
1727-# func_stripname prefix suffix name
1728-# strip PREFIX and SUFFIX off of NAME.
1729-# PREFIX and SUFFIX must not contain globbing or regex special
1730-# characters, hashes, percent signs, but SUFFIX may contain a leading
1731-# dot (in which case that matches only a dot).
1732-# func_strip_suffix prefix name
1733-func_stripname ()
1734-{
1735- case ${2} in
1736- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
1737- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1738- esac
1739-}
1740-
1741-# sed scripts:
1742-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
1743-my_sed_long_arg='1s/^-[^=]*=//'
1744-
1745-# func_opt_split
1746-func_opt_split ()
1747-{
1748- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
1749- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1750-}
1751-
1752-# func_lo2o object
1753-func_lo2o ()
1754-{
1755- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1756-}
1757-
1758-# func_xform libobj-or-source
1759-func_xform ()
1760-{
1761- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1762-}
1763-
1764-# func_arith arithmetic-term...
1765-func_arith ()
1766-{
1767- func_arith_result=`expr "$@"`
1768-}
1769-
1770-# func_len string
1771-# STRING may not start with a hyphen.
1772-func_len ()
1773-{
1774- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
1775-}
1776-
1777-_LT_EOF
1778-esac
1779-
1780-case $lt_shell_append in
1781- yes)
1782- cat << \_LT_EOF >> "$cfgfile"
1783-
1784-# func_append var value
1785-# Append VALUE to the end of shell variable VAR.
1786-func_append ()
1787-{
1788- eval "$1+=\$2"
1789-}
1790-_LT_EOF
1791- ;;
1792- *)
1793- cat << \_LT_EOF >> "$cfgfile"
1794-
1795-# func_append var value
1796-# Append VALUE to the end of shell variable VAR.
1797-func_append ()
1798-{
1799- eval "$1=\$$1\$2"
1800-}
1801-
1802-_LT_EOF
1803- ;;
1804- esac
1805-
1806-
1807- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1808- || (rm -f "$cfgfile"; exit 1)
1809-
1810- mv -f "$cfgfile" "$ofile" ||
1811+ sed '$q' "$ltmain" >> "$cfgfile" \
1812+ || (rm -f "$cfgfile"; exit 1)
1813+
1814+ if test x"$xsi_shell" = xyes; then
1815+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
1816+func_dirname ()\
1817+{\
1818+\ case ${1} in\
1819+\ */*) func_dirname_result="${1%/*}${2}" ;;\
1820+\ * ) func_dirname_result="${3}" ;;\
1821+\ esac\
1822+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
1823+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1824+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1825+test 0 -eq $? || _lt_function_replace_fail=:
1826+
1827+
1828+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
1829+func_basename ()\
1830+{\
1831+\ func_basename_result="${1##*/}"\
1832+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
1833+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1834+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1835+test 0 -eq $? || _lt_function_replace_fail=:
1836+
1837+
1838+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
1839+func_dirname_and_basename ()\
1840+{\
1841+\ case ${1} in\
1842+\ */*) func_dirname_result="${1%/*}${2}" ;;\
1843+\ * ) func_dirname_result="${3}" ;;\
1844+\ esac\
1845+\ func_basename_result="${1##*/}"\
1846+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
1847+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1848+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1849+test 0 -eq $? || _lt_function_replace_fail=:
1850+
1851+
1852+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
1853+func_stripname ()\
1854+{\
1855+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
1856+\ # positional parameters, so assign one to ordinary parameter first.\
1857+\ func_stripname_result=${3}\
1858+\ func_stripname_result=${func_stripname_result#"${1}"}\
1859+\ func_stripname_result=${func_stripname_result%"${2}"}\
1860+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
1861+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1862+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1863+test 0 -eq $? || _lt_function_replace_fail=:
1864+
1865+
1866+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
1867+func_split_long_opt ()\
1868+{\
1869+\ func_split_long_opt_name=${1%%=*}\
1870+\ func_split_long_opt_arg=${1#*=}\
1871+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
1872+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1873+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1874+test 0 -eq $? || _lt_function_replace_fail=:
1875+
1876+
1877+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
1878+func_split_short_opt ()\
1879+{\
1880+\ func_split_short_opt_arg=${1#??}\
1881+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
1882+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
1883+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1884+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1885+test 0 -eq $? || _lt_function_replace_fail=:
1886+
1887+
1888+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
1889+func_lo2o ()\
1890+{\
1891+\ case ${1} in\
1892+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
1893+\ *) func_lo2o_result=${1} ;;\
1894+\ esac\
1895+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
1896+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1897+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1898+test 0 -eq $? || _lt_function_replace_fail=:
1899+
1900+
1901+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
1902+func_xform ()\
1903+{\
1904+ func_xform_result=${1%.*}.lo\
1905+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
1906+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1907+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1908+test 0 -eq $? || _lt_function_replace_fail=:
1909+
1910+
1911+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
1912+func_arith ()\
1913+{\
1914+ func_arith_result=$(( $* ))\
1915+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
1916+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1917+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1918+test 0 -eq $? || _lt_function_replace_fail=:
1919+
1920+
1921+ sed -e '/^func_len ()$/,/^} # func_len /c\
1922+func_len ()\
1923+{\
1924+ func_len_result=${#1}\
1925+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
1926+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1927+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1928+test 0 -eq $? || _lt_function_replace_fail=:
1929+
1930+fi
1931+
1932+if test x"$lt_shell_append" = xyes; then
1933+ sed -e '/^func_append ()$/,/^} # func_append /c\
1934+func_append ()\
1935+{\
1936+ eval "${1}+=\\${2}"\
1937+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
1938+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1939+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1940+test 0 -eq $? || _lt_function_replace_fail=:
1941+
1942+
1943+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
1944+func_append_quoted ()\
1945+{\
1946+\ func_quote_for_eval "${2}"\
1947+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
1948+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
1949+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1950+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1951+test 0 -eq $? || _lt_function_replace_fail=:
1952+
1953+
1954+ # Save a `func_append' function call where possible by direct use of '+='
1955+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
1956+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1957+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1958+ test 0 -eq $? || _lt_function_replace_fail=:
1959+else
1960+ # Save a `func_append' function call even when '+=' is not available
1961+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
1962+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1963+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1964+ test 0 -eq $? || _lt_function_replace_fail=:
1965+fi
1966+
1967+if test x"$_lt_function_replace_fail" = x":"; then
1968+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
1969+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1970+fi
1971+
1972+
1973+ mv -f "$cfgfile" "$ofile" ||
1974 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1975 chmod +x "$ofile"
1976
1977diff --git a/bfd/configure.ac b/bfd/configure.ac
Patrick Williams213cb262021-08-07 19:21:33 -05001978index 07a75ed1626..288374c504c 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -05001979--- a/bfd/configure.ac
1980+++ b/bfd/configure.ac
Patrick Williams213cb262021-08-07 19:21:33 -05001981@@ -304,7 +304,7 @@ changequote(,)dnl
Andrew Geissler82c905d2020-04-13 13:39:40 -05001982 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
1983 changequote([,])dnl
1984 if test -n "$x"; then
1985- SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
1986+ SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a"
1987 fi
Patrick Williams213cb262021-08-07 19:21:33 -05001988 fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05001989
Andrew Geissler82c905d2020-04-13 13:39:40 -05001990diff --git a/binutils/configure b/binutils/configure
Patrick Williams213cb262021-08-07 19:21:33 -05001991index bf6461dab1e..8e6f6d30b4d 100755
Andrew Geissler82c905d2020-04-13 13:39:40 -05001992--- a/binutils/configure
1993+++ b/binutils/configure
Patrick Williams213cb262021-08-07 19:21:33 -05001994@@ -696,8 +696,11 @@ OTOOL
Andrew Geissler82c905d2020-04-13 13:39:40 -05001995 LIPO
1996 NMEDIT
1997 DSYMUTIL
1998+MANIFEST_TOOL
1999 RANLIB
2000+ac_ct_AR
2001 AR
2002+DLLTOOL
2003 OBJDUMP
2004 LN_S
2005 NM
Patrick Williams213cb262021-08-07 19:21:33 -05002006@@ -814,6 +817,7 @@ enable_static
Andrew Geissler82c905d2020-04-13 13:39:40 -05002007 with_pic
2008 enable_fast_install
2009 with_gnu_ld
2010+with_libtool_sysroot
2011 enable_libtool_lock
2012 enable_plugins
2013 enable_largefile
Patrick Williams213cb262021-08-07 19:21:33 -05002014@@ -1509,6 +1513,8 @@ Optional Packages:
Andrew Geissler82c905d2020-04-13 13:39:40 -05002015 --with-pic try to use only PIC/non-PIC objects [default=use
2016 both]
2017 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2018+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
2019+ (or the compiler's sysroot if not specified).
2020 --with-debuginfod Enable debuginfo lookups with debuginfod
2021 (auto/yes/no)
2022 --with-system-zlib use installed libz
Patrick Williams213cb262021-08-07 19:21:33 -05002023@@ -4844,8 +4850,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05002024
2025
2026
2027-macro_version='2.2.7a'
2028-macro_revision='1.3134'
2029+macro_version='2.4'
2030+macro_revision='1.3293'
2031
2032
2033
Patrick Williams213cb262021-08-07 19:21:33 -05002034@@ -4885,7 +4891,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Andrew Geissler82c905d2020-04-13 13:39:40 -05002035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2036 $as_echo_n "checking how to print strings... " >&6; }
2037 # Test print first, because it will be a builtin if present.
2038-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2039+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2040 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2041 ECHO='print -r --'
2042 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Patrick Williams213cb262021-08-07 19:21:33 -05002043@@ -5571,8 +5577,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
Andrew Geissler82c905d2020-04-13 13:39:40 -05002044 # Try some XSI features
2045 xsi_shell=no
2046 ( _lt_dummy="a/b/c"
2047- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
2048- = c,a/b,, \
2049+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
2050+ = c,a/b,b/c, \
2051 && eval 'test $(( 1 + 1 )) -eq 2 \
2052 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
2053 && xsi_shell=yes
Patrick Williams213cb262021-08-07 19:21:33 -05002054@@ -5621,6 +5627,80 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05002055
2056
2057
2058+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
2059+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
2060+if ${lt_cv_to_host_file_cmd+:} false; then :
2061+ $as_echo_n "(cached) " >&6
2062+else
2063+ case $host in
2064+ *-*-mingw* )
2065+ case $build in
2066+ *-*-mingw* ) # actually msys
2067+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
2068+ ;;
2069+ *-*-cygwin* )
2070+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
2071+ ;;
2072+ * ) # otherwise, assume *nix
2073+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
2074+ ;;
2075+ esac
2076+ ;;
2077+ *-*-cygwin* )
2078+ case $build in
2079+ *-*-mingw* ) # actually msys
2080+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
2081+ ;;
2082+ *-*-cygwin* )
2083+ lt_cv_to_host_file_cmd=func_convert_file_noop
2084+ ;;
2085+ * ) # otherwise, assume *nix
2086+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
2087+ ;;
2088+ esac
2089+ ;;
2090+ * ) # unhandled hosts (and "normal" native builds)
2091+ lt_cv_to_host_file_cmd=func_convert_file_noop
2092+ ;;
2093+esac
2094+
2095+fi
2096+
2097+to_host_file_cmd=$lt_cv_to_host_file_cmd
2098+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
2099+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
2100+
2101+
2102+
2103+
2104+
2105+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
2106+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
2107+if ${lt_cv_to_tool_file_cmd+:} false; then :
2108+ $as_echo_n "(cached) " >&6
2109+else
2110+ #assume ordinary cross tools, or native build.
2111+lt_cv_to_tool_file_cmd=func_convert_file_noop
2112+case $host in
2113+ *-*-mingw* )
2114+ case $build in
2115+ *-*-mingw* ) # actually msys
2116+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
2117+ ;;
2118+ esac
2119+ ;;
2120+esac
2121+
2122+fi
2123+
2124+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
2125+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
2126+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
2127+
2128+
2129+
2130+
2131+
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
2133 $as_echo_n "checking for $LD option to reload object files... " >&6; }
2134 if ${lt_cv_ld_reload_flag+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05002135@@ -5637,6 +5717,11 @@ case $reload_flag in
Andrew Geissler82c905d2020-04-13 13:39:40 -05002136 esac
2137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2138 case $host_os in
2139+ cygwin* | mingw* | pw32* | cegcc*)
2140+ if test "$GCC" != yes; then
2141+ reload_cmds=false
2142+ fi
2143+ ;;
2144 darwin*)
2145 if test "$GCC" = yes; then
2146 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Patrick Williams213cb262021-08-07 19:21:33 -05002147@@ -5805,7 +5890,8 @@ mingw* | pw32*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05002148 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2149 lt_cv_file_magic_cmd='func_win32_libid'
2150 else
2151- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2152+ # Keep this pattern in sync with the one in func_win32_libid.
2153+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
2154 lt_cv_file_magic_cmd='$OBJDUMP -f'
2155 fi
2156 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05002157@@ -5959,6 +6045,21 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05002158 fi
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
2160 $as_echo "$lt_cv_deplibs_check_method" >&6; }
2161+
2162+file_magic_glob=
2163+want_nocaseglob=no
2164+if test "$build" = "$host"; then
2165+ case $host_os in
2166+ mingw* | pw32*)
2167+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
2168+ want_nocaseglob=yes
2169+ else
2170+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
2171+ fi
2172+ ;;
2173+ esac
2174+fi
2175+
2176 file_magic_cmd=$lt_cv_file_magic_cmd
2177 deplibs_check_method=$lt_cv_deplibs_check_method
2178 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -05002179@@ -5974,6 +6075,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler82c905d2020-04-13 13:39:40 -05002180
2181
2182
2183+
2184+
2185+
2186+
2187+
2188+
2189+
2190+
2191+
2192+
2193+if test -n "$ac_tool_prefix"; then
2194+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2195+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2196+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2197+$as_echo_n "checking for $ac_word... " >&6; }
2198+if ${ac_cv_prog_DLLTOOL+:} false; then :
2199+ $as_echo_n "(cached) " >&6
2200+else
2201+ if test -n "$DLLTOOL"; then
2202+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2203+else
2204+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205+for as_dir in $PATH
2206+do
2207+ IFS=$as_save_IFS
2208+ test -z "$as_dir" && as_dir=.
2209+ for ac_exec_ext in '' $ac_executable_extensions; do
2210+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2212+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2213+ break 2
2214+ fi
2215+done
2216+ done
2217+IFS=$as_save_IFS
2218+
2219+fi
2220+fi
2221+DLLTOOL=$ac_cv_prog_DLLTOOL
2222+if test -n "$DLLTOOL"; then
2223+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2224+$as_echo "$DLLTOOL" >&6; }
2225+else
2226+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2227+$as_echo "no" >&6; }
2228+fi
2229+
2230+
2231+fi
2232+if test -z "$ac_cv_prog_DLLTOOL"; then
2233+ ac_ct_DLLTOOL=$DLLTOOL
2234+ # Extract the first word of "dlltool", so it can be a program name with args.
2235+set dummy dlltool; ac_word=$2
2236+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2237+$as_echo_n "checking for $ac_word... " >&6; }
2238+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2239+ $as_echo_n "(cached) " >&6
2240+else
2241+ if test -n "$ac_ct_DLLTOOL"; then
2242+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2243+else
2244+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245+for as_dir in $PATH
2246+do
2247+ IFS=$as_save_IFS
2248+ test -z "$as_dir" && as_dir=.
2249+ for ac_exec_ext in '' $ac_executable_extensions; do
2250+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2252+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2253+ break 2
2254+ fi
2255+done
2256+ done
2257+IFS=$as_save_IFS
2258+
2259+fi
2260+fi
2261+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2262+if test -n "$ac_ct_DLLTOOL"; then
2263+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2264+$as_echo "$ac_ct_DLLTOOL" >&6; }
2265+else
2266+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2267+$as_echo "no" >&6; }
2268+fi
2269+
2270+ if test "x$ac_ct_DLLTOOL" = x; then
2271+ DLLTOOL="false"
2272+ else
2273+ case $cross_compiling:$ac_tool_warned in
2274+yes:)
2275+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2276+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2277+ac_tool_warned=yes ;;
2278+esac
2279+ DLLTOOL=$ac_ct_DLLTOOL
2280+ fi
2281+else
2282+ DLLTOOL="$ac_cv_prog_DLLTOOL"
2283+fi
2284+
2285+test -z "$DLLTOOL" && DLLTOOL=dlltool
2286+
2287+
2288+
2289+
2290+
2291+
2292+
2293+
2294+
2295+
2296+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
2297+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
2298+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
2299+ $as_echo_n "(cached) " >&6
2300+else
2301+ lt_cv_sharedlib_from_linklib_cmd='unknown'
2302+
2303+case $host_os in
2304+cygwin* | mingw* | pw32* | cegcc*)
2305+ # two different shell functions defined in ltmain.sh
2306+ # decide which to use based on capabilities of $DLLTOOL
2307+ case `$DLLTOOL --help 2>&1` in
2308+ *--identify-strict*)
2309+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
2310+ ;;
2311+ *)
2312+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
2313+ ;;
2314+ esac
2315+ ;;
2316+*)
2317+ # fallback: assume linklib IS sharedlib
2318+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
2319+ ;;
2320+esac
2321+
2322+fi
2323+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
2324+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
2325+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
2326+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
2327+
2328+
2329+
2330+
2331+
2332+
2333+
Patrick Williams213cb262021-08-07 19:21:33 -05002334 plugin_option=
2335 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
2336 for plugin in $plugin_names; do
2337@@ -5988,8 +6240,10 @@ for plugin in $plugin_names; do
2338 done
2339
Andrew Geissler82c905d2020-04-13 13:39:40 -05002340 if test -n "$ac_tool_prefix"; then
2341- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2342-set dummy ${ac_tool_prefix}ar; ac_word=$2
2343+ for ac_prog in ar
2344+ do
2345+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2346+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2348 $as_echo_n "checking for $ac_word... " >&6; }
2349 if ${ac_cv_prog_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05002350@@ -6005,7 +6259,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -05002351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354- ac_cv_prog_AR="${ac_tool_prefix}ar"
2355+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2358 fi
Patrick Williams213cb262021-08-07 19:21:33 -05002359@@ -6025,11 +6279,15 @@ $as_echo "no" >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05002360 fi
2361
2362
2363+ test -n "$AR" && break
2364+ done
2365 fi
2366-if test -z "$ac_cv_prog_AR"; then
2367+if test -z "$AR"; then
2368 ac_ct_AR=$AR
2369- # Extract the first word of "ar", so it can be a program name with args.
2370-set dummy ar; ac_word=$2
2371+ for ac_prog in ar
2372+do
2373+ # Extract the first word of "$ac_prog", so it can be a program name with args.
2374+set dummy $ac_prog; ac_word=$2
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05002378@@ -6045,7 +6303,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -05002379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382- ac_cv_prog_ac_ct_AR="ar"
2383+ ac_cv_prog_ac_ct_AR="$ac_prog"
2384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2386 fi
Patrick Williams213cb262021-08-07 19:21:33 -05002387@@ -6064,6 +6322,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05002388 $as_echo "no" >&6; }
2389 fi
2390
2391+
2392+ test -n "$ac_ct_AR" && break
2393+done
2394+
2395 if test "x$ac_ct_AR" = x; then
2396 AR="false"
2397 else
Patrick Williams213cb262021-08-07 19:21:33 -05002398@@ -6075,29 +6337,81 @@ ac_tool_warned=yes ;;
Andrew Geissler82c905d2020-04-13 13:39:40 -05002399 esac
2400 AR=$ac_ct_AR
2401 fi
2402-else
2403- AR="$ac_cv_prog_AR"
2404 fi
2405
2406-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -05002407-if test -n "$plugin_option"; then
2408- if $AR --help 2>&1 | grep -q "\--plugin"; then
2409- touch conftest.c
2410- $AR $plugin_option rc conftest.a conftest.c
2411- if test "$?" != 0; then
2412- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
2413+ touch conftest.c
2414+ $AR $plugin_option rc conftest.a conftest.c
2415+ if test "$?" != 0; then
2416+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
2417 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
2418- else
2419- AR="$AR $plugin_option"
2420- fi
2421- rm -f conftest.*
2422+ else
2423+ AR="$AR $plugin_option"
2424 fi
2425-fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05002426-test -z "$AR_FLAGS" && AR_FLAGS=cru
Patrick Williams213cb262021-08-07 19:21:33 -05002427+ rm -f conftest.*
Andrew Geissler82c905d2020-04-13 13:39:40 -05002428+: ${AR=ar}
2429+: ${AR_FLAGS=cru}
Patrick Williams213cb262021-08-07 19:21:33 -05002430+
2431+
2432+
2433+
2434+
2435+
2436+
2437+
2438+
2439+
2440+
Andrew Geissler82c905d2020-04-13 13:39:40 -05002441+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
2442+$as_echo_n "checking for archiver @FILE support... " >&6; }
2443+if ${lt_cv_ar_at_file+:} false; then :
2444+ $as_echo_n "(cached) " >&6
2445+else
2446+ lt_cv_ar_at_file=no
2447+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448+/* end confdefs.h. */
2449+
2450+int
2451+main ()
2452+{
Patrick Williams213cb262021-08-07 19:21:33 -05002453
Andrew Geissler82c905d2020-04-13 13:39:40 -05002454+ ;
2455+ return 0;
2456+}
2457+_ACEOF
2458+if ac_fn_c_try_compile "$LINENO"; then :
2459+ echo conftest.$ac_objext > conftest.lst
2460+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
2461+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
2462+ (eval $lt_ar_try) 2>&5
2463+ ac_status=$?
2464+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2465+ test $ac_status = 0; }
2466+ if test "$ac_status" -eq 0; then
2467+ # Ensure the archiver fails upon bogus file names.
2468+ rm -f conftest.$ac_objext libconftest.a
2469+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
2470+ (eval $lt_ar_try) 2>&5
2471+ ac_status=$?
2472+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2473+ test $ac_status = 0; }
2474+ if test "$ac_status" -ne 0; then
2475+ lt_cv_ar_at_file=@
2476+ fi
2477+ fi
2478+ rm -f conftest.* libconftest.a
Patrick Williams213cb262021-08-07 19:21:33 -05002479
Andrew Geissler82c905d2020-04-13 13:39:40 -05002480+fi
2481+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -05002482
Andrew Geissler82c905d2020-04-13 13:39:40 -05002483+fi
2484+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
2485+$as_echo "$lt_cv_ar_at_file" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -05002486
Andrew Geissler82c905d2020-04-13 13:39:40 -05002487+if test "x$lt_cv_ar_at_file" = xno; then
2488+ archiver_list_spec=
2489+else
2490+ archiver_list_spec=$lt_cv_ar_at_file
2491+fi
Patrick Williams213cb262021-08-07 19:21:33 -05002492
2493
2494
2495@@ -6444,8 +6758,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05002496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2497
2498 # Transform an extracted symbol line into symbol name and symbol address
2499-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
2500-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'"
2501+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
2502+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'"
2503
2504 # Handle CRLF in mingw tool chain
2505 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -05002506@@ -6481,6 +6795,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler82c905d2020-04-13 13:39:40 -05002507 else
2508 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
2509 fi
2510+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
2511
2512 # Check to see that the pipe works correctly.
2513 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -05002514@@ -6522,6 +6837,18 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002515 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
2516 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
2517 cat <<_LT_EOF > conftest.$ac_ext
2518+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
2519+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
2520+/* DATA imports from DLLs on WIN32 con't be const, because runtime
2521+ relocations are performed -- see ld's documentation on pseudo-relocs. */
2522+# define LT_DLSYM_CONST
2523+#elif defined(__osf__)
2524+/* This system does not cope well with relocations in const data. */
2525+# define LT_DLSYM_CONST
2526+#else
2527+# define LT_DLSYM_CONST const
2528+#endif
2529+
2530 #ifdef __cplusplus
2531 extern "C" {
2532 #endif
Patrick Williams213cb262021-08-07 19:21:33 -05002533@@ -6533,7 +6860,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002534 cat <<_LT_EOF >> conftest.$ac_ext
2535
2536 /* The mapping between symbol names and symbols. */
2537-const struct {
2538+LT_DLSYM_CONST struct {
2539 const char *name;
2540 void *address;
2541 }
Patrick Williams213cb262021-08-07 19:21:33 -05002542@@ -6559,8 +6886,8 @@ static const void *lt_preloaded_setup() {
Andrew Geissler82c905d2020-04-13 13:39:40 -05002543 _LT_EOF
2544 # Now try linking the two files.
2545 mv conftest.$ac_objext conftstm.$ac_objext
2546- lt_save_LIBS="$LIBS"
2547- lt_save_CFLAGS="$CFLAGS"
2548+ lt_globsym_save_LIBS=$LIBS
2549+ lt_globsym_save_CFLAGS=$CFLAGS
2550 LIBS="conftstm.$ac_objext"
2551 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
2552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Patrick Williams213cb262021-08-07 19:21:33 -05002553@@ -6570,8 +6897,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002554 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
2555 pipe_works=yes
2556 fi
2557- LIBS="$lt_save_LIBS"
2558- CFLAGS="$lt_save_CFLAGS"
2559+ LIBS=$lt_globsym_save_LIBS
2560+ CFLAGS=$lt_globsym_save_CFLAGS
2561 else
2562 echo "cannot find nm_test_func in $nlist" >&5
2563 fi
Patrick Williams213cb262021-08-07 19:21:33 -05002564@@ -6608,6 +6935,19 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05002565 $as_echo "ok" >&6; }
2566 fi
2567
2568+# Response file support.
2569+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
2570+ nm_file_list_spec='@'
2571+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
2572+ nm_file_list_spec='@'
2573+fi
2574+
2575+
2576+
2577+
2578+
2579+
2580+
Patrick Williams213cb262021-08-07 19:21:33 -05002581
2582
2583
2584@@ -6624,6 +6964,42 @@ fi
2585
2586
2587
Andrew Geissler82c905d2020-04-13 13:39:40 -05002588+
2589+
Andrew Geissler82c905d2020-04-13 13:39:40 -05002590+
2591+
2592+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
2593+$as_echo_n "checking for sysroot... " >&6; }
2594+
2595+# Check whether --with-libtool-sysroot was given.
2596+if test "${with_libtool_sysroot+set}" = set; then :
2597+ withval=$with_libtool_sysroot;
2598+else
2599+ with_libtool_sysroot=no
2600+fi
2601+
2602+
2603+lt_sysroot=
2604+case ${with_libtool_sysroot} in #(
2605+ yes)
2606+ if test "$GCC" = yes; then
2607+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
2608+ fi
2609+ ;; #(
2610+ /*)
2611+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
2612+ ;; #(
2613+ no|'')
2614+ ;; #(
2615+ *)
2616+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
2617+$as_echo "${with_libtool_sysroot}" >&6; }
2618+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
2619+ ;;
2620+esac
2621+
2622+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
2623+$as_echo "${lt_sysroot:-no}" >&6; }
2624
2625
2626
Patrick Williams213cb262021-08-07 19:21:33 -05002627@@ -6835,6 +7211,123 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05002628
2629 need_locks="$enable_libtool_lock"
2630
2631+if test -n "$ac_tool_prefix"; then
2632+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
2633+set dummy ${ac_tool_prefix}mt; ac_word=$2
2634+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635+$as_echo_n "checking for $ac_word... " >&6; }
2636+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
2637+ $as_echo_n "(cached) " >&6
2638+else
2639+ if test -n "$MANIFEST_TOOL"; then
2640+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
2641+else
2642+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643+for as_dir in $PATH
2644+do
2645+ IFS=$as_save_IFS
2646+ test -z "$as_dir" && as_dir=.
2647+ for ac_exec_ext in '' $ac_executable_extensions; do
2648+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
2650+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651+ break 2
2652+ fi
2653+done
2654+ done
2655+IFS=$as_save_IFS
2656+
2657+fi
2658+fi
2659+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
2660+if test -n "$MANIFEST_TOOL"; then
2661+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
2662+$as_echo "$MANIFEST_TOOL" >&6; }
2663+else
2664+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665+$as_echo "no" >&6; }
2666+fi
2667+
2668+
2669+fi
2670+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
2671+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
2672+ # Extract the first word of "mt", so it can be a program name with args.
2673+set dummy mt; ac_word=$2
2674+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675+$as_echo_n "checking for $ac_word... " >&6; }
2676+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
2677+ $as_echo_n "(cached) " >&6
2678+else
2679+ if test -n "$ac_ct_MANIFEST_TOOL"; then
2680+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
2681+else
2682+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683+for as_dir in $PATH
2684+do
2685+ IFS=$as_save_IFS
2686+ test -z "$as_dir" && as_dir=.
2687+ for ac_exec_ext in '' $ac_executable_extensions; do
2688+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
2690+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691+ break 2
2692+ fi
2693+done
2694+ done
2695+IFS=$as_save_IFS
2696+
2697+fi
2698+fi
2699+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
2700+if test -n "$ac_ct_MANIFEST_TOOL"; then
2701+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
2702+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
2703+else
2704+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705+$as_echo "no" >&6; }
2706+fi
2707+
2708+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
2709+ MANIFEST_TOOL=":"
2710+ else
2711+ case $cross_compiling:$ac_tool_warned in
2712+yes:)
2713+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715+ac_tool_warned=yes ;;
2716+esac
2717+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
2718+ fi
2719+else
2720+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
2721+fi
2722+
2723+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
2724+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
2725+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
2726+if ${lt_cv_path_mainfest_tool+:} false; then :
2727+ $as_echo_n "(cached) " >&6
2728+else
2729+ lt_cv_path_mainfest_tool=no
2730+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
2731+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
2732+ cat conftest.err >&5
2733+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
2734+ lt_cv_path_mainfest_tool=yes
2735+ fi
2736+ rm -f conftest*
2737+fi
2738+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
2739+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
2740+if test "x$lt_cv_path_mainfest_tool" != xyes; then
2741+ MANIFEST_TOOL=:
2742+fi
2743+
2744+
2745+
2746+
2747+
2748
2749 case $host_os in
2750 rhapsody* | darwin*)
Patrick Williams213cb262021-08-07 19:21:33 -05002751@@ -7398,6 +7891,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002752 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
2753 echo "$AR cru libconftest.a conftest.o" >&5
2754 $AR cru libconftest.a conftest.o 2>&5
2755+ echo "$RANLIB libconftest.a" >&5
2756+ $RANLIB libconftest.a 2>&5
2757 cat > conftest.c << _LT_EOF
2758 int main() { return 0;}
2759 _LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05002760@@ -7593,7 +8088,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05002761 LIBTOOL_DEPS="$ltmain"
2762
2763 # Always use our own libtool.
2764-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2765+LIBTOOL='$(SHELL) $(top_builddir)'
2766+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
2767
2768
2769
Patrick Williams213cb262021-08-07 19:21:33 -05002770@@ -7682,7 +8178,7 @@ aix3*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05002771 esac
2772
2773 # Global variables:
2774-ofile=libtool
2775+ofile=${host_alias}-libtool
2776 can_build_shared=yes
2777
2778 # All known linkers require a `.a' archive for static linking (except MSVC,
Patrick Williams213cb262021-08-07 19:21:33 -05002779@@ -7980,8 +8476,6 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05002780 lt_prog_compiler_pic=
2781 lt_prog_compiler_static=
2782
2783-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
2784-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
2785
2786 if test "$GCC" = yes; then
2787 lt_prog_compiler_wl='-Wl,'
Patrick Williams213cb262021-08-07 19:21:33 -05002788@@ -8147,6 +8641,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05002789 lt_prog_compiler_pic='--shared'
2790 lt_prog_compiler_static='--static'
2791 ;;
2792+ nagfor*)
2793+ # NAG Fortran compiler
2794+ lt_prog_compiler_wl='-Wl,-Wl,,'
2795+ lt_prog_compiler_pic='-PIC'
2796+ lt_prog_compiler_static='-Bstatic'
2797+ ;;
2798 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
2799 # Portland Group compilers (*not* the Pentium gcc compiler,
2800 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -05002801@@ -8209,7 +8709,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05002802 lt_prog_compiler_pic='-KPIC'
2803 lt_prog_compiler_static='-Bstatic'
2804 case $cc_basename in
2805- f77* | f90* | f95*)
2806+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
2807 lt_prog_compiler_wl='-Qoption ld ';;
2808 *)
2809 lt_prog_compiler_wl='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -05002810@@ -8266,13 +8766,17 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -05002811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
2812 ;;
2813 esac
2814-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
2815-$as_echo "$lt_prog_compiler_pic" >&6; }
2816-
2817-
2818-
2819-
2820
2821+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
2822+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
2823+if ${lt_cv_prog_compiler_pic+:} false; then :
2824+ $as_echo_n "(cached) " >&6
2825+else
2826+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
2827+fi
2828+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
2829+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
2830+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
2831
2832 #
2833 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -05002834@@ -8333,6 +8837,11 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05002835
2836
2837
2838+
2839+
2840+
2841+
2842+
2843 #
2844 # Check to make sure the static flag actually works.
2845 #
Patrick Williams213cb262021-08-07 19:21:33 -05002846@@ -8683,7 +9192,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002847 allow_undefined_flag=unsupported
2848 always_export_symbols=no
2849 enable_shared_with_static_runtimes=yes
2850- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
2851+ 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'
2852+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
2853
2854 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
2855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Patrick Williams213cb262021-08-07 19:21:33 -05002856@@ -8782,12 +9292,12 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002857 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
2858 hardcode_libdir_flag_spec=
2859 hardcode_libdir_flag_spec_ld='-rpath $libdir'
2860- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
2861+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
2862 if test "x$supports_anon_versioning" = xyes; then
2863 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
2864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
2865 echo "local: *; };" >> $output_objdir/$libname.ver~
2866- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
2867+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
2868 fi
2869 ;;
2870 esac
Patrick Williams213cb262021-08-07 19:21:33 -05002871@@ -8801,8 +9311,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002872 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2873 wlarc=
2874 else
2875- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2876- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2877+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2878+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2879 fi
2880 ;;
2881
Patrick Williams213cb262021-08-07 19:21:33 -05002882@@ -8820,8 +9330,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002883
2884 _LT_EOF
2885 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
2886- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2887- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2888+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2889+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2890 else
2891 ld_shlibs=no
2892 fi
Patrick Williams213cb262021-08-07 19:21:33 -05002893@@ -8867,8 +9377,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002894
2895 *)
2896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
2897- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2898- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2899+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2900+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2901 else
2902 ld_shlibs=no
2903 fi
Patrick Williams213cb262021-08-07 19:21:33 -05002904@@ -8998,7 +9508,13 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05002905 allow_undefined_flag='-berok'
2906 # Determine the default libpath from the value encoded in an
2907 # empty executable.
2908- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909+ if test "${lt_cv_aix_libpath+set}" = set; then
2910+ aix_libpath=$lt_cv_aix_libpath
2911+else
2912+ if ${lt_cv_aix_libpath_+:} false; then :
2913+ $as_echo_n "(cached) " >&6
2914+else
2915+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916 /* end confdefs.h. */
2917
2918 int
Patrick Williams213cb262021-08-07 19:21:33 -05002919@@ -9011,22 +9527,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05002920 _ACEOF
2921 if ac_fn_c_try_link "$LINENO"; then :
2922
2923-lt_aix_libpath_sed='
2924- /Import File Strings/,/^$/ {
2925- /^0/ {
2926- s/^0 *\(.*\)$/\1/
2927- p
2928- }
2929- }'
2930-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2931-# Check for a 64-bit object if we didn't find anything.
2932-if test -z "$aix_libpath"; then
2933- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2934-fi
2935+ lt_aix_libpath_sed='
2936+ /Import File Strings/,/^$/ {
2937+ /^0/ {
2938+ s/^0 *\([^ ]*\) *$/\1/
2939+ p
2940+ }
2941+ }'
2942+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2943+ # Check for a 64-bit object if we didn't find anything.
2944+ if test -z "$lt_cv_aix_libpath_"; then
2945+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2946+ fi
2947 fi
2948 rm -f core conftest.err conftest.$ac_objext \
2949 conftest$ac_exeext conftest.$ac_ext
2950-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2951+ if test -z "$lt_cv_aix_libpath_"; then
2952+ lt_cv_aix_libpath_="/usr/lib:/lib"
2953+ fi
2954+
2955+fi
2956+
2957+ aix_libpath=$lt_cv_aix_libpath_
2958+fi
2959
2960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
2961 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"
Patrick Williams213cb262021-08-07 19:21:33 -05002962@@ -9038,7 +9561,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05002963 else
2964 # Determine the default libpath from the value encoded in an
2965 # empty executable.
2966- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967+ if test "${lt_cv_aix_libpath+set}" = set; then
2968+ aix_libpath=$lt_cv_aix_libpath
2969+else
2970+ if ${lt_cv_aix_libpath_+:} false; then :
2971+ $as_echo_n "(cached) " >&6
2972+else
2973+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2975
2976 int
Patrick Williams213cb262021-08-07 19:21:33 -05002977@@ -9051,22 +9580,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05002978 _ACEOF
2979 if ac_fn_c_try_link "$LINENO"; then :
2980
2981-lt_aix_libpath_sed='
2982- /Import File Strings/,/^$/ {
2983- /^0/ {
2984- s/^0 *\(.*\)$/\1/
2985- p
2986- }
2987- }'
2988-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2989-# Check for a 64-bit object if we didn't find anything.
2990-if test -z "$aix_libpath"; then
2991- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2992-fi
2993+ lt_aix_libpath_sed='
2994+ /Import File Strings/,/^$/ {
2995+ /^0/ {
2996+ s/^0 *\([^ ]*\) *$/\1/
2997+ p
2998+ }
2999+ }'
3000+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3001+ # Check for a 64-bit object if we didn't find anything.
3002+ if test -z "$lt_cv_aix_libpath_"; then
3003+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3004+ fi
3005 fi
3006 rm -f core conftest.err conftest.$ac_objext \
3007 conftest$ac_exeext conftest.$ac_ext
3008-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3009+ if test -z "$lt_cv_aix_libpath_"; then
3010+ lt_cv_aix_libpath_="/usr/lib:/lib"
3011+ fi
3012+
3013+fi
3014+
3015+ aix_libpath=$lt_cv_aix_libpath_
3016+fi
3017
3018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3019 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -05003020@@ -9111,20 +9647,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05003021 # Microsoft Visual C++.
3022 # hardcode_libdir_flag_spec is actually meaningless, as there is
3023 # no search path for DLLs.
3024- hardcode_libdir_flag_spec=' '
3025- allow_undefined_flag=unsupported
3026- # Tell ltmain to make .lib files, not .a files.
3027- libext=lib
3028- # Tell ltmain to make .dll files, not .so files.
3029- shrext_cmds=".dll"
3030- # FIXME: Setting linknames here is a bad hack.
3031- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
3032- # The linker will automatically build a .lib file if we build a DLL.
3033- old_archive_from_new_cmds='true'
3034- # FIXME: Should let the user specify the lib program.
3035- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
3036- fix_srcfile_path='`cygpath -w "$srcfile"`'
3037- enable_shared_with_static_runtimes=yes
3038+ case $cc_basename in
3039+ cl*)
3040+ # Native MSVC
3041+ hardcode_libdir_flag_spec=' '
3042+ allow_undefined_flag=unsupported
3043+ always_export_symbols=yes
3044+ file_list_spec='@'
3045+ # Tell ltmain to make .lib files, not .a files.
3046+ libext=lib
3047+ # Tell ltmain to make .dll files, not .so files.
3048+ shrext_cmds=".dll"
3049+ # FIXME: Setting linknames here is a bad hack.
3050+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
3051+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3052+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
3053+ else
3054+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
3055+ fi~
3056+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
3057+ linknames='
3058+ # The linker will not automatically build a static lib if we build a DLL.
3059+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
3060+ enable_shared_with_static_runtimes=yes
3061+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
3062+ # Don't use ranlib
3063+ old_postinstall_cmds='chmod 644 $oldlib'
3064+ postlink_cmds='lt_outputfile="@OUTPUT@"~
3065+ lt_tool_outputfile="@TOOL_OUTPUT@"~
3066+ case $lt_outputfile in
3067+ *.exe|*.EXE) ;;
3068+ *)
3069+ lt_outputfile="$lt_outputfile.exe"
3070+ lt_tool_outputfile="$lt_tool_outputfile.exe"
3071+ ;;
3072+ esac~
3073+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
3074+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
3075+ $RM "$lt_outputfile.manifest";
3076+ fi'
3077+ ;;
3078+ *)
3079+ # Assume MSVC wrapper
3080+ hardcode_libdir_flag_spec=' '
3081+ allow_undefined_flag=unsupported
3082+ # Tell ltmain to make .lib files, not .a files.
3083+ libext=lib
3084+ # Tell ltmain to make .dll files, not .so files.
3085+ shrext_cmds=".dll"
3086+ # FIXME: Setting linknames here is a bad hack.
3087+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
3088+ # The linker will automatically build a .lib file if we build a DLL.
3089+ old_archive_from_new_cmds='true'
3090+ # FIXME: Should let the user specify the lib program.
3091+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
3092+ enable_shared_with_static_runtimes=yes
3093+ ;;
3094+ esac
3095 ;;
3096
3097 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -05003098@@ -9185,7 +9764,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05003099
3100 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3101 freebsd* | dragonfly*)
3102- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3103+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3104 hardcode_libdir_flag_spec='-R$libdir'
3105 hardcode_direct=yes
3106 hardcode_shlibpath_var=no
Patrick Williams213cb262021-08-07 19:21:33 -05003107@@ -9193,7 +9772,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05003108
3109 hpux9*)
3110 if test "$GCC" = yes; then
3111- 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'
3112+ 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'
3113 else
3114 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'
3115 fi
Patrick Williams213cb262021-08-07 19:21:33 -05003116@@ -9209,7 +9788,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05003117
3118 hpux10*)
3119 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
3120- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3121+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3122 else
3123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3124 fi
Patrick Williams213cb262021-08-07 19:21:33 -05003125@@ -9233,10 +9812,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05003126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3127 ;;
3128 ia64*)
3129- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3130+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3131 ;;
3132 *)
3133- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3134+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3135 ;;
3136 esac
3137 else
Patrick Williams213cb262021-08-07 19:21:33 -05003138@@ -9315,23 +9894,36 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05003139
3140 irix5* | irix6* | nonstopux*)
3141 if test "$GCC" = yes; then
3142- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3143+ 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'
3144 # Try to use the -exported_symbol ld option, if it does not
3145 # work, assume that -exports_file does not work either and
3146 # implicitly export all symbols.
3147- save_LDFLAGS="$LDFLAGS"
3148- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
3149- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150+ # This should be the same for all languages, so no per-tag cache variable.
3151+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
3152+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
3153+if ${lt_cv_irix_exported_symbol+:} false; then :
3154+ $as_echo_n "(cached) " >&6
3155+else
3156+ save_LDFLAGS="$LDFLAGS"
3157+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
3158+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160-int foo(void) {}
3161+int foo (void) { return 0; }
3162 _ACEOF
3163 if ac_fn_c_try_link "$LINENO"; then :
3164- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
3165-
3166+ lt_cv_irix_exported_symbol=yes
3167+else
3168+ lt_cv_irix_exported_symbol=no
3169 fi
3170 rm -f core conftest.err conftest.$ac_objext \
3171 conftest$ac_exeext conftest.$ac_ext
3172- LDFLAGS="$save_LDFLAGS"
3173+ LDFLAGS="$save_LDFLAGS"
3174+fi
3175+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
3176+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
3177+ if test "$lt_cv_irix_exported_symbol" = yes; then
3178+ 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'
3179+ fi
3180 else
3181 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'
3182 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'
Patrick Williams213cb262021-08-07 19:21:33 -05003183@@ -9416,7 +10008,7 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05003184 osf4* | osf5*) # as osf3* with the addition of -msym flag
3185 if test "$GCC" = yes; then
3186 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3187- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3188+ 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'
3189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3190 else
3191 allow_undefined_flag=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -05003192@@ -9435,9 +10027,9 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05003193 no_undefined_flag=' -z defs'
3194 if test "$GCC" = yes; then
3195 wlarc='${wl}'
3196- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3197+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3198 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
3199- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
3200+ $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'
3201 else
3202 case `$CC -V 2>&1` in
3203 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -05003204@@ -10013,8 +10605,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05003205 need_version=no
3206 need_lib_prefix=no
3207
3208- case $GCC,$host_os in
3209- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3210+ case $GCC,$cc_basename in
3211+ yes,*)
3212+ # gcc
3213 library_names_spec='$libname.dll.a'
3214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3215 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -05003216@@ -10047,13 +10640,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05003217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3218 ;;
3219 esac
3220+ dynamic_linker='Win32 ld.exe'
3221+ ;;
3222+
3223+ *,cl*)
3224+ # Native MSVC
3225+ libname_spec='$name'
3226+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3227+ library_names_spec='${libname}.dll.lib'
3228+
3229+ case $build_os in
3230+ mingw*)
3231+ sys_lib_search_path_spec=
3232+ lt_save_ifs=$IFS
3233+ IFS=';'
3234+ for lt_path in $LIB
3235+ do
3236+ IFS=$lt_save_ifs
3237+ # Let DOS variable expansion print the short 8.3 style file name.
3238+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3239+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3240+ done
3241+ IFS=$lt_save_ifs
3242+ # Convert to MSYS style.
3243+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
3244+ ;;
3245+ cygwin*)
3246+ # Convert to unix form, then to dos form, then back to unix form
3247+ # but this time dos style (no spaces!) so that the unix form looks
3248+ # like /cygdrive/c/PROGRA~1:/cygdr...
3249+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3250+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3251+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3252+ ;;
3253+ *)
3254+ sys_lib_search_path_spec="$LIB"
3255+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
3256+ # It is most probably a Windows format PATH.
3257+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3258+ else
3259+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3260+ fi
3261+ # FIXME: find the short name or the path components, as spaces are
3262+ # common. (e.g. "Program Files" -> "PROGRA~1")
3263+ ;;
3264+ esac
3265+
3266+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
3267+ postinstall_cmds='base_file=`basename \${file}`~
3268+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3269+ dldir=$destdir/`dirname \$dlpath`~
3270+ test -d \$dldir || mkdir -p \$dldir~
3271+ $install_prog $dir/$dlname \$dldir/$dlname'
3272+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3273+ dlpath=$dir/\$dldll~
3274+ $RM \$dlpath'
3275+ shlibpath_overrides_runpath=yes
3276+ dynamic_linker='Win32 link.exe'
3277 ;;
3278
3279 *)
3280+ # Assume MSVC wrapper
3281 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
3282+ dynamic_linker='Win32 ld.exe'
3283 ;;
3284 esac
3285- dynamic_linker='Win32 ld.exe'
3286 # FIXME: first we should search . and the directory the executable is in
3287 shlibpath_var=PATH
3288 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05003289@@ -10135,7 +10786,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05003290 soname_spec='${libname}${release}${shared_ext}$major'
3291 shlibpath_var=LIBRARY_PATH
3292 shlibpath_overrides_runpath=yes
3293- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3294+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3295 hardcode_into_libs=yes
3296 ;;
3297
Patrick Williams213cb262021-08-07 19:21:33 -05003298@@ -10931,7 +11582,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05003299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3300 lt_status=$lt_dlunknown
3301 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05003302-#line 10934 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05003303+#line $LINENO "configure"
3304 #include "confdefs.h"
3305
3306 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05003307@@ -10975,10 +11626,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05003308 /* When -fvisbility=hidden is used, assume the code has been annotated
3309 correspondingly for the symbols needed. */
3310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3311-void fnord () __attribute__((visibility("default")));
3312+int fnord () __attribute__((visibility("default")));
3313 #endif
3314
3315-void fnord () { int i=42; }
3316+int fnord () { return 42; }
3317 int main ()
3318 {
3319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05003320@@ -11037,7 +11688,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05003321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3322 lt_status=$lt_dlunknown
3323 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05003324-#line 11040 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05003325+#line $LINENO "configure"
3326 #include "confdefs.h"
3327
3328 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05003329@@ -11081,10 +11732,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05003330 /* When -fvisbility=hidden is used, assume the code has been annotated
3331 correspondingly for the symbols needed. */
3332 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3333-void fnord () __attribute__((visibility("default")));
3334+int fnord () __attribute__((visibility("default")));
3335 #endif
3336
3337-void fnord () { int i=42; }
3338+int fnord () { return 42; }
3339 int main ()
3340 {
3341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05003342@@ -15455,13 +16106,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Andrew Geissler82c905d2020-04-13 13:39:40 -05003343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
3344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
3345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
3346+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
3347+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
3348 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
3349 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
3350 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
3351 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
3352 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
3353+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
3354+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
3355+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
3356+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
3357 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
3358 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
3359+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
3360 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
3361 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
3362 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05003363@@ -15476,14 +16134,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
Andrew Geissler82c905d2020-04-13 13:39:40 -05003364 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
3365 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
3366 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"`'
3367+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
3368+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
3369 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
3370 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
3371 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
3372-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
3373 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3374+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
3375 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
3376 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
3377 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
3378+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
3379 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
3380 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
3381 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05003382@@ -15516,12 +16177,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
Andrew Geissler82c905d2020-04-13 13:39:40 -05003383 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
3384 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
3385 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
3386-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3387 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
3388 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
3389 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
3390 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
3391 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
3392+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
3393 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
3394 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
3395 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05003396@@ -15576,8 +16237,13 @@ reload_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05003397 OBJDUMP \
3398 deplibs_check_method \
3399 file_magic_cmd \
3400+file_magic_glob \
3401+want_nocaseglob \
3402+DLLTOOL \
3403+sharedlib_from_linklib_cmd \
3404 AR \
3405 AR_FLAGS \
3406+archiver_list_spec \
3407 STRIP \
3408 RANLIB \
3409 CC \
Patrick Williams213cb262021-08-07 19:21:33 -05003410@@ -15587,12 +16253,14 @@ lt_cv_sys_global_symbol_pipe \
Andrew Geissler82c905d2020-04-13 13:39:40 -05003411 lt_cv_sys_global_symbol_to_cdecl \
3412 lt_cv_sys_global_symbol_to_c_name_address \
3413 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
3414+nm_file_list_spec \
3415 lt_prog_compiler_no_builtin_flag \
3416-lt_prog_compiler_wl \
3417 lt_prog_compiler_pic \
3418+lt_prog_compiler_wl \
3419 lt_prog_compiler_static \
3420 lt_cv_prog_compiler_c_o \
3421 need_locks \
3422+MANIFEST_TOOL \
3423 DSYMUTIL \
3424 NMEDIT \
3425 LIPO \
Patrick Williams213cb262021-08-07 19:21:33 -05003426@@ -15608,7 +16276,6 @@ no_undefined_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05003427 hardcode_libdir_flag_spec \
3428 hardcode_libdir_flag_spec_ld \
3429 hardcode_libdir_separator \
3430-fix_srcfile_path \
3431 exclude_expsyms \
3432 include_expsyms \
3433 file_list_spec \
Patrick Williams213cb262021-08-07 19:21:33 -05003434@@ -15644,6 +16311,7 @@ module_cmds \
Andrew Geissler82c905d2020-04-13 13:39:40 -05003435 module_expsym_cmds \
3436 export_symbols_cmds \
3437 prelink_cmds \
3438+postlink_cmds \
3439 postinstall_cmds \
3440 postuninstall_cmds \
3441 finish_cmds \
Patrick Williams213cb262021-08-07 19:21:33 -05003442@@ -16410,7 +17078,8 @@ $as_echo X"$file" |
Andrew Geissler82c905d2020-04-13 13:39:40 -05003443 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
3444 #
3445 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3446-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3447+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
3448+# Inc.
3449 # Written by Gordon Matzigkeit, 1996
3450 #
3451 # This file is part of GNU Libtool.
Patrick Williams213cb262021-08-07 19:21:33 -05003452@@ -16513,19 +17182,42 @@ SP2NL=$lt_lt_SP2NL
Andrew Geissler82c905d2020-04-13 13:39:40 -05003453 # turn newlines into spaces.
3454 NL2SP=$lt_lt_NL2SP
3455
3456+# convert \$build file names to \$host format.
3457+to_host_file_cmd=$lt_cv_to_host_file_cmd
3458+
3459+# convert \$build files to toolchain format.
3460+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
3461+
3462 # An object symbol dumper.
3463 OBJDUMP=$lt_OBJDUMP
3464
3465 # Method to check whether dependent libraries are shared objects.
3466 deplibs_check_method=$lt_deplibs_check_method
3467
3468-# Command to use when deplibs_check_method == "file_magic".
3469+# Command to use when deplibs_check_method = "file_magic".
3470 file_magic_cmd=$lt_file_magic_cmd
3471
3472+# How to find potential files when deplibs_check_method = "file_magic".
3473+file_magic_glob=$lt_file_magic_glob
3474+
3475+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
3476+want_nocaseglob=$lt_want_nocaseglob
3477+
3478+# DLL creation program.
3479+DLLTOOL=$lt_DLLTOOL
3480+
3481+# Command to associate shared and link libraries.
3482+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
3483+
3484 # The archiver.
3485 AR=$lt_AR
3486+
3487+# Flags to create an archive.
3488 AR_FLAGS=$lt_AR_FLAGS
3489
3490+# How to feed a file listing to the archiver.
3491+archiver_list_spec=$lt_archiver_list_spec
3492+
3493 # A symbol stripping program.
3494 STRIP=$lt_STRIP
3495
Patrick Williams213cb262021-08-07 19:21:33 -05003496@@ -16555,6 +17247,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Andrew Geissler82c905d2020-04-13 13:39:40 -05003497 # Transform the output of nm in a C name address pair when lib prefix is needed.
3498 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
3499
3500+# Specify filename containing input files for \$NM.
3501+nm_file_list_spec=$lt_nm_file_list_spec
3502+
3503+# The root where to search for dependent libraries,and in which our libraries should be installed.
3504+lt_sysroot=$lt_sysroot
3505+
3506 # The name of the directory that contains temporary libtool files.
3507 objdir=$objdir
3508
Patrick Williams213cb262021-08-07 19:21:33 -05003509@@ -16564,6 +17262,9 @@ MAGIC_CMD=$MAGIC_CMD
Andrew Geissler82c905d2020-04-13 13:39:40 -05003510 # Must we lock files when doing compilation?
3511 need_locks=$lt_need_locks
3512
3513+# Manifest tool.
3514+MANIFEST_TOOL=$lt_MANIFEST_TOOL
3515+
3516 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
3517 DSYMUTIL=$lt_DSYMUTIL
3518
Patrick Williams213cb262021-08-07 19:21:33 -05003519@@ -16678,12 +17379,12 @@ with_gcc=$GCC
Andrew Geissler82c905d2020-04-13 13:39:40 -05003520 # Compiler flag to turn off builtin functions.
3521 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
3522
3523-# How to pass a linker flag through the compiler.
3524-wl=$lt_lt_prog_compiler_wl
3525-
3526 # Additional compiler flags for building library objects.
3527 pic_flag=$lt_lt_prog_compiler_pic
3528
3529+# How to pass a linker flag through the compiler.
3530+wl=$lt_lt_prog_compiler_wl
3531+
3532 # Compiler flag to prevent dynamic linking.
3533 link_static_flag=$lt_lt_prog_compiler_static
3534
Patrick Williams213cb262021-08-07 19:21:33 -05003535@@ -16770,9 +17471,6 @@ inherit_rpath=$inherit_rpath
Andrew Geissler82c905d2020-04-13 13:39:40 -05003536 # Whether libtool must link a program against all its dependency libraries.
3537 link_all_deplibs=$link_all_deplibs
3538
3539-# Fix the shell variable \$srcfile for the compiler.
3540-fix_srcfile_path=$lt_fix_srcfile_path
3541-
3542 # Set to "yes" if exported symbols are required.
3543 always_export_symbols=$always_export_symbols
3544
Patrick Williams213cb262021-08-07 19:21:33 -05003545@@ -16788,6 +17486,9 @@ include_expsyms=$lt_include_expsyms
Andrew Geissler82c905d2020-04-13 13:39:40 -05003546 # Commands necessary for linking programs (against libraries) with templates.
3547 prelink_cmds=$lt_prelink_cmds
3548
3549+# Commands necessary for finishing linking programs.
3550+postlink_cmds=$lt_postlink_cmds
3551+
3552 # Specify filename containing input files.
3553 file_list_spec=$lt_file_list_spec
3554
Patrick Williams213cb262021-08-07 19:21:33 -05003555@@ -16820,210 +17521,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -05003556 # if finds mixed CR/LF and LF-only lines. Since sed operates in
3557 # text mode, it properly converts lines to CR/LF. This bash problem
3558 # is reportedly fixed, but why not run on old versions too?
3559- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
3560- || (rm -f "$cfgfile"; exit 1)
3561-
3562- case $xsi_shell in
3563- yes)
3564- cat << \_LT_EOF >> "$cfgfile"
3565-
3566-# func_dirname file append nondir_replacement
3567-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
3568-# otherwise set result to NONDIR_REPLACEMENT.
3569-func_dirname ()
3570-{
3571- case ${1} in
3572- */*) func_dirname_result="${1%/*}${2}" ;;
3573- * ) func_dirname_result="${3}" ;;
3574- esac
3575-}
3576-
3577-# func_basename file
3578-func_basename ()
3579-{
3580- func_basename_result="${1##*/}"
3581-}
3582-
3583-# func_dirname_and_basename file append nondir_replacement
3584-# perform func_basename and func_dirname in a single function
3585-# call:
3586-# dirname: Compute the dirname of FILE. If nonempty,
3587-# add APPEND to the result, otherwise set result
3588-# to NONDIR_REPLACEMENT.
3589-# value returned in "$func_dirname_result"
3590-# basename: Compute filename of FILE.
3591-# value retuned in "$func_basename_result"
3592-# Implementation must be kept synchronized with func_dirname
3593-# and func_basename. For efficiency, we do not delegate to
3594-# those functions but instead duplicate the functionality here.
3595-func_dirname_and_basename ()
3596-{
3597- case ${1} in
3598- */*) func_dirname_result="${1%/*}${2}" ;;
3599- * ) func_dirname_result="${3}" ;;
3600- esac
3601- func_basename_result="${1##*/}"
3602-}
3603-
3604-# func_stripname prefix suffix name
3605-# strip PREFIX and SUFFIX off of NAME.
3606-# PREFIX and SUFFIX must not contain globbing or regex special
3607-# characters, hashes, percent signs, but SUFFIX may contain a leading
3608-# dot (in which case that matches only a dot).
3609-func_stripname ()
3610-{
3611- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
3612- # positional parameters, so assign one to ordinary parameter first.
3613- func_stripname_result=${3}
3614- func_stripname_result=${func_stripname_result#"${1}"}
3615- func_stripname_result=${func_stripname_result%"${2}"}
3616-}
3617-
3618-# func_opt_split
3619-func_opt_split ()
3620-{
3621- func_opt_split_opt=${1%%=*}
3622- func_opt_split_arg=${1#*=}
3623-}
3624-
3625-# func_lo2o object
3626-func_lo2o ()
3627-{
3628- case ${1} in
3629- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
3630- *) func_lo2o_result=${1} ;;
3631- esac
3632-}
3633-
3634-# func_xform libobj-or-source
3635-func_xform ()
3636-{
3637- func_xform_result=${1%.*}.lo
3638-}
3639-
3640-# func_arith arithmetic-term...
3641-func_arith ()
3642-{
3643- func_arith_result=$(( $* ))
3644-}
3645-
3646-# func_len string
3647-# STRING may not start with a hyphen.
3648-func_len ()
3649-{
3650- func_len_result=${#1}
3651-}
3652-
3653-_LT_EOF
3654- ;;
3655- *) # Bourne compatible functions.
3656- cat << \_LT_EOF >> "$cfgfile"
3657-
3658-# func_dirname file append nondir_replacement
3659-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
3660-# otherwise set result to NONDIR_REPLACEMENT.
3661-func_dirname ()
3662-{
3663- # Extract subdirectory from the argument.
3664- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
3665- if test "X$func_dirname_result" = "X${1}"; then
3666- func_dirname_result="${3}"
3667- else
3668- func_dirname_result="$func_dirname_result${2}"
3669- fi
3670-}
3671-
3672-# func_basename file
3673-func_basename ()
3674-{
3675- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
3676-}
3677-
3678-
3679-# func_stripname prefix suffix name
3680-# strip PREFIX and SUFFIX off of NAME.
3681-# PREFIX and SUFFIX must not contain globbing or regex special
3682-# characters, hashes, percent signs, but SUFFIX may contain a leading
3683-# dot (in which case that matches only a dot).
3684-# func_strip_suffix prefix name
3685-func_stripname ()
3686-{
3687- case ${2} in
3688- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
3689- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
3690- esac
3691-}
3692-
3693-# sed scripts:
3694-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
3695-my_sed_long_arg='1s/^-[^=]*=//'
3696-
3697-# func_opt_split
3698-func_opt_split ()
3699-{
3700- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
3701- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
3702-}
3703-
3704-# func_lo2o object
3705-func_lo2o ()
3706-{
3707- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
3708-}
3709-
3710-# func_xform libobj-or-source
3711-func_xform ()
3712-{
3713- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
3714-}
3715-
3716-# func_arith arithmetic-term...
3717-func_arith ()
3718-{
3719- func_arith_result=`expr "$@"`
3720-}
3721-
3722-# func_len string
3723-# STRING may not start with a hyphen.
3724-func_len ()
3725-{
3726- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
3727-}
3728-
3729-_LT_EOF
3730-esac
3731-
3732-case $lt_shell_append in
3733- yes)
3734- cat << \_LT_EOF >> "$cfgfile"
3735-
3736-# func_append var value
3737-# Append VALUE to the end of shell variable VAR.
3738-func_append ()
3739-{
3740- eval "$1+=\$2"
3741-}
3742-_LT_EOF
3743- ;;
3744- *)
3745- cat << \_LT_EOF >> "$cfgfile"
3746-
3747-# func_append var value
3748-# Append VALUE to the end of shell variable VAR.
3749-func_append ()
3750-{
3751- eval "$1=\$$1\$2"
3752-}
3753-
3754-_LT_EOF
3755- ;;
3756- esac
3757-
3758-
3759- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
3760- || (rm -f "$cfgfile"; exit 1)
3761-
3762- mv -f "$cfgfile" "$ofile" ||
3763+ sed '$q' "$ltmain" >> "$cfgfile" \
3764+ || (rm -f "$cfgfile"; exit 1)
3765+
3766+ if test x"$xsi_shell" = xyes; then
3767+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
3768+func_dirname ()\
3769+{\
3770+\ case ${1} in\
3771+\ */*) func_dirname_result="${1%/*}${2}" ;;\
3772+\ * ) func_dirname_result="${3}" ;;\
3773+\ esac\
3774+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
3775+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3776+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3777+test 0 -eq $? || _lt_function_replace_fail=:
3778+
3779+
3780+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
3781+func_basename ()\
3782+{\
3783+\ func_basename_result="${1##*/}"\
3784+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
3785+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3786+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3787+test 0 -eq $? || _lt_function_replace_fail=:
3788+
3789+
3790+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
3791+func_dirname_and_basename ()\
3792+{\
3793+\ case ${1} in\
3794+\ */*) func_dirname_result="${1%/*}${2}" ;;\
3795+\ * ) func_dirname_result="${3}" ;;\
3796+\ esac\
3797+\ func_basename_result="${1##*/}"\
3798+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
3799+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3800+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3801+test 0 -eq $? || _lt_function_replace_fail=:
3802+
3803+
3804+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
3805+func_stripname ()\
3806+{\
3807+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
3808+\ # positional parameters, so assign one to ordinary parameter first.\
3809+\ func_stripname_result=${3}\
3810+\ func_stripname_result=${func_stripname_result#"${1}"}\
3811+\ func_stripname_result=${func_stripname_result%"${2}"}\
3812+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
3813+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3814+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3815+test 0 -eq $? || _lt_function_replace_fail=:
3816+
3817+
3818+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
3819+func_split_long_opt ()\
3820+{\
3821+\ func_split_long_opt_name=${1%%=*}\
3822+\ func_split_long_opt_arg=${1#*=}\
3823+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
3824+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3825+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3826+test 0 -eq $? || _lt_function_replace_fail=:
3827+
3828+
3829+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
3830+func_split_short_opt ()\
3831+{\
3832+\ func_split_short_opt_arg=${1#??}\
3833+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
3834+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
3835+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3836+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3837+test 0 -eq $? || _lt_function_replace_fail=:
3838+
3839+
3840+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
3841+func_lo2o ()\
3842+{\
3843+\ case ${1} in\
3844+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
3845+\ *) func_lo2o_result=${1} ;;\
3846+\ esac\
3847+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
3848+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3849+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3850+test 0 -eq $? || _lt_function_replace_fail=:
3851+
3852+
3853+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
3854+func_xform ()\
3855+{\
3856+ func_xform_result=${1%.*}.lo\
3857+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
3858+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3859+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3860+test 0 -eq $? || _lt_function_replace_fail=:
3861+
3862+
3863+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
3864+func_arith ()\
3865+{\
3866+ func_arith_result=$(( $* ))\
3867+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
3868+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3869+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3870+test 0 -eq $? || _lt_function_replace_fail=:
3871+
3872+
3873+ sed -e '/^func_len ()$/,/^} # func_len /c\
3874+func_len ()\
3875+{\
3876+ func_len_result=${#1}\
3877+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
3878+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3879+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3880+test 0 -eq $? || _lt_function_replace_fail=:
3881+
3882+fi
3883+
3884+if test x"$lt_shell_append" = xyes; then
3885+ sed -e '/^func_append ()$/,/^} # func_append /c\
3886+func_append ()\
3887+{\
3888+ eval "${1}+=\\${2}"\
3889+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
3890+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3891+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3892+test 0 -eq $? || _lt_function_replace_fail=:
3893+
3894+
3895+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
3896+func_append_quoted ()\
3897+{\
3898+\ func_quote_for_eval "${2}"\
3899+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
3900+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
3901+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3902+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3903+test 0 -eq $? || _lt_function_replace_fail=:
3904+
3905+
3906+ # Save a `func_append' function call where possible by direct use of '+='
3907+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
3908+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3909+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3910+ test 0 -eq $? || _lt_function_replace_fail=:
3911+else
3912+ # Save a `func_append' function call even when '+=' is not available
3913+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
3914+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3915+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3916+ test 0 -eq $? || _lt_function_replace_fail=:
3917+fi
3918+
3919+if test x"$_lt_function_replace_fail" = x":"; then
3920+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
3921+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
3922+fi
3923+
3924+
3925+ mv -f "$cfgfile" "$ofile" ||
3926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3927 chmod +x "$ofile"
3928
3929diff --git a/gas/configure b/gas/configure
Patrick Williams213cb262021-08-07 19:21:33 -05003930index 789d1b38b33..7ac563a13ad 100755
Andrew Geissler82c905d2020-04-13 13:39:40 -05003931--- a/gas/configure
3932+++ b/gas/configure
Patrick Williams213cb262021-08-07 19:21:33 -05003933@@ -681,8 +681,11 @@ OTOOL
Andrew Geissler82c905d2020-04-13 13:39:40 -05003934 LIPO
3935 NMEDIT
3936 DSYMUTIL
3937+MANIFEST_TOOL
3938 RANLIB
3939+ac_ct_AR
3940 AR
3941+DLLTOOL
3942 OBJDUMP
3943 LN_S
3944 NM
Patrick Williams213cb262021-08-07 19:21:33 -05003945@@ -799,6 +802,7 @@ enable_static
Andrew Geissler82c905d2020-04-13 13:39:40 -05003946 with_pic
3947 enable_fast_install
3948 with_gnu_ld
3949+with_libtool_sysroot
3950 enable_libtool_lock
3951 enable_plugins
3952 enable_largefile
Patrick Williams213cb262021-08-07 19:21:33 -05003953@@ -1490,6 +1494,8 @@ Optional Packages:
Andrew Geissler82c905d2020-04-13 13:39:40 -05003954 --with-pic try to use only PIC/non-PIC objects [default=use
3955 both]
3956 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3957+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
3958+ (or the compiler's sysroot if not specified).
3959 --with-cpu=CPU default cpu variant is CPU (currently only supported
3960 on ARC)
3961 --with-system-zlib use installed libz
Patrick Williams213cb262021-08-07 19:21:33 -05003962@@ -4569,8 +4575,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05003963
3964
3965
3966-macro_version='2.2.7a'
3967-macro_revision='1.3134'
3968+macro_version='2.4'
3969+macro_revision='1.3293'
3970
3971
3972
Patrick Williams213cb262021-08-07 19:21:33 -05003973@@ -4610,7 +4616,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Andrew Geissler82c905d2020-04-13 13:39:40 -05003974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3975 $as_echo_n "checking how to print strings... " >&6; }
3976 # Test print first, because it will be a builtin if present.
3977-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3978+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3979 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3980 ECHO='print -r --'
3981 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Patrick Williams213cb262021-08-07 19:21:33 -05003982@@ -5296,8 +5302,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
Andrew Geissler82c905d2020-04-13 13:39:40 -05003983 # Try some XSI features
3984 xsi_shell=no
3985 ( _lt_dummy="a/b/c"
3986- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3987- = c,a/b,, \
3988+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3989+ = c,a/b,b/c, \
3990 && eval 'test $(( 1 + 1 )) -eq 2 \
3991 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3992 && xsi_shell=yes
Patrick Williams213cb262021-08-07 19:21:33 -05003993@@ -5346,6 +5352,80 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05003994
3995
3996
3997+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
3998+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
3999+if ${lt_cv_to_host_file_cmd+:} false; then :
4000+ $as_echo_n "(cached) " >&6
4001+else
4002+ case $host in
4003+ *-*-mingw* )
4004+ case $build in
4005+ *-*-mingw* ) # actually msys
4006+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4007+ ;;
4008+ *-*-cygwin* )
4009+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4010+ ;;
4011+ * ) # otherwise, assume *nix
4012+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4013+ ;;
4014+ esac
4015+ ;;
4016+ *-*-cygwin* )
4017+ case $build in
4018+ *-*-mingw* ) # actually msys
4019+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4020+ ;;
4021+ *-*-cygwin* )
4022+ lt_cv_to_host_file_cmd=func_convert_file_noop
4023+ ;;
4024+ * ) # otherwise, assume *nix
4025+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4026+ ;;
4027+ esac
4028+ ;;
4029+ * ) # unhandled hosts (and "normal" native builds)
4030+ lt_cv_to_host_file_cmd=func_convert_file_noop
4031+ ;;
4032+esac
4033+
4034+fi
4035+
4036+to_host_file_cmd=$lt_cv_to_host_file_cmd
4037+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4038+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4039+
4040+
4041+
4042+
4043+
4044+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4045+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4046+if ${lt_cv_to_tool_file_cmd+:} false; then :
4047+ $as_echo_n "(cached) " >&6
4048+else
4049+ #assume ordinary cross tools, or native build.
4050+lt_cv_to_tool_file_cmd=func_convert_file_noop
4051+case $host in
4052+ *-*-mingw* )
4053+ case $build in
4054+ *-*-mingw* ) # actually msys
4055+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4056+ ;;
4057+ esac
4058+ ;;
4059+esac
4060+
4061+fi
4062+
4063+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4064+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4065+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4066+
4067+
4068+
4069+
4070+
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4072 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4073 if ${lt_cv_ld_reload_flag+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05004074@@ -5362,6 +5442,11 @@ case $reload_flag in
Andrew Geissler82c905d2020-04-13 13:39:40 -05004075 esac
4076 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4077 case $host_os in
4078+ cygwin* | mingw* | pw32* | cegcc*)
4079+ if test "$GCC" != yes; then
4080+ reload_cmds=false
4081+ fi
4082+ ;;
4083 darwin*)
4084 if test "$GCC" = yes; then
4085 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Patrick Williams213cb262021-08-07 19:21:33 -05004086@@ -5530,7 +5615,8 @@ mingw* | pw32*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05004087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4088 lt_cv_file_magic_cmd='func_win32_libid'
4089 else
4090- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4091+ # Keep this pattern in sync with the one in func_win32_libid.
4092+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4093 lt_cv_file_magic_cmd='$OBJDUMP -f'
4094 fi
4095 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05004096@@ -5684,6 +5770,21 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05004097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4099 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4100+
4101+file_magic_glob=
4102+want_nocaseglob=no
4103+if test "$build" = "$host"; then
4104+ case $host_os in
4105+ mingw* | pw32*)
4106+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4107+ want_nocaseglob=yes
4108+ else
4109+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4110+ fi
4111+ ;;
4112+ esac
4113+fi
4114+
4115 file_magic_cmd=$lt_cv_file_magic_cmd
4116 deplibs_check_method=$lt_cv_deplibs_check_method
4117 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -05004118@@ -5699,6 +5800,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler82c905d2020-04-13 13:39:40 -05004119
4120
4121
4122+
4123+
4124+
4125+
4126+
4127+
4128+
4129+
4130+
4131+
4132+if test -n "$ac_tool_prefix"; then
4133+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4134+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4135+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136+$as_echo_n "checking for $ac_word... " >&6; }
4137+if ${ac_cv_prog_DLLTOOL+:} false; then :
4138+ $as_echo_n "(cached) " >&6
4139+else
4140+ if test -n "$DLLTOOL"; then
4141+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4142+else
4143+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144+for as_dir in $PATH
4145+do
4146+ IFS=$as_save_IFS
4147+ test -z "$as_dir" && as_dir=.
4148+ for ac_exec_ext in '' $ac_executable_extensions; do
4149+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4151+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152+ break 2
4153+ fi
4154+done
4155+ done
4156+IFS=$as_save_IFS
4157+
4158+fi
4159+fi
4160+DLLTOOL=$ac_cv_prog_DLLTOOL
4161+if test -n "$DLLTOOL"; then
4162+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4163+$as_echo "$DLLTOOL" >&6; }
4164+else
4165+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166+$as_echo "no" >&6; }
4167+fi
4168+
4169+
4170+fi
4171+if test -z "$ac_cv_prog_DLLTOOL"; then
4172+ ac_ct_DLLTOOL=$DLLTOOL
4173+ # Extract the first word of "dlltool", so it can be a program name with args.
4174+set dummy dlltool; ac_word=$2
4175+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176+$as_echo_n "checking for $ac_word... " >&6; }
4177+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4178+ $as_echo_n "(cached) " >&6
4179+else
4180+ if test -n "$ac_ct_DLLTOOL"; then
4181+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4182+else
4183+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184+for as_dir in $PATH
4185+do
4186+ IFS=$as_save_IFS
4187+ test -z "$as_dir" && as_dir=.
4188+ for ac_exec_ext in '' $ac_executable_extensions; do
4189+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4191+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192+ break 2
4193+ fi
4194+done
4195+ done
4196+IFS=$as_save_IFS
4197+
4198+fi
4199+fi
4200+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4201+if test -n "$ac_ct_DLLTOOL"; then
4202+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4203+$as_echo "$ac_ct_DLLTOOL" >&6; }
4204+else
4205+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206+$as_echo "no" >&6; }
4207+fi
4208+
4209+ if test "x$ac_ct_DLLTOOL" = x; then
4210+ DLLTOOL="false"
4211+ else
4212+ case $cross_compiling:$ac_tool_warned in
4213+yes:)
4214+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4215+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4216+ac_tool_warned=yes ;;
4217+esac
4218+ DLLTOOL=$ac_ct_DLLTOOL
4219+ fi
4220+else
4221+ DLLTOOL="$ac_cv_prog_DLLTOOL"
4222+fi
4223+
4224+test -z "$DLLTOOL" && DLLTOOL=dlltool
4225+
4226+
4227+
4228+
4229+
4230+
4231+
4232+
4233+
4234+
4235+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4236+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4237+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4238+ $as_echo_n "(cached) " >&6
4239+else
4240+ lt_cv_sharedlib_from_linklib_cmd='unknown'
4241+
4242+case $host_os in
4243+cygwin* | mingw* | pw32* | cegcc*)
4244+ # two different shell functions defined in ltmain.sh
4245+ # decide which to use based on capabilities of $DLLTOOL
4246+ case `$DLLTOOL --help 2>&1` in
4247+ *--identify-strict*)
4248+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4249+ ;;
4250+ *)
4251+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4252+ ;;
4253+ esac
4254+ ;;
4255+*)
4256+ # fallback: assume linklib IS sharedlib
4257+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4258+ ;;
4259+esac
4260+
4261+fi
4262+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4263+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4264+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4265+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4266+
4267+
4268+
4269+
4270+
4271+
4272+
Patrick Williams213cb262021-08-07 19:21:33 -05004273 plugin_option=
4274 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4275 for plugin in $plugin_names; do
4276@@ -5713,8 +5965,10 @@ for plugin in $plugin_names; do
4277 done
4278
Andrew Geissler82c905d2020-04-13 13:39:40 -05004279 if test -n "$ac_tool_prefix"; then
4280- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4281-set dummy ${ac_tool_prefix}ar; ac_word=$2
4282+ for ac_prog in ar
4283+ do
4284+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4285+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05004289@@ -5730,7 +5984,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -05004290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293- ac_cv_prog_AR="${ac_tool_prefix}ar"
4294+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
Patrick Williams213cb262021-08-07 19:21:33 -05004298@@ -5750,11 +6004,15 @@ $as_echo "no" >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05004299 fi
4300
4301
4302+ test -n "$AR" && break
4303+ done
4304 fi
4305-if test -z "$ac_cv_prog_AR"; then
4306+if test -z "$AR"; then
4307 ac_ct_AR=$AR
4308- # Extract the first word of "ar", so it can be a program name with args.
4309-set dummy ar; ac_word=$2
4310+ for ac_prog in ar
4311+do
4312+ # Extract the first word of "$ac_prog", so it can be a program name with args.
4313+set dummy $ac_prog; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05004317@@ -5770,7 +6028,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -05004318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321- ac_cv_prog_ac_ct_AR="ar"
4322+ ac_cv_prog_ac_ct_AR="$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
Patrick Williams213cb262021-08-07 19:21:33 -05004326@@ -5789,6 +6047,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05004327 $as_echo "no" >&6; }
4328 fi
4329
4330+
4331+ test -n "$ac_ct_AR" && break
4332+done
4333+
4334 if test "x$ac_ct_AR" = x; then
4335 AR="false"
4336 else
Patrick Williams213cb262021-08-07 19:21:33 -05004337@@ -5800,29 +6062,81 @@ ac_tool_warned=yes ;;
Andrew Geissler82c905d2020-04-13 13:39:40 -05004338 esac
4339 AR=$ac_ct_AR
4340 fi
4341-else
4342- AR="$ac_cv_prog_AR"
4343 fi
4344
4345-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -05004346-if test -n "$plugin_option"; then
4347- if $AR --help 2>&1 | grep -q "\--plugin"; then
4348- touch conftest.c
4349- $AR $plugin_option rc conftest.a conftest.c
4350- if test "$?" != 0; then
4351- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
4352+ touch conftest.c
4353+ $AR $plugin_option rc conftest.a conftest.c
4354+ if test "$?" != 0; then
4355+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
4356 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
4357- else
4358- AR="$AR $plugin_option"
4359- fi
4360- rm -f conftest.*
4361+ else
4362+ AR="$AR $plugin_option"
4363 fi
4364-fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05004365-test -z "$AR_FLAGS" && AR_FLAGS=cru
Patrick Williams213cb262021-08-07 19:21:33 -05004366+ rm -f conftest.*
Andrew Geissler82c905d2020-04-13 13:39:40 -05004367+: ${AR=ar}
4368+: ${AR_FLAGS=cru}
Patrick Williams213cb262021-08-07 19:21:33 -05004369+
4370+
4371+
4372+
4373+
4374+
4375+
4376+
4377+
4378+
4379+
Andrew Geissler82c905d2020-04-13 13:39:40 -05004380+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4381+$as_echo_n "checking for archiver @FILE support... " >&6; }
4382+if ${lt_cv_ar_at_file+:} false; then :
4383+ $as_echo_n "(cached) " >&6
4384+else
4385+ lt_cv_ar_at_file=no
4386+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387+/* end confdefs.h. */
4388+
4389+int
4390+main ()
4391+{
Patrick Williams213cb262021-08-07 19:21:33 -05004392
Andrew Geissler82c905d2020-04-13 13:39:40 -05004393+ ;
4394+ return 0;
4395+}
4396+_ACEOF
4397+if ac_fn_c_try_compile "$LINENO"; then :
4398+ echo conftest.$ac_objext > conftest.lst
4399+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4400+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4401+ (eval $lt_ar_try) 2>&5
4402+ ac_status=$?
4403+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404+ test $ac_status = 0; }
4405+ if test "$ac_status" -eq 0; then
4406+ # Ensure the archiver fails upon bogus file names.
4407+ rm -f conftest.$ac_objext libconftest.a
4408+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4409+ (eval $lt_ar_try) 2>&5
4410+ ac_status=$?
4411+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412+ test $ac_status = 0; }
4413+ if test "$ac_status" -ne 0; then
4414+ lt_cv_ar_at_file=@
4415+ fi
4416+ fi
4417+ rm -f conftest.* libconftest.a
Patrick Williams213cb262021-08-07 19:21:33 -05004418
Andrew Geissler82c905d2020-04-13 13:39:40 -05004419+fi
4420+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -05004421
Andrew Geissler82c905d2020-04-13 13:39:40 -05004422+fi
4423+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4424+$as_echo "$lt_cv_ar_at_file" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -05004425
Andrew Geissler82c905d2020-04-13 13:39:40 -05004426+if test "x$lt_cv_ar_at_file" = xno; then
4427+ archiver_list_spec=
4428+else
4429+ archiver_list_spec=$lt_cv_ar_at_file
4430+fi
Patrick Williams213cb262021-08-07 19:21:33 -05004431
4432
4433
4434@@ -6169,8 +6483,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05004435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4436
4437 # Transform an extracted symbol line into symbol name and symbol address
4438-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4439-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'"
4440+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4441+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'"
4442
4443 # Handle CRLF in mingw tool chain
4444 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -05004445@@ -6206,6 +6520,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler82c905d2020-04-13 13:39:40 -05004446 else
4447 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4448 fi
4449+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4450
4451 # Check to see that the pipe works correctly.
4452 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -05004453@@ -6247,6 +6562,18 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4456 cat <<_LT_EOF > conftest.$ac_ext
4457+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4458+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4459+/* DATA imports from DLLs on WIN32 con't be const, because runtime
4460+ relocations are performed -- see ld's documentation on pseudo-relocs. */
4461+# define LT_DLSYM_CONST
4462+#elif defined(__osf__)
4463+/* This system does not cope well with relocations in const data. */
4464+# define LT_DLSYM_CONST
4465+#else
4466+# define LT_DLSYM_CONST const
4467+#endif
4468+
4469 #ifdef __cplusplus
4470 extern "C" {
4471 #endif
Patrick Williams213cb262021-08-07 19:21:33 -05004472@@ -6258,7 +6585,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004473 cat <<_LT_EOF >> conftest.$ac_ext
4474
4475 /* The mapping between symbol names and symbols. */
4476-const struct {
4477+LT_DLSYM_CONST struct {
4478 const char *name;
4479 void *address;
4480 }
Patrick Williams213cb262021-08-07 19:21:33 -05004481@@ -6284,8 +6611,8 @@ static const void *lt_preloaded_setup() {
Andrew Geissler82c905d2020-04-13 13:39:40 -05004482 _LT_EOF
4483 # Now try linking the two files.
4484 mv conftest.$ac_objext conftstm.$ac_objext
4485- lt_save_LIBS="$LIBS"
4486- lt_save_CFLAGS="$CFLAGS"
4487+ lt_globsym_save_LIBS=$LIBS
4488+ lt_globsym_save_CFLAGS=$CFLAGS
4489 LIBS="conftstm.$ac_objext"
4490 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Patrick Williams213cb262021-08-07 19:21:33 -05004492@@ -6295,8 +6622,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004493 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
4494 pipe_works=yes
4495 fi
4496- LIBS="$lt_save_LIBS"
4497- CFLAGS="$lt_save_CFLAGS"
4498+ LIBS=$lt_globsym_save_LIBS
4499+ CFLAGS=$lt_globsym_save_CFLAGS
4500 else
4501 echo "cannot find nm_test_func in $nlist" >&5
4502 fi
Patrick Williams213cb262021-08-07 19:21:33 -05004503@@ -6333,6 +6660,19 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05004504 $as_echo "ok" >&6; }
4505 fi
4506
4507+# Response file support.
4508+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4509+ nm_file_list_spec='@'
4510+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
4511+ nm_file_list_spec='@'
4512+fi
4513+
4514+
4515+
4516+
4517+
4518+
4519+
Patrick Williams213cb262021-08-07 19:21:33 -05004520
4521
4522
4523@@ -6349,6 +6689,42 @@ fi
4524
4525
4526
Andrew Geissler82c905d2020-04-13 13:39:40 -05004527+
4528+
Andrew Geissler82c905d2020-04-13 13:39:40 -05004529+
4530+
4531+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
4532+$as_echo_n "checking for sysroot... " >&6; }
4533+
4534+# Check whether --with-libtool-sysroot was given.
4535+if test "${with_libtool_sysroot+set}" = set; then :
4536+ withval=$with_libtool_sysroot;
4537+else
4538+ with_libtool_sysroot=no
4539+fi
4540+
4541+
4542+lt_sysroot=
4543+case ${with_libtool_sysroot} in #(
4544+ yes)
4545+ if test "$GCC" = yes; then
4546+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
4547+ fi
4548+ ;; #(
4549+ /*)
4550+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
4551+ ;; #(
4552+ no|'')
4553+ ;; #(
4554+ *)
4555+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
4556+$as_echo "${with_libtool_sysroot}" >&6; }
4557+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
4558+ ;;
4559+esac
4560+
4561+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
4562+$as_echo "${lt_sysroot:-no}" >&6; }
4563
4564
4565
Patrick Williams213cb262021-08-07 19:21:33 -05004566@@ -6560,6 +6936,123 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05004567
4568 need_locks="$enable_libtool_lock"
4569
4570+if test -n "$ac_tool_prefix"; then
4571+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
4572+set dummy ${ac_tool_prefix}mt; ac_word=$2
4573+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574+$as_echo_n "checking for $ac_word... " >&6; }
4575+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
4576+ $as_echo_n "(cached) " >&6
4577+else
4578+ if test -n "$MANIFEST_TOOL"; then
4579+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
4580+else
4581+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582+for as_dir in $PATH
4583+do
4584+ IFS=$as_save_IFS
4585+ test -z "$as_dir" && as_dir=.
4586+ for ac_exec_ext in '' $ac_executable_extensions; do
4587+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
4589+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590+ break 2
4591+ fi
4592+done
4593+ done
4594+IFS=$as_save_IFS
4595+
4596+fi
4597+fi
4598+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
4599+if test -n "$MANIFEST_TOOL"; then
4600+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
4601+$as_echo "$MANIFEST_TOOL" >&6; }
4602+else
4603+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604+$as_echo "no" >&6; }
4605+fi
4606+
4607+
4608+fi
4609+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
4610+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
4611+ # Extract the first word of "mt", so it can be a program name with args.
4612+set dummy mt; ac_word=$2
4613+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614+$as_echo_n "checking for $ac_word... " >&6; }
4615+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
4616+ $as_echo_n "(cached) " >&6
4617+else
4618+ if test -n "$ac_ct_MANIFEST_TOOL"; then
4619+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
4620+else
4621+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622+for as_dir in $PATH
4623+do
4624+ IFS=$as_save_IFS
4625+ test -z "$as_dir" && as_dir=.
4626+ for ac_exec_ext in '' $ac_executable_extensions; do
4627+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
4629+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630+ break 2
4631+ fi
4632+done
4633+ done
4634+IFS=$as_save_IFS
4635+
4636+fi
4637+fi
4638+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
4639+if test -n "$ac_ct_MANIFEST_TOOL"; then
4640+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
4641+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
4642+else
4643+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644+$as_echo "no" >&6; }
4645+fi
4646+
4647+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
4648+ MANIFEST_TOOL=":"
4649+ else
4650+ case $cross_compiling:$ac_tool_warned in
4651+yes:)
4652+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4653+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4654+ac_tool_warned=yes ;;
4655+esac
4656+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
4657+ fi
4658+else
4659+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
4660+fi
4661+
4662+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4663+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
4664+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
4665+if ${lt_cv_path_mainfest_tool+:} false; then :
4666+ $as_echo_n "(cached) " >&6
4667+else
4668+ lt_cv_path_mainfest_tool=no
4669+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
4670+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4671+ cat conftest.err >&5
4672+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4673+ lt_cv_path_mainfest_tool=yes
4674+ fi
4675+ rm -f conftest*
4676+fi
4677+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
4678+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
4679+if test "x$lt_cv_path_mainfest_tool" != xyes; then
4680+ MANIFEST_TOOL=:
4681+fi
4682+
4683+
4684+
4685+
4686+
4687
4688 case $host_os in
4689 rhapsody* | darwin*)
Patrick Williams213cb262021-08-07 19:21:33 -05004690@@ -7123,6 +7616,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004691 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
4692 echo "$AR cru libconftest.a conftest.o" >&5
4693 $AR cru libconftest.a conftest.o 2>&5
4694+ echo "$RANLIB libconftest.a" >&5
4695+ $RANLIB libconftest.a 2>&5
4696 cat > conftest.c << _LT_EOF
4697 int main() { return 0;}
4698 _LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05004699@@ -7318,7 +7813,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05004700 LIBTOOL_DEPS="$ltmain"
4701
4702 # Always use our own libtool.
4703-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4704+LIBTOOL='$(SHELL) $(top_builddir)'
4705+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
4706
4707
4708
Patrick Williams213cb262021-08-07 19:21:33 -05004709@@ -7407,7 +7903,7 @@ aix3*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05004710 esac
4711
4712 # Global variables:
4713-ofile=libtool
4714+ofile=${host_alias}-libtool
4715 can_build_shared=yes
4716
4717 # All known linkers require a `.a' archive for static linking (except MSVC,
Patrick Williams213cb262021-08-07 19:21:33 -05004718@@ -7705,8 +8201,6 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05004719 lt_prog_compiler_pic=
4720 lt_prog_compiler_static=
4721
4722-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
4723-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
4724
4725 if test "$GCC" = yes; then
4726 lt_prog_compiler_wl='-Wl,'
Patrick Williams213cb262021-08-07 19:21:33 -05004727@@ -7872,6 +8366,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05004728 lt_prog_compiler_pic='--shared'
4729 lt_prog_compiler_static='--static'
4730 ;;
4731+ nagfor*)
4732+ # NAG Fortran compiler
4733+ lt_prog_compiler_wl='-Wl,-Wl,,'
4734+ lt_prog_compiler_pic='-PIC'
4735+ lt_prog_compiler_static='-Bstatic'
4736+ ;;
4737 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4738 # Portland Group compilers (*not* the Pentium gcc compiler,
4739 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -05004740@@ -7934,7 +8434,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05004741 lt_prog_compiler_pic='-KPIC'
4742 lt_prog_compiler_static='-Bstatic'
4743 case $cc_basename in
4744- f77* | f90* | f95*)
4745+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4746 lt_prog_compiler_wl='-Qoption ld ';;
4747 *)
4748 lt_prog_compiler_wl='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -05004749@@ -7991,13 +8491,17 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -05004750 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
4751 ;;
4752 esac
4753-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
4754-$as_echo "$lt_prog_compiler_pic" >&6; }
4755-
4756-
4757-
4758-
4759
4760+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
4761+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
4762+if ${lt_cv_prog_compiler_pic+:} false; then :
4763+ $as_echo_n "(cached) " >&6
4764+else
4765+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
4766+fi
4767+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
4768+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
4769+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
4770
4771 #
4772 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -05004773@@ -8058,6 +8562,11 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05004774
4775
4776
4777+
4778+
4779+
4780+
4781+
4782 #
4783 # Check to make sure the static flag actually works.
4784 #
Patrick Williams213cb262021-08-07 19:21:33 -05004785@@ -8408,7 +8917,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004786 allow_undefined_flag=unsupported
4787 always_export_symbols=no
4788 enable_shared_with_static_runtimes=yes
4789- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
4790+ 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'
4791+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
4792
4793 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Patrick Williams213cb262021-08-07 19:21:33 -05004795@@ -8507,12 +9017,12 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004796 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
4797 hardcode_libdir_flag_spec=
4798 hardcode_libdir_flag_spec_ld='-rpath $libdir'
4799- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4800+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4801 if test "x$supports_anon_versioning" = xyes; then
4802 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
4803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4804 echo "local: *; };" >> $output_objdir/$libname.ver~
4805- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4806+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4807 fi
4808 ;;
4809 esac
Patrick Williams213cb262021-08-07 19:21:33 -05004810@@ -8526,8 +9036,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004811 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4812 wlarc=
4813 else
4814- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4815- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4816+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4817+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4818 fi
4819 ;;
4820
Patrick Williams213cb262021-08-07 19:21:33 -05004821@@ -8545,8 +9055,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004822
4823 _LT_EOF
4824 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4825- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4826- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4827+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4828+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4829 else
4830 ld_shlibs=no
4831 fi
Patrick Williams213cb262021-08-07 19:21:33 -05004832@@ -8592,8 +9102,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004833
4834 *)
4835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4836- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4837- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4838+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4839+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4840 else
4841 ld_shlibs=no
4842 fi
Patrick Williams213cb262021-08-07 19:21:33 -05004843@@ -8723,7 +9233,13 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05004844 allow_undefined_flag='-berok'
4845 # Determine the default libpath from the value encoded in an
4846 # empty executable.
4847- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848+ if test "${lt_cv_aix_libpath+set}" = set; then
4849+ aix_libpath=$lt_cv_aix_libpath
4850+else
4851+ if ${lt_cv_aix_libpath_+:} false; then :
4852+ $as_echo_n "(cached) " >&6
4853+else
4854+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856
4857 int
Patrick Williams213cb262021-08-07 19:21:33 -05004858@@ -8736,22 +9252,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05004859 _ACEOF
4860 if ac_fn_c_try_link "$LINENO"; then :
4861
4862-lt_aix_libpath_sed='
4863- /Import File Strings/,/^$/ {
4864- /^0/ {
4865- s/^0 *\(.*\)$/\1/
4866- p
4867- }
4868- }'
4869-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4870-# Check for a 64-bit object if we didn't find anything.
4871-if test -z "$aix_libpath"; then
4872- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4873-fi
4874+ lt_aix_libpath_sed='
4875+ /Import File Strings/,/^$/ {
4876+ /^0/ {
4877+ s/^0 *\([^ ]*\) *$/\1/
4878+ p
4879+ }
4880+ }'
4881+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4882+ # Check for a 64-bit object if we didn't find anything.
4883+ if test -z "$lt_cv_aix_libpath_"; then
4884+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4885+ fi
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext \
4888 conftest$ac_exeext conftest.$ac_ext
4889-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4890+ if test -z "$lt_cv_aix_libpath_"; then
4891+ lt_cv_aix_libpath_="/usr/lib:/lib"
4892+ fi
4893+
4894+fi
4895+
4896+ aix_libpath=$lt_cv_aix_libpath_
4897+fi
4898
4899 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4900 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"
Patrick Williams213cb262021-08-07 19:21:33 -05004901@@ -8763,7 +9286,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05004902 else
4903 # Determine the default libpath from the value encoded in an
4904 # empty executable.
4905- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906+ if test "${lt_cv_aix_libpath+set}" = set; then
4907+ aix_libpath=$lt_cv_aix_libpath
4908+else
4909+ if ${lt_cv_aix_libpath_+:} false; then :
4910+ $as_echo_n "(cached) " >&6
4911+else
4912+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914
4915 int
Patrick Williams213cb262021-08-07 19:21:33 -05004916@@ -8776,22 +9305,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05004917 _ACEOF
4918 if ac_fn_c_try_link "$LINENO"; then :
4919
4920-lt_aix_libpath_sed='
4921- /Import File Strings/,/^$/ {
4922- /^0/ {
4923- s/^0 *\(.*\)$/\1/
4924- p
4925- }
4926- }'
4927-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4928-# Check for a 64-bit object if we didn't find anything.
4929-if test -z "$aix_libpath"; then
4930- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4931-fi
4932+ lt_aix_libpath_sed='
4933+ /Import File Strings/,/^$/ {
4934+ /^0/ {
4935+ s/^0 *\([^ ]*\) *$/\1/
4936+ p
4937+ }
4938+ }'
4939+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4940+ # Check for a 64-bit object if we didn't find anything.
4941+ if test -z "$lt_cv_aix_libpath_"; then
4942+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4943+ fi
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext \
4946 conftest$ac_exeext conftest.$ac_ext
4947-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4948+ if test -z "$lt_cv_aix_libpath_"; then
4949+ lt_cv_aix_libpath_="/usr/lib:/lib"
4950+ fi
4951+
4952+fi
4953+
4954+ aix_libpath=$lt_cv_aix_libpath_
4955+fi
4956
4957 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4958 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -05004959@@ -8836,20 +9372,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05004960 # Microsoft Visual C++.
4961 # hardcode_libdir_flag_spec is actually meaningless, as there is
4962 # no search path for DLLs.
4963- hardcode_libdir_flag_spec=' '
4964- allow_undefined_flag=unsupported
4965- # Tell ltmain to make .lib files, not .a files.
4966- libext=lib
4967- # Tell ltmain to make .dll files, not .so files.
4968- shrext_cmds=".dll"
4969- # FIXME: Setting linknames here is a bad hack.
4970- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4971- # The linker will automatically build a .lib file if we build a DLL.
4972- old_archive_from_new_cmds='true'
4973- # FIXME: Should let the user specify the lib program.
4974- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
4975- fix_srcfile_path='`cygpath -w "$srcfile"`'
4976- enable_shared_with_static_runtimes=yes
4977+ case $cc_basename in
4978+ cl*)
4979+ # Native MSVC
4980+ hardcode_libdir_flag_spec=' '
4981+ allow_undefined_flag=unsupported
4982+ always_export_symbols=yes
4983+ file_list_spec='@'
4984+ # Tell ltmain to make .lib files, not .a files.
4985+ libext=lib
4986+ # Tell ltmain to make .dll files, not .so files.
4987+ shrext_cmds=".dll"
4988+ # FIXME: Setting linknames here is a bad hack.
4989+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
4990+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4991+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
4992+ else
4993+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
4994+ fi~
4995+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
4996+ linknames='
4997+ # The linker will not automatically build a static lib if we build a DLL.
4998+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
4999+ enable_shared_with_static_runtimes=yes
5000+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
5001+ # Don't use ranlib
5002+ old_postinstall_cmds='chmod 644 $oldlib'
5003+ postlink_cmds='lt_outputfile="@OUTPUT@"~
5004+ lt_tool_outputfile="@TOOL_OUTPUT@"~
5005+ case $lt_outputfile in
5006+ *.exe|*.EXE) ;;
5007+ *)
5008+ lt_outputfile="$lt_outputfile.exe"
5009+ lt_tool_outputfile="$lt_tool_outputfile.exe"
5010+ ;;
5011+ esac~
5012+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5013+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5014+ $RM "$lt_outputfile.manifest";
5015+ fi'
5016+ ;;
5017+ *)
5018+ # Assume MSVC wrapper
5019+ hardcode_libdir_flag_spec=' '
5020+ allow_undefined_flag=unsupported
5021+ # Tell ltmain to make .lib files, not .a files.
5022+ libext=lib
5023+ # Tell ltmain to make .dll files, not .so files.
5024+ shrext_cmds=".dll"
5025+ # FIXME: Setting linknames here is a bad hack.
5026+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5027+ # The linker will automatically build a .lib file if we build a DLL.
5028+ old_archive_from_new_cmds='true'
5029+ # FIXME: Should let the user specify the lib program.
5030+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
5031+ enable_shared_with_static_runtimes=yes
5032+ ;;
5033+ esac
5034 ;;
5035
5036 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -05005037@@ -8910,7 +9489,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05005038
5039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5040 freebsd* | dragonfly*)
5041- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5042+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5043 hardcode_libdir_flag_spec='-R$libdir'
5044 hardcode_direct=yes
5045 hardcode_shlibpath_var=no
Patrick Williams213cb262021-08-07 19:21:33 -05005046@@ -8918,7 +9497,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05005047
5048 hpux9*)
5049 if test "$GCC" = yes; then
5050- 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'
5051+ 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'
5052 else
5053 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'
5054 fi
Patrick Williams213cb262021-08-07 19:21:33 -05005055@@ -8934,7 +9513,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05005056
5057 hpux10*)
5058 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5059- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5060+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5061 else
5062 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5063 fi
Patrick Williams213cb262021-08-07 19:21:33 -05005064@@ -8958,10 +9537,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05005065 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5066 ;;
5067 ia64*)
5068- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5069+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5070 ;;
5071 *)
5072- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5073+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5074 ;;
5075 esac
5076 else
Patrick Williams213cb262021-08-07 19:21:33 -05005077@@ -9040,23 +9619,36 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05005078
5079 irix5* | irix6* | nonstopux*)
5080 if test "$GCC" = yes; then
5081- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5082+ 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'
5083 # Try to use the -exported_symbol ld option, if it does not
5084 # work, assume that -exports_file does not work either and
5085 # implicitly export all symbols.
5086- save_LDFLAGS="$LDFLAGS"
5087- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5088- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089+ # This should be the same for all languages, so no per-tag cache variable.
5090+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
5091+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
5092+if ${lt_cv_irix_exported_symbol+:} false; then :
5093+ $as_echo_n "(cached) " >&6
5094+else
5095+ save_LDFLAGS="$LDFLAGS"
5096+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5097+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099-int foo(void) {}
5100+int foo (void) { return 0; }
5101 _ACEOF
5102 if ac_fn_c_try_link "$LINENO"; then :
5103- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5104-
5105+ lt_cv_irix_exported_symbol=yes
5106+else
5107+ lt_cv_irix_exported_symbol=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext \
5110 conftest$ac_exeext conftest.$ac_ext
5111- LDFLAGS="$save_LDFLAGS"
5112+ LDFLAGS="$save_LDFLAGS"
5113+fi
5114+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
5115+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
5116+ if test "$lt_cv_irix_exported_symbol" = yes; then
5117+ 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'
5118+ fi
5119 else
5120 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'
5121 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'
Patrick Williams213cb262021-08-07 19:21:33 -05005122@@ -9141,7 +9733,7 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05005123 osf4* | osf5*) # as osf3* with the addition of -msym flag
5124 if test "$GCC" = yes; then
5125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5126- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5127+ 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'
5128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5129 else
5130 allow_undefined_flag=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -05005131@@ -9160,9 +9752,9 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05005132 no_undefined_flag=' -z defs'
5133 if test "$GCC" = yes; then
5134 wlarc='${wl}'
5135- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5136+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5137 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5138- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5139+ $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'
5140 else
5141 case `$CC -V 2>&1` in
5142 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -05005143@@ -9738,8 +10330,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05005144 need_version=no
5145 need_lib_prefix=no
5146
5147- case $GCC,$host_os in
5148- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
5149+ case $GCC,$cc_basename in
5150+ yes,*)
5151+ # gcc
5152 library_names_spec='$libname.dll.a'
5153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
5154 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -05005155@@ -9772,13 +10365,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05005156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5157 ;;
5158 esac
5159+ dynamic_linker='Win32 ld.exe'
5160+ ;;
5161+
5162+ *,cl*)
5163+ # Native MSVC
5164+ libname_spec='$name'
5165+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5166+ library_names_spec='${libname}.dll.lib'
5167+
5168+ case $build_os in
5169+ mingw*)
5170+ sys_lib_search_path_spec=
5171+ lt_save_ifs=$IFS
5172+ IFS=';'
5173+ for lt_path in $LIB
5174+ do
5175+ IFS=$lt_save_ifs
5176+ # Let DOS variable expansion print the short 8.3 style file name.
5177+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
5178+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
5179+ done
5180+ IFS=$lt_save_ifs
5181+ # Convert to MSYS style.
5182+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
5183+ ;;
5184+ cygwin*)
5185+ # Convert to unix form, then to dos form, then back to unix form
5186+ # but this time dos style (no spaces!) so that the unix form looks
5187+ # like /cygdrive/c/PROGRA~1:/cygdr...
5188+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
5189+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
5190+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5191+ ;;
5192+ *)
5193+ sys_lib_search_path_spec="$LIB"
5194+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
5195+ # It is most probably a Windows format PATH.
5196+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
5197+ else
5198+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5199+ fi
5200+ # FIXME: find the short name or the path components, as spaces are
5201+ # common. (e.g. "Program Files" -> "PROGRA~1")
5202+ ;;
5203+ esac
5204+
5205+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
5206+ postinstall_cmds='base_file=`basename \${file}`~
5207+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
5208+ dldir=$destdir/`dirname \$dlpath`~
5209+ test -d \$dldir || mkdir -p \$dldir~
5210+ $install_prog $dir/$dlname \$dldir/$dlname'
5211+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5212+ dlpath=$dir/\$dldll~
5213+ $RM \$dlpath'
5214+ shlibpath_overrides_runpath=yes
5215+ dynamic_linker='Win32 link.exe'
5216 ;;
5217
5218 *)
5219+ # Assume MSVC wrapper
5220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
5221+ dynamic_linker='Win32 ld.exe'
5222 ;;
5223 esac
5224- dynamic_linker='Win32 ld.exe'
5225 # FIXME: first we should search . and the directory the executable is in
5226 shlibpath_var=PATH
5227 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05005228@@ -9860,7 +10511,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05005229 soname_spec='${libname}${release}${shared_ext}$major'
5230 shlibpath_var=LIBRARY_PATH
5231 shlibpath_overrides_runpath=yes
5232- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
5233+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
5234 hardcode_into_libs=yes
5235 ;;
5236
Patrick Williams213cb262021-08-07 19:21:33 -05005237@@ -10656,7 +11307,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05005238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5239 lt_status=$lt_dlunknown
5240 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05005241-#line 10659 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05005242+#line $LINENO "configure"
5243 #include "confdefs.h"
5244
5245 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05005246@@ -10700,10 +11351,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05005247 /* When -fvisbility=hidden is used, assume the code has been annotated
5248 correspondingly for the symbols needed. */
5249 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
5250-void fnord () __attribute__((visibility("default")));
5251+int fnord () __attribute__((visibility("default")));
5252 #endif
5253
5254-void fnord () { int i=42; }
5255+int fnord () { return 42; }
5256 int main ()
5257 {
5258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05005259@@ -10762,7 +11413,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05005260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5261 lt_status=$lt_dlunknown
5262 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05005263-#line 10765 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05005264+#line $LINENO "configure"
5265 #include "confdefs.h"
5266
5267 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05005268@@ -10806,10 +11457,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05005269 /* When -fvisbility=hidden is used, assume the code has been annotated
5270 correspondingly for the symbols needed. */
5271 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
5272-void fnord () __attribute__((visibility("default")));
5273+int fnord () __attribute__((visibility("default")));
5274 #endif
5275
5276-void fnord () { int i=42; }
5277+int fnord () { return 42; }
5278 int main ()
5279 {
5280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05005281@@ -14785,13 +15436,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Andrew Geissler82c905d2020-04-13 13:39:40 -05005282 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
5283 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
5284 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
5285+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
5286+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
5287 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
5288 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
5289 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
5290 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
5291 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
5292+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
5293+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
5294+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
5295+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
5296 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
5297 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
5298+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
5299 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
5300 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
5301 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05005302@@ -14806,14 +15464,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
Andrew Geissler82c905d2020-04-13 13:39:40 -05005303 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
5304 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
5305 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"`'
5306+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
5307+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
5308 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
5309 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
5310 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
5311-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
5312 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
5313+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
5314 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
5315 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
5316 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
5317+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
5318 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
5319 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
5320 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05005321@@ -14846,12 +15507,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
Andrew Geissler82c905d2020-04-13 13:39:40 -05005322 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
5323 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
5324 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
5325-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
5326 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
5327 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
5328 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
5329 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
5330 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
5331+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
5332 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
5333 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
5334 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05005335@@ -14906,8 +15567,13 @@ reload_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05005336 OBJDUMP \
5337 deplibs_check_method \
5338 file_magic_cmd \
5339+file_magic_glob \
5340+want_nocaseglob \
5341+DLLTOOL \
5342+sharedlib_from_linklib_cmd \
5343 AR \
5344 AR_FLAGS \
5345+archiver_list_spec \
5346 STRIP \
5347 RANLIB \
5348 CC \
Patrick Williams213cb262021-08-07 19:21:33 -05005349@@ -14917,12 +15583,14 @@ lt_cv_sys_global_symbol_pipe \
Andrew Geissler82c905d2020-04-13 13:39:40 -05005350 lt_cv_sys_global_symbol_to_cdecl \
5351 lt_cv_sys_global_symbol_to_c_name_address \
5352 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
5353+nm_file_list_spec \
5354 lt_prog_compiler_no_builtin_flag \
5355-lt_prog_compiler_wl \
5356 lt_prog_compiler_pic \
5357+lt_prog_compiler_wl \
5358 lt_prog_compiler_static \
5359 lt_cv_prog_compiler_c_o \
5360 need_locks \
5361+MANIFEST_TOOL \
5362 DSYMUTIL \
5363 NMEDIT \
5364 LIPO \
Patrick Williams213cb262021-08-07 19:21:33 -05005365@@ -14938,7 +15606,6 @@ no_undefined_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05005366 hardcode_libdir_flag_spec \
5367 hardcode_libdir_flag_spec_ld \
5368 hardcode_libdir_separator \
5369-fix_srcfile_path \
5370 exclude_expsyms \
5371 include_expsyms \
5372 file_list_spec \
Patrick Williams213cb262021-08-07 19:21:33 -05005373@@ -14974,6 +15641,7 @@ module_cmds \
Andrew Geissler82c905d2020-04-13 13:39:40 -05005374 module_expsym_cmds \
5375 export_symbols_cmds \
5376 prelink_cmds \
5377+postlink_cmds \
5378 postinstall_cmds \
5379 postuninstall_cmds \
5380 finish_cmds \
Patrick Williams213cb262021-08-07 19:21:33 -05005381@@ -15747,7 +16415,8 @@ $as_echo X"$file" |
Andrew Geissler82c905d2020-04-13 13:39:40 -05005382 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5383 #
5384 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
5385-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5386+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
5387+# Inc.
5388 # Written by Gordon Matzigkeit, 1996
5389 #
5390 # This file is part of GNU Libtool.
Patrick Williams213cb262021-08-07 19:21:33 -05005391@@ -15850,19 +16519,42 @@ SP2NL=$lt_lt_SP2NL
Andrew Geissler82c905d2020-04-13 13:39:40 -05005392 # turn newlines into spaces.
5393 NL2SP=$lt_lt_NL2SP
5394
5395+# convert \$build file names to \$host format.
5396+to_host_file_cmd=$lt_cv_to_host_file_cmd
5397+
5398+# convert \$build files to toolchain format.
5399+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5400+
5401 # An object symbol dumper.
5402 OBJDUMP=$lt_OBJDUMP
5403
5404 # Method to check whether dependent libraries are shared objects.
5405 deplibs_check_method=$lt_deplibs_check_method
5406
5407-# Command to use when deplibs_check_method == "file_magic".
5408+# Command to use when deplibs_check_method = "file_magic".
5409 file_magic_cmd=$lt_file_magic_cmd
5410
5411+# How to find potential files when deplibs_check_method = "file_magic".
5412+file_magic_glob=$lt_file_magic_glob
5413+
5414+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
5415+want_nocaseglob=$lt_want_nocaseglob
5416+
5417+# DLL creation program.
5418+DLLTOOL=$lt_DLLTOOL
5419+
5420+# Command to associate shared and link libraries.
5421+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
5422+
5423 # The archiver.
5424 AR=$lt_AR
5425+
5426+# Flags to create an archive.
5427 AR_FLAGS=$lt_AR_FLAGS
5428
5429+# How to feed a file listing to the archiver.
5430+archiver_list_spec=$lt_archiver_list_spec
5431+
5432 # A symbol stripping program.
5433 STRIP=$lt_STRIP
5434
Patrick Williams213cb262021-08-07 19:21:33 -05005435@@ -15892,6 +16584,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Andrew Geissler82c905d2020-04-13 13:39:40 -05005436 # Transform the output of nm in a C name address pair when lib prefix is needed.
5437 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
5438
5439+# Specify filename containing input files for \$NM.
5440+nm_file_list_spec=$lt_nm_file_list_spec
5441+
5442+# The root where to search for dependent libraries,and in which our libraries should be installed.
5443+lt_sysroot=$lt_sysroot
5444+
5445 # The name of the directory that contains temporary libtool files.
5446 objdir=$objdir
5447
Patrick Williams213cb262021-08-07 19:21:33 -05005448@@ -15901,6 +16599,9 @@ MAGIC_CMD=$MAGIC_CMD
Andrew Geissler82c905d2020-04-13 13:39:40 -05005449 # Must we lock files when doing compilation?
5450 need_locks=$lt_need_locks
5451
5452+# Manifest tool.
5453+MANIFEST_TOOL=$lt_MANIFEST_TOOL
5454+
5455 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
5456 DSYMUTIL=$lt_DSYMUTIL
5457
Patrick Williams213cb262021-08-07 19:21:33 -05005458@@ -16015,12 +16716,12 @@ with_gcc=$GCC
Andrew Geissler82c905d2020-04-13 13:39:40 -05005459 # Compiler flag to turn off builtin functions.
5460 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
5461
5462-# How to pass a linker flag through the compiler.
5463-wl=$lt_lt_prog_compiler_wl
5464-
5465 # Additional compiler flags for building library objects.
5466 pic_flag=$lt_lt_prog_compiler_pic
5467
5468+# How to pass a linker flag through the compiler.
5469+wl=$lt_lt_prog_compiler_wl
5470+
5471 # Compiler flag to prevent dynamic linking.
5472 link_static_flag=$lt_lt_prog_compiler_static
5473
Patrick Williams213cb262021-08-07 19:21:33 -05005474@@ -16107,9 +16808,6 @@ inherit_rpath=$inherit_rpath
Andrew Geissler82c905d2020-04-13 13:39:40 -05005475 # Whether libtool must link a program against all its dependency libraries.
5476 link_all_deplibs=$link_all_deplibs
5477
5478-# Fix the shell variable \$srcfile for the compiler.
5479-fix_srcfile_path=$lt_fix_srcfile_path
5480-
5481 # Set to "yes" if exported symbols are required.
5482 always_export_symbols=$always_export_symbols
5483
Patrick Williams213cb262021-08-07 19:21:33 -05005484@@ -16125,6 +16823,9 @@ include_expsyms=$lt_include_expsyms
Andrew Geissler82c905d2020-04-13 13:39:40 -05005485 # Commands necessary for linking programs (against libraries) with templates.
5486 prelink_cmds=$lt_prelink_cmds
5487
5488+# Commands necessary for finishing linking programs.
5489+postlink_cmds=$lt_postlink_cmds
5490+
5491 # Specify filename containing input files.
5492 file_list_spec=$lt_file_list_spec
5493
Patrick Williams213cb262021-08-07 19:21:33 -05005494@@ -16157,210 +16858,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -05005495 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5496 # text mode, it properly converts lines to CR/LF. This bash problem
5497 # is reportedly fixed, but why not run on old versions too?
5498- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
5499- || (rm -f "$cfgfile"; exit 1)
5500-
5501- case $xsi_shell in
5502- yes)
5503- cat << \_LT_EOF >> "$cfgfile"
5504-
5505-# func_dirname file append nondir_replacement
5506-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
5507-# otherwise set result to NONDIR_REPLACEMENT.
5508-func_dirname ()
5509-{
5510- case ${1} in
5511- */*) func_dirname_result="${1%/*}${2}" ;;
5512- * ) func_dirname_result="${3}" ;;
5513- esac
5514-}
5515-
5516-# func_basename file
5517-func_basename ()
5518-{
5519- func_basename_result="${1##*/}"
5520-}
5521-
5522-# func_dirname_and_basename file append nondir_replacement
5523-# perform func_basename and func_dirname in a single function
5524-# call:
5525-# dirname: Compute the dirname of FILE. If nonempty,
5526-# add APPEND to the result, otherwise set result
5527-# to NONDIR_REPLACEMENT.
5528-# value returned in "$func_dirname_result"
5529-# basename: Compute filename of FILE.
5530-# value retuned in "$func_basename_result"
5531-# Implementation must be kept synchronized with func_dirname
5532-# and func_basename. For efficiency, we do not delegate to
5533-# those functions but instead duplicate the functionality here.
5534-func_dirname_and_basename ()
5535-{
5536- case ${1} in
5537- */*) func_dirname_result="${1%/*}${2}" ;;
5538- * ) func_dirname_result="${3}" ;;
5539- esac
5540- func_basename_result="${1##*/}"
5541-}
5542-
5543-# func_stripname prefix suffix name
5544-# strip PREFIX and SUFFIX off of NAME.
5545-# PREFIX and SUFFIX must not contain globbing or regex special
5546-# characters, hashes, percent signs, but SUFFIX may contain a leading
5547-# dot (in which case that matches only a dot).
5548-func_stripname ()
5549-{
5550- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
5551- # positional parameters, so assign one to ordinary parameter first.
5552- func_stripname_result=${3}
5553- func_stripname_result=${func_stripname_result#"${1}"}
5554- func_stripname_result=${func_stripname_result%"${2}"}
5555-}
5556-
5557-# func_opt_split
5558-func_opt_split ()
5559-{
5560- func_opt_split_opt=${1%%=*}
5561- func_opt_split_arg=${1#*=}
5562-}
5563-
5564-# func_lo2o object
5565-func_lo2o ()
5566-{
5567- case ${1} in
5568- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
5569- *) func_lo2o_result=${1} ;;
5570- esac
5571-}
5572-
5573-# func_xform libobj-or-source
5574-func_xform ()
5575-{
5576- func_xform_result=${1%.*}.lo
5577-}
5578-
5579-# func_arith arithmetic-term...
5580-func_arith ()
5581-{
5582- func_arith_result=$(( $* ))
5583-}
5584-
5585-# func_len string
5586-# STRING may not start with a hyphen.
5587-func_len ()
5588-{
5589- func_len_result=${#1}
5590-}
5591-
5592-_LT_EOF
5593- ;;
5594- *) # Bourne compatible functions.
5595- cat << \_LT_EOF >> "$cfgfile"
5596-
5597-# func_dirname file append nondir_replacement
5598-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
5599-# otherwise set result to NONDIR_REPLACEMENT.
5600-func_dirname ()
5601-{
5602- # Extract subdirectory from the argument.
5603- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
5604- if test "X$func_dirname_result" = "X${1}"; then
5605- func_dirname_result="${3}"
5606- else
5607- func_dirname_result="$func_dirname_result${2}"
5608- fi
5609-}
5610-
5611-# func_basename file
5612-func_basename ()
5613-{
5614- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
5615-}
5616-
5617-
5618-# func_stripname prefix suffix name
5619-# strip PREFIX and SUFFIX off of NAME.
5620-# PREFIX and SUFFIX must not contain globbing or regex special
5621-# characters, hashes, percent signs, but SUFFIX may contain a leading
5622-# dot (in which case that matches only a dot).
5623-# func_strip_suffix prefix name
5624-func_stripname ()
5625-{
5626- case ${2} in
5627- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
5628- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
5629- esac
5630-}
5631-
5632-# sed scripts:
5633-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
5634-my_sed_long_arg='1s/^-[^=]*=//'
5635-
5636-# func_opt_split
5637-func_opt_split ()
5638-{
5639- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
5640- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
5641-}
5642-
5643-# func_lo2o object
5644-func_lo2o ()
5645-{
5646- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
5647-}
5648-
5649-# func_xform libobj-or-source
5650-func_xform ()
5651-{
5652- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
5653-}
5654-
5655-# func_arith arithmetic-term...
5656-func_arith ()
5657-{
5658- func_arith_result=`expr "$@"`
5659-}
5660-
5661-# func_len string
5662-# STRING may not start with a hyphen.
5663-func_len ()
5664-{
5665- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
5666-}
5667-
5668-_LT_EOF
5669-esac
5670-
5671-case $lt_shell_append in
5672- yes)
5673- cat << \_LT_EOF >> "$cfgfile"
5674-
5675-# func_append var value
5676-# Append VALUE to the end of shell variable VAR.
5677-func_append ()
5678-{
5679- eval "$1+=\$2"
5680-}
5681-_LT_EOF
5682- ;;
5683- *)
5684- cat << \_LT_EOF >> "$cfgfile"
5685-
5686-# func_append var value
5687-# Append VALUE to the end of shell variable VAR.
5688-func_append ()
5689-{
5690- eval "$1=\$$1\$2"
5691-}
5692-
5693-_LT_EOF
5694- ;;
5695- esac
5696-
5697-
5698- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
5699- || (rm -f "$cfgfile"; exit 1)
5700-
5701- mv -f "$cfgfile" "$ofile" ||
5702+ sed '$q' "$ltmain" >> "$cfgfile" \
5703+ || (rm -f "$cfgfile"; exit 1)
5704+
5705+ if test x"$xsi_shell" = xyes; then
5706+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
5707+func_dirname ()\
5708+{\
5709+\ case ${1} in\
5710+\ */*) func_dirname_result="${1%/*}${2}" ;;\
5711+\ * ) func_dirname_result="${3}" ;;\
5712+\ esac\
5713+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
5714+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5715+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5716+test 0 -eq $? || _lt_function_replace_fail=:
5717+
5718+
5719+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
5720+func_basename ()\
5721+{\
5722+\ func_basename_result="${1##*/}"\
5723+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
5724+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5725+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5726+test 0 -eq $? || _lt_function_replace_fail=:
5727+
5728+
5729+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
5730+func_dirname_and_basename ()\
5731+{\
5732+\ case ${1} in\
5733+\ */*) func_dirname_result="${1%/*}${2}" ;;\
5734+\ * ) func_dirname_result="${3}" ;;\
5735+\ esac\
5736+\ func_basename_result="${1##*/}"\
5737+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
5738+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5739+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5740+test 0 -eq $? || _lt_function_replace_fail=:
5741+
5742+
5743+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
5744+func_stripname ()\
5745+{\
5746+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
5747+\ # positional parameters, so assign one to ordinary parameter first.\
5748+\ func_stripname_result=${3}\
5749+\ func_stripname_result=${func_stripname_result#"${1}"}\
5750+\ func_stripname_result=${func_stripname_result%"${2}"}\
5751+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
5752+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5753+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5754+test 0 -eq $? || _lt_function_replace_fail=:
5755+
5756+
5757+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
5758+func_split_long_opt ()\
5759+{\
5760+\ func_split_long_opt_name=${1%%=*}\
5761+\ func_split_long_opt_arg=${1#*=}\
5762+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
5763+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5764+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5765+test 0 -eq $? || _lt_function_replace_fail=:
5766+
5767+
5768+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
5769+func_split_short_opt ()\
5770+{\
5771+\ func_split_short_opt_arg=${1#??}\
5772+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
5773+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
5774+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5775+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5776+test 0 -eq $? || _lt_function_replace_fail=:
5777+
5778+
5779+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
5780+func_lo2o ()\
5781+{\
5782+\ case ${1} in\
5783+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
5784+\ *) func_lo2o_result=${1} ;;\
5785+\ esac\
5786+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
5787+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5788+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5789+test 0 -eq $? || _lt_function_replace_fail=:
5790+
5791+
5792+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
5793+func_xform ()\
5794+{\
5795+ func_xform_result=${1%.*}.lo\
5796+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
5797+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5798+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5799+test 0 -eq $? || _lt_function_replace_fail=:
5800+
5801+
5802+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
5803+func_arith ()\
5804+{\
5805+ func_arith_result=$(( $* ))\
5806+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
5807+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5808+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5809+test 0 -eq $? || _lt_function_replace_fail=:
5810+
5811+
5812+ sed -e '/^func_len ()$/,/^} # func_len /c\
5813+func_len ()\
5814+{\
5815+ func_len_result=${#1}\
5816+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
5817+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5818+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5819+test 0 -eq $? || _lt_function_replace_fail=:
5820+
5821+fi
5822+
5823+if test x"$lt_shell_append" = xyes; then
5824+ sed -e '/^func_append ()$/,/^} # func_append /c\
5825+func_append ()\
5826+{\
5827+ eval "${1}+=\\${2}"\
5828+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
5829+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5830+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5831+test 0 -eq $? || _lt_function_replace_fail=:
5832+
5833+
5834+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
5835+func_append_quoted ()\
5836+{\
5837+\ func_quote_for_eval "${2}"\
5838+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
5839+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
5840+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5841+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5842+test 0 -eq $? || _lt_function_replace_fail=:
5843+
5844+
5845+ # Save a `func_append' function call where possible by direct use of '+='
5846+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
5847+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5848+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5849+ test 0 -eq $? || _lt_function_replace_fail=:
5850+else
5851+ # Save a `func_append' function call even when '+=' is not available
5852+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
5853+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5854+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5855+ test 0 -eq $? || _lt_function_replace_fail=:
5856+fi
5857+
5858+if test x"$_lt_function_replace_fail" = x":"; then
5859+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
5860+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
5861+fi
5862+
5863+
5864+ mv -f "$cfgfile" "$ofile" ||
5865 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5866 chmod +x "$ofile"
5867
5868diff --git a/gprof/configure b/gprof/configure
Patrick Williams213cb262021-08-07 19:21:33 -05005869index 5703bba4462..e1ac86ec797 100755
Andrew Geissler82c905d2020-04-13 13:39:40 -05005870--- a/gprof/configure
5871+++ b/gprof/configure
Andrew Geisslerd1e89492021-02-12 15:35:20 -06005872@@ -663,8 +663,11 @@ OTOOL
Andrew Geissler82c905d2020-04-13 13:39:40 -05005873 LIPO
5874 NMEDIT
5875 DSYMUTIL
5876+MANIFEST_TOOL
5877 RANLIB
5878+ac_ct_AR
5879 AR
5880+DLLTOOL
5881 OBJDUMP
5882 LN_S
5883 NM
Andrew Geisslerd1e89492021-02-12 15:35:20 -06005884@@ -781,6 +784,7 @@ enable_static
Andrew Geissler82c905d2020-04-13 13:39:40 -05005885 with_pic
5886 enable_fast_install
5887 with_gnu_ld
5888+with_libtool_sysroot
5889 enable_libtool_lock
5890 enable_plugins
5891 enable_largefile
Andrew Geisslerd1e89492021-02-12 15:35:20 -06005892@@ -1443,6 +1447,8 @@ Optional Packages:
Andrew Geissler82c905d2020-04-13 13:39:40 -05005893 --with-pic try to use only PIC/non-PIC objects [default=use
5894 both]
5895 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5896+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
5897+ (or the compiler's sysroot if not specified).
5898
5899 Some influential environment variables:
5900 CC C compiler command
Patrick Williams213cb262021-08-07 19:21:33 -05005901@@ -4471,8 +4477,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05005902
5903
5904
5905-macro_version='2.2.7a'
5906-macro_revision='1.3134'
5907+macro_version='2.4'
5908+macro_revision='1.3293'
5909
5910
5911
Patrick Williams213cb262021-08-07 19:21:33 -05005912@@ -4512,7 +4518,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Andrew Geissler82c905d2020-04-13 13:39:40 -05005913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5914 $as_echo_n "checking how to print strings... " >&6; }
5915 # Test print first, because it will be a builtin if present.
5916-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5917+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5918 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5919 ECHO='print -r --'
5920 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Patrick Williams213cb262021-08-07 19:21:33 -05005921@@ -5198,8 +5204,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
Andrew Geissler82c905d2020-04-13 13:39:40 -05005922 # Try some XSI features
5923 xsi_shell=no
5924 ( _lt_dummy="a/b/c"
5925- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5926- = c,a/b,, \
5927+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5928+ = c,a/b,b/c, \
5929 && eval 'test $(( 1 + 1 )) -eq 2 \
5930 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5931 && xsi_shell=yes
Patrick Williams213cb262021-08-07 19:21:33 -05005932@@ -5248,6 +5254,80 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05005933
5934
5935
5936+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5937+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5938+if ${lt_cv_to_host_file_cmd+:} false; then :
5939+ $as_echo_n "(cached) " >&6
5940+else
5941+ case $host in
5942+ *-*-mingw* )
5943+ case $build in
5944+ *-*-mingw* ) # actually msys
5945+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5946+ ;;
5947+ *-*-cygwin* )
5948+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5949+ ;;
5950+ * ) # otherwise, assume *nix
5951+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5952+ ;;
5953+ esac
5954+ ;;
5955+ *-*-cygwin* )
5956+ case $build in
5957+ *-*-mingw* ) # actually msys
5958+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5959+ ;;
5960+ *-*-cygwin* )
5961+ lt_cv_to_host_file_cmd=func_convert_file_noop
5962+ ;;
5963+ * ) # otherwise, assume *nix
5964+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5965+ ;;
5966+ esac
5967+ ;;
5968+ * ) # unhandled hosts (and "normal" native builds)
5969+ lt_cv_to_host_file_cmd=func_convert_file_noop
5970+ ;;
5971+esac
5972+
5973+fi
5974+
5975+to_host_file_cmd=$lt_cv_to_host_file_cmd
5976+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5977+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5978+
5979+
5980+
5981+
5982+
5983+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5984+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5985+if ${lt_cv_to_tool_file_cmd+:} false; then :
5986+ $as_echo_n "(cached) " >&6
5987+else
5988+ #assume ordinary cross tools, or native build.
5989+lt_cv_to_tool_file_cmd=func_convert_file_noop
5990+case $host in
5991+ *-*-mingw* )
5992+ case $build in
5993+ *-*-mingw* ) # actually msys
5994+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5995+ ;;
5996+ esac
5997+ ;;
5998+esac
5999+
6000+fi
6001+
6002+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6003+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6004+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6005+
6006+
6007+
6008+
6009+
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6011 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6012 if ${lt_cv_ld_reload_flag+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05006013@@ -5264,6 +5344,11 @@ case $reload_flag in
Andrew Geissler82c905d2020-04-13 13:39:40 -05006014 esac
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016 case $host_os in
6017+ cygwin* | mingw* | pw32* | cegcc*)
6018+ if test "$GCC" != yes; then
6019+ reload_cmds=false
6020+ fi
6021+ ;;
6022 darwin*)
6023 if test "$GCC" = yes; then
6024 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Patrick Williams213cb262021-08-07 19:21:33 -05006025@@ -5432,7 +5517,8 @@ mingw* | pw32*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05006026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6027 lt_cv_file_magic_cmd='func_win32_libid'
6028 else
6029- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6030+ # Keep this pattern in sync with the one in func_win32_libid.
6031+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6032 lt_cv_file_magic_cmd='$OBJDUMP -f'
6033 fi
6034 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05006035@@ -5586,6 +5672,21 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05006036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6038 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6039+
6040+file_magic_glob=
6041+want_nocaseglob=no
6042+if test "$build" = "$host"; then
6043+ case $host_os in
6044+ mingw* | pw32*)
6045+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6046+ want_nocaseglob=yes
6047+ else
6048+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6049+ fi
6050+ ;;
6051+ esac
6052+fi
6053+
6054 file_magic_cmd=$lt_cv_file_magic_cmd
6055 deplibs_check_method=$lt_cv_deplibs_check_method
6056 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -05006057@@ -5601,6 +5702,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler82c905d2020-04-13 13:39:40 -05006058
6059
6060
6061+
6062+
6063+
6064+
6065+
6066+
6067+
6068+
6069+
6070+
Patrick Williams213cb262021-08-07 19:21:33 -05006071+if test -n "$ac_tool_prefix"; then
Andrew Geissler82c905d2020-04-13 13:39:40 -05006072+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6073+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6074+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075+$as_echo_n "checking for $ac_word... " >&6; }
6076+if ${ac_cv_prog_DLLTOOL+:} false; then :
6077+ $as_echo_n "(cached) " >&6
6078+else
6079+ if test -n "$DLLTOOL"; then
6080+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6081+else
6082+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083+for as_dir in $PATH
6084+do
6085+ IFS=$as_save_IFS
6086+ test -z "$as_dir" && as_dir=.
6087+ for ac_exec_ext in '' $ac_executable_extensions; do
6088+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6090+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091+ break 2
6092+ fi
6093+done
6094+ done
6095+IFS=$as_save_IFS
6096+
6097+fi
6098+fi
6099+DLLTOOL=$ac_cv_prog_DLLTOOL
6100+if test -n "$DLLTOOL"; then
6101+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6102+$as_echo "$DLLTOOL" >&6; }
6103+else
6104+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105+$as_echo "no" >&6; }
6106+fi
6107+
6108+
6109+fi
6110+if test -z "$ac_cv_prog_DLLTOOL"; then
6111+ ac_ct_DLLTOOL=$DLLTOOL
6112+ # Extract the first word of "dlltool", so it can be a program name with args.
6113+set dummy dlltool; ac_word=$2
6114+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115+$as_echo_n "checking for $ac_word... " >&6; }
6116+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6117+ $as_echo_n "(cached) " >&6
6118+else
6119+ if test -n "$ac_ct_DLLTOOL"; then
6120+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6121+else
6122+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123+for as_dir in $PATH
6124+do
6125+ IFS=$as_save_IFS
6126+ test -z "$as_dir" && as_dir=.
6127+ for ac_exec_ext in '' $ac_executable_extensions; do
6128+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6130+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131+ break 2
6132+ fi
6133+done
6134+ done
6135+IFS=$as_save_IFS
6136+
6137+fi
6138+fi
6139+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6140+if test -n "$ac_ct_DLLTOOL"; then
6141+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6142+$as_echo "$ac_ct_DLLTOOL" >&6; }
6143+else
6144+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145+$as_echo "no" >&6; }
6146+fi
6147+
6148+ if test "x$ac_ct_DLLTOOL" = x; then
6149+ DLLTOOL="false"
6150+ else
6151+ case $cross_compiling:$ac_tool_warned in
6152+yes:)
6153+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155+ac_tool_warned=yes ;;
6156+esac
6157+ DLLTOOL=$ac_ct_DLLTOOL
6158+ fi
6159+else
6160+ DLLTOOL="$ac_cv_prog_DLLTOOL"
6161+fi
6162+
6163+test -z "$DLLTOOL" && DLLTOOL=dlltool
6164+
6165+
6166+
6167+
6168+
6169+
6170+
6171+
6172+
6173+
6174+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6175+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6176+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6177+ $as_echo_n "(cached) " >&6
6178+else
6179+ lt_cv_sharedlib_from_linklib_cmd='unknown'
6180+
6181+case $host_os in
6182+cygwin* | mingw* | pw32* | cegcc*)
6183+ # two different shell functions defined in ltmain.sh
6184+ # decide which to use based on capabilities of $DLLTOOL
6185+ case `$DLLTOOL --help 2>&1` in
6186+ *--identify-strict*)
6187+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6188+ ;;
6189+ *)
6190+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6191+ ;;
6192+ esac
6193+ ;;
6194+*)
6195+ # fallback: assume linklib IS sharedlib
6196+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6197+ ;;
6198+esac
6199+
6200+fi
6201+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6202+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6203+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6204+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6205+
6206+
6207+
6208+
6209+
6210+
6211+
Patrick Williams213cb262021-08-07 19:21:33 -05006212 plugin_option=
6213 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6214 for plugin in $plugin_names; do
6215@@ -5615,8 +5867,10 @@ for plugin in $plugin_names; do
6216 done
6217
6218 if test -n "$ac_tool_prefix"; then
6219- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6220-set dummy ${ac_tool_prefix}ar; ac_word=$2
Andrew Geissler82c905d2020-04-13 13:39:40 -05006221+ for ac_prog in ar
6222+ do
6223+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6224+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05006228@@ -5632,7 +5886,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -05006229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232- ac_cv_prog_AR="${ac_tool_prefix}ar"
6233+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
Patrick Williams213cb262021-08-07 19:21:33 -05006237@@ -5652,11 +5906,15 @@ $as_echo "no" >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05006238 fi
6239
6240
6241+ test -n "$AR" && break
6242+ done
6243 fi
6244-if test -z "$ac_cv_prog_AR"; then
6245+if test -z "$AR"; then
6246 ac_ct_AR=$AR
6247- # Extract the first word of "ar", so it can be a program name with args.
6248-set dummy ar; ac_word=$2
6249+ for ac_prog in ar
6250+do
6251+ # Extract the first word of "$ac_prog", so it can be a program name with args.
6252+set dummy $ac_prog; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05006256@@ -5672,7 +5930,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -05006257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260- ac_cv_prog_ac_ct_AR="ar"
6261+ ac_cv_prog_ac_ct_AR="$ac_prog"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
Patrick Williams213cb262021-08-07 19:21:33 -05006265@@ -5691,6 +5949,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05006266 $as_echo "no" >&6; }
6267 fi
6268
6269+
6270+ test -n "$ac_ct_AR" && break
6271+done
6272+
6273 if test "x$ac_ct_AR" = x; then
6274 AR="false"
6275 else
Patrick Williams213cb262021-08-07 19:21:33 -05006276@@ -5702,25 +5964,19 @@ ac_tool_warned=yes ;;
Andrew Geissler82c905d2020-04-13 13:39:40 -05006277 esac
6278 AR=$ac_ct_AR
6279 fi
6280-else
6281- AR="$ac_cv_prog_AR"
6282 fi
6283
6284-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -05006285-if test -n "$plugin_option"; then
6286- if $AR --help 2>&1 | grep -q "\--plugin"; then
6287- touch conftest.c
6288- $AR $plugin_option rc conftest.a conftest.c
6289- if test "$?" != 0; then
6290- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6291+ touch conftest.c
6292+ $AR $plugin_option rc conftest.a conftest.c
6293+ if test "$?" != 0; then
6294+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6295 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6296- else
6297- AR="$AR $plugin_option"
6298- fi
6299- rm -f conftest.*
6300+ else
6301+ AR="$AR $plugin_option"
6302 fi
6303-fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006304-test -z "$AR_FLAGS" && AR_FLAGS=cru
Patrick Williams213cb262021-08-07 19:21:33 -05006305+ rm -f conftest.*
Andrew Geissler82c905d2020-04-13 13:39:40 -05006306+: ${AR=ar}
6307+: ${AR_FLAGS=cru}
Patrick Williams213cb262021-08-07 19:21:33 -05006308
6309
6310
6311@@ -5732,6 +5988,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
6312
6313
6314
Andrew Geissler82c905d2020-04-13 13:39:40 -05006315+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6316+$as_echo_n "checking for archiver @FILE support... " >&6; }
6317+if ${lt_cv_ar_at_file+:} false; then :
6318+ $as_echo_n "(cached) " >&6
6319+else
6320+ lt_cv_ar_at_file=no
6321+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322+/* end confdefs.h. */
6323+
6324+int
6325+main ()
6326+{
Patrick Williams213cb262021-08-07 19:21:33 -05006327+
Andrew Geissler82c905d2020-04-13 13:39:40 -05006328+ ;
6329+ return 0;
6330+}
6331+_ACEOF
6332+if ac_fn_c_try_compile "$LINENO"; then :
6333+ echo conftest.$ac_objext > conftest.lst
6334+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6335+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6336+ (eval $lt_ar_try) 2>&5
6337+ ac_status=$?
6338+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6339+ test $ac_status = 0; }
6340+ if test "$ac_status" -eq 0; then
6341+ # Ensure the archiver fails upon bogus file names.
6342+ rm -f conftest.$ac_objext libconftest.a
6343+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6344+ (eval $lt_ar_try) 2>&5
6345+ ac_status=$?
6346+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347+ test $ac_status = 0; }
6348+ if test "$ac_status" -ne 0; then
6349+ lt_cv_ar_at_file=@
6350+ fi
6351+ fi
6352+ rm -f conftest.* libconftest.a
Patrick Williams213cb262021-08-07 19:21:33 -05006353+
Andrew Geissler82c905d2020-04-13 13:39:40 -05006354+fi
6355+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -05006356+
Andrew Geissler82c905d2020-04-13 13:39:40 -05006357+fi
6358+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6359+$as_echo "$lt_cv_ar_at_file" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -05006360+
Andrew Geissler82c905d2020-04-13 13:39:40 -05006361+if test "x$lt_cv_ar_at_file" = xno; then
6362+ archiver_list_spec=
6363+else
6364+ archiver_list_spec=$lt_cv_ar_at_file
6365+fi
Patrick Williams213cb262021-08-07 19:21:33 -05006366+
6367+
6368+
6369+
6370+
6371+
6372+
6373 if test -n "$ac_tool_prefix"; then
6374 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6375 set dummy ${ac_tool_prefix}strip; ac_word=$2
6376@@ -6071,8 +6385,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05006377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6378
6379 # Transform an extracted symbol line into symbol name and symbol address
6380-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6381-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'"
6382+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6383+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'"
6384
6385 # Handle CRLF in mingw tool chain
6386 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -05006387@@ -6108,6 +6422,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler82c905d2020-04-13 13:39:40 -05006388 else
6389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6390 fi
6391+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6392
6393 # Check to see that the pipe works correctly.
6394 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -05006395@@ -6149,6 +6464,18 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006396 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6397 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6398 cat <<_LT_EOF > conftest.$ac_ext
6399+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6400+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6401+/* DATA imports from DLLs on WIN32 con't be const, because runtime
6402+ relocations are performed -- see ld's documentation on pseudo-relocs. */
6403+# define LT_DLSYM_CONST
6404+#elif defined(__osf__)
6405+/* This system does not cope well with relocations in const data. */
6406+# define LT_DLSYM_CONST
6407+#else
6408+# define LT_DLSYM_CONST const
6409+#endif
6410+
6411 #ifdef __cplusplus
6412 extern "C" {
6413 #endif
Patrick Williams213cb262021-08-07 19:21:33 -05006414@@ -6160,7 +6487,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006415 cat <<_LT_EOF >> conftest.$ac_ext
6416
6417 /* The mapping between symbol names and symbols. */
6418-const struct {
6419+LT_DLSYM_CONST struct {
6420 const char *name;
6421 void *address;
6422 }
Patrick Williams213cb262021-08-07 19:21:33 -05006423@@ -6186,8 +6513,8 @@ static const void *lt_preloaded_setup() {
Andrew Geissler82c905d2020-04-13 13:39:40 -05006424 _LT_EOF
6425 # Now try linking the two files.
6426 mv conftest.$ac_objext conftstm.$ac_objext
6427- lt_save_LIBS="$LIBS"
6428- lt_save_CFLAGS="$CFLAGS"
6429+ lt_globsym_save_LIBS=$LIBS
6430+ lt_globsym_save_CFLAGS=$CFLAGS
6431 LIBS="conftstm.$ac_objext"
6432 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Patrick Williams213cb262021-08-07 19:21:33 -05006434@@ -6197,8 +6524,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006435 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6436 pipe_works=yes
6437 fi
6438- LIBS="$lt_save_LIBS"
6439- CFLAGS="$lt_save_CFLAGS"
6440+ LIBS=$lt_globsym_save_LIBS
6441+ CFLAGS=$lt_globsym_save_CFLAGS
6442 else
6443 echo "cannot find nm_test_func in $nlist" >&5
6444 fi
Patrick Williams213cb262021-08-07 19:21:33 -05006445@@ -6235,6 +6562,18 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05006446 $as_echo "ok" >&6; }
6447 fi
6448
6449+# Response file support.
6450+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6451+ nm_file_list_spec='@'
6452+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6453+ nm_file_list_spec='@'
6454+fi
6455+
6456+
6457+
6458+
6459+
6460+
Patrick Williams213cb262021-08-07 19:21:33 -05006461
6462
6463
6464@@ -6251,6 +6590,43 @@ fi
6465
6466
6467
Andrew Geissler82c905d2020-04-13 13:39:40 -05006468+
6469+
Andrew Geissler82c905d2020-04-13 13:39:40 -05006470+
6471+
6472+
6473+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6474+$as_echo_n "checking for sysroot... " >&6; }
6475+
6476+# Check whether --with-libtool-sysroot was given.
6477+if test "${with_libtool_sysroot+set}" = set; then :
6478+ withval=$with_libtool_sysroot;
6479+else
6480+ with_libtool_sysroot=no
6481+fi
6482+
6483+
6484+lt_sysroot=
6485+case ${with_libtool_sysroot} in #(
6486+ yes)
6487+ if test "$GCC" = yes; then
6488+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6489+ fi
6490+ ;; #(
6491+ /*)
6492+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
6493+ ;; #(
6494+ no|'')
6495+ ;; #(
6496+ *)
6497+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
6498+$as_echo "${with_libtool_sysroot}" >&6; }
6499+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6500+ ;;
6501+esac
6502+
6503+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6504+$as_echo "${lt_sysroot:-no}" >&6; }
6505
6506
6507
Patrick Williams213cb262021-08-07 19:21:33 -05006508@@ -6462,6 +6838,123 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05006509
6510 need_locks="$enable_libtool_lock"
6511
6512+if test -n "$ac_tool_prefix"; then
6513+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6514+set dummy ${ac_tool_prefix}mt; ac_word=$2
6515+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516+$as_echo_n "checking for $ac_word... " >&6; }
6517+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6518+ $as_echo_n "(cached) " >&6
6519+else
6520+ if test -n "$MANIFEST_TOOL"; then
6521+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6522+else
6523+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524+for as_dir in $PATH
6525+do
6526+ IFS=$as_save_IFS
6527+ test -z "$as_dir" && as_dir=.
6528+ for ac_exec_ext in '' $ac_executable_extensions; do
6529+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6531+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532+ break 2
6533+ fi
6534+done
6535+ done
6536+IFS=$as_save_IFS
6537+
6538+fi
6539+fi
6540+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6541+if test -n "$MANIFEST_TOOL"; then
6542+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6543+$as_echo "$MANIFEST_TOOL" >&6; }
6544+else
6545+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546+$as_echo "no" >&6; }
6547+fi
6548+
6549+
6550+fi
6551+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6552+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6553+ # Extract the first word of "mt", so it can be a program name with args.
6554+set dummy mt; ac_word=$2
6555+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556+$as_echo_n "checking for $ac_word... " >&6; }
6557+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6558+ $as_echo_n "(cached) " >&6
6559+else
6560+ if test -n "$ac_ct_MANIFEST_TOOL"; then
6561+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6562+else
6563+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564+for as_dir in $PATH
6565+do
6566+ IFS=$as_save_IFS
6567+ test -z "$as_dir" && as_dir=.
6568+ for ac_exec_ext in '' $ac_executable_extensions; do
6569+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6571+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572+ break 2
6573+ fi
6574+done
6575+ done
6576+IFS=$as_save_IFS
6577+
6578+fi
6579+fi
6580+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6581+if test -n "$ac_ct_MANIFEST_TOOL"; then
6582+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6583+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6584+else
6585+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586+$as_echo "no" >&6; }
6587+fi
6588+
6589+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
6590+ MANIFEST_TOOL=":"
6591+ else
6592+ case $cross_compiling:$ac_tool_warned in
6593+yes:)
6594+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596+ac_tool_warned=yes ;;
6597+esac
6598+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6599+ fi
6600+else
6601+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6602+fi
6603+
6604+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6605+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6606+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6607+if ${lt_cv_path_mainfest_tool+:} false; then :
6608+ $as_echo_n "(cached) " >&6
6609+else
6610+ lt_cv_path_mainfest_tool=no
6611+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6612+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6613+ cat conftest.err >&5
6614+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6615+ lt_cv_path_mainfest_tool=yes
6616+ fi
6617+ rm -f conftest*
6618+fi
6619+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6620+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6621+if test "x$lt_cv_path_mainfest_tool" != xyes; then
6622+ MANIFEST_TOOL=:
6623+fi
6624+
6625+
6626+
6627+
6628+
6629
6630 case $host_os in
6631 rhapsody* | darwin*)
Patrick Williams213cb262021-08-07 19:21:33 -05006632@@ -7025,6 +7518,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006633 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6634 echo "$AR cru libconftest.a conftest.o" >&5
6635 $AR cru libconftest.a conftest.o 2>&5
6636+ echo "$RANLIB libconftest.a" >&5
6637+ $RANLIB libconftest.a 2>&5
6638 cat > conftest.c << _LT_EOF
6639 int main() { return 0;}
6640 _LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05006641@@ -7220,7 +7715,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006642 LIBTOOL_DEPS="$ltmain"
6643
6644 # Always use our own libtool.
6645-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6646+LIBTOOL='$(SHELL) $(top_builddir)'
6647+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
6648
6649
6650
Patrick Williams213cb262021-08-07 19:21:33 -05006651@@ -7309,7 +7805,7 @@ aix3*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05006652 esac
6653
6654 # Global variables:
6655-ofile=libtool
6656+ofile=${host_alias}-libtool
6657 can_build_shared=yes
6658
6659 # All known linkers require a `.a' archive for static linking (except MSVC,
Patrick Williams213cb262021-08-07 19:21:33 -05006660@@ -7607,8 +8103,6 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006661 lt_prog_compiler_pic=
6662 lt_prog_compiler_static=
6663
6664-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6665-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6666
6667 if test "$GCC" = yes; then
6668 lt_prog_compiler_wl='-Wl,'
Patrick Williams213cb262021-08-07 19:21:33 -05006669@@ -7774,6 +8268,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05006670 lt_prog_compiler_pic='--shared'
6671 lt_prog_compiler_static='--static'
6672 ;;
6673+ nagfor*)
6674+ # NAG Fortran compiler
6675+ lt_prog_compiler_wl='-Wl,-Wl,,'
6676+ lt_prog_compiler_pic='-PIC'
6677+ lt_prog_compiler_static='-Bstatic'
6678+ ;;
6679 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
6680 # Portland Group compilers (*not* the Pentium gcc compiler,
6681 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -05006682@@ -7836,7 +8336,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05006683 lt_prog_compiler_pic='-KPIC'
6684 lt_prog_compiler_static='-Bstatic'
6685 case $cc_basename in
6686- f77* | f90* | f95*)
6687+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
6688 lt_prog_compiler_wl='-Qoption ld ';;
6689 *)
6690 lt_prog_compiler_wl='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -05006691@@ -7893,13 +8393,17 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -05006692 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6693 ;;
6694 esac
6695-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6696-$as_echo "$lt_prog_compiler_pic" >&6; }
6697-
6698-
6699-
6700-
6701
6702+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6703+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6704+if ${lt_cv_prog_compiler_pic+:} false; then :
6705+ $as_echo_n "(cached) " >&6
6706+else
6707+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
6708+fi
6709+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
6710+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
6711+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
6712
6713 #
6714 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -05006715@@ -7960,6 +8464,11 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006716
6717
6718
6719+
6720+
6721+
6722+
6723+
6724 #
6725 # Check to make sure the static flag actually works.
6726 #
Patrick Williams213cb262021-08-07 19:21:33 -05006727@@ -8310,7 +8819,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006728 allow_undefined_flag=unsupported
6729 always_export_symbols=no
6730 enable_shared_with_static_runtimes=yes
6731- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6732+ 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'
6733+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
6734
6735 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Patrick Williams213cb262021-08-07 19:21:33 -05006737@@ -8409,12 +8919,12 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006738 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
6739 hardcode_libdir_flag_spec=
6740 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6741- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
6742+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6743 if test "x$supports_anon_versioning" = xyes; then
6744 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6746 echo "local: *; };" >> $output_objdir/$libname.ver~
6747- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6748+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6749 fi
6750 ;;
6751 esac
Patrick Williams213cb262021-08-07 19:21:33 -05006752@@ -8428,8 +8938,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006753 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6754 wlarc=
6755 else
6756- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6758+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6759+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6760 fi
6761 ;;
6762
Patrick Williams213cb262021-08-07 19:21:33 -05006763@@ -8447,8 +8957,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006764
6765 _LT_EOF
6766 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6767- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6768- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6769+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6771 else
6772 ld_shlibs=no
6773 fi
Patrick Williams213cb262021-08-07 19:21:33 -05006774@@ -8494,8 +9004,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006775
6776 *)
6777 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6778- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6779- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6780+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6781+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6782 else
6783 ld_shlibs=no
6784 fi
Patrick Williams213cb262021-08-07 19:21:33 -05006785@@ -8625,7 +9135,13 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05006786 allow_undefined_flag='-berok'
6787 # Determine the default libpath from the value encoded in an
6788 # empty executable.
6789- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790+ if test "${lt_cv_aix_libpath+set}" = set; then
6791+ aix_libpath=$lt_cv_aix_libpath
6792+else
6793+ if ${lt_cv_aix_libpath_+:} false; then :
6794+ $as_echo_n "(cached) " >&6
6795+else
6796+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798
6799 int
Patrick Williams213cb262021-08-07 19:21:33 -05006800@@ -8638,22 +9154,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05006801 _ACEOF
6802 if ac_fn_c_try_link "$LINENO"; then :
6803
6804-lt_aix_libpath_sed='
6805- /Import File Strings/,/^$/ {
6806- /^0/ {
6807- s/^0 *\(.*\)$/\1/
6808- p
6809- }
6810- }'
6811-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6812-# Check for a 64-bit object if we didn't find anything.
6813-if test -z "$aix_libpath"; then
6814- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6815-fi
6816+ lt_aix_libpath_sed='
6817+ /Import File Strings/,/^$/ {
6818+ /^0/ {
6819+ s/^0 *\([^ ]*\) *$/\1/
6820+ p
6821+ }
6822+ }'
6823+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6824+ # Check for a 64-bit object if we didn't find anything.
6825+ if test -z "$lt_cv_aix_libpath_"; then
6826+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6827+ fi
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6831-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6832+ if test -z "$lt_cv_aix_libpath_"; then
6833+ lt_cv_aix_libpath_="/usr/lib:/lib"
6834+ fi
6835+
6836+fi
6837+
6838+ aix_libpath=$lt_cv_aix_libpath_
6839+fi
6840
6841 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6842 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"
Patrick Williams213cb262021-08-07 19:21:33 -05006843@@ -8665,7 +9188,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006844 else
6845 # Determine the default libpath from the value encoded in an
6846 # empty executable.
6847- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848+ if test "${lt_cv_aix_libpath+set}" = set; then
6849+ aix_libpath=$lt_cv_aix_libpath
6850+else
6851+ if ${lt_cv_aix_libpath_+:} false; then :
6852+ $as_echo_n "(cached) " >&6
6853+else
6854+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856
6857 int
Patrick Williams213cb262021-08-07 19:21:33 -05006858@@ -8678,22 +9207,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05006859 _ACEOF
6860 if ac_fn_c_try_link "$LINENO"; then :
6861
6862-lt_aix_libpath_sed='
6863- /Import File Strings/,/^$/ {
6864- /^0/ {
6865- s/^0 *\(.*\)$/\1/
6866- p
6867- }
6868- }'
6869-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6870-# Check for a 64-bit object if we didn't find anything.
6871-if test -z "$aix_libpath"; then
6872- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6873-fi
6874+ lt_aix_libpath_sed='
6875+ /Import File Strings/,/^$/ {
6876+ /^0/ {
6877+ s/^0 *\([^ ]*\) *$/\1/
6878+ p
6879+ }
6880+ }'
6881+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6882+ # Check for a 64-bit object if we didn't find anything.
6883+ if test -z "$lt_cv_aix_libpath_"; then
6884+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6885+ fi
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6889-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6890+ if test -z "$lt_cv_aix_libpath_"; then
6891+ lt_cv_aix_libpath_="/usr/lib:/lib"
6892+ fi
6893+
6894+fi
6895+
6896+ aix_libpath=$lt_cv_aix_libpath_
6897+fi
6898
6899 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6900 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -05006901@@ -8738,20 +9274,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006902 # Microsoft Visual C++.
6903 # hardcode_libdir_flag_spec is actually meaningless, as there is
6904 # no search path for DLLs.
6905- hardcode_libdir_flag_spec=' '
6906- allow_undefined_flag=unsupported
6907- # Tell ltmain to make .lib files, not .a files.
6908- libext=lib
6909- # Tell ltmain to make .dll files, not .so files.
6910- shrext_cmds=".dll"
6911- # FIXME: Setting linknames here is a bad hack.
6912- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6913- # The linker will automatically build a .lib file if we build a DLL.
6914- old_archive_from_new_cmds='true'
6915- # FIXME: Should let the user specify the lib program.
6916- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
6917- fix_srcfile_path='`cygpath -w "$srcfile"`'
6918- enable_shared_with_static_runtimes=yes
6919+ case $cc_basename in
6920+ cl*)
6921+ # Native MSVC
6922+ hardcode_libdir_flag_spec=' '
6923+ allow_undefined_flag=unsupported
6924+ always_export_symbols=yes
6925+ file_list_spec='@'
6926+ # Tell ltmain to make .lib files, not .a files.
6927+ libext=lib
6928+ # Tell ltmain to make .dll files, not .so files.
6929+ shrext_cmds=".dll"
6930+ # FIXME: Setting linknames here is a bad hack.
6931+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6932+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6933+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6934+ else
6935+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6936+ fi~
6937+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6938+ linknames='
6939+ # The linker will not automatically build a static lib if we build a DLL.
6940+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
6941+ enable_shared_with_static_runtimes=yes
6942+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6943+ # Don't use ranlib
6944+ old_postinstall_cmds='chmod 644 $oldlib'
6945+ postlink_cmds='lt_outputfile="@OUTPUT@"~
6946+ lt_tool_outputfile="@TOOL_OUTPUT@"~
6947+ case $lt_outputfile in
6948+ *.exe|*.EXE) ;;
6949+ *)
6950+ lt_outputfile="$lt_outputfile.exe"
6951+ lt_tool_outputfile="$lt_tool_outputfile.exe"
6952+ ;;
6953+ esac~
6954+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6955+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6956+ $RM "$lt_outputfile.manifest";
6957+ fi'
6958+ ;;
6959+ *)
6960+ # Assume MSVC wrapper
6961+ hardcode_libdir_flag_spec=' '
6962+ allow_undefined_flag=unsupported
6963+ # Tell ltmain to make .lib files, not .a files.
6964+ libext=lib
6965+ # Tell ltmain to make .dll files, not .so files.
6966+ shrext_cmds=".dll"
6967+ # FIXME: Setting linknames here is a bad hack.
6968+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6969+ # The linker will automatically build a .lib file if we build a DLL.
6970+ old_archive_from_new_cmds='true'
6971+ # FIXME: Should let the user specify the lib program.
6972+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
6973+ enable_shared_with_static_runtimes=yes
6974+ ;;
6975+ esac
6976 ;;
6977
6978 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -05006979@@ -8812,7 +9391,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006980
6981 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6982 freebsd* | dragonfly*)
6983- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6984+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6985 hardcode_libdir_flag_spec='-R$libdir'
6986 hardcode_direct=yes
6987 hardcode_shlibpath_var=no
Patrick Williams213cb262021-08-07 19:21:33 -05006988@@ -8820,7 +9399,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006989
6990 hpux9*)
6991 if test "$GCC" = yes; then
6992- 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'
6993+ 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'
6994 else
6995 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'
6996 fi
Patrick Williams213cb262021-08-07 19:21:33 -05006997@@ -8836,7 +9415,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05006998
6999 hpux10*)
7000 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7001- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7002+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7003 else
7004 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7005 fi
Patrick Williams213cb262021-08-07 19:21:33 -05007006@@ -8860,10 +9439,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05007007 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7008 ;;
7009 ia64*)
7010- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7011+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7012 ;;
7013 *)
7014- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7015+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7016 ;;
7017 esac
7018 else
Patrick Williams213cb262021-08-07 19:21:33 -05007019@@ -8942,23 +9521,36 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05007020
7021 irix5* | irix6* | nonstopux*)
7022 if test "$GCC" = yes; then
7023- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7024+ 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'
7025 # Try to use the -exported_symbol ld option, if it does not
7026 # work, assume that -exports_file does not work either and
7027 # implicitly export all symbols.
7028- save_LDFLAGS="$LDFLAGS"
7029- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7030- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031+ # This should be the same for all languages, so no per-tag cache variable.
7032+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
7033+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
7034+if ${lt_cv_irix_exported_symbol+:} false; then :
7035+ $as_echo_n "(cached) " >&6
7036+else
7037+ save_LDFLAGS="$LDFLAGS"
7038+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7039+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041-int foo(void) {}
7042+int foo (void) { return 0; }
7043 _ACEOF
7044 if ac_fn_c_try_link "$LINENO"; then :
7045- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7046-
7047+ lt_cv_irix_exported_symbol=yes
7048+else
7049+ lt_cv_irix_exported_symbol=no
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053- LDFLAGS="$save_LDFLAGS"
7054+ LDFLAGS="$save_LDFLAGS"
7055+fi
7056+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
7057+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
7058+ if test "$lt_cv_irix_exported_symbol" = yes; then
7059+ 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'
7060+ fi
7061 else
7062 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'
7063 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'
Patrick Williams213cb262021-08-07 19:21:33 -05007064@@ -9043,7 +9635,7 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05007065 osf4* | osf5*) # as osf3* with the addition of -msym flag
7066 if test "$GCC" = yes; then
7067 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7068- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7069+ 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'
7070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7071 else
7072 allow_undefined_flag=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -05007073@@ -9062,9 +9654,9 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05007074 no_undefined_flag=' -z defs'
7075 if test "$GCC" = yes; then
7076 wlarc='${wl}'
7077- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7078+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7080- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7081+ $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'
7082 else
7083 case `$CC -V 2>&1` in
7084 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -05007085@@ -9640,8 +10232,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05007086 need_version=no
7087 need_lib_prefix=no
7088
7089- case $GCC,$host_os in
7090- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
7091+ case $GCC,$cc_basename in
7092+ yes,*)
7093+ # gcc
7094 library_names_spec='$libname.dll.a'
7095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7096 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -05007097@@ -9674,13 +10267,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05007098 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7099 ;;
7100 esac
7101+ dynamic_linker='Win32 ld.exe'
7102+ ;;
7103+
7104+ *,cl*)
7105+ # Native MSVC
7106+ libname_spec='$name'
7107+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7108+ library_names_spec='${libname}.dll.lib'
7109+
7110+ case $build_os in
7111+ mingw*)
7112+ sys_lib_search_path_spec=
7113+ lt_save_ifs=$IFS
7114+ IFS=';'
7115+ for lt_path in $LIB
7116+ do
7117+ IFS=$lt_save_ifs
7118+ # Let DOS variable expansion print the short 8.3 style file name.
7119+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
7120+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
7121+ done
7122+ IFS=$lt_save_ifs
7123+ # Convert to MSYS style.
7124+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
7125+ ;;
7126+ cygwin*)
7127+ # Convert to unix form, then to dos form, then back to unix form
7128+ # but this time dos style (no spaces!) so that the unix form looks
7129+ # like /cygdrive/c/PROGRA~1:/cygdr...
7130+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
7131+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
7132+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7133+ ;;
7134+ *)
7135+ sys_lib_search_path_spec="$LIB"
7136+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7137+ # It is most probably a Windows format PATH.
7138+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7139+ else
7140+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7141+ fi
7142+ # FIXME: find the short name or the path components, as spaces are
7143+ # common. (e.g. "Program Files" -> "PROGRA~1")
7144+ ;;
7145+ esac
7146+
7147+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
7148+ postinstall_cmds='base_file=`basename \${file}`~
7149+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7150+ dldir=$destdir/`dirname \$dlpath`~
7151+ test -d \$dldir || mkdir -p \$dldir~
7152+ $install_prog $dir/$dlname \$dldir/$dlname'
7153+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7154+ dlpath=$dir/\$dldll~
7155+ $RM \$dlpath'
7156+ shlibpath_overrides_runpath=yes
7157+ dynamic_linker='Win32 link.exe'
7158 ;;
7159
7160 *)
7161+ # Assume MSVC wrapper
7162 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7163+ dynamic_linker='Win32 ld.exe'
7164 ;;
7165 esac
7166- dynamic_linker='Win32 ld.exe'
7167 # FIXME: first we should search . and the directory the executable is in
7168 shlibpath_var=PATH
7169 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05007170@@ -9762,7 +10413,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05007171 soname_spec='${libname}${release}${shared_ext}$major'
7172 shlibpath_var=LIBRARY_PATH
7173 shlibpath_overrides_runpath=yes
7174- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
7175+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
7176 hardcode_into_libs=yes
7177 ;;
7178
Patrick Williams213cb262021-08-07 19:21:33 -05007179@@ -10558,7 +11209,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05007180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7181 lt_status=$lt_dlunknown
7182 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05007183-#line 10561 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05007184+#line $LINENO "configure"
7185 #include "confdefs.h"
7186
7187 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05007188@@ -10602,10 +11253,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05007189 /* When -fvisbility=hidden is used, assume the code has been annotated
7190 correspondingly for the symbols needed. */
7191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
7192-void fnord () __attribute__((visibility("default")));
7193+int fnord () __attribute__((visibility("default")));
7194 #endif
7195
7196-void fnord () { int i=42; }
7197+int fnord () { return 42; }
7198 int main ()
7199 {
7200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05007201@@ -10664,7 +11315,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05007202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7203 lt_status=$lt_dlunknown
7204 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05007205-#line 10667 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05007206+#line $LINENO "configure"
7207 #include "confdefs.h"
7208
7209 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05007210@@ -10708,10 +11359,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05007211 /* When -fvisbility=hidden is used, assume the code has been annotated
7212 correspondingly for the symbols needed. */
7213 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
7214-void fnord () __attribute__((visibility("default")));
7215+int fnord () __attribute__((visibility("default")));
7216 #endif
7217
7218-void fnord () { int i=42; }
7219+int fnord () { return 42; }
7220 int main ()
7221 {
7222 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05007223@@ -12731,13 +13382,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Andrew Geissler82c905d2020-04-13 13:39:40 -05007224 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
7225 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
7226 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
7227+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
7228+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
7229 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
7230 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
7231 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
7232 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
7233 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
7234+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
7235+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
7236+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
7237+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
7238 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
7239 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
7240+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
7241 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
7242 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
7243 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05007244@@ -12752,14 +13410,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
Andrew Geissler82c905d2020-04-13 13:39:40 -05007245 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
7246 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
7247 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"`'
7248+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
7249+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
7250 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
7251 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
7252 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
7253-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
7254 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
7255+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
7256 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
7257 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
7258 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
7259+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
7260 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
7261 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
7262 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05007263@@ -12792,12 +13453,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
Andrew Geissler82c905d2020-04-13 13:39:40 -05007264 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
7265 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
7266 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
7267-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
7268 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
7269 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
7270 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
7271 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
7272 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
7273+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
7274 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
7275 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
7276 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05007277@@ -12852,8 +13513,13 @@ reload_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05007278 OBJDUMP \
7279 deplibs_check_method \
7280 file_magic_cmd \
7281+file_magic_glob \
7282+want_nocaseglob \
7283+DLLTOOL \
7284+sharedlib_from_linklib_cmd \
7285 AR \
7286 AR_FLAGS \
7287+archiver_list_spec \
7288 STRIP \
7289 RANLIB \
7290 CC \
Patrick Williams213cb262021-08-07 19:21:33 -05007291@@ -12863,12 +13529,14 @@ lt_cv_sys_global_symbol_pipe \
Andrew Geissler82c905d2020-04-13 13:39:40 -05007292 lt_cv_sys_global_symbol_to_cdecl \
7293 lt_cv_sys_global_symbol_to_c_name_address \
7294 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
7295+nm_file_list_spec \
7296 lt_prog_compiler_no_builtin_flag \
7297-lt_prog_compiler_wl \
7298 lt_prog_compiler_pic \
7299+lt_prog_compiler_wl \
7300 lt_prog_compiler_static \
7301 lt_cv_prog_compiler_c_o \
7302 need_locks \
7303+MANIFEST_TOOL \
7304 DSYMUTIL \
7305 NMEDIT \
7306 LIPO \
Patrick Williams213cb262021-08-07 19:21:33 -05007307@@ -12884,7 +13552,6 @@ no_undefined_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05007308 hardcode_libdir_flag_spec \
7309 hardcode_libdir_flag_spec_ld \
7310 hardcode_libdir_separator \
7311-fix_srcfile_path \
7312 exclude_expsyms \
7313 include_expsyms \
7314 file_list_spec \
Patrick Williams213cb262021-08-07 19:21:33 -05007315@@ -12920,6 +13587,7 @@ module_cmds \
Andrew Geissler82c905d2020-04-13 13:39:40 -05007316 module_expsym_cmds \
7317 export_symbols_cmds \
7318 prelink_cmds \
7319+postlink_cmds \
7320 postinstall_cmds \
7321 postuninstall_cmds \
7322 finish_cmds \
Patrick Williams213cb262021-08-07 19:21:33 -05007323@@ -13685,7 +14353,8 @@ $as_echo X"$file" |
Andrew Geissler82c905d2020-04-13 13:39:40 -05007324 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7325 #
7326 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
7327-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
7328+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
7329+# Inc.
7330 # Written by Gordon Matzigkeit, 1996
7331 #
7332 # This file is part of GNU Libtool.
Patrick Williams213cb262021-08-07 19:21:33 -05007333@@ -13788,19 +14457,42 @@ SP2NL=$lt_lt_SP2NL
Andrew Geissler82c905d2020-04-13 13:39:40 -05007334 # turn newlines into spaces.
7335 NL2SP=$lt_lt_NL2SP
7336
7337+# convert \$build file names to \$host format.
7338+to_host_file_cmd=$lt_cv_to_host_file_cmd
7339+
7340+# convert \$build files to toolchain format.
7341+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7342+
7343 # An object symbol dumper.
7344 OBJDUMP=$lt_OBJDUMP
7345
7346 # Method to check whether dependent libraries are shared objects.
7347 deplibs_check_method=$lt_deplibs_check_method
7348
7349-# Command to use when deplibs_check_method == "file_magic".
7350+# Command to use when deplibs_check_method = "file_magic".
7351 file_magic_cmd=$lt_file_magic_cmd
7352
7353+# How to find potential files when deplibs_check_method = "file_magic".
7354+file_magic_glob=$lt_file_magic_glob
7355+
7356+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
7357+want_nocaseglob=$lt_want_nocaseglob
7358+
7359+# DLL creation program.
7360+DLLTOOL=$lt_DLLTOOL
7361+
7362+# Command to associate shared and link libraries.
7363+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
7364+
7365 # The archiver.
7366 AR=$lt_AR
7367+
7368+# Flags to create an archive.
7369 AR_FLAGS=$lt_AR_FLAGS
7370
7371+# How to feed a file listing to the archiver.
7372+archiver_list_spec=$lt_archiver_list_spec
7373+
7374 # A symbol stripping program.
7375 STRIP=$lt_STRIP
7376
Patrick Williams213cb262021-08-07 19:21:33 -05007377@@ -13830,6 +14522,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Andrew Geissler82c905d2020-04-13 13:39:40 -05007378 # Transform the output of nm in a C name address pair when lib prefix is needed.
7379 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
7380
7381+# Specify filename containing input files for \$NM.
7382+nm_file_list_spec=$lt_nm_file_list_spec
7383+
7384+# The root where to search for dependent libraries,and in which our libraries should be installed.
7385+lt_sysroot=$lt_sysroot
7386+
7387 # The name of the directory that contains temporary libtool files.
7388 objdir=$objdir
7389
Patrick Williams213cb262021-08-07 19:21:33 -05007390@@ -13839,6 +14537,9 @@ MAGIC_CMD=$MAGIC_CMD
Andrew Geissler82c905d2020-04-13 13:39:40 -05007391 # Must we lock files when doing compilation?
7392 need_locks=$lt_need_locks
7393
7394+# Manifest tool.
7395+MANIFEST_TOOL=$lt_MANIFEST_TOOL
7396+
7397 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
7398 DSYMUTIL=$lt_DSYMUTIL
7399
Patrick Williams213cb262021-08-07 19:21:33 -05007400@@ -13953,12 +14654,12 @@ with_gcc=$GCC
Andrew Geissler82c905d2020-04-13 13:39:40 -05007401 # Compiler flag to turn off builtin functions.
7402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
7403
7404-# How to pass a linker flag through the compiler.
7405-wl=$lt_lt_prog_compiler_wl
7406-
7407 # Additional compiler flags for building library objects.
7408 pic_flag=$lt_lt_prog_compiler_pic
7409
7410+# How to pass a linker flag through the compiler.
7411+wl=$lt_lt_prog_compiler_wl
7412+
7413 # Compiler flag to prevent dynamic linking.
7414 link_static_flag=$lt_lt_prog_compiler_static
7415
Patrick Williams213cb262021-08-07 19:21:33 -05007416@@ -14045,9 +14746,6 @@ inherit_rpath=$inherit_rpath
Andrew Geissler82c905d2020-04-13 13:39:40 -05007417 # Whether libtool must link a program against all its dependency libraries.
7418 link_all_deplibs=$link_all_deplibs
7419
7420-# Fix the shell variable \$srcfile for the compiler.
7421-fix_srcfile_path=$lt_fix_srcfile_path
7422-
7423 # Set to "yes" if exported symbols are required.
7424 always_export_symbols=$always_export_symbols
7425
Patrick Williams213cb262021-08-07 19:21:33 -05007426@@ -14063,6 +14761,9 @@ include_expsyms=$lt_include_expsyms
Andrew Geissler82c905d2020-04-13 13:39:40 -05007427 # Commands necessary for linking programs (against libraries) with templates.
7428 prelink_cmds=$lt_prelink_cmds
7429
7430+# Commands necessary for finishing linking programs.
7431+postlink_cmds=$lt_postlink_cmds
7432+
7433 # Specify filename containing input files.
7434 file_list_spec=$lt_file_list_spec
7435
Patrick Williams213cb262021-08-07 19:21:33 -05007436@@ -14095,210 +14796,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -05007437 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7438 # text mode, it properly converts lines to CR/LF. This bash problem
7439 # is reportedly fixed, but why not run on old versions too?
7440- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
7441- || (rm -f "$cfgfile"; exit 1)
7442-
7443- case $xsi_shell in
7444- yes)
7445- cat << \_LT_EOF >> "$cfgfile"
7446-
7447-# func_dirname file append nondir_replacement
7448-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7449-# otherwise set result to NONDIR_REPLACEMENT.
7450-func_dirname ()
7451-{
7452- case ${1} in
7453- */*) func_dirname_result="${1%/*}${2}" ;;
7454- * ) func_dirname_result="${3}" ;;
7455- esac
7456-}
7457-
7458-# func_basename file
7459-func_basename ()
7460-{
7461- func_basename_result="${1##*/}"
7462-}
7463-
7464-# func_dirname_and_basename file append nondir_replacement
7465-# perform func_basename and func_dirname in a single function
7466-# call:
7467-# dirname: Compute the dirname of FILE. If nonempty,
7468-# add APPEND to the result, otherwise set result
7469-# to NONDIR_REPLACEMENT.
7470-# value returned in "$func_dirname_result"
7471-# basename: Compute filename of FILE.
7472-# value retuned in "$func_basename_result"
7473-# Implementation must be kept synchronized with func_dirname
7474-# and func_basename. For efficiency, we do not delegate to
7475-# those functions but instead duplicate the functionality here.
7476-func_dirname_and_basename ()
7477-{
7478- case ${1} in
7479- */*) func_dirname_result="${1%/*}${2}" ;;
7480- * ) func_dirname_result="${3}" ;;
7481- esac
7482- func_basename_result="${1##*/}"
7483-}
7484-
7485-# func_stripname prefix suffix name
7486-# strip PREFIX and SUFFIX off of NAME.
7487-# PREFIX and SUFFIX must not contain globbing or regex special
7488-# characters, hashes, percent signs, but SUFFIX may contain a leading
7489-# dot (in which case that matches only a dot).
7490-func_stripname ()
7491-{
7492- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7493- # positional parameters, so assign one to ordinary parameter first.
7494- func_stripname_result=${3}
7495- func_stripname_result=${func_stripname_result#"${1}"}
7496- func_stripname_result=${func_stripname_result%"${2}"}
7497-}
7498-
7499-# func_opt_split
7500-func_opt_split ()
7501-{
7502- func_opt_split_opt=${1%%=*}
7503- func_opt_split_arg=${1#*=}
7504-}
7505-
7506-# func_lo2o object
7507-func_lo2o ()
7508-{
7509- case ${1} in
7510- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7511- *) func_lo2o_result=${1} ;;
7512- esac
7513-}
7514-
7515-# func_xform libobj-or-source
7516-func_xform ()
7517-{
7518- func_xform_result=${1%.*}.lo
7519-}
7520-
7521-# func_arith arithmetic-term...
7522-func_arith ()
7523-{
7524- func_arith_result=$(( $* ))
7525-}
7526-
7527-# func_len string
7528-# STRING may not start with a hyphen.
7529-func_len ()
7530-{
7531- func_len_result=${#1}
7532-}
7533-
7534-_LT_EOF
7535- ;;
7536- *) # Bourne compatible functions.
7537- cat << \_LT_EOF >> "$cfgfile"
7538-
7539-# func_dirname file append nondir_replacement
7540-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7541-# otherwise set result to NONDIR_REPLACEMENT.
7542-func_dirname ()
7543-{
7544- # Extract subdirectory from the argument.
7545- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7546- if test "X$func_dirname_result" = "X${1}"; then
7547- func_dirname_result="${3}"
7548- else
7549- func_dirname_result="$func_dirname_result${2}"
7550- fi
7551-}
7552-
7553-# func_basename file
7554-func_basename ()
7555-{
7556- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7557-}
7558-
7559-
7560-# func_stripname prefix suffix name
7561-# strip PREFIX and SUFFIX off of NAME.
7562-# PREFIX and SUFFIX must not contain globbing or regex special
7563-# characters, hashes, percent signs, but SUFFIX may contain a leading
7564-# dot (in which case that matches only a dot).
7565-# func_strip_suffix prefix name
7566-func_stripname ()
7567-{
7568- case ${2} in
7569- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7570- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7571- esac
7572-}
7573-
7574-# sed scripts:
7575-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
7576-my_sed_long_arg='1s/^-[^=]*=//'
7577-
7578-# func_opt_split
7579-func_opt_split ()
7580-{
7581- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
7582- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7583-}
7584-
7585-# func_lo2o object
7586-func_lo2o ()
7587-{
7588- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7589-}
7590-
7591-# func_xform libobj-or-source
7592-func_xform ()
7593-{
7594- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
7595-}
7596-
7597-# func_arith arithmetic-term...
7598-func_arith ()
7599-{
7600- func_arith_result=`expr "$@"`
7601-}
7602-
7603-# func_len string
7604-# STRING may not start with a hyphen.
7605-func_len ()
7606-{
7607- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
7608-}
7609-
7610-_LT_EOF
7611-esac
7612-
7613-case $lt_shell_append in
7614- yes)
7615- cat << \_LT_EOF >> "$cfgfile"
7616-
7617-# func_append var value
7618-# Append VALUE to the end of shell variable VAR.
7619-func_append ()
7620-{
7621- eval "$1+=\$2"
7622-}
7623-_LT_EOF
7624- ;;
7625- *)
7626- cat << \_LT_EOF >> "$cfgfile"
7627-
7628-# func_append var value
7629-# Append VALUE to the end of shell variable VAR.
7630-func_append ()
7631-{
7632- eval "$1=\$$1\$2"
7633-}
7634-
7635-_LT_EOF
7636- ;;
7637- esac
7638-
7639-
7640- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
7641- || (rm -f "$cfgfile"; exit 1)
7642-
7643- mv -f "$cfgfile" "$ofile" ||
7644+ sed '$q' "$ltmain" >> "$cfgfile" \
7645+ || (rm -f "$cfgfile"; exit 1)
7646+
7647+ if test x"$xsi_shell" = xyes; then
7648+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
7649+func_dirname ()\
7650+{\
7651+\ case ${1} in\
7652+\ */*) func_dirname_result="${1%/*}${2}" ;;\
7653+\ * ) func_dirname_result="${3}" ;;\
7654+\ esac\
7655+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
7656+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7657+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7658+test 0 -eq $? || _lt_function_replace_fail=:
7659+
7660+
7661+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
7662+func_basename ()\
7663+{\
7664+\ func_basename_result="${1##*/}"\
7665+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
7666+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7667+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7668+test 0 -eq $? || _lt_function_replace_fail=:
7669+
7670+
7671+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
7672+func_dirname_and_basename ()\
7673+{\
7674+\ case ${1} in\
7675+\ */*) func_dirname_result="${1%/*}${2}" ;;\
7676+\ * ) func_dirname_result="${3}" ;;\
7677+\ esac\
7678+\ func_basename_result="${1##*/}"\
7679+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
7680+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7681+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7682+test 0 -eq $? || _lt_function_replace_fail=:
7683+
7684+
7685+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
7686+func_stripname ()\
7687+{\
7688+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
7689+\ # positional parameters, so assign one to ordinary parameter first.\
7690+\ func_stripname_result=${3}\
7691+\ func_stripname_result=${func_stripname_result#"${1}"}\
7692+\ func_stripname_result=${func_stripname_result%"${2}"}\
7693+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
7694+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7695+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7696+test 0 -eq $? || _lt_function_replace_fail=:
7697+
7698+
7699+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
7700+func_split_long_opt ()\
7701+{\
7702+\ func_split_long_opt_name=${1%%=*}\
7703+\ func_split_long_opt_arg=${1#*=}\
7704+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
7705+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7706+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7707+test 0 -eq $? || _lt_function_replace_fail=:
7708+
7709+
7710+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
7711+func_split_short_opt ()\
7712+{\
7713+\ func_split_short_opt_arg=${1#??}\
7714+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
7715+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
7716+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7717+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7718+test 0 -eq $? || _lt_function_replace_fail=:
7719+
7720+
7721+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
7722+func_lo2o ()\
7723+{\
7724+\ case ${1} in\
7725+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
7726+\ *) func_lo2o_result=${1} ;;\
7727+\ esac\
7728+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
7729+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7730+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7731+test 0 -eq $? || _lt_function_replace_fail=:
7732+
7733+
7734+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
7735+func_xform ()\
7736+{\
7737+ func_xform_result=${1%.*}.lo\
7738+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
7739+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7740+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7741+test 0 -eq $? || _lt_function_replace_fail=:
7742+
7743+
7744+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
7745+func_arith ()\
7746+{\
7747+ func_arith_result=$(( $* ))\
7748+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
7749+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7750+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7751+test 0 -eq $? || _lt_function_replace_fail=:
7752+
7753+
7754+ sed -e '/^func_len ()$/,/^} # func_len /c\
7755+func_len ()\
7756+{\
7757+ func_len_result=${#1}\
7758+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
7759+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7760+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7761+test 0 -eq $? || _lt_function_replace_fail=:
7762+
7763+fi
7764+
7765+if test x"$lt_shell_append" = xyes; then
7766+ sed -e '/^func_append ()$/,/^} # func_append /c\
7767+func_append ()\
7768+{\
7769+ eval "${1}+=\\${2}"\
7770+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
7771+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7772+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7773+test 0 -eq $? || _lt_function_replace_fail=:
7774+
7775+
7776+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
7777+func_append_quoted ()\
7778+{\
7779+\ func_quote_for_eval "${2}"\
7780+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
7781+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
7782+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7783+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7784+test 0 -eq $? || _lt_function_replace_fail=:
7785+
7786+
7787+ # Save a `func_append' function call where possible by direct use of '+='
7788+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7789+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7790+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7791+ test 0 -eq $? || _lt_function_replace_fail=:
7792+else
7793+ # Save a `func_append' function call even when '+=' is not available
7794+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7795+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7796+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7797+ test 0 -eq $? || _lt_function_replace_fail=:
7798+fi
7799+
7800+if test x"$_lt_function_replace_fail" = x":"; then
7801+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
7802+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
7803+fi
7804+
7805+
7806+ mv -f "$cfgfile" "$ofile" ||
7807 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7808 chmod +x "$ofile"
7809
7810diff --git a/ld/configure b/ld/configure
Patrick Williams213cb262021-08-07 19:21:33 -05007811index 2aeb3317b65..5ef46d31558 100755
Andrew Geissler82c905d2020-04-13 13:39:40 -05007812--- a/ld/configure
7813+++ b/ld/configure
Andrew Geisslerd1e89492021-02-12 15:35:20 -06007814@@ -693,8 +693,11 @@ OTOOL
Andrew Geissler82c905d2020-04-13 13:39:40 -05007815 LIPO
7816 NMEDIT
7817 DSYMUTIL
7818+MANIFEST_TOOL
7819 RANLIB
7820+ac_ct_AR
7821 AR
7822+DLLTOOL
7823 OBJDUMP
7824 LN_S
7825 NM
Andrew Geisslerd1e89492021-02-12 15:35:20 -06007826@@ -821,6 +824,7 @@ enable_static
Andrew Geissler82c905d2020-04-13 13:39:40 -05007827 with_pic
7828 enable_fast_install
7829 with_gnu_ld
7830+with_libtool_sysroot
7831 enable_libtool_lock
7832 enable_plugins
7833 enable_largefile
Patrick Williams213cb262021-08-07 19:21:33 -05007834@@ -1528,6 +1532,8 @@ Optional Packages:
Andrew Geissler82c905d2020-04-13 13:39:40 -05007835 --with-pic try to use only PIC/non-PIC objects [default=use
7836 both]
7837 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
7838+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
7839+ (or the compiler's sysroot if not specified).
7840 --with-lib-path=dir1:dir2... set default LIB_PATH
7841 --with-sysroot=DIR Search for usr/lib et al within DIR.
7842 --with-system-zlib use installed libz
Patrick Williams213cb262021-08-07 19:21:33 -05007843@@ -5327,8 +5333,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05007844
7845
7846
7847-macro_version='2.2.7a'
7848-macro_revision='1.3134'
7849+macro_version='2.4'
7850+macro_revision='1.3293'
7851
7852
7853
Patrick Williams213cb262021-08-07 19:21:33 -05007854@@ -5368,7 +5374,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Andrew Geissler82c905d2020-04-13 13:39:40 -05007855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7856 $as_echo_n "checking how to print strings... " >&6; }
7857 # Test print first, because it will be a builtin if present.
7858-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7859+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7860 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7861 ECHO='print -r --'
7862 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Patrick Williams213cb262021-08-07 19:21:33 -05007863@@ -6054,8 +6060,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
Andrew Geissler82c905d2020-04-13 13:39:40 -05007864 # Try some XSI features
7865 xsi_shell=no
7866 ( _lt_dummy="a/b/c"
7867- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7868- = c,a/b,, \
7869+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7870+ = c,a/b,b/c, \
7871 && eval 'test $(( 1 + 1 )) -eq 2 \
7872 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7873 && xsi_shell=yes
Patrick Williams213cb262021-08-07 19:21:33 -05007874@@ -6104,6 +6110,80 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05007875
7876
7877
7878+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7879+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7880+if ${lt_cv_to_host_file_cmd+:} false; then :
7881+ $as_echo_n "(cached) " >&6
7882+else
7883+ case $host in
7884+ *-*-mingw* )
7885+ case $build in
7886+ *-*-mingw* ) # actually msys
7887+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7888+ ;;
7889+ *-*-cygwin* )
7890+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7891+ ;;
7892+ * ) # otherwise, assume *nix
7893+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7894+ ;;
7895+ esac
7896+ ;;
7897+ *-*-cygwin* )
7898+ case $build in
7899+ *-*-mingw* ) # actually msys
7900+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7901+ ;;
7902+ *-*-cygwin* )
7903+ lt_cv_to_host_file_cmd=func_convert_file_noop
7904+ ;;
7905+ * ) # otherwise, assume *nix
7906+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7907+ ;;
7908+ esac
7909+ ;;
7910+ * ) # unhandled hosts (and "normal" native builds)
7911+ lt_cv_to_host_file_cmd=func_convert_file_noop
7912+ ;;
7913+esac
7914+
7915+fi
7916+
7917+to_host_file_cmd=$lt_cv_to_host_file_cmd
7918+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7919+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7920+
7921+
7922+
7923+
7924+
7925+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7926+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7927+if ${lt_cv_to_tool_file_cmd+:} false; then :
7928+ $as_echo_n "(cached) " >&6
7929+else
7930+ #assume ordinary cross tools, or native build.
7931+lt_cv_to_tool_file_cmd=func_convert_file_noop
7932+case $host in
7933+ *-*-mingw* )
7934+ case $build in
7935+ *-*-mingw* ) # actually msys
7936+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7937+ ;;
7938+ esac
7939+ ;;
7940+esac
7941+
7942+fi
7943+
7944+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7945+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7946+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7947+
7948+
7949+
7950+
7951+
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7953 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7954 if ${lt_cv_ld_reload_flag+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05007955@@ -6120,6 +6200,11 @@ case $reload_flag in
Andrew Geissler82c905d2020-04-13 13:39:40 -05007956 esac
7957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7958 case $host_os in
7959+ cygwin* | mingw* | pw32* | cegcc*)
7960+ if test "$GCC" != yes; then
7961+ reload_cmds=false
7962+ fi
7963+ ;;
7964 darwin*)
7965 if test "$GCC" = yes; then
7966 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Patrick Williams213cb262021-08-07 19:21:33 -05007967@@ -6288,7 +6373,8 @@ mingw* | pw32*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05007968 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7969 lt_cv_file_magic_cmd='func_win32_libid'
7970 else
7971- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7972+ # Keep this pattern in sync with the one in func_win32_libid.
7973+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7974 lt_cv_file_magic_cmd='$OBJDUMP -f'
7975 fi
7976 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05007977@@ -6442,6 +6528,21 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05007978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7981+
7982+file_magic_glob=
7983+want_nocaseglob=no
7984+if test "$build" = "$host"; then
7985+ case $host_os in
7986+ mingw* | pw32*)
7987+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7988+ want_nocaseglob=yes
7989+ else
7990+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7991+ fi
7992+ ;;
7993+ esac
7994+fi
7995+
7996 file_magic_cmd=$lt_cv_file_magic_cmd
7997 deplibs_check_method=$lt_cv_deplibs_check_method
7998 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -05007999@@ -6457,6 +6558,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler82c905d2020-04-13 13:39:40 -05008000
8001
8002
8003+
8004+
8005+
8006+
8007+
8008+
8009+
8010+
8011+
8012+
8013+if test -n "$ac_tool_prefix"; then
8014+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8015+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8016+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017+$as_echo_n "checking for $ac_word... " >&6; }
8018+if ${ac_cv_prog_DLLTOOL+:} false; then :
8019+ $as_echo_n "(cached) " >&6
8020+else
8021+ if test -n "$DLLTOOL"; then
8022+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8023+else
8024+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025+for as_dir in $PATH
8026+do
8027+ IFS=$as_save_IFS
8028+ test -z "$as_dir" && as_dir=.
8029+ for ac_exec_ext in '' $ac_executable_extensions; do
8030+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8032+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033+ break 2
8034+ fi
8035+done
8036+ done
8037+IFS=$as_save_IFS
8038+
8039+fi
8040+fi
8041+DLLTOOL=$ac_cv_prog_DLLTOOL
8042+if test -n "$DLLTOOL"; then
8043+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8044+$as_echo "$DLLTOOL" >&6; }
8045+else
8046+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047+$as_echo "no" >&6; }
8048+fi
8049+
8050+
8051+fi
8052+if test -z "$ac_cv_prog_DLLTOOL"; then
8053+ ac_ct_DLLTOOL=$DLLTOOL
8054+ # Extract the first word of "dlltool", so it can be a program name with args.
8055+set dummy dlltool; ac_word=$2
8056+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057+$as_echo_n "checking for $ac_word... " >&6; }
8058+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8059+ $as_echo_n "(cached) " >&6
8060+else
8061+ if test -n "$ac_ct_DLLTOOL"; then
8062+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8063+else
8064+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065+for as_dir in $PATH
8066+do
8067+ IFS=$as_save_IFS
8068+ test -z "$as_dir" && as_dir=.
8069+ for ac_exec_ext in '' $ac_executable_extensions; do
8070+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8072+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073+ break 2
8074+ fi
8075+done
8076+ done
8077+IFS=$as_save_IFS
8078+
8079+fi
8080+fi
8081+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8082+if test -n "$ac_ct_DLLTOOL"; then
8083+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8084+$as_echo "$ac_ct_DLLTOOL" >&6; }
8085+else
8086+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087+$as_echo "no" >&6; }
8088+fi
8089+
8090+ if test "x$ac_ct_DLLTOOL" = x; then
8091+ DLLTOOL="false"
8092+ else
8093+ case $cross_compiling:$ac_tool_warned in
8094+yes:)
8095+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097+ac_tool_warned=yes ;;
8098+esac
8099+ DLLTOOL=$ac_ct_DLLTOOL
8100+ fi
8101+else
8102+ DLLTOOL="$ac_cv_prog_DLLTOOL"
8103+fi
8104+
8105+test -z "$DLLTOOL" && DLLTOOL=dlltool
8106+
8107+
8108+
8109+
8110+
8111+
8112+
8113+
8114+
8115+
8116+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8117+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8118+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8119+ $as_echo_n "(cached) " >&6
8120+else
8121+ lt_cv_sharedlib_from_linklib_cmd='unknown'
8122+
8123+case $host_os in
8124+cygwin* | mingw* | pw32* | cegcc*)
8125+ # two different shell functions defined in ltmain.sh
8126+ # decide which to use based on capabilities of $DLLTOOL
8127+ case `$DLLTOOL --help 2>&1` in
8128+ *--identify-strict*)
8129+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8130+ ;;
8131+ *)
8132+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8133+ ;;
8134+ esac
8135+ ;;
8136+*)
8137+ # fallback: assume linklib IS sharedlib
8138+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8139+ ;;
8140+esac
8141+
8142+fi
8143+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8144+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8145+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8146+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8147+
8148+
8149+
8150+
8151+
8152+
8153+
Patrick Williams213cb262021-08-07 19:21:33 -05008154 plugin_option=
8155 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
8156 for plugin in $plugin_names; do
8157@@ -6471,8 +6723,10 @@ for plugin in $plugin_names; do
8158 done
8159
Andrew Geissler82c905d2020-04-13 13:39:40 -05008160 if test -n "$ac_tool_prefix"; then
8161- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8162-set dummy ${ac_tool_prefix}ar; ac_word=$2
8163+ for ac_prog in ar
8164+ do
8165+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8166+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05008170@@ -6488,7 +6742,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -05008171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174- ac_cv_prog_AR="${ac_tool_prefix}ar"
8175+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
Patrick Williams213cb262021-08-07 19:21:33 -05008179@@ -6508,11 +6762,15 @@ $as_echo "no" >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05008180 fi
8181
8182
8183+ test -n "$AR" && break
8184+ done
8185 fi
8186-if test -z "$ac_cv_prog_AR"; then
8187+if test -z "$AR"; then
8188 ac_ct_AR=$AR
8189- # Extract the first word of "ar", so it can be a program name with args.
8190-set dummy ar; ac_word=$2
8191+ for ac_prog in ar
8192+do
8193+ # Extract the first word of "$ac_prog", so it can be a program name with args.
8194+set dummy $ac_prog; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -05008198@@ -6528,7 +6786,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -05008199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202- ac_cv_prog_ac_ct_AR="ar"
8203+ ac_cv_prog_ac_ct_AR="$ac_prog"
8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8206 fi
Patrick Williams213cb262021-08-07 19:21:33 -05008207@@ -6547,6 +6805,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05008208 $as_echo "no" >&6; }
8209 fi
8210
8211+
8212+ test -n "$ac_ct_AR" && break
8213+done
8214+
8215 if test "x$ac_ct_AR" = x; then
8216 AR="false"
8217 else
Patrick Williams213cb262021-08-07 19:21:33 -05008218@@ -6558,25 +6820,19 @@ ac_tool_warned=yes ;;
Andrew Geissler82c905d2020-04-13 13:39:40 -05008219 esac
8220 AR=$ac_ct_AR
8221 fi
8222-else
8223- AR="$ac_cv_prog_AR"
8224 fi
8225
8226-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -05008227-if test -n "$plugin_option"; then
8228- if $AR --help 2>&1 | grep -q "\--plugin"; then
8229- touch conftest.c
8230- $AR $plugin_option rc conftest.a conftest.c
8231- if test "$?" != 0; then
8232- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
8233+ touch conftest.c
8234+ $AR $plugin_option rc conftest.a conftest.c
8235+ if test "$?" != 0; then
8236+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
8237 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
8238- else
8239- AR="$AR $plugin_option"
8240- fi
8241- rm -f conftest.*
8242+ else
8243+ AR="$AR $plugin_option"
8244 fi
8245-fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008246-test -z "$AR_FLAGS" && AR_FLAGS=cru
Patrick Williams213cb262021-08-07 19:21:33 -05008247+ rm -f conftest.*
Andrew Geissler82c905d2020-04-13 13:39:40 -05008248+: ${AR=ar}
8249+: ${AR_FLAGS=cru}
Andrew Geissler82c905d2020-04-13 13:39:40 -05008250
8251
8252
Patrick Williams213cb262021-08-07 19:21:33 -05008253@@ -6588,6 +6844,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
Andrew Geissler82c905d2020-04-13 13:39:40 -05008254
8255
8256
8257+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8258+$as_echo_n "checking for archiver @FILE support... " >&6; }
8259+if ${lt_cv_ar_at_file+:} false; then :
8260+ $as_echo_n "(cached) " >&6
8261+else
8262+ lt_cv_ar_at_file=no
8263+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264+/* end confdefs.h. */
8265+
8266+int
8267+main ()
8268+{
8269+
8270+ ;
8271+ return 0;
8272+}
8273+_ACEOF
8274+if ac_fn_c_try_compile "$LINENO"; then :
8275+ echo conftest.$ac_objext > conftest.lst
8276+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8277+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8278+ (eval $lt_ar_try) 2>&5
8279+ ac_status=$?
8280+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8281+ test $ac_status = 0; }
8282+ if test "$ac_status" -eq 0; then
8283+ # Ensure the archiver fails upon bogus file names.
8284+ rm -f conftest.$ac_objext libconftest.a
8285+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8286+ (eval $lt_ar_try) 2>&5
8287+ ac_status=$?
8288+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8289+ test $ac_status = 0; }
8290+ if test "$ac_status" -ne 0; then
8291+ lt_cv_ar_at_file=@
8292+ fi
8293+ fi
8294+ rm -f conftest.* libconftest.a
8295+
8296+fi
8297+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298+
8299+fi
8300+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8301+$as_echo "$lt_cv_ar_at_file" >&6; }
8302+
8303+if test "x$lt_cv_ar_at_file" = xno; then
8304+ archiver_list_spec=
8305+else
8306+ archiver_list_spec=$lt_cv_ar_at_file
8307+fi
8308+
8309+
8310+
8311+
8312+
Patrick Williams213cb262021-08-07 19:21:33 -05008313+
8314+
Andrew Geissler82c905d2020-04-13 13:39:40 -05008315 if test -n "$ac_tool_prefix"; then
Patrick Williams213cb262021-08-07 19:21:33 -05008316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8317 set dummy ${ac_tool_prefix}strip; ac_word=$2
8318@@ -6927,8 +7241,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05008319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8320
8321 # Transform an extracted symbol line into symbol name and symbol address
8322-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8323-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'"
8324+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8325+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'"
8326
8327 # Handle CRLF in mingw tool chain
8328 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -05008329@@ -6964,6 +7278,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler82c905d2020-04-13 13:39:40 -05008330 else
8331 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8332 fi
8333+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8334
8335 # Check to see that the pipe works correctly.
8336 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -05008337@@ -7005,6 +7320,18 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008338 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8339 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8340 cat <<_LT_EOF > conftest.$ac_ext
8341+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8342+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8343+/* DATA imports from DLLs on WIN32 con't be const, because runtime
8344+ relocations are performed -- see ld's documentation on pseudo-relocs. */
8345+# define LT_DLSYM_CONST
8346+#elif defined(__osf__)
8347+/* This system does not cope well with relocations in const data. */
8348+# define LT_DLSYM_CONST
8349+#else
8350+# define LT_DLSYM_CONST const
8351+#endif
8352+
8353 #ifdef __cplusplus
8354 extern "C" {
8355 #endif
Patrick Williams213cb262021-08-07 19:21:33 -05008356@@ -7016,7 +7343,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008357 cat <<_LT_EOF >> conftest.$ac_ext
8358
8359 /* The mapping between symbol names and symbols. */
8360-const struct {
8361+LT_DLSYM_CONST struct {
8362 const char *name;
8363 void *address;
8364 }
Patrick Williams213cb262021-08-07 19:21:33 -05008365@@ -7042,8 +7369,8 @@ static const void *lt_preloaded_setup() {
Andrew Geissler82c905d2020-04-13 13:39:40 -05008366 _LT_EOF
8367 # Now try linking the two files.
8368 mv conftest.$ac_objext conftstm.$ac_objext
8369- lt_save_LIBS="$LIBS"
8370- lt_save_CFLAGS="$CFLAGS"
8371+ lt_globsym_save_LIBS=$LIBS
8372+ lt_globsym_save_CFLAGS=$CFLAGS
8373 LIBS="conftstm.$ac_objext"
8374 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Patrick Williams213cb262021-08-07 19:21:33 -05008376@@ -7053,8 +7380,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008377 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8378 pipe_works=yes
8379 fi
8380- LIBS="$lt_save_LIBS"
8381- CFLAGS="$lt_save_CFLAGS"
8382+ LIBS=$lt_globsym_save_LIBS
8383+ CFLAGS=$lt_globsym_save_CFLAGS
8384 else
8385 echo "cannot find nm_test_func in $nlist" >&5
8386 fi
Patrick Williams213cb262021-08-07 19:21:33 -05008387@@ -7091,6 +7418,17 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05008388 $as_echo "ok" >&6; }
8389 fi
8390
8391+# Response file support.
8392+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8393+ nm_file_list_spec='@'
8394+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8395+ nm_file_list_spec='@'
8396+fi
8397+
8398+
8399+
8400+
8401+
Patrick Williams213cb262021-08-07 19:21:33 -05008402
8403
8404
8405@@ -7107,6 +7445,44 @@ fi
8406
8407
8408
Andrew Geissler82c905d2020-04-13 13:39:40 -05008409+
8410+
Andrew Geissler82c905d2020-04-13 13:39:40 -05008411+
8412+
8413+
8414+
8415+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8416+$as_echo_n "checking for sysroot... " >&6; }
8417+
8418+# Check whether --with-libtool-sysroot was given.
8419+if test "${with_libtool_sysroot+set}" = set; then :
8420+ withval=$with_libtool_sysroot;
8421+else
8422+ with_libtool_sysroot=no
8423+fi
8424+
8425+
8426+lt_sysroot=
8427+case ${with_libtool_sysroot} in #(
8428+ yes)
8429+ if test "$GCC" = yes; then
8430+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8431+ fi
8432+ ;; #(
8433+ /*)
8434+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
8435+ ;; #(
8436+ no|'')
8437+ ;; #(
8438+ *)
8439+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
8440+$as_echo "${with_libtool_sysroot}" >&6; }
8441+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8442+ ;;
8443+esac
8444+
8445+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8446+$as_echo "${lt_sysroot:-no}" >&6; }
8447
8448
8449
Patrick Williams213cb262021-08-07 19:21:33 -05008450@@ -7318,6 +7694,123 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -05008451
8452 need_locks="$enable_libtool_lock"
8453
8454+if test -n "$ac_tool_prefix"; then
8455+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8456+set dummy ${ac_tool_prefix}mt; ac_word=$2
8457+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458+$as_echo_n "checking for $ac_word... " >&6; }
8459+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8460+ $as_echo_n "(cached) " >&6
8461+else
8462+ if test -n "$MANIFEST_TOOL"; then
8463+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8464+else
8465+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466+for as_dir in $PATH
8467+do
8468+ IFS=$as_save_IFS
8469+ test -z "$as_dir" && as_dir=.
8470+ for ac_exec_ext in '' $ac_executable_extensions; do
8471+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8473+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474+ break 2
8475+ fi
8476+done
8477+ done
8478+IFS=$as_save_IFS
8479+
8480+fi
8481+fi
8482+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8483+if test -n "$MANIFEST_TOOL"; then
8484+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8485+$as_echo "$MANIFEST_TOOL" >&6; }
8486+else
8487+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488+$as_echo "no" >&6; }
8489+fi
8490+
8491+
8492+fi
8493+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8494+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8495+ # Extract the first word of "mt", so it can be a program name with args.
8496+set dummy mt; ac_word=$2
8497+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498+$as_echo_n "checking for $ac_word... " >&6; }
8499+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8500+ $as_echo_n "(cached) " >&6
8501+else
8502+ if test -n "$ac_ct_MANIFEST_TOOL"; then
8503+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8504+else
8505+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506+for as_dir in $PATH
8507+do
8508+ IFS=$as_save_IFS
8509+ test -z "$as_dir" && as_dir=.
8510+ for ac_exec_ext in '' $ac_executable_extensions; do
8511+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8513+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514+ break 2
8515+ fi
8516+done
8517+ done
8518+IFS=$as_save_IFS
8519+
8520+fi
8521+fi
8522+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8523+if test -n "$ac_ct_MANIFEST_TOOL"; then
8524+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8525+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8526+else
8527+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528+$as_echo "no" >&6; }
8529+fi
8530+
8531+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
8532+ MANIFEST_TOOL=":"
8533+ else
8534+ case $cross_compiling:$ac_tool_warned in
8535+yes:)
8536+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8537+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8538+ac_tool_warned=yes ;;
8539+esac
8540+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8541+ fi
8542+else
8543+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8544+fi
8545+
8546+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8547+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8548+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8549+if ${lt_cv_path_mainfest_tool+:} false; then :
8550+ $as_echo_n "(cached) " >&6
8551+else
8552+ lt_cv_path_mainfest_tool=no
8553+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8554+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8555+ cat conftest.err >&5
8556+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8557+ lt_cv_path_mainfest_tool=yes
8558+ fi
8559+ rm -f conftest*
8560+fi
8561+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8562+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8563+if test "x$lt_cv_path_mainfest_tool" != xyes; then
8564+ MANIFEST_TOOL=:
8565+fi
8566+
8567+
8568+
8569+
8570+
8571
8572 case $host_os in
8573 rhapsody* | darwin*)
Patrick Williams213cb262021-08-07 19:21:33 -05008574@@ -7881,6 +8374,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008575 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8576 echo "$AR cru libconftest.a conftest.o" >&5
8577 $AR cru libconftest.a conftest.o 2>&5
8578+ echo "$RANLIB libconftest.a" >&5
8579+ $RANLIB libconftest.a 2>&5
8580 cat > conftest.c << _LT_EOF
8581 int main() { return 0;}
8582 _LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05008583@@ -7949,6 +8444,16 @@ done
Andrew Geissler82c905d2020-04-13 13:39:40 -05008584
8585
8586
8587+func_stripname_cnf ()
8588+{
8589+ case ${2} in
8590+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8591+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8592+ esac
8593+} # func_stripname_cnf
8594+
8595+
8596+
8597
8598
8599 # Set options
Patrick Williams213cb262021-08-07 19:21:33 -05008600@@ -8077,7 +8582,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008601 LIBTOOL_DEPS="$ltmain"
8602
8603 # Always use our own libtool.
8604-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8605+LIBTOOL='$(SHELL) $(top_builddir)'
8606+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
8607
8608
8609
Patrick Williams213cb262021-08-07 19:21:33 -05008610@@ -8166,7 +8672,7 @@ aix3*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05008611 esac
8612
8613 # Global variables:
8614-ofile=libtool
8615+ofile=${host_alias}-libtool
8616 can_build_shared=yes
8617
8618 # All known linkers require a `.a' archive for static linking (except MSVC,
Patrick Williams213cb262021-08-07 19:21:33 -05008619@@ -8464,8 +8970,6 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008620 lt_prog_compiler_pic=
8621 lt_prog_compiler_static=
8622
8623-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8624-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8625
8626 if test "$GCC" = yes; then
8627 lt_prog_compiler_wl='-Wl,'
Patrick Williams213cb262021-08-07 19:21:33 -05008628@@ -8631,6 +9135,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05008629 lt_prog_compiler_pic='--shared'
8630 lt_prog_compiler_static='--static'
8631 ;;
8632+ nagfor*)
8633+ # NAG Fortran compiler
8634+ lt_prog_compiler_wl='-Wl,-Wl,,'
8635+ lt_prog_compiler_pic='-PIC'
8636+ lt_prog_compiler_static='-Bstatic'
8637+ ;;
8638 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8639 # Portland Group compilers (*not* the Pentium gcc compiler,
8640 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -05008641@@ -8693,7 +9203,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05008642 lt_prog_compiler_pic='-KPIC'
8643 lt_prog_compiler_static='-Bstatic'
8644 case $cc_basename in
8645- f77* | f90* | f95*)
8646+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8647 lt_prog_compiler_wl='-Qoption ld ';;
8648 *)
8649 lt_prog_compiler_wl='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -05008650@@ -8750,13 +9260,17 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -05008651 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8652 ;;
8653 esac
8654-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8655-$as_echo "$lt_prog_compiler_pic" >&6; }
8656-
8657-
8658-
8659-
8660
8661+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8662+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8663+if ${lt_cv_prog_compiler_pic+:} false; then :
8664+ $as_echo_n "(cached) " >&6
8665+else
8666+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8667+fi
8668+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8669+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8670+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8671
8672 #
8673 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -05008674@@ -8817,6 +9331,11 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008675
8676
8677
8678+
8679+
8680+
8681+
8682+
8683 #
8684 # Check to make sure the static flag actually works.
8685 #
Patrick Williams213cb262021-08-07 19:21:33 -05008686@@ -9167,7 +9686,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008687 allow_undefined_flag=unsupported
8688 always_export_symbols=no
8689 enable_shared_with_static_runtimes=yes
8690- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8691+ 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'
8692+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8693
8694 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Patrick Williams213cb262021-08-07 19:21:33 -05008696@@ -9266,12 +9786,12 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008697 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8700- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8701+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8702 if test "x$supports_anon_versioning" = xyes; then
8703 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8704 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8705 echo "local: *; };" >> $output_objdir/$libname.ver~
8706- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8707+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8708 fi
8709 ;;
8710 esac
Patrick Williams213cb262021-08-07 19:21:33 -05008711@@ -9285,8 +9805,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008712 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8713 wlarc=
8714 else
8715- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8717+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8719 fi
8720 ;;
8721
Patrick Williams213cb262021-08-07 19:21:33 -05008722@@ -9304,8 +9824,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008723
8724 _LT_EOF
8725 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8726- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730 else
8731 ld_shlibs=no
8732 fi
Patrick Williams213cb262021-08-07 19:21:33 -05008733@@ -9351,8 +9871,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008734
8735 *)
8736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8737- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8738- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8739+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8741 else
8742 ld_shlibs=no
8743 fi
Patrick Williams213cb262021-08-07 19:21:33 -05008744@@ -9482,7 +10002,13 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -05008745 allow_undefined_flag='-berok'
8746 # Determine the default libpath from the value encoded in an
8747 # empty executable.
8748- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749+ if test "${lt_cv_aix_libpath+set}" = set; then
8750+ aix_libpath=$lt_cv_aix_libpath
8751+else
8752+ if ${lt_cv_aix_libpath_+:} false; then :
8753+ $as_echo_n "(cached) " >&6
8754+else
8755+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757
8758 int
Patrick Williams213cb262021-08-07 19:21:33 -05008759@@ -9495,22 +10021,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05008760 _ACEOF
8761 if ac_fn_c_try_link "$LINENO"; then :
8762
8763-lt_aix_libpath_sed='
8764- /Import File Strings/,/^$/ {
8765- /^0/ {
8766- s/^0 *\(.*\)$/\1/
8767- p
8768- }
8769- }'
8770-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8771-# Check for a 64-bit object if we didn't find anything.
8772-if test -z "$aix_libpath"; then
8773- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8774-fi
8775+ lt_aix_libpath_sed='
8776+ /Import File Strings/,/^$/ {
8777+ /^0/ {
8778+ s/^0 *\([^ ]*\) *$/\1/
8779+ p
8780+ }
8781+ }'
8782+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8783+ # Check for a 64-bit object if we didn't find anything.
8784+ if test -z "$lt_cv_aix_libpath_"; then
8785+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8786+ fi
8787 fi
8788 rm -f core conftest.err conftest.$ac_objext \
8789 conftest$ac_exeext conftest.$ac_ext
8790-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8791+ if test -z "$lt_cv_aix_libpath_"; then
8792+ lt_cv_aix_libpath_="/usr/lib:/lib"
8793+ fi
8794+
8795+fi
8796+
8797+ aix_libpath=$lt_cv_aix_libpath_
8798+fi
8799
8800 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8801 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"
Patrick Williams213cb262021-08-07 19:21:33 -05008802@@ -9522,7 +10055,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008803 else
8804 # Determine the default libpath from the value encoded in an
8805 # empty executable.
8806- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807+ if test "${lt_cv_aix_libpath+set}" = set; then
8808+ aix_libpath=$lt_cv_aix_libpath
8809+else
8810+ if ${lt_cv_aix_libpath_+:} false; then :
8811+ $as_echo_n "(cached) " >&6
8812+else
8813+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815
8816 int
Patrick Williams213cb262021-08-07 19:21:33 -05008817@@ -9535,22 +10074,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05008818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"; then :
8820
8821-lt_aix_libpath_sed='
8822- /Import File Strings/,/^$/ {
8823- /^0/ {
8824- s/^0 *\(.*\)$/\1/
8825- p
8826- }
8827- }'
8828-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8829-# Check for a 64-bit object if we didn't find anything.
8830-if test -z "$aix_libpath"; then
8831- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8832-fi
8833+ lt_aix_libpath_sed='
8834+ /Import File Strings/,/^$/ {
8835+ /^0/ {
8836+ s/^0 *\([^ ]*\) *$/\1/
8837+ p
8838+ }
8839+ }'
8840+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8841+ # Check for a 64-bit object if we didn't find anything.
8842+ if test -z "$lt_cv_aix_libpath_"; then
8843+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8844+ fi
8845 fi
8846 rm -f core conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8849+ if test -z "$lt_cv_aix_libpath_"; then
8850+ lt_cv_aix_libpath_="/usr/lib:/lib"
8851+ fi
8852+
8853+fi
8854+
8855+ aix_libpath=$lt_cv_aix_libpath_
8856+fi
8857
8858 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8859 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -05008860@@ -9594,21 +10140,64 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008861 # When not using gcc, we currently assume that we are using
8862 # Microsoft Visual C++.
8863 # hardcode_libdir_flag_spec is actually meaningless, as there is
8864- # no search path for DLLs.
8865- hardcode_libdir_flag_spec=' '
8866- allow_undefined_flag=unsupported
8867- # Tell ltmain to make .lib files, not .a files.
8868- libext=lib
8869- # Tell ltmain to make .dll files, not .so files.
8870- shrext_cmds=".dll"
8871- # FIXME: Setting linknames here is a bad hack.
8872- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8873- # The linker will automatically build a .lib file if we build a DLL.
8874- old_archive_from_new_cmds='true'
8875- # FIXME: Should let the user specify the lib program.
8876- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8877- fix_srcfile_path='`cygpath -w "$srcfile"`'
8878- enable_shared_with_static_runtimes=yes
8879+ # no search path for DLLs.
8880+ case $cc_basename in
8881+ cl*)
8882+ # Native MSVC
8883+ hardcode_libdir_flag_spec=' '
8884+ allow_undefined_flag=unsupported
8885+ always_export_symbols=yes
8886+ file_list_spec='@'
8887+ # Tell ltmain to make .lib files, not .a files.
8888+ libext=lib
8889+ # Tell ltmain to make .dll files, not .so files.
8890+ shrext_cmds=".dll"
8891+ # FIXME: Setting linknames here is a bad hack.
8892+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8893+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8894+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8895+ else
8896+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8897+ fi~
8898+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8899+ linknames='
8900+ # The linker will not automatically build a static lib if we build a DLL.
8901+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8902+ enable_shared_with_static_runtimes=yes
8903+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8904+ # Don't use ranlib
8905+ old_postinstall_cmds='chmod 644 $oldlib'
8906+ postlink_cmds='lt_outputfile="@OUTPUT@"~
8907+ lt_tool_outputfile="@TOOL_OUTPUT@"~
8908+ case $lt_outputfile in
8909+ *.exe|*.EXE) ;;
8910+ *)
8911+ lt_outputfile="$lt_outputfile.exe"
8912+ lt_tool_outputfile="$lt_tool_outputfile.exe"
8913+ ;;
8914+ esac~
8915+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8916+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8917+ $RM "$lt_outputfile.manifest";
8918+ fi'
8919+ ;;
8920+ *)
8921+ # Assume MSVC wrapper
8922+ hardcode_libdir_flag_spec=' '
8923+ allow_undefined_flag=unsupported
8924+ # Tell ltmain to make .lib files, not .a files.
8925+ libext=lib
8926+ # Tell ltmain to make .dll files, not .so files.
8927+ shrext_cmds=".dll"
8928+ # FIXME: Setting linknames here is a bad hack.
8929+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8930+ # The linker will automatically build a .lib file if we build a DLL.
8931+ old_archive_from_new_cmds='true'
8932+ # FIXME: Should let the user specify the lib program.
8933+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8934+ enable_shared_with_static_runtimes=yes
8935+ ;;
8936+ esac
8937 ;;
8938
8939 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -05008940@@ -9669,7 +10258,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008941
8942 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8943 freebsd* | dragonfly*)
8944- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8945+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8946 hardcode_libdir_flag_spec='-R$libdir'
8947 hardcode_direct=yes
8948 hardcode_shlibpath_var=no
Patrick Williams213cb262021-08-07 19:21:33 -05008949@@ -9677,7 +10266,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008950
8951 hpux9*)
8952 if test "$GCC" = yes; then
8953- 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'
8954+ 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'
8955 else
8956 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'
8957 fi
Patrick Williams213cb262021-08-07 19:21:33 -05008958@@ -9693,7 +10282,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008959
8960 hpux10*)
8961 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8962- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8963+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8964 else
8965 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8966 fi
Patrick Williams213cb262021-08-07 19:21:33 -05008967@@ -9717,10 +10306,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008968 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8969 ;;
8970 ia64*)
8971- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8972+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8973 ;;
8974 *)
8975- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8976+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8977 ;;
8978 esac
8979 else
Patrick Williams213cb262021-08-07 19:21:33 -05008980@@ -9799,23 +10388,36 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05008981
8982 irix5* | irix6* | nonstopux*)
8983 if test "$GCC" = yes; then
8984- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8985+ 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'
8986 # Try to use the -exported_symbol ld option, if it does not
8987 # work, assume that -exports_file does not work either and
8988 # implicitly export all symbols.
8989- save_LDFLAGS="$LDFLAGS"
8990- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8991- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992+ # This should be the same for all languages, so no per-tag cache variable.
8993+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8994+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8995+if ${lt_cv_irix_exported_symbol+:} false; then :
8996+ $as_echo_n "(cached) " >&6
8997+else
8998+ save_LDFLAGS="$LDFLAGS"
8999+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9000+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002-int foo(void) {}
9003+int foo (void) { return 0; }
9004 _ACEOF
9005 if ac_fn_c_try_link "$LINENO"; then :
9006- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9007-
9008+ lt_cv_irix_exported_symbol=yes
9009+else
9010+ lt_cv_irix_exported_symbol=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014- LDFLAGS="$save_LDFLAGS"
9015+ LDFLAGS="$save_LDFLAGS"
9016+fi
9017+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9018+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9019+ if test "$lt_cv_irix_exported_symbol" = yes; then
9020+ 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'
9021+ fi
9022 else
9023 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'
9024 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'
Patrick Williams213cb262021-08-07 19:21:33 -05009025@@ -9900,7 +10502,7 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009026 osf4* | osf5*) # as osf3* with the addition of -msym flag
9027 if test "$GCC" = yes; then
9028 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9029- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9030+ 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'
9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9032 else
9033 allow_undefined_flag=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -05009034@@ -9919,9 +10521,9 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009035 no_undefined_flag=' -z defs'
9036 if test "$GCC" = yes; then
9037 wlarc='${wl}'
9038- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9041- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9042+ $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'
9043 else
9044 case `$CC -V 2>&1` in
9045 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -05009046@@ -10497,8 +11099,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05009047 need_version=no
9048 need_lib_prefix=no
9049
9050- case $GCC,$host_os in
9051- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9052+ case $GCC,$cc_basename in
9053+ yes,*)
9054+ # gcc
9055 library_names_spec='$libname.dll.a'
9056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9057 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -05009058@@ -10531,13 +11134,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05009059 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9060 ;;
9061 esac
9062+ dynamic_linker='Win32 ld.exe'
9063+ ;;
9064+
9065+ *,cl*)
9066+ # Native MSVC
9067+ libname_spec='$name'
9068+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069+ library_names_spec='${libname}.dll.lib'
9070+
9071+ case $build_os in
9072+ mingw*)
9073+ sys_lib_search_path_spec=
9074+ lt_save_ifs=$IFS
9075+ IFS=';'
9076+ for lt_path in $LIB
9077+ do
9078+ IFS=$lt_save_ifs
9079+ # Let DOS variable expansion print the short 8.3 style file name.
9080+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9081+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9082+ done
9083+ IFS=$lt_save_ifs
9084+ # Convert to MSYS style.
9085+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9086+ ;;
9087+ cygwin*)
9088+ # Convert to unix form, then to dos form, then back to unix form
9089+ # but this time dos style (no spaces!) so that the unix form looks
9090+ # like /cygdrive/c/PROGRA~1:/cygdr...
9091+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9092+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9093+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9094+ ;;
9095+ *)
9096+ sys_lib_search_path_spec="$LIB"
9097+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9098+ # It is most probably a Windows format PATH.
9099+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9100+ else
9101+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9102+ fi
9103+ # FIXME: find the short name or the path components, as spaces are
9104+ # common. (e.g. "Program Files" -> "PROGRA~1")
9105+ ;;
9106+ esac
9107+
9108+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
9109+ postinstall_cmds='base_file=`basename \${file}`~
9110+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9111+ dldir=$destdir/`dirname \$dlpath`~
9112+ test -d \$dldir || mkdir -p \$dldir~
9113+ $install_prog $dir/$dlname \$dldir/$dlname'
9114+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9115+ dlpath=$dir/\$dldll~
9116+ $RM \$dlpath'
9117+ shlibpath_overrides_runpath=yes
9118+ dynamic_linker='Win32 link.exe'
9119 ;;
9120
9121 *)
9122+ # Assume MSVC wrapper
9123 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9124+ dynamic_linker='Win32 ld.exe'
9125 ;;
9126 esac
9127- dynamic_linker='Win32 ld.exe'
9128 # FIXME: first we should search . and the directory the executable is in
9129 shlibpath_var=PATH
9130 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05009131@@ -10619,7 +11280,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05009132 soname_spec='${libname}${release}${shared_ext}$major'
9133 shlibpath_var=LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes
9135- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9136+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9137 hardcode_into_libs=yes
9138 ;;
9139
Patrick Williams213cb262021-08-07 19:21:33 -05009140@@ -11415,7 +12076,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05009141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9142 lt_status=$lt_dlunknown
9143 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05009144-#line 11415 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05009145+#line $LINENO "configure"
9146 #include "confdefs.h"
9147
9148 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05009149@@ -11459,10 +12120,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05009150 /* When -fvisbility=hidden is used, assume the code has been annotated
9151 correspondingly for the symbols needed. */
9152 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
9153-void fnord () __attribute__((visibility("default")));
9154+int fnord () __attribute__((visibility("default")));
9155 #endif
9156
9157-void fnord () { int i=42; }
9158+int fnord () { return 42; }
9159 int main ()
9160 {
9161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05009162@@ -11521,7 +12182,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05009163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9164 lt_status=$lt_dlunknown
9165 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -05009166-#line 11521 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -05009167+#line $LINENO "configure"
9168 #include "confdefs.h"
9169
9170 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -05009171@@ -11565,10 +12226,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05009172 /* When -fvisbility=hidden is used, assume the code has been annotated
9173 correspondingly for the symbols needed. */
9174 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
9175-void fnord () __attribute__((visibility("default")));
9176+int fnord () __attribute__((visibility("default")));
9177 #endif
9178
9179-void fnord () { int i=42; }
9180+int fnord () { return 42; }
9181 int main ()
9182 {
9183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -05009184@@ -11960,6 +12621,7 @@ $RM -r conftest*
Andrew Geissler82c905d2020-04-13 13:39:40 -05009185
9186 # Allow CC to be a program name with arguments.
9187 lt_save_CC=$CC
9188+ lt_save_CFLAGS=$CFLAGS
9189 lt_save_LD=$LD
9190 lt_save_GCC=$GCC
9191 GCC=$GXX
Patrick Williams213cb262021-08-07 19:21:33 -05009192@@ -11977,6 +12639,7 @@ $RM -r conftest*
Andrew Geissler82c905d2020-04-13 13:39:40 -05009193 fi
9194 test -z "${LDCXX+set}" || LD=$LDCXX
9195 CC=${CXX-"c++"}
9196+ CFLAGS=$CXXFLAGS
9197 compiler=$CC
9198 compiler_CXX=$CC
9199 for cc_temp in $compiler""; do
Patrick Williams213cb262021-08-07 19:21:33 -05009200@@ -12259,7 +12922,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
Andrew Geissler82c905d2020-04-13 13:39:40 -05009201 allow_undefined_flag_CXX='-berok'
9202 # Determine the default libpath from the value encoded in an empty
9203 # executable.
9204- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205+ if test "${lt_cv_aix_libpath+set}" = set; then
9206+ aix_libpath=$lt_cv_aix_libpath
9207+else
9208+ if ${lt_cv_aix_libpath__CXX+:} false; then :
9209+ $as_echo_n "(cached) " >&6
9210+else
9211+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213
9214 int
Patrick Williams213cb262021-08-07 19:21:33 -05009215@@ -12272,22 +12941,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05009216 _ACEOF
9217 if ac_fn_cxx_try_link "$LINENO"; then :
9218
9219-lt_aix_libpath_sed='
9220- /Import File Strings/,/^$/ {
9221- /^0/ {
9222- s/^0 *\(.*\)$/\1/
9223- p
9224- }
9225- }'
9226-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227-# Check for a 64-bit object if we didn't find anything.
9228-if test -z "$aix_libpath"; then
9229- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230-fi
9231+ lt_aix_libpath_sed='
9232+ /Import File Strings/,/^$/ {
9233+ /^0/ {
9234+ s/^0 *\([^ ]*\) *$/\1/
9235+ p
9236+ }
9237+ }'
9238+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239+ # Check for a 64-bit object if we didn't find anything.
9240+ if test -z "$lt_cv_aix_libpath__CXX"; then
9241+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9242+ fi
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9247+ if test -z "$lt_cv_aix_libpath__CXX"; then
9248+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
9249+ fi
9250+
9251+fi
9252+
9253+ aix_libpath=$lt_cv_aix_libpath__CXX
9254+fi
9255
9256 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9257
Patrick Williams213cb262021-08-07 19:21:33 -05009258@@ -12300,7 +12976,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009259 else
9260 # Determine the default libpath from the value encoded in an
9261 # empty executable.
9262- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263+ if test "${lt_cv_aix_libpath+set}" = set; then
9264+ aix_libpath=$lt_cv_aix_libpath
9265+else
9266+ if ${lt_cv_aix_libpath__CXX+:} false; then :
9267+ $as_echo_n "(cached) " >&6
9268+else
9269+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271
9272 int
Patrick Williams213cb262021-08-07 19:21:33 -05009273@@ -12313,22 +12995,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -05009274 _ACEOF
9275 if ac_fn_cxx_try_link "$LINENO"; then :
9276
9277-lt_aix_libpath_sed='
9278- /Import File Strings/,/^$/ {
9279- /^0/ {
9280- s/^0 *\(.*\)$/\1/
9281- p
9282- }
9283- }'
9284-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9285-# Check for a 64-bit object if we didn't find anything.
9286-if test -z "$aix_libpath"; then
9287- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9288-fi
9289+ lt_aix_libpath_sed='
9290+ /Import File Strings/,/^$/ {
9291+ /^0/ {
9292+ s/^0 *\([^ ]*\) *$/\1/
9293+ p
9294+ }
9295+ }'
9296+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9297+ # Check for a 64-bit object if we didn't find anything.
9298+ if test -z "$lt_cv_aix_libpath__CXX"; then
9299+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9300+ fi
9301 fi
9302 rm -f core conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9305+ if test -z "$lt_cv_aix_libpath__CXX"; then
9306+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
9307+ fi
9308+
9309+fi
9310+
9311+ aix_libpath=$lt_cv_aix_libpath__CXX
9312+fi
9313
9314 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9315 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -05009316@@ -12371,29 +13060,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009317 ;;
9318
9319 cygwin* | mingw* | pw32* | cegcc*)
9320- # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9321- # as there is no search path for DLLs.
9322- hardcode_libdir_flag_spec_CXX='-L$libdir'
9323- export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
9324- allow_undefined_flag_CXX=unsupported
9325- always_export_symbols_CXX=no
9326- enable_shared_with_static_runtimes_CXX=yes
9327-
9328- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9329- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9330- # If the export-symbols file already is a .def file (1st line
9331- # is EXPORTS), use it as is; otherwise, prepend...
9332- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9333- cp $export_symbols $output_objdir/$soname.def;
9334- else
9335- echo EXPORTS > $output_objdir/$soname.def;
9336- cat $export_symbols >> $output_objdir/$soname.def;
9337- fi~
9338- $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'
9339- else
9340- ld_shlibs_CXX=no
9341- fi
9342- ;;
9343+ case $GXX,$cc_basename in
9344+ ,cl* | no,cl*)
9345+ # Native MSVC
9346+ # hardcode_libdir_flag_spec is actually meaningless, as there is
9347+ # no search path for DLLs.
9348+ hardcode_libdir_flag_spec_CXX=' '
9349+ allow_undefined_flag_CXX=unsupported
9350+ always_export_symbols_CXX=yes
9351+ file_list_spec_CXX='@'
9352+ # Tell ltmain to make .lib files, not .a files.
9353+ libext=lib
9354+ # Tell ltmain to make .dll files, not .so files.
9355+ shrext_cmds=".dll"
9356+ # FIXME: Setting linknames here is a bad hack.
9357+ archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9358+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9359+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9360+ else
9361+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9362+ fi~
9363+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9364+ linknames='
9365+ # The linker will not automatically build a static lib if we build a DLL.
9366+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
9367+ enable_shared_with_static_runtimes_CXX=yes
9368+ # Don't use ranlib
9369+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
9370+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9371+ lt_tool_outputfile="@TOOL_OUTPUT@"~
9372+ case $lt_outputfile in
9373+ *.exe|*.EXE) ;;
9374+ *)
9375+ lt_outputfile="$lt_outputfile.exe"
9376+ lt_tool_outputfile="$lt_tool_outputfile.exe"
9377+ ;;
9378+ esac~
9379+ func_to_tool_file "$lt_outputfile"~
9380+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9381+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9382+ $RM "$lt_outputfile.manifest";
9383+ fi'
9384+ ;;
9385+ *)
9386+ # g++
9387+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9388+ # as there is no search path for DLLs.
9389+ hardcode_libdir_flag_spec_CXX='-L$libdir'
9390+ export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
9391+ allow_undefined_flag_CXX=unsupported
9392+ always_export_symbols_CXX=no
9393+ enable_shared_with_static_runtimes_CXX=yes
9394+
9395+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9396+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9397+ # If the export-symbols file already is a .def file (1st line
9398+ # is EXPORTS), use it as is; otherwise, prepend...
9399+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9400+ cp $export_symbols $output_objdir/$soname.def;
9401+ else
9402+ echo EXPORTS > $output_objdir/$soname.def;
9403+ cat $export_symbols >> $output_objdir/$soname.def;
9404+ fi~
9405+ $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'
9406+ else
9407+ ld_shlibs_CXX=no
9408+ fi
9409+ ;;
9410+ esac
9411+ ;;
9412 darwin* | rhapsody*)
9413
9414
Patrick Williams213cb262021-08-07 19:21:33 -05009415@@ -12499,7 +13234,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009416 ;;
9417 *)
9418 if test "$GXX" = yes; then
9419- archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9420+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9421 else
9422 # FIXME: insert proper C++ library support
9423 ld_shlibs_CXX=no
Patrick Williams213cb262021-08-07 19:21:33 -05009424@@ -12570,10 +13305,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009425 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9426 ;;
9427 ia64*)
9428- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9429+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9430 ;;
9431 *)
9432- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9433+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9434 ;;
9435 esac
9436 fi
Patrick Williams213cb262021-08-07 19:21:33 -05009437@@ -12614,9 +13349,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009438 *)
9439 if test "$GXX" = yes; then
9440 if test "$with_gnu_ld" = no; then
9441- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9442+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9443 else
9444- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
9445+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
9446 fi
9447 fi
9448 link_all_deplibs_CXX=yes
Patrick Williams213cb262021-08-07 19:21:33 -05009449@@ -12686,20 +13421,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009450 prelink_cmds_CXX='tpldir=Template.dir~
9451 rm -rf $tpldir~
9452 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
9453- compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
9454+ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
9455 old_archive_cmds_CXX='tpldir=Template.dir~
9456 rm -rf $tpldir~
9457 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
9458- $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
9459+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
9460 $RANLIB $oldlib'
9461 archive_cmds_CXX='tpldir=Template.dir~
9462 rm -rf $tpldir~
9463 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
9464- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9465+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9466 archive_expsym_cmds_CXX='tpldir=Template.dir~
9467 rm -rf $tpldir~
9468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
9469- $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'
9470+ $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'
9471 ;;
9472 *) # Version 6 and above use weak symbols
9473 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
Patrick Williams213cb262021-08-07 19:21:33 -05009474@@ -12894,7 +13629,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009475 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9476 ;;
9477 *)
9478- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9479+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9480 ;;
9481 esac
9482
Patrick Williams213cb262021-08-07 19:21:33 -05009483@@ -12940,7 +13675,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009484
9485 solaris*)
9486 case $cc_basename in
9487- CC*)
9488+ CC* | sunCC*)
9489 # Sun C++ 4.2, 5.x and Centerline C++
9490 archive_cmds_need_lc_CXX=yes
9491 no_undefined_flag_CXX=' -zdefs'
Patrick Williams213cb262021-08-07 19:21:33 -05009492@@ -12981,9 +13716,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009493 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9494 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9495 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9496- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9497+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9498 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9499- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9500+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9501
9502 # Commands to make compiler produce verbose output that lists
9503 # what "hidden" libraries, object files and flags are used when
Patrick Williams213cb262021-08-07 19:21:33 -05009504@@ -13118,6 +13853,13 @@ private:
Andrew Geissler82c905d2020-04-13 13:39:40 -05009505 };
9506 _LT_EOF
9507
9508+
9509+_lt_libdeps_save_CFLAGS=$CFLAGS
9510+case "$CC $CFLAGS " in #(
9511+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
9512+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
9513+esac
9514+
9515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9516 (eval $ac_compile) 2>&5
9517 ac_status=$?
Patrick Williams213cb262021-08-07 19:21:33 -05009518@@ -13131,7 +13873,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Andrew Geissler82c905d2020-04-13 13:39:40 -05009519 pre_test_object_deps_done=no
9520
9521 for p in `eval "$output_verbose_link_cmd"`; do
9522- case $p in
9523+ case ${prev}${p} in
9524
9525 -L* | -R* | -l*)
9526 # Some compilers place space between "-{L,R}" and the path.
Patrick Williams213cb262021-08-07 19:21:33 -05009527@@ -13140,13 +13882,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Andrew Geissler82c905d2020-04-13 13:39:40 -05009528 test $p = "-R"; then
9529 prev=$p
9530 continue
9531- else
9532- prev=
9533 fi
9534
9535+ # Expand the sysroot to ease extracting the directories later.
9536+ if test -z "$prev"; then
9537+ case $p in
9538+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
9539+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
9540+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
9541+ esac
9542+ fi
9543+ case $p in
9544+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
9545+ esac
9546 if test "$pre_test_object_deps_done" = no; then
9547- case $p in
9548- -L* | -R*)
9549+ case ${prev} in
9550+ -L | -R)
9551 # Internal compiler library paths should come after those
9552 # provided the user. The postdeps already come after the
9553 # user supplied libs so there is no need to process them.
Patrick Williams213cb262021-08-07 19:21:33 -05009554@@ -13166,8 +13917,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Andrew Geissler82c905d2020-04-13 13:39:40 -05009555 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9556 fi
9557 fi
9558+ prev=
9559 ;;
9560
9561+ *.lto.$objext) ;; # Ignore GCC LTO objects
9562 *.$objext)
9563 # This assumes that the test object file only shows up
9564 # once in the compiler output.
Patrick Williams213cb262021-08-07 19:21:33 -05009565@@ -13203,6 +13956,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -05009566 fi
9567
9568 $RM -f confest.$objext
9569+CFLAGS=$_lt_libdeps_save_CFLAGS
9570
9571 # PORTME: override above test on systems where it is broken
9572 case $host_os in
Patrick Williams213cb262021-08-07 19:21:33 -05009573@@ -13238,7 +13992,7 @@ linux*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05009574
9575 solaris*)
9576 case $cc_basename in
9577- CC*)
9578+ CC* | sunCC*)
9579 # The more standards-conforming stlport4 library is
9580 # incompatible with the Cstd library. Avoid specifying
9581 # it if it's in CXXFLAGS. Ignore libCrun as
Patrick Williams213cb262021-08-07 19:21:33 -05009582@@ -13303,8 +14057,6 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009583 lt_prog_compiler_pic_CXX=
9584 lt_prog_compiler_static_CXX=
9585
9586-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9587-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9588
9589 # C++ specific cases for pic, static, wl, etc.
9590 if test "$GXX" = yes; then
Patrick Williams213cb262021-08-07 19:21:33 -05009591@@ -13409,6 +14161,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05009592 ;;
9593 esac
9594 ;;
9595+ mingw* | cygwin* | os2* | pw32* | cegcc*)
9596+ # This hack is so that the source file can tell whether it is being
9597+ # built for inclusion in a dll (and should export symbols for example).
9598+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9599+ ;;
9600 dgux*)
9601 case $cc_basename in
9602 ec++*)
Patrick Williams213cb262021-08-07 19:21:33 -05009603@@ -13561,7 +14318,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -05009604 ;;
9605 solaris*)
9606 case $cc_basename in
9607- CC*)
9608+ CC* | sunCC*)
9609 # Sun C++ 4.2, 5.x and Centerline C++
9610 lt_prog_compiler_pic_CXX='-KPIC'
9611 lt_prog_compiler_static_CXX='-Bstatic'
Patrick Williams213cb262021-08-07 19:21:33 -05009612@@ -13626,10 +14383,17 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -05009613 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9614 ;;
9615 esac
9616-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
9617-$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
9618-
9619
9620+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9621+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9622+if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
9623+ $as_echo_n "(cached) " >&6
9624+else
9625+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
9626+fi
9627+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
9628+$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
9629+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9630
9631 #
9632 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -05009633@@ -13687,6 +14451,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009634
9635
9636
9637+
9638+
9639 #
9640 # Check to make sure the static flag actually works.
9641 #
Patrick Williams213cb262021-08-07 19:21:33 -05009642@@ -13864,6 +14630,7 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009643 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9644
9645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9646+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9647 case $host_os in
9648 aix[4-9]*)
9649 # If we're using GNU nm, then we don't want the "-C" option.
Patrick Williams213cb262021-08-07 19:21:33 -05009650@@ -13878,15 +14645,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
Andrew Geissler82c905d2020-04-13 13:39:40 -05009651 ;;
9652 pw32*)
9653 export_symbols_cmds_CXX="$ltdll_cmds"
9654- ;;
9655+ ;;
9656 cygwin* | mingw* | cegcc*)
9657- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9658- ;;
9659+ case $cc_basename in
9660+ cl*) ;;
9661+ *)
9662+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9663+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9664+ ;;
9665+ esac
9666+ ;;
9667 *)
9668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9669- ;;
9670+ ;;
9671 esac
9672- exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9673
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
9675 $as_echo "$ld_shlibs_CXX" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -05009676@@ -14149,8 +14921,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05009677 need_version=no
9678 need_lib_prefix=no
9679
9680- case $GCC,$host_os in
9681- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9682+ case $GCC,$cc_basename in
9683+ yes,*)
9684+ # gcc
9685 library_names_spec='$libname.dll.a'
9686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9687 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -05009688@@ -14182,13 +14955,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05009689 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9690 ;;
9691 esac
9692+ dynamic_linker='Win32 ld.exe'
9693+ ;;
9694+
9695+ *,cl*)
9696+ # Native MSVC
9697+ libname_spec='$name'
9698+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9699+ library_names_spec='${libname}.dll.lib'
9700+
9701+ case $build_os in
9702+ mingw*)
9703+ sys_lib_search_path_spec=
9704+ lt_save_ifs=$IFS
9705+ IFS=';'
9706+ for lt_path in $LIB
9707+ do
9708+ IFS=$lt_save_ifs
9709+ # Let DOS variable expansion print the short 8.3 style file name.
9710+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9711+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9712+ done
9713+ IFS=$lt_save_ifs
9714+ # Convert to MSYS style.
9715+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9716+ ;;
9717+ cygwin*)
9718+ # Convert to unix form, then to dos form, then back to unix form
9719+ # but this time dos style (no spaces!) so that the unix form looks
9720+ # like /cygdrive/c/PROGRA~1:/cygdr...
9721+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9722+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9723+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9724+ ;;
9725+ *)
9726+ sys_lib_search_path_spec="$LIB"
9727+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9728+ # It is most probably a Windows format PATH.
9729+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9730+ else
9731+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9732+ fi
9733+ # FIXME: find the short name or the path components, as spaces are
9734+ # common. (e.g. "Program Files" -> "PROGRA~1")
9735+ ;;
9736+ esac
9737+
9738+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
9739+ postinstall_cmds='base_file=`basename \${file}`~
9740+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9741+ dldir=$destdir/`dirname \$dlpath`~
9742+ test -d \$dldir || mkdir -p \$dldir~
9743+ $install_prog $dir/$dlname \$dldir/$dlname'
9744+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9745+ dlpath=$dir/\$dldll~
9746+ $RM \$dlpath'
9747+ shlibpath_overrides_runpath=yes
9748+ dynamic_linker='Win32 link.exe'
9749 ;;
9750
9751 *)
9752+ # Assume MSVC wrapper
9753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9754+ dynamic_linker='Win32 ld.exe'
9755 ;;
9756 esac
9757- dynamic_linker='Win32 ld.exe'
9758 # FIXME: first we should search . and the directory the executable is in
9759 shlibpath_var=PATH
9760 ;;
Patrick Williams213cb262021-08-07 19:21:33 -05009761@@ -14269,7 +15100,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -05009762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9766+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9767 hardcode_into_libs=yes
9768 ;;
9769
Patrick Williams213cb262021-08-07 19:21:33 -05009770@@ -14728,6 +15559,7 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -05009771 fi # test -n "$compiler"
9772
9773 CC=$lt_save_CC
9774+ CFLAGS=$lt_save_CFLAGS
9775 LDCXX=$LD
9776 LD=$lt_save_LD
9777 GCC=$lt_save_GCC
Patrick Williams213cb262021-08-07 19:21:33 -05009778@@ -17770,13 +18602,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Andrew Geissler82c905d2020-04-13 13:39:40 -05009779 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
9780 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
9781 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
9782+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
9783+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
9784 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
9785 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
9786 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
9787 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
9788 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
9789+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
9790+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
9791+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
9792+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
9793 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
9794 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
9795+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
9796 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
9797 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
9798 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05009799@@ -17791,14 +18630,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
Andrew Geissler82c905d2020-04-13 13:39:40 -05009800 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9801 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
9802 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"`'
9803+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
9804+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9805 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
9806 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
9807 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
9808-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
9809 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
9810+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
9811 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
9812 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
9813 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
9814+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
9815 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
9816 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
9817 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05009818@@ -17831,12 +18673,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
Andrew Geissler82c905d2020-04-13 13:39:40 -05009819 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
9820 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
9821 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
9822-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
9823 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
9824 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
9825 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
9826 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
9827 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
9828+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
9829 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
9830 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
9831 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05009832@@ -17875,8 +18717,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote
Andrew Geissler82c905d2020-04-13 13:39:40 -05009833 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
9834 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
9835 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
9836-lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
9837 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
9838+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
9839 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
9840 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
9841 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05009842@@ -17903,12 +18745,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_
Andrew Geissler82c905d2020-04-13 13:39:40 -05009843 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
9844 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
9845 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
9846-fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
9847 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
9848 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
9849 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
9850 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
9851 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
9852+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
9853 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
9854 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
9855 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -05009856@@ -17946,8 +18788,13 @@ reload_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009857 OBJDUMP \
9858 deplibs_check_method \
9859 file_magic_cmd \
9860+file_magic_glob \
9861+want_nocaseglob \
9862+DLLTOOL \
9863+sharedlib_from_linklib_cmd \
9864 AR \
9865 AR_FLAGS \
9866+archiver_list_spec \
9867 STRIP \
9868 RANLIB \
9869 CC \
Patrick Williams213cb262021-08-07 19:21:33 -05009870@@ -17957,12 +18804,14 @@ lt_cv_sys_global_symbol_pipe \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009871 lt_cv_sys_global_symbol_to_cdecl \
9872 lt_cv_sys_global_symbol_to_c_name_address \
9873 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9874+nm_file_list_spec \
9875 lt_prog_compiler_no_builtin_flag \
9876-lt_prog_compiler_wl \
9877 lt_prog_compiler_pic \
9878+lt_prog_compiler_wl \
9879 lt_prog_compiler_static \
9880 lt_cv_prog_compiler_c_o \
9881 need_locks \
9882+MANIFEST_TOOL \
9883 DSYMUTIL \
9884 NMEDIT \
9885 LIPO \
Patrick Williams213cb262021-08-07 19:21:33 -05009886@@ -17978,7 +18827,6 @@ no_undefined_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009887 hardcode_libdir_flag_spec \
9888 hardcode_libdir_flag_spec_ld \
9889 hardcode_libdir_separator \
9890-fix_srcfile_path \
9891 exclude_expsyms \
9892 include_expsyms \
9893 file_list_spec \
Patrick Williams213cb262021-08-07 19:21:33 -05009894@@ -18000,8 +18848,8 @@ LD_CXX \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009895 reload_flag_CXX \
9896 compiler_CXX \
9897 lt_prog_compiler_no_builtin_flag_CXX \
9898-lt_prog_compiler_wl_CXX \
9899 lt_prog_compiler_pic_CXX \
9900+lt_prog_compiler_wl_CXX \
9901 lt_prog_compiler_static_CXX \
9902 lt_cv_prog_compiler_c_o_CXX \
9903 export_dynamic_flag_spec_CXX \
Patrick Williams213cb262021-08-07 19:21:33 -05009904@@ -18013,7 +18861,6 @@ no_undefined_flag_CXX \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009905 hardcode_libdir_flag_spec_CXX \
9906 hardcode_libdir_flag_spec_ld_CXX \
9907 hardcode_libdir_separator_CXX \
9908-fix_srcfile_path_CXX \
9909 exclude_expsyms_CXX \
9910 include_expsyms_CXX \
9911 file_list_spec_CXX \
Patrick Williams213cb262021-08-07 19:21:33 -05009912@@ -18047,6 +18894,7 @@ module_cmds \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009913 module_expsym_cmds \
9914 export_symbols_cmds \
9915 prelink_cmds \
9916+postlink_cmds \
9917 postinstall_cmds \
9918 postuninstall_cmds \
9919 finish_cmds \
Patrick Williams213cb262021-08-07 19:21:33 -05009920@@ -18061,7 +18909,8 @@ archive_expsym_cmds_CXX \
Andrew Geissler82c905d2020-04-13 13:39:40 -05009921 module_cmds_CXX \
9922 module_expsym_cmds_CXX \
9923 export_symbols_cmds_CXX \
9924-prelink_cmds_CXX; do
9925+prelink_cmds_CXX \
9926+postlink_cmds_CXX; do
9927 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9928 *[\\\\\\\`\\"\\\$]*)
9929 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Patrick Williams213cb262021-08-07 19:21:33 -05009930@@ -18826,7 +19675,8 @@ $as_echo X"$file" |
Andrew Geissler82c905d2020-04-13 13:39:40 -05009931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9932 #
9933 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
9934-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
9935+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
9936+# Inc.
9937 # Written by Gordon Matzigkeit, 1996
9938 #
9939 # This file is part of GNU Libtool.
Patrick Williams213cb262021-08-07 19:21:33 -05009940@@ -18929,19 +19779,42 @@ SP2NL=$lt_lt_SP2NL
Andrew Geissler82c905d2020-04-13 13:39:40 -05009941 # turn newlines into spaces.
9942 NL2SP=$lt_lt_NL2SP
9943
9944+# convert \$build file names to \$host format.
9945+to_host_file_cmd=$lt_cv_to_host_file_cmd
9946+
9947+# convert \$build files to toolchain format.
9948+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9949+
9950 # An object symbol dumper.
9951 OBJDUMP=$lt_OBJDUMP
9952
9953 # Method to check whether dependent libraries are shared objects.
9954 deplibs_check_method=$lt_deplibs_check_method
9955
9956-# Command to use when deplibs_check_method == "file_magic".
9957+# Command to use when deplibs_check_method = "file_magic".
9958 file_magic_cmd=$lt_file_magic_cmd
9959
9960+# How to find potential files when deplibs_check_method = "file_magic".
9961+file_magic_glob=$lt_file_magic_glob
9962+
9963+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
9964+want_nocaseglob=$lt_want_nocaseglob
9965+
9966+# DLL creation program.
9967+DLLTOOL=$lt_DLLTOOL
9968+
9969+# Command to associate shared and link libraries.
9970+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
9971+
9972 # The archiver.
9973 AR=$lt_AR
9974+
9975+# Flags to create an archive.
9976 AR_FLAGS=$lt_AR_FLAGS
9977
9978+# How to feed a file listing to the archiver.
9979+archiver_list_spec=$lt_archiver_list_spec
9980+
9981 # A symbol stripping program.
9982 STRIP=$lt_STRIP
9983
Patrick Williams213cb262021-08-07 19:21:33 -05009984@@ -18971,6 +19844,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Andrew Geissler82c905d2020-04-13 13:39:40 -05009985 # Transform the output of nm in a C name address pair when lib prefix is needed.
9986 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
9987
9988+# Specify filename containing input files for \$NM.
9989+nm_file_list_spec=$lt_nm_file_list_spec
9990+
9991+# The root where to search for dependent libraries,and in which our libraries should be installed.
9992+lt_sysroot=$lt_sysroot
9993+
9994 # The name of the directory that contains temporary libtool files.
9995 objdir=$objdir
9996
Patrick Williams213cb262021-08-07 19:21:33 -05009997@@ -18980,6 +19859,9 @@ MAGIC_CMD=$MAGIC_CMD
Andrew Geissler82c905d2020-04-13 13:39:40 -05009998 # Must we lock files when doing compilation?
9999 need_locks=$lt_need_locks
10000
10001+# Manifest tool.
10002+MANIFEST_TOOL=$lt_MANIFEST_TOOL
10003+
10004 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
10005 DSYMUTIL=$lt_DSYMUTIL
10006
Patrick Williams213cb262021-08-07 19:21:33 -050010007@@ -19094,12 +19976,12 @@ with_gcc=$GCC
Andrew Geissler82c905d2020-04-13 13:39:40 -050010008 # Compiler flag to turn off builtin functions.
10009 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10010
10011-# How to pass a linker flag through the compiler.
10012-wl=$lt_lt_prog_compiler_wl
10013-
10014 # Additional compiler flags for building library objects.
10015 pic_flag=$lt_lt_prog_compiler_pic
10016
10017+# How to pass a linker flag through the compiler.
10018+wl=$lt_lt_prog_compiler_wl
10019+
10020 # Compiler flag to prevent dynamic linking.
10021 link_static_flag=$lt_lt_prog_compiler_static
10022
Patrick Williams213cb262021-08-07 19:21:33 -050010023@@ -19186,9 +20068,6 @@ inherit_rpath=$inherit_rpath
Andrew Geissler82c905d2020-04-13 13:39:40 -050010024 # Whether libtool must link a program against all its dependency libraries.
10025 link_all_deplibs=$link_all_deplibs
10026
10027-# Fix the shell variable \$srcfile for the compiler.
10028-fix_srcfile_path=$lt_fix_srcfile_path
10029-
10030 # Set to "yes" if exported symbols are required.
10031 always_export_symbols=$always_export_symbols
10032
Patrick Williams213cb262021-08-07 19:21:33 -050010033@@ -19204,6 +20083,9 @@ include_expsyms=$lt_include_expsyms
Andrew Geissler82c905d2020-04-13 13:39:40 -050010034 # Commands necessary for linking programs (against libraries) with templates.
10035 prelink_cmds=$lt_prelink_cmds
10036
10037+# Commands necessary for finishing linking programs.
10038+postlink_cmds=$lt_postlink_cmds
10039+
10040 # Specify filename containing input files.
10041 file_list_spec=$lt_file_list_spec
10042
Patrick Williams213cb262021-08-07 19:21:33 -050010043@@ -19250,210 +20132,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -050010044 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10045 # text mode, it properly converts lines to CR/LF. This bash problem
10046 # is reportedly fixed, but why not run on old versions too?
10047- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
10048- || (rm -f "$cfgfile"; exit 1)
10049-
10050- case $xsi_shell in
10051- yes)
10052- cat << \_LT_EOF >> "$cfgfile"
10053-
10054-# func_dirname file append nondir_replacement
10055-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
10056-# otherwise set result to NONDIR_REPLACEMENT.
10057-func_dirname ()
10058-{
10059- case ${1} in
10060- */*) func_dirname_result="${1%/*}${2}" ;;
10061- * ) func_dirname_result="${3}" ;;
10062- esac
10063-}
10064-
10065-# func_basename file
10066-func_basename ()
10067-{
10068- func_basename_result="${1##*/}"
10069-}
10070-
10071-# func_dirname_and_basename file append nondir_replacement
10072-# perform func_basename and func_dirname in a single function
10073-# call:
10074-# dirname: Compute the dirname of FILE. If nonempty,
10075-# add APPEND to the result, otherwise set result
10076-# to NONDIR_REPLACEMENT.
10077-# value returned in "$func_dirname_result"
10078-# basename: Compute filename of FILE.
10079-# value retuned in "$func_basename_result"
10080-# Implementation must be kept synchronized with func_dirname
10081-# and func_basename. For efficiency, we do not delegate to
10082-# those functions but instead duplicate the functionality here.
10083-func_dirname_and_basename ()
10084-{
10085- case ${1} in
10086- */*) func_dirname_result="${1%/*}${2}" ;;
10087- * ) func_dirname_result="${3}" ;;
10088- esac
10089- func_basename_result="${1##*/}"
10090-}
10091-
10092-# func_stripname prefix suffix name
10093-# strip PREFIX and SUFFIX off of NAME.
10094-# PREFIX and SUFFIX must not contain globbing or regex special
10095-# characters, hashes, percent signs, but SUFFIX may contain a leading
10096-# dot (in which case that matches only a dot).
10097-func_stripname ()
10098-{
10099- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
10100- # positional parameters, so assign one to ordinary parameter first.
10101- func_stripname_result=${3}
10102- func_stripname_result=${func_stripname_result#"${1}"}
10103- func_stripname_result=${func_stripname_result%"${2}"}
10104-}
10105-
10106-# func_opt_split
10107-func_opt_split ()
10108-{
10109- func_opt_split_opt=${1%%=*}
10110- func_opt_split_arg=${1#*=}
10111-}
10112-
10113-# func_lo2o object
10114-func_lo2o ()
10115-{
10116- case ${1} in
10117- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
10118- *) func_lo2o_result=${1} ;;
10119- esac
10120-}
10121-
10122-# func_xform libobj-or-source
10123-func_xform ()
10124-{
10125- func_xform_result=${1%.*}.lo
10126-}
10127-
10128-# func_arith arithmetic-term...
10129-func_arith ()
10130-{
10131- func_arith_result=$(( $* ))
10132-}
10133-
10134-# func_len string
10135-# STRING may not start with a hyphen.
10136-func_len ()
10137-{
10138- func_len_result=${#1}
10139-}
10140-
10141-_LT_EOF
10142- ;;
10143- *) # Bourne compatible functions.
10144- cat << \_LT_EOF >> "$cfgfile"
10145-
10146-# func_dirname file append nondir_replacement
10147-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
10148-# otherwise set result to NONDIR_REPLACEMENT.
10149-func_dirname ()
10150-{
10151- # Extract subdirectory from the argument.
10152- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
10153- if test "X$func_dirname_result" = "X${1}"; then
10154- func_dirname_result="${3}"
10155- else
10156- func_dirname_result="$func_dirname_result${2}"
10157- fi
10158-}
10159-
10160-# func_basename file
10161-func_basename ()
10162-{
10163- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
10164-}
10165-
10166-
10167-# func_stripname prefix suffix name
10168-# strip PREFIX and SUFFIX off of NAME.
10169-# PREFIX and SUFFIX must not contain globbing or regex special
10170-# characters, hashes, percent signs, but SUFFIX may contain a leading
10171-# dot (in which case that matches only a dot).
10172-# func_strip_suffix prefix name
10173-func_stripname ()
10174-{
10175- case ${2} in
10176- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10177- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10178- esac
10179-}
10180-
10181-# sed scripts:
10182-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
10183-my_sed_long_arg='1s/^-[^=]*=//'
10184-
10185-# func_opt_split
10186-func_opt_split ()
10187-{
10188- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
10189- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
10190-}
10191-
10192-# func_lo2o object
10193-func_lo2o ()
10194-{
10195- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
10196-}
10197-
10198-# func_xform libobj-or-source
10199-func_xform ()
10200-{
10201- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
10202-}
10203-
10204-# func_arith arithmetic-term...
10205-func_arith ()
10206-{
10207- func_arith_result=`expr "$@"`
10208-}
10209-
10210-# func_len string
10211-# STRING may not start with a hyphen.
10212-func_len ()
10213-{
10214- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
10215-}
10216-
10217-_LT_EOF
10218-esac
10219-
10220-case $lt_shell_append in
10221- yes)
10222- cat << \_LT_EOF >> "$cfgfile"
10223-
10224-# func_append var value
10225-# Append VALUE to the end of shell variable VAR.
10226-func_append ()
10227-{
10228- eval "$1+=\$2"
10229-}
10230-_LT_EOF
10231- ;;
10232- *)
10233- cat << \_LT_EOF >> "$cfgfile"
10234-
10235-# func_append var value
10236-# Append VALUE to the end of shell variable VAR.
10237-func_append ()
10238-{
10239- eval "$1=\$$1\$2"
10240-}
10241-
10242-_LT_EOF
10243- ;;
10244- esac
10245-
10246-
10247- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
10248- || (rm -f "$cfgfile"; exit 1)
10249-
10250- mv -f "$cfgfile" "$ofile" ||
10251+ sed '$q' "$ltmain" >> "$cfgfile" \
10252+ || (rm -f "$cfgfile"; exit 1)
10253+
10254+ if test x"$xsi_shell" = xyes; then
10255+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
10256+func_dirname ()\
10257+{\
10258+\ case ${1} in\
10259+\ */*) func_dirname_result="${1%/*}${2}" ;;\
10260+\ * ) func_dirname_result="${3}" ;;\
10261+\ esac\
10262+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
10263+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10264+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10265+test 0 -eq $? || _lt_function_replace_fail=:
10266+
10267+
10268+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
10269+func_basename ()\
10270+{\
10271+\ func_basename_result="${1##*/}"\
10272+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
10273+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10274+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10275+test 0 -eq $? || _lt_function_replace_fail=:
10276+
10277+
10278+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
10279+func_dirname_and_basename ()\
10280+{\
10281+\ case ${1} in\
10282+\ */*) func_dirname_result="${1%/*}${2}" ;;\
10283+\ * ) func_dirname_result="${3}" ;;\
10284+\ esac\
10285+\ func_basename_result="${1##*/}"\
10286+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
10287+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10288+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10289+test 0 -eq $? || _lt_function_replace_fail=:
10290+
10291+
10292+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
10293+func_stripname ()\
10294+{\
10295+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
10296+\ # positional parameters, so assign one to ordinary parameter first.\
10297+\ func_stripname_result=${3}\
10298+\ func_stripname_result=${func_stripname_result#"${1}"}\
10299+\ func_stripname_result=${func_stripname_result%"${2}"}\
10300+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
10301+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10302+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10303+test 0 -eq $? || _lt_function_replace_fail=:
10304+
10305+
10306+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
10307+func_split_long_opt ()\
10308+{\
10309+\ func_split_long_opt_name=${1%%=*}\
10310+\ func_split_long_opt_arg=${1#*=}\
10311+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
10312+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10313+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10314+test 0 -eq $? || _lt_function_replace_fail=:
10315+
10316+
10317+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
10318+func_split_short_opt ()\
10319+{\
10320+\ func_split_short_opt_arg=${1#??}\
10321+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
10322+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
10323+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10324+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10325+test 0 -eq $? || _lt_function_replace_fail=:
10326+
10327+
10328+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
10329+func_lo2o ()\
10330+{\
10331+\ case ${1} in\
10332+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
10333+\ *) func_lo2o_result=${1} ;;\
10334+\ esac\
10335+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
10336+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10337+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10338+test 0 -eq $? || _lt_function_replace_fail=:
10339+
10340+
10341+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
10342+func_xform ()\
10343+{\
10344+ func_xform_result=${1%.*}.lo\
10345+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
10346+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10347+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10348+test 0 -eq $? || _lt_function_replace_fail=:
10349+
10350+
10351+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
10352+func_arith ()\
10353+{\
10354+ func_arith_result=$(( $* ))\
10355+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
10356+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10357+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10358+test 0 -eq $? || _lt_function_replace_fail=:
10359+
10360+
10361+ sed -e '/^func_len ()$/,/^} # func_len /c\
10362+func_len ()\
10363+{\
10364+ func_len_result=${#1}\
10365+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
10366+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10367+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10368+test 0 -eq $? || _lt_function_replace_fail=:
10369+
10370+fi
10371+
10372+if test x"$lt_shell_append" = xyes; then
10373+ sed -e '/^func_append ()$/,/^} # func_append /c\
10374+func_append ()\
10375+{\
10376+ eval "${1}+=\\${2}"\
10377+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
10378+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10379+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10380+test 0 -eq $? || _lt_function_replace_fail=:
10381+
10382+
10383+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
10384+func_append_quoted ()\
10385+{\
10386+\ func_quote_for_eval "${2}"\
10387+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
10388+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
10389+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10390+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10391+test 0 -eq $? || _lt_function_replace_fail=:
10392+
10393+
10394+ # Save a `func_append' function call where possible by direct use of '+='
10395+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
10396+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10397+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10398+ test 0 -eq $? || _lt_function_replace_fail=:
10399+else
10400+ # Save a `func_append' function call even when '+=' is not available
10401+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
10402+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10403+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10404+ test 0 -eq $? || _lt_function_replace_fail=:
10405+fi
10406+
10407+if test x"$_lt_function_replace_fail" = x":"; then
10408+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
10409+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
10410+fi
10411+
10412+
10413+ mv -f "$cfgfile" "$ofile" ||
10414 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10415 chmod +x "$ofile"
10416
Patrick Williams213cb262021-08-07 19:21:33 -050010417@@ -19481,12 +20322,12 @@ with_gcc=$GCC_CXX
Andrew Geissler82c905d2020-04-13 13:39:40 -050010418 # Compiler flag to turn off builtin functions.
10419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
10420
10421-# How to pass a linker flag through the compiler.
10422-wl=$lt_lt_prog_compiler_wl_CXX
10423-
10424 # Additional compiler flags for building library objects.
10425 pic_flag=$lt_lt_prog_compiler_pic_CXX
10426
10427+# How to pass a linker flag through the compiler.
10428+wl=$lt_lt_prog_compiler_wl_CXX
10429+
10430 # Compiler flag to prevent dynamic linking.
10431 link_static_flag=$lt_lt_prog_compiler_static_CXX
10432
Patrick Williams213cb262021-08-07 19:21:33 -050010433@@ -19573,9 +20414,6 @@ inherit_rpath=$inherit_rpath_CXX
Andrew Geissler82c905d2020-04-13 13:39:40 -050010434 # Whether libtool must link a program against all its dependency libraries.
10435 link_all_deplibs=$link_all_deplibs_CXX
10436
10437-# Fix the shell variable \$srcfile for the compiler.
10438-fix_srcfile_path=$lt_fix_srcfile_path_CXX
10439-
10440 # Set to "yes" if exported symbols are required.
10441 always_export_symbols=$always_export_symbols_CXX
10442
Patrick Williams213cb262021-08-07 19:21:33 -050010443@@ -19591,6 +20429,9 @@ include_expsyms=$lt_include_expsyms_CXX
Andrew Geissler82c905d2020-04-13 13:39:40 -050010444 # Commands necessary for linking programs (against libraries) with templates.
10445 prelink_cmds=$lt_prelink_cmds_CXX
10446
10447+# Commands necessary for finishing linking programs.
10448+postlink_cmds=$lt_postlink_cmds_CXX
10449+
10450 # Specify filename containing input files.
10451 file_list_spec=$lt_file_list_spec_CXX
10452
10453diff --git a/libctf/configure b/libctf/configure
Patrick Williams213cb262021-08-07 19:21:33 -050010454index 82bcf13a606..a7fb723a145 100755
Andrew Geissler82c905d2020-04-13 13:39:40 -050010455--- a/libctf/configure
10456+++ b/libctf/configure
Patrick Williams213cb262021-08-07 19:21:33 -050010457@@ -666,6 +666,8 @@ OTOOL
Andrew Geissler82c905d2020-04-13 13:39:40 -050010458 LIPO
10459 NMEDIT
10460 DSYMUTIL
10461+MANIFEST_TOOL
10462+DLLTOOL
10463 OBJDUMP
10464 LN_S
10465 NM
Patrick Williams213cb262021-08-07 19:21:33 -050010466@@ -797,6 +799,7 @@ enable_static
Andrew Geissler82c905d2020-04-13 13:39:40 -050010467 with_pic
10468 enable_fast_install
10469 with_gnu_ld
10470+with_libtool_sysroot
10471 enable_libtool_lock
10472 enable_largefile
10473 enable_werror_always
Patrick Williams213cb262021-08-07 19:21:33 -050010474@@ -1460,6 +1463,8 @@ Optional Packages:
Andrew Geissler82c905d2020-04-13 13:39:40 -050010475 --with-pic try to use only PIC/non-PIC objects [default=use
10476 both]
10477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
10478+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
10479+ (or the compiler's sysroot if not specified).
10480 --with-system-zlib use installed libz
10481
10482 Some influential environment variables:
Patrick Williams213cb262021-08-07 19:21:33 -050010483@@ -5529,8 +5534,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050010484
10485
10486
10487-macro_version='2.2.7a'
10488-macro_revision='1.3134'
10489+macro_version='2.4'
10490+macro_revision='1.3293'
10491
10492
10493
Patrick Williams213cb262021-08-07 19:21:33 -050010494@@ -5570,7 +5575,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Andrew Geissler82c905d2020-04-13 13:39:40 -050010495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10496 $as_echo_n "checking how to print strings... " >&6; }
10497 # Test print first, because it will be a builtin if present.
10498-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
10499+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10500 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10501 ECHO='print -r --'
10502 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Patrick Williams213cb262021-08-07 19:21:33 -050010503@@ -6256,8 +6261,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
Andrew Geissler82c905d2020-04-13 13:39:40 -050010504 # Try some XSI features
10505 xsi_shell=no
10506 ( _lt_dummy="a/b/c"
10507- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
10508- = c,a/b,, \
10509+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10510+ = c,a/b,b/c, \
10511 && eval 'test $(( 1 + 1 )) -eq 2 \
10512 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10513 && xsi_shell=yes
Patrick Williams213cb262021-08-07 19:21:33 -050010514@@ -6306,6 +6311,80 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050010515
10516
10517
10518+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10519+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10520+if ${lt_cv_to_host_file_cmd+:} false; then :
10521+ $as_echo_n "(cached) " >&6
10522+else
10523+ case $host in
10524+ *-*-mingw* )
10525+ case $build in
10526+ *-*-mingw* ) # actually msys
10527+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10528+ ;;
10529+ *-*-cygwin* )
10530+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10531+ ;;
10532+ * ) # otherwise, assume *nix
10533+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10534+ ;;
10535+ esac
10536+ ;;
10537+ *-*-cygwin* )
10538+ case $build in
10539+ *-*-mingw* ) # actually msys
10540+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10541+ ;;
10542+ *-*-cygwin* )
10543+ lt_cv_to_host_file_cmd=func_convert_file_noop
10544+ ;;
10545+ * ) # otherwise, assume *nix
10546+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10547+ ;;
10548+ esac
10549+ ;;
10550+ * ) # unhandled hosts (and "normal" native builds)
10551+ lt_cv_to_host_file_cmd=func_convert_file_noop
10552+ ;;
10553+esac
10554+
10555+fi
10556+
10557+to_host_file_cmd=$lt_cv_to_host_file_cmd
10558+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10559+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10560+
10561+
10562+
10563+
10564+
10565+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10566+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10567+if ${lt_cv_to_tool_file_cmd+:} false; then :
10568+ $as_echo_n "(cached) " >&6
10569+else
10570+ #assume ordinary cross tools, or native build.
10571+lt_cv_to_tool_file_cmd=func_convert_file_noop
10572+case $host in
10573+ *-*-mingw* )
10574+ case $build in
10575+ *-*-mingw* ) # actually msys
10576+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10577+ ;;
10578+ esac
10579+ ;;
10580+esac
10581+
10582+fi
10583+
10584+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10585+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10586+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10587+
10588+
10589+
10590+
10591+
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10593 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10594 if ${lt_cv_ld_reload_flag+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -050010595@@ -6322,6 +6401,11 @@ case $reload_flag in
Andrew Geissler82c905d2020-04-13 13:39:40 -050010596 esac
10597 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10598 case $host_os in
10599+ cygwin* | mingw* | pw32* | cegcc*)
10600+ if test "$GCC" != yes; then
10601+ reload_cmds=false
10602+ fi
10603+ ;;
10604 darwin*)
10605 if test "$GCC" = yes; then
10606 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Patrick Williams213cb262021-08-07 19:21:33 -050010607@@ -6490,7 +6574,8 @@ mingw* | pw32*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050010608 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10609 lt_cv_file_magic_cmd='func_win32_libid'
10610 else
10611- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10612+ # Keep this pattern in sync with the one in func_win32_libid.
10613+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10614 lt_cv_file_magic_cmd='$OBJDUMP -f'
10615 fi
10616 ;;
Patrick Williams213cb262021-08-07 19:21:33 -050010617@@ -6644,6 +6729,21 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050010618 fi
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10620 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10621+
10622+file_magic_glob=
10623+want_nocaseglob=no
10624+if test "$build" = "$host"; then
10625+ case $host_os in
10626+ mingw* | pw32*)
10627+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10628+ want_nocaseglob=yes
10629+ else
10630+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10631+ fi
10632+ ;;
10633+ esac
10634+fi
10635+
10636 file_magic_cmd=$lt_cv_file_magic_cmd
10637 deplibs_check_method=$lt_cv_deplibs_check_method
10638 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -050010639@@ -6659,6 +6759,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler82c905d2020-04-13 13:39:40 -050010640
10641
10642
10643+
10644+
10645+
10646+
10647+
10648+
10649+
10650+
10651+
10652+
10653+if test -n "$ac_tool_prefix"; then
10654+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10655+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10656+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657+$as_echo_n "checking for $ac_word... " >&6; }
10658+if ${ac_cv_prog_DLLTOOL+:} false; then :
10659+ $as_echo_n "(cached) " >&6
10660+else
10661+ if test -n "$DLLTOOL"; then
10662+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10663+else
10664+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665+for as_dir in $PATH
10666+do
10667+ IFS=$as_save_IFS
10668+ test -z "$as_dir" && as_dir=.
10669+ for ac_exec_ext in '' $ac_executable_extensions; do
10670+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10671+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10672+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673+ break 2
10674+ fi
10675+done
10676+ done
10677+IFS=$as_save_IFS
10678+
10679+fi
10680+fi
10681+DLLTOOL=$ac_cv_prog_DLLTOOL
10682+if test -n "$DLLTOOL"; then
10683+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10684+$as_echo "$DLLTOOL" >&6; }
10685+else
10686+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687+$as_echo "no" >&6; }
10688+fi
10689+
10690+
10691+fi
10692+if test -z "$ac_cv_prog_DLLTOOL"; then
10693+ ac_ct_DLLTOOL=$DLLTOOL
10694+ # Extract the first word of "dlltool", so it can be a program name with args.
10695+set dummy dlltool; ac_word=$2
10696+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697+$as_echo_n "checking for $ac_word... " >&6; }
10698+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10699+ $as_echo_n "(cached) " >&6
10700+else
10701+ if test -n "$ac_ct_DLLTOOL"; then
10702+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10703+else
10704+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705+for as_dir in $PATH
10706+do
10707+ IFS=$as_save_IFS
10708+ test -z "$as_dir" && as_dir=.
10709+ for ac_exec_ext in '' $ac_executable_extensions; do
10710+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10711+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10712+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713+ break 2
10714+ fi
10715+done
10716+ done
10717+IFS=$as_save_IFS
10718+
10719+fi
10720+fi
10721+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10722+if test -n "$ac_ct_DLLTOOL"; then
10723+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10724+$as_echo "$ac_ct_DLLTOOL" >&6; }
10725+else
10726+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727+$as_echo "no" >&6; }
10728+fi
10729+
10730+ if test "x$ac_ct_DLLTOOL" = x; then
10731+ DLLTOOL="false"
10732+ else
10733+ case $cross_compiling:$ac_tool_warned in
10734+yes:)
10735+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10736+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10737+ac_tool_warned=yes ;;
10738+esac
10739+ DLLTOOL=$ac_ct_DLLTOOL
10740+ fi
10741+else
10742+ DLLTOOL="$ac_cv_prog_DLLTOOL"
10743+fi
10744+
10745+test -z "$DLLTOOL" && DLLTOOL=dlltool
10746+
10747+
10748+
10749+
10750+
10751+
10752+
10753+
10754+
10755+
10756+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10757+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10758+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10759+ $as_echo_n "(cached) " >&6
10760+else
10761+ lt_cv_sharedlib_from_linklib_cmd='unknown'
10762+
10763+case $host_os in
10764+cygwin* | mingw* | pw32* | cegcc*)
10765+ # two different shell functions defined in ltmain.sh
10766+ # decide which to use based on capabilities of $DLLTOOL
10767+ case `$DLLTOOL --help 2>&1` in
10768+ *--identify-strict*)
10769+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10770+ ;;
10771+ *)
10772+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10773+ ;;
10774+ esac
10775+ ;;
10776+*)
10777+ # fallback: assume linklib IS sharedlib
10778+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10779+ ;;
10780+esac
10781+
10782+fi
10783+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10784+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10785+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10786+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10787+
10788+
10789+
10790+
10791+
10792+
10793+
Patrick Williams213cb262021-08-07 19:21:33 -050010794 plugin_option=
10795 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10796 for plugin in $plugin_names; do
10797@@ -6673,8 +6924,10 @@ for plugin in $plugin_names; do
10798 done
10799
Andrew Geissler82c905d2020-04-13 13:39:40 -050010800 if test -n "$ac_tool_prefix"; then
10801- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10802-set dummy ${ac_tool_prefix}ar; ac_word=$2
10803+ for ac_prog in ar
10804+ do
10805+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10806+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if ${ac_cv_prog_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -050010810@@ -6690,7 +6943,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -050010811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10814- ac_cv_prog_AR="${ac_tool_prefix}ar"
10815+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10818 fi
Patrick Williams213cb262021-08-07 19:21:33 -050010819@@ -6710,11 +6963,15 @@ $as_echo "no" >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -050010820 fi
10821
10822
10823+ test -n "$AR" && break
10824+ done
10825 fi
10826-if test -z "$ac_cv_prog_AR"; then
10827+if test -z "$AR"; then
10828 ac_ct_AR=$AR
10829- # Extract the first word of "ar", so it can be a program name with args.
10830-set dummy ar; ac_word=$2
10831+ for ac_prog in ar
10832+do
10833+ # Extract the first word of "$ac_prog", so it can be a program name with args.
10834+set dummy $ac_prog; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -050010838@@ -6730,7 +6987,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -050010839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842- ac_cv_prog_ac_ct_AR="ar"
10843+ ac_cv_prog_ac_ct_AR="$ac_prog"
10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
Patrick Williams213cb262021-08-07 19:21:33 -050010847@@ -6749,6 +7006,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050010848 $as_echo "no" >&6; }
10849 fi
10850
10851+
10852+ test -n "$ac_ct_AR" && break
10853+done
10854+
10855 if test "x$ac_ct_AR" = x; then
10856 AR="false"
10857 else
Patrick Williams213cb262021-08-07 19:21:33 -050010858@@ -6760,25 +7021,19 @@ ac_tool_warned=yes ;;
Andrew Geissler82c905d2020-04-13 13:39:40 -050010859 esac
10860 AR=$ac_ct_AR
10861 fi
10862-else
10863- AR="$ac_cv_prog_AR"
10864 fi
10865
10866-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -050010867-if test -n "$plugin_option"; then
10868- if $AR --help 2>&1 | grep -q "\--plugin"; then
10869- touch conftest.c
10870- $AR $plugin_option rc conftest.a conftest.c
10871- if test "$?" != 0; then
10872- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10873+ touch conftest.c
10874+ $AR $plugin_option rc conftest.a conftest.c
10875+ if test "$?" != 0; then
10876+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10877 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10878- else
10879- AR="$AR $plugin_option"
10880- fi
10881- rm -f conftest.*
10882+ else
10883+ AR="$AR $plugin_option"
10884 fi
10885-fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050010886-test -z "$AR_FLAGS" && AR_FLAGS=cru
Patrick Williams213cb262021-08-07 19:21:33 -050010887+ rm -f conftest.*
Andrew Geissler82c905d2020-04-13 13:39:40 -050010888+: ${AR=ar}
10889+: ${AR_FLAGS=cru}
Patrick Williams213cb262021-08-07 19:21:33 -050010890
10891
10892
10893@@ -6790,6 +7045,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
10894
10895
10896
Andrew Geissler82c905d2020-04-13 13:39:40 -050010897+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10898+$as_echo_n "checking for archiver @FILE support... " >&6; }
10899+if ${lt_cv_ar_at_file+:} false; then :
10900+ $as_echo_n "(cached) " >&6
10901+else
10902+ lt_cv_ar_at_file=no
10903+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904+/* end confdefs.h. */
10905+
10906+int
10907+main ()
10908+{
Patrick Williams213cb262021-08-07 19:21:33 -050010909+
Andrew Geissler82c905d2020-04-13 13:39:40 -050010910+ ;
10911+ return 0;
10912+}
10913+_ACEOF
10914+if ac_fn_c_try_compile "$LINENO"; then :
10915+ echo conftest.$ac_objext > conftest.lst
10916+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10917+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10918+ (eval $lt_ar_try) 2>&5
10919+ ac_status=$?
10920+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10921+ test $ac_status = 0; }
10922+ if test "$ac_status" -eq 0; then
10923+ # Ensure the archiver fails upon bogus file names.
10924+ rm -f conftest.$ac_objext libconftest.a
10925+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10926+ (eval $lt_ar_try) 2>&5
10927+ ac_status=$?
10928+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929+ test $ac_status = 0; }
10930+ if test "$ac_status" -ne 0; then
10931+ lt_cv_ar_at_file=@
10932+ fi
10933+ fi
10934+ rm -f conftest.* libconftest.a
Patrick Williams213cb262021-08-07 19:21:33 -050010935+
Andrew Geissler82c905d2020-04-13 13:39:40 -050010936+fi
10937+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -050010938+
Andrew Geissler82c905d2020-04-13 13:39:40 -050010939+fi
10940+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10941+$as_echo "$lt_cv_ar_at_file" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -050010942+
Andrew Geissler82c905d2020-04-13 13:39:40 -050010943+if test "x$lt_cv_ar_at_file" = xno; then
10944+ archiver_list_spec=
10945+else
10946+ archiver_list_spec=$lt_cv_ar_at_file
10947+fi
Patrick Williams213cb262021-08-07 19:21:33 -050010948+
10949+
10950+
10951+
10952+
10953+
10954+
10955 if test -n "$ac_tool_prefix"; then
10956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10957 set dummy ${ac_tool_prefix}strip; ac_word=$2
10958@@ -7129,8 +7442,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050010959 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10960
10961 # Transform an extracted symbol line into symbol name and symbol address
10962-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10963-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'"
10964+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10965+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'"
10966
10967 # Handle CRLF in mingw tool chain
10968 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -050010969@@ -7166,6 +7479,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler82c905d2020-04-13 13:39:40 -050010970 else
10971 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10972 fi
10973+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10974
10975 # Check to see that the pipe works correctly.
10976 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -050010977@@ -7207,6 +7521,18 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050010978 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10979 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10980 cat <<_LT_EOF > conftest.$ac_ext
10981+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10982+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10983+/* DATA imports from DLLs on WIN32 con't be const, because runtime
10984+ relocations are performed -- see ld's documentation on pseudo-relocs. */
10985+# define LT_DLSYM_CONST
10986+#elif defined(__osf__)
10987+/* This system does not cope well with relocations in const data. */
10988+# define LT_DLSYM_CONST
10989+#else
10990+# define LT_DLSYM_CONST const
10991+#endif
10992+
10993 #ifdef __cplusplus
10994 extern "C" {
10995 #endif
Patrick Williams213cb262021-08-07 19:21:33 -050010996@@ -7218,7 +7544,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050010997 cat <<_LT_EOF >> conftest.$ac_ext
10998
10999 /* The mapping between symbol names and symbols. */
11000-const struct {
11001+LT_DLSYM_CONST struct {
11002 const char *name;
11003 void *address;
11004 }
Patrick Williams213cb262021-08-07 19:21:33 -050011005@@ -7244,8 +7570,8 @@ static const void *lt_preloaded_setup() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050011006 _LT_EOF
11007 # Now try linking the two files.
11008 mv conftest.$ac_objext conftstm.$ac_objext
11009- lt_save_LIBS="$LIBS"
11010- lt_save_CFLAGS="$CFLAGS"
11011+ lt_globsym_save_LIBS=$LIBS
11012+ lt_globsym_save_CFLAGS=$CFLAGS
11013 LIBS="conftstm.$ac_objext"
11014 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Patrick Williams213cb262021-08-07 19:21:33 -050011016@@ -7255,8 +7581,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050011017 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11018 pipe_works=yes
11019 fi
11020- LIBS="$lt_save_LIBS"
11021- CFLAGS="$lt_save_CFLAGS"
11022+ LIBS=$lt_globsym_save_LIBS
11023+ CFLAGS=$lt_globsym_save_CFLAGS
11024 else
11025 echo "cannot find nm_test_func in $nlist" >&5
11026 fi
Patrick Williams213cb262021-08-07 19:21:33 -050011027@@ -7293,6 +7619,14 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050011028 $as_echo "ok" >&6; }
11029 fi
11030
11031+# Response file support.
11032+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11033+ nm_file_list_spec='@'
11034+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11035+ nm_file_list_spec='@'
11036+fi
11037+
11038+
Andrew Geissler82c905d2020-04-13 13:39:40 -050011039
11040
11041
Patrick Williams213cb262021-08-07 19:21:33 -050011042@@ -7311,6 +7645,47 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011043
11044
11045
11046+
11047+
11048+
11049+
11050+
11051+
11052+
11053+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11054+$as_echo_n "checking for sysroot... " >&6; }
11055+
11056+# Check whether --with-libtool-sysroot was given.
11057+if test "${with_libtool_sysroot+set}" = set; then :
11058+ withval=$with_libtool_sysroot;
11059+else
11060+ with_libtool_sysroot=no
11061+fi
11062+
11063+
11064+lt_sysroot=
11065+case ${with_libtool_sysroot} in #(
11066+ yes)
11067+ if test "$GCC" = yes; then
11068+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11069+ fi
11070+ ;; #(
11071+ /*)
11072+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
11073+ ;; #(
11074+ no|'')
11075+ ;; #(
11076+ *)
11077+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
11078+$as_echo "${with_libtool_sysroot}" >&6; }
11079+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11080+ ;;
11081+esac
11082+
11083+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11084+$as_echo "${lt_sysroot:-no}" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -050011085+
11086+
Andrew Geissler82c905d2020-04-13 13:39:40 -050011087
11088
11089
Patrick Williams213cb262021-08-07 19:21:33 -050011090@@ -7520,6 +7895,123 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050011091
11092 need_locks="$enable_libtool_lock"
11093
11094+if test -n "$ac_tool_prefix"; then
11095+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11096+set dummy ${ac_tool_prefix}mt; ac_word=$2
11097+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098+$as_echo_n "checking for $ac_word... " >&6; }
11099+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11100+ $as_echo_n "(cached) " >&6
11101+else
11102+ if test -n "$MANIFEST_TOOL"; then
11103+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11104+else
11105+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106+for as_dir in $PATH
11107+do
11108+ IFS=$as_save_IFS
11109+ test -z "$as_dir" && as_dir=.
11110+ for ac_exec_ext in '' $ac_executable_extensions; do
11111+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11113+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114+ break 2
11115+ fi
11116+done
11117+ done
11118+IFS=$as_save_IFS
11119+
11120+fi
11121+fi
11122+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11123+if test -n "$MANIFEST_TOOL"; then
11124+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11125+$as_echo "$MANIFEST_TOOL" >&6; }
11126+else
11127+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128+$as_echo "no" >&6; }
11129+fi
11130+
11131+
11132+fi
11133+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11134+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11135+ # Extract the first word of "mt", so it can be a program name with args.
11136+set dummy mt; ac_word=$2
11137+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138+$as_echo_n "checking for $ac_word... " >&6; }
11139+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11140+ $as_echo_n "(cached) " >&6
11141+else
11142+ if test -n "$ac_ct_MANIFEST_TOOL"; then
11143+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11144+else
11145+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146+for as_dir in $PATH
11147+do
11148+ IFS=$as_save_IFS
11149+ test -z "$as_dir" && as_dir=.
11150+ for ac_exec_ext in '' $ac_executable_extensions; do
11151+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11153+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154+ break 2
11155+ fi
11156+done
11157+ done
11158+IFS=$as_save_IFS
11159+
11160+fi
11161+fi
11162+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11163+if test -n "$ac_ct_MANIFEST_TOOL"; then
11164+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11165+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11166+else
11167+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168+$as_echo "no" >&6; }
11169+fi
11170+
11171+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
11172+ MANIFEST_TOOL=":"
11173+ else
11174+ case $cross_compiling:$ac_tool_warned in
11175+yes:)
11176+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11177+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11178+ac_tool_warned=yes ;;
11179+esac
11180+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11181+ fi
11182+else
11183+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11184+fi
11185+
11186+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11187+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11188+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11189+if ${lt_cv_path_mainfest_tool+:} false; then :
11190+ $as_echo_n "(cached) " >&6
11191+else
11192+ lt_cv_path_mainfest_tool=no
11193+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11194+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11195+ cat conftest.err >&5
11196+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11197+ lt_cv_path_mainfest_tool=yes
11198+ fi
11199+ rm -f conftest*
11200+fi
11201+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11202+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11203+if test "x$lt_cv_path_mainfest_tool" != xyes; then
11204+ MANIFEST_TOOL=:
11205+fi
11206+
11207+
11208+
11209+
11210+
11211
11212 case $host_os in
11213 rhapsody* | darwin*)
Patrick Williams213cb262021-08-07 19:21:33 -050011214@@ -8083,6 +8575,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050011215 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11216 echo "$AR cru libconftest.a conftest.o" >&5
11217 $AR cru libconftest.a conftest.o 2>&5
11218+ echo "$RANLIB libconftest.a" >&5
11219+ $RANLIB libconftest.a 2>&5
11220 cat > conftest.c << _LT_EOF
11221 int main() { return 0;}
11222 _LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050011223@@ -8248,7 +8742,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011224 LIBTOOL_DEPS="$ltmain"
11225
11226 # Always use our own libtool.
11227-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11228+LIBTOOL='$(SHELL) $(top_builddir)'
11229+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
11230
11231
11232
Patrick Williams213cb262021-08-07 19:21:33 -050011233@@ -8337,7 +8832,7 @@ aix3*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050011234 esac
11235
11236 # Global variables:
11237-ofile=libtool
11238+ofile=${host_alias}-libtool
11239 can_build_shared=yes
11240
11241 # All known linkers require a `.a' archive for static linking (except MSVC,
Patrick Williams213cb262021-08-07 19:21:33 -050011242@@ -8635,8 +9130,6 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011243 lt_prog_compiler_pic=
11244 lt_prog_compiler_static=
11245
11246-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11247-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11248
11249 if test "$GCC" = yes; then
11250 lt_prog_compiler_wl='-Wl,'
Patrick Williams213cb262021-08-07 19:21:33 -050011251@@ -8802,6 +9295,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -050011252 lt_prog_compiler_pic='--shared'
11253 lt_prog_compiler_static='--static'
11254 ;;
11255+ nagfor*)
11256+ # NAG Fortran compiler
11257+ lt_prog_compiler_wl='-Wl,-Wl,,'
11258+ lt_prog_compiler_pic='-PIC'
11259+ lt_prog_compiler_static='-Bstatic'
11260+ ;;
11261 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11262 # Portland Group compilers (*not* the Pentium gcc compiler,
11263 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -050011264@@ -8864,7 +9363,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -050011265 lt_prog_compiler_pic='-KPIC'
11266 lt_prog_compiler_static='-Bstatic'
11267 case $cc_basename in
11268- f77* | f90* | f95*)
11269+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11270 lt_prog_compiler_wl='-Qoption ld ';;
11271 *)
11272 lt_prog_compiler_wl='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -050011273@@ -8921,13 +9420,17 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -050011274 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11275 ;;
11276 esac
11277-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11278-$as_echo "$lt_prog_compiler_pic" >&6; }
11279-
11280-
11281-
11282-
11283
11284+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11285+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11286+if ${lt_cv_prog_compiler_pic+:} false; then :
11287+ $as_echo_n "(cached) " >&6
11288+else
11289+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11290+fi
11291+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11292+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11293+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11294
11295 #
11296 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -050011297@@ -8988,6 +9491,11 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011298
11299
11300
11301+
11302+
11303+
11304+
11305+
11306 #
11307 # Check to make sure the static flag actually works.
11308 #
Patrick Williams213cb262021-08-07 19:21:33 -050011309@@ -9338,7 +9846,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050011310 allow_undefined_flag=unsupported
11311 always_export_symbols=no
11312 enable_shared_with_static_runtimes=yes
11313- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11314+ 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'
11315+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11316
11317 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Patrick Williams213cb262021-08-07 19:21:33 -050011319@@ -9437,12 +9946,12 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050011320 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11321 hardcode_libdir_flag_spec=
11322 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11323- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11324+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11325 if test "x$supports_anon_versioning" = xyes; then
11326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11328 echo "local: *; };" >> $output_objdir/$libname.ver~
11329- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11330+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11331 fi
11332 ;;
11333 esac
Patrick Williams213cb262021-08-07 19:21:33 -050011334@@ -9456,8 +9965,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050011335 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11336 wlarc=
11337 else
11338- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11339- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11340+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11341+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11342 fi
11343 ;;
11344
Patrick Williams213cb262021-08-07 19:21:33 -050011345@@ -9475,8 +9984,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050011346
11347 _LT_EOF
11348 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11349- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11350- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11351+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11352+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11353 else
11354 ld_shlibs=no
11355 fi
Patrick Williams213cb262021-08-07 19:21:33 -050011356@@ -9522,8 +10031,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050011357
11358 *)
11359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11360- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11361- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11362+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11363+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11364 else
11365 ld_shlibs=no
11366 fi
Patrick Williams213cb262021-08-07 19:21:33 -050011367@@ -9653,7 +10162,13 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050011368 allow_undefined_flag='-berok'
11369 # Determine the default libpath from the value encoded in an
11370 # empty executable.
11371- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372+ if test "${lt_cv_aix_libpath+set}" = set; then
11373+ aix_libpath=$lt_cv_aix_libpath
11374+else
11375+ if ${lt_cv_aix_libpath_+:} false; then :
11376+ $as_echo_n "(cached) " >&6
11377+else
11378+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380
11381 int
Patrick Williams213cb262021-08-07 19:21:33 -050011382@@ -9666,22 +10181,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -050011383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385
11386-lt_aix_libpath_sed='
11387- /Import File Strings/,/^$/ {
11388- /^0/ {
11389- s/^0 *\(.*\)$/\1/
11390- p
11391- }
11392- }'
11393-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11394-# Check for a 64-bit object if we didn't find anything.
11395-if test -z "$aix_libpath"; then
11396- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11397-fi
11398+ lt_aix_libpath_sed='
11399+ /Import File Strings/,/^$/ {
11400+ /^0/ {
11401+ s/^0 *\([^ ]*\) *$/\1/
11402+ p
11403+ }
11404+ }'
11405+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11406+ # Check for a 64-bit object if we didn't find anything.
11407+ if test -z "$lt_cv_aix_libpath_"; then
11408+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11409+ fi
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11414+ if test -z "$lt_cv_aix_libpath_"; then
11415+ lt_cv_aix_libpath_="/usr/lib:/lib"
11416+ fi
11417+
11418+fi
11419+
11420+ aix_libpath=$lt_cv_aix_libpath_
11421+fi
11422
11423 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11424 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"
Patrick Williams213cb262021-08-07 19:21:33 -050011425@@ -9693,7 +10215,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011426 else
11427 # Determine the default libpath from the value encoded in an
11428 # empty executable.
11429- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430+ if test "${lt_cv_aix_libpath+set}" = set; then
11431+ aix_libpath=$lt_cv_aix_libpath
11432+else
11433+ if ${lt_cv_aix_libpath_+:} false; then :
11434+ $as_echo_n "(cached) " >&6
11435+else
11436+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438
11439 int
Patrick Williams213cb262021-08-07 19:21:33 -050011440@@ -9706,22 +10234,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -050011441 _ACEOF
11442 if ac_fn_c_try_link "$LINENO"; then :
11443
11444-lt_aix_libpath_sed='
11445- /Import File Strings/,/^$/ {
11446- /^0/ {
11447- s/^0 *\(.*\)$/\1/
11448- p
11449- }
11450- }'
11451-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11452-# Check for a 64-bit object if we didn't find anything.
11453-if test -z "$aix_libpath"; then
11454- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11455-fi
11456+ lt_aix_libpath_sed='
11457+ /Import File Strings/,/^$/ {
11458+ /^0/ {
11459+ s/^0 *\([^ ]*\) *$/\1/
11460+ p
11461+ }
11462+ }'
11463+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11464+ # Check for a 64-bit object if we didn't find anything.
11465+ if test -z "$lt_cv_aix_libpath_"; then
11466+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11467+ fi
11468 fi
11469 rm -f core conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext conftest.$ac_ext
11471-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11472+ if test -z "$lt_cv_aix_libpath_"; then
11473+ lt_cv_aix_libpath_="/usr/lib:/lib"
11474+ fi
11475+
11476+fi
11477+
11478+ aix_libpath=$lt_cv_aix_libpath_
11479+fi
11480
11481 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11482 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -050011483@@ -9766,20 +10301,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011484 # Microsoft Visual C++.
11485 # hardcode_libdir_flag_spec is actually meaningless, as there is
11486 # no search path for DLLs.
11487- hardcode_libdir_flag_spec=' '
11488- allow_undefined_flag=unsupported
11489- # Tell ltmain to make .lib files, not .a files.
11490- libext=lib
11491- # Tell ltmain to make .dll files, not .so files.
11492- shrext_cmds=".dll"
11493- # FIXME: Setting linknames here is a bad hack.
11494- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11495- # The linker will automatically build a .lib file if we build a DLL.
11496- old_archive_from_new_cmds='true'
11497- # FIXME: Should let the user specify the lib program.
11498- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11499- fix_srcfile_path='`cygpath -w "$srcfile"`'
11500- enable_shared_with_static_runtimes=yes
11501+ case $cc_basename in
11502+ cl*)
11503+ # Native MSVC
11504+ hardcode_libdir_flag_spec=' '
11505+ allow_undefined_flag=unsupported
11506+ always_export_symbols=yes
11507+ file_list_spec='@'
11508+ # Tell ltmain to make .lib files, not .a files.
11509+ libext=lib
11510+ # Tell ltmain to make .dll files, not .so files.
11511+ shrext_cmds=".dll"
11512+ # FIXME: Setting linknames here is a bad hack.
11513+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11514+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11515+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11516+ else
11517+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11518+ fi~
11519+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11520+ linknames='
11521+ # The linker will not automatically build a static lib if we build a DLL.
11522+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11523+ enable_shared_with_static_runtimes=yes
11524+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11525+ # Don't use ranlib
11526+ old_postinstall_cmds='chmod 644 $oldlib'
11527+ postlink_cmds='lt_outputfile="@OUTPUT@"~
11528+ lt_tool_outputfile="@TOOL_OUTPUT@"~
11529+ case $lt_outputfile in
11530+ *.exe|*.EXE) ;;
11531+ *)
11532+ lt_outputfile="$lt_outputfile.exe"
11533+ lt_tool_outputfile="$lt_tool_outputfile.exe"
11534+ ;;
11535+ esac~
11536+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11537+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11538+ $RM "$lt_outputfile.manifest";
11539+ fi'
11540+ ;;
11541+ *)
11542+ # Assume MSVC wrapper
11543+ hardcode_libdir_flag_spec=' '
11544+ allow_undefined_flag=unsupported
11545+ # Tell ltmain to make .lib files, not .a files.
11546+ libext=lib
11547+ # Tell ltmain to make .dll files, not .so files.
11548+ shrext_cmds=".dll"
11549+ # FIXME: Setting linknames here is a bad hack.
11550+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11551+ # The linker will automatically build a .lib file if we build a DLL.
11552+ old_archive_from_new_cmds='true'
11553+ # FIXME: Should let the user specify the lib program.
11554+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11555+ enable_shared_with_static_runtimes=yes
11556+ ;;
11557+ esac
11558 ;;
11559
11560 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -050011561@@ -9840,7 +10418,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011562
11563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11564 freebsd* | dragonfly*)
11565- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11566+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11567 hardcode_libdir_flag_spec='-R$libdir'
11568 hardcode_direct=yes
11569 hardcode_shlibpath_var=no
Patrick Williams213cb262021-08-07 19:21:33 -050011570@@ -9848,7 +10426,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011571
11572 hpux9*)
11573 if test "$GCC" = yes; then
11574- 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'
11575+ 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'
11576 else
11577 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'
11578 fi
Patrick Williams213cb262021-08-07 19:21:33 -050011579@@ -9864,7 +10442,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011580
11581 hpux10*)
11582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11583- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11584+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11585 else
11586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11587 fi
Patrick Williams213cb262021-08-07 19:21:33 -050011588@@ -9888,10 +10466,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011589 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11590 ;;
11591 ia64*)
11592- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11593+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11594 ;;
11595 *)
11596- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11597+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11598 ;;
11599 esac
11600 else
Patrick Williams213cb262021-08-07 19:21:33 -050011601@@ -9970,23 +10548,36 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050011602
11603 irix5* | irix6* | nonstopux*)
11604 if test "$GCC" = yes; then
11605- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11606+ 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'
11607 # Try to use the -exported_symbol ld option, if it does not
11608 # work, assume that -exports_file does not work either and
11609 # implicitly export all symbols.
11610- save_LDFLAGS="$LDFLAGS"
11611- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11612- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613+ # This should be the same for all languages, so no per-tag cache variable.
11614+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11615+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11616+if ${lt_cv_irix_exported_symbol+:} false; then :
11617+ $as_echo_n "(cached) " >&6
11618+else
11619+ save_LDFLAGS="$LDFLAGS"
11620+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11621+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623-int foo(void) {}
11624+int foo (void) { return 0; }
11625 _ACEOF
11626 if ac_fn_c_try_link "$LINENO"; then :
11627- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11628-
11629+ lt_cv_irix_exported_symbol=yes
11630+else
11631+ lt_cv_irix_exported_symbol=no
11632 fi
11633 rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635- LDFLAGS="$save_LDFLAGS"
11636+ LDFLAGS="$save_LDFLAGS"
11637+fi
11638+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11639+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11640+ if test "$lt_cv_irix_exported_symbol" = yes; then
11641+ 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'
11642+ fi
11643 else
11644 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'
11645 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'
Patrick Williams213cb262021-08-07 19:21:33 -050011646@@ -10071,7 +10662,7 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -050011647 osf4* | osf5*) # as osf3* with the addition of -msym flag
11648 if test "$GCC" = yes; then
11649 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11650- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11651+ 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'
11652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11653 else
11654 allow_undefined_flag=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -050011655@@ -10090,9 +10681,9 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -050011656 no_undefined_flag=' -z defs'
11657 if test "$GCC" = yes; then
11658 wlarc='${wl}'
11659- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11660+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11662- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11663+ $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'
11664 else
11665 case `$CC -V 2>&1` in
11666 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -050011667@@ -10668,8 +11259,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050011668 need_version=no
11669 need_lib_prefix=no
11670
11671- case $GCC,$host_os in
11672- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11673+ case $GCC,$cc_basename in
11674+ yes,*)
11675+ # gcc
11676 library_names_spec='$libname.dll.a'
11677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11678 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -050011679@@ -10702,13 +11294,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050011680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11681 ;;
11682 esac
11683+ dynamic_linker='Win32 ld.exe'
11684+ ;;
11685+
11686+ *,cl*)
11687+ # Native MSVC
11688+ libname_spec='$name'
11689+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11690+ library_names_spec='${libname}.dll.lib'
11691+
11692+ case $build_os in
11693+ mingw*)
11694+ sys_lib_search_path_spec=
11695+ lt_save_ifs=$IFS
11696+ IFS=';'
11697+ for lt_path in $LIB
11698+ do
11699+ IFS=$lt_save_ifs
11700+ # Let DOS variable expansion print the short 8.3 style file name.
11701+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11702+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11703+ done
11704+ IFS=$lt_save_ifs
11705+ # Convert to MSYS style.
11706+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11707+ ;;
11708+ cygwin*)
11709+ # Convert to unix form, then to dos form, then back to unix form
11710+ # but this time dos style (no spaces!) so that the unix form looks
11711+ # like /cygdrive/c/PROGRA~1:/cygdr...
11712+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11713+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11714+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11715+ ;;
11716+ *)
11717+ sys_lib_search_path_spec="$LIB"
11718+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11719+ # It is most probably a Windows format PATH.
11720+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11721+ else
11722+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11723+ fi
11724+ # FIXME: find the short name or the path components, as spaces are
11725+ # common. (e.g. "Program Files" -> "PROGRA~1")
11726+ ;;
11727+ esac
11728+
11729+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
11730+ postinstall_cmds='base_file=`basename \${file}`~
11731+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11732+ dldir=$destdir/`dirname \$dlpath`~
11733+ test -d \$dldir || mkdir -p \$dldir~
11734+ $install_prog $dir/$dlname \$dldir/$dlname'
11735+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11736+ dlpath=$dir/\$dldll~
11737+ $RM \$dlpath'
11738+ shlibpath_overrides_runpath=yes
11739+ dynamic_linker='Win32 link.exe'
11740 ;;
11741
11742 *)
11743+ # Assume MSVC wrapper
11744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11745+ dynamic_linker='Win32 ld.exe'
11746 ;;
11747 esac
11748- dynamic_linker='Win32 ld.exe'
11749 # FIXME: first we should search . and the directory the executable is in
11750 shlibpath_var=PATH
11751 ;;
Patrick Williams213cb262021-08-07 19:21:33 -050011752@@ -10790,7 +11440,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050011753 soname_spec='${libname}${release}${shared_ext}$major'
11754 shlibpath_var=LIBRARY_PATH
11755 shlibpath_overrides_runpath=yes
11756- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11757+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11758 hardcode_into_libs=yes
11759 ;;
11760
Patrick Williams213cb262021-08-07 19:21:33 -050011761@@ -11586,7 +12236,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050011762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11763 lt_status=$lt_dlunknown
11764 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050011765-#line 11589 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -050011766+#line $LINENO "configure"
11767 #include "confdefs.h"
11768
11769 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -050011770@@ -11630,10 +12280,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050011771 /* When -fvisbility=hidden is used, assume the code has been annotated
11772 correspondingly for the symbols needed. */
11773 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11774-void fnord () __attribute__((visibility("default")));
11775+int fnord () __attribute__((visibility("default")));
11776 #endif
11777
11778-void fnord () { int i=42; }
11779+int fnord () { return 42; }
11780 int main ()
11781 {
11782 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -050011783@@ -11692,7 +12342,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050011784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11785 lt_status=$lt_dlunknown
11786 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050011787-#line 11695 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -050011788+#line $LINENO "configure"
11789 #include "confdefs.h"
11790
11791 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -050011792@@ -11736,10 +12386,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050011793 /* When -fvisbility=hidden is used, assume the code has been annotated
11794 correspondingly for the symbols needed. */
11795 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11796-void fnord () __attribute__((visibility("default")));
11797+int fnord () __attribute__((visibility("default")));
11798 #endif
11799
11800-void fnord () { int i=42; }
11801+int fnord () { return 42; }
11802 int main ()
11803 {
11804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -050011805@@ -14286,13 +14936,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Andrew Geissler82c905d2020-04-13 13:39:40 -050011806 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11807 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11808 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11809+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
11810+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
11811 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11812 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11813 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11814 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11815 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11816+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
11817+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
11818+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
11819+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
11820 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11821 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11822+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
11823 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11824 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11825 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050011826@@ -14307,14 +14964,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
Andrew Geissler82c905d2020-04-13 13:39:40 -050011827 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11828 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11829 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"`'
11830+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
11831+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
11832 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11833 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11834 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11835-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11836 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11837+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11838 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11839 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11840 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11841+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
11842 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11843 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11844 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050011845@@ -14347,12 +15007,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
Andrew Geissler82c905d2020-04-13 13:39:40 -050011846 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11847 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11848 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11849-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11850 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11851 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11852 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11853 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11854 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11855+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
11856 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11857 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11858 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050011859@@ -14407,8 +15067,13 @@ reload_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -050011860 OBJDUMP \
11861 deplibs_check_method \
11862 file_magic_cmd \
11863+file_magic_glob \
11864+want_nocaseglob \
11865+DLLTOOL \
11866+sharedlib_from_linklib_cmd \
11867 AR \
11868 AR_FLAGS \
11869+archiver_list_spec \
11870 STRIP \
11871 RANLIB \
11872 CC \
Patrick Williams213cb262021-08-07 19:21:33 -050011873@@ -14418,12 +15083,14 @@ lt_cv_sys_global_symbol_pipe \
Andrew Geissler82c905d2020-04-13 13:39:40 -050011874 lt_cv_sys_global_symbol_to_cdecl \
11875 lt_cv_sys_global_symbol_to_c_name_address \
11876 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11877+nm_file_list_spec \
11878 lt_prog_compiler_no_builtin_flag \
11879-lt_prog_compiler_wl \
11880 lt_prog_compiler_pic \
11881+lt_prog_compiler_wl \
11882 lt_prog_compiler_static \
11883 lt_cv_prog_compiler_c_o \
11884 need_locks \
11885+MANIFEST_TOOL \
11886 DSYMUTIL \
11887 NMEDIT \
11888 LIPO \
Patrick Williams213cb262021-08-07 19:21:33 -050011889@@ -14439,7 +15106,6 @@ no_undefined_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -050011890 hardcode_libdir_flag_spec \
11891 hardcode_libdir_flag_spec_ld \
11892 hardcode_libdir_separator \
11893-fix_srcfile_path \
11894 exclude_expsyms \
11895 include_expsyms \
11896 file_list_spec \
Patrick Williams213cb262021-08-07 19:21:33 -050011897@@ -14475,6 +15141,7 @@ module_cmds \
Andrew Geissler82c905d2020-04-13 13:39:40 -050011898 module_expsym_cmds \
11899 export_symbols_cmds \
11900 prelink_cmds \
11901+postlink_cmds \
11902 postinstall_cmds \
11903 postuninstall_cmds \
11904 finish_cmds \
Patrick Williams213cb262021-08-07 19:21:33 -050011905@@ -15231,7 +15898,8 @@ $as_echo X"$file" |
Andrew Geissler82c905d2020-04-13 13:39:40 -050011906 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11907 #
11908 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11909-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
11910+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
11911+# Inc.
11912 # Written by Gordon Matzigkeit, 1996
11913 #
11914 # This file is part of GNU Libtool.
Patrick Williams213cb262021-08-07 19:21:33 -050011915@@ -15334,19 +16002,42 @@ SP2NL=$lt_lt_SP2NL
Andrew Geissler82c905d2020-04-13 13:39:40 -050011916 # turn newlines into spaces.
11917 NL2SP=$lt_lt_NL2SP
11918
11919+# convert \$build file names to \$host format.
11920+to_host_file_cmd=$lt_cv_to_host_file_cmd
11921+
11922+# convert \$build files to toolchain format.
11923+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11924+
11925 # An object symbol dumper.
11926 OBJDUMP=$lt_OBJDUMP
11927
11928 # Method to check whether dependent libraries are shared objects.
11929 deplibs_check_method=$lt_deplibs_check_method
11930
11931-# Command to use when deplibs_check_method == "file_magic".
11932+# Command to use when deplibs_check_method = "file_magic".
11933 file_magic_cmd=$lt_file_magic_cmd
11934
11935+# How to find potential files when deplibs_check_method = "file_magic".
11936+file_magic_glob=$lt_file_magic_glob
11937+
11938+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
11939+want_nocaseglob=$lt_want_nocaseglob
11940+
11941+# DLL creation program.
11942+DLLTOOL=$lt_DLLTOOL
11943+
11944+# Command to associate shared and link libraries.
11945+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
11946+
11947 # The archiver.
11948 AR=$lt_AR
11949+
11950+# Flags to create an archive.
11951 AR_FLAGS=$lt_AR_FLAGS
11952
11953+# How to feed a file listing to the archiver.
11954+archiver_list_spec=$lt_archiver_list_spec
11955+
11956 # A symbol stripping program.
11957 STRIP=$lt_STRIP
11958
Patrick Williams213cb262021-08-07 19:21:33 -050011959@@ -15376,6 +16067,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Andrew Geissler82c905d2020-04-13 13:39:40 -050011960 # Transform the output of nm in a C name address pair when lib prefix is needed.
11961 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
11962
11963+# Specify filename containing input files for \$NM.
11964+nm_file_list_spec=$lt_nm_file_list_spec
11965+
11966+# The root where to search for dependent libraries,and in which our libraries should be installed.
11967+lt_sysroot=$lt_sysroot
11968+
11969 # The name of the directory that contains temporary libtool files.
11970 objdir=$objdir
11971
Patrick Williams213cb262021-08-07 19:21:33 -050011972@@ -15385,6 +16082,9 @@ MAGIC_CMD=$MAGIC_CMD
Andrew Geissler82c905d2020-04-13 13:39:40 -050011973 # Must we lock files when doing compilation?
11974 need_locks=$lt_need_locks
11975
11976+# Manifest tool.
11977+MANIFEST_TOOL=$lt_MANIFEST_TOOL
11978+
11979 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
11980 DSYMUTIL=$lt_DSYMUTIL
11981
Patrick Williams213cb262021-08-07 19:21:33 -050011982@@ -15499,12 +16199,12 @@ with_gcc=$GCC
Andrew Geissler82c905d2020-04-13 13:39:40 -050011983 # Compiler flag to turn off builtin functions.
11984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11985
11986-# How to pass a linker flag through the compiler.
11987-wl=$lt_lt_prog_compiler_wl
11988-
11989 # Additional compiler flags for building library objects.
11990 pic_flag=$lt_lt_prog_compiler_pic
11991
11992+# How to pass a linker flag through the compiler.
11993+wl=$lt_lt_prog_compiler_wl
11994+
11995 # Compiler flag to prevent dynamic linking.
11996 link_static_flag=$lt_lt_prog_compiler_static
11997
Patrick Williams213cb262021-08-07 19:21:33 -050011998@@ -15591,9 +16291,6 @@ inherit_rpath=$inherit_rpath
Andrew Geissler82c905d2020-04-13 13:39:40 -050011999 # Whether libtool must link a program against all its dependency libraries.
12000 link_all_deplibs=$link_all_deplibs
12001
12002-# Fix the shell variable \$srcfile for the compiler.
12003-fix_srcfile_path=$lt_fix_srcfile_path
12004-
12005 # Set to "yes" if exported symbols are required.
12006 always_export_symbols=$always_export_symbols
12007
Patrick Williams213cb262021-08-07 19:21:33 -050012008@@ -15609,6 +16306,9 @@ include_expsyms=$lt_include_expsyms
Andrew Geissler82c905d2020-04-13 13:39:40 -050012009 # Commands necessary for linking programs (against libraries) with templates.
12010 prelink_cmds=$lt_prelink_cmds
12011
12012+# Commands necessary for finishing linking programs.
12013+postlink_cmds=$lt_postlink_cmds
12014+
12015 # Specify filename containing input files.
12016 file_list_spec=$lt_file_list_spec
12017
Patrick Williams213cb262021-08-07 19:21:33 -050012018@@ -15641,210 +16341,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -050012019 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12020 # text mode, it properly converts lines to CR/LF. This bash problem
12021 # is reportedly fixed, but why not run on old versions too?
12022- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12023- || (rm -f "$cfgfile"; exit 1)
12024-
12025- case $xsi_shell in
12026- yes)
12027- cat << \_LT_EOF >> "$cfgfile"
12028-
12029-# func_dirname file append nondir_replacement
12030-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12031-# otherwise set result to NONDIR_REPLACEMENT.
12032-func_dirname ()
12033-{
12034- case ${1} in
12035- */*) func_dirname_result="${1%/*}${2}" ;;
12036- * ) func_dirname_result="${3}" ;;
12037- esac
12038-}
12039-
12040-# func_basename file
12041-func_basename ()
12042-{
12043- func_basename_result="${1##*/}"
12044-}
12045-
12046-# func_dirname_and_basename file append nondir_replacement
12047-# perform func_basename and func_dirname in a single function
12048-# call:
12049-# dirname: Compute the dirname of FILE. If nonempty,
12050-# add APPEND to the result, otherwise set result
12051-# to NONDIR_REPLACEMENT.
12052-# value returned in "$func_dirname_result"
12053-# basename: Compute filename of FILE.
12054-# value retuned in "$func_basename_result"
12055-# Implementation must be kept synchronized with func_dirname
12056-# and func_basename. For efficiency, we do not delegate to
12057-# those functions but instead duplicate the functionality here.
12058-func_dirname_and_basename ()
12059-{
12060- case ${1} in
12061- */*) func_dirname_result="${1%/*}${2}" ;;
12062- * ) func_dirname_result="${3}" ;;
12063- esac
12064- func_basename_result="${1##*/}"
12065-}
12066-
12067-# func_stripname prefix suffix name
12068-# strip PREFIX and SUFFIX off of NAME.
12069-# PREFIX and SUFFIX must not contain globbing or regex special
12070-# characters, hashes, percent signs, but SUFFIX may contain a leading
12071-# dot (in which case that matches only a dot).
12072-func_stripname ()
12073-{
12074- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12075- # positional parameters, so assign one to ordinary parameter first.
12076- func_stripname_result=${3}
12077- func_stripname_result=${func_stripname_result#"${1}"}
12078- func_stripname_result=${func_stripname_result%"${2}"}
12079-}
12080-
12081-# func_opt_split
12082-func_opt_split ()
12083-{
12084- func_opt_split_opt=${1%%=*}
12085- func_opt_split_arg=${1#*=}
12086-}
12087-
12088-# func_lo2o object
12089-func_lo2o ()
12090-{
12091- case ${1} in
12092- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12093- *) func_lo2o_result=${1} ;;
12094- esac
12095-}
12096-
12097-# func_xform libobj-or-source
12098-func_xform ()
12099-{
12100- func_xform_result=${1%.*}.lo
12101-}
12102-
12103-# func_arith arithmetic-term...
12104-func_arith ()
12105-{
12106- func_arith_result=$(( $* ))
12107-}
12108-
12109-# func_len string
12110-# STRING may not start with a hyphen.
12111-func_len ()
12112-{
12113- func_len_result=${#1}
12114-}
12115-
12116-_LT_EOF
12117- ;;
12118- *) # Bourne compatible functions.
12119- cat << \_LT_EOF >> "$cfgfile"
12120-
12121-# func_dirname file append nondir_replacement
12122-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12123-# otherwise set result to NONDIR_REPLACEMENT.
12124-func_dirname ()
12125-{
12126- # Extract subdirectory from the argument.
12127- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
12128- if test "X$func_dirname_result" = "X${1}"; then
12129- func_dirname_result="${3}"
12130- else
12131- func_dirname_result="$func_dirname_result${2}"
12132- fi
12133-}
12134-
12135-# func_basename file
12136-func_basename ()
12137-{
12138- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
12139-}
12140-
12141-
12142-# func_stripname prefix suffix name
12143-# strip PREFIX and SUFFIX off of NAME.
12144-# PREFIX and SUFFIX must not contain globbing or regex special
12145-# characters, hashes, percent signs, but SUFFIX may contain a leading
12146-# dot (in which case that matches only a dot).
12147-# func_strip_suffix prefix name
12148-func_stripname ()
12149-{
12150- case ${2} in
12151- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12152- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12153- esac
12154-}
12155-
12156-# sed scripts:
12157-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12158-my_sed_long_arg='1s/^-[^=]*=//'
12159-
12160-# func_opt_split
12161-func_opt_split ()
12162-{
12163- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12164- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
12165-}
12166-
12167-# func_lo2o object
12168-func_lo2o ()
12169-{
12170- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
12171-}
12172-
12173-# func_xform libobj-or-source
12174-func_xform ()
12175-{
12176- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
12177-}
12178-
12179-# func_arith arithmetic-term...
12180-func_arith ()
12181-{
12182- func_arith_result=`expr "$@"`
12183-}
12184-
12185-# func_len string
12186-# STRING may not start with a hyphen.
12187-func_len ()
12188-{
12189- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12190-}
12191-
12192-_LT_EOF
12193-esac
12194-
12195-case $lt_shell_append in
12196- yes)
12197- cat << \_LT_EOF >> "$cfgfile"
12198-
12199-# func_append var value
12200-# Append VALUE to the end of shell variable VAR.
12201-func_append ()
12202-{
12203- eval "$1+=\$2"
12204-}
12205-_LT_EOF
12206- ;;
12207- *)
12208- cat << \_LT_EOF >> "$cfgfile"
12209-
12210-# func_append var value
12211-# Append VALUE to the end of shell variable VAR.
12212-func_append ()
12213-{
12214- eval "$1=\$$1\$2"
12215-}
12216-
12217-_LT_EOF
12218- ;;
12219- esac
12220-
12221-
12222- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12223- || (rm -f "$cfgfile"; exit 1)
12224-
12225- mv -f "$cfgfile" "$ofile" ||
12226+ sed '$q' "$ltmain" >> "$cfgfile" \
12227+ || (rm -f "$cfgfile"; exit 1)
12228+
12229+ if test x"$xsi_shell" = xyes; then
12230+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
12231+func_dirname ()\
12232+{\
12233+\ case ${1} in\
12234+\ */*) func_dirname_result="${1%/*}${2}" ;;\
12235+\ * ) func_dirname_result="${3}" ;;\
12236+\ esac\
12237+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
12238+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12239+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12240+test 0 -eq $? || _lt_function_replace_fail=:
12241+
12242+
12243+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
12244+func_basename ()\
12245+{\
12246+\ func_basename_result="${1##*/}"\
12247+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
12248+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12249+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12250+test 0 -eq $? || _lt_function_replace_fail=:
12251+
12252+
12253+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
12254+func_dirname_and_basename ()\
12255+{\
12256+\ case ${1} in\
12257+\ */*) func_dirname_result="${1%/*}${2}" ;;\
12258+\ * ) func_dirname_result="${3}" ;;\
12259+\ esac\
12260+\ func_basename_result="${1##*/}"\
12261+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
12262+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12263+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12264+test 0 -eq $? || _lt_function_replace_fail=:
12265+
12266+
12267+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
12268+func_stripname ()\
12269+{\
12270+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
12271+\ # positional parameters, so assign one to ordinary parameter first.\
12272+\ func_stripname_result=${3}\
12273+\ func_stripname_result=${func_stripname_result#"${1}"}\
12274+\ func_stripname_result=${func_stripname_result%"${2}"}\
12275+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
12276+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12277+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12278+test 0 -eq $? || _lt_function_replace_fail=:
12279+
12280+
12281+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
12282+func_split_long_opt ()\
12283+{\
12284+\ func_split_long_opt_name=${1%%=*}\
12285+\ func_split_long_opt_arg=${1#*=}\
12286+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
12287+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12288+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12289+test 0 -eq $? || _lt_function_replace_fail=:
12290+
12291+
12292+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
12293+func_split_short_opt ()\
12294+{\
12295+\ func_split_short_opt_arg=${1#??}\
12296+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
12297+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
12298+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12299+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12300+test 0 -eq $? || _lt_function_replace_fail=:
12301+
12302+
12303+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
12304+func_lo2o ()\
12305+{\
12306+\ case ${1} in\
12307+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
12308+\ *) func_lo2o_result=${1} ;;\
12309+\ esac\
12310+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
12311+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12312+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12313+test 0 -eq $? || _lt_function_replace_fail=:
12314+
12315+
12316+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
12317+func_xform ()\
12318+{\
12319+ func_xform_result=${1%.*}.lo\
12320+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
12321+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12322+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12323+test 0 -eq $? || _lt_function_replace_fail=:
12324+
12325+
12326+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
12327+func_arith ()\
12328+{\
12329+ func_arith_result=$(( $* ))\
12330+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
12331+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12332+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12333+test 0 -eq $? || _lt_function_replace_fail=:
12334+
12335+
12336+ sed -e '/^func_len ()$/,/^} # func_len /c\
12337+func_len ()\
12338+{\
12339+ func_len_result=${#1}\
12340+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
12341+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12342+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12343+test 0 -eq $? || _lt_function_replace_fail=:
12344+
12345+fi
12346+
12347+if test x"$lt_shell_append" = xyes; then
12348+ sed -e '/^func_append ()$/,/^} # func_append /c\
12349+func_append ()\
12350+{\
12351+ eval "${1}+=\\${2}"\
12352+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
12353+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12354+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12355+test 0 -eq $? || _lt_function_replace_fail=:
12356+
12357+
12358+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
12359+func_append_quoted ()\
12360+{\
12361+\ func_quote_for_eval "${2}"\
12362+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
12363+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
12364+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12365+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12366+test 0 -eq $? || _lt_function_replace_fail=:
12367+
12368+
12369+ # Save a `func_append' function call where possible by direct use of '+='
12370+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
12371+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12372+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12373+ test 0 -eq $? || _lt_function_replace_fail=:
12374+else
12375+ # Save a `func_append' function call even when '+=' is not available
12376+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
12377+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12378+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12379+ test 0 -eq $? || _lt_function_replace_fail=:
12380+fi
12381+
12382+if test x"$_lt_function_replace_fail" = x":"; then
12383+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
12384+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
12385+fi
12386+
12387+
12388+ mv -f "$cfgfile" "$ofile" ||
12389 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12390 chmod +x "$ofile"
12391
12392diff --git a/libtool.m4 b/libtool.m4
Patrick Williams213cb262021-08-07 19:21:33 -050012393index 9a13f3b117a..5be47564443 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050012394--- a/libtool.m4
12395+++ b/libtool.m4
12396@@ -1,7 +1,8 @@
12397 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
12398 #
12399 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12400-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12401+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12402+# Inc.
12403 # Written by Gordon Matzigkeit, 1996
12404 #
12405 # This file is free software; the Free Software Foundation gives
12406@@ -10,7 +11,8 @@
12407
12408 m4_define([_LT_COPYING], [dnl
12409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12410-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12411+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12412+# Inc.
12413 # Written by Gordon Matzigkeit, 1996
12414 #
12415 # This file is part of GNU Libtool.
12416@@ -37,7 +39,7 @@ m4_define([_LT_COPYING], [dnl
12417 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12418 ])
12419
12420-# serial 56 LT_INIT
12421+# serial 57 LT_INIT
12422
12423
12424 # LT_PREREQ(VERSION)
12425@@ -92,7 +94,8 @@ _LT_SET_OPTIONS([$0], [$1])
12426 LIBTOOL_DEPS="$ltmain"
12427
12428 # Always use our own libtool.
12429-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12430+LIBTOOL='$(SHELL) $(top_builddir)'
12431+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
12432 AC_SUBST(LIBTOOL)dnl
12433
12434 _LT_SETUP
12435@@ -166,10 +169,13 @@ _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
12436 dnl
12437 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
12438 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
12439+m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
12440 m4_require([_LT_CMD_RELOAD])dnl
12441 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
12442+m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
12443 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
12444 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
12445+m4_require([_LT_WITH_SYSROOT])dnl
12446
12447 _LT_CONFIG_LIBTOOL_INIT([
12448 # See if we are running on zsh, and set the options which allow our
12449@@ -199,7 +205,7 @@ aix3*)
12450 esac
12451
12452 # Global variables:
12453-ofile=libtool
12454+ofile=${host_alias}-libtool
12455 can_build_shared=yes
12456
12457 # All known linkers require a `.a' archive for static linking (except MSVC,
12458@@ -632,7 +638,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
12459 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
12460 configured by $[0], generated by m4_PACKAGE_STRING.
12461
12462-Copyright (C) 2009 Free Software Foundation, Inc.
12463+Copyright (C) 2010 Free Software Foundation, Inc.
12464 This config.lt script is free software; the Free Software Foundation
12465 gives unlimited permision to copy, distribute and modify it."
12466
12467@@ -746,15 +752,12 @@ _LT_EOF
12468 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12469 # text mode, it properly converts lines to CR/LF. This bash problem
12470 # is reportedly fixed, but why not run on old versions too?
12471- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12472- || (rm -f "$cfgfile"; exit 1)
12473+ sed '$q' "$ltmain" >> "$cfgfile" \
12474+ || (rm -f "$cfgfile"; exit 1)
12475
12476- _LT_PROG_XSI_SHELLFNS
12477+ _LT_PROG_REPLACE_SHELLFNS
12478
12479- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12480- || (rm -f "$cfgfile"; exit 1)
12481-
12482- mv -f "$cfgfile" "$ofile" ||
12483+ mv -f "$cfgfile" "$ofile" ||
12484 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12485 chmod +x "$ofile"
12486 ],
12487@@ -980,6 +983,8 @@ _LT_EOF
12488 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
12489 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
12490 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
12491+ echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
12492+ $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
12493 cat > conftest.c << _LT_EOF
12494 int main() { return 0;}
12495 _LT_EOF
12496@@ -1069,30 +1074,41 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
12497 fi
12498 ])
12499
12500-# _LT_SYS_MODULE_PATH_AIX
12501-# -----------------------
12502+# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
12503+# ----------------------------------
12504 # Links a minimal program and checks the executable
12505 # for the system default hardcoded library path. In most cases,
12506 # this is /usr/lib:/lib, but when the MPI compilers are used
12507 # the location of the communication and MPI libs are included too.
12508 # If we don't find anything, use the default library path according
12509 # to the aix ld manual.
12510+# Store the results from the different compilers for each TAGNAME.
12511+# Allow to override them for all tags through lt_cv_aix_libpath.
12512 m4_defun([_LT_SYS_MODULE_PATH_AIX],
12513 [m4_require([_LT_DECL_SED])dnl
12514-AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM])],[
12515-lt_aix_libpath_sed='
12516- /Import File Strings/,/^$/ {
12517- /^0/ {
12518- s/^0 *\(.*\)$/\1/
12519- p
12520- }
12521- }'
12522-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12523-# Check for a 64-bit object if we didn't find anything.
12524-if test -z "$aix_libpath"; then
12525- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12526-fi],[])
12527-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12528+if test "${lt_cv_aix_libpath+set}" = set; then
12529+ aix_libpath=$lt_cv_aix_libpath
12530+else
12531+ AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
12532+ [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
12533+ lt_aix_libpath_sed='[
12534+ /Import File Strings/,/^$/ {
12535+ /^0/ {
12536+ s/^0 *\([^ ]*\) *$/\1/
12537+ p
12538+ }
12539+ }]'
12540+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12541+ # Check for a 64-bit object if we didn't find anything.
12542+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
12543+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12544+ fi],[])
12545+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
12546+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
12547+ fi
12548+ ])
12549+ aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
12550+fi
12551 ])# _LT_SYS_MODULE_PATH_AIX
12552
12553
12554@@ -1117,7 +1133,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12555
12556 AC_MSG_CHECKING([how to print strings])
12557 # Test print first, because it will be a builtin if present.
12558-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12559+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
12560 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12561 ECHO='print -r --'
12562 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12563@@ -1161,6 +1177,39 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
12564 ])# _LT_PROG_ECHO_BACKSLASH
12565
12566
12567+# _LT_WITH_SYSROOT
12568+# ----------------
12569+AC_DEFUN([_LT_WITH_SYSROOT],
12570+[AC_MSG_CHECKING([for sysroot])
12571+AC_ARG_WITH([libtool-sysroot],
12572+[ --with-libtool-sysroot[=DIR] Search for dependent libraries within DIR
12573+ (or the compiler's sysroot if not specified).],
12574+[], [with_libtool_sysroot=no])
12575+
12576+dnl lt_sysroot will always be passed unquoted. We quote it here
12577+dnl in case the user passed a directory name.
12578+lt_sysroot=
12579+case ${with_libtool_sysroot} in #(
12580+ yes)
12581+ if test "$GCC" = yes; then
12582+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12583+ fi
12584+ ;; #(
12585+ /*)
12586+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
12587+ ;; #(
12588+ no|'')
12589+ ;; #(
12590+ *)
12591+ AC_MSG_RESULT([${with_libtool_sysroot}])
12592+ AC_MSG_ERROR([The sysroot must be an absolute path.])
12593+ ;;
12594+esac
12595+
12596+ AC_MSG_RESULT([${lt_sysroot:-no}])
12597+_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
12598+[dependent libraries, and in which our libraries should be installed.])])
12599+
12600 # _LT_ENABLE_LOCK
12601 # ---------------
12602 m4_defun([_LT_ENABLE_LOCK],
Patrick Williams213cb262021-08-07 19:21:33 -050012603@@ -1320,6 +1369,51 @@ need_locks="$enable_libtool_lock"
Andrew Geissler82c905d2020-04-13 13:39:40 -050012604 ])# _LT_ENABLE_LOCK
12605
12606
12607+# _LT_PROG_AR
12608+# -----------
12609+m4_defun([_LT_PROG_AR],
12610+[AC_CHECK_TOOLS(AR, [ar], false)
Patrick Williams213cb262021-08-07 19:21:33 -050012611+ touch conftest.c
12612+ $AR $plugin_option rc conftest.a conftest.c
12613+ if test "$?" != 0; then
12614+ AC_MSG_WARN([Failed: $AR $plugin_option rc])
12615+ else
12616+ AR="$AR $plugin_option"
12617+ fi
12618+ rm -f conftest.*
Andrew Geissler82c905d2020-04-13 13:39:40 -050012619+: ${AR=ar}
12620+: ${AR_FLAGS=cru}
12621+_LT_DECL([], [AR], [1], [The archiver])
12622+_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
12623+
12624+AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
12625+ [lt_cv_ar_at_file=no
12626+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
12627+ [echo conftest.$ac_objext > conftest.lst
12628+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
12629+ AC_TRY_EVAL([lt_ar_try])
12630+ if test "$ac_status" -eq 0; then
12631+ # Ensure the archiver fails upon bogus file names.
12632+ rm -f conftest.$ac_objext libconftest.a
12633+ AC_TRY_EVAL([lt_ar_try])
12634+ if test "$ac_status" -ne 0; then
12635+ lt_cv_ar_at_file=@
12636+ fi
12637+ fi
12638+ rm -f conftest.* libconftest.a
12639+ ])
12640+ ])
12641+
12642+if test "x$lt_cv_ar_at_file" = xno; then
12643+ archiver_list_spec=
12644+else
12645+ archiver_list_spec=$lt_cv_ar_at_file
12646+fi
12647+_LT_DECL([], [archiver_list_spec], [1],
12648+ [How to feed a file listing to the archiver])
12649+])# _LT_PROG_AR
12650+
12651+
12652 # _LT_CMD_OLD_ARCHIVE
12653 # -------------------
12654 m4_defun([_LT_CMD_OLD_ARCHIVE],
Patrick Williams213cb262021-08-07 19:21:33 -050012655@@ -1336,23 +1430,7 @@ for plugin in $plugin_names; do
12656 fi
12657 done
12658
12659-AC_CHECK_TOOL(AR, ar, false)
Andrew Geissler82c905d2020-04-13 13:39:40 -050012660-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -050012661-if test -n "$plugin_option"; then
12662- if $AR --help 2>&1 | grep -q "\--plugin"; then
12663- touch conftest.c
12664- $AR $plugin_option rc conftest.a conftest.c
12665- if test "$?" != 0; then
12666- AC_MSG_WARN([Failed: $AR $plugin_option rc])
12667- else
12668- AR="$AR $plugin_option"
12669- fi
12670- rm -f conftest.*
12671- fi
12672-fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050012673-test -z "$AR_FLAGS" && AR_FLAGS=cru
12674-_LT_DECL([], [AR], [1], [The archiver])
12675-_LT_DECL([], [AR_FLAGS], [1])
Patrick Williams213cb262021-08-07 19:21:33 -050012676+_LT_PROG_AR
Andrew Geissler82c905d2020-04-13 13:39:40 -050012677
12678 AC_CHECK_TOOL(STRIP, strip, :)
12679 test -z "$STRIP" && STRIP=:
Patrick Williams213cb262021-08-07 19:21:33 -050012680@@ -1653,7 +1731,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050012681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12682 lt_status=$lt_dlunknown
12683 cat > conftest.$ac_ext <<_LT_EOF
12684-[#line __oline__ "configure"
12685+[#line $LINENO "configure"
12686 #include "confdefs.h"
12687
12688 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -050012689@@ -1697,10 +1775,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050012690 /* When -fvisbility=hidden is used, assume the code has been annotated
12691 correspondingly for the symbols needed. */
12692 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12693-void fnord () __attribute__((visibility("default")));
12694+int fnord () __attribute__((visibility("default")));
12695 #endif
12696
12697-void fnord () { int i=42; }
12698+int fnord () { return 42; }
12699 int main ()
12700 {
12701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -050012702@@ -2240,8 +2318,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050012703 need_version=no
12704 need_lib_prefix=no
12705
12706- case $GCC,$host_os in
12707- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12708+ case $GCC,$cc_basename in
12709+ yes,*)
12710+ # gcc
12711 library_names_spec='$libname.dll.a'
12712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12713 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -050012714@@ -2274,13 +2353,71 @@ m4_if([$1], [],[
Andrew Geissler82c905d2020-04-13 13:39:40 -050012715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
12716 ;;
12717 esac
12718+ dynamic_linker='Win32 ld.exe'
12719+ ;;
12720+
12721+ *,cl*)
12722+ # Native MSVC
12723+ libname_spec='$name'
12724+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
12725+ library_names_spec='${libname}.dll.lib'
12726+
12727+ case $build_os in
12728+ mingw*)
12729+ sys_lib_search_path_spec=
12730+ lt_save_ifs=$IFS
12731+ IFS=';'
12732+ for lt_path in $LIB
12733+ do
12734+ IFS=$lt_save_ifs
12735+ # Let DOS variable expansion print the short 8.3 style file name.
12736+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12737+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12738+ done
12739+ IFS=$lt_save_ifs
12740+ # Convert to MSYS style.
12741+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
12742+ ;;
12743+ cygwin*)
12744+ # Convert to unix form, then to dos form, then back to unix form
12745+ # but this time dos style (no spaces!) so that the unix form looks
12746+ # like /cygdrive/c/PROGRA~1:/cygdr...
12747+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12748+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12749+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12750+ ;;
12751+ *)
12752+ sys_lib_search_path_spec="$LIB"
12753+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
12754+ # It is most probably a Windows format PATH.
12755+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12756+ else
12757+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12758+ fi
12759+ # FIXME: find the short name or the path components, as spaces are
12760+ # common. (e.g. "Program Files" -> "PROGRA~1")
12761+ ;;
12762+ esac
12763+
12764+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
12765+ postinstall_cmds='base_file=`basename \${file}`~
12766+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12767+ dldir=$destdir/`dirname \$dlpath`~
12768+ test -d \$dldir || mkdir -p \$dldir~
12769+ $install_prog $dir/$dlname \$dldir/$dlname'
12770+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12771+ dlpath=$dir/\$dldll~
12772+ $RM \$dlpath'
12773+ shlibpath_overrides_runpath=yes
12774+ dynamic_linker='Win32 link.exe'
12775 ;;
12776
12777 *)
12778+ # Assume MSVC wrapper
12779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
12780+ dynamic_linker='Win32 ld.exe'
12781 ;;
12782 esac
12783- dynamic_linker='Win32 ld.exe'
12784 # FIXME: first we should search . and the directory the executable is in
12785 shlibpath_var=PATH
12786 ;;
Patrick Williams213cb262021-08-07 19:21:33 -050012787@@ -2362,7 +2499,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050012788 soname_spec='${libname}${release}${shared_ext}$major'
12789 shlibpath_var=LIBRARY_PATH
12790 shlibpath_overrides_runpath=yes
12791- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12792+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12793 hardcode_into_libs=yes
12794 ;;
12795
Patrick Williams213cb262021-08-07 19:21:33 -050012796@@ -2970,6 +3107,11 @@ case $reload_flag in
Andrew Geissler82c905d2020-04-13 13:39:40 -050012797 esac
12798 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12799 case $host_os in
12800+ cygwin* | mingw* | pw32* | cegcc*)
12801+ if test "$GCC" != yes; then
12802+ reload_cmds=false
12803+ fi
12804+ ;;
12805 darwin*)
12806 if test "$GCC" = yes; then
12807 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Patrick Williams213cb262021-08-07 19:21:33 -050012808@@ -3036,7 +3178,8 @@ mingw* | pw32*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050012809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12810 lt_cv_file_magic_cmd='func_win32_libid'
12811 else
12812- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12813+ # Keep this pattern in sync with the one in func_win32_libid.
12814+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12815 lt_cv_file_magic_cmd='$OBJDUMP -f'
12816 fi
12817 ;;
Patrick Williams213cb262021-08-07 19:21:33 -050012818@@ -3187,6 +3330,21 @@ tpf*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050012819 ;;
12820 esac
12821 ])
12822+
12823+file_magic_glob=
12824+want_nocaseglob=no
12825+if test "$build" = "$host"; then
12826+ case $host_os in
12827+ mingw* | pw32*)
12828+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12829+ want_nocaseglob=yes
12830+ else
12831+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
12832+ fi
12833+ ;;
12834+ esac
12835+fi
12836+
12837 file_magic_cmd=$lt_cv_file_magic_cmd
12838 deplibs_check_method=$lt_cv_deplibs_check_method
12839 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -050012840@@ -3194,7 +3352,11 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler82c905d2020-04-13 13:39:40 -050012841 _LT_DECL([], [deplibs_check_method], [1],
12842 [Method to check whether dependent libraries are shared objects])
12843 _LT_DECL([], [file_magic_cmd], [1],
12844- [Command to use when deplibs_check_method == "file_magic"])
12845+ [Command to use when deplibs_check_method = "file_magic"])
12846+_LT_DECL([], [file_magic_glob], [1],
12847+ [How to find potential files when deplibs_check_method = "file_magic"])
12848+_LT_DECL([], [want_nocaseglob], [1],
12849+ [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
12850 ])# _LT_CHECK_MAGIC_METHOD
12851
12852
Patrick Williams213cb262021-08-07 19:21:33 -050012853@@ -3297,6 +3459,67 @@ dnl aclocal-1.4 backwards compatibility:
Andrew Geissler82c905d2020-04-13 13:39:40 -050012854 dnl AC_DEFUN([AM_PROG_NM], [])
12855 dnl AC_DEFUN([AC_PROG_NM], [])
12856
12857+# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
12858+# --------------------------------
12859+# how to determine the name of the shared library
12860+# associated with a specific link library.
12861+# -- PORTME fill in with the dynamic library characteristics
12862+m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
12863+[m4_require([_LT_DECL_EGREP])
12864+m4_require([_LT_DECL_OBJDUMP])
12865+m4_require([_LT_DECL_DLLTOOL])
12866+AC_CACHE_CHECK([how to associate runtime and link libraries],
12867+lt_cv_sharedlib_from_linklib_cmd,
12868+[lt_cv_sharedlib_from_linklib_cmd='unknown'
12869+
12870+case $host_os in
12871+cygwin* | mingw* | pw32* | cegcc*)
12872+ # two different shell functions defined in ltmain.sh
12873+ # decide which to use based on capabilities of $DLLTOOL
12874+ case `$DLLTOOL --help 2>&1` in
12875+ *--identify-strict*)
12876+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12877+ ;;
12878+ *)
12879+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12880+ ;;
12881+ esac
12882+ ;;
12883+*)
12884+ # fallback: assume linklib IS sharedlib
12885+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12886+ ;;
12887+esac
12888+])
12889+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12890+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12891+
12892+_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
12893+ [Command to associate shared and link libraries])
12894+])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
12895+
12896+
12897+# _LT_PATH_MANIFEST_TOOL
12898+# ----------------------
12899+# locate the manifest tool
12900+m4_defun([_LT_PATH_MANIFEST_TOOL],
12901+[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
12902+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12903+AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
12904+ [lt_cv_path_mainfest_tool=no
12905+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
12906+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12907+ cat conftest.err >&AS_MESSAGE_LOG_FD
12908+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12909+ lt_cv_path_mainfest_tool=yes
12910+ fi
12911+ rm -f conftest*])
12912+if test "x$lt_cv_path_mainfest_tool" != xyes; then
12913+ MANIFEST_TOOL=:
12914+fi
12915+_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
12916+])# _LT_PATH_MANIFEST_TOOL
12917+
12918
12919 # LT_LIB_M
12920 # --------
Patrick Williams213cb262021-08-07 19:21:33 -050012921@@ -3423,8 +3646,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050012922 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12923
12924 # Transform an extracted symbol line into symbol name and symbol address
12925-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
12926-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'"
12927+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
12928+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'"
12929
12930 # Handle CRLF in mingw tool chain
12931 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -050012932@@ -3460,6 +3683,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler82c905d2020-04-13 13:39:40 -050012933 else
12934 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12935 fi
12936+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12937
12938 # Check to see that the pipe works correctly.
12939 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -050012940@@ -3493,6 +3717,18 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050012941 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12942 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12943 cat <<_LT_EOF > conftest.$ac_ext
12944+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12945+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12946+/* DATA imports from DLLs on WIN32 con't be const, because runtime
12947+ relocations are performed -- see ld's documentation on pseudo-relocs. */
12948+# define LT@&t@_DLSYM_CONST
12949+#elif defined(__osf__)
12950+/* This system does not cope well with relocations in const data. */
12951+# define LT@&t@_DLSYM_CONST
12952+#else
12953+# define LT@&t@_DLSYM_CONST const
12954+#endif
12955+
12956 #ifdef __cplusplus
12957 extern "C" {
12958 #endif
Patrick Williams213cb262021-08-07 19:21:33 -050012959@@ -3504,7 +3740,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050012960 cat <<_LT_EOF >> conftest.$ac_ext
12961
12962 /* The mapping between symbol names and symbols. */
12963-const struct {
12964+LT@&t@_DLSYM_CONST struct {
12965 const char *name;
12966 void *address;
12967 }
Patrick Williams213cb262021-08-07 19:21:33 -050012968@@ -3530,15 +3766,15 @@ static const void *lt_preloaded_setup() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050012969 _LT_EOF
12970 # Now try linking the two files.
12971 mv conftest.$ac_objext conftstm.$ac_objext
12972- lt_save_LIBS="$LIBS"
12973- lt_save_CFLAGS="$CFLAGS"
12974+ lt_globsym_save_LIBS=$LIBS
12975+ lt_globsym_save_CFLAGS=$CFLAGS
12976 LIBS="conftstm.$ac_objext"
12977 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
12978 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
12979 pipe_works=yes
12980 fi
12981- LIBS="$lt_save_LIBS"
12982- CFLAGS="$lt_save_CFLAGS"
12983+ LIBS=$lt_globsym_save_LIBS
12984+ CFLAGS=$lt_globsym_save_CFLAGS
12985 else
12986 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
12987 fi
Patrick Williams213cb262021-08-07 19:21:33 -050012988@@ -3571,6 +3807,13 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050012989 AC_MSG_RESULT(ok)
12990 fi
12991
12992+# Response file support.
12993+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12994+ nm_file_list_spec='@'
12995+elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
12996+ nm_file_list_spec='@'
12997+fi
12998+
12999 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
13000 [Take the output of nm and produce a listing of raw symbols and C names])
13001 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
Patrick Williams213cb262021-08-07 19:21:33 -050013002@@ -3581,6 +3824,8 @@ _LT_DECL([global_symbol_to_c_name_address],
Andrew Geissler82c905d2020-04-13 13:39:40 -050013003 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
13004 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
13005 [Transform the output of nm in a C name address pair when lib prefix is needed])
13006+_LT_DECL([], [nm_file_list_spec], [1],
13007+ [Specify filename containing input files for $NM])
13008 ]) # _LT_CMD_GLOBAL_SYMBOLS
13009
13010
Patrick Williams213cb262021-08-07 19:21:33 -050013011@@ -3592,7 +3837,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)=
Andrew Geissler82c905d2020-04-13 13:39:40 -050013012 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
13013 _LT_TAGVAR(lt_prog_compiler_static, $1)=
13014
13015-AC_MSG_CHECKING([for $compiler option to produce PIC])
13016 m4_if([$1], [CXX], [
13017 # C++ specific cases for pic, static, wl, etc.
13018 if test "$GXX" = yes; then
Patrick Williams213cb262021-08-07 19:21:33 -050013019@@ -3698,6 +3942,12 @@ m4_if([$1], [CXX], [
Andrew Geissler82c905d2020-04-13 13:39:40 -050013020 ;;
13021 esac
13022 ;;
13023+ mingw* | cygwin* | os2* | pw32* | cegcc*)
13024+ # This hack is so that the source file can tell whether it is being
13025+ # built for inclusion in a dll (and should export symbols for example).
13026+ m4_if([$1], [GCJ], [],
13027+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
13028+ ;;
13029 dgux*)
13030 case $cc_basename in
13031 ec++*)
Patrick Williams213cb262021-08-07 19:21:33 -050013032@@ -3850,7 +4100,7 @@ m4_if([$1], [CXX], [
Andrew Geissler82c905d2020-04-13 13:39:40 -050013033 ;;
13034 solaris*)
13035 case $cc_basename in
13036- CC*)
13037+ CC* | sunCC*)
13038 # Sun C++ 4.2, 5.x and Centerline C++
13039 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
13040 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Patrick Williams213cb262021-08-07 19:21:33 -050013041@@ -4073,6 +4323,12 @@ m4_if([$1], [CXX], [
Andrew Geissler82c905d2020-04-13 13:39:40 -050013042 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
13043 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
13044 ;;
13045+ nagfor*)
13046+ # NAG Fortran compiler
13047+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
13048+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
13049+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
13050+ ;;
13051 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13052 # Portland Group compilers (*not* the Pentium gcc compiler,
13053 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -050013054@@ -4135,7 +4391,7 @@ m4_if([$1], [CXX], [
Andrew Geissler82c905d2020-04-13 13:39:40 -050013055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
13056 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
13057 case $cc_basename in
13058- f77* | f90* | f95*)
13059+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13060 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
13061 *)
13062 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -050013063@@ -4192,9 +4448,11 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -050013064 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
13065 ;;
13066 esac
13067-AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
13068-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
13069- [How to pass a linker flag through the compiler])
13070+
13071+AC_CACHE_CHECK([for $compiler option to produce PIC],
13072+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
13073+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
13074+_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
13075
13076 #
13077 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -050013078@@ -4213,6 +4471,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050013079 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
13080 [Additional compiler flags for building library objects])
13081
13082+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
13083+ [How to pass a linker flag through the compiler])
13084 #
13085 # Check to make sure the static flag actually works.
13086 #
Patrick Williams213cb262021-08-07 19:21:33 -050013087@@ -4233,6 +4493,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
Andrew Geissler82c905d2020-04-13 13:39:40 -050013088 m4_defun([_LT_LINKER_SHLIBS],
13089 [AC_REQUIRE([LT_PATH_LD])dnl
13090 AC_REQUIRE([LT_PATH_NM])dnl
13091+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
13092 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
13093 m4_require([_LT_DECL_EGREP])dnl
13094 m4_require([_LT_DECL_SED])dnl
Patrick Williams213cb262021-08-07 19:21:33 -050013095@@ -4241,6 +4502,7 @@ m4_require([_LT_TAG_COMPILER])dnl
Andrew Geissler82c905d2020-04-13 13:39:40 -050013096 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
13097 m4_if([$1], [CXX], [
13098 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13099+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
13100 case $host_os in
13101 aix[[4-9]]*)
13102 # If we're using GNU nm, then we don't want the "-C" option.
Patrick Williams213cb262021-08-07 19:21:33 -050013103@@ -4255,15 +4517,20 @@ m4_if([$1], [CXX], [
Andrew Geissler82c905d2020-04-13 13:39:40 -050013104 ;;
13105 pw32*)
13106 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
13107- ;;
13108+ ;;
13109 cygwin* | mingw* | cegcc*)
13110- _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'
13111- ;;
13112+ case $cc_basename in
13113+ cl*) ;;
13114+ *)
13115+ _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'
13116+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
13117+ ;;
13118+ esac
13119+ ;;
13120 *)
13121 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13122- ;;
13123+ ;;
13124 esac
13125- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
13126 ], [
13127 runpath_var=
13128 _LT_TAGVAR(allow_undefined_flag, $1)=
Patrick Williams213cb262021-08-07 19:21:33 -050013129@@ -4431,7 +4698,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013130 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
13131 _LT_TAGVAR(always_export_symbols, $1)=no
13132 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
13133- _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'
13134+ _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'
13135+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
13136
13137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13138 _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'
Patrick Williams213cb262021-08-07 19:21:33 -050013139@@ -4530,12 +4798,12 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013140 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
13141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
13142 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
13143- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13144+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13145 if test "x$supports_anon_versioning" = xyes; then
13146 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
13147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13148 echo "local: *; };" >> $output_objdir/$libname.ver~
13149- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13150+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13151 fi
13152 ;;
13153 esac
Patrick Williams213cb262021-08-07 19:21:33 -050013154@@ -4549,8 +4817,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013155 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13156 wlarc=
13157 else
13158- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159- _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'
13160+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161+ _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'
13162 fi
13163 ;;
13164
Patrick Williams213cb262021-08-07 19:21:33 -050013165@@ -4568,8 +4836,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013166
13167 _LT_EOF
13168 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13169- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13170- _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'
13171+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13172+ _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'
13173 else
13174 _LT_TAGVAR(ld_shlibs, $1)=no
13175 fi
Patrick Williams213cb262021-08-07 19:21:33 -050013176@@ -4615,8 +4883,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013177
13178 *)
13179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13180- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13181- _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'
13182+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13183+ _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'
13184 else
13185 _LT_TAGVAR(ld_shlibs, $1)=no
13186 fi
Patrick Williams213cb262021-08-07 19:21:33 -050013187@@ -4746,7 +5014,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013188 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
13189 # Determine the default libpath from the value encoded in an
13190 # empty executable.
13191- _LT_SYS_MODULE_PATH_AIX
13192+ _LT_SYS_MODULE_PATH_AIX([$1])
13193 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
13194 _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"
13195 else
Patrick Williams213cb262021-08-07 19:21:33 -050013196@@ -4757,7 +5025,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013197 else
13198 # Determine the default libpath from the value encoded in an
13199 # empty executable.
13200- _LT_SYS_MODULE_PATH_AIX
13201+ _LT_SYS_MODULE_PATH_AIX([$1])
13202 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
13203 # Warning - without using the other run time loading flags,
13204 # -berok will link without error, but may produce a broken library.
Patrick Williams213cb262021-08-07 19:21:33 -050013205@@ -4801,20 +5069,63 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013206 # Microsoft Visual C++.
13207 # hardcode_libdir_flag_spec is actually meaningless, as there is
13208 # no search path for DLLs.
13209- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
13210- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
13211- # Tell ltmain to make .lib files, not .a files.
13212- libext=lib
13213- # Tell ltmain to make .dll files, not .so files.
13214- shrext_cmds=".dll"
13215- # FIXME: Setting linknames here is a bad hack.
13216- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13217- # The linker will automatically build a .lib file if we build a DLL.
13218- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
13219- # FIXME: Should let the user specify the lib program.
13220- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
13221- _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
13222- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
13223+ case $cc_basename in
13224+ cl*)
13225+ # Native MSVC
13226+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
13227+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
13228+ _LT_TAGVAR(always_export_symbols, $1)=yes
13229+ _LT_TAGVAR(file_list_spec, $1)='@'
13230+ # Tell ltmain to make .lib files, not .a files.
13231+ libext=lib
13232+ # Tell ltmain to make .dll files, not .so files.
13233+ shrext_cmds=".dll"
13234+ # FIXME: Setting linknames here is a bad hack.
13235+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13236+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13237+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13238+ else
13239+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13240+ fi~
13241+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13242+ linknames='
13243+ # The linker will not automatically build a static lib if we build a DLL.
13244+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
13245+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
13246+ _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'
13247+ # Don't use ranlib
13248+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
13249+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
13250+ lt_tool_outputfile="@TOOL_OUTPUT@"~
13251+ case $lt_outputfile in
13252+ *.exe|*.EXE) ;;
13253+ *)
13254+ lt_outputfile="$lt_outputfile.exe"
13255+ lt_tool_outputfile="$lt_tool_outputfile.exe"
13256+ ;;
13257+ esac~
13258+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13259+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13260+ $RM "$lt_outputfile.manifest";
13261+ fi'
13262+ ;;
13263+ *)
13264+ # Assume MSVC wrapper
13265+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
13266+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
13267+ # Tell ltmain to make .lib files, not .a files.
13268+ libext=lib
13269+ # Tell ltmain to make .dll files, not .so files.
13270+ shrext_cmds=".dll"
13271+ # FIXME: Setting linknames here is a bad hack.
13272+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13273+ # The linker will automatically build a .lib file if we build a DLL.
13274+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
13275+ # FIXME: Should let the user specify the lib program.
13276+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
13277+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
13278+ ;;
13279+ esac
13280 ;;
13281
13282 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -050013283@@ -4848,7 +5159,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013284
13285 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13286 freebsd* | dragonfly*)
13287- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13288+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13289 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
13290 _LT_TAGVAR(hardcode_direct, $1)=yes
13291 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Patrick Williams213cb262021-08-07 19:21:33 -050013292@@ -4856,7 +5167,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013293
13294 hpux9*)
13295 if test "$GCC" = yes; then
13296- _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'
13297+ _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'
13298 else
13299 _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'
13300 fi
Patrick Williams213cb262021-08-07 19:21:33 -050013301@@ -4872,7 +5183,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013302
13303 hpux10*)
13304 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13305- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13306+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13307 else
13308 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13309 fi
Patrick Williams213cb262021-08-07 19:21:33 -050013310@@ -4896,10 +5207,10 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013311 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13312 ;;
13313 ia64*)
13314- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13315+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13316 ;;
13317 *)
13318- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13319+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13320 ;;
13321 esac
13322 else
Patrick Williams213cb262021-08-07 19:21:33 -050013323@@ -4946,16 +5257,31 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013324
13325 irix5* | irix6* | nonstopux*)
13326 if test "$GCC" = yes; then
13327- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13328+ _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'
13329 # Try to use the -exported_symbol ld option, if it does not
13330 # work, assume that -exports_file does not work either and
13331 # implicitly export all symbols.
13332- save_LDFLAGS="$LDFLAGS"
13333- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13334- AC_LINK_IFELSE([AC_LANG_SOURCE([int foo(void) {}])],
13335- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13336- )
13337- LDFLAGS="$save_LDFLAGS"
13338+ # This should be the same for all languages, so no per-tag cache variable.
13339+ AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
13340+ [lt_cv_irix_exported_symbol],
13341+ [save_LDFLAGS="$LDFLAGS"
13342+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13343+ AC_LINK_IFELSE(
13344+ [AC_LANG_SOURCE(
13345+ [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
13346+ [C++], [[int foo (void) { return 0; }]],
13347+ [Fortran 77], [[
13348+ subroutine foo
13349+ end]],
13350+ [Fortran], [[
13351+ subroutine foo
13352+ end]])])],
13353+ [lt_cv_irix_exported_symbol=yes],
13354+ [lt_cv_irix_exported_symbol=no])
13355+ LDFLAGS="$save_LDFLAGS"])
13356+ if test "$lt_cv_irix_exported_symbol" = yes; then
13357+ _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'
13358+ fi
13359 else
13360 _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'
13361 _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'
Patrick Williams213cb262021-08-07 19:21:33 -050013362@@ -5040,7 +5366,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013363 osf4* | osf5*) # as osf3* with the addition of -msym flag
13364 if test "$GCC" = yes; then
13365 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
13366- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13367+ _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'
13368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
13369 else
13370 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -050013371@@ -5059,9 +5385,9 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050013372 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
13373 if test "$GCC" = yes; then
13374 wlarc='${wl}'
13375- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13376+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13377 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13378- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13379+ $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'
13380 else
13381 case `$CC -V 2>&1` in
13382 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -050013383@@ -5333,8 +5659,6 @@ _LT_TAGDECL([], [inherit_rpath], [0],
Andrew Geissler82c905d2020-04-13 13:39:40 -050013384 to runtime path list])
13385 _LT_TAGDECL([], [link_all_deplibs], [0],
13386 [Whether libtool must link a program against all its dependency libraries])
13387-_LT_TAGDECL([], [fix_srcfile_path], [1],
13388- [Fix the shell variable $srcfile for the compiler])
13389 _LT_TAGDECL([], [always_export_symbols], [0],
13390 [Set to "yes" if exported symbols are required])
13391 _LT_TAGDECL([], [export_symbols_cmds], [2],
Patrick Williams213cb262021-08-07 19:21:33 -050013392@@ -5345,6 +5669,8 @@ _LT_TAGDECL([], [include_expsyms], [1],
Andrew Geissler82c905d2020-04-13 13:39:40 -050013393 [Symbols that must always be exported])
13394 _LT_TAGDECL([], [prelink_cmds], [2],
13395 [Commands necessary for linking programs (against libraries) with templates])
13396+_LT_TAGDECL([], [postlink_cmds], [2],
13397+ [Commands necessary for finishing linking programs])
13398 _LT_TAGDECL([], [file_list_spec], [1],
13399 [Specify filename containing input files])
13400 dnl FIXME: Not yet implemented
Patrick Williams213cb262021-08-07 19:21:33 -050013401@@ -5446,6 +5772,7 @@ CC="$lt_save_CC"
Andrew Geissler82c905d2020-04-13 13:39:40 -050013402 m4_defun([_LT_LANG_CXX_CONFIG],
13403 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
13404 m4_require([_LT_DECL_EGREP])dnl
13405+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
13406 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13407 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13408 (test "X$CXX" != "Xg++"))) ; then
Patrick Williams213cb262021-08-07 19:21:33 -050013409@@ -5507,6 +5834,7 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013410
13411 # Allow CC to be a program name with arguments.
13412 lt_save_CC=$CC
13413+ lt_save_CFLAGS=$CFLAGS
13414 lt_save_LD=$LD
13415 lt_save_GCC=$GCC
13416 GCC=$GXX
Patrick Williams213cb262021-08-07 19:21:33 -050013417@@ -5524,6 +5852,7 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013418 fi
13419 test -z "${LDCXX+set}" || LD=$LDCXX
13420 CC=${CXX-"c++"}
13421+ CFLAGS=$CXXFLAGS
13422 compiler=$CC
13423 _LT_TAGVAR(compiler, $1)=$CC
13424 _LT_CC_BASENAME([$compiler])
Patrick Williams213cb262021-08-07 19:21:33 -050013425@@ -5687,7 +6016,7 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013426 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
13427 # Determine the default libpath from the value encoded in an empty
13428 # executable.
13429- _LT_SYS_MODULE_PATH_AIX
13430+ _LT_SYS_MODULE_PATH_AIX([$1])
13431 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
13432
13433 _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"
Patrick Williams213cb262021-08-07 19:21:33 -050013434@@ -5699,7 +6028,7 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013435 else
13436 # Determine the default libpath from the value encoded in an
13437 # empty executable.
13438- _LT_SYS_MODULE_PATH_AIX
13439+ _LT_SYS_MODULE_PATH_AIX([$1])
13440 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
13441 # Warning - without using the other run time loading flags,
13442 # -berok will link without error, but may produce a broken library.
Patrick Williams213cb262021-08-07 19:21:33 -050013443@@ -5741,29 +6070,75 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013444 ;;
13445
13446 cygwin* | mingw* | pw32* | cegcc*)
13447- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
13448- # as there is no search path for DLLs.
13449- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
13450- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
13451- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
13452- _LT_TAGVAR(always_export_symbols, $1)=no
13453- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
13454-
13455- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13456- _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'
13457- # If the export-symbols file already is a .def file (1st line
13458- # is EXPORTS), use it as is; otherwise, prepend...
13459- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13460- cp $export_symbols $output_objdir/$soname.def;
13461- else
13462- echo EXPORTS > $output_objdir/$soname.def;
13463- cat $export_symbols >> $output_objdir/$soname.def;
13464- fi~
13465- $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'
13466- else
13467- _LT_TAGVAR(ld_shlibs, $1)=no
13468- fi
13469- ;;
13470+ case $GXX,$cc_basename in
13471+ ,cl* | no,cl*)
13472+ # Native MSVC
13473+ # hardcode_libdir_flag_spec is actually meaningless, as there is
13474+ # no search path for DLLs.
13475+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
13476+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
13477+ _LT_TAGVAR(always_export_symbols, $1)=yes
13478+ _LT_TAGVAR(file_list_spec, $1)='@'
13479+ # Tell ltmain to make .lib files, not .a files.
13480+ libext=lib
13481+ # Tell ltmain to make .dll files, not .so files.
13482+ shrext_cmds=".dll"
13483+ # FIXME: Setting linknames here is a bad hack.
13484+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13485+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13486+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13487+ else
13488+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13489+ fi~
13490+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13491+ linknames='
13492+ # The linker will not automatically build a static lib if we build a DLL.
13493+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
13494+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
13495+ # Don't use ranlib
13496+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
13497+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
13498+ lt_tool_outputfile="@TOOL_OUTPUT@"~
13499+ case $lt_outputfile in
13500+ *.exe|*.EXE) ;;
13501+ *)
13502+ lt_outputfile="$lt_outputfile.exe"
13503+ lt_tool_outputfile="$lt_tool_outputfile.exe"
13504+ ;;
13505+ esac~
13506+ func_to_tool_file "$lt_outputfile"~
13507+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13508+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13509+ $RM "$lt_outputfile.manifest";
13510+ fi'
13511+ ;;
13512+ *)
13513+ # g++
13514+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
13515+ # as there is no search path for DLLs.
13516+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
13517+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
13518+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
13519+ _LT_TAGVAR(always_export_symbols, $1)=no
13520+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
13521+
13522+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13523+ _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'
13524+ # If the export-symbols file already is a .def file (1st line
13525+ # is EXPORTS), use it as is; otherwise, prepend...
13526+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13527+ cp $export_symbols $output_objdir/$soname.def;
13528+ else
13529+ echo EXPORTS > $output_objdir/$soname.def;
13530+ cat $export_symbols >> $output_objdir/$soname.def;
13531+ fi~
13532+ $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'
13533+ else
13534+ _LT_TAGVAR(ld_shlibs, $1)=no
13535+ fi
13536+ ;;
13537+ esac
13538+ ;;
13539 darwin* | rhapsody*)
13540 _LT_DARWIN_LINKER_FEATURES($1)
13541 ;;
Patrick Williams213cb262021-08-07 19:21:33 -050013542@@ -5838,7 +6213,7 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013543 ;;
13544 *)
13545 if test "$GXX" = yes; then
13546- _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'
13547+ _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'
13548 else
13549 # FIXME: insert proper C++ library support
13550 _LT_TAGVAR(ld_shlibs, $1)=no
Patrick Williams213cb262021-08-07 19:21:33 -050013551@@ -5909,10 +6284,10 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013552 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553 ;;
13554 ia64*)
13555- _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'
13556+ _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'
13557 ;;
13558 *)
13559- _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'
13560+ _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'
13561 ;;
13562 esac
13563 fi
Patrick Williams213cb262021-08-07 19:21:33 -050013564@@ -5953,9 +6328,9 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013565 *)
13566 if test "$GXX" = yes; then
13567 if test "$with_gnu_ld" = no; then
13568- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13569+ _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'
13570 else
13571- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13572+ _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'
13573 fi
13574 fi
13575 _LT_TAGVAR(link_all_deplibs, $1)=yes
Patrick Williams213cb262021-08-07 19:21:33 -050013576@@ -6025,20 +6400,20 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013577 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
13578 rm -rf $tpldir~
13579 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13580- compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13581+ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13582 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
13583 rm -rf $tpldir~
13584 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13585- $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13586+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13587 $RANLIB $oldlib'
13588 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
13589 rm -rf $tpldir~
13590 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13591- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13592+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13593 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
13594 rm -rf $tpldir~
13595 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13596- $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'
13597+ $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'
13598 ;;
13599 *) # Version 6 and above use weak symbols
13600 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
Patrick Williams213cb262021-08-07 19:21:33 -050013601@@ -6233,7 +6608,7 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013602 _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'
13603 ;;
13604 *)
13605- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13606+ _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'
13607 ;;
13608 esac
13609
Patrick Williams213cb262021-08-07 19:21:33 -050013610@@ -6279,7 +6654,7 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013611
13612 solaris*)
13613 case $cc_basename in
13614- CC*)
13615+ CC* | sunCC*)
13616 # Sun C++ 4.2, 5.x and Centerline C++
13617 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
13618 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
Patrick Williams213cb262021-08-07 19:21:33 -050013619@@ -6320,9 +6695,9 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013620 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13621 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
13622 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13623- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13624+ _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'
13625 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13626- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13627+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13628
13629 # Commands to make compiler produce verbose output that lists
13630 # what "hidden" libraries, object files and flags are used when
Patrick Williams213cb262021-08-07 19:21:33 -050013631@@ -6451,6 +6826,7 @@ if test "$_lt_caught_CXX_error" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013632 fi # test -n "$compiler"
13633
13634 CC=$lt_save_CC
13635+ CFLAGS=$lt_save_CFLAGS
13636 LDCXX=$LD
13637 LD=$lt_save_LD
13638 GCC=$lt_save_GCC
Patrick Williams213cb262021-08-07 19:21:33 -050013639@@ -6465,6 +6841,29 @@ AC_LANG_POP
Andrew Geissler82c905d2020-04-13 13:39:40 -050013640 ])# _LT_LANG_CXX_CONFIG
13641
13642
13643+# _LT_FUNC_STRIPNAME_CNF
13644+# ----------------------
13645+# func_stripname_cnf prefix suffix name
13646+# strip PREFIX and SUFFIX off of NAME.
13647+# PREFIX and SUFFIX must not contain globbing or regex special
13648+# characters, hashes, percent signs, but SUFFIX may contain a leading
13649+# dot (in which case that matches only a dot).
13650+#
13651+# This function is identical to the (non-XSI) version of func_stripname,
13652+# except this one can be used by m4 code that may be executed by configure,
13653+# rather than the libtool script.
13654+m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
13655+AC_REQUIRE([_LT_DECL_SED])
13656+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
13657+func_stripname_cnf ()
13658+{
13659+ case ${2} in
13660+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13661+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13662+ esac
13663+} # func_stripname_cnf
13664+])# _LT_FUNC_STRIPNAME_CNF
13665+
13666 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
13667 # ---------------------------------
13668 # Figure out "hidden" library dependencies from verbose
Patrick Williams213cb262021-08-07 19:21:33 -050013669@@ -6473,6 +6872,7 @@ AC_LANG_POP
Andrew Geissler82c905d2020-04-13 13:39:40 -050013670 # objects, libraries and library flags.
13671 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
13672 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
13673+AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
13674 # Dependencies to place before and after the object being linked:
13675 _LT_TAGVAR(predep_objects, $1)=
13676 _LT_TAGVAR(postdep_objects, $1)=
Patrick Williams213cb262021-08-07 19:21:33 -050013677@@ -6523,6 +6923,13 @@ public class foo {
Andrew Geissler82c905d2020-04-13 13:39:40 -050013678 };
13679 _LT_EOF
13680 ])
13681+
13682+_lt_libdeps_save_CFLAGS=$CFLAGS
13683+case "$CC $CFLAGS " in #(
13684+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13685+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13686+esac
13687+
13688 dnl Parse the compiler output and extract the necessary
13689 dnl objects, libraries and library flags.
13690 if AC_TRY_EVAL(ac_compile); then
Patrick Williams213cb262021-08-07 19:21:33 -050013691@@ -6534,7 +6941,7 @@ if AC_TRY_EVAL(ac_compile); then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013692 pre_test_object_deps_done=no
13693
13694 for p in `eval "$output_verbose_link_cmd"`; do
13695- case $p in
13696+ case ${prev}${p} in
13697
13698 -L* | -R* | -l*)
13699 # Some compilers place space between "-{L,R}" and the path.
Patrick Williams213cb262021-08-07 19:21:33 -050013700@@ -6543,13 +6950,22 @@ if AC_TRY_EVAL(ac_compile); then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013701 test $p = "-R"; then
13702 prev=$p
13703 continue
13704- else
13705- prev=
13706 fi
13707
13708+ # Expand the sysroot to ease extracting the directories later.
13709+ if test -z "$prev"; then
13710+ case $p in
13711+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13712+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13713+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13714+ esac
13715+ fi
13716+ case $p in
13717+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13718+ esac
13719 if test "$pre_test_object_deps_done" = no; then
13720- case $p in
13721- -L* | -R*)
13722+ case ${prev} in
13723+ -L | -R)
13724 # Internal compiler library paths should come after those
13725 # provided the user. The postdeps already come after the
13726 # user supplied libs so there is no need to process them.
Patrick Williams213cb262021-08-07 19:21:33 -050013727@@ -6569,8 +6985,10 @@ if AC_TRY_EVAL(ac_compile); then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013728 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
13729 fi
13730 fi
13731+ prev=
13732 ;;
13733
13734+ *.lto.$objext) ;; # Ignore GCC LTO objects
13735 *.$objext)
13736 # This assumes that the test object file only shows up
13737 # once in the compiler output.
Patrick Williams213cb262021-08-07 19:21:33 -050013738@@ -6606,6 +7024,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050013739 fi
13740
13741 $RM -f confest.$objext
13742+CFLAGS=$_lt_libdeps_save_CFLAGS
13743
13744 # PORTME: override above test on systems where it is broken
13745 m4_if([$1], [CXX],
Patrick Williams213cb262021-08-07 19:21:33 -050013746@@ -6642,7 +7061,7 @@ linux*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050013747
13748 solaris*)
13749 case $cc_basename in
13750- CC*)
13751+ CC* | sunCC*)
13752 # The more standards-conforming stlport4 library is
13753 # incompatible with the Cstd library. Avoid specifying
13754 # it if it's in CXXFLAGS. Ignore libCrun as
Patrick Williams213cb262021-08-07 19:21:33 -050013755@@ -6755,7 +7174,9 @@ if test "$_lt_disable_F77" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013756 # Allow CC to be a program name with arguments.
13757 lt_save_CC="$CC"
13758 lt_save_GCC=$GCC
13759+ lt_save_CFLAGS=$CFLAGS
13760 CC=${F77-"f77"}
13761+ CFLAGS=$FFLAGS
13762 compiler=$CC
13763 _LT_TAGVAR(compiler, $1)=$CC
13764 _LT_CC_BASENAME([$compiler])
Patrick Williams213cb262021-08-07 19:21:33 -050013765@@ -6809,6 +7230,7 @@ if test "$_lt_disable_F77" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013766
13767 GCC=$lt_save_GCC
13768 CC="$lt_save_CC"
13769+ CFLAGS="$lt_save_CFLAGS"
13770 fi # test "$_lt_disable_F77" != yes
13771
13772 AC_LANG_POP
Patrick Williams213cb262021-08-07 19:21:33 -050013773@@ -6885,7 +7307,9 @@ if test "$_lt_disable_FC" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013774 # Allow CC to be a program name with arguments.
13775 lt_save_CC="$CC"
13776 lt_save_GCC=$GCC
13777+ lt_save_CFLAGS=$CFLAGS
13778 CC=${FC-"f95"}
13779+ CFLAGS=$FCFLAGS
13780 compiler=$CC
13781 GCC=$ac_cv_fc_compiler_gnu
13782
Patrick Williams213cb262021-08-07 19:21:33 -050013783@@ -6941,7 +7365,8 @@ if test "$_lt_disable_FC" != yes; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050013784 fi # test -n "$compiler"
13785
13786 GCC=$lt_save_GCC
13787- CC="$lt_save_CC"
13788+ CC=$lt_save_CC
13789+ CFLAGS=$lt_save_CFLAGS
13790 fi # test "$_lt_disable_FC" != yes
13791
13792 AC_LANG_POP
Patrick Williams213cb262021-08-07 19:21:33 -050013793@@ -6978,10 +7403,12 @@ _LT_COMPILER_BOILERPLATE
Andrew Geissler82c905d2020-04-13 13:39:40 -050013794 _LT_LINKER_BOILERPLATE
13795
13796 # Allow CC to be a program name with arguments.
13797-lt_save_CC="$CC"
13798+lt_save_CC=$CC
13799+lt_save_CFLAGS=$CFLAGS
13800 lt_save_GCC=$GCC
13801 GCC=yes
13802 CC=${GCJ-"gcj"}
13803+CFLAGS=$GCJFLAGS
13804 compiler=$CC
13805 _LT_TAGVAR(compiler, $1)=$CC
13806 _LT_TAGVAR(LD, $1)="$LD"
Patrick Williams213cb262021-08-07 19:21:33 -050013807@@ -7012,7 +7439,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050013808 AC_LANG_RESTORE
13809
13810 GCC=$lt_save_GCC
13811-CC="$lt_save_CC"
13812+CC=$lt_save_CC
13813+CFLAGS=$lt_save_CFLAGS
13814 ])# _LT_LANG_GCJ_CONFIG
13815
13816
Patrick Williams213cb262021-08-07 19:21:33 -050013817@@ -7047,9 +7475,11 @@ _LT_LINKER_BOILERPLATE
Andrew Geissler82c905d2020-04-13 13:39:40 -050013818
13819 # Allow CC to be a program name with arguments.
13820 lt_save_CC="$CC"
13821+lt_save_CFLAGS=$CFLAGS
13822 lt_save_GCC=$GCC
13823 GCC=
13824 CC=${RC-"windres"}
13825+CFLAGS=
13826 compiler=$CC
13827 _LT_TAGVAR(compiler, $1)=$CC
13828 _LT_CC_BASENAME([$compiler])
Patrick Williams213cb262021-08-07 19:21:33 -050013829@@ -7062,7 +7492,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050013830
13831 GCC=$lt_save_GCC
13832 AC_LANG_RESTORE
13833-CC="$lt_save_CC"
13834+CC=$lt_save_CC
13835+CFLAGS=$lt_save_CFLAGS
13836 ])# _LT_LANG_RC_CONFIG
13837
13838
Patrick Williams213cb262021-08-07 19:21:33 -050013839@@ -7121,6 +7552,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
Andrew Geissler82c905d2020-04-13 13:39:40 -050013840 AC_SUBST([OBJDUMP])
13841 ])
13842
13843+# _LT_DECL_DLLTOOL
13844+# ----------------
13845+# Ensure DLLTOOL variable is set.
13846+m4_defun([_LT_DECL_DLLTOOL],
13847+[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
13848+test -z "$DLLTOOL" && DLLTOOL=dlltool
13849+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
13850+AC_SUBST([DLLTOOL])
13851+])
13852
13853 # _LT_DECL_SED
13854 # ------------
Patrick Williams213cb262021-08-07 19:21:33 -050013855@@ -7214,8 +7654,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES],
Andrew Geissler82c905d2020-04-13 13:39:40 -050013856 # Try some XSI features
13857 xsi_shell=no
13858 ( _lt_dummy="a/b/c"
13859- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13860- = c,a/b,, \
13861+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
13862+ = c,a/b,b/c, \
13863 && eval 'test $(( 1 + 1 )) -eq 2 \
13864 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13865 && xsi_shell=yes
Patrick Williams213cb262021-08-07 19:21:33 -050013866@@ -7254,206 +7694,162 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
Andrew Geissler82c905d2020-04-13 13:39:40 -050013867 ])# _LT_CHECK_SHELL_FEATURES
13868
13869
13870-# _LT_PROG_XSI_SHELLFNS
13871-# ---------------------
13872-# Bourne and XSI compatible variants of some useful shell functions.
13873-m4_defun([_LT_PROG_XSI_SHELLFNS],
13874-[case $xsi_shell in
13875- yes)
13876- cat << \_LT_EOF >> "$cfgfile"
13877-
13878-# func_dirname file append nondir_replacement
13879-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13880-# otherwise set result to NONDIR_REPLACEMENT.
13881-func_dirname ()
13882-{
13883- case ${1} in
13884- */*) func_dirname_result="${1%/*}${2}" ;;
13885- * ) func_dirname_result="${3}" ;;
13886- esac
13887-}
13888-
13889-# func_basename file
13890-func_basename ()
13891-{
13892- func_basename_result="${1##*/}"
13893-}
13894-
13895-# func_dirname_and_basename file append nondir_replacement
13896-# perform func_basename and func_dirname in a single function
13897-# call:
13898-# dirname: Compute the dirname of FILE. If nonempty,
13899-# add APPEND to the result, otherwise set result
13900-# to NONDIR_REPLACEMENT.
13901-# value returned in "$func_dirname_result"
13902-# basename: Compute filename of FILE.
13903-# value retuned in "$func_basename_result"
13904-# Implementation must be kept synchronized with func_dirname
13905-# and func_basename. For efficiency, we do not delegate to
13906-# those functions but instead duplicate the functionality here.
13907-func_dirname_and_basename ()
13908-{
13909- case ${1} in
13910- */*) func_dirname_result="${1%/*}${2}" ;;
13911- * ) func_dirname_result="${3}" ;;
13912- esac
13913- func_basename_result="${1##*/}"
13914-}
13915-
13916-# func_stripname prefix suffix name
13917-# strip PREFIX and SUFFIX off of NAME.
13918-# PREFIX and SUFFIX must not contain globbing or regex special
13919-# characters, hashes, percent signs, but SUFFIX may contain a leading
13920-# dot (in which case that matches only a dot).
13921-func_stripname ()
13922-{
13923- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13924- # positional parameters, so assign one to ordinary parameter first.
13925- func_stripname_result=${3}
13926- func_stripname_result=${func_stripname_result#"${1}"}
13927- func_stripname_result=${func_stripname_result%"${2}"}
13928-}
13929-
13930-# func_opt_split
13931-func_opt_split ()
13932-{
13933- func_opt_split_opt=${1%%=*}
13934- func_opt_split_arg=${1#*=}
13935-}
13936-
13937-# func_lo2o object
13938-func_lo2o ()
13939-{
13940- case ${1} in
13941- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13942- *) func_lo2o_result=${1} ;;
13943- esac
13944-}
13945-
13946-# func_xform libobj-or-source
13947-func_xform ()
13948-{
13949- func_xform_result=${1%.*}.lo
13950-}
13951-
13952-# func_arith arithmetic-term...
13953-func_arith ()
13954-{
13955- func_arith_result=$(( $[*] ))
13956-}
13957-
13958-# func_len string
13959-# STRING may not start with a hyphen.
13960-func_len ()
13961-{
13962- func_len_result=${#1}
13963-}
13964+# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
13965+# ------------------------------------------------------
13966+# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
13967+# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
13968+m4_defun([_LT_PROG_FUNCTION_REPLACE],
13969+[dnl {
13970+sed -e '/^$1 ()$/,/^} # $1 /c\
13971+$1 ()\
13972+{\
13973+m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
13974+} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
13975+ && mv -f "$cfgfile.tmp" "$cfgfile" \
13976+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13977+test 0 -eq $? || _lt_function_replace_fail=:
13978+])
13979
13980-_LT_EOF
13981- ;;
13982- *) # Bourne compatible functions.
13983- cat << \_LT_EOF >> "$cfgfile"
13984
13985-# func_dirname file append nondir_replacement
13986-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13987-# otherwise set result to NONDIR_REPLACEMENT.
13988-func_dirname ()
13989-{
13990- # Extract subdirectory from the argument.
13991- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13992- if test "X$func_dirname_result" = "X${1}"; then
13993- func_dirname_result="${3}"
13994- else
13995- func_dirname_result="$func_dirname_result${2}"
13996- fi
13997-}
13998+# _LT_PROG_REPLACE_SHELLFNS
13999+# -------------------------
14000+# Replace existing portable implementations of several shell functions with
14001+# equivalent extended shell implementations where those features are available..
14002+m4_defun([_LT_PROG_REPLACE_SHELLFNS],
14003+[if test x"$xsi_shell" = xyes; then
14004+ _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
14005+ case ${1} in
14006+ */*) func_dirname_result="${1%/*}${2}" ;;
14007+ * ) func_dirname_result="${3}" ;;
14008+ esac])
14009+
14010+ _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
14011+ func_basename_result="${1##*/}"])
14012+
14013+ _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
14014+ case ${1} in
14015+ */*) func_dirname_result="${1%/*}${2}" ;;
14016+ * ) func_dirname_result="${3}" ;;
14017+ esac
14018+ func_basename_result="${1##*/}"])
14019
14020-# func_basename file
14021-func_basename ()
14022-{
14023- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14024-}
14025+ _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
14026+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14027+ # positional parameters, so assign one to ordinary parameter first.
14028+ func_stripname_result=${3}
14029+ func_stripname_result=${func_stripname_result#"${1}"}
14030+ func_stripname_result=${func_stripname_result%"${2}"}])
14031
14032-dnl func_dirname_and_basename
14033-dnl A portable version of this function is already defined in general.m4sh
14034-dnl so there is no need for it here.
14035+ _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
14036+ func_split_long_opt_name=${1%%=*}
14037+ func_split_long_opt_arg=${1#*=}])
14038
14039-# func_stripname prefix suffix name
14040-# strip PREFIX and SUFFIX off of NAME.
14041-# PREFIX and SUFFIX must not contain globbing or regex special
14042-# characters, hashes, percent signs, but SUFFIX may contain a leading
14043-# dot (in which case that matches only a dot).
14044-# func_strip_suffix prefix name
14045-func_stripname ()
14046-{
14047- case ${2} in
14048- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14049- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14050- esac
14051-}
14052+ _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
14053+ func_split_short_opt_arg=${1#??}
14054+ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
14055
14056-# sed scripts:
14057-my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
14058-my_sed_long_arg='1s/^-[[^=]]*=//'
14059+ _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
14060+ case ${1} in
14061+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14062+ *) func_lo2o_result=${1} ;;
14063+ esac])
14064
14065-# func_opt_split
14066-func_opt_split ()
14067-{
14068- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14069- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14070-}
14071+ _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
14072
14073-# func_lo2o object
14074-func_lo2o ()
14075-{
14076- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14077-}
14078+ _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
14079
14080-# func_xform libobj-or-source
14081-func_xform ()
14082-{
14083- func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
14084-}
14085+ _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
14086+fi
14087
14088-# func_arith arithmetic-term...
14089-func_arith ()
14090-{
14091- func_arith_result=`expr "$[@]"`
14092-}
14093+if test x"$lt_shell_append" = xyes; then
14094+ _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
14095
14096-# func_len string
14097-# STRING may not start with a hyphen.
14098-func_len ()
14099-{
14100- func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
14101-}
14102+ _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
14103+ func_quote_for_eval "${2}"
14104+dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
14105+ eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
14106
14107-_LT_EOF
14108-esac
14109+ # Save a `func_append' function call where possible by direct use of '+='
14110+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14111+ && mv -f "$cfgfile.tmp" "$cfgfile" \
14112+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14113+ test 0 -eq $? || _lt_function_replace_fail=:
14114+else
14115+ # Save a `func_append' function call even when '+=' is not available
14116+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14117+ && mv -f "$cfgfile.tmp" "$cfgfile" \
14118+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14119+ test 0 -eq $? || _lt_function_replace_fail=:
14120+fi
14121
14122-case $lt_shell_append in
14123- yes)
14124- cat << \_LT_EOF >> "$cfgfile"
14125+if test x"$_lt_function_replace_fail" = x":"; then
14126+ AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
14127+fi
14128+])
14129
14130-# func_append var value
14131-# Append VALUE to the end of shell variable VAR.
14132-func_append ()
14133-{
14134- eval "$[1]+=\$[2]"
14135-}
14136-_LT_EOF
14137+# _LT_PATH_CONVERSION_FUNCTIONS
14138+# -----------------------------
14139+# Determine which file name conversion functions should be used by
14140+# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
14141+# for certain cross-compile configurations and native mingw.
14142+m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
14143+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
14144+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
14145+AC_MSG_CHECKING([how to convert $build file names to $host format])
14146+AC_CACHE_VAL(lt_cv_to_host_file_cmd,
14147+[case $host in
14148+ *-*-mingw* )
14149+ case $build in
14150+ *-*-mingw* ) # actually msys
14151+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
14152+ ;;
14153+ *-*-cygwin* )
14154+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
14155+ ;;
14156+ * ) # otherwise, assume *nix
14157+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
14158+ ;;
14159+ esac
14160 ;;
14161- *)
14162- cat << \_LT_EOF >> "$cfgfile"
14163-
14164-# func_append var value
14165-# Append VALUE to the end of shell variable VAR.
14166-func_append ()
14167-{
14168- eval "$[1]=\$$[1]\$[2]"
14169-}
14170-
14171-_LT_EOF
14172+ *-*-cygwin* )
14173+ case $build in
14174+ *-*-mingw* ) # actually msys
14175+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
14176+ ;;
14177+ *-*-cygwin* )
14178+ lt_cv_to_host_file_cmd=func_convert_file_noop
14179+ ;;
14180+ * ) # otherwise, assume *nix
14181+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
14182+ ;;
14183+ esac
14184 ;;
14185- esac
14186+ * ) # unhandled hosts (and "normal" native builds)
14187+ lt_cv_to_host_file_cmd=func_convert_file_noop
14188+ ;;
14189+esac
14190+])
14191+to_host_file_cmd=$lt_cv_to_host_file_cmd
14192+AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
14193+_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
14194+ [0], [convert $build file names to $host format])dnl
14195+
14196+AC_MSG_CHECKING([how to convert $build file names to toolchain format])
14197+AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
14198+[#assume ordinary cross tools, or native build.
14199+lt_cv_to_tool_file_cmd=func_convert_file_noop
14200+case $host in
14201+ *-*-mingw* )
14202+ case $build in
14203+ *-*-mingw* ) # actually msys
14204+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
14205+ ;;
14206+ esac
14207+ ;;
14208+esac
14209 ])
14210+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14211+AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
14212+_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
14213+ [0], [convert $build files to toolchain format])dnl
14214+])# _LT_PATH_CONVERSION_FUNCTIONS
14215diff --git a/ltmain.sh b/ltmain.sh
14216index 9503ec85d70..70e856e0659 100644
14217--- a/ltmain.sh
14218+++ b/ltmain.sh
14219@@ -1,10 +1,9 @@
14220-# Generated from ltmain.m4sh.
14221
14222-# libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a
14223+# libtool (GNU libtool) 2.4
14224 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14225
14226 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
14227-# 2007, 2008, 2009 Free Software Foundation, Inc.
14228+# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
14229 # This is free software; see the source for copying conditions. There is NO
14230 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14231
14232@@ -38,7 +37,6 @@
14233 # -n, --dry-run display commands without modifying any files
14234 # --features display basic configuration information and exit
14235 # --mode=MODE use operation mode MODE
14236-# --no-finish let install mode avoid finish commands
14237 # --preserve-dup-deps don't remove duplicate dependency libraries
14238 # --quiet, --silent don't print informational messages
14239 # --no-quiet, --no-silent
14240@@ -71,17 +69,19 @@
14241 # compiler: $LTCC
14242 # compiler flags: $LTCFLAGS
14243 # linker: $LD (gnu? $with_gnu_ld)
14244-# $progname: (GNU libtool 1.3134 2009-11-29) 2.2.7a
14245+# $progname: (GNU libtool) 2.4
14246 # automake: $automake_version
14247 # autoconf: $autoconf_version
14248 #
14249 # Report bugs to <bug-libtool@gnu.org>.
14250+# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
14251+# General help using GNU software: <http://www.gnu.org/gethelp/>.
14252
14253 PROGRAM=libtool
14254 PACKAGE=libtool
14255-VERSION=2.2.7a
14256-TIMESTAMP=" 1.3134 2009-11-29"
14257-package_revision=1.3134
14258+VERSION=2.4
14259+TIMESTAMP=""
14260+package_revision=1.3293
14261
14262 # Be Bourne compatible
14263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14264@@ -106,9 +106,6 @@ _LTECHO_EOF'
14265 }
14266
14267 # NLS nuisances: We save the old values to restore during execute mode.
14268-# Only set LANG and LC_ALL to C if already set.
14269-# These must not be set unconditionally because not all systems understand
14270-# e.g. LANG=C (notably SCO).
14271 lt_user_locale=
14272 lt_safe_locale=
14273 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
14274@@ -121,15 +118,13 @@ do
14275 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
14276 fi"
14277 done
14278+LC_ALL=C
14279+LANGUAGE=C
14280+export LANGUAGE LC_ALL
14281
14282 $lt_unset CDPATH
14283
14284
14285-
14286-
14287-
14288-
14289-
14290 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
14291 # is ksh but when the shell is invoked as "sh" and the current value of
14292 # the _XPG environment variable is not equal to 1 (one), the special
14293@@ -140,7 +135,7 @@ progpath="$0"
14294
14295
14296 : ${CP="cp -f"}
14297-: ${ECHO=$as_echo}
14298+test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
14299 : ${EGREP="/bin/grep -E"}
14300 : ${FGREP="/bin/grep -F"}
14301 : ${GREP="/bin/grep"}
14302@@ -149,7 +144,7 @@ progpath="$0"
14303 : ${MKDIR="mkdir"}
14304 : ${MV="mv -f"}
14305 : ${RM="rm -f"}
14306-: ${SED="/mount/endor/wildenhu/local-x86_64/bin/sed"}
14307+: ${SED="/bin/sed"}
14308 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
14309 : ${Xsed="$SED -e 1s/^X//"}
14310
14311@@ -169,6 +164,27 @@ IFS=" $lt_nl"
14312 dirname="s,/[^/]*$,,"
14313 basename="s,^.*/,,"
14314
14315+# func_dirname file append nondir_replacement
14316+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14317+# otherwise set result to NONDIR_REPLACEMENT.
14318+func_dirname ()
14319+{
14320+ func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14321+ if test "X$func_dirname_result" = "X${1}"; then
14322+ func_dirname_result="${3}"
14323+ else
14324+ func_dirname_result="$func_dirname_result${2}"
14325+ fi
14326+} # func_dirname may be replaced by extended shell implementation
14327+
14328+
14329+# func_basename file
14330+func_basename ()
14331+{
14332+ func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14333+} # func_basename may be replaced by extended shell implementation
14334+
14335+
14336 # func_dirname_and_basename file append nondir_replacement
14337 # perform func_basename and func_dirname in a single function
14338 # call:
14339@@ -183,17 +199,31 @@ basename="s,^.*/,,"
14340 # those functions but instead duplicate the functionality here.
14341 func_dirname_and_basename ()
14342 {
14343- # Extract subdirectory from the argument.
14344- func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
14345- if test "X$func_dirname_result" = "X${1}"; then
14346- func_dirname_result="${3}"
14347- else
14348- func_dirname_result="$func_dirname_result${2}"
14349- fi
14350- func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
14351-}
14352+ # Extract subdirectory from the argument.
14353+ func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
14354+ if test "X$func_dirname_result" = "X${1}"; then
14355+ func_dirname_result="${3}"
14356+ else
14357+ func_dirname_result="$func_dirname_result${2}"
14358+ fi
14359+ func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
14360+} # func_dirname_and_basename may be replaced by extended shell implementation
14361+
14362+
14363+# func_stripname prefix suffix name
14364+# strip PREFIX and SUFFIX off of NAME.
14365+# PREFIX and SUFFIX must not contain globbing or regex special
14366+# characters, hashes, percent signs, but SUFFIX may contain a leading
14367+# dot (in which case that matches only a dot).
14368+# func_strip_suffix prefix name
14369+func_stripname ()
14370+{
14371+ case ${2} in
14372+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14373+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14374+ esac
14375+} # func_stripname may be replaced by extended shell implementation
14376
14377-# Generated shell functions inserted here.
14378
14379 # These SED scripts presuppose an absolute path with a trailing slash.
14380 pathcar='s,^/\([^/]*\).*$,\1,'
14381@@ -376,6 +406,15 @@ sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
14382 # Same as above, but do not quote variable references.
14383 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14384
14385+# Sed substitution that turns a string into a regex matching for the
14386+# string literally.
14387+sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
14388+
14389+# Sed substitution that converts a w32 file name or path
14390+# which contains forward slashes, into one that contains
14391+# (escaped) backslashes. A very naive implementation.
14392+lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
14393+
14394 # Re-`\' parameter expansions in output of double_quote_subst that were
14395 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
14396 # in input to double_quote_subst, that '$' was protected from expansion.
14397@@ -404,7 +443,7 @@ opt_warning=:
14398 # name if it has been set yet.
14399 func_echo ()
14400 {
14401- $ECHO "$progname${mode+: }$mode: $*"
14402+ $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
14403 }
14404
14405 # func_verbose arg...
14406@@ -430,14 +469,14 @@ func_echo_all ()
14407 # Echo program name prefixed message to standard error.
14408 func_error ()
14409 {
14410- $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
14411+ $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
14412 }
14413
14414 # func_warning arg...
14415 # Echo program name prefixed warning message to standard error.
14416 func_warning ()
14417 {
14418- $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
14419+ $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
14420
14421 # bash bug again:
14422 :
14423@@ -656,19 +695,35 @@ func_show_eval_locale ()
14424 fi
14425 }
14426
14427-
14428-
14429+# func_tr_sh
14430+# Turn $1 into a string suitable for a shell variable name.
14431+# Result is stored in $func_tr_sh_result. All characters
14432+# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
14433+# if $1 begins with a digit, a '_' is prepended as well.
14434+func_tr_sh ()
14435+{
14436+ case $1 in
14437+ [0-9]* | *[!a-zA-Z0-9_]*)
14438+ func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
14439+ ;;
14440+ * )
14441+ func_tr_sh_result=$1
14442+ ;;
14443+ esac
14444+}
14445
14446
14447 # func_version
14448 # Echo version message to standard output and exit.
14449 func_version ()
14450 {
14451+ $opt_debug
14452+
14453 $SED -n '/(C)/!b go
14454 :more
14455 /\./!{
14456 N
14457- s/\n# //
14458+ s/\n# / /
14459 b more
14460 }
14461 :go
14462@@ -685,7 +740,9 @@ func_version ()
14463 # Echo short help message to standard output and exit.
14464 func_usage ()
14465 {
14466- $SED -n '/^# Usage:/,/^# *-h/ {
14467+ $opt_debug
14468+
14469+ $SED -n '/^# Usage:/,/^# *.*--help/ {
14470 s/^# //
14471 s/^# *$//
14472 s/\$progname/'$progname'/
14473@@ -701,7 +758,10 @@ func_usage ()
14474 # unless 'noexit' is passed as argument.
14475 func_help ()
14476 {
14477+ $opt_debug
14478+
14479 $SED -n '/^# Usage:/,/# Report bugs to/ {
14480+ :print
14481 s/^# //
14482 s/^# *$//
14483 s*\$progname*'$progname'*
14484@@ -714,7 +774,11 @@ func_help ()
14485 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
14486 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
14487 p
14488- }' < "$progpath"
14489+ d
14490+ }
14491+ /^# .* home page:/b print
14492+ /^# General help using/b print
14493+ ' < "$progpath"
14494 ret=$?
14495 if test -z "$1"; then
14496 exit $ret
14497@@ -726,12 +790,39 @@ func_help ()
14498 # exit_cmd.
14499 func_missing_arg ()
14500 {
14501- func_error "missing argument for $1"
14502+ $opt_debug
14503+
14504+ func_error "missing argument for $1."
14505 exit_cmd=exit
14506 }
14507
14508-exit_cmd=:
14509
14510+# func_split_short_opt shortopt
14511+# Set func_split_short_opt_name and func_split_short_opt_arg shell
14512+# variables after splitting SHORTOPT after the 2nd character.
14513+func_split_short_opt ()
14514+{
14515+ my_sed_short_opt='1s/^\(..\).*$/\1/;q'
14516+ my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
14517+
14518+ func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
14519+ func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
14520+} # func_split_short_opt may be replaced by extended shell implementation
14521+
14522+
14523+# func_split_long_opt longopt
14524+# Set func_split_long_opt_name and func_split_long_opt_arg shell
14525+# variables after splitting LONGOPT at the `=' sign.
14526+func_split_long_opt ()
14527+{
14528+ my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
14529+ my_sed_long_arg='1s/^--[^=]*=//'
14530+
14531+ func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
14532+ func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
14533+} # func_split_long_opt may be replaced by extended shell implementation
14534+
14535+exit_cmd=:
14536
14537
14538
14539@@ -741,26 +832,64 @@ magic="%%%MAGIC variable%%%"
14540 magic_exe="%%%MAGIC EXE variable%%%"
14541
14542 # Global variables.
14543-# $mode is unset
14544 nonopt=
14545-execute_dlfiles=
14546 preserve_args=
14547 lo2o="s/\\.lo\$/.${objext}/"
14548 o2lo="s/\\.${objext}\$/.lo/"
14549 extracted_archives=
14550 extracted_serial=0
14551
14552-opt_dry_run=false
14553-opt_finish=:
14554-opt_duplicate_deps=false
14555-opt_silent=false
14556-opt_debug=:
14557-
14558 # If this variable is set in any of the actions, the command in it
14559 # will be execed at the end. This prevents here-documents from being
14560 # left over by shells.
14561 exec_cmd=
14562
14563+# func_append var value
14564+# Append VALUE to the end of shell variable VAR.
14565+func_append ()
14566+{
14567+ eval "${1}=\$${1}\${2}"
14568+} # func_append may be replaced by extended shell implementation
14569+
14570+# func_append_quoted var value
14571+# Quote VALUE and append to the end of shell variable VAR, separated
14572+# by a space.
14573+func_append_quoted ()
14574+{
14575+ func_quote_for_eval "${2}"
14576+ eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
14577+} # func_append_quoted may be replaced by extended shell implementation
14578+
14579+
14580+# func_arith arithmetic-term...
14581+func_arith ()
14582+{
14583+ func_arith_result=`expr "${@}"`
14584+} # func_arith may be replaced by extended shell implementation
14585+
14586+
14587+# func_len string
14588+# STRING may not start with a hyphen.
14589+func_len ()
14590+{
14591+ func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
14592+} # func_len may be replaced by extended shell implementation
14593+
14594+
14595+# func_lo2o object
14596+func_lo2o ()
14597+{
14598+ func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14599+} # func_lo2o may be replaced by extended shell implementation
14600+
14601+
14602+# func_xform libobj-or-source
14603+func_xform ()
14604+{
14605+ func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14606+} # func_xform may be replaced by extended shell implementation
14607+
14608+
14609 # func_fatal_configuration arg...
14610 # Echo program name prefixed message to standard error, followed by
14611 # a configuration failure hint, and exit.
14612@@ -850,130 +979,204 @@ func_enable_tag ()
14613 esac
14614 }
14615
14616-# Parse options once, thoroughly. This comes as soon as possible in
14617-# the script to make things like `libtool --version' happen quickly.
14618+# func_check_version_match
14619+# Ensure that we are using m4 macros, and libtool script from the same
14620+# release of libtool.
14621+func_check_version_match ()
14622 {
14623+ if test "$package_revision" != "$macro_revision"; then
14624+ if test "$VERSION" != "$macro_version"; then
14625+ if test -z "$macro_version"; then
14626+ cat >&2 <<_LT_EOF
14627+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
14628+$progname: definition of this LT_INIT comes from an older release.
14629+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
14630+$progname: and run autoconf again.
14631+_LT_EOF
14632+ else
14633+ cat >&2 <<_LT_EOF
14634+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
14635+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
14636+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
14637+$progname: and run autoconf again.
14638+_LT_EOF
14639+ fi
14640+ else
14641+ cat >&2 <<_LT_EOF
14642+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
14643+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
14644+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
14645+$progname: of $PACKAGE $VERSION and run autoconf again.
14646+_LT_EOF
14647+ fi
14648
14649- # Shorthand for --mode=foo, only valid as the first argument
14650- case $1 in
14651- clean|clea|cle|cl)
14652- shift; set dummy --mode clean ${1+"$@"}; shift
14653- ;;
14654- compile|compil|compi|comp|com|co|c)
14655- shift; set dummy --mode compile ${1+"$@"}; shift
14656- ;;
14657- execute|execut|execu|exec|exe|ex|e)
14658- shift; set dummy --mode execute ${1+"$@"}; shift
14659- ;;
14660- finish|finis|fini|fin|fi|f)
14661- shift; set dummy --mode finish ${1+"$@"}; shift
14662- ;;
14663- install|instal|insta|inst|ins|in|i)
14664- shift; set dummy --mode install ${1+"$@"}; shift
14665- ;;
14666- link|lin|li|l)
14667- shift; set dummy --mode link ${1+"$@"}; shift
14668- ;;
14669- uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
14670- shift; set dummy --mode uninstall ${1+"$@"}; shift
14671- ;;
14672- esac
14673+ exit $EXIT_MISMATCH
14674+ fi
14675+}
14676+
14677+
14678+# Shorthand for --mode=foo, only valid as the first argument
14679+case $1 in
14680+clean|clea|cle|cl)
14681+ shift; set dummy --mode clean ${1+"$@"}; shift
14682+ ;;
14683+compile|compil|compi|comp|com|co|c)
14684+ shift; set dummy --mode compile ${1+"$@"}; shift
14685+ ;;
14686+execute|execut|execu|exec|exe|ex|e)
14687+ shift; set dummy --mode execute ${1+"$@"}; shift
14688+ ;;
14689+finish|finis|fini|fin|fi|f)
14690+ shift; set dummy --mode finish ${1+"$@"}; shift
14691+ ;;
14692+install|instal|insta|inst|ins|in|i)
14693+ shift; set dummy --mode install ${1+"$@"}; shift
14694+ ;;
14695+link|lin|li|l)
14696+ shift; set dummy --mode link ${1+"$@"}; shift
14697+ ;;
14698+uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
14699+ shift; set dummy --mode uninstall ${1+"$@"}; shift
14700+ ;;
14701+esac
14702
14703- # Parse non-mode specific arguments:
14704- while test "$#" -gt 0; do
14705+
14706+
14707+# Option defaults:
14708+opt_debug=:
14709+opt_dry_run=false
14710+opt_config=false
14711+opt_preserve_dup_deps=false
14712+opt_features=false
14713+opt_finish=false
14714+opt_help=false
14715+opt_help_all=false
14716+opt_silent=:
14717+opt_verbose=:
14718+opt_silent=false
14719+opt_verbose=false
14720+
14721+
14722+# Parse options once, thoroughly. This comes as soon as possible in the
14723+# script to make things like `--version' happen as quickly as we can.
14724+{
14725+ # this just eases exit handling
14726+ while test $# -gt 0; do
14727 opt="$1"
14728 shift
14729-
14730 case $opt in
14731- --config) func_config ;;
14732-
14733- --debug) preserve_args="$preserve_args $opt"
14734+ --debug|-x) opt_debug='set -x'
14735 func_echo "enabling shell trace mode"
14736- opt_debug='set -x'
14737 $opt_debug
14738 ;;
14739-
14740- -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
14741- execute_dlfiles="$execute_dlfiles $1"
14742- shift
14743+ --dry-run|--dryrun|-n)
14744+ opt_dry_run=:
14745 ;;
14746-
14747- --dry-run | -n) opt_dry_run=: ;;
14748- --features) func_features ;;
14749- --finish) mode="finish" ;;
14750- --no-finish) opt_finish=false ;;
14751-
14752- --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
14753- case $1 in
14754- # Valid mode arguments:
14755- clean) ;;
14756- compile) ;;
14757- execute) ;;
14758- finish) ;;
14759- install) ;;
14760- link) ;;
14761- relink) ;;
14762- uninstall) ;;
14763-
14764- # Catch anything else as an error
14765- *) func_error "invalid argument for $opt"
14766- exit_cmd=exit
14767- break
14768- ;;
14769- esac
14770-
14771- mode="$1"
14772+ --config)
14773+ opt_config=:
14774+func_config
14775+ ;;
14776+ --dlopen|-dlopen)
14777+ optarg="$1"
14778+ opt_dlopen="${opt_dlopen+$opt_dlopen
14779+}$optarg"
14780 shift
14781 ;;
14782-
14783 --preserve-dup-deps)
14784- opt_duplicate_deps=: ;;
14785-
14786- --quiet|--silent) preserve_args="$preserve_args $opt"
14787- opt_silent=:
14788- opt_verbose=false
14789+ opt_preserve_dup_deps=:
14790 ;;
14791-
14792- --no-quiet|--no-silent)
14793- preserve_args="$preserve_args $opt"
14794- opt_silent=false
14795+ --features)
14796+ opt_features=:
14797+func_features
14798 ;;
14799-
14800- --verbose| -v) preserve_args="$preserve_args $opt"
14801+ --finish)
14802+ opt_finish=:
14803+set dummy --mode finish ${1+"$@"}; shift
14804+ ;;
14805+ --help)
14806+ opt_help=:
14807+ ;;
14808+ --help-all)
14809+ opt_help_all=:
14810+opt_help=': help-all'
14811+ ;;
14812+ --mode)
14813+ test $# = 0 && func_missing_arg $opt && break
14814+ optarg="$1"
14815+ opt_mode="$optarg"
14816+case $optarg in
14817+ # Valid mode arguments:
14818+ clean|compile|execute|finish|install|link|relink|uninstall) ;;
14819+
14820+ # Catch anything else as an error
14821+ *) func_error "invalid argument for $opt"
14822+ exit_cmd=exit
14823+ break
14824+ ;;
14825+esac
14826+ shift
14827+ ;;
14828+ --no-silent|--no-quiet)
14829 opt_silent=false
14830- opt_verbose=:
14831+func_append preserve_args " $opt"
14832 ;;
14833-
14834- --no-verbose) preserve_args="$preserve_args $opt"
14835+ --no-verbose)
14836 opt_verbose=false
14837+func_append preserve_args " $opt"
14838 ;;
14839-
14840- --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
14841- preserve_args="$preserve_args $opt $1"
14842- func_enable_tag "$1" # tagname is set here
14843+ --silent|--quiet)
14844+ opt_silent=:
14845+func_append preserve_args " $opt"
14846+ opt_verbose=false
14847+ ;;
14848+ --verbose|-v)
14849+ opt_verbose=:
14850+func_append preserve_args " $opt"
14851+opt_silent=false
14852+ ;;
14853+ --tag)
14854+ test $# = 0 && func_missing_arg $opt && break
14855+ optarg="$1"
14856+ opt_tag="$optarg"
14857+func_append preserve_args " $opt $optarg"
14858+func_enable_tag "$optarg"
14859 shift
14860 ;;
14861
14862+ -\?|-h) func_usage ;;
14863+ --help) func_help ;;
14864+ --version) func_version ;;
14865+
14866 # Separate optargs to long options:
14867- -dlopen=*|--mode=*|--tag=*)
14868- func_opt_split "$opt"
14869- set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
14870+ --*=*)
14871+ func_split_long_opt "$opt"
14872+ set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
14873 shift
14874 ;;
14875
14876- -\?|-h) func_usage ;;
14877- --help) opt_help=: ;;
14878- --help-all) opt_help=': help-all' ;;
14879- --version) func_version ;;
14880-
14881- -*) func_fatal_help "unrecognized option \`$opt'" ;;
14882-
14883- *) nonopt="$opt"
14884- break
14885+ # Separate non-argument short options:
14886+ -\?*|-h*|-n*|-v*)
14887+ func_split_short_opt "$opt"
14888+ set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
14889+ shift
14890 ;;
14891+
14892+ --) break ;;
14893+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
14894+ *) set dummy "$opt" ${1+"$@"}; shift; break ;;
14895 esac
14896 done
14897
14898+ # Validate options:
14899+
14900+ # save first non-option argument
14901+ if test "$#" -gt 0; then
14902+ nonopt="$opt"
14903+ shift
14904+ fi
14905+
14906+ # preserve --debug
14907+ test "$opt_debug" = : || func_append preserve_args " --debug"
14908
14909 case $host in
14910 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* )
14911@@ -981,82 +1184,44 @@ func_enable_tag ()
14912 opt_duplicate_compiler_generated_deps=:
14913 ;;
14914 *)
14915- opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
14916+ opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
14917 ;;
14918 esac
14919
14920- # Having warned about all mis-specified options, bail out if
14921- # anything was wrong.
14922- $exit_cmd $EXIT_FAILURE
14923-}
14924+ $opt_help || {
14925+ # Sanity checks first:
14926+ func_check_version_match
14927
14928-# func_check_version_match
14929-# Ensure that we are using m4 macros, and libtool script from the same
14930-# release of libtool.
14931-func_check_version_match ()
14932-{
14933- if test "$package_revision" != "$macro_revision"; then
14934- if test "$VERSION" != "$macro_version"; then
14935- if test -z "$macro_version"; then
14936- cat >&2 <<_LT_EOF
14937-$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
14938-$progname: definition of this LT_INIT comes from an older release.
14939-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
14940-$progname: and run autoconf again.
14941-_LT_EOF
14942- else
14943- cat >&2 <<_LT_EOF
14944-$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
14945-$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
14946-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
14947-$progname: and run autoconf again.
14948-_LT_EOF
14949- fi
14950- else
14951- cat >&2 <<_LT_EOF
14952-$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
14953-$progname: but the definition of this LT_INIT comes from revision $macro_revision.
14954-$progname: You should recreate aclocal.m4 with macros from revision $package_revision
14955-$progname: of $PACKAGE $VERSION and run autoconf again.
14956-_LT_EOF
14957+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
14958+ func_fatal_configuration "not configured to build any kind of library"
14959 fi
14960
14961- exit $EXIT_MISMATCH
14962- fi
14963-}
14964-
14965+ # Darwin sucks
14966+ eval std_shrext=\"$shrext_cmds\"
14967
14968-## ----------- ##
14969-## Main. ##
14970-## ----------- ##
14971-
14972-$opt_help || {
14973- # Sanity checks first:
14974- func_check_version_match
14975-
14976- if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
14977- func_fatal_configuration "not configured to build any kind of library"
14978- fi
14979+ # Only execute mode is allowed to have -dlopen flags.
14980+ if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
14981+ func_error "unrecognized option \`-dlopen'"
14982+ $ECHO "$help" 1>&2
14983+ exit $EXIT_FAILURE
14984+ fi
14985
14986- test -z "$mode" && func_fatal_error "error: you must specify a MODE."
14987+ # Change the help message to a mode-specific one.
14988+ generic_help="$help"
14989+ help="Try \`$progname --help --mode=$opt_mode' for more information."
14990+ }
14991
14992
14993- # Darwin sucks
14994- eval "std_shrext=\"$shrext_cmds\""
14995+ # Bail if the options were screwed
14996+ $exit_cmd $EXIT_FAILURE
14997+}
14998
14999
15000- # Only execute mode is allowed to have -dlopen flags.
15001- if test -n "$execute_dlfiles" && test "$mode" != execute; then
15002- func_error "unrecognized option \`-dlopen'"
15003- $ECHO "$help" 1>&2
15004- exit $EXIT_FAILURE
15005- fi
15006
15007- # Change the help message to a mode-specific one.
15008- generic_help="$help"
15009- help="Try \`$progname --help --mode=$mode' for more information."
15010-}
15011
15012+## ----------- ##
15013+## Main. ##
15014+## ----------- ##
15015
15016 # func_lalib_p file
15017 # True iff FILE is a libtool `.la' library or `.lo' object file.
15018@@ -1121,12 +1286,9 @@ func_ltwrapper_executable_p ()
15019 # temporary ltwrapper_script.
15020 func_ltwrapper_scriptname ()
15021 {
15022- func_ltwrapper_scriptname_result=""
15023- if func_ltwrapper_executable_p "$1"; then
15024- func_dirname_and_basename "$1" "" "."
15025- func_stripname '' '.exe' "$func_basename_result"
15026- func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
15027- fi
15028+ func_dirname_and_basename "$1" "" "."
15029+ func_stripname '' '.exe' "$func_basename_result"
15030+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
15031 }
15032
15033 # func_ltwrapper_p file
15034@@ -1149,7 +1311,7 @@ func_execute_cmds ()
15035 save_ifs=$IFS; IFS='~'
15036 for cmd in $1; do
15037 IFS=$save_ifs
15038- eval "cmd=\"$cmd\""
15039+ eval cmd=\"$cmd\"
15040 func_show_eval "$cmd" "${2-:}"
15041 done
15042 IFS=$save_ifs
15043@@ -1172,6 +1334,37 @@ func_source ()
15044 }
15045
15046
15047+# func_resolve_sysroot PATH
15048+# Replace a leading = in PATH with a sysroot. Store the result into
15049+# func_resolve_sysroot_result
15050+func_resolve_sysroot ()
15051+{
15052+ func_resolve_sysroot_result=$1
15053+ case $func_resolve_sysroot_result in
15054+ =*)
15055+ func_stripname '=' '' "$func_resolve_sysroot_result"
15056+ func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
15057+ ;;
15058+ esac
15059+}
15060+
15061+# func_replace_sysroot PATH
15062+# If PATH begins with the sysroot, replace it with = and
15063+# store the result into func_replace_sysroot_result.
15064+func_replace_sysroot ()
15065+{
15066+ case "$lt_sysroot:$1" in
15067+ ?*:"$lt_sysroot"*)
15068+ func_stripname "$lt_sysroot" '' "$1"
15069+ func_replace_sysroot_result="=$func_stripname_result"
15070+ ;;
15071+ *)
15072+ # Including no sysroot.
15073+ func_replace_sysroot_result=$1
15074+ ;;
15075+ esac
15076+}
15077+
15078 # func_infer_tag arg
15079 # Infer tagged configuration to use if any are available and
15080 # if one wasn't chosen via the "--tag" command line option.
15081@@ -1184,8 +1377,7 @@ func_infer_tag ()
15082 if test -n "$available_tags" && test -z "$tagname"; then
15083 CC_quoted=
15084 for arg in $CC; do
15085- func_quote_for_eval "$arg"
15086- CC_quoted="$CC_quoted $func_quote_for_eval_result"
15087+ func_append_quoted CC_quoted "$arg"
15088 done
15089 CC_expanded=`func_echo_all $CC`
15090 CC_quoted_expanded=`func_echo_all $CC_quoted`
15091@@ -1204,8 +1396,7 @@ func_infer_tag ()
15092 CC_quoted=
15093 for arg in $CC; do
15094 # Double-quote args containing other shell metacharacters.
15095- func_quote_for_eval "$arg"
15096- CC_quoted="$CC_quoted $func_quote_for_eval_result"
15097+ func_append_quoted CC_quoted "$arg"
15098 done
15099 CC_expanded=`func_echo_all $CC`
15100 CC_quoted_expanded=`func_echo_all $CC_quoted`
15101@@ -1274,6 +1465,486 @@ EOF
15102 }
15103 }
15104
15105+
15106+##################################################
15107+# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
15108+##################################################
15109+
15110+# func_convert_core_file_wine_to_w32 ARG
15111+# Helper function used by file name conversion functions when $build is *nix,
15112+# and $host is mingw, cygwin, or some other w32 environment. Relies on a
15113+# correctly configured wine environment available, with the winepath program
15114+# in $build's $PATH.
15115+#
15116+# ARG is the $build file name to be converted to w32 format.
15117+# Result is available in $func_convert_core_file_wine_to_w32_result, and will
15118+# be empty on error (or when ARG is empty)
15119+func_convert_core_file_wine_to_w32 ()
15120+{
15121+ $opt_debug
15122+ func_convert_core_file_wine_to_w32_result="$1"
15123+ if test -n "$1"; then
15124+ # Unfortunately, winepath does not exit with a non-zero error code, so we
15125+ # are forced to check the contents of stdout. On the other hand, if the
15126+ # command is not found, the shell will set an exit code of 127 and print
15127+ # *an error message* to stdout. So we must check for both error code of
15128+ # zero AND non-empty stdout, which explains the odd construction:
15129+ func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
15130+ if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
15131+ func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
15132+ $SED -e "$lt_sed_naive_backslashify"`
15133+ else
15134+ func_convert_core_file_wine_to_w32_result=
15135+ fi
15136+ fi
15137+}
15138+# end: func_convert_core_file_wine_to_w32
15139+
15140+
15141+# func_convert_core_path_wine_to_w32 ARG
15142+# Helper function used by path conversion functions when $build is *nix, and
15143+# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
15144+# configured wine environment available, with the winepath program in $build's
15145+# $PATH. Assumes ARG has no leading or trailing path separator characters.
15146+#
15147+# ARG is path to be converted from $build format to win32.
15148+# Result is available in $func_convert_core_path_wine_to_w32_result.
15149+# Unconvertible file (directory) names in ARG are skipped; if no directory names
15150+# are convertible, then the result may be empty.
15151+func_convert_core_path_wine_to_w32 ()
15152+{
15153+ $opt_debug
15154+ # unfortunately, winepath doesn't convert paths, only file names
15155+ func_convert_core_path_wine_to_w32_result=""
15156+ if test -n "$1"; then
15157+ oldIFS=$IFS
15158+ IFS=:
15159+ for func_convert_core_path_wine_to_w32_f in $1; do
15160+ IFS=$oldIFS
15161+ func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
15162+ if test -n "$func_convert_core_file_wine_to_w32_result" ; then
15163+ if test -z "$func_convert_core_path_wine_to_w32_result"; then
15164+ func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
15165+ else
15166+ func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15167+ fi
15168+ fi
15169+ done
15170+ IFS=$oldIFS
15171+ fi
15172+}
15173+# end: func_convert_core_path_wine_to_w32
15174+
15175+
15176+# func_cygpath ARGS...
15177+# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
15178+# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
15179+# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
15180+# (2), returns the Cygwin file name or path in func_cygpath_result (input
15181+# file name or path is assumed to be in w32 format, as previously converted
15182+# from $build's *nix or MSYS format). In case (3), returns the w32 file name
15183+# or path in func_cygpath_result (input file name or path is assumed to be in
15184+# Cygwin format). Returns an empty string on error.
15185+#
15186+# ARGS are passed to cygpath, with the last one being the file name or path to
15187+# be converted.
15188+#
15189+# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
15190+# environment variable; do not put it in $PATH.
15191+func_cygpath ()
15192+{
15193+ $opt_debug
15194+ if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15195+ func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15196+ if test "$?" -ne 0; then
15197+ # on failure, ensure result is empty
15198+ func_cygpath_result=
15199+ fi
15200+ else
15201+ func_cygpath_result=
15202+ func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
15203+ fi
15204+}
15205+#end: func_cygpath
15206+
15207+
15208+# func_convert_core_msys_to_w32 ARG
15209+# Convert file name or path ARG from MSYS format to w32 format. Return
15210+# result in func_convert_core_msys_to_w32_result.
15211+func_convert_core_msys_to_w32 ()
15212+{
15213+ $opt_debug
15214+ # awkward: cmd appends spaces to result
15215+ func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
15216+ $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
15217+}
15218+#end: func_convert_core_msys_to_w32
15219+
15220+
15221+# func_convert_file_check ARG1 ARG2
15222+# Verify that ARG1 (a file name in $build format) was converted to $host
15223+# format in ARG2. Otherwise, emit an error message, but continue (resetting
15224+# func_to_host_file_result to ARG1).
15225+func_convert_file_check ()
15226+{
15227+ $opt_debug
15228+ if test -z "$2" && test -n "$1" ; then
15229+ func_error "Could not determine host file name corresponding to"
15230+ func_error " \`$1'"
15231+ func_error "Continuing, but uninstalled executables may not work."
15232+ # Fallback:
15233+ func_to_host_file_result="$1"
15234+ fi
15235+}
15236+# end func_convert_file_check
15237+
15238+
15239+# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
15240+# Verify that FROM_PATH (a path in $build format) was converted to $host
15241+# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
15242+# func_to_host_file_result to a simplistic fallback value (see below).
15243+func_convert_path_check ()
15244+{
15245+ $opt_debug
15246+ if test -z "$4" && test -n "$3"; then
15247+ func_error "Could not determine the host path corresponding to"
15248+ func_error " \`$3'"
15249+ func_error "Continuing, but uninstalled executables may not work."
15250+ # Fallback. This is a deliberately simplistic "conversion" and
15251+ # should not be "improved". See libtool.info.
15252+ if test "x$1" != "x$2"; then
15253+ lt_replace_pathsep_chars="s|$1|$2|g"
15254+ func_to_host_path_result=`echo "$3" |
15255+ $SED -e "$lt_replace_pathsep_chars"`
15256+ else
15257+ func_to_host_path_result="$3"
15258+ fi
15259+ fi
15260+}
15261+# end func_convert_path_check
15262+
15263+
15264+# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
15265+# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
15266+# and appending REPL if ORIG matches BACKPAT.
15267+func_convert_path_front_back_pathsep ()
15268+{
15269+ $opt_debug
15270+ case $4 in
15271+ $1 ) func_to_host_path_result="$3$func_to_host_path_result"
15272+ ;;
15273+ esac
15274+ case $4 in
15275+ $2 ) func_append func_to_host_path_result "$3"
15276+ ;;
15277+ esac
15278+}
15279+# end func_convert_path_front_back_pathsep
15280+
15281+
15282+##################################################
15283+# $build to $host FILE NAME CONVERSION FUNCTIONS #
15284+##################################################
15285+# invoked via `$to_host_file_cmd ARG'
15286+#
15287+# In each case, ARG is the path to be converted from $build to $host format.
15288+# Result will be available in $func_to_host_file_result.
15289+
15290+
15291+# func_to_host_file ARG
15292+# Converts the file name ARG from $build format to $host format. Return result
15293+# in func_to_host_file_result.
15294+func_to_host_file ()
15295+{
15296+ $opt_debug
15297+ $to_host_file_cmd "$1"
15298+}
15299+# end func_to_host_file
15300+
15301+
15302+# func_to_tool_file ARG LAZY
15303+# converts the file name ARG from $build format to toolchain format. Return
15304+# result in func_to_tool_file_result. If the conversion in use is listed
15305+# in (the comma separated) LAZY, no conversion takes place.
15306+func_to_tool_file ()
15307+{
15308+ $opt_debug
15309+ case ,$2, in
15310+ *,"$to_tool_file_cmd",*)
15311+ func_to_tool_file_result=$1
15312+ ;;
15313+ *)
15314+ $to_tool_file_cmd "$1"
15315+ func_to_tool_file_result=$func_to_host_file_result
15316+ ;;
15317+ esac
15318+}
15319+# end func_to_tool_file
15320+
15321+
15322+# func_convert_file_noop ARG
15323+# Copy ARG to func_to_host_file_result.
15324+func_convert_file_noop ()
15325+{
15326+ func_to_host_file_result="$1"
15327+}
15328+# end func_convert_file_noop
15329+
15330+
15331+# func_convert_file_msys_to_w32 ARG
15332+# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
15333+# conversion to w32 is not available inside the cwrapper. Returns result in
15334+# func_to_host_file_result.
15335+func_convert_file_msys_to_w32 ()
15336+{
15337+ $opt_debug
15338+ func_to_host_file_result="$1"
15339+ if test -n "$1"; then
15340+ func_convert_core_msys_to_w32 "$1"
15341+ func_to_host_file_result="$func_convert_core_msys_to_w32_result"
15342+ fi
15343+ func_convert_file_check "$1" "$func_to_host_file_result"
15344+}
15345+# end func_convert_file_msys_to_w32
15346+
15347+
15348+# func_convert_file_cygwin_to_w32 ARG
15349+# Convert file name ARG from Cygwin to w32 format. Returns result in
15350+# func_to_host_file_result.
15351+func_convert_file_cygwin_to_w32 ()
15352+{
15353+ $opt_debug
15354+ func_to_host_file_result="$1"
15355+ if test -n "$1"; then
15356+ # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
15357+ # LT_CYGPATH in this case.
15358+ func_to_host_file_result=`cygpath -m "$1"`
15359+ fi
15360+ func_convert_file_check "$1" "$func_to_host_file_result"
15361+}
15362+# end func_convert_file_cygwin_to_w32
15363+
15364+
15365+# func_convert_file_nix_to_w32 ARG
15366+# Convert file name ARG from *nix to w32 format. Requires a wine environment
15367+# and a working winepath. Returns result in func_to_host_file_result.
15368+func_convert_file_nix_to_w32 ()
15369+{
15370+ $opt_debug
15371+ func_to_host_file_result="$1"
15372+ if test -n "$1"; then
15373+ func_convert_core_file_wine_to_w32 "$1"
15374+ func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
15375+ fi
15376+ func_convert_file_check "$1" "$func_to_host_file_result"
15377+}
15378+# end func_convert_file_nix_to_w32
15379+
15380+
15381+# func_convert_file_msys_to_cygwin ARG
15382+# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
15383+# Returns result in func_to_host_file_result.
15384+func_convert_file_msys_to_cygwin ()
15385+{
15386+ $opt_debug
15387+ func_to_host_file_result="$1"
15388+ if test -n "$1"; then
15389+ func_convert_core_msys_to_w32 "$1"
15390+ func_cygpath -u "$func_convert_core_msys_to_w32_result"
15391+ func_to_host_file_result="$func_cygpath_result"
15392+ fi
15393+ func_convert_file_check "$1" "$func_to_host_file_result"
15394+}
15395+# end func_convert_file_msys_to_cygwin
15396+
15397+
15398+# func_convert_file_nix_to_cygwin ARG
15399+# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
15400+# in a wine environment, working winepath, and LT_CYGPATH set. Returns result
15401+# in func_to_host_file_result.
15402+func_convert_file_nix_to_cygwin ()
15403+{
15404+ $opt_debug
15405+ func_to_host_file_result="$1"
15406+ if test -n "$1"; then
15407+ # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
15408+ func_convert_core_file_wine_to_w32 "$1"
15409+ func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
15410+ func_to_host_file_result="$func_cygpath_result"
15411+ fi
15412+ func_convert_file_check "$1" "$func_to_host_file_result"
15413+}
15414+# end func_convert_file_nix_to_cygwin
15415+
15416+
15417+#############################################
15418+# $build to $host PATH CONVERSION FUNCTIONS #
15419+#############################################
15420+# invoked via `$to_host_path_cmd ARG'
15421+#
15422+# In each case, ARG is the path to be converted from $build to $host format.
15423+# The result will be available in $func_to_host_path_result.
15424+#
15425+# Path separators are also converted from $build format to $host format. If
15426+# ARG begins or ends with a path separator character, it is preserved (but
15427+# converted to $host format) on output.
15428+#
15429+# All path conversion functions are named using the following convention:
15430+# file name conversion function : func_convert_file_X_to_Y ()
15431+# path conversion function : func_convert_path_X_to_Y ()
15432+# where, for any given $build/$host combination the 'X_to_Y' value is the
15433+# same. If conversion functions are added for new $build/$host combinations,
15434+# the two new functions must follow this pattern, or func_init_to_host_path_cmd
15435+# will break.
15436+
15437+
15438+# func_init_to_host_path_cmd
15439+# Ensures that function "pointer" variable $to_host_path_cmd is set to the
15440+# appropriate value, based on the value of $to_host_file_cmd.
15441+to_host_path_cmd=
15442+func_init_to_host_path_cmd ()
15443+{
15444+ $opt_debug
15445+ if test -z "$to_host_path_cmd"; then
15446+ func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
15447+ to_host_path_cmd="func_convert_path_${func_stripname_result}"
15448+ fi
15449+}
15450+
15451+
15452+# func_to_host_path ARG
15453+# Converts the path ARG from $build format to $host format. Return result
15454+# in func_to_host_path_result.
15455+func_to_host_path ()
15456+{
15457+ $opt_debug
15458+ func_init_to_host_path_cmd
15459+ $to_host_path_cmd "$1"
15460+}
15461+# end func_to_host_path
15462+
15463+
15464+# func_convert_path_noop ARG
15465+# Copy ARG to func_to_host_path_result.
15466+func_convert_path_noop ()
15467+{
15468+ func_to_host_path_result="$1"
15469+}
15470+# end func_convert_path_noop
15471+
15472+
15473+# func_convert_path_msys_to_w32 ARG
15474+# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
15475+# conversion to w32 is not available inside the cwrapper. Returns result in
15476+# func_to_host_path_result.
15477+func_convert_path_msys_to_w32 ()
15478+{
15479+ $opt_debug
15480+ func_to_host_path_result="$1"
15481+ if test -n "$1"; then
15482+ # Remove leading and trailing path separator characters from ARG. MSYS
15483+ # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
15484+ # and winepath ignores them completely.
15485+ func_stripname : : "$1"
15486+ func_to_host_path_tmp1=$func_stripname_result
15487+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
15488+ func_to_host_path_result="$func_convert_core_msys_to_w32_result"
15489+ func_convert_path_check : ";" \
15490+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
15491+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
15492+ fi
15493+}
15494+# end func_convert_path_msys_to_w32
15495+
15496+
15497+# func_convert_path_cygwin_to_w32 ARG
15498+# Convert path ARG from Cygwin to w32 format. Returns result in
15499+# func_to_host_file_result.
15500+func_convert_path_cygwin_to_w32 ()
15501+{
15502+ $opt_debug
15503+ func_to_host_path_result="$1"
15504+ if test -n "$1"; then
15505+ # See func_convert_path_msys_to_w32:
15506+ func_stripname : : "$1"
15507+ func_to_host_path_tmp1=$func_stripname_result
15508+ func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
15509+ func_convert_path_check : ";" \
15510+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
15511+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
15512+ fi
15513+}
15514+# end func_convert_path_cygwin_to_w32
15515+
15516+
15517+# func_convert_path_nix_to_w32 ARG
15518+# Convert path ARG from *nix to w32 format. Requires a wine environment and
15519+# a working winepath. Returns result in func_to_host_file_result.
15520+func_convert_path_nix_to_w32 ()
15521+{
15522+ $opt_debug
15523+ func_to_host_path_result="$1"
15524+ if test -n "$1"; then
15525+ # See func_convert_path_msys_to_w32:
15526+ func_stripname : : "$1"
15527+ func_to_host_path_tmp1=$func_stripname_result
15528+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
15529+ func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
15530+ func_convert_path_check : ";" \
15531+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
15532+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
15533+ fi
15534+}
15535+# end func_convert_path_nix_to_w32
15536+
15537+
15538+# func_convert_path_msys_to_cygwin ARG
15539+# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
15540+# Returns result in func_to_host_file_result.
15541+func_convert_path_msys_to_cygwin ()
15542+{
15543+ $opt_debug
15544+ func_to_host_path_result="$1"
15545+ if test -n "$1"; then
15546+ # See func_convert_path_msys_to_w32:
15547+ func_stripname : : "$1"
15548+ func_to_host_path_tmp1=$func_stripname_result
15549+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
15550+ func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
15551+ func_to_host_path_result="$func_cygpath_result"
15552+ func_convert_path_check : : \
15553+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
15554+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
15555+ fi
15556+}
15557+# end func_convert_path_msys_to_cygwin
15558+
15559+
15560+# func_convert_path_nix_to_cygwin ARG
15561+# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
15562+# a wine environment, working winepath, and LT_CYGPATH set. Returns result in
15563+# func_to_host_file_result.
15564+func_convert_path_nix_to_cygwin ()
15565+{
15566+ $opt_debug
15567+ func_to_host_path_result="$1"
15568+ if test -n "$1"; then
15569+ # Remove leading and trailing path separator characters from
15570+ # ARG. msys behavior is inconsistent here, cygpath turns them
15571+ # into '.;' and ';.', and winepath ignores them completely.
15572+ func_stripname : : "$1"
15573+ func_to_host_path_tmp1=$func_stripname_result
15574+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
15575+ func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
15576+ func_to_host_path_result="$func_cygpath_result"
15577+ func_convert_path_check : : \
15578+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
15579+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
15580+ fi
15581+}
15582+# end func_convert_path_nix_to_cygwin
15583+
15584+
15585 # func_mode_compile arg...
15586 func_mode_compile ()
15587 {
15588@@ -1314,12 +1985,12 @@ func_mode_compile ()
15589 ;;
15590
15591 -pie | -fpie | -fPIE)
15592- pie_flag="$pie_flag $arg"
15593+ func_append pie_flag " $arg"
15594 continue
15595 ;;
15596
15597 -shared | -static | -prefer-pic | -prefer-non-pic)
15598- later="$later $arg"
15599+ func_append later " $arg"
15600 continue
15601 ;;
15602
15603@@ -1340,15 +2011,14 @@ func_mode_compile ()
15604 save_ifs="$IFS"; IFS=','
15605 for arg in $args; do
15606 IFS="$save_ifs"
15607- func_quote_for_eval "$arg"
15608- lastarg="$lastarg $func_quote_for_eval_result"
15609+ func_append_quoted lastarg "$arg"
15610 done
15611 IFS="$save_ifs"
15612 func_stripname ' ' '' "$lastarg"
15613 lastarg=$func_stripname_result
15614
15615 # Add the arguments to base_compile.
15616- base_compile="$base_compile $lastarg"
15617+ func_append base_compile " $lastarg"
15618 continue
15619 ;;
15620
15621@@ -1364,8 +2034,7 @@ func_mode_compile ()
15622 esac # case $arg_mode
15623
15624 # Aesthetically quote the previous argument.
15625- func_quote_for_eval "$lastarg"
15626- base_compile="$base_compile $func_quote_for_eval_result"
15627+ func_append_quoted base_compile "$lastarg"
15628 done # for arg
15629
15630 case $arg_mode in
15631@@ -1496,17 +2165,16 @@ compiler."
15632 $opt_dry_run || $RM $removelist
15633 exit $EXIT_FAILURE
15634 fi
15635- removelist="$removelist $output_obj"
15636+ func_append removelist " $output_obj"
15637 $ECHO "$srcfile" > "$lockfile"
15638 fi
15639
15640 $opt_dry_run || $RM $removelist
15641- removelist="$removelist $lockfile"
15642+ func_append removelist " $lockfile"
15643 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
15644
15645- if test -n "$fix_srcfile_path"; then
15646- eval "srcfile=\"$fix_srcfile_path\""
15647- fi
15648+ func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
15649+ srcfile=$func_to_tool_file_result
15650 func_quote_for_eval "$srcfile"
15651 qsrcfile=$func_quote_for_eval_result
15652
15653@@ -1526,7 +2194,7 @@ compiler."
15654
15655 if test -z "$output_obj"; then
15656 # Place PIC objects in $objdir
15657- command="$command -o $lobj"
15658+ func_append command " -o $lobj"
15659 fi
15660
15661 func_show_eval_locale "$command" \
15662@@ -1573,11 +2241,11 @@ compiler."
15663 command="$base_compile $qsrcfile $pic_flag"
15664 fi
15665 if test "$compiler_c_o" = yes; then
15666- command="$command -o $obj"
15667+ func_append command " -o $obj"
15668 fi
15669
15670 # Suppress compiler output if we already did a PIC compilation.
15671- command="$command$suppress_output"
15672+ func_append command "$suppress_output"
15673 func_show_eval_locale "$command" \
15674 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
15675
15676@@ -1622,13 +2290,13 @@ compiler."
15677 }
15678
15679 $opt_help || {
15680- test "$mode" = compile && func_mode_compile ${1+"$@"}
15681+ test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
15682 }
15683
15684 func_mode_help ()
15685 {
15686 # We need to display help for each of the modes.
15687- case $mode in
15688+ case $opt_mode in
15689 "")
15690 # Generic help is extracted from the usage comments
15691 # at the start of this file.
15692@@ -1659,8 +2327,8 @@ This mode accepts the following additional options:
15693
15694 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
15695 -no-suppress do not suppress compiler output for multiple passes
15696- -prefer-pic try to building PIC objects only
15697- -prefer-non-pic try to building non-PIC objects only
15698+ -prefer-pic try to build PIC objects only
15699+ -prefer-non-pic try to build non-PIC objects only
15700 -shared do not build a \`.o' file suitable for static linking
15701 -static only build a \`.o' file suitable for static linking
15702 -Wc,FLAG pass FLAG directly to the compiler
15703@@ -1804,7 +2472,7 @@ Otherwise, only FILE itself is deleted using RM."
15704 ;;
15705
15706 *)
15707- func_fatal_help "invalid operation mode \`$mode'"
15708+ func_fatal_help "invalid operation mode \`$opt_mode'"
15709 ;;
15710 esac
15711
15712@@ -1819,13 +2487,13 @@ if $opt_help; then
15713 else
15714 {
15715 func_help noexit
15716- for mode in compile link execute install finish uninstall clean; do
15717+ for opt_mode in compile link execute install finish uninstall clean; do
15718 func_mode_help
15719 done
15720 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
15721 {
15722 func_help noexit
15723- for mode in compile link execute install finish uninstall clean; do
15724+ for opt_mode in compile link execute install finish uninstall clean; do
15725 echo
15726 func_mode_help
15727 done
15728@@ -1854,13 +2522,16 @@ func_mode_execute ()
15729 func_fatal_help "you must specify a COMMAND"
15730
15731 # Handle -dlopen flags immediately.
15732- for file in $execute_dlfiles; do
15733+ for file in $opt_dlopen; do
15734 test -f "$file" \
15735 || func_fatal_help "\`$file' is not a file"
15736
15737 dir=
15738 case $file in
15739 *.la)
15740+ func_resolve_sysroot "$file"
15741+ file=$func_resolve_sysroot_result
15742+
15743 # Check to see that this really is a libtool archive.
15744 func_lalib_unsafe_p "$file" \
15745 || func_fatal_help "\`$lib' is not a valid libtool archive"
15746@@ -1882,7 +2553,7 @@ func_mode_execute ()
15747 dir="$func_dirname_result"
15748
15749 if test -f "$dir/$objdir/$dlname"; then
15750- dir="$dir/$objdir"
15751+ func_append dir "/$objdir"
15752 else
15753 if test ! -f "$dir/$dlname"; then
15754 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
15755@@ -1907,10 +2578,10 @@ func_mode_execute ()
15756 test -n "$absdir" && dir="$absdir"
15757
15758 # Now add the directory to shlibpath_var.
15759- if eval test -z \"\$$shlibpath_var\"; then
15760- eval $shlibpath_var=\$dir
15761+ if eval "test -z \"\$$shlibpath_var\""; then
15762+ eval "$shlibpath_var=\"\$dir\""
15763 else
15764- eval $shlibpath_var=\$dir:\$$shlibpath_var
15765+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
15766 fi
15767 done
15768
15769@@ -1939,8 +2610,7 @@ func_mode_execute ()
15770 ;;
15771 esac
15772 # Quote arguments (to preserve shell metacharacters).
15773- func_quote_for_eval "$file"
15774- args="$args $func_quote_for_eval_result"
15775+ func_append_quoted args "$file"
15776 done
15777
15778 if test "X$opt_dry_run" = Xfalse; then
15779@@ -1972,22 +2642,59 @@ func_mode_execute ()
15780 fi
15781 }
15782
15783-test "$mode" = execute && func_mode_execute ${1+"$@"}
15784+test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
15785
15786
15787 # func_mode_finish arg...
15788 func_mode_finish ()
15789 {
15790 $opt_debug
15791- libdirs="$nonopt"
15792+ libs=
15793+ libdirs=
15794 admincmds=
15795
15796- if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
15797- for dir
15798- do
15799- libdirs="$libdirs $dir"
15800- done
15801+ for opt in "$nonopt" ${1+"$@"}
15802+ do
15803+ if test -d "$opt"; then
15804+ func_append libdirs " $opt"
15805
15806+ elif test -f "$opt"; then
15807+ if func_lalib_unsafe_p "$opt"; then
15808+ func_append libs " $opt"
15809+ else
15810+ func_warning "\`$opt' is not a valid libtool archive"
15811+ fi
15812+
15813+ else
15814+ func_fatal_error "invalid argument \`$opt'"
15815+ fi
15816+ done
15817+
15818+ if test -n "$libs"; then
15819+ if test -n "$lt_sysroot"; then
15820+ sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
15821+ sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
15822+ else
15823+ sysroot_cmd=
15824+ fi
15825+
15826+ # Remove sysroot references
15827+ if $opt_dry_run; then
15828+ for lib in $libs; do
15829+ echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
15830+ done
15831+ else
15832+ tmpdir=`func_mktempdir`
15833+ for lib in $libs; do
15834+ sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
15835+ > $tmpdir/tmp-la
15836+ mv -f $tmpdir/tmp-la $lib
15837+ done
15838+ ${RM}r "$tmpdir"
15839+ fi
15840+ fi
15841+
15842+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
15843 for libdir in $libdirs; do
15844 if test -n "$finish_cmds"; then
15845 # Do each command in the finish commands.
15846@@ -1997,7 +2704,7 @@ func_mode_finish ()
15847 if test -n "$finish_eval"; then
15848 # Do the single finish_eval.
15849 eval cmds=\"$finish_eval\"
15850- $opt_dry_run || eval "$cmds" || admincmds="$admincmds
15851+ $opt_dry_run || eval "$cmds" || func_append admincmds "
15852 $cmds"
15853 fi
15854 done
15855@@ -2006,53 +2713,55 @@ func_mode_finish ()
15856 # Exit here if they wanted silent mode.
15857 $opt_silent && exit $EXIT_SUCCESS
15858
15859- echo "----------------------------------------------------------------------"
15860- echo "Libraries have been installed in:"
15861- for libdir in $libdirs; do
15862- $ECHO " $libdir"
15863- done
15864- echo
15865- echo "If you ever happen to want to link against installed libraries"
15866- echo "in a given directory, LIBDIR, you must either use libtool, and"
15867- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
15868- echo "flag during linking and do at least one of the following:"
15869- if test -n "$shlibpath_var"; then
15870- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
15871- echo " during execution"
15872- fi
15873- if test -n "$runpath_var"; then
15874- echo " - add LIBDIR to the \`$runpath_var' environment variable"
15875- echo " during linking"
15876- fi
15877- if test -n "$hardcode_libdir_flag_spec"; then
15878- libdir=LIBDIR
15879- eval "flag=\"$hardcode_libdir_flag_spec\""
15880+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
15881+ echo "----------------------------------------------------------------------"
15882+ echo "Libraries have been installed in:"
15883+ for libdir in $libdirs; do
15884+ $ECHO " $libdir"
15885+ done
15886+ echo
15887+ echo "If you ever happen to want to link against installed libraries"
15888+ echo "in a given directory, LIBDIR, you must either use libtool, and"
15889+ echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
15890+ echo "flag during linking and do at least one of the following:"
15891+ if test -n "$shlibpath_var"; then
15892+ echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
15893+ echo " during execution"
15894+ fi
15895+ if test -n "$runpath_var"; then
15896+ echo " - add LIBDIR to the \`$runpath_var' environment variable"
15897+ echo " during linking"
15898+ fi
15899+ if test -n "$hardcode_libdir_flag_spec"; then
15900+ libdir=LIBDIR
15901+ eval flag=\"$hardcode_libdir_flag_spec\"
15902
15903- $ECHO " - use the \`$flag' linker flag"
15904- fi
15905- if test -n "$admincmds"; then
15906- $ECHO " - have your system administrator run these commands:$admincmds"
15907- fi
15908- if test -f /etc/ld.so.conf; then
15909- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
15910- fi
15911- echo
15912+ $ECHO " - use the \`$flag' linker flag"
15913+ fi
15914+ if test -n "$admincmds"; then
15915+ $ECHO " - have your system administrator run these commands:$admincmds"
15916+ fi
15917+ if test -f /etc/ld.so.conf; then
15918+ echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
15919+ fi
15920+ echo
15921
15922- echo "See any operating system documentation about shared libraries for"
15923- case $host in
15924- solaris2.[6789]|solaris2.1[0-9])
15925- echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
15926- echo "pages."
15927- ;;
15928- *)
15929- echo "more information, such as the ld(1) and ld.so(8) manual pages."
15930- ;;
15931- esac
15932- echo "----------------------------------------------------------------------"
15933+ echo "See any operating system documentation about shared libraries for"
15934+ case $host in
15935+ solaris2.[6789]|solaris2.1[0-9])
15936+ echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
15937+ echo "pages."
15938+ ;;
15939+ *)
15940+ echo "more information, such as the ld(1) and ld.so(8) manual pages."
15941+ ;;
15942+ esac
15943+ echo "----------------------------------------------------------------------"
15944+ fi
15945 exit $EXIT_SUCCESS
15946 }
15947
15948-test "$mode" = finish && func_mode_finish ${1+"$@"}
15949+test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
15950
15951
15952 # func_mode_install arg...
15953@@ -2077,7 +2786,7 @@ func_mode_install ()
15954 # The real first argument should be the name of the installation program.
15955 # Aesthetically quote it.
15956 func_quote_for_eval "$arg"
15957- install_prog="$install_prog$func_quote_for_eval_result"
15958+ func_append install_prog "$func_quote_for_eval_result"
15959 install_shared_prog=$install_prog
15960 case " $install_prog " in
15961 *[\\\ /]cp\ *) install_cp=: ;;
15962@@ -2097,7 +2806,7 @@ func_mode_install ()
15963 do
15964 arg2=
15965 if test -n "$dest"; then
15966- files="$files $dest"
15967+ func_append files " $dest"
15968 dest=$arg
15969 continue
15970 fi
15971@@ -2135,11 +2844,11 @@ func_mode_install ()
15972
15973 # Aesthetically quote the argument.
15974 func_quote_for_eval "$arg"
15975- install_prog="$install_prog $func_quote_for_eval_result"
15976+ func_append install_prog " $func_quote_for_eval_result"
15977 if test -n "$arg2"; then
15978 func_quote_for_eval "$arg2"
15979 fi
15980- install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
15981+ func_append install_shared_prog " $func_quote_for_eval_result"
15982 done
15983
15984 test -z "$install_prog" && \
15985@@ -2151,7 +2860,7 @@ func_mode_install ()
15986 if test -n "$install_override_mode" && $no_mode; then
15987 if $install_cp; then :; else
15988 func_quote_for_eval "$install_override_mode"
15989- install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
15990+ func_append install_shared_prog " -m $func_quote_for_eval_result"
15991 fi
15992 fi
15993
15994@@ -2209,10 +2918,13 @@ func_mode_install ()
15995 case $file in
15996 *.$libext)
15997 # Do the static libraries later.
15998- staticlibs="$staticlibs $file"
15999+ func_append staticlibs " $file"
16000 ;;
16001
16002 *.la)
16003+ func_resolve_sysroot "$file"
16004+ file=$func_resolve_sysroot_result
16005+
16006 # Check to see that this really is a libtool archive.
16007 func_lalib_unsafe_p "$file" \
16008 || func_fatal_help "\`$file' is not a valid libtool archive"
16009@@ -2226,23 +2938,30 @@ func_mode_install ()
16010 if test "X$destdir" = "X$libdir"; then
16011 case "$current_libdirs " in
16012 *" $libdir "*) ;;
16013- *) current_libdirs="$current_libdirs $libdir" ;;
16014+ *) func_append current_libdirs " $libdir" ;;
16015 esac
16016 else
16017 # Note the libdir as a future libdir.
16018 case "$future_libdirs " in
16019 *" $libdir "*) ;;
16020- *) future_libdirs="$future_libdirs $libdir" ;;
16021+ *) func_append future_libdirs " $libdir" ;;
16022 esac
16023 fi
16024
16025 func_dirname "$file" "/" ""
16026 dir="$func_dirname_result"
16027- dir="$dir$objdir"
16028+ func_append dir "$objdir"
16029
16030 if test -n "$relink_command"; then
16031+ # Strip any trailing slash from the destination.
16032+ func_stripname '' '/' "$libdir"
16033+ destlibdir=$func_stripname_result
16034+
16035+ func_stripname '' '/' "$destdir"
16036+ s_destdir=$func_stripname_result
16037+
16038 # Determine the prefix the user has applied to our future dir.
16039- inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
16040+ inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"`
16041
16042 # Don't allow the user to place us outside of our expected
16043 # location b/c this prevents finding dependent libraries that
16044@@ -2315,7 +3034,7 @@ func_mode_install ()
16045 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
16046
16047 # Maybe install the static library, too.
16048- test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
16049+ test -n "$old_library" && func_append staticlibs " $dir/$old_library"
16050 ;;
16051
16052 *.lo)
16053@@ -2503,7 +3222,7 @@ func_mode_install ()
16054 test -n "$future_libdirs" && \
16055 func_warning "remember to run \`$progname --finish$future_libdirs'"
16056
16057- if test -n "$current_libdirs" && $opt_finish; then
16058+ if test -n "$current_libdirs"; then
16059 # Maybe just do a dry run.
16060 $opt_dry_run && current_libdirs=" -n$current_libdirs"
16061 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
16062@@ -2512,7 +3231,7 @@ func_mode_install ()
16063 fi
16064 }
16065
16066-test "$mode" = install && func_mode_install ${1+"$@"}
16067+test "$opt_mode" = install && func_mode_install ${1+"$@"}
16068
16069
16070 # func_generate_dlsyms outputname originator pic_p
16071@@ -2559,6 +3278,18 @@ extern \"C\" {
16072 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
16073 #endif
16074
16075+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
16076+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
16077+/* DATA imports from DLLs on WIN32 con't be const, because runtime
16078+ relocations are performed -- see ld's documentation on pseudo-relocs. */
16079+# define LT_DLSYM_CONST
16080+#elif defined(__osf__)
16081+/* This system does not cope well with relocations in const data. */
16082+# define LT_DLSYM_CONST
16083+#else
16084+# define LT_DLSYM_CONST const
16085+#endif
16086+
16087 /* External symbol declarations for the compiler. */\
16088 "
16089
16090@@ -2570,21 +3301,22 @@ extern \"C\" {
16091 # Add our own program objects to the symbol list.
16092 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
16093 for progfile in $progfiles; do
16094- func_verbose "extracting global C symbols from \`$progfile'"
16095- $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
16096+ func_to_tool_file "$progfile" func_convert_file_msys_to_w32
16097+ func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
16098+ $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
16099 done
16100
16101 if test -n "$exclude_expsyms"; then
16102 $opt_dry_run || {
16103- $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
16104- $MV "$nlist"T "$nlist"
16105+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
16106+ eval '$MV "$nlist"T "$nlist"'
16107 }
16108 fi
16109
16110 if test -n "$export_symbols_regex"; then
16111 $opt_dry_run || {
16112- $EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T
16113- $MV "$nlist"T "$nlist"
16114+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
16115+ eval '$MV "$nlist"T "$nlist"'
16116 }
16117 fi
16118
16119@@ -2593,23 +3325,23 @@ extern \"C\" {
16120 export_symbols="$output_objdir/$outputname.exp"
16121 $opt_dry_run || {
16122 $RM $export_symbols
16123- ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols"
16124+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
16125 case $host in
16126 *cygwin* | *mingw* | *cegcc* )
16127- echo EXPORTS > "$output_objdir/$outputname.def"
16128- cat "$export_symbols" >> "$output_objdir/$outputname.def"
16129+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
16130+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
16131 ;;
16132 esac
16133 }
16134 else
16135 $opt_dry_run || {
16136- ${SED} -e 's/\([].[*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/' < "$export_symbols" > "$output_objdir/$outputname.exp"
16137- $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T
16138- $MV "$nlist"T "$nlist"
16139+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
16140+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
16141+ eval '$MV "$nlist"T "$nlist"'
16142 case $host in
16143 *cygwin* | *mingw* | *cegcc* )
16144- echo EXPORTS > "$output_objdir/$outputname.def"
16145- cat "$nlist" >> "$output_objdir/$outputname.def"
16146+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
16147+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
16148 ;;
16149 esac
16150 }
16151@@ -2620,10 +3352,52 @@ extern \"C\" {
16152 func_verbose "extracting global C symbols from \`$dlprefile'"
16153 func_basename "$dlprefile"
16154 name="$func_basename_result"
16155- $opt_dry_run || {
16156- $ECHO ": $name " >> "$nlist"
16157- eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
16158- }
16159+ case $host in
16160+ *cygwin* | *mingw* | *cegcc* )
16161+ # if an import library, we need to obtain dlname
16162+ if func_win32_import_lib_p "$dlprefile"; then
16163+ func_tr_sh "$dlprefile"
16164+ eval "curr_lafile=\$libfile_$func_tr_sh_result"
16165+ dlprefile_dlbasename=""
16166+ if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
16167+ # Use subshell, to avoid clobbering current variable values
16168+ dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
16169+ if test -n "$dlprefile_dlname" ; then
16170+ func_basename "$dlprefile_dlname"
16171+ dlprefile_dlbasename="$func_basename_result"
16172+ else
16173+ # no lafile. user explicitly requested -dlpreopen <import library>.
16174+ $sharedlib_from_linklib_cmd "$dlprefile"
16175+ dlprefile_dlbasename=$sharedlib_from_linklib_result
16176+ fi
16177+ fi
16178+ $opt_dry_run || {
16179+ if test -n "$dlprefile_dlbasename" ; then
16180+ eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
16181+ else
16182+ func_warning "Could not compute DLL name from $name"
16183+ eval '$ECHO ": $name " >> "$nlist"'
16184+ fi
16185+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
16186+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
16187+ $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
16188+ }
16189+ else # not an import lib
16190+ $opt_dry_run || {
16191+ eval '$ECHO ": $name " >> "$nlist"'
16192+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
16193+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
16194+ }
16195+ fi
16196+ ;;
16197+ *)
16198+ $opt_dry_run || {
16199+ eval '$ECHO ": $name " >> "$nlist"'
16200+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
16201+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
16202+ }
16203+ ;;
16204+ esac
16205 done
16206
16207 $opt_dry_run || {
16208@@ -2661,26 +3435,9 @@ typedef struct {
16209 const char *name;
16210 void *address;
16211 } lt_dlsymlist;
16212-"
16213- case $host in
16214- *cygwin* | *mingw* | *cegcc* )
16215- echo >> "$output_objdir/$my_dlsyms" "\
16216-/* DATA imports from DLLs on WIN32 con't be const, because
16217- runtime relocations are performed -- see ld's documentation
16218- on pseudo-relocs. */"
16219- lt_dlsym_const= ;;
16220- *osf5*)
16221- echo >> "$output_objdir/$my_dlsyms" "\
16222-/* This system does not cope well with relocations in const data */"
16223- lt_dlsym_const= ;;
16224- *)
16225- lt_dlsym_const=const ;;
16226- esac
16227-
16228- echo >> "$output_objdir/$my_dlsyms" "\
16229-extern $lt_dlsym_const lt_dlsymlist
16230+extern LT_DLSYM_CONST lt_dlsymlist
16231 lt_${my_prefix}_LTX_preloaded_symbols[];
16232-$lt_dlsym_const lt_dlsymlist
16233+LT_DLSYM_CONST lt_dlsymlist
16234 lt_${my_prefix}_LTX_preloaded_symbols[] =
16235 {\
16236 { \"$my_originator\", (void *) 0 },"
16237@@ -2736,7 +3493,7 @@ static const void *lt_preloaded_setup() {
16238 for arg in $LTCFLAGS; do
16239 case $arg in
16240 -pie | -fpie | -fPIE) ;;
16241- *) symtab_cflags="$symtab_cflags $arg" ;;
16242+ *) func_append symtab_cflags " $arg" ;;
16243 esac
16244 done
16245
16246@@ -2796,9 +3553,11 @@ func_win32_libid ()
16247 win32_libid_type="x86 archive import"
16248 ;;
16249 *ar\ archive*) # could be an import, or static
16250- if $OBJDUMP -f "$1" | $SED -e '10q' 2>/dev/null |
16251- $EGREP 'file format (pe-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
16252- win32_nmres=`$NM -f posix -A "$1" |
16253+ # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
16254+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
16255+ $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
16256+ func_to_tool_file "$1" func_convert_file_msys_to_w32
16257+ win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
16258 $SED -n -e '
16259 1,100{
16260 / I /{
16261@@ -2827,6 +3586,131 @@ func_win32_libid ()
16262 $ECHO "$win32_libid_type"
16263 }
16264
16265+# func_cygming_dll_for_implib ARG
16266+#
16267+# Platform-specific function to extract the
16268+# name of the DLL associated with the specified
16269+# import library ARG.
16270+# Invoked by eval'ing the libtool variable
16271+# $sharedlib_from_linklib_cmd
16272+# Result is available in the variable
16273+# $sharedlib_from_linklib_result
16274+func_cygming_dll_for_implib ()
16275+{
16276+ $opt_debug
16277+ sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
16278+}
16279+
16280+# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
16281+#
16282+# The is the core of a fallback implementation of a
16283+# platform-specific function to extract the name of the
16284+# DLL associated with the specified import library LIBNAME.
16285+#
16286+# SECTION_NAME is either .idata$6 or .idata$7, depending
16287+# on the platform and compiler that created the implib.
16288+#
16289+# Echos the name of the DLL associated with the
16290+# specified import library.
16291+func_cygming_dll_for_implib_fallback_core ()
16292+{
16293+ $opt_debug
16294+ match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
16295+ $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
16296+ $SED '/^Contents of section '"$match_literal"':/{
16297+ # Place marker at beginning of archive member dllname section
16298+ s/.*/====MARK====/
16299+ p
16300+ d
16301+ }
16302+ # These lines can sometimes be longer than 43 characters, but
16303+ # are always uninteresting
16304+ /:[ ]*file format pe[i]\{,1\}-/d
16305+ /^In archive [^:]*:/d
16306+ # Ensure marker is printed
16307+ /^====MARK====/p
16308+ # Remove all lines with less than 43 characters
16309+ /^.\{43\}/!d
16310+ # From remaining lines, remove first 43 characters
16311+ s/^.\{43\}//' |
16312+ $SED -n '
16313+ # Join marker and all lines until next marker into a single line
16314+ /^====MARK====/ b para
16315+ H
16316+ $ b para
16317+ b
16318+ :para
16319+ x
16320+ s/\n//g
16321+ # Remove the marker
16322+ s/^====MARK====//
16323+ # Remove trailing dots and whitespace
16324+ s/[\. \t]*$//
16325+ # Print
16326+ /./p' |
16327+ # we now have a list, one entry per line, of the stringified
16328+ # contents of the appropriate section of all members of the
16329+ # archive which possess that section. Heuristic: eliminate
16330+ # all those which have a first or second character that is
16331+ # a '.' (that is, objdump's representation of an unprintable
16332+ # character.) This should work for all archives with less than
16333+ # 0x302f exports -- but will fail for DLLs whose name actually
16334+ # begins with a literal '.' or a single character followed by
16335+ # a '.'.
16336+ #
16337+ # Of those that remain, print the first one.
16338+ $SED -e '/^\./d;/^.\./d;q'
16339+}
16340+
16341+# func_cygming_gnu_implib_p ARG
16342+# This predicate returns with zero status (TRUE) if
16343+# ARG is a GNU/binutils-style import library. Returns
16344+# with nonzero status (FALSE) otherwise.
16345+func_cygming_gnu_implib_p ()
16346+{
16347+ $opt_debug
16348+ func_to_tool_file "$1" func_convert_file_msys_to_w32
16349+ 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)$'`
16350+ test -n "$func_cygming_gnu_implib_tmp"
16351+}
16352+
16353+# func_cygming_ms_implib_p ARG
16354+# This predicate returns with zero status (TRUE) if
16355+# ARG is an MS-style import library. Returns
16356+# with nonzero status (FALSE) otherwise.
16357+func_cygming_ms_implib_p ()
16358+{
16359+ $opt_debug
16360+ func_to_tool_file "$1" func_convert_file_msys_to_w32
16361+ func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
16362+ test -n "$func_cygming_ms_implib_tmp"
16363+}
16364+
16365+# func_cygming_dll_for_implib_fallback ARG
16366+# Platform-specific function to extract the
16367+# name of the DLL associated with the specified
16368+# import library ARG.
16369+#
16370+# This fallback implementation is for use when $DLLTOOL
16371+# does not support the --identify-strict option.
16372+# Invoked by eval'ing the libtool variable
16373+# $sharedlib_from_linklib_cmd
16374+# Result is available in the variable
16375+# $sharedlib_from_linklib_result
16376+func_cygming_dll_for_implib_fallback ()
16377+{
16378+ $opt_debug
16379+ if func_cygming_gnu_implib_p "$1" ; then
16380+ # binutils import library
16381+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
16382+ elif func_cygming_ms_implib_p "$1" ; then
16383+ # ms-generated import library
16384+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
16385+ else
16386+ # unknown
16387+ sharedlib_from_linklib_result=""
16388+ fi
16389+}
16390
16391
16392 # func_extract_an_archive dir oldlib
16393@@ -2917,7 +3801,7 @@ func_extract_archives ()
16394 darwin_file=
16395 darwin_files=
16396 for darwin_file in $darwin_filelist; do
16397- darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
16398+ darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
16399 $LIPO -create -output "$darwin_file" $darwin_files
16400 done # $darwin_filelist
16401 $RM -rf unfat-$$
16402@@ -2932,7 +3816,7 @@ func_extract_archives ()
16403 func_extract_an_archive "$my_xdir" "$my_xabs"
16404 ;;
16405 esac
16406- my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
16407+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
16408 done
16409
16410 func_extract_archives_result="$my_oldobjs"
16411@@ -3014,7 +3898,110 @@ func_fallback_echo ()
16412 _LTECHO_EOF'
16413 }
16414 ECHO=\"$qECHO\"
16415- fi\
16416+ fi
16417+
16418+# Very basic option parsing. These options are (a) specific to
16419+# the libtool wrapper, (b) are identical between the wrapper
16420+# /script/ and the wrapper /executable/ which is used only on
16421+# windows platforms, and (c) all begin with the string "--lt-"
16422+# (application programs are unlikely to have options which match
16423+# this pattern).
16424+#
16425+# There are only two supported options: --lt-debug and
16426+# --lt-dump-script. There is, deliberately, no --lt-help.
16427+#
16428+# The first argument to this parsing function should be the
16429+# script's $0 value, followed by "$@".
16430+lt_option_debug=
16431+func_parse_lt_options ()
16432+{
16433+ lt_script_arg0=\$0
16434+ shift
16435+ for lt_opt
16436+ do
16437+ case \"\$lt_opt\" in
16438+ --lt-debug) lt_option_debug=1 ;;
16439+ --lt-dump-script)
16440+ lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
16441+ test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
16442+ lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
16443+ cat \"\$lt_dump_D/\$lt_dump_F\"
16444+ exit 0
16445+ ;;
16446+ --lt-*)
16447+ \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
16448+ exit 1
16449+ ;;
16450+ esac
16451+ done
16452+
16453+ # Print the debug banner immediately:
16454+ if test -n \"\$lt_option_debug\"; then
16455+ echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
16456+ fi
16457+}
16458+
16459+# Used when --lt-debug. Prints its arguments to stdout
16460+# (redirection is the responsibility of the caller)
16461+func_lt_dump_args ()
16462+{
16463+ lt_dump_args_N=1;
16464+ for lt_arg
16465+ do
16466+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
16467+ lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
16468+ done
16469+}
16470+
16471+# Core function for launching the target application
16472+func_exec_program_core ()
16473+{
16474+"
16475+ case $host in
16476+ # Backslashes separate directories on plain windows
16477+ *-*-mingw | *-*-os2* | *-cegcc*)
16478+ $ECHO "\
16479+ if test -n \"\$lt_option_debug\"; then
16480+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
16481+ func_lt_dump_args \${1+\"\$@\"} 1>&2
16482+ fi
16483+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
16484+"
16485+ ;;
16486+
16487+ *)
16488+ $ECHO "\
16489+ if test -n \"\$lt_option_debug\"; then
16490+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
16491+ func_lt_dump_args \${1+\"\$@\"} 1>&2
16492+ fi
16493+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
16494+"
16495+ ;;
16496+ esac
16497+ $ECHO "\
16498+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
16499+ exit 1
16500+}
16501+
16502+# A function to encapsulate launching the target application
16503+# Strips options in the --lt-* namespace from \$@ and
16504+# launches target application with the remaining arguments.
16505+func_exec_program ()
16506+{
16507+ for lt_wr_arg
16508+ do
16509+ case \$lt_wr_arg in
16510+ --lt-*) ;;
16511+ *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
16512+ esac
16513+ shift
16514+ done
16515+ func_exec_program_core \${1+\"\$@\"}
16516+}
16517+
16518+ # Parse options
16519+ func_parse_lt_options \"\$0\" \${1+\"\$@\"}
16520
16521 # Find the directory that this script lives in.
16522 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
16523@@ -3078,7 +4065,7 @@ _LTECHO_EOF'
16524
16525 # relink executable if necessary
16526 if test -n \"\$relink_command\"; then
16527- if relink_command_output=\`eval \"\$relink_command\" 2>&1\`; then :
16528+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
16529 else
16530 $ECHO \"\$relink_command_output\" >&2
16531 $RM \"\$progdir/\$file\"
16532@@ -3102,6 +4089,18 @@ _LTECHO_EOF'
16533
16534 if test -f \"\$progdir/\$program\"; then"
16535
16536+ # fixup the dll searchpath if we need to.
16537+ #
16538+ # Fix the DLL searchpath if we need to. Do this before prepending
16539+ # to shlibpath, because on Windows, both are PATH and uninstalled
16540+ # libraries must come first.
16541+ if test -n "$dllsearchpath"; then
16542+ $ECHO "\
16543+ # Add the dll search path components to the executable PATH
16544+ PATH=$dllsearchpath:\$PATH
16545+"
16546+ fi
16547+
16548 # Export our shlibpath_var if we have one.
16549 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
16550 $ECHO "\
16551@@ -3116,35 +4115,10 @@ _LTECHO_EOF'
16552 "
16553 fi
16554
16555- # fixup the dll searchpath if we need to.
16556- if test -n "$dllsearchpath"; then
16557- $ECHO "\
16558- # Add the dll search path components to the executable PATH
16559- PATH=$dllsearchpath:\$PATH
16560-"
16561- fi
16562-
16563 $ECHO "\
16564 if test \"\$libtool_execute_magic\" != \"$magic\"; then
16565 # Run the actual program with our arguments.
16566-"
16567- case $host in
16568- # Backslashes separate directories on plain windows
16569- *-*-mingw | *-*-os2* | *-cegcc*)
16570- $ECHO "\
16571- exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
16572-"
16573- ;;
16574-
16575- *)
16576- $ECHO "\
16577- exec \"\$progdir/\$program\" \${1+\"\$@\"}
16578-"
16579- ;;
16580- esac
16581- $ECHO "\
16582- \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
16583- exit 1
16584+ func_exec_program \${1+\"\$@\"}
16585 fi
16586 else
16587 # The program doesn't exist.
16588@@ -3158,166 +4132,6 @@ fi\
16589 }
16590
16591
16592-# func_to_host_path arg
16593-#
16594-# Convert paths to host format when used with build tools.
16595-# Intended for use with "native" mingw (where libtool itself
16596-# is running under the msys shell), or in the following cross-
16597-# build environments:
16598-# $build $host
16599-# mingw (msys) mingw [e.g. native]
16600-# cygwin mingw
16601-# *nix + wine mingw
16602-# where wine is equipped with the `winepath' executable.
16603-# In the native mingw case, the (msys) shell automatically
16604-# converts paths for any non-msys applications it launches,
16605-# but that facility isn't available from inside the cwrapper.
16606-# Similar accommodations are necessary for $host mingw and
16607-# $build cygwin. Calling this function does no harm for other
16608-# $host/$build combinations not listed above.
16609-#
16610-# ARG is the path (on $build) that should be converted to
16611-# the proper representation for $host. The result is stored
16612-# in $func_to_host_path_result.
16613-func_to_host_path ()
16614-{
16615- func_to_host_path_result="$1"
16616- if test -n "$1"; then
16617- case $host in
16618- *mingw* )
16619- lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
16620- case $build in
16621- *mingw* ) # actually, msys
16622- # awkward: cmd appends spaces to result
16623- func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
16624- $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
16625- ;;
16626- *cygwin* )
16627- func_to_host_path_result=`cygpath -w "$1" |
16628- $SED -e "$lt_sed_naive_backslashify"`
16629- ;;
16630- * )
16631- # Unfortunately, winepath does not exit with a non-zero
16632- # error code, so we are forced to check the contents of
16633- # stdout. On the other hand, if the command is not
16634- # found, the shell will set an exit code of 127 and print
16635- # *an error message* to stdout. So we must check for both
16636- # error code of zero AND non-empty stdout, which explains
16637- # the odd construction:
16638- func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
16639- if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
16640- func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
16641- $SED -e "$lt_sed_naive_backslashify"`
16642- else
16643- # Allow warning below.
16644- func_to_host_path_result=
16645- fi
16646- ;;
16647- esac
16648- if test -z "$func_to_host_path_result" ; then
16649- func_error "Could not determine host path corresponding to"
16650- func_error " \`$1'"
16651- func_error "Continuing, but uninstalled executables may not work."
16652- # Fallback:
16653- func_to_host_path_result="$1"
16654- fi
16655- ;;
16656- esac
16657- fi
16658-}
16659-# end: func_to_host_path
16660-
16661-# func_to_host_pathlist arg
16662-#
16663-# Convert pathlists to host format when used with build tools.
16664-# See func_to_host_path(), above. This function supports the
16665-# following $build/$host combinations (but does no harm for
16666-# combinations not listed here):
16667-# $build $host
16668-# mingw (msys) mingw [e.g. native]
16669-# cygwin mingw
16670-# *nix + wine mingw
16671-#
16672-# Path separators are also converted from $build format to
16673-# $host format. If ARG begins or ends with a path separator
16674-# character, it is preserved (but converted to $host format)
16675-# on output.
16676-#
16677-# ARG is a pathlist (on $build) that should be converted to
16678-# the proper representation on $host. The result is stored
16679-# in $func_to_host_pathlist_result.
16680-func_to_host_pathlist ()
16681-{
16682- func_to_host_pathlist_result="$1"
16683- if test -n "$1"; then
16684- case $host in
16685- *mingw* )
16686- lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
16687- # Remove leading and trailing path separator characters from
16688- # ARG. msys behavior is inconsistent here, cygpath turns them
16689- # into '.;' and ';.', and winepath ignores them completely.
16690- func_stripname : : "$1"
16691- func_to_host_pathlist_tmp1=$func_stripname_result
16692- case $build in
16693- *mingw* ) # Actually, msys.
16694- # Awkward: cmd appends spaces to result.
16695- func_to_host_pathlist_result=`
16696- ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
16697- $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
16698- ;;
16699- *cygwin* )
16700- func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
16701- $SED -e "$lt_sed_naive_backslashify"`
16702- ;;
16703- * )
16704- # unfortunately, winepath doesn't convert pathlists
16705- func_to_host_pathlist_result=""
16706- func_to_host_pathlist_oldIFS=$IFS
16707- IFS=:
16708- for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
16709- IFS=$func_to_host_pathlist_oldIFS
16710- if test -n "$func_to_host_pathlist_f" ; then
16711- func_to_host_path "$func_to_host_pathlist_f"
16712- if test -n "$func_to_host_path_result" ; then
16713- if test -z "$func_to_host_pathlist_result" ; then
16714- func_to_host_pathlist_result="$func_to_host_path_result"
16715- else
16716- func_append func_to_host_pathlist_result ";$func_to_host_path_result"
16717- fi
16718- fi
16719- fi
16720- done
16721- IFS=$func_to_host_pathlist_oldIFS
16722- ;;
16723- esac
16724- if test -z "$func_to_host_pathlist_result"; then
16725- func_error "Could not determine the host path(s) corresponding to"
16726- func_error " \`$1'"
16727- func_error "Continuing, but uninstalled executables may not work."
16728- # Fallback. This may break if $1 contains DOS-style drive
16729- # specifications. The fix is not to complicate the expression
16730- # below, but for the user to provide a working wine installation
16731- # with winepath so that path translation in the cross-to-mingw
16732- # case works properly.
16733- lt_replace_pathsep_nix_to_dos="s|:|;|g"
16734- func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
16735- $SED -e "$lt_replace_pathsep_nix_to_dos"`
16736- fi
16737- # Now, add the leading and trailing path separators back
16738- case "$1" in
16739- :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
16740- ;;
16741- esac
16742- case "$1" in
16743- *: ) func_append func_to_host_pathlist_result ";"
16744- ;;
16745- esac
16746- ;;
16747- esac
16748- fi
16749-}
16750-# end: func_to_host_pathlist
16751-
16752 # func_emit_cwrapperexe_src
16753 # emit the source code for a wrapper executable on stdout
16754 # Must ONLY be called from within func_mode_link because
16755@@ -3334,10 +4148,6 @@ func_emit_cwrapperexe_src ()
16756
16757 This wrapper executable should never be moved out of the build directory.
16758 If it is, it will not operate correctly.
16759-
16760- Currently, it simply execs the wrapper *script* "$SHELL $output",
16761- but could eventually absorb all of the scripts functionality and
16762- exec $objdir/$outputname directly.
16763 */
16764 EOF
16765 cat <<"EOF"
16766@@ -3462,22 +4272,13 @@ int setenv (const char *, const char *, int);
16767 if (stale) { free ((void *) stale); stale = 0; } \
16768 } while (0)
16769
16770-#undef LTWRAPPER_DEBUGPRINTF
16771-#if defined LT_DEBUGWRAPPER
16772-# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
16773-static void
16774-ltwrapper_debugprintf (const char *fmt, ...)
16775-{
16776- va_list args;
16777- va_start (args, fmt);
16778- (void) vfprintf (stderr, fmt, args);
16779- va_end (args);
16780-}
16781+#if defined(LT_DEBUGWRAPPER)
16782+static int lt_debug = 1;
16783 #else
16784-# define LTWRAPPER_DEBUGPRINTF(args)
16785+static int lt_debug = 0;
16786 #endif
16787
16788-const char *program_name = NULL;
16789+const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
16790
16791 void *xmalloc (size_t num);
16792 char *xstrdup (const char *string);
16793@@ -3487,7 +4288,10 @@ char *chase_symlinks (const char *pathspec);
16794 int make_executable (const char *path);
16795 int check_executable (const char *path);
16796 char *strendzap (char *str, const char *pat);
16797-void lt_fatal (const char *message, ...);
16798+void lt_debugprintf (const char *file, int line, const char *fmt, ...);
16799+void lt_fatal (const char *file, int line, const char *message, ...);
16800+static const char *nonnull (const char *s);
16801+static const char *nonempty (const char *s);
16802 void lt_setenv (const char *name, const char *value);
16803 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
16804 void lt_update_exe_path (const char *name, const char *value);
16805@@ -3497,14 +4301,14 @@ void lt_dump_script (FILE *f);
16806 EOF
16807
16808 cat <<EOF
16809-const char * MAGIC_EXE = "$magic_exe";
16810+volatile const char * MAGIC_EXE = "$magic_exe";
16811 const char * LIB_PATH_VARNAME = "$shlibpath_var";
16812 EOF
16813
16814 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
16815- func_to_host_pathlist "$temp_rpath"
16816+ func_to_host_path "$temp_rpath"
16817 cat <<EOF
16818-const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
16819+const char * LIB_PATH_VALUE = "$func_to_host_path_result";
16820 EOF
16821 else
16822 cat <<"EOF"
16823@@ -3513,10 +4317,10 @@ EOF
16824 fi
16825
16826 if test -n "$dllsearchpath"; then
16827- func_to_host_pathlist "$dllsearchpath:"
16828+ func_to_host_path "$dllsearchpath:"
16829 cat <<EOF
16830 const char * EXE_PATH_VARNAME = "PATH";
16831-const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
16832+const char * EXE_PATH_VALUE = "$func_to_host_path_result";
16833 EOF
16834 else
16835 cat <<"EOF"
16836@@ -3539,12 +4343,10 @@ EOF
16837 cat <<"EOF"
16838
16839 #define LTWRAPPER_OPTION_PREFIX "--lt-"
16840-#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
16841
16842-static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
16843 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
16844-
16845 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
16846+static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
16847
16848 int
16849 main (int argc, char *argv[])
16850@@ -3561,10 +4363,13 @@ main (int argc, char *argv[])
16851 int i;
16852
16853 program_name = (char *) xstrdup (base_name (argv[0]));
16854- LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
16855- LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
16856+ newargz = XMALLOC (char *, argc + 1);
16857
16858- /* very simple arg parsing; don't want to rely on getopt */
16859+ /* very simple arg parsing; don't want to rely on getopt
16860+ * also, copy all non cwrapper options to newargz, except
16861+ * argz[0], which is handled differently
16862+ */
16863+ newargc=0;
16864 for (i = 1; i < argc; i++)
16865 {
16866 if (strcmp (argv[i], dumpscript_opt) == 0)
16867@@ -3581,21 +4386,54 @@ EOF
16868 lt_dump_script (stdout);
16869 return 0;
16870 }
16871+ if (strcmp (argv[i], debug_opt) == 0)
16872+ {
16873+ lt_debug = 1;
16874+ continue;
16875+ }
16876+ if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
16877+ {
16878+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
16879+ namespace, but it is not one of the ones we know about and
16880+ have already dealt with, above (inluding dump-script), then
16881+ report an error. Otherwise, targets might begin to believe
16882+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
16883+ namespace. The first time any user complains about this, we'll
16884+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
16885+ or a configure.ac-settable value.
16886+ */
16887+ lt_fatal (__FILE__, __LINE__,
16888+ "unrecognized %s option: '%s'",
16889+ ltwrapper_option_prefix, argv[i]);
16890+ }
16891+ /* otherwise ... */
16892+ newargz[++newargc] = xstrdup (argv[i]);
16893 }
16894+ newargz[++newargc] = NULL;
16895+
16896+EOF
16897+ cat <<EOF
16898+ /* The GNU banner must be the first non-error debug message */
16899+ lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
16900+EOF
16901+ cat <<"EOF"
16902+ lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
16903+ lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
16904
16905- newargz = XMALLOC (char *, argc + 1);
16906 tmp_pathspec = find_executable (argv[0]);
16907 if (tmp_pathspec == NULL)
16908- lt_fatal ("Couldn't find %s", argv[0]);
16909- LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
16910- tmp_pathspec));
16911+ lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
16912+ lt_debugprintf (__FILE__, __LINE__,
16913+ "(main) found exe (before symlink chase) at: %s\n",
16914+ tmp_pathspec);
16915
16916 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
16917- LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
16918- actual_cwrapper_path));
16919+ lt_debugprintf (__FILE__, __LINE__,
16920+ "(main) found exe (after symlink chase) at: %s\n",
16921+ actual_cwrapper_path);
16922 XFREE (tmp_pathspec);
16923
16924- actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
16925+ actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
16926 strendzap (actual_cwrapper_path, actual_cwrapper_name);
16927
16928 /* wrapper name transforms */
16929@@ -3613,8 +4451,9 @@ EOF
16930 target_name = tmp_pathspec;
16931 tmp_pathspec = 0;
16932
16933- LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
16934- target_name));
16935+ lt_debugprintf (__FILE__, __LINE__,
16936+ "(main) libtool target name: %s\n",
16937+ target_name);
16938 EOF
16939
16940 cat <<EOF
16941@@ -3664,35 +4503,19 @@ EOF
16942
16943 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
16944 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
16945- lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
16946+ /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
16947+ be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
16948+ because on Windows, both *_VARNAMEs are PATH but uninstalled
16949+ libraries must come first. */
16950 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
16951+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
16952
16953- newargc=0;
16954- for (i = 1; i < argc; i++)
16955- {
16956- if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
16957- {
16958- /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
16959- namespace, but it is not one of the ones we know about and
16960- have already dealt with, above (inluding dump-script), then
16961- report an error. Otherwise, targets might begin to believe
16962- they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
16963- namespace. The first time any user complains about this, we'll
16964- need to make LTWRAPPER_OPTION_PREFIX a configure-time option
16965- or a configure.ac-settable value.
16966- */
16967- lt_fatal ("Unrecognized option in %s namespace: '%s'",
16968- ltwrapper_option_prefix, argv[i]);
16969- }
16970- /* otherwise ... */
16971- newargz[++newargc] = xstrdup (argv[i]);
16972- }
16973- newargz[++newargc] = NULL;
16974-
16975- LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
16976+ lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
16977+ nonnull (lt_argv_zero));
16978 for (i = 0; i < newargc; i++)
16979 {
16980- LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
16981+ lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
16982+ i, nonnull (newargz[i]));
16983 }
16984
16985 EOF
16986@@ -3706,7 +4529,9 @@ EOF
16987 if (rval == -1)
16988 {
16989 /* failed to start process */
16990- LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
16991+ lt_debugprintf (__FILE__, __LINE__,
16992+ "(main) failed to launch target \"%s\": %s\n",
16993+ lt_argv_zero, nonnull (strerror (errno)));
16994 return 127;
16995 }
16996 return rval;
16997@@ -3728,7 +4553,7 @@ xmalloc (size_t num)
16998 {
16999 void *p = (void *) malloc (num);
17000 if (!p)
17001- lt_fatal ("Memory exhausted");
17002+ lt_fatal (__FILE__, __LINE__, "memory exhausted");
17003
17004 return p;
17005 }
17006@@ -3762,8 +4587,8 @@ check_executable (const char *path)
17007 {
17008 struct stat st;
17009
17010- LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
17011- path ? (*path ? path : "EMPTY!") : "NULL!"));
17012+ lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
17013+ nonempty (path));
17014 if ((!path) || (!*path))
17015 return 0;
17016
17017@@ -3780,8 +4605,8 @@ make_executable (const char *path)
17018 int rval = 0;
17019 struct stat st;
17020
17021- LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
17022- path ? (*path ? path : "EMPTY!") : "NULL!"));
17023+ lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
17024+ nonempty (path));
17025 if ((!path) || (!*path))
17026 return 0;
17027
17028@@ -3807,8 +4632,8 @@ find_executable (const char *wrapper)
17029 int tmp_len;
17030 char *concat_name;
17031
17032- LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
17033- wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
17034+ lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
17035+ nonempty (wrapper));
17036
17037 if ((wrapper == NULL) || (*wrapper == '\0'))
17038 return NULL;
17039@@ -3861,7 +4686,8 @@ find_executable (const char *wrapper)
17040 {
17041 /* empty path: current directory */
17042 if (getcwd (tmp, LT_PATHMAX) == NULL)
17043- lt_fatal ("getcwd failed");
17044+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
17045+ nonnull (strerror (errno)));
17046 tmp_len = strlen (tmp);
17047 concat_name =
17048 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
17049@@ -3886,7 +4712,8 @@ find_executable (const char *wrapper)
17050 }
17051 /* Relative path | not found in path: prepend cwd */
17052 if (getcwd (tmp, LT_PATHMAX) == NULL)
17053- lt_fatal ("getcwd failed");
17054+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
17055+ nonnull (strerror (errno)));
17056 tmp_len = strlen (tmp);
17057 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
17058 memcpy (concat_name, tmp, tmp_len);
17059@@ -3912,8 +4739,9 @@ chase_symlinks (const char *pathspec)
17060 int has_symlinks = 0;
17061 while (strlen (tmp_pathspec) && !has_symlinks)
17062 {
17063- LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
17064- tmp_pathspec));
17065+ lt_debugprintf (__FILE__, __LINE__,
17066+ "checking path component for symlinks: %s\n",
17067+ tmp_pathspec);
17068 if (lstat (tmp_pathspec, &s) == 0)
17069 {
17070 if (S_ISLNK (s.st_mode) != 0)
17071@@ -3935,8 +4763,9 @@ chase_symlinks (const char *pathspec)
17072 }
17073 else
17074 {
17075- char *errstr = strerror (errno);
17076- lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
17077+ lt_fatal (__FILE__, __LINE__,
17078+ "error accessing file \"%s\": %s",
17079+ tmp_pathspec, nonnull (strerror (errno)));
17080 }
17081 }
17082 XFREE (tmp_pathspec);
17083@@ -3949,7 +4778,8 @@ chase_symlinks (const char *pathspec)
17084 tmp_pathspec = realpath (pathspec, buf);
17085 if (tmp_pathspec == 0)
17086 {
17087- lt_fatal ("Could not follow symlinks for %s", pathspec);
17088+ lt_fatal (__FILE__, __LINE__,
17089+ "could not follow symlinks for %s", pathspec);
17090 }
17091 return xstrdup (tmp_pathspec);
17092 #endif
17093@@ -3975,11 +4805,25 @@ strendzap (char *str, const char *pat)
17094 return str;
17095 }
17096
17097+void
17098+lt_debugprintf (const char *file, int line, const char *fmt, ...)
17099+{
17100+ va_list args;
17101+ if (lt_debug)
17102+ {
17103+ (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
17104+ va_start (args, fmt);
17105+ (void) vfprintf (stderr, fmt, args);
17106+ va_end (args);
17107+ }
17108+}
17109+
17110 static void
17111-lt_error_core (int exit_status, const char *mode,
17112+lt_error_core (int exit_status, const char *file,
17113+ int line, const char *mode,
17114 const char *message, va_list ap)
17115 {
17116- fprintf (stderr, "%s: %s: ", program_name, mode);
17117+ fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
17118 vfprintf (stderr, message, ap);
17119 fprintf (stderr, ".\n");
17120
17121@@ -3988,20 +4832,32 @@ lt_error_core (int exit_status, const char *mode,
17122 }
17123
17124 void
17125-lt_fatal (const char *message, ...)
17126+lt_fatal (const char *file, int line, const char *message, ...)
17127 {
17128 va_list ap;
17129 va_start (ap, message);
17130- lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
17131+ lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
17132 va_end (ap);
17133 }
17134
17135+static const char *
17136+nonnull (const char *s)
17137+{
17138+ return s ? s : "(null)";
17139+}
17140+
17141+static const char *
17142+nonempty (const char *s)
17143+{
17144+ return (s && !*s) ? "(empty)" : nonnull (s);
17145+}
17146+
17147 void
17148 lt_setenv (const char *name, const char *value)
17149 {
17150- LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
17151- (name ? name : "<NULL>"),
17152- (value ? value : "<NULL>")));
17153+ lt_debugprintf (__FILE__, __LINE__,
17154+ "(lt_setenv) setting '%s' to '%s'\n",
17155+ nonnull (name), nonnull (value));
17156 {
17157 #ifdef HAVE_SETENV
17158 /* always make a copy, for consistency with !HAVE_SETENV */
17159@@ -4049,9 +4905,9 @@ lt_extend_str (const char *orig_value, const char *add, int to_end)
17160 void
17161 lt_update_exe_path (const char *name, const char *value)
17162 {
17163- LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
17164- (name ? name : "<NULL>"),
17165- (value ? value : "<NULL>")));
17166+ lt_debugprintf (__FILE__, __LINE__,
17167+ "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
17168+ nonnull (name), nonnull (value));
17169
17170 if (name && *name && value && *value)
17171 {
17172@@ -4070,9 +4926,9 @@ lt_update_exe_path (const char *name, const char *value)
17173 void
17174 lt_update_lib_path (const char *name, const char *value)
17175 {
17176- LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
17177- (name ? name : "<NULL>"),
17178- (value ? value : "<NULL>")));
17179+ lt_debugprintf (__FILE__, __LINE__,
17180+ "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
17181+ nonnull (name), nonnull (value));
17182
17183 if (name && *name && value && *value)
17184 {
17185@@ -4222,7 +5078,7 @@ EOF
17186 func_win32_import_lib_p ()
17187 {
17188 $opt_debug
17189- case `eval "$file_magic_cmd \"\$1\" 2>/dev/null" | $SED -e 10q` in
17190+ case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
17191 *import*) : ;;
17192 *) false ;;
17193 esac
17194@@ -4401,9 +5257,9 @@ func_mode_link ()
17195 ;;
17196 *)
17197 if test "$prev" = dlfiles; then
17198- dlfiles="$dlfiles $arg"
17199+ func_append dlfiles " $arg"
17200 else
17201- dlprefiles="$dlprefiles $arg"
17202+ func_append dlprefiles " $arg"
17203 fi
17204 prev=
17205 continue
17206@@ -4427,7 +5283,7 @@ func_mode_link ()
17207 *-*-darwin*)
17208 case "$deplibs " in
17209 *" $qarg.ltframework "*) ;;
17210- *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
17211+ *) func_append deplibs " $qarg.ltframework" # this is fixed later
17212 ;;
17213 esac
17214 ;;
17215@@ -4446,7 +5302,7 @@ func_mode_link ()
17216 moreargs=
17217 for fil in `cat "$save_arg"`
17218 do
17219-# moreargs="$moreargs $fil"
17220+# func_append moreargs " $fil"
17221 arg=$fil
17222 # A libtool-controlled object.
17223
17224@@ -4475,7 +5331,7 @@ func_mode_link ()
17225
17226 if test "$prev" = dlfiles; then
17227 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
17228- dlfiles="$dlfiles $pic_object"
17229+ func_append dlfiles " $pic_object"
17230 prev=
17231 continue
17232 else
17233@@ -4487,7 +5343,7 @@ func_mode_link ()
17234 # CHECK ME: I think I busted this. -Ossama
17235 if test "$prev" = dlprefiles; then
17236 # Preload the old-style object.
17237- dlprefiles="$dlprefiles $pic_object"
17238+ func_append dlprefiles " $pic_object"
17239 prev=
17240 fi
17241
17242@@ -4557,12 +5413,12 @@ func_mode_link ()
17243 if test "$prev" = rpath; then
17244 case "$rpath " in
17245 *" $arg "*) ;;
17246- *) rpath="$rpath $arg" ;;
17247+ *) func_append rpath " $arg" ;;
17248 esac
17249 else
17250 case "$xrpath " in
17251 *" $arg "*) ;;
17252- *) xrpath="$xrpath $arg" ;;
17253+ *) func_append xrpath " $arg" ;;
17254 esac
17255 fi
17256 prev=
17257@@ -4574,28 +5430,28 @@ func_mode_link ()
17258 continue
17259 ;;
17260 weak)
17261- weak_libs="$weak_libs $arg"
17262+ func_append weak_libs " $arg"
17263 prev=
17264 continue
17265 ;;
17266 xcclinker)
17267- linker_flags="$linker_flags $qarg"
17268- compiler_flags="$compiler_flags $qarg"
17269+ func_append linker_flags " $qarg"
17270+ func_append compiler_flags " $qarg"
17271 prev=
17272 func_append compile_command " $qarg"
17273 func_append finalize_command " $qarg"
17274 continue
17275 ;;
17276 xcompiler)
17277- compiler_flags="$compiler_flags $qarg"
17278+ func_append compiler_flags " $qarg"
17279 prev=
17280 func_append compile_command " $qarg"
17281 func_append finalize_command " $qarg"
17282 continue
17283 ;;
17284 xlinker)
17285- linker_flags="$linker_flags $qarg"
17286- compiler_flags="$compiler_flags $wl$qarg"
17287+ func_append linker_flags " $qarg"
17288+ func_append compiler_flags " $wl$qarg"
17289 prev=
17290 func_append compile_command " $wl$qarg"
17291 func_append finalize_command " $wl$qarg"
17292@@ -4686,15 +5542,16 @@ func_mode_link ()
17293 ;;
17294
17295 -L*)
17296- func_stripname '-L' '' "$arg"
17297- dir=$func_stripname_result
17298- if test -z "$dir"; then
17299+ func_stripname "-L" '' "$arg"
17300+ if test -z "$func_stripname_result"; then
17301 if test "$#" -gt 0; then
17302 func_fatal_error "require no space between \`-L' and \`$1'"
17303 else
17304 func_fatal_error "need path for \`-L' option"
17305 fi
17306 fi
17307+ func_resolve_sysroot "$func_stripname_result"
17308+ dir=$func_resolve_sysroot_result
17309 # We need an absolute path.
17310 case $dir in
17311 [\\/]* | [A-Za-z]:[\\/]*) ;;
17312@@ -4706,10 +5563,16 @@ func_mode_link ()
17313 ;;
17314 esac
17315 case "$deplibs " in
17316- *" -L$dir "*) ;;
17317+ *" -L$dir "* | *" $arg "*)
17318+ # Will only happen for absolute or sysroot arguments
17319+ ;;
17320 *)
17321- deplibs="$deplibs -L$dir"
17322- lib_search_path="$lib_search_path $dir"
17323+ # Preserve sysroot, but never include relative directories
17324+ case $dir in
17325+ [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
17326+ *) func_append deplibs " -L$dir" ;;
17327+ esac
17328+ func_append lib_search_path " $dir"
17329 ;;
17330 esac
17331 case $host in
17332@@ -4718,12 +5581,12 @@ func_mode_link ()
17333 case :$dllsearchpath: in
17334 *":$dir:"*) ;;
17335 ::) dllsearchpath=$dir;;
17336- *) dllsearchpath="$dllsearchpath:$dir";;
17337+ *) func_append dllsearchpath ":$dir";;
17338 esac
17339 case :$dllsearchpath: in
17340 *":$testbindir:"*) ;;
17341 ::) dllsearchpath=$testbindir;;
17342- *) dllsearchpath="$dllsearchpath:$testbindir";;
17343+ *) func_append dllsearchpath ":$testbindir";;
17344 esac
17345 ;;
17346 esac
17347@@ -4747,7 +5610,7 @@ func_mode_link ()
17348 ;;
17349 *-*-rhapsody* | *-*-darwin1.[012])
17350 # Rhapsody C and math libraries are in the System framework
17351- deplibs="$deplibs System.ltframework"
17352+ func_append deplibs " System.ltframework"
17353 continue
17354 ;;
17355 *-*-sco3.2v5* | *-*-sco5v6*)
17356@@ -4758,9 +5621,6 @@ func_mode_link ()
17357 # Compiler inserts libc in the correct place for threads to work
17358 test "X$arg" = "X-lc" && continue
17359 ;;
17360- *-*-linux*)
17361- test "X$arg" = "X-lc" && continue
17362- ;;
17363 esac
17364 elif test "X$arg" = "X-lc_r"; then
17365 case $host in
17366@@ -4770,7 +5630,7 @@ func_mode_link ()
17367 ;;
17368 esac
17369 fi
17370- deplibs="$deplibs $arg"
17371+ func_append deplibs " $arg"
17372 continue
17373 ;;
17374
17375@@ -4782,8 +5642,8 @@ func_mode_link ()
17376 # Tru64 UNIX uses -model [arg] to determine the layout of C++
17377 # classes, name mangling, and exception handling.
17378 # Darwin uses the -arch flag to determine output architecture.
17379- -model|-arch|-isysroot)
17380- compiler_flags="$compiler_flags $arg"
17381+ -model|-arch|-isysroot|--sysroot)
17382+ func_append compiler_flags " $arg"
17383 func_append compile_command " $arg"
17384 func_append finalize_command " $arg"
17385 prev=xcompiler
17386@@ -4791,12 +5651,12 @@ func_mode_link ()
17387 ;;
17388
17389 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
17390- compiler_flags="$compiler_flags $arg"
17391+ func_append compiler_flags " $arg"
17392 func_append compile_command " $arg"
17393 func_append finalize_command " $arg"
17394 case "$new_inherited_linker_flags " in
17395 *" $arg "*) ;;
17396- * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
17397+ * ) func_append new_inherited_linker_flags " $arg" ;;
17398 esac
17399 continue
17400 ;;
17401@@ -4863,13 +5723,17 @@ func_mode_link ()
17402 # We need an absolute path.
17403 case $dir in
17404 [\\/]* | [A-Za-z]:[\\/]*) ;;
17405+ =*)
17406+ func_stripname '=' '' "$dir"
17407+ dir=$lt_sysroot$func_stripname_result
17408+ ;;
17409 *)
17410 func_fatal_error "only absolute run-paths are allowed"
17411 ;;
17412 esac
17413 case "$xrpath " in
17414 *" $dir "*) ;;
17415- *) xrpath="$xrpath $dir" ;;
17416+ *) func_append xrpath " $dir" ;;
17417 esac
17418 continue
17419 ;;
17420@@ -4922,8 +5786,8 @@ func_mode_link ()
17421 for flag in $args; do
17422 IFS="$save_ifs"
17423 func_quote_for_eval "$flag"
17424- arg="$arg $func_quote_for_eval_result"
17425- compiler_flags="$compiler_flags $func_quote_for_eval_result"
17426+ func_append arg " $func_quote_for_eval_result"
17427+ func_append compiler_flags " $func_quote_for_eval_result"
17428 done
17429 IFS="$save_ifs"
17430 func_stripname ' ' '' "$arg"
17431@@ -4938,9 +5802,9 @@ func_mode_link ()
17432 for flag in $args; do
17433 IFS="$save_ifs"
17434 func_quote_for_eval "$flag"
17435- arg="$arg $wl$func_quote_for_eval_result"
17436- compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
17437- linker_flags="$linker_flags $func_quote_for_eval_result"
17438+ func_append arg " $wl$func_quote_for_eval_result"
17439+ func_append compiler_flags " $wl$func_quote_for_eval_result"
17440+ func_append linker_flags " $func_quote_for_eval_result"
17441 done
17442 IFS="$save_ifs"
17443 func_stripname ' ' '' "$arg"
17444@@ -4968,24 +5832,27 @@ func_mode_link ()
17445 arg="$func_quote_for_eval_result"
17446 ;;
17447
17448- # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
17449- # -r[0-9][0-9]* specifies the processor on the SGI compiler
17450- # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
17451- # +DA*, +DD* enable 64-bit mode on the HP compiler
17452- # -q* pass through compiler args for the IBM compiler
17453- # -m*, -t[45]*, -txscale* pass through architecture-specific
17454- # compiler args for GCC
17455- # -F/path gives path to uninstalled frameworks, gcc on darwin
17456- # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
17457- # @file GCC response files
17458- # -tp=* Portland pgcc target processor selection
17459+ # Flags to be passed through unchanged, with rationale:
17460+ # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
17461+ # -r[0-9][0-9]* specify processor for the SGI compiler
17462+ # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
17463+ # +DA*, +DD* enable 64-bit mode for the HP compiler
17464+ # -q* compiler args for the IBM compiler
17465+ # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
17466+ # -F/path path to uninstalled frameworks, gcc on darwin
17467+ # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
17468+ # @file GCC response files
17469+ # -tp=* Portland pgcc target processor selection
17470+ # --sysroot=* for sysroot support
17471+ # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
17472 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
17473- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
17474+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
17475+ -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
17476 func_quote_for_eval "$arg"
17477 arg="$func_quote_for_eval_result"
17478 func_append compile_command " $arg"
17479 func_append finalize_command " $arg"
17480- compiler_flags="$compiler_flags $arg"
17481+ func_append compiler_flags " $arg"
17482 continue
17483 ;;
17484
17485@@ -4997,7 +5864,7 @@ func_mode_link ()
17486
17487 *.$objext)
17488 # A standard object.
17489- objs="$objs $arg"
17490+ func_append objs " $arg"
17491 ;;
17492
17493 *.lo)
17494@@ -5028,7 +5895,7 @@ func_mode_link ()
17495
17496 if test "$prev" = dlfiles; then
17497 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
17498- dlfiles="$dlfiles $pic_object"
17499+ func_append dlfiles " $pic_object"
17500 prev=
17501 continue
17502 else
17503@@ -5040,7 +5907,7 @@ func_mode_link ()
17504 # CHECK ME: I think I busted this. -Ossama
17505 if test "$prev" = dlprefiles; then
17506 # Preload the old-style object.
17507- dlprefiles="$dlprefiles $pic_object"
17508+ func_append dlprefiles " $pic_object"
17509 prev=
17510 fi
17511
17512@@ -5085,24 +5952,25 @@ func_mode_link ()
17513
17514 *.$libext)
17515 # An archive.
17516- deplibs="$deplibs $arg"
17517- old_deplibs="$old_deplibs $arg"
17518+ func_append deplibs " $arg"
17519+ func_append old_deplibs " $arg"
17520 continue
17521 ;;
17522
17523 *.la)
17524 # A libtool-controlled library.
17525
17526+ func_resolve_sysroot "$arg"
17527 if test "$prev" = dlfiles; then
17528 # This library was specified with -dlopen.
17529- dlfiles="$dlfiles $arg"
17530+ func_append dlfiles " $func_resolve_sysroot_result"
17531 prev=
17532 elif test "$prev" = dlprefiles; then
17533 # The library was specified with -dlpreopen.
17534- dlprefiles="$dlprefiles $arg"
17535+ func_append dlprefiles " $func_resolve_sysroot_result"
17536 prev=
17537 else
17538- deplibs="$deplibs $arg"
17539+ func_append deplibs " $func_resolve_sysroot_result"
17540 fi
17541 continue
17542 ;;
17543@@ -5127,7 +5995,7 @@ func_mode_link ()
17544 func_fatal_help "the \`$prevarg' option requires an argument"
17545
17546 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
17547- eval "arg=\"$export_dynamic_flag_spec\""
17548+ eval arg=\"$export_dynamic_flag_spec\"
17549 func_append compile_command " $arg"
17550 func_append finalize_command " $arg"
17551 fi
17552@@ -5144,11 +6012,13 @@ func_mode_link ()
17553 else
17554 shlib_search_path=
17555 fi
17556- eval "sys_lib_search_path=\"$sys_lib_search_path_spec\""
17557- eval "sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\""
17558+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
17559+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
17560
17561 func_dirname "$output" "/" ""
17562 output_objdir="$func_dirname_result$objdir"
17563+ func_to_tool_file "$output_objdir/"
17564+ tool_output_objdir=$func_to_tool_file_result
17565 # Create the object directory.
17566 func_mkdir_p "$output_objdir"
17567
17568@@ -5169,12 +6039,12 @@ func_mode_link ()
17569 # Find all interdependent deplibs by searching for libraries
17570 # that are linked more than once (e.g. -la -lb -la)
17571 for deplib in $deplibs; do
17572- if $opt_duplicate_deps ; then
17573+ if $opt_preserve_dup_deps ; then
17574 case "$libs " in
17575- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
17576+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
17577 esac
17578 fi
17579- libs="$libs $deplib"
17580+ func_append libs " $deplib"
17581 done
17582
17583 if test "$linkmode" = lib; then
17584@@ -5187,9 +6057,9 @@ func_mode_link ()
17585 if $opt_duplicate_compiler_generated_deps; then
17586 for pre_post_dep in $predeps $postdeps; do
17587 case "$pre_post_deps " in
17588- *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
17589+ *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
17590 esac
17591- pre_post_deps="$pre_post_deps $pre_post_dep"
17592+ func_append pre_post_deps " $pre_post_dep"
17593 done
17594 fi
17595 pre_post_deps=
17596@@ -5256,8 +6126,9 @@ func_mode_link ()
17597 for lib in $dlprefiles; do
17598 # Ignore non-libtool-libs
17599 dependency_libs=
17600+ func_resolve_sysroot "$lib"
17601 case $lib in
17602- *.la) func_source "$lib" ;;
17603+ *.la) func_source "$func_resolve_sysroot_result" ;;
17604 esac
17605
17606 # Collect preopened libtool deplibs, except any this library
17607@@ -5267,7 +6138,7 @@ func_mode_link ()
17608 deplib_base=$func_basename_result
17609 case " $weak_libs " in
17610 *" $deplib_base "*) ;;
17611- *) deplibs="$deplibs $deplib" ;;
17612+ *) func_append deplibs " $deplib" ;;
17613 esac
17614 done
17615 done
17616@@ -5288,11 +6159,11 @@ func_mode_link ()
17617 compile_deplibs="$deplib $compile_deplibs"
17618 finalize_deplibs="$deplib $finalize_deplibs"
17619 else
17620- compiler_flags="$compiler_flags $deplib"
17621+ func_append compiler_flags " $deplib"
17622 if test "$linkmode" = lib ; then
17623 case "$new_inherited_linker_flags " in
17624 *" $deplib "*) ;;
17625- * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
17626+ * ) func_append new_inherited_linker_flags " $deplib" ;;
17627 esac
17628 fi
17629 fi
17630@@ -5377,7 +6248,7 @@ func_mode_link ()
17631 if test "$linkmode" = lib ; then
17632 case "$new_inherited_linker_flags " in
17633 *" $deplib "*) ;;
17634- * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
17635+ * ) func_append new_inherited_linker_flags " $deplib" ;;
17636 esac
17637 fi
17638 fi
17639@@ -5390,7 +6261,8 @@ func_mode_link ()
17640 test "$pass" = conv && continue
17641 newdependency_libs="$deplib $newdependency_libs"
17642 func_stripname '-L' '' "$deplib"
17643- newlib_search_path="$newlib_search_path $func_stripname_result"
17644+ func_resolve_sysroot "$func_stripname_result"
17645+ func_append newlib_search_path " $func_resolve_sysroot_result"
17646 ;;
17647 prog)
17648 if test "$pass" = conv; then
17649@@ -5404,7 +6276,8 @@ func_mode_link ()
17650 finalize_deplibs="$deplib $finalize_deplibs"
17651 fi
17652 func_stripname '-L' '' "$deplib"
17653- newlib_search_path="$newlib_search_path $func_stripname_result"
17654+ func_resolve_sysroot "$func_stripname_result"
17655+ func_append newlib_search_path " $func_resolve_sysroot_result"
17656 ;;
17657 *)
17658 func_warning "\`-L' is ignored for archives/objects"
17659@@ -5415,17 +6288,21 @@ func_mode_link ()
17660 -R*)
17661 if test "$pass" = link; then
17662 func_stripname '-R' '' "$deplib"
17663- dir=$func_stripname_result
17664+ func_resolve_sysroot "$func_stripname_result"
17665+ dir=$func_resolve_sysroot_result
17666 # Make sure the xrpath contains only unique directories.
17667 case "$xrpath " in
17668 *" $dir "*) ;;
17669- *) xrpath="$xrpath $dir" ;;
17670+ *) func_append xrpath " $dir" ;;
17671 esac
17672 fi
17673 deplibs="$deplib $deplibs"
17674 continue
17675 ;;
17676- *.la) lib="$deplib" ;;
17677+ *.la)
17678+ func_resolve_sysroot "$deplib"
17679+ lib=$func_resolve_sysroot_result
17680+ ;;
17681 *.$libext)
17682 if test "$pass" = conv; then
17683 deplibs="$deplib $deplibs"
17684@@ -5488,11 +6365,11 @@ func_mode_link ()
17685 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
17686 # If there is no dlopen support or we're linking statically,
17687 # we need to preload.
17688- newdlprefiles="$newdlprefiles $deplib"
17689+ func_append newdlprefiles " $deplib"
17690 compile_deplibs="$deplib $compile_deplibs"
17691 finalize_deplibs="$deplib $finalize_deplibs"
17692 else
17693- newdlfiles="$newdlfiles $deplib"
17694+ func_append newdlfiles " $deplib"
17695 fi
17696 fi
17697 continue
17698@@ -5538,7 +6415,7 @@ func_mode_link ()
17699 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
17700 case " $new_inherited_linker_flags " in
17701 *" $tmp_inherited_linker_flag "*) ;;
17702- *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
17703+ *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
17704 esac
17705 done
17706 fi
17707@@ -5546,8 +6423,8 @@ func_mode_link ()
17708 if test "$linkmode,$pass" = "lib,link" ||
17709 test "$linkmode,$pass" = "prog,scan" ||
17710 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
17711- test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
17712- test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
17713+ test -n "$dlopen" && func_append dlfiles " $dlopen"
17714+ test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
17715 fi
17716
17717 if test "$pass" = conv; then
17718@@ -5558,20 +6435,20 @@ func_mode_link ()
17719 func_fatal_error "cannot find name of link library for \`$lib'"
17720 fi
17721 # It is a libtool convenience library, so add in its objects.
17722- convenience="$convenience $ladir/$objdir/$old_library"
17723- old_convenience="$old_convenience $ladir/$objdir/$old_library"
17724+ func_append convenience " $ladir/$objdir/$old_library"
17725+ func_append old_convenience " $ladir/$objdir/$old_library"
17726 elif test "$linkmode" != prog && test "$linkmode" != lib; then
17727 func_fatal_error "\`$lib' is not a convenience library"
17728 fi
17729 tmp_libs=
17730 for deplib in $dependency_libs; do
17731 deplibs="$deplib $deplibs"
17732- if $opt_duplicate_deps ; then
17733+ if $opt_preserve_dup_deps ; then
17734 case "$tmp_libs " in
17735- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
17736+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
17737 esac
17738 fi
17739- tmp_libs="$tmp_libs $deplib"
17740+ func_append tmp_libs " $deplib"
17741 done
17742 continue
17743 fi # $pass = conv
17744@@ -5579,9 +6456,15 @@ func_mode_link ()
17745
17746 # Get the name of the library we link against.
17747 linklib=
17748- for l in $old_library $library_names; do
17749- linklib="$l"
17750- done
17751+ if test -n "$old_library" &&
17752+ { test "$prefer_static_libs" = yes ||
17753+ test "$prefer_static_libs,$installed" = "built,no"; }; then
17754+ linklib=$old_library
17755+ else
17756+ for l in $old_library $library_names; do
17757+ linklib="$l"
17758+ done
17759+ fi
17760 if test -z "$linklib"; then
17761 func_fatal_error "cannot find name of link library for \`$lib'"
17762 fi
17763@@ -5598,9 +6481,9 @@ func_mode_link ()
17764 # statically, we need to preload. We also need to preload any
17765 # dependent libraries so libltdl's deplib preloader doesn't
17766 # bomb out in the load deplibs phase.
17767- dlprefiles="$dlprefiles $lib $dependency_libs"
17768+ func_append dlprefiles " $lib $dependency_libs"
17769 else
17770- newdlfiles="$newdlfiles $lib"
17771+ func_append newdlfiles " $lib"
17772 fi
17773 continue
17774 fi # $pass = dlopen
17775@@ -5622,14 +6505,14 @@ func_mode_link ()
17776
17777 # Find the relevant object directory and library name.
17778 if test "X$installed" = Xyes; then
17779- if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
17780+ if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
17781 func_warning "library \`$lib' was moved."
17782 dir="$ladir"
17783 absdir="$abs_ladir"
17784 libdir="$abs_ladir"
17785 else
17786- dir="$libdir"
17787- absdir="$libdir"
17788+ dir="$lt_sysroot$libdir"
17789+ absdir="$lt_sysroot$libdir"
17790 fi
17791 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
17792 else
17793@@ -5637,12 +6520,12 @@ func_mode_link ()
17794 dir="$ladir"
17795 absdir="$abs_ladir"
17796 # Remove this search path later
17797- notinst_path="$notinst_path $abs_ladir"
17798+ func_append notinst_path " $abs_ladir"
17799 else
17800 dir="$ladir/$objdir"
17801 absdir="$abs_ladir/$objdir"
17802 # Remove this search path later
17803- notinst_path="$notinst_path $abs_ladir"
17804+ func_append notinst_path " $abs_ladir"
17805 fi
17806 fi # $installed = yes
17807 func_stripname 'lib' '.la' "$laname"
17808@@ -5653,20 +6536,46 @@ func_mode_link ()
17809 if test -z "$libdir" && test "$linkmode" = prog; then
17810 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
17811 fi
17812- # Prefer using a static library (so that no silly _DYNAMIC symbols
17813- # are required to link).
17814- if test -n "$old_library"; then
17815- newdlprefiles="$newdlprefiles $dir/$old_library"
17816- # Keep a list of preopened convenience libraries to check
17817- # that they are being used correctly in the link pass.
17818- test -z "$libdir" && \
17819- dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
17820- # Otherwise, use the dlname, so that lt_dlopen finds it.
17821- elif test -n "$dlname"; then
17822- newdlprefiles="$newdlprefiles $dir/$dlname"
17823- else
17824- newdlprefiles="$newdlprefiles $dir/$linklib"
17825- fi
17826+ case "$host" in
17827+ # special handling for platforms with PE-DLLs.
17828+ *cygwin* | *mingw* | *cegcc* )
17829+ # Linker will automatically link against shared library if both
17830+ # static and shared are present. Therefore, ensure we extract
17831+ # symbols from the import library if a shared library is present
17832+ # (otherwise, the dlopen module name will be incorrect). We do
17833+ # this by putting the import library name into $newdlprefiles.
17834+ # We recover the dlopen module name by 'saving' the la file
17835+ # name in a special purpose variable, and (later) extracting the
17836+ # dlname from the la file.
17837+ if test -n "$dlname"; then
17838+ func_tr_sh "$dir/$linklib"
17839+ eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
17840+ func_append newdlprefiles " $dir/$linklib"
17841+ else
17842+ func_append newdlprefiles " $dir/$old_library"
17843+ # Keep a list of preopened convenience libraries to check
17844+ # that they are being used correctly in the link pass.
17845+ test -z "$libdir" && \
17846+ func_append dlpreconveniencelibs " $dir/$old_library"
17847+ fi
17848+ ;;
17849+ * )
17850+ # Prefer using a static library (so that no silly _DYNAMIC symbols
17851+ # are required to link).
17852+ if test -n "$old_library"; then
17853+ func_append newdlprefiles " $dir/$old_library"
17854+ # Keep a list of preopened convenience libraries to check
17855+ # that they are being used correctly in the link pass.
17856+ test -z "$libdir" && \
17857+ func_append dlpreconveniencelibs " $dir/$old_library"
17858+ # Otherwise, use the dlname, so that lt_dlopen finds it.
17859+ elif test -n "$dlname"; then
17860+ func_append newdlprefiles " $dir/$dlname"
17861+ else
17862+ func_append newdlprefiles " $dir/$linklib"
17863+ fi
17864+ ;;
17865+ esac
17866 fi # $pass = dlpreopen
17867
17868 if test -z "$libdir"; then
17869@@ -5684,7 +6593,7 @@ func_mode_link ()
17870
17871
17872 if test "$linkmode" = prog && test "$pass" != link; then
17873- newlib_search_path="$newlib_search_path $ladir"
17874+ func_append newlib_search_path " $ladir"
17875 deplibs="$lib $deplibs"
17876
17877 linkalldeplibs=no
17878@@ -5697,7 +6606,8 @@ func_mode_link ()
17879 for deplib in $dependency_libs; do
17880 case $deplib in
17881 -L*) func_stripname '-L' '' "$deplib"
17882- newlib_search_path="$newlib_search_path $func_stripname_result"
17883+ func_resolve_sysroot "$func_stripname_result"
17884+ func_append newlib_search_path " $func_resolve_sysroot_result"
17885 ;;
17886 esac
17887 # Need to link against all dependency_libs?
17888@@ -5708,12 +6618,12 @@ func_mode_link ()
17889 # or/and link against static libraries
17890 newdependency_libs="$deplib $newdependency_libs"
17891 fi
17892- if $opt_duplicate_deps ; then
17893+ if $opt_preserve_dup_deps ; then
17894 case "$tmp_libs " in
17895- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
17896+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
17897 esac
17898 fi
17899- tmp_libs="$tmp_libs $deplib"
17900+ func_append tmp_libs " $deplib"
17901 done # for deplib
17902 continue
17903 fi # $linkmode = prog...
17904@@ -5728,7 +6638,7 @@ func_mode_link ()
17905 # Make sure the rpath contains only unique directories.
17906 case "$temp_rpath:" in
17907 *"$absdir:"*) ;;
17908- *) temp_rpath="$temp_rpath$absdir:" ;;
17909+ *) func_append temp_rpath "$absdir:" ;;
17910 esac
17911 fi
17912
17913@@ -5740,7 +6650,7 @@ func_mode_link ()
17914 *)
17915 case "$compile_rpath " in
17916 *" $absdir "*) ;;
17917- *) compile_rpath="$compile_rpath $absdir"
17918+ *) func_append compile_rpath " $absdir" ;;
17919 esac
17920 ;;
17921 esac
17922@@ -5749,7 +6659,7 @@ func_mode_link ()
17923 *)
17924 case "$finalize_rpath " in
17925 *" $libdir "*) ;;
17926- *) finalize_rpath="$finalize_rpath $libdir"
17927+ *) func_append finalize_rpath " $libdir" ;;
17928 esac
17929 ;;
17930 esac
17931@@ -5774,12 +6684,12 @@ func_mode_link ()
17932 case $host in
17933 *cygwin* | *mingw* | *cegcc*)
17934 # No point in relinking DLLs because paths are not encoded
17935- notinst_deplibs="$notinst_deplibs $lib"
17936+ func_append notinst_deplibs " $lib"
17937 need_relink=no
17938 ;;
17939 *)
17940 if test "$installed" = no; then
17941- notinst_deplibs="$notinst_deplibs $lib"
17942+ func_append notinst_deplibs " $lib"
17943 need_relink=yes
17944 fi
17945 ;;
17946@@ -5814,7 +6724,7 @@ func_mode_link ()
17947 *)
17948 case "$compile_rpath " in
17949 *" $absdir "*) ;;
17950- *) compile_rpath="$compile_rpath $absdir"
17951+ *) func_append compile_rpath " $absdir" ;;
17952 esac
17953 ;;
17954 esac
17955@@ -5823,7 +6733,7 @@ func_mode_link ()
17956 *)
17957 case "$finalize_rpath " in
17958 *" $libdir "*) ;;
17959- *) finalize_rpath="$finalize_rpath $libdir"
17960+ *) func_append finalize_rpath " $libdir" ;;
17961 esac
17962 ;;
17963 esac
17964@@ -5835,7 +6745,7 @@ func_mode_link ()
17965 shift
17966 realname="$1"
17967 shift
17968- eval "libname=\"$libname_spec\""
17969+ libname=`eval "\\$ECHO \"$libname_spec\""`
17970 # use dlname if we got it. it's perfectly good, no?
17971 if test -n "$dlname"; then
17972 soname="$dlname"
17973@@ -5848,7 +6758,7 @@ func_mode_link ()
17974 versuffix="-$major"
17975 ;;
17976 esac
17977- eval "soname=\"$soname_spec\""
17978+ eval soname=\"$soname_spec\"
17979 else
17980 soname="$realname"
17981 fi
17982@@ -5877,7 +6787,7 @@ func_mode_link ()
17983 linklib=$newlib
17984 fi # test -n "$old_archive_from_expsyms_cmds"
17985
17986- if test "$linkmode" = prog || test "$mode" != relink; then
17987+ if test "$linkmode" = prog || test "$opt_mode" != relink; then
17988 add_shlibpath=
17989 add_dir=
17990 add=
17991@@ -5933,7 +6843,7 @@ func_mode_link ()
17992 if test -n "$inst_prefix_dir"; then
17993 case $libdir in
17994 [\\/]*)
17995- add_dir="$add_dir -L$inst_prefix_dir$libdir"
17996+ func_append add_dir " -L$inst_prefix_dir$libdir"
17997 ;;
17998 esac
17999 fi
18000@@ -5955,7 +6865,7 @@ func_mode_link ()
18001 if test -n "$add_shlibpath"; then
18002 case :$compile_shlibpath: in
18003 *":$add_shlibpath:"*) ;;
18004- *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
18005+ *) func_append compile_shlibpath "$add_shlibpath:" ;;
18006 esac
18007 fi
18008 if test "$linkmode" = prog; then
18009@@ -5969,13 +6879,13 @@ func_mode_link ()
18010 test "$hardcode_shlibpath_var" = yes; then
18011 case :$finalize_shlibpath: in
18012 *":$libdir:"*) ;;
18013- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
18014+ *) func_append finalize_shlibpath "$libdir:" ;;
18015 esac
18016 fi
18017 fi
18018 fi
18019
18020- if test "$linkmode" = prog || test "$mode" = relink; then
18021+ if test "$linkmode" = prog || test "$opt_mode" = relink; then
18022 add_shlibpath=
18023 add_dir=
18024 add=
18025@@ -5989,7 +6899,7 @@ func_mode_link ()
18026 elif test "$hardcode_shlibpath_var" = yes; then
18027 case :$finalize_shlibpath: in
18028 *":$libdir:"*) ;;
18029- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
18030+ *) func_append finalize_shlibpath "$libdir:" ;;
18031 esac
18032 add="-l$name"
18033 elif test "$hardcode_automatic" = yes; then
18034@@ -6001,12 +6911,12 @@ func_mode_link ()
18035 fi
18036 else
18037 # We cannot seem to hardcode it, guess we'll fake it.
18038- add_dir="-L$libdir"
18039+ add_dir="-L$lt_sysroot$libdir"
18040 # Try looking first in the location we're being installed to.
18041 if test -n "$inst_prefix_dir"; then
18042 case $libdir in
18043 [\\/]*)
18044- add_dir="$add_dir -L$inst_prefix_dir$libdir"
18045+ func_append add_dir " -L$inst_prefix_dir$libdir"
18046 ;;
18047 esac
18048 fi
18049@@ -6083,27 +6993,33 @@ func_mode_link ()
18050 temp_xrpath=$func_stripname_result
18051 case " $xrpath " in
18052 *" $temp_xrpath "*) ;;
18053- *) xrpath="$xrpath $temp_xrpath";;
18054+ *) func_append xrpath " $temp_xrpath";;
18055 esac;;
18056- *) temp_deplibs="$temp_deplibs $libdir";;
18057+ *) func_append temp_deplibs " $libdir";;
18058 esac
18059 done
18060 dependency_libs="$temp_deplibs"
18061 fi
18062
18063- newlib_search_path="$newlib_search_path $absdir"
18064+ func_append newlib_search_path " $absdir"
18065 # Link against this library
18066 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
18067 # ... and its dependency_libs
18068 tmp_libs=
18069 for deplib in $dependency_libs; do
18070 newdependency_libs="$deplib $newdependency_libs"
18071- if $opt_duplicate_deps ; then
18072+ case $deplib in
18073+ -L*) func_stripname '-L' '' "$deplib"
18074+ func_resolve_sysroot "$func_stripname_result";;
18075+ *) func_resolve_sysroot "$deplib" ;;
18076+ esac
18077+ if $opt_preserve_dup_deps ; then
18078 case "$tmp_libs " in
18079- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
18080+ *" $func_resolve_sysroot_result "*)
18081+ func_append specialdeplibs " $func_resolve_sysroot_result" ;;
18082 esac
18083 fi
18084- tmp_libs="$tmp_libs $deplib"
18085+ func_append tmp_libs " $func_resolve_sysroot_result"
18086 done
18087
18088 if test "$link_all_deplibs" != no; then
18089@@ -6113,8 +7029,10 @@ func_mode_link ()
18090 case $deplib in
18091 -L*) path="$deplib" ;;
18092 *.la)
18093+ func_resolve_sysroot "$deplib"
18094+ deplib=$func_resolve_sysroot_result
18095 func_dirname "$deplib" "" "."
18096- dir="$func_dirname_result"
18097+ dir=$func_dirname_result
18098 # We need an absolute path.
18099 case $dir in
18100 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
18101@@ -6130,7 +7048,7 @@ func_mode_link ()
18102 case $host in
18103 *-*-darwin*)
18104 depdepl=
18105- deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
18106+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
18107 if test -n "$deplibrary_names" ; then
18108 for tmp in $deplibrary_names ; do
18109 depdepl=$tmp
18110@@ -6141,8 +7059,8 @@ func_mode_link ()
18111 if test -z "$darwin_install_name"; then
18112 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
18113 fi
18114- compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
18115- linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
18116+ func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
18117+ func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
18118 path=
18119 fi
18120 fi
18121@@ -6152,7 +7070,7 @@ func_mode_link ()
18122 ;;
18123 esac
18124 else
18125- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
18126+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
18127 test -z "$libdir" && \
18128 func_fatal_error "\`$deplib' is not a valid libtool archive"
18129 test "$absdir" != "$libdir" && \
18130@@ -6192,7 +7110,7 @@ func_mode_link ()
18131 for dir in $newlib_search_path; do
18132 case "$lib_search_path " in
18133 *" $dir "*) ;;
18134- *) lib_search_path="$lib_search_path $dir" ;;
18135+ *) func_append lib_search_path " $dir" ;;
18136 esac
18137 done
18138 newlib_search_path=
18139@@ -6205,7 +7123,7 @@ func_mode_link ()
18140 fi
18141 for var in $vars dependency_libs; do
18142 # Add libraries to $var in reverse order
18143- eval tmp_libs=\$$var
18144+ eval tmp_libs=\"\$$var\"
18145 new_libs=
18146 for deplib in $tmp_libs; do
18147 # FIXME: Pedantically, this is the right thing to do, so
18148@@ -6250,13 +7168,13 @@ func_mode_link ()
18149 -L*)
18150 case " $tmp_libs " in
18151 *" $deplib "*) ;;
18152- *) tmp_libs="$tmp_libs $deplib" ;;
18153+ *) func_append tmp_libs " $deplib" ;;
18154 esac
18155 ;;
18156- *) tmp_libs="$tmp_libs $deplib" ;;
18157+ *) func_append tmp_libs " $deplib" ;;
18158 esac
18159 done
18160- eval $var=\$tmp_libs
18161+ eval $var=\"$tmp_libs\"
18162 done # for var
18163 fi
18164 # Last step: remove runtime libs from dependency_libs
18165@@ -6269,7 +7187,7 @@ func_mode_link ()
18166 ;;
18167 esac
18168 if test -n "$i" ; then
18169- tmp_libs="$tmp_libs $i"
18170+ func_append tmp_libs " $i"
18171 fi
18172 done
18173 dependency_libs=$tmp_libs
18174@@ -6310,7 +7228,7 @@ func_mode_link ()
18175 # Now set the variables for building old libraries.
18176 build_libtool_libs=no
18177 oldlibs="$output"
18178- objs="$objs$old_deplibs"
18179+ func_append objs "$old_deplibs"
18180 ;;
18181
18182 lib)
18183@@ -6319,8 +7237,8 @@ func_mode_link ()
18184 lib*)
18185 func_stripname 'lib' '.la' "$outputname"
18186 name=$func_stripname_result
18187- eval "shared_ext=\"$shrext_cmds\""
18188- eval "libname=\"$libname_spec\""
18189+ eval shared_ext=\"$shrext_cmds\"
18190+ eval libname=\"$libname_spec\"
18191 ;;
18192 *)
18193 test "$module" = no && \
18194@@ -6330,8 +7248,8 @@ func_mode_link ()
18195 # Add the "lib" prefix for modules if required
18196 func_stripname '' '.la' "$outputname"
18197 name=$func_stripname_result
18198- eval "shared_ext=\"$shrext_cmds\""
18199- eval "libname=\"$libname_spec\""
18200+ eval shared_ext=\"$shrext_cmds\"
18201+ eval libname=\"$libname_spec\"
18202 else
18203 func_stripname '' '.la' "$outputname"
18204 libname=$func_stripname_result
18205@@ -6346,7 +7264,7 @@ func_mode_link ()
18206 echo
18207 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
18208 $ECHO "*** objects $objs is not portable!"
18209- libobjs="$libobjs $objs"
18210+ func_append libobjs " $objs"
18211 fi
18212 fi
18213
18214@@ -6544,7 +7462,7 @@ func_mode_link ()
18215 done
18216
18217 # Make executables depend on our current version.
18218- verstring="$verstring:${current}.0"
18219+ func_append verstring ":${current}.0"
18220 ;;
18221
18222 qnx)
18223@@ -6612,10 +7530,10 @@ func_mode_link ()
18224 fi
18225
18226 func_generate_dlsyms "$libname" "$libname" "yes"
18227- libobjs="$libobjs $symfileobj"
18228+ func_append libobjs " $symfileobj"
18229 test "X$libobjs" = "X " && libobjs=
18230
18231- if test "$mode" != relink; then
18232+ if test "$opt_mode" != relink; then
18233 # Remove our outputs, but don't remove object files since they
18234 # may have been created when compiling PIC objects.
18235 removelist=
18236@@ -6631,7 +7549,7 @@ func_mode_link ()
18237 continue
18238 fi
18239 fi
18240- removelist="$removelist $p"
18241+ func_append removelist " $p"
18242 ;;
18243 *) ;;
18244 esac
18245@@ -6642,7 +7560,7 @@ func_mode_link ()
18246
18247 # Now set the variables for building old libraries.
18248 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
18249- oldlibs="$oldlibs $output_objdir/$libname.$libext"
18250+ func_append oldlibs " $output_objdir/$libname.$libext"
18251
18252 # Transform .lo files to .o files.
18253 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
18254@@ -6659,10 +7577,11 @@ func_mode_link ()
18255 # If the user specified any rpath flags, then add them.
18256 temp_xrpath=
18257 for libdir in $xrpath; do
18258- temp_xrpath="$temp_xrpath -R$libdir"
18259+ func_replace_sysroot "$libdir"
18260+ func_append temp_xrpath " -R$func_replace_sysroot_result"
18261 case "$finalize_rpath " in
18262 *" $libdir "*) ;;
18263- *) finalize_rpath="$finalize_rpath $libdir" ;;
18264+ *) func_append finalize_rpath " $libdir" ;;
18265 esac
18266 done
18267 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
18268@@ -6676,7 +7595,7 @@ func_mode_link ()
18269 for lib in $old_dlfiles; do
18270 case " $dlprefiles $dlfiles " in
18271 *" $lib "*) ;;
18272- *) dlfiles="$dlfiles $lib" ;;
18273+ *) func_append dlfiles " $lib" ;;
18274 esac
18275 done
18276
18277@@ -6686,7 +7605,7 @@ func_mode_link ()
18278 for lib in $old_dlprefiles; do
18279 case "$dlprefiles " in
18280 *" $lib "*) ;;
18281- *) dlprefiles="$dlprefiles $lib" ;;
18282+ *) func_append dlprefiles " $lib" ;;
18283 esac
18284 done
18285
18286@@ -6698,7 +7617,7 @@ func_mode_link ()
18287 ;;
18288 *-*-rhapsody* | *-*-darwin1.[012])
18289 # Rhapsody C library is in the System framework
18290- deplibs="$deplibs System.ltframework"
18291+ func_append deplibs " System.ltframework"
18292 ;;
18293 *-*-netbsd*)
18294 # Don't link with libc until the a.out ld.so is fixed.
18295@@ -6715,7 +7634,7 @@ func_mode_link ()
18296 *)
18297 # Add libc to deplibs on all other systems if necessary.
18298 if test "$build_libtool_need_lc" = "yes"; then
18299- deplibs="$deplibs -lc"
18300+ func_append deplibs " -lc"
18301 fi
18302 ;;
18303 esac
18304@@ -6764,18 +7683,18 @@ EOF
18305 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18306 case " $predeps $postdeps " in
18307 *" $i "*)
18308- newdeplibs="$newdeplibs $i"
18309+ func_append newdeplibs " $i"
18310 i=""
18311 ;;
18312 esac
18313 fi
18314 if test -n "$i" ; then
18315- eval "libname=\"$libname_spec\""
18316- eval "deplib_matches=\"$library_names_spec\""
18317+ libname=`eval "\\$ECHO \"$libname_spec\""`
18318+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
18319 set dummy $deplib_matches; shift
18320 deplib_match=$1
18321 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
18322- newdeplibs="$newdeplibs $i"
18323+ func_append newdeplibs " $i"
18324 else
18325 droppeddeps=yes
18326 echo
18327@@ -6789,7 +7708,7 @@ EOF
18328 fi
18329 ;;
18330 *)
18331- newdeplibs="$newdeplibs $i"
18332+ func_append newdeplibs " $i"
18333 ;;
18334 esac
18335 done
18336@@ -6807,18 +7726,18 @@ EOF
18337 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18338 case " $predeps $postdeps " in
18339 *" $i "*)
18340- newdeplibs="$newdeplibs $i"
18341+ func_append newdeplibs " $i"
18342 i=""
18343 ;;
18344 esac
18345 fi
18346 if test -n "$i" ; then
18347- eval "libname=\"$libname_spec\""
18348- eval "deplib_matches=\"$library_names_spec\""
18349+ libname=`eval "\\$ECHO \"$libname_spec\""`
18350+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
18351 set dummy $deplib_matches; shift
18352 deplib_match=$1
18353 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
18354- newdeplibs="$newdeplibs $i"
18355+ func_append newdeplibs " $i"
18356 else
18357 droppeddeps=yes
18358 echo
18359@@ -6840,7 +7759,7 @@ EOF
18360 fi
18361 ;;
18362 *)
18363- newdeplibs="$newdeplibs $i"
18364+ func_append newdeplibs " $i"
18365 ;;
18366 esac
18367 done
18368@@ -6857,15 +7776,27 @@ EOF
18369 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18370 case " $predeps $postdeps " in
18371 *" $a_deplib "*)
18372- newdeplibs="$newdeplibs $a_deplib"
18373+ func_append newdeplibs " $a_deplib"
18374 a_deplib=""
18375 ;;
18376 esac
18377 fi
18378 if test -n "$a_deplib" ; then
18379- eval "libname=\"$libname_spec\""
18380+ libname=`eval "\\$ECHO \"$libname_spec\""`
18381+ if test -n "$file_magic_glob"; then
18382+ libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
18383+ else
18384+ libnameglob=$libname
18385+ fi
18386+ test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
18387 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
18388- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
18389+ if test "$want_nocaseglob" = yes; then
18390+ shopt -s nocaseglob
18391+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
18392+ $nocaseglob
18393+ else
18394+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
18395+ fi
18396 for potent_lib in $potential_libs; do
18397 # Follow soft links.
18398 if ls -lLd "$potent_lib" 2>/dev/null |
18399@@ -6885,10 +7816,10 @@ EOF
18400 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
18401 esac
18402 done
18403- if eval "$file_magic_cmd \"\$potlib\"" 2>/dev/null |
18404+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
18405 $SED -e 10q |
18406 $EGREP "$file_magic_regex" > /dev/null; then
18407- newdeplibs="$newdeplibs $a_deplib"
18408+ func_append newdeplibs " $a_deplib"
18409 a_deplib=""
18410 break 2
18411 fi
18412@@ -6913,7 +7844,7 @@ EOF
18413 ;;
18414 *)
18415 # Add a -L argument.
18416- newdeplibs="$newdeplibs $a_deplib"
18417+ func_append newdeplibs " $a_deplib"
18418 ;;
18419 esac
18420 done # Gone through all deplibs.
18421@@ -6929,20 +7860,20 @@ EOF
18422 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18423 case " $predeps $postdeps " in
18424 *" $a_deplib "*)
18425- newdeplibs="$newdeplibs $a_deplib"
18426+ func_append newdeplibs " $a_deplib"
18427 a_deplib=""
18428 ;;
18429 esac
18430 fi
18431 if test -n "$a_deplib" ; then
18432- eval "libname=\"$libname_spec\""
18433+ libname=`eval "\\$ECHO \"$libname_spec\""`
18434 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
18435 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
18436 for potent_lib in $potential_libs; do
18437 potlib="$potent_lib" # see symlink-check above in file_magic test
18438 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
18439 $EGREP "$match_pattern_regex" > /dev/null; then
18440- newdeplibs="$newdeplibs $a_deplib"
18441+ func_append newdeplibs " $a_deplib"
18442 a_deplib=""
18443 break 2
18444 fi
18445@@ -6967,7 +7898,7 @@ EOF
18446 ;;
18447 *)
18448 # Add a -L argument.
18449- newdeplibs="$newdeplibs $a_deplib"
18450+ func_append newdeplibs " $a_deplib"
18451 ;;
18452 esac
18453 done # Gone through all deplibs.
18454@@ -7071,7 +8002,7 @@ EOF
18455 *)
18456 case " $deplibs " in
18457 *" -L$path/$objdir "*)
18458- new_libs="$new_libs -L$path/$objdir" ;;
18459+ func_append new_libs " -L$path/$objdir" ;;
18460 esac
18461 ;;
18462 esac
18463@@ -7081,10 +8012,10 @@ EOF
18464 -L*)
18465 case " $new_libs " in
18466 *" $deplib "*) ;;
18467- *) new_libs="$new_libs $deplib" ;;
18468+ *) func_append new_libs " $deplib" ;;
18469 esac
18470 ;;
18471- *) new_libs="$new_libs $deplib" ;;
18472+ *) func_append new_libs " $deplib" ;;
18473 esac
18474 done
18475 deplibs="$new_libs"
18476@@ -7101,10 +8032,12 @@ EOF
18477 hardcode_libdirs=
18478 dep_rpath=
18479 rpath="$finalize_rpath"
18480- test "$mode" != relink && rpath="$compile_rpath$rpath"
18481+ test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
18482 for libdir in $rpath; do
18483 if test -n "$hardcode_libdir_flag_spec"; then
18484 if test -n "$hardcode_libdir_separator"; then
18485+ func_replace_sysroot "$libdir"
18486+ libdir=$func_replace_sysroot_result
18487 if test -z "$hardcode_libdirs"; then
18488 hardcode_libdirs="$libdir"
18489 else
18490@@ -7113,18 +8046,18 @@ EOF
18491 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
18492 ;;
18493 *)
18494- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
18495+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
18496 ;;
18497 esac
18498 fi
18499 else
18500- eval "flag=\"$hardcode_libdir_flag_spec\""
18501- dep_rpath="$dep_rpath $flag"
18502+ eval flag=\"$hardcode_libdir_flag_spec\"
18503+ func_append dep_rpath " $flag"
18504 fi
18505 elif test -n "$runpath_var"; then
18506 case "$perm_rpath " in
18507 *" $libdir "*) ;;
18508- *) perm_rpath="$perm_rpath $libdir" ;;
18509+ *) func_apped perm_rpath " $libdir" ;;
18510 esac
18511 fi
18512 done
18513@@ -7133,40 +8066,38 @@ EOF
18514 test -n "$hardcode_libdirs"; then
18515 libdir="$hardcode_libdirs"
18516 if test -n "$hardcode_libdir_flag_spec_ld"; then
18517- eval "dep_rpath=\"$hardcode_libdir_flag_spec_ld\""
18518+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
18519 else
18520- eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
18521+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
18522 fi
18523 fi
18524 if test -n "$runpath_var" && test -n "$perm_rpath"; then
18525 # We should set the runpath_var.
18526 rpath=
18527 for dir in $perm_rpath; do
18528- rpath="$rpath$dir:"
18529+ func_append rpath "$dir:"
18530 done
18531- eval $runpath_var=\$rpath\$$runpath_var
18532- export $runpath_var
18533+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
18534 fi
18535 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
18536 fi
18537
18538 shlibpath="$finalize_shlibpath"
18539- test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
18540+ test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
18541 if test -n "$shlibpath"; then
18542- eval $shlibpath_var=\$shlibpath\$$shlibpath_var
18543- export $shlibpath_var
18544+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
18545 fi
18546
18547 # Get the real and link names of the library.
18548- eval "shared_ext=\"$shrext_cmds\""
18549- eval "library_names=\"$library_names_spec\""
18550+ eval shared_ext=\"$shrext_cmds\"
18551+ eval library_names=\"$library_names_spec\"
18552 set dummy $library_names
18553 shift
18554 realname="$1"
18555 shift
18556
18557 if test -n "$soname_spec"; then
18558- eval "soname=\"$soname_spec\""
18559+ eval soname=\"$soname_spec\"
18560 else
18561 soname="$realname"
18562 fi
18563@@ -7178,7 +8109,7 @@ EOF
18564 linknames=
18565 for link
18566 do
18567- linknames="$linknames $link"
18568+ func_append linknames " $link"
18569 done
18570
18571 # Use standard objects if they are pic
18572@@ -7189,7 +8120,7 @@ EOF
18573 if test -n "$export_symbols" && test -n "$include_expsyms"; then
18574 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
18575 export_symbols="$output_objdir/$libname.uexp"
18576- delfiles="$delfiles $export_symbols"
18577+ func_append delfiles " $export_symbols"
18578 fi
18579
18580 orig_export_symbols=
18581@@ -7220,13 +8151,45 @@ EOF
18582 $opt_dry_run || $RM $export_symbols
18583 cmds=$export_symbols_cmds
18584 save_ifs="$IFS"; IFS='~'
18585- for cmd in $cmds; do
18586+ for cmd1 in $cmds; do
18587 IFS="$save_ifs"
18588- eval "cmd=\"$cmd\""
18589- func_len " $cmd"
18590- len=$func_len_result
18591- if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
18592+ # Take the normal branch if the nm_file_list_spec branch
18593+ # doesn't work or if tool conversion is not needed.
18594+ case $nm_file_list_spec~$to_tool_file_cmd in
18595+ *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
18596+ try_normal_branch=yes
18597+ eval cmd=\"$cmd1\"
18598+ func_len " $cmd"
18599+ len=$func_len_result
18600+ ;;
18601+ *)
18602+ try_normal_branch=no
18603+ ;;
18604+ esac
18605+ if test "$try_normal_branch" = yes \
18606+ && { test "$len" -lt "$max_cmd_len" \
18607+ || test "$max_cmd_len" -le -1; }
18608+ then
18609+ func_show_eval "$cmd" 'exit $?'
18610+ skipped_export=false
18611+ elif test -n "$nm_file_list_spec"; then
18612+ func_basename "$output"
18613+ output_la=$func_basename_result
18614+ save_libobjs=$libobjs
18615+ save_output=$output
18616+ output=${output_objdir}/${output_la}.nm
18617+ func_to_tool_file "$output"
18618+ libobjs=$nm_file_list_spec$func_to_tool_file_result
18619+ func_append delfiles " $output"
18620+ func_verbose "creating $NM input file list: $output"
18621+ for obj in $save_libobjs; do
18622+ func_to_tool_file "$obj"
18623+ $ECHO "$func_to_tool_file_result"
18624+ done > "$output"
18625+ eval cmd=\"$cmd1\"
18626 func_show_eval "$cmd" 'exit $?'
18627+ output=$save_output
18628+ libobjs=$save_libobjs
18629 skipped_export=false
18630 else
18631 # The command line is too long to execute in one step.
18632@@ -7248,7 +8211,7 @@ EOF
18633 if test -n "$export_symbols" && test -n "$include_expsyms"; then
18634 tmp_export_symbols="$export_symbols"
18635 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
18636- $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"
18637+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
18638 fi
18639
18640 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
18641@@ -7260,7 +8223,7 @@ EOF
18642 # global variables. join(1) would be nice here, but unfortunately
18643 # isn't a blessed tool.
18644 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
18645- delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
18646+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
18647 export_symbols=$output_objdir/$libname.def
18648 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
18649 fi
18650@@ -7270,7 +8233,7 @@ EOF
18651 case " $convenience " in
18652 *" $test_deplib "*) ;;
18653 *)
18654- tmp_deplibs="$tmp_deplibs $test_deplib"
18655+ func_append tmp_deplibs " $test_deplib"
18656 ;;
18657 esac
18658 done
18659@@ -7286,43 +8249,43 @@ EOF
18660 fi
18661 if test -n "$whole_archive_flag_spec"; then
18662 save_libobjs=$libobjs
18663- eval "libobjs=\"\$libobjs $whole_archive_flag_spec\""
18664+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
18665 test "X$libobjs" = "X " && libobjs=
18666 else
18667 gentop="$output_objdir/${outputname}x"
18668- generated="$generated $gentop"
18669+ func_append generated " $gentop"
18670
18671 func_extract_archives $gentop $convenience
18672- libobjs="$libobjs $func_extract_archives_result"
18673+ func_append libobjs " $func_extract_archives_result"
18674 test "X$libobjs" = "X " && libobjs=
18675 fi
18676 fi
18677
18678 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
18679- eval "flag=\"$thread_safe_flag_spec\""
18680- linker_flags="$linker_flags $flag"
18681+ eval flag=\"$thread_safe_flag_spec\"
18682+ func_append linker_flags " $flag"
18683 fi
18684
18685 # Make a backup of the uninstalled library when relinking
18686- if test "$mode" = relink; then
18687- $opt_dry_run || (cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U) || exit $?
18688+ if test "$opt_mode" = relink; then
18689+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
18690 fi
18691
18692 # Do each of the archive commands.
18693 if test "$module" = yes && test -n "$module_cmds" ; then
18694 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
18695- eval "test_cmds=\"$module_expsym_cmds\""
18696+ eval test_cmds=\"$module_expsym_cmds\"
18697 cmds=$module_expsym_cmds
18698 else
18699- eval "test_cmds=\"$module_cmds\""
18700+ eval test_cmds=\"$module_cmds\"
18701 cmds=$module_cmds
18702 fi
18703 else
18704 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
18705- eval "test_cmds=\"$archive_expsym_cmds\""
18706+ eval test_cmds=\"$archive_expsym_cmds\"
18707 cmds=$archive_expsym_cmds
18708 else
18709- eval "test_cmds=\"$archive_cmds\""
18710+ eval test_cmds=\"$archive_cmds\"
18711 cmds=$archive_cmds
18712 fi
18713 fi
18714@@ -7366,10 +8329,13 @@ EOF
18715 echo 'INPUT (' > $output
18716 for obj in $save_libobjs
18717 do
18718- $ECHO "$obj" >> $output
18719+ func_to_tool_file "$obj"
18720+ $ECHO "$func_to_tool_file_result" >> $output
18721 done
18722 echo ')' >> $output
18723- delfiles="$delfiles $output"
18724+ func_append delfiles " $output"
18725+ func_to_tool_file "$output"
18726+ output=$func_to_tool_file_result
18727 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
18728 output=${output_objdir}/${output_la}.lnk
18729 func_verbose "creating linker input file list: $output"
18730@@ -7383,15 +8349,17 @@ EOF
18731 fi
18732 for obj
18733 do
18734- $ECHO "$obj" >> $output
18735+ func_to_tool_file "$obj"
18736+ $ECHO "$func_to_tool_file_result" >> $output
18737 done
18738- delfiles="$delfiles $output"
18739- output=$firstobj\"$file_list_spec$output\"
18740+ func_append delfiles " $output"
18741+ func_to_tool_file "$output"
18742+ output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
18743 else
18744 if test -n "$save_libobjs"; then
18745 func_verbose "creating reloadable object files..."
18746 output=$output_objdir/$output_la-${k}.$objext
18747- eval "test_cmds=\"$reload_cmds\""
18748+ eval test_cmds=\"$reload_cmds\"
18749 func_len " $test_cmds"
18750 len0=$func_len_result
18751 len=$len0
18752@@ -7411,12 +8379,12 @@ EOF
18753 if test "$k" -eq 1 ; then
18754 # The first file doesn't have a previous command to add.
18755 reload_objs=$objlist
18756- eval "concat_cmds=\"$reload_cmds\""
18757+ eval concat_cmds=\"$reload_cmds\"
18758 else
18759 # All subsequent reloadable object files will link in
18760 # the last one created.
18761 reload_objs="$objlist $last_robj"
18762- eval "concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\""
18763+ eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
18764 fi
18765 last_robj=$output_objdir/$output_la-${k}.$objext
18766 func_arith $k + 1
18767@@ -7433,11 +8401,11 @@ EOF
18768 # files will link in the last one created.
18769 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
18770 reload_objs="$objlist $last_robj"
18771- eval "concat_cmds=\"\${concat_cmds}$reload_cmds\""
18772+ eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
18773 if test -n "$last_robj"; then
18774- eval "concat_cmds=\"\${concat_cmds}~\$RM $last_robj\""
18775+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
18776 fi
18777- delfiles="$delfiles $output"
18778+ func_append delfiles " $output"
18779
18780 else
18781 output=
18782@@ -7450,9 +8418,9 @@ EOF
18783 libobjs=$output
18784 # Append the command to create the export file.
18785 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
18786- eval "concat_cmds=\"\$concat_cmds$export_symbols_cmds\""
18787+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
18788 if test -n "$last_robj"; then
18789- eval "concat_cmds=\"\$concat_cmds~\$RM $last_robj\""
18790+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
18791 fi
18792 fi
18793
18794@@ -7471,7 +8439,7 @@ EOF
18795 lt_exit=$?
18796
18797 # Restore the uninstalled library and exit
18798- if test "$mode" = relink; then
18799+ if test "$opt_mode" = relink; then
18800 ( cd "$output_objdir" && \
18801 $RM "${realname}T" && \
18802 $MV "${realname}U" "$realname" )
18803@@ -7492,7 +8460,7 @@ EOF
18804 if test -n "$export_symbols" && test -n "$include_expsyms"; then
18805 tmp_export_symbols="$export_symbols"
18806 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
18807- $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"
18808+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
18809 fi
18810
18811 if test -n "$orig_export_symbols"; then
18812@@ -7504,7 +8472,7 @@ EOF
18813 # global variables. join(1) would be nice here, but unfortunately
18814 # isn't a blessed tool.
18815 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
18816- delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
18817+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
18818 export_symbols=$output_objdir/$libname.def
18819 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
18820 fi
18821@@ -7515,7 +8483,7 @@ EOF
18822 output=$save_output
18823
18824 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
18825- eval "libobjs=\"\$libobjs $whole_archive_flag_spec\""
18826+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
18827 test "X$libobjs" = "X " && libobjs=
18828 fi
18829 # Expand the library linking commands again to reset the
18830@@ -7539,23 +8507,23 @@ EOF
18831
18832 if test -n "$delfiles"; then
18833 # Append the command to remove temporary files to $cmds.
18834- eval "cmds=\"\$cmds~\$RM $delfiles\""
18835+ eval cmds=\"\$cmds~\$RM $delfiles\"
18836 fi
18837
18838 # Add any objects from preloaded convenience libraries
18839 if test -n "$dlprefiles"; then
18840 gentop="$output_objdir/${outputname}x"
18841- generated="$generated $gentop"
18842+ func_append generated " $gentop"
18843
18844 func_extract_archives $gentop $dlprefiles
18845- libobjs="$libobjs $func_extract_archives_result"
18846+ func_append libobjs " $func_extract_archives_result"
18847 test "X$libobjs" = "X " && libobjs=
18848 fi
18849
18850 save_ifs="$IFS"; IFS='~'
18851 for cmd in $cmds; do
18852 IFS="$save_ifs"
18853- eval "cmd=\"$cmd\""
18854+ eval cmd=\"$cmd\"
18855 $opt_silent || {
18856 func_quote_for_expand "$cmd"
18857 eval "func_echo $func_quote_for_expand_result"
18858@@ -7564,7 +8532,7 @@ EOF
18859 lt_exit=$?
18860
18861 # Restore the uninstalled library and exit
18862- if test "$mode" = relink; then
18863+ if test "$opt_mode" = relink; then
18864 ( cd "$output_objdir" && \
18865 $RM "${realname}T" && \
18866 $MV "${realname}U" "$realname" )
18867@@ -7576,8 +8544,8 @@ EOF
18868 IFS="$save_ifs"
18869
18870 # Restore the uninstalled library and exit
18871- if test "$mode" = relink; then
18872- $opt_dry_run || (cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname) || exit $?
18873+ if test "$opt_mode" = relink; then
18874+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
18875
18876 if test -n "$convenience"; then
18877 if test -z "$whole_archive_flag_spec"; then
18878@@ -7656,17 +8624,20 @@ EOF
18879
18880 if test -n "$convenience"; then
18881 if test -n "$whole_archive_flag_spec"; then
18882- eval "tmp_whole_archive_flags=\"$whole_archive_flag_spec\""
18883+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
18884 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
18885 else
18886 gentop="$output_objdir/${obj}x"
18887- generated="$generated $gentop"
18888+ func_append generated " $gentop"
18889
18890 func_extract_archives $gentop $convenience
18891 reload_conv_objs="$reload_objs $func_extract_archives_result"
18892 fi
18893 fi
18894
18895+ # If we're not building shared, we need to use non_pic_objs
18896+ test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
18897+
18898 # Create the old-style object.
18899 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
18900
18901@@ -7690,7 +8661,7 @@ EOF
18902 # Create an invalid libtool object if no PIC, so that we don't
18903 # accidentally link it into a program.
18904 # $show "echo timestamp > $libobj"
18905- # $opt_dry_run || echo timestamp > $libobj || exit $?
18906+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
18907 exit $EXIT_SUCCESS
18908 fi
18909
18910@@ -7740,8 +8711,8 @@ EOF
18911 if test "$tagname" = CXX ; then
18912 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
18913 10.[0123])
18914- compile_command="$compile_command ${wl}-bind_at_load"
18915- finalize_command="$finalize_command ${wl}-bind_at_load"
18916+ func_append compile_command " ${wl}-bind_at_load"
18917+ func_append finalize_command " ${wl}-bind_at_load"
18918 ;;
18919 esac
18920 fi
18921@@ -7761,7 +8732,7 @@ EOF
18922 *)
18923 case " $compile_deplibs " in
18924 *" -L$path/$objdir "*)
18925- new_libs="$new_libs -L$path/$objdir" ;;
18926+ func_append new_libs " -L$path/$objdir" ;;
18927 esac
18928 ;;
18929 esac
18930@@ -7771,17 +8742,17 @@ EOF
18931 -L*)
18932 case " $new_libs " in
18933 *" $deplib "*) ;;
18934- *) new_libs="$new_libs $deplib" ;;
18935+ *) func_append new_libs " $deplib" ;;
18936 esac
18937 ;;
18938- *) new_libs="$new_libs $deplib" ;;
18939+ *) func_append new_libs " $deplib" ;;
18940 esac
18941 done
18942 compile_deplibs="$new_libs"
18943
18944
18945- compile_command="$compile_command $compile_deplibs"
18946- finalize_command="$finalize_command $finalize_deplibs"
18947+ func_append compile_command " $compile_deplibs"
18948+ func_append finalize_command " $finalize_deplibs"
18949
18950 if test -n "$rpath$xrpath"; then
18951 # If the user specified any rpath flags, then add them.
18952@@ -7789,7 +8760,7 @@ EOF
18953 # This is the magic to use -rpath.
18954 case "$finalize_rpath " in
18955 *" $libdir "*) ;;
18956- *) finalize_rpath="$finalize_rpath $libdir" ;;
18957+ *) func_append finalize_rpath " $libdir" ;;
18958 esac
18959 done
18960 fi
18961@@ -7808,18 +8779,18 @@ EOF
18962 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
18963 ;;
18964 *)
18965- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
18966+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
18967 ;;
18968 esac
18969 fi
18970 else
18971- eval "flag=\"$hardcode_libdir_flag_spec\""
18972- rpath="$rpath $flag"
18973+ eval flag=\"$hardcode_libdir_flag_spec\"
18974+ func_append rpath " $flag"
18975 fi
18976 elif test -n "$runpath_var"; then
18977 case "$perm_rpath " in
18978 *" $libdir "*) ;;
18979- *) perm_rpath="$perm_rpath $libdir" ;;
18980+ *) func_append perm_rpath " $libdir" ;;
18981 esac
18982 fi
18983 case $host in
18984@@ -7828,12 +8799,12 @@ EOF
18985 case :$dllsearchpath: in
18986 *":$libdir:"*) ;;
18987 ::) dllsearchpath=$libdir;;
18988- *) dllsearchpath="$dllsearchpath:$libdir";;
18989+ *) func_append dllsearchpath ":$libdir";;
18990 esac
18991 case :$dllsearchpath: in
18992 *":$testbindir:"*) ;;
18993 ::) dllsearchpath=$testbindir;;
18994- *) dllsearchpath="$dllsearchpath:$testbindir";;
18995+ *) func_append dllsearchpath ":$testbindir";;
18996 esac
18997 ;;
18998 esac
18999@@ -7842,7 +8813,7 @@ EOF
19000 if test -n "$hardcode_libdir_separator" &&
19001 test -n "$hardcode_libdirs"; then
19002 libdir="$hardcode_libdirs"
19003- eval "rpath=\" $hardcode_libdir_flag_spec\""
19004+ eval rpath=\" $hardcode_libdir_flag_spec\"
19005 fi
19006 compile_rpath="$rpath"
19007
19008@@ -7859,18 +8830,18 @@ EOF
19009 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
19010 ;;
19011 *)
19012- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
19013+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
19014 ;;
19015 esac
19016 fi
19017 else
19018- eval "flag=\"$hardcode_libdir_flag_spec\""
19019- rpath="$rpath $flag"
19020+ eval flag=\"$hardcode_libdir_flag_spec\"
19021+ func_append rpath " $flag"
19022 fi
19023 elif test -n "$runpath_var"; then
19024 case "$finalize_perm_rpath " in
19025 *" $libdir "*) ;;
19026- *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
19027+ *) func_append finalize_perm_rpath " $libdir" ;;
19028 esac
19029 fi
19030 done
19031@@ -7878,7 +8849,7 @@ EOF
19032 if test -n "$hardcode_libdir_separator" &&
19033 test -n "$hardcode_libdirs"; then
19034 libdir="$hardcode_libdirs"
19035- eval "rpath=\" $hardcode_libdir_flag_spec\""
19036+ eval rpath=\" $hardcode_libdir_flag_spec\"
19037 fi
19038 finalize_rpath="$rpath"
19039
19040@@ -7921,6 +8892,12 @@ EOF
19041 exit_status=0
19042 func_show_eval "$link_command" 'exit_status=$?'
19043
19044+ if test -n "$postlink_cmds"; then
19045+ func_to_tool_file "$output"
19046+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
19047+ func_execute_cmds "$postlink_cmds" 'exit $?'
19048+ fi
19049+
19050 # Delete the generated files.
19051 if test -f "$output_objdir/${outputname}S.${objext}"; then
19052 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
19053@@ -7943,7 +8920,7 @@ EOF
19054 # We should set the runpath_var.
19055 rpath=
19056 for dir in $perm_rpath; do
19057- rpath="$rpath$dir:"
19058+ func_append rpath "$dir:"
19059 done
19060 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
19061 fi
19062@@ -7951,7 +8928,7 @@ EOF
19063 # We should set the runpath_var.
19064 rpath=
19065 for dir in $finalize_perm_rpath; do
19066- rpath="$rpath$dir:"
19067+ func_append rpath "$dir:"
19068 done
19069 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
19070 fi
19071@@ -7966,6 +8943,13 @@ EOF
19072 $opt_dry_run || $RM $output
19073 # Link the executable and exit
19074 func_show_eval "$link_command" 'exit $?'
19075+
19076+ if test -n "$postlink_cmds"; then
19077+ func_to_tool_file "$output"
19078+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
19079+ func_execute_cmds "$postlink_cmds" 'exit $?'
19080+ fi
19081+
19082 exit $EXIT_SUCCESS
19083 fi
19084
19085@@ -7999,6 +8983,12 @@ EOF
19086
19087 func_show_eval "$link_command" 'exit $?'
19088
19089+ if test -n "$postlink_cmds"; then
19090+ func_to_tool_file "$output_objdir/$outputname"
19091+ 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'`
19092+ func_execute_cmds "$postlink_cmds" 'exit $?'
19093+ fi
19094+
19095 # Now create the wrapper script.
19096 func_verbose "creating $output"
19097
19098@@ -8096,7 +9086,7 @@ EOF
19099 else
19100 oldobjs="$old_deplibs $non_pic_objects"
19101 if test "$preload" = yes && test -f "$symfileobj"; then
19102- oldobjs="$oldobjs $symfileobj"
19103+ func_append oldobjs " $symfileobj"
19104 fi
19105 fi
19106 addlibs="$old_convenience"
19107@@ -8104,10 +9094,10 @@ EOF
19108
19109 if test -n "$addlibs"; then
19110 gentop="$output_objdir/${outputname}x"
19111- generated="$generated $gentop"
19112+ func_append generated " $gentop"
19113
19114 func_extract_archives $gentop $addlibs
19115- oldobjs="$oldobjs $func_extract_archives_result"
19116+ func_append oldobjs " $func_extract_archives_result"
19117 fi
19118
19119 # Do each command in the archive commands.
19120@@ -8118,10 +9108,10 @@ EOF
19121 # Add any objects from preloaded convenience libraries
19122 if test -n "$dlprefiles"; then
19123 gentop="$output_objdir/${outputname}x"
19124- generated="$generated $gentop"
19125+ func_append generated " $gentop"
19126
19127 func_extract_archives $gentop $dlprefiles
19128- oldobjs="$oldobjs $func_extract_archives_result"
19129+ func_append oldobjs " $func_extract_archives_result"
19130 fi
19131
19132 # POSIX demands no paths to be encoded in archives. We have
19133@@ -8139,7 +9129,7 @@ EOF
19134 else
19135 echo "copying selected object files to avoid basename conflicts..."
19136 gentop="$output_objdir/${outputname}x"
19137- generated="$generated $gentop"
19138+ func_append generated " $gentop"
19139 func_mkdir_p "$gentop"
19140 save_oldobjs=$oldobjs
19141 oldobjs=
19142@@ -8163,18 +9153,28 @@ EOF
19143 esac
19144 done
19145 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
19146- oldobjs="$oldobjs $gentop/$newobj"
19147+ func_append oldobjs " $gentop/$newobj"
19148 ;;
19149- *) oldobjs="$oldobjs $obj" ;;
19150+ *) func_append oldobjs " $obj" ;;
19151 esac
19152 done
19153 fi
19154- eval "cmds=\"$old_archive_cmds\""
19155+ eval cmds=\"$old_archive_cmds\"
19156
19157 func_len " $cmds"
19158 len=$func_len_result
19159 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
19160 cmds=$old_archive_cmds
19161+ elif test -n "$archiver_list_spec"; then
19162+ func_verbose "using command file archive linking..."
19163+ for obj in $oldobjs
19164+ do
19165+ func_to_tool_file "$obj"
19166+ $ECHO "$func_to_tool_file_result"
19167+ done > $output_objdir/$libname.libcmd
19168+ func_to_tool_file "$output_objdir/$libname.libcmd"
19169+ oldobjs=" $archiver_list_spec$func_to_tool_file_result"
19170+ cmds=$old_archive_cmds
19171 else
19172 # the command line is too long to link in one step, link in parts
19173 func_verbose "using piecewise archive linking..."
19174@@ -8189,7 +9189,7 @@ EOF
19175 do
19176 last_oldobj=$obj
19177 done
19178- eval "test_cmds=\"$old_archive_cmds\""
19179+ eval test_cmds=\"$old_archive_cmds\"
19180 func_len " $test_cmds"
19181 len0=$func_len_result
19182 len=$len0
19183@@ -8208,7 +9208,7 @@ EOF
19184 RANLIB=$save_RANLIB
19185 fi
19186 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
19187- eval "concat_cmds=\"\${concat_cmds}$old_archive_cmds\""
19188+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
19189 objlist=
19190 len=$len0
19191 fi
19192@@ -8216,9 +9216,9 @@ EOF
19193 RANLIB=$save_RANLIB
19194 oldobjs=$objlist
19195 if test "X$oldobjs" = "X" ; then
19196- eval "cmds=\"\$concat_cmds\""
19197+ eval cmds=\"\$concat_cmds\"
19198 else
19199- eval "cmds=\"\$concat_cmds~\$old_archive_cmds\""
19200+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
19201 fi
19202 fi
19203 fi
19204@@ -8268,12 +9268,23 @@ EOF
19205 *.la)
19206 func_basename "$deplib"
19207 name="$func_basename_result"
19208- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
19209+ func_resolve_sysroot "$deplib"
19210+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
19211 test -z "$libdir" && \
19212 func_fatal_error "\`$deplib' is not a valid libtool archive"
19213- newdependency_libs="$newdependency_libs $libdir/$name"
19214+ func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
19215+ ;;
19216+ -L*)
19217+ func_stripname -L '' "$deplib"
19218+ func_replace_sysroot "$func_stripname_result"
19219+ func_append newdependency_libs " -L$func_replace_sysroot_result"
19220 ;;
19221- *) newdependency_libs="$newdependency_libs $deplib" ;;
19222+ -R*)
19223+ func_stripname -R '' "$deplib"
19224+ func_replace_sysroot "$func_stripname_result"
19225+ func_append newdependency_libs " -R$func_replace_sysroot_result"
19226+ ;;
19227+ *) func_append newdependency_libs " $deplib" ;;
19228 esac
19229 done
19230 dependency_libs="$newdependency_libs"
19231@@ -8284,12 +9295,14 @@ EOF
19232 *.la)
19233 func_basename "$lib"
19234 name="$func_basename_result"
19235- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
19236+ func_resolve_sysroot "$lib"
19237+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
19238+
19239 test -z "$libdir" && \
19240 func_fatal_error "\`$lib' is not a valid libtool archive"
19241- newdlfiles="$newdlfiles $libdir/$name"
19242+ func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
19243 ;;
19244- *) newdlfiles="$newdlfiles $lib" ;;
19245+ *) func_append newdlfiles " $lib" ;;
19246 esac
19247 done
19248 dlfiles="$newdlfiles"
19249@@ -8303,10 +9316,11 @@ EOF
19250 # the library:
19251 func_basename "$lib"
19252 name="$func_basename_result"
19253- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
19254+ func_resolve_sysroot "$lib"
19255+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
19256 test -z "$libdir" && \
19257 func_fatal_error "\`$lib' is not a valid libtool archive"
19258- newdlprefiles="$newdlprefiles $libdir/$name"
19259+ func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
19260 ;;
19261 esac
19262 done
19263@@ -8318,7 +9332,7 @@ EOF
19264 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
19265 *) abs=`pwd`"/$lib" ;;
19266 esac
19267- newdlfiles="$newdlfiles $abs"
19268+ func_append newdlfiles " $abs"
19269 done
19270 dlfiles="$newdlfiles"
19271 newdlprefiles=
19272@@ -8327,7 +9341,7 @@ EOF
19273 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
19274 *) abs=`pwd`"/$lib" ;;
19275 esac
19276- newdlprefiles="$newdlprefiles $abs"
19277+ func_append newdlprefiles " $abs"
19278 done
19279 dlprefiles="$newdlprefiles"
19280 fi
19281@@ -8412,7 +9426,7 @@ relink_command=\"$relink_command\""
19282 exit $EXIT_SUCCESS
19283 }
19284
19285-{ test "$mode" = link || test "$mode" = relink; } &&
19286+{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
19287 func_mode_link ${1+"$@"}
19288
19289
19290@@ -8432,9 +9446,9 @@ func_mode_uninstall ()
19291 for arg
19292 do
19293 case $arg in
19294- -f) RM="$RM $arg"; rmforce=yes ;;
19295- -*) RM="$RM $arg" ;;
19296- *) files="$files $arg" ;;
19297+ -f) func_append RM " $arg"; rmforce=yes ;;
19298+ -*) func_append RM " $arg" ;;
19299+ *) func_append files " $arg" ;;
19300 esac
19301 done
19302
19303@@ -8443,24 +9457,23 @@ func_mode_uninstall ()
19304
19305 rmdirs=
19306
19307- origobjdir="$objdir"
19308 for file in $files; do
19309 func_dirname "$file" "" "."
19310 dir="$func_dirname_result"
19311 if test "X$dir" = X.; then
19312- objdir="$origobjdir"
19313+ odir="$objdir"
19314 else
19315- objdir="$dir/$origobjdir"
19316+ odir="$dir/$objdir"
19317 fi
19318 func_basename "$file"
19319 name="$func_basename_result"
19320- test "$mode" = uninstall && objdir="$dir"
19321+ test "$opt_mode" = uninstall && odir="$dir"
19322
19323- # Remember objdir for removal later, being careful to avoid duplicates
19324- if test "$mode" = clean; then
19325+ # Remember odir for removal later, being careful to avoid duplicates
19326+ if test "$opt_mode" = clean; then
19327 case " $rmdirs " in
19328- *" $objdir "*) ;;
19329- *) rmdirs="$rmdirs $objdir" ;;
19330+ *" $odir "*) ;;
19331+ *) func_append rmdirs " $odir" ;;
19332 esac
19333 fi
19334
19335@@ -8486,18 +9499,17 @@ func_mode_uninstall ()
19336
19337 # Delete the libtool libraries and symlinks.
19338 for n in $library_names; do
19339- rmfiles="$rmfiles $objdir/$n"
19340+ func_append rmfiles " $odir/$n"
19341 done
19342- test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
19343+ test -n "$old_library" && func_append rmfiles " $odir/$old_library"
19344
19345- case "$mode" in
19346+ case "$opt_mode" in
19347 clean)
19348- case " $library_names " in
19349- # " " in the beginning catches empty $dlname
19350+ case " $library_names " in
19351 *" $dlname "*) ;;
19352- *) rmfiles="$rmfiles $objdir/$dlname" ;;
19353+ *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
19354 esac
19355- test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
19356+ test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
19357 ;;
19358 uninstall)
19359 if test -n "$library_names"; then
19360@@ -8525,19 +9537,19 @@ func_mode_uninstall ()
19361 # Add PIC object to the list of files to remove.
19362 if test -n "$pic_object" &&
19363 test "$pic_object" != none; then
19364- rmfiles="$rmfiles $dir/$pic_object"
19365+ func_append rmfiles " $dir/$pic_object"
19366 fi
19367
19368 # Add non-PIC object to the list of files to remove.
19369 if test -n "$non_pic_object" &&
19370 test "$non_pic_object" != none; then
19371- rmfiles="$rmfiles $dir/$non_pic_object"
19372+ func_append rmfiles " $dir/$non_pic_object"
19373 fi
19374 fi
19375 ;;
19376
19377 *)
19378- if test "$mode" = clean ; then
19379+ if test "$opt_mode" = clean ; then
19380 noexename=$name
19381 case $file in
19382 *.exe)
19383@@ -8547,7 +9559,7 @@ func_mode_uninstall ()
19384 noexename=$func_stripname_result
19385 # $file with .exe has already been added to rmfiles,
19386 # add $file without .exe
19387- rmfiles="$rmfiles $file"
19388+ func_append rmfiles " $file"
19389 ;;
19390 esac
19391 # Do a test to see if this is a libtool program.
19392@@ -8556,7 +9568,7 @@ func_mode_uninstall ()
19393 func_ltwrapper_scriptname "$file"
19394 relink_command=
19395 func_source $func_ltwrapper_scriptname_result
19396- rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
19397+ func_append rmfiles " $func_ltwrapper_scriptname_result"
19398 else
19399 relink_command=
19400 func_source $dir/$noexename
19401@@ -8564,12 +9576,12 @@ func_mode_uninstall ()
19402
19403 # note $name still contains .exe if it was in $file originally
19404 # as does the version of $file that was added into $rmfiles
19405- rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
19406+ func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
19407 if test "$fast_install" = yes && test -n "$relink_command"; then
19408- rmfiles="$rmfiles $objdir/lt-$name"
19409+ func_append rmfiles " $odir/lt-$name"
19410 fi
19411 if test "X$noexename" != "X$name" ; then
19412- rmfiles="$rmfiles $objdir/lt-${noexename}.c"
19413+ func_append rmfiles " $odir/lt-${noexename}.c"
19414 fi
19415 fi
19416 fi
19417@@ -8577,7 +9589,6 @@ func_mode_uninstall ()
19418 esac
19419 func_show_eval "$RM $rmfiles" 'exit_status=1'
19420 done
19421- objdir="$origobjdir"
19422
19423 # Try to remove the ${objdir}s in the directories where we deleted files
19424 for dir in $rmdirs; do
19425@@ -8589,16 +9600,16 @@ func_mode_uninstall ()
19426 exit $exit_status
19427 }
19428
19429-{ test "$mode" = uninstall || test "$mode" = clean; } &&
19430+{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
19431 func_mode_uninstall ${1+"$@"}
19432
19433-test -z "$mode" && {
19434+test -z "$opt_mode" && {
19435 help="$generic_help"
19436 func_fatal_help "you must specify a MODE"
19437 }
19438
19439 test -z "$exec_cmd" && \
19440- func_fatal_help "invalid operation mode \`$mode'"
19441+ func_fatal_help "invalid operation mode \`$opt_mode'"
19442
19443 if test -n "$exec_cmd"; then
19444 eval exec "$exec_cmd"
19445diff --git a/ltoptions.m4 b/ltoptions.m4
19446index 5ef12ced2a8..17cfd51c0b3 100644
19447--- a/ltoptions.m4
19448+++ b/ltoptions.m4
19449@@ -8,7 +8,7 @@
19450 # unlimited permission to copy and/or distribute it, with or without
19451 # modifications, as long as this notice is preserved.
19452
19453-# serial 6 ltoptions.m4
19454+# serial 7 ltoptions.m4
19455
19456 # This is to help aclocal find these macros, as it can't see m4_define.
19457 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
19458diff --git a/ltversion.m4 b/ltversion.m4
19459index bf87f77132d..9c7b5d41185 100644
19460--- a/ltversion.m4
19461+++ b/ltversion.m4
19462@@ -7,17 +7,17 @@
19463 # unlimited permission to copy and/or distribute it, with or without
19464 # modifications, as long as this notice is preserved.
19465
19466-# Generated from ltversion.in.
19467+# @configure_input@
19468
19469-# serial 3134 ltversion.m4
19470+# serial 3293 ltversion.m4
19471 # This file is part of GNU Libtool
19472
19473-m4_define([LT_PACKAGE_VERSION], [2.2.7a])
19474-m4_define([LT_PACKAGE_REVISION], [1.3134])
19475+m4_define([LT_PACKAGE_VERSION], [2.4])
19476+m4_define([LT_PACKAGE_REVISION], [1.3293])
19477
19478 AC_DEFUN([LTVERSION_VERSION],
19479-[macro_version='2.2.7a'
19480-macro_revision='1.3134'
19481+[macro_version='2.4'
19482+macro_revision='1.3293'
19483 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
19484 _LT_DECL(, macro_revision, 0)
19485 ])
19486diff --git a/lt~obsolete.m4 b/lt~obsolete.m4
19487index bf92b5e0790..c573da90c5c 100644
19488--- a/lt~obsolete.m4
19489+++ b/lt~obsolete.m4
19490@@ -7,7 +7,7 @@
19491 # unlimited permission to copy and/or distribute it, with or without
19492 # modifications, as long as this notice is preserved.
19493
19494-# serial 4 lt~obsolete.m4
19495+# serial 5 lt~obsolete.m4
19496
19497 # These exist entirely to fool aclocal when bootstrapping libtool.
19498 #
19499diff --git a/opcodes/configure b/opcodes/configure
Patrick Williams213cb262021-08-07 19:21:33 -050019500index 3513e408ce1..133948631e9 100755
Andrew Geissler82c905d2020-04-13 13:39:40 -050019501--- a/opcodes/configure
19502+++ b/opcodes/configure
19503@@ -680,6 +680,9 @@ OTOOL
19504 LIPO
19505 NMEDIT
19506 DSYMUTIL
19507+MANIFEST_TOOL
19508+ac_ct_AR
19509+DLLTOOL
19510 OBJDUMP
19511 LN_S
19512 NM
19513@@ -798,6 +801,7 @@ enable_static
19514 with_pic
19515 enable_fast_install
19516 with_gnu_ld
19517+with_libtool_sysroot
19518 enable_libtool_lock
Patrick Williams213cb262021-08-07 19:21:33 -050019519 enable_checking
Andrew Geissler82c905d2020-04-13 13:39:40 -050019520 enable_targets
Patrick Williams213cb262021-08-07 19:21:33 -050019521@@ -1464,6 +1468,8 @@ Optional Packages:
Andrew Geissler82c905d2020-04-13 13:39:40 -050019522 --with-pic try to use only PIC/non-PIC objects [default=use
19523 both]
19524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
19525+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
19526+ (or the compiler's sysroot if not specified).
19527
19528 Some influential environment variables:
19529 CC C compiler command
Patrick Williams213cb262021-08-07 19:21:33 -050019530@@ -4751,8 +4757,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050019531
19532
19533
19534-macro_version='2.2.7a'
19535-macro_revision='1.3134'
19536+macro_version='2.4'
19537+macro_revision='1.3293'
19538
19539
19540
Patrick Williams213cb262021-08-07 19:21:33 -050019541@@ -4792,7 +4798,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Andrew Geissler82c905d2020-04-13 13:39:40 -050019542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
19543 $as_echo_n "checking how to print strings... " >&6; }
19544 # Test print first, because it will be a builtin if present.
19545-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
19546+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
19547 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
19548 ECHO='print -r --'
19549 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Patrick Williams213cb262021-08-07 19:21:33 -050019550@@ -5478,8 +5484,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
Andrew Geissler82c905d2020-04-13 13:39:40 -050019551 # Try some XSI features
19552 xsi_shell=no
19553 ( _lt_dummy="a/b/c"
19554- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
19555- = c,a/b,, \
19556+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
19557+ = c,a/b,b/c, \
19558 && eval 'test $(( 1 + 1 )) -eq 2 \
19559 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
19560 && xsi_shell=yes
Patrick Williams213cb262021-08-07 19:21:33 -050019561@@ -5528,6 +5534,80 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050019562
19563
19564
19565+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
19566+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
19567+if ${lt_cv_to_host_file_cmd+:} false; then :
19568+ $as_echo_n "(cached) " >&6
19569+else
19570+ case $host in
19571+ *-*-mingw* )
19572+ case $build in
19573+ *-*-mingw* ) # actually msys
19574+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
19575+ ;;
19576+ *-*-cygwin* )
19577+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
19578+ ;;
19579+ * ) # otherwise, assume *nix
19580+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
19581+ ;;
19582+ esac
19583+ ;;
19584+ *-*-cygwin* )
19585+ case $build in
19586+ *-*-mingw* ) # actually msys
19587+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
19588+ ;;
19589+ *-*-cygwin* )
19590+ lt_cv_to_host_file_cmd=func_convert_file_noop
19591+ ;;
19592+ * ) # otherwise, assume *nix
19593+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
19594+ ;;
19595+ esac
19596+ ;;
19597+ * ) # unhandled hosts (and "normal" native builds)
19598+ lt_cv_to_host_file_cmd=func_convert_file_noop
19599+ ;;
19600+esac
19601+
19602+fi
19603+
19604+to_host_file_cmd=$lt_cv_to_host_file_cmd
19605+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
19606+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
19607+
19608+
19609+
19610+
19611+
19612+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
19613+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
19614+if ${lt_cv_to_tool_file_cmd+:} false; then :
19615+ $as_echo_n "(cached) " >&6
19616+else
19617+ #assume ordinary cross tools, or native build.
19618+lt_cv_to_tool_file_cmd=func_convert_file_noop
19619+case $host in
19620+ *-*-mingw* )
19621+ case $build in
19622+ *-*-mingw* ) # actually msys
19623+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
19624+ ;;
19625+ esac
19626+ ;;
19627+esac
19628+
19629+fi
19630+
19631+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19632+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
19633+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
19634+
19635+
19636+
19637+
19638+
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
19640 $as_echo_n "checking for $LD option to reload object files... " >&6; }
19641 if ${lt_cv_ld_reload_flag+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -050019642@@ -5544,6 +5624,11 @@ case $reload_flag in
Andrew Geissler82c905d2020-04-13 13:39:40 -050019643 esac
19644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
19645 case $host_os in
19646+ cygwin* | mingw* | pw32* | cegcc*)
19647+ if test "$GCC" != yes; then
19648+ reload_cmds=false
19649+ fi
19650+ ;;
19651 darwin*)
19652 if test "$GCC" = yes; then
19653 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Patrick Williams213cb262021-08-07 19:21:33 -050019654@@ -5712,7 +5797,8 @@ mingw* | pw32*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050019655 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
19656 lt_cv_file_magic_cmd='func_win32_libid'
19657 else
19658- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
19659+ # Keep this pattern in sync with the one in func_win32_libid.
19660+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
19661 lt_cv_file_magic_cmd='$OBJDUMP -f'
19662 fi
19663 ;;
Patrick Williams213cb262021-08-07 19:21:33 -050019664@@ -5866,6 +5952,21 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050019665 fi
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
19667 $as_echo "$lt_cv_deplibs_check_method" >&6; }
19668+
19669+file_magic_glob=
19670+want_nocaseglob=no
19671+if test "$build" = "$host"; then
19672+ case $host_os in
19673+ mingw* | pw32*)
19674+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
19675+ want_nocaseglob=yes
19676+ else
19677+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
19678+ fi
19679+ ;;
19680+ esac
19681+fi
19682+
19683 file_magic_cmd=$lt_cv_file_magic_cmd
19684 deplibs_check_method=$lt_cv_deplibs_check_method
19685 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -050019686@@ -5881,6 +5982,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler82c905d2020-04-13 13:39:40 -050019687
19688
19689
19690+
19691+
19692+
19693+
19694+
19695+
19696+
19697+
19698+
19699+
Patrick Williams213cb262021-08-07 19:21:33 -050019700+if test -n "$ac_tool_prefix"; then
Andrew Geissler82c905d2020-04-13 13:39:40 -050019701+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19702+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
19703+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19704+$as_echo_n "checking for $ac_word... " >&6; }
19705+if ${ac_cv_prog_DLLTOOL+:} false; then :
19706+ $as_echo_n "(cached) " >&6
19707+else
19708+ if test -n "$DLLTOOL"; then
19709+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
19710+else
19711+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19712+for as_dir in $PATH
19713+do
19714+ IFS=$as_save_IFS
19715+ test -z "$as_dir" && as_dir=.
19716+ for ac_exec_ext in '' $ac_executable_extensions; do
19717+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19718+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
19719+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19720+ break 2
19721+ fi
19722+done
19723+ done
19724+IFS=$as_save_IFS
19725+
19726+fi
19727+fi
19728+DLLTOOL=$ac_cv_prog_DLLTOOL
19729+if test -n "$DLLTOOL"; then
19730+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
19731+$as_echo "$DLLTOOL" >&6; }
19732+else
19733+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19734+$as_echo "no" >&6; }
19735+fi
19736+
19737+
19738+fi
19739+if test -z "$ac_cv_prog_DLLTOOL"; then
19740+ ac_ct_DLLTOOL=$DLLTOOL
19741+ # Extract the first word of "dlltool", so it can be a program name with args.
19742+set dummy dlltool; ac_word=$2
19743+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19744+$as_echo_n "checking for $ac_word... " >&6; }
19745+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
19746+ $as_echo_n "(cached) " >&6
19747+else
19748+ if test -n "$ac_ct_DLLTOOL"; then
19749+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
19750+else
19751+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752+for as_dir in $PATH
19753+do
19754+ IFS=$as_save_IFS
19755+ test -z "$as_dir" && as_dir=.
19756+ for ac_exec_ext in '' $ac_executable_extensions; do
19757+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19758+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
19759+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19760+ break 2
19761+ fi
19762+done
19763+ done
19764+IFS=$as_save_IFS
19765+
19766+fi
19767+fi
19768+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
19769+if test -n "$ac_ct_DLLTOOL"; then
19770+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
19771+$as_echo "$ac_ct_DLLTOOL" >&6; }
19772+else
19773+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19774+$as_echo "no" >&6; }
19775+fi
19776+
19777+ if test "x$ac_ct_DLLTOOL" = x; then
19778+ DLLTOOL="false"
19779+ else
19780+ case $cross_compiling:$ac_tool_warned in
19781+yes:)
19782+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19783+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19784+ac_tool_warned=yes ;;
19785+esac
19786+ DLLTOOL=$ac_ct_DLLTOOL
19787+ fi
19788+else
19789+ DLLTOOL="$ac_cv_prog_DLLTOOL"
19790+fi
19791+
19792+test -z "$DLLTOOL" && DLLTOOL=dlltool
19793+
19794+
19795+
19796+
19797+
19798+
19799+
19800+
19801+
19802+
19803+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
19804+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
19805+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
19806+ $as_echo_n "(cached) " >&6
19807+else
19808+ lt_cv_sharedlib_from_linklib_cmd='unknown'
19809+
19810+case $host_os in
19811+cygwin* | mingw* | pw32* | cegcc*)
19812+ # two different shell functions defined in ltmain.sh
19813+ # decide which to use based on capabilities of $DLLTOOL
19814+ case `$DLLTOOL --help 2>&1` in
19815+ *--identify-strict*)
19816+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
19817+ ;;
19818+ *)
19819+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
19820+ ;;
19821+ esac
19822+ ;;
19823+*)
19824+ # fallback: assume linklib IS sharedlib
19825+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
19826+ ;;
19827+esac
19828+
19829+fi
19830+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
19831+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
19832+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
19833+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
19834+
19835+
19836+
19837+
19838+
19839+
19840+
Patrick Williams213cb262021-08-07 19:21:33 -050019841 plugin_option=
19842 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
19843 for plugin in $plugin_names; do
19844@@ -5895,8 +6147,10 @@ for plugin in $plugin_names; do
19845 done
19846
19847 if test -n "$ac_tool_prefix"; then
19848- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19849-set dummy ${ac_tool_prefix}ar; ac_word=$2
Andrew Geissler82c905d2020-04-13 13:39:40 -050019850+ for ac_prog in ar
19851+ do
19852+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19853+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19855 $as_echo_n "checking for $ac_word... " >&6; }
19856 if ${ac_cv_prog_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -050019857@@ -5912,7 +6166,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -050019858 test -z "$as_dir" && as_dir=.
19859 for ac_exec_ext in '' $ac_executable_extensions; do
19860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19861- ac_cv_prog_AR="${ac_tool_prefix}ar"
19862+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
19863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19864 break 2
19865 fi
Patrick Williams213cb262021-08-07 19:21:33 -050019866@@ -5932,11 +6186,15 @@ $as_echo "no" >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -050019867 fi
19868
19869
19870+ test -n "$AR" && break
19871+ done
19872 fi
19873-if test -z "$ac_cv_prog_AR"; then
19874+if test -z "$AR"; then
19875 ac_ct_AR=$AR
19876- # Extract the first word of "ar", so it can be a program name with args.
19877-set dummy ar; ac_word=$2
19878+ for ac_prog in ar
19879+do
19880+ # Extract the first word of "$ac_prog", so it can be a program name with args.
19881+set dummy $ac_prog; ac_word=$2
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19883 $as_echo_n "checking for $ac_word... " >&6; }
19884 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -050019885@@ -5952,7 +6210,7 @@ do
Andrew Geissler82c905d2020-04-13 13:39:40 -050019886 test -z "$as_dir" && as_dir=.
19887 for ac_exec_ext in '' $ac_executable_extensions; do
19888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19889- ac_cv_prog_ac_ct_AR="ar"
19890+ ac_cv_prog_ac_ct_AR="$ac_prog"
19891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19892 break 2
19893 fi
Patrick Williams213cb262021-08-07 19:21:33 -050019894@@ -5971,6 +6229,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050019895 $as_echo "no" >&6; }
19896 fi
19897
19898+
19899+ test -n "$ac_ct_AR" && break
19900+done
19901+
19902 if test "x$ac_ct_AR" = x; then
19903 AR="false"
19904 else
Patrick Williams213cb262021-08-07 19:21:33 -050019905@@ -5982,25 +6244,20 @@ ac_tool_warned=yes ;;
Andrew Geissler82c905d2020-04-13 13:39:40 -050019906 esac
19907 AR=$ac_ct_AR
19908 fi
19909-else
19910- AR="$ac_cv_prog_AR"
19911 fi
19912
19913-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -050019914-if test -n "$plugin_option"; then
19915- if $AR --help 2>&1 | grep -q "\--plugin"; then
19916- touch conftest.c
19917- $AR $plugin_option rc conftest.a conftest.c
19918- if test "$?" != 0; then
19919- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
19920+ touch conftest.c
19921+ $AR $plugin_option rc conftest.a conftest.c
19922+ if test "$?" != 0; then
19923+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
19924 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
19925- else
19926- AR="$AR $plugin_option"
19927- fi
19928- rm -f conftest.*
19929+ else
19930+ AR="$AR $plugin_option"
19931 fi
19932-fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050019933-test -z "$AR_FLAGS" && AR_FLAGS=cru
Patrick Williams213cb262021-08-07 19:21:33 -050019934+ rm -f conftest.*
Andrew Geissler82c905d2020-04-13 13:39:40 -050019935+: ${AR=ar}
19936+: ${AR_FLAGS=cru}
19937+
Patrick Williams213cb262021-08-07 19:21:33 -050019938
19939
19940
19941@@ -6011,6 +6268,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
19942
19943
19944
Andrew Geissler82c905d2020-04-13 13:39:40 -050019945+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
19946+$as_echo_n "checking for archiver @FILE support... " >&6; }
19947+if ${lt_cv_ar_at_file+:} false; then :
19948+ $as_echo_n "(cached) " >&6
19949+else
19950+ lt_cv_ar_at_file=no
19951+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19952+/* end confdefs.h. */
19953+
19954+int
19955+main ()
19956+{
Patrick Williams213cb262021-08-07 19:21:33 -050019957+
Andrew Geissler82c905d2020-04-13 13:39:40 -050019958+ ;
19959+ return 0;
19960+}
19961+_ACEOF
19962+if ac_fn_c_try_compile "$LINENO"; then :
19963+ echo conftest.$ac_objext > conftest.lst
19964+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
19965+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
19966+ (eval $lt_ar_try) 2>&5
19967+ ac_status=$?
19968+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19969+ test $ac_status = 0; }
19970+ if test "$ac_status" -eq 0; then
19971+ # Ensure the archiver fails upon bogus file names.
19972+ rm -f conftest.$ac_objext libconftest.a
19973+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
19974+ (eval $lt_ar_try) 2>&5
19975+ ac_status=$?
19976+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19977+ test $ac_status = 0; }
19978+ if test "$ac_status" -ne 0; then
19979+ lt_cv_ar_at_file=@
19980+ fi
19981+ fi
19982+ rm -f conftest.* libconftest.a
Patrick Williams213cb262021-08-07 19:21:33 -050019983+
Andrew Geissler82c905d2020-04-13 13:39:40 -050019984+fi
19985+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -050019986+
Andrew Geissler82c905d2020-04-13 13:39:40 -050019987+fi
19988+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
19989+$as_echo "$lt_cv_ar_at_file" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -050019990+
Andrew Geissler82c905d2020-04-13 13:39:40 -050019991+if test "x$lt_cv_ar_at_file" = xno; then
19992+ archiver_list_spec=
19993+else
19994+ archiver_list_spec=$lt_cv_ar_at_file
19995+fi
Patrick Williams213cb262021-08-07 19:21:33 -050019996+
19997+
19998+
19999+
20000+
20001+
Andrew Geissler82c905d2020-04-13 13:39:40 -050020002
Patrick Williams213cb262021-08-07 19:21:33 -050020003 if test -n "$ac_tool_prefix"; then
20004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20005@@ -6351,8 +6665,8 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050020006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
20007
20008 # Transform an extracted symbol line into symbol name and symbol address
20009-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
20010-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'"
20011+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
20012+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'"
20013
20014 # Handle CRLF in mingw tool chain
20015 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -050020016@@ -6388,6 +6702,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler82c905d2020-04-13 13:39:40 -050020017 else
20018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
20019 fi
20020+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
20021
20022 # Check to see that the pipe works correctly.
20023 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -050020024@@ -6429,6 +6744,18 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020025 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
20026 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
20027 cat <<_LT_EOF > conftest.$ac_ext
20028+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
20029+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
20030+/* DATA imports from DLLs on WIN32 con't be const, because runtime
20031+ relocations are performed -- see ld's documentation on pseudo-relocs. */
20032+# define LT_DLSYM_CONST
20033+#elif defined(__osf__)
20034+/* This system does not cope well with relocations in const data. */
20035+# define LT_DLSYM_CONST
20036+#else
20037+# define LT_DLSYM_CONST const
20038+#endif
20039+
20040 #ifdef __cplusplus
20041 extern "C" {
20042 #endif
Patrick Williams213cb262021-08-07 19:21:33 -050020043@@ -6440,7 +6767,7 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020044 cat <<_LT_EOF >> conftest.$ac_ext
20045
20046 /* The mapping between symbol names and symbols. */
20047-const struct {
20048+LT_DLSYM_CONST struct {
20049 const char *name;
20050 void *address;
20051 }
Patrick Williams213cb262021-08-07 19:21:33 -050020052@@ -6466,8 +6793,8 @@ static const void *lt_preloaded_setup() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050020053 _LT_EOF
20054 # Now try linking the two files.
20055 mv conftest.$ac_objext conftstm.$ac_objext
20056- lt_save_LIBS="$LIBS"
20057- lt_save_CFLAGS="$CFLAGS"
20058+ lt_globsym_save_LIBS=$LIBS
20059+ lt_globsym_save_CFLAGS=$CFLAGS
20060 LIBS="conftstm.$ac_objext"
20061 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
20062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Patrick Williams213cb262021-08-07 19:21:33 -050020063@@ -6477,8 +6804,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020064 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
20065 pipe_works=yes
20066 fi
20067- LIBS="$lt_save_LIBS"
20068- CFLAGS="$lt_save_CFLAGS"
20069+ LIBS=$lt_globsym_save_LIBS
20070+ CFLAGS=$lt_globsym_save_CFLAGS
20071 else
20072 echo "cannot find nm_test_func in $nlist" >&5
20073 fi
Patrick Williams213cb262021-08-07 19:21:33 -050020074@@ -6515,6 +6842,14 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050020075 $as_echo "ok" >&6; }
20076 fi
20077
20078+# Response file support.
20079+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
20080+ nm_file_list_spec='@'
20081+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
20082+ nm_file_list_spec='@'
20083+fi
20084+
20085+
Andrew Geissler82c905d2020-04-13 13:39:40 -050020086
20087
20088
Patrick Williams213cb262021-08-07 19:21:33 -050020089@@ -6533,6 +6868,47 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020090
20091
20092
20093+
20094+
20095+
20096+
20097+
20098+
20099+
20100+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
20101+$as_echo_n "checking for sysroot... " >&6; }
20102+
20103+# Check whether --with-libtool-sysroot was given.
20104+if test "${with_libtool_sysroot+set}" = set; then :
20105+ withval=$with_libtool_sysroot;
20106+else
20107+ with_libtool_sysroot=no
20108+fi
20109+
20110+
20111+lt_sysroot=
20112+case ${with_libtool_sysroot} in #(
20113+ yes)
20114+ if test "$GCC" = yes; then
20115+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
20116+ fi
20117+ ;; #(
20118+ /*)
20119+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
20120+ ;; #(
20121+ no|'')
20122+ ;; #(
20123+ *)
20124+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
20125+$as_echo "${with_libtool_sysroot}" >&6; }
20126+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
20127+ ;;
20128+esac
20129+
20130+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
20131+$as_echo "${lt_sysroot:-no}" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -050020132+
20133+
Andrew Geissler82c905d2020-04-13 13:39:40 -050020134
20135
20136
Patrick Williams213cb262021-08-07 19:21:33 -050020137@@ -6742,6 +7118,123 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050020138
20139 need_locks="$enable_libtool_lock"
20140
20141+if test -n "$ac_tool_prefix"; then
20142+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
20143+set dummy ${ac_tool_prefix}mt; ac_word=$2
20144+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20145+$as_echo_n "checking for $ac_word... " >&6; }
20146+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
20147+ $as_echo_n "(cached) " >&6
20148+else
20149+ if test -n "$MANIFEST_TOOL"; then
20150+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
20151+else
20152+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20153+for as_dir in $PATH
20154+do
20155+ IFS=$as_save_IFS
20156+ test -z "$as_dir" && as_dir=.
20157+ for ac_exec_ext in '' $ac_executable_extensions; do
20158+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20159+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
20160+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20161+ break 2
20162+ fi
20163+done
20164+ done
20165+IFS=$as_save_IFS
20166+
20167+fi
20168+fi
20169+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
20170+if test -n "$MANIFEST_TOOL"; then
20171+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
20172+$as_echo "$MANIFEST_TOOL" >&6; }
20173+else
20174+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20175+$as_echo "no" >&6; }
20176+fi
20177+
20178+
20179+fi
20180+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
20181+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
20182+ # Extract the first word of "mt", so it can be a program name with args.
20183+set dummy mt; ac_word=$2
20184+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20185+$as_echo_n "checking for $ac_word... " >&6; }
20186+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
20187+ $as_echo_n "(cached) " >&6
20188+else
20189+ if test -n "$ac_ct_MANIFEST_TOOL"; then
20190+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
20191+else
20192+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20193+for as_dir in $PATH
20194+do
20195+ IFS=$as_save_IFS
20196+ test -z "$as_dir" && as_dir=.
20197+ for ac_exec_ext in '' $ac_executable_extensions; do
20198+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20199+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
20200+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20201+ break 2
20202+ fi
20203+done
20204+ done
20205+IFS=$as_save_IFS
20206+
20207+fi
20208+fi
20209+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
20210+if test -n "$ac_ct_MANIFEST_TOOL"; then
20211+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
20212+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
20213+else
20214+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20215+$as_echo "no" >&6; }
20216+fi
20217+
20218+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
20219+ MANIFEST_TOOL=":"
20220+ else
20221+ case $cross_compiling:$ac_tool_warned in
20222+yes:)
20223+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20224+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20225+ac_tool_warned=yes ;;
20226+esac
20227+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
20228+ fi
20229+else
20230+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
20231+fi
20232+
20233+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
20234+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
20235+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
20236+if ${lt_cv_path_mainfest_tool+:} false; then :
20237+ $as_echo_n "(cached) " >&6
20238+else
20239+ lt_cv_path_mainfest_tool=no
20240+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
20241+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
20242+ cat conftest.err >&5
20243+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
20244+ lt_cv_path_mainfest_tool=yes
20245+ fi
20246+ rm -f conftest*
20247+fi
20248+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
20249+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
20250+if test "x$lt_cv_path_mainfest_tool" != xyes; then
20251+ MANIFEST_TOOL=:
20252+fi
20253+
20254+
20255+
20256+
20257+
20258
20259 case $host_os in
20260 rhapsody* | darwin*)
Patrick Williams213cb262021-08-07 19:21:33 -050020261@@ -7305,6 +7798,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020262 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
20263 echo "$AR cru libconftest.a conftest.o" >&5
20264 $AR cru libconftest.a conftest.o 2>&5
20265+ echo "$RANLIB libconftest.a" >&5
20266+ $RANLIB libconftest.a 2>&5
20267 cat > conftest.c << _LT_EOF
20268 int main() { return 0;}
20269 _LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050020270@@ -7470,7 +7965,8 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020271 LIBTOOL_DEPS="$ltmain"
20272
20273 # Always use our own libtool.
20274-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20275+LIBTOOL='$(SHELL) $(top_builddir)'
20276+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
20277
20278
20279
Patrick Williams213cb262021-08-07 19:21:33 -050020280@@ -7559,7 +8055,7 @@ aix3*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050020281 esac
20282
20283 # Global variables:
20284-ofile=libtool
20285+ofile=${host_alias}-libtool
20286 can_build_shared=yes
20287
20288 # All known linkers require a `.a' archive for static linking (except MSVC,
Patrick Williams213cb262021-08-07 19:21:33 -050020289@@ -7857,8 +8353,6 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020290 lt_prog_compiler_pic=
20291 lt_prog_compiler_static=
20292
20293-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20294-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20295
20296 if test "$GCC" = yes; then
20297 lt_prog_compiler_wl='-Wl,'
Patrick Williams213cb262021-08-07 19:21:33 -050020298@@ -8024,6 +8518,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -050020299 lt_prog_compiler_pic='--shared'
20300 lt_prog_compiler_static='--static'
20301 ;;
20302+ nagfor*)
20303+ # NAG Fortran compiler
20304+ lt_prog_compiler_wl='-Wl,-Wl,,'
20305+ lt_prog_compiler_pic='-PIC'
20306+ lt_prog_compiler_static='-Bstatic'
20307+ ;;
20308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
20309 # Portland Group compilers (*not* the Pentium gcc compiler,
20310 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -050020311@@ -8086,7 +8586,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler82c905d2020-04-13 13:39:40 -050020312 lt_prog_compiler_pic='-KPIC'
20313 lt_prog_compiler_static='-Bstatic'
20314 case $cc_basename in
20315- f77* | f90* | f95*)
20316+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20317 lt_prog_compiler_wl='-Qoption ld ';;
20318 *)
20319 lt_prog_compiler_wl='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -050020320@@ -8143,13 +8643,17 @@ case $host_os in
Andrew Geissler82c905d2020-04-13 13:39:40 -050020321 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20322 ;;
20323 esac
20324-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
20325-$as_echo "$lt_prog_compiler_pic" >&6; }
20326-
20327-
20328-
20329-
20330
20331+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20332+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20333+if ${lt_cv_prog_compiler_pic+:} false; then :
20334+ $as_echo_n "(cached) " >&6
20335+else
20336+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
20337+fi
20338+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20339+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
20340+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20341
20342 #
20343 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -050020344@@ -8210,6 +8714,11 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020345
20346
20347
20348+
20349+
20350+
20351+
20352+
20353 #
20354 # Check to make sure the static flag actually works.
20355 #
Patrick Williams213cb262021-08-07 19:21:33 -050020356@@ -8560,7 +9069,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020357 allow_undefined_flag=unsupported
20358 always_export_symbols=no
20359 enable_shared_with_static_runtimes=yes
20360- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20361+ 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'
20362+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20363
20364 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Patrick Williams213cb262021-08-07 19:21:33 -050020366@@ -8659,12 +9169,12 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020367 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20368 hardcode_libdir_flag_spec=
20369 hardcode_libdir_flag_spec_ld='-rpath $libdir'
20370- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
20371+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20372 if test "x$supports_anon_versioning" = xyes; then
20373 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20375 echo "local: *; };" >> $output_objdir/$libname.ver~
20376- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20377+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20378 fi
20379 ;;
20380 esac
Patrick Williams213cb262021-08-07 19:21:33 -050020381@@ -8678,8 +9188,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020382 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20383 wlarc=
20384 else
20385- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20386- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20387+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20388+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20389 fi
20390 ;;
20391
Patrick Williams213cb262021-08-07 19:21:33 -050020392@@ -8697,8 +9207,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020393
20394 _LT_EOF
20395 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20396- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20397- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20398+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20399+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20400 else
20401 ld_shlibs=no
20402 fi
Patrick Williams213cb262021-08-07 19:21:33 -050020403@@ -8744,8 +9254,8 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020404
20405 *)
20406 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20407- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20408- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20409+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20410+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20411 else
20412 ld_shlibs=no
20413 fi
Patrick Williams213cb262021-08-07 19:21:33 -050020414@@ -8875,7 +9385,13 @@ _LT_EOF
Andrew Geissler82c905d2020-04-13 13:39:40 -050020415 allow_undefined_flag='-berok'
20416 # Determine the default libpath from the value encoded in an
20417 # empty executable.
20418- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419+ if test "${lt_cv_aix_libpath+set}" = set; then
20420+ aix_libpath=$lt_cv_aix_libpath
20421+else
20422+ if ${lt_cv_aix_libpath_+:} false; then :
20423+ $as_echo_n "(cached) " >&6
20424+else
20425+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20426 /* end confdefs.h. */
20427
20428 int
Patrick Williams213cb262021-08-07 19:21:33 -050020429@@ -8888,22 +9404,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -050020430 _ACEOF
20431 if ac_fn_c_try_link "$LINENO"; then :
20432
20433-lt_aix_libpath_sed='
20434- /Import File Strings/,/^$/ {
20435- /^0/ {
20436- s/^0 *\(.*\)$/\1/
20437- p
20438- }
20439- }'
20440-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20441-# Check for a 64-bit object if we didn't find anything.
20442-if test -z "$aix_libpath"; then
20443- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20444-fi
20445+ lt_aix_libpath_sed='
20446+ /Import File Strings/,/^$/ {
20447+ /^0/ {
20448+ s/^0 *\([^ ]*\) *$/\1/
20449+ p
20450+ }
20451+ }'
20452+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20453+ # Check for a 64-bit object if we didn't find anything.
20454+ if test -z "$lt_cv_aix_libpath_"; then
20455+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20456+ fi
20457 fi
20458 rm -f core conftest.err conftest.$ac_objext \
20459 conftest$ac_exeext conftest.$ac_ext
20460-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20461+ if test -z "$lt_cv_aix_libpath_"; then
20462+ lt_cv_aix_libpath_="/usr/lib:/lib"
20463+ fi
20464+
20465+fi
20466+
20467+ aix_libpath=$lt_cv_aix_libpath_
20468+fi
20469
20470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20471 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"
Patrick Williams213cb262021-08-07 19:21:33 -050020472@@ -8915,7 +9438,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020473 else
20474 # Determine the default libpath from the value encoded in an
20475 # empty executable.
20476- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20477+ if test "${lt_cv_aix_libpath+set}" = set; then
20478+ aix_libpath=$lt_cv_aix_libpath
20479+else
20480+ if ${lt_cv_aix_libpath_+:} false; then :
20481+ $as_echo_n "(cached) " >&6
20482+else
20483+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484 /* end confdefs.h. */
20485
20486 int
Patrick Williams213cb262021-08-07 19:21:33 -050020487@@ -8928,22 +9457,29 @@ main ()
Andrew Geissler82c905d2020-04-13 13:39:40 -050020488 _ACEOF
20489 if ac_fn_c_try_link "$LINENO"; then :
20490
20491-lt_aix_libpath_sed='
20492- /Import File Strings/,/^$/ {
20493- /^0/ {
20494- s/^0 *\(.*\)$/\1/
20495- p
20496- }
20497- }'
20498-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20499-# Check for a 64-bit object if we didn't find anything.
20500-if test -z "$aix_libpath"; then
20501- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20502-fi
20503+ lt_aix_libpath_sed='
20504+ /Import File Strings/,/^$/ {
20505+ /^0/ {
20506+ s/^0 *\([^ ]*\) *$/\1/
20507+ p
20508+ }
20509+ }'
20510+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20511+ # Check for a 64-bit object if we didn't find anything.
20512+ if test -z "$lt_cv_aix_libpath_"; then
20513+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20514+ fi
20515 fi
20516 rm -f core conftest.err conftest.$ac_objext \
20517 conftest$ac_exeext conftest.$ac_ext
20518-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20519+ if test -z "$lt_cv_aix_libpath_"; then
20520+ lt_cv_aix_libpath_="/usr/lib:/lib"
20521+ fi
20522+
20523+fi
20524+
20525+ aix_libpath=$lt_cv_aix_libpath_
20526+fi
20527
20528 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20529 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -050020530@@ -8988,20 +9524,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020531 # Microsoft Visual C++.
20532 # hardcode_libdir_flag_spec is actually meaningless, as there is
20533 # no search path for DLLs.
20534- hardcode_libdir_flag_spec=' '
20535- allow_undefined_flag=unsupported
20536- # Tell ltmain to make .lib files, not .a files.
20537- libext=lib
20538- # Tell ltmain to make .dll files, not .so files.
20539- shrext_cmds=".dll"
20540- # FIXME: Setting linknames here is a bad hack.
20541- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
20542- # The linker will automatically build a .lib file if we build a DLL.
20543- old_archive_from_new_cmds='true'
20544- # FIXME: Should let the user specify the lib program.
20545- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
20546- fix_srcfile_path='`cygpath -w "$srcfile"`'
20547- enable_shared_with_static_runtimes=yes
20548+ case $cc_basename in
20549+ cl*)
20550+ # Native MSVC
20551+ hardcode_libdir_flag_spec=' '
20552+ allow_undefined_flag=unsupported
20553+ always_export_symbols=yes
20554+ file_list_spec='@'
20555+ # Tell ltmain to make .lib files, not .a files.
20556+ libext=lib
20557+ # Tell ltmain to make .dll files, not .so files.
20558+ shrext_cmds=".dll"
20559+ # FIXME: Setting linknames here is a bad hack.
20560+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
20561+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20562+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
20563+ else
20564+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
20565+ fi~
20566+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20567+ linknames='
20568+ # The linker will not automatically build a static lib if we build a DLL.
20569+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20570+ enable_shared_with_static_runtimes=yes
20571+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20572+ # Don't use ranlib
20573+ old_postinstall_cmds='chmod 644 $oldlib'
20574+ postlink_cmds='lt_outputfile="@OUTPUT@"~
20575+ lt_tool_outputfile="@TOOL_OUTPUT@"~
20576+ case $lt_outputfile in
20577+ *.exe|*.EXE) ;;
20578+ *)
20579+ lt_outputfile="$lt_outputfile.exe"
20580+ lt_tool_outputfile="$lt_tool_outputfile.exe"
20581+ ;;
20582+ esac~
20583+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
20584+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20585+ $RM "$lt_outputfile.manifest";
20586+ fi'
20587+ ;;
20588+ *)
20589+ # Assume MSVC wrapper
20590+ hardcode_libdir_flag_spec=' '
20591+ allow_undefined_flag=unsupported
20592+ # Tell ltmain to make .lib files, not .a files.
20593+ libext=lib
20594+ # Tell ltmain to make .dll files, not .so files.
20595+ shrext_cmds=".dll"
20596+ # FIXME: Setting linknames here is a bad hack.
20597+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
20598+ # The linker will automatically build a .lib file if we build a DLL.
20599+ old_archive_from_new_cmds='true'
20600+ # FIXME: Should let the user specify the lib program.
20601+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
20602+ enable_shared_with_static_runtimes=yes
20603+ ;;
20604+ esac
20605 ;;
20606
20607 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -050020608@@ -9062,7 +9641,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020609
20610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20611 freebsd* | dragonfly*)
20612- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20613+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20614 hardcode_libdir_flag_spec='-R$libdir'
20615 hardcode_direct=yes
20616 hardcode_shlibpath_var=no
Patrick Williams213cb262021-08-07 19:21:33 -050020617@@ -9070,7 +9649,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020618
20619 hpux9*)
20620 if test "$GCC" = yes; then
20621- 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'
20622+ 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'
20623 else
20624 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'
20625 fi
Patrick Williams213cb262021-08-07 19:21:33 -050020626@@ -9086,7 +9665,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020627
20628 hpux10*)
20629 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
20630- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20631+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20632 else
20633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20634 fi
Patrick Williams213cb262021-08-07 19:21:33 -050020635@@ -9110,10 +9689,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20637 ;;
20638 ia64*)
20639- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20640+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20641 ;;
20642 *)
20643- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20644+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20645 ;;
20646 esac
20647 else
Patrick Williams213cb262021-08-07 19:21:33 -050020648@@ -9192,23 +9771,36 @@ fi
Andrew Geissler82c905d2020-04-13 13:39:40 -050020649
20650 irix5* | irix6* | nonstopux*)
20651 if test "$GCC" = yes; then
20652- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20653+ 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'
20654 # Try to use the -exported_symbol ld option, if it does not
20655 # work, assume that -exports_file does not work either and
20656 # implicitly export all symbols.
20657- save_LDFLAGS="$LDFLAGS"
20658- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
20659- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20660+ # This should be the same for all languages, so no per-tag cache variable.
20661+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
20662+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
20663+if ${lt_cv_irix_exported_symbol+:} false; then :
20664+ $as_echo_n "(cached) " >&6
20665+else
20666+ save_LDFLAGS="$LDFLAGS"
20667+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
20668+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20669 /* end confdefs.h. */
20670-int foo(void) {}
20671+int foo (void) { return 0; }
20672 _ACEOF
20673 if ac_fn_c_try_link "$LINENO"; then :
20674- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
20675-
20676+ lt_cv_irix_exported_symbol=yes
20677+else
20678+ lt_cv_irix_exported_symbol=no
20679 fi
20680 rm -f core conftest.err conftest.$ac_objext \
20681 conftest$ac_exeext conftest.$ac_ext
20682- LDFLAGS="$save_LDFLAGS"
20683+ LDFLAGS="$save_LDFLAGS"
20684+fi
20685+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
20686+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
20687+ if test "$lt_cv_irix_exported_symbol" = yes; then
20688+ 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'
20689+ fi
20690 else
20691 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'
20692 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'
Patrick Williams213cb262021-08-07 19:21:33 -050020693@@ -9293,7 +9885,7 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020694 osf4* | osf5*) # as osf3* with the addition of -msym flag
20695 if test "$GCC" = yes; then
20696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20697- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20698+ 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'
20699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20700 else
20701 allow_undefined_flag=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -050020702@@ -9312,9 +9904,9 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020703 no_undefined_flag=' -z defs'
20704 if test "$GCC" = yes; then
20705 wlarc='${wl}'
20706- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20707+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20708 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20709- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20710+ $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'
20711 else
20712 case `$CC -V 2>&1` in
20713 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -050020714@@ -9890,8 +10482,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050020715 need_version=no
20716 need_lib_prefix=no
20717
20718- case $GCC,$host_os in
20719- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20720+ case $GCC,$cc_basename in
20721+ yes,*)
20722+ # gcc
20723 library_names_spec='$libname.dll.a'
20724 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20725 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -050020726@@ -9924,13 +10517,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050020727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20728 ;;
20729 esac
20730+ dynamic_linker='Win32 ld.exe'
20731+ ;;
20732+
20733+ *,cl*)
20734+ # Native MSVC
20735+ libname_spec='$name'
20736+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20737+ library_names_spec='${libname}.dll.lib'
20738+
20739+ case $build_os in
20740+ mingw*)
20741+ sys_lib_search_path_spec=
20742+ lt_save_ifs=$IFS
20743+ IFS=';'
20744+ for lt_path in $LIB
20745+ do
20746+ IFS=$lt_save_ifs
20747+ # Let DOS variable expansion print the short 8.3 style file name.
20748+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20749+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20750+ done
20751+ IFS=$lt_save_ifs
20752+ # Convert to MSYS style.
20753+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20754+ ;;
20755+ cygwin*)
20756+ # Convert to unix form, then to dos form, then back to unix form
20757+ # but this time dos style (no spaces!) so that the unix form looks
20758+ # like /cygdrive/c/PROGRA~1:/cygdr...
20759+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20760+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20761+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20762+ ;;
20763+ *)
20764+ sys_lib_search_path_spec="$LIB"
20765+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20766+ # It is most probably a Windows format PATH.
20767+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20768+ else
20769+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20770+ fi
20771+ # FIXME: find the short name or the path components, as spaces are
20772+ # common. (e.g. "Program Files" -> "PROGRA~1")
20773+ ;;
20774+ esac
20775+
20776+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
20777+ postinstall_cmds='base_file=`basename \${file}`~
20778+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20779+ dldir=$destdir/`dirname \$dlpath`~
20780+ test -d \$dldir || mkdir -p \$dldir~
20781+ $install_prog $dir/$dlname \$dldir/$dlname'
20782+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20783+ dlpath=$dir/\$dldll~
20784+ $RM \$dlpath'
20785+ shlibpath_overrides_runpath=yes
20786+ dynamic_linker='Win32 link.exe'
20787 ;;
20788
20789 *)
20790+ # Assume MSVC wrapper
20791 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20792+ dynamic_linker='Win32 ld.exe'
20793 ;;
20794 esac
20795- dynamic_linker='Win32 ld.exe'
20796 # FIXME: first we should search . and the directory the executable is in
20797 shlibpath_var=PATH
20798 ;;
Patrick Williams213cb262021-08-07 19:21:33 -050020799@@ -10012,7 +10663,7 @@ haiku*)
Andrew Geissler82c905d2020-04-13 13:39:40 -050020800 soname_spec='${libname}${release}${shared_ext}$major'
20801 shlibpath_var=LIBRARY_PATH
20802 shlibpath_overrides_runpath=yes
20803- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20804+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20805 hardcode_into_libs=yes
20806 ;;
20807
Patrick Williams213cb262021-08-07 19:21:33 -050020808@@ -10808,7 +11459,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050020809 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20810 lt_status=$lt_dlunknown
20811 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050020812-#line 10811 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -050020813+#line $LINENO "configure"
20814 #include "confdefs.h"
20815
20816 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -050020817@@ -10852,10 +11503,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050020818 /* When -fvisbility=hidden is used, assume the code has been annotated
20819 correspondingly for the symbols needed. */
20820 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20821-void fnord () __attribute__((visibility("default")));
20822+int fnord () __attribute__((visibility("default")));
20823 #endif
20824
20825-void fnord () { int i=42; }
20826+int fnord () { return 42; }
20827 int main ()
20828 {
20829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -050020830@@ -10914,7 +11565,7 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050020831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20832 lt_status=$lt_dlunknown
20833 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050020834-#line 10917 "configure"
Andrew Geissler82c905d2020-04-13 13:39:40 -050020835+#line $LINENO "configure"
20836 #include "confdefs.h"
20837
20838 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -050020839@@ -10958,10 +11609,10 @@ else
Andrew Geissler82c905d2020-04-13 13:39:40 -050020840 /* When -fvisbility=hidden is used, assume the code has been annotated
20841 correspondingly for the symbols needed. */
20842 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20843-void fnord () __attribute__((visibility("default")));
20844+int fnord () __attribute__((visibility("default")));
20845 #endif
20846
20847-void fnord () { int i=42; }
20848+int fnord () { return 42; }
20849 int main ()
20850 {
20851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -050020852@@ -13101,13 +13752,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Andrew Geissler82c905d2020-04-13 13:39:40 -050020853 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20854 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20855 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20856+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20857+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20858 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20859 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20860 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20861 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20862 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20863+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20864+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20865+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20866+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20867 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20868 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20869+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20870 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20871 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20872 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050020873@@ -13122,14 +13780,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
Andrew Geissler82c905d2020-04-13 13:39:40 -050020874 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20875 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20876 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"`'
20877+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20878+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20879 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20880 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20881 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20882-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20883 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20884+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20885 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20886 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20887 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20888+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20889 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20890 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20891 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050020892@@ -13162,12 +13823,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
Andrew Geissler82c905d2020-04-13 13:39:40 -050020893 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20894 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20895 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20896-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20897 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20898 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20899 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20900 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20901 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20902+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20903 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20904 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20905 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050020906@@ -13222,8 +13883,13 @@ reload_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020907 OBJDUMP \
20908 deplibs_check_method \
20909 file_magic_cmd \
20910+file_magic_glob \
20911+want_nocaseglob \
20912+DLLTOOL \
20913+sharedlib_from_linklib_cmd \
20914 AR \
20915 AR_FLAGS \
20916+archiver_list_spec \
20917 STRIP \
20918 RANLIB \
20919 CC \
Patrick Williams213cb262021-08-07 19:21:33 -050020920@@ -13233,12 +13899,14 @@ lt_cv_sys_global_symbol_pipe \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020921 lt_cv_sys_global_symbol_to_cdecl \
20922 lt_cv_sys_global_symbol_to_c_name_address \
20923 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20924+nm_file_list_spec \
20925 lt_prog_compiler_no_builtin_flag \
20926-lt_prog_compiler_wl \
20927 lt_prog_compiler_pic \
20928+lt_prog_compiler_wl \
20929 lt_prog_compiler_static \
20930 lt_cv_prog_compiler_c_o \
20931 need_locks \
20932+MANIFEST_TOOL \
20933 DSYMUTIL \
20934 NMEDIT \
20935 LIPO \
Patrick Williams213cb262021-08-07 19:21:33 -050020936@@ -13254,7 +13922,6 @@ no_undefined_flag \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020937 hardcode_libdir_flag_spec \
20938 hardcode_libdir_flag_spec_ld \
20939 hardcode_libdir_separator \
20940-fix_srcfile_path \
20941 exclude_expsyms \
20942 include_expsyms \
20943 file_list_spec \
Patrick Williams213cb262021-08-07 19:21:33 -050020944@@ -13290,6 +13957,7 @@ module_cmds \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020945 module_expsym_cmds \
20946 export_symbols_cmds \
20947 prelink_cmds \
20948+postlink_cmds \
20949 postinstall_cmds \
20950 postuninstall_cmds \
20951 finish_cmds \
Patrick Williams213cb262021-08-07 19:21:33 -050020952@@ -14055,7 +14723,8 @@ $as_echo X"$file" |
Andrew Geissler82c905d2020-04-13 13:39:40 -050020953 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20954 #
20955 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20956-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
20957+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20958+# Inc.
20959 # Written by Gordon Matzigkeit, 1996
20960 #
20961 # This file is part of GNU Libtool.
Patrick Williams213cb262021-08-07 19:21:33 -050020962@@ -14158,19 +14827,42 @@ SP2NL=$lt_lt_SP2NL
Andrew Geissler82c905d2020-04-13 13:39:40 -050020963 # turn newlines into spaces.
20964 NL2SP=$lt_lt_NL2SP
20965
20966+# convert \$build file names to \$host format.
20967+to_host_file_cmd=$lt_cv_to_host_file_cmd
20968+
20969+# convert \$build files to toolchain format.
20970+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20971+
20972 # An object symbol dumper.
20973 OBJDUMP=$lt_OBJDUMP
20974
20975 # Method to check whether dependent libraries are shared objects.
20976 deplibs_check_method=$lt_deplibs_check_method
20977
20978-# Command to use when deplibs_check_method == "file_magic".
20979+# Command to use when deplibs_check_method = "file_magic".
20980 file_magic_cmd=$lt_file_magic_cmd
20981
20982+# How to find potential files when deplibs_check_method = "file_magic".
20983+file_magic_glob=$lt_file_magic_glob
20984+
20985+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20986+want_nocaseglob=$lt_want_nocaseglob
20987+
20988+# DLL creation program.
20989+DLLTOOL=$lt_DLLTOOL
20990+
20991+# Command to associate shared and link libraries.
20992+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20993+
20994 # The archiver.
20995 AR=$lt_AR
20996+
20997+# Flags to create an archive.
20998 AR_FLAGS=$lt_AR_FLAGS
20999
21000+# How to feed a file listing to the archiver.
21001+archiver_list_spec=$lt_archiver_list_spec
21002+
21003 # A symbol stripping program.
21004 STRIP=$lt_STRIP
21005
Patrick Williams213cb262021-08-07 19:21:33 -050021006@@ -14200,6 +14892,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Andrew Geissler82c905d2020-04-13 13:39:40 -050021007 # Transform the output of nm in a C name address pair when lib prefix is needed.
21008 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21009
21010+# Specify filename containing input files for \$NM.
21011+nm_file_list_spec=$lt_nm_file_list_spec
21012+
21013+# The root where to search for dependent libraries,and in which our libraries should be installed.
21014+lt_sysroot=$lt_sysroot
21015+
21016 # The name of the directory that contains temporary libtool files.
21017 objdir=$objdir
21018
Patrick Williams213cb262021-08-07 19:21:33 -050021019@@ -14209,6 +14907,9 @@ MAGIC_CMD=$MAGIC_CMD
Andrew Geissler82c905d2020-04-13 13:39:40 -050021020 # Must we lock files when doing compilation?
21021 need_locks=$lt_need_locks
21022
21023+# Manifest tool.
21024+MANIFEST_TOOL=$lt_MANIFEST_TOOL
21025+
21026 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21027 DSYMUTIL=$lt_DSYMUTIL
21028
Patrick Williams213cb262021-08-07 19:21:33 -050021029@@ -14323,12 +15024,12 @@ with_gcc=$GCC
Andrew Geissler82c905d2020-04-13 13:39:40 -050021030 # Compiler flag to turn off builtin functions.
21031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21032
21033-# How to pass a linker flag through the compiler.
21034-wl=$lt_lt_prog_compiler_wl
21035-
21036 # Additional compiler flags for building library objects.
21037 pic_flag=$lt_lt_prog_compiler_pic
21038
21039+# How to pass a linker flag through the compiler.
21040+wl=$lt_lt_prog_compiler_wl
21041+
21042 # Compiler flag to prevent dynamic linking.
21043 link_static_flag=$lt_lt_prog_compiler_static
21044
Patrick Williams213cb262021-08-07 19:21:33 -050021045@@ -14415,9 +15116,6 @@ inherit_rpath=$inherit_rpath
Andrew Geissler82c905d2020-04-13 13:39:40 -050021046 # Whether libtool must link a program against all its dependency libraries.
21047 link_all_deplibs=$link_all_deplibs
21048
21049-# Fix the shell variable \$srcfile for the compiler.
21050-fix_srcfile_path=$lt_fix_srcfile_path
21051-
21052 # Set to "yes" if exported symbols are required.
21053 always_export_symbols=$always_export_symbols
21054
Patrick Williams213cb262021-08-07 19:21:33 -050021055@@ -14433,6 +15131,9 @@ include_expsyms=$lt_include_expsyms
Andrew Geissler82c905d2020-04-13 13:39:40 -050021056 # Commands necessary for linking programs (against libraries) with templates.
21057 prelink_cmds=$lt_prelink_cmds
21058
21059+# Commands necessary for finishing linking programs.
21060+postlink_cmds=$lt_postlink_cmds
21061+
21062 # Specify filename containing input files.
21063 file_list_spec=$lt_file_list_spec
21064
Patrick Williams213cb262021-08-07 19:21:33 -050021065@@ -14465,210 +15166,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -050021066 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21067 # text mode, it properly converts lines to CR/LF. This bash problem
21068 # is reportedly fixed, but why not run on old versions too?
21069- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21070- || (rm -f "$cfgfile"; exit 1)
21071-
21072- case $xsi_shell in
21073- yes)
21074- cat << \_LT_EOF >> "$cfgfile"
21075-
21076-# func_dirname file append nondir_replacement
21077-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21078-# otherwise set result to NONDIR_REPLACEMENT.
21079-func_dirname ()
21080-{
21081- case ${1} in
21082- */*) func_dirname_result="${1%/*}${2}" ;;
21083- * ) func_dirname_result="${3}" ;;
21084- esac
21085-}
21086-
21087-# func_basename file
21088-func_basename ()
21089-{
21090- func_basename_result="${1##*/}"
21091-}
21092-
21093-# func_dirname_and_basename file append nondir_replacement
21094-# perform func_basename and func_dirname in a single function
21095-# call:
21096-# dirname: Compute the dirname of FILE. If nonempty,
21097-# add APPEND to the result, otherwise set result
21098-# to NONDIR_REPLACEMENT.
21099-# value returned in "$func_dirname_result"
21100-# basename: Compute filename of FILE.
21101-# value retuned in "$func_basename_result"
21102-# Implementation must be kept synchronized with func_dirname
21103-# and func_basename. For efficiency, we do not delegate to
21104-# those functions but instead duplicate the functionality here.
21105-func_dirname_and_basename ()
21106-{
21107- case ${1} in
21108- */*) func_dirname_result="${1%/*}${2}" ;;
21109- * ) func_dirname_result="${3}" ;;
21110- esac
21111- func_basename_result="${1##*/}"
21112-}
21113-
21114-# func_stripname prefix suffix name
21115-# strip PREFIX and SUFFIX off of NAME.
21116-# PREFIX and SUFFIX must not contain globbing or regex special
21117-# characters, hashes, percent signs, but SUFFIX may contain a leading
21118-# dot (in which case that matches only a dot).
21119-func_stripname ()
21120-{
21121- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21122- # positional parameters, so assign one to ordinary parameter first.
21123- func_stripname_result=${3}
21124- func_stripname_result=${func_stripname_result#"${1}"}
21125- func_stripname_result=${func_stripname_result%"${2}"}
21126-}
21127-
21128-# func_opt_split
21129-func_opt_split ()
21130-{
21131- func_opt_split_opt=${1%%=*}
21132- func_opt_split_arg=${1#*=}
21133-}
21134-
21135-# func_lo2o object
21136-func_lo2o ()
21137-{
21138- case ${1} in
21139- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21140- *) func_lo2o_result=${1} ;;
21141- esac
21142-}
21143-
21144-# func_xform libobj-or-source
21145-func_xform ()
21146-{
21147- func_xform_result=${1%.*}.lo
21148-}
21149-
21150-# func_arith arithmetic-term...
21151-func_arith ()
21152-{
21153- func_arith_result=$(( $* ))
21154-}
21155-
21156-# func_len string
21157-# STRING may not start with a hyphen.
21158-func_len ()
21159-{
21160- func_len_result=${#1}
21161-}
21162-
21163-_LT_EOF
21164- ;;
21165- *) # Bourne compatible functions.
21166- cat << \_LT_EOF >> "$cfgfile"
21167-
21168-# func_dirname file append nondir_replacement
21169-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21170-# otherwise set result to NONDIR_REPLACEMENT.
21171-func_dirname ()
21172-{
21173- # Extract subdirectory from the argument.
21174- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21175- if test "X$func_dirname_result" = "X${1}"; then
21176- func_dirname_result="${3}"
21177- else
21178- func_dirname_result="$func_dirname_result${2}"
21179- fi
21180-}
21181-
21182-# func_basename file
21183-func_basename ()
21184-{
21185- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21186-}
21187-
21188-
21189-# func_stripname prefix suffix name
21190-# strip PREFIX and SUFFIX off of NAME.
21191-# PREFIX and SUFFIX must not contain globbing or regex special
21192-# characters, hashes, percent signs, but SUFFIX may contain a leading
21193-# dot (in which case that matches only a dot).
21194-# func_strip_suffix prefix name
21195-func_stripname ()
21196-{
21197- case ${2} in
21198- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21199- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21200- esac
21201-}
21202-
21203-# sed scripts:
21204-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21205-my_sed_long_arg='1s/^-[^=]*=//'
21206-
21207-# func_opt_split
21208-func_opt_split ()
21209-{
21210- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21211- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21212-}
21213-
21214-# func_lo2o object
21215-func_lo2o ()
21216-{
21217- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
21218-}
21219-
21220-# func_xform libobj-or-source
21221-func_xform ()
21222-{
21223- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21224-}
21225-
21226-# func_arith arithmetic-term...
21227-func_arith ()
21228-{
21229- func_arith_result=`expr "$@"`
21230-}
21231-
21232-# func_len string
21233-# STRING may not start with a hyphen.
21234-func_len ()
21235-{
21236- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21237-}
21238-
21239-_LT_EOF
21240-esac
21241-
21242-case $lt_shell_append in
21243- yes)
21244- cat << \_LT_EOF >> "$cfgfile"
21245-
21246-# func_append var value
21247-# Append VALUE to the end of shell variable VAR.
21248-func_append ()
21249-{
21250- eval "$1+=\$2"
21251-}
21252-_LT_EOF
21253- ;;
21254- *)
21255- cat << \_LT_EOF >> "$cfgfile"
21256-
21257-# func_append var value
21258-# Append VALUE to the end of shell variable VAR.
21259-func_append ()
21260-{
21261- eval "$1=\$$1\$2"
21262-}
21263-
21264-_LT_EOF
21265- ;;
21266- esac
21267-
21268-
21269- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21270- || (rm -f "$cfgfile"; exit 1)
21271-
21272- mv -f "$cfgfile" "$ofile" ||
21273+ sed '$q' "$ltmain" >> "$cfgfile" \
21274+ || (rm -f "$cfgfile"; exit 1)
21275+
21276+ if test x"$xsi_shell" = xyes; then
21277+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21278+func_dirname ()\
21279+{\
21280+\ case ${1} in\
21281+\ */*) func_dirname_result="${1%/*}${2}" ;;\
21282+\ * ) func_dirname_result="${3}" ;;\
21283+\ esac\
21284+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21285+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21286+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21287+test 0 -eq $? || _lt_function_replace_fail=:
21288+
21289+
21290+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
21291+func_basename ()\
21292+{\
21293+\ func_basename_result="${1##*/}"\
21294+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21295+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21296+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21297+test 0 -eq $? || _lt_function_replace_fail=:
21298+
21299+
21300+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21301+func_dirname_and_basename ()\
21302+{\
21303+\ case ${1} in\
21304+\ */*) func_dirname_result="${1%/*}${2}" ;;\
21305+\ * ) func_dirname_result="${3}" ;;\
21306+\ esac\
21307+\ func_basename_result="${1##*/}"\
21308+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21309+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21310+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21311+test 0 -eq $? || _lt_function_replace_fail=:
21312+
21313+
21314+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21315+func_stripname ()\
21316+{\
21317+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21318+\ # positional parameters, so assign one to ordinary parameter first.\
21319+\ func_stripname_result=${3}\
21320+\ func_stripname_result=${func_stripname_result#"${1}"}\
21321+\ func_stripname_result=${func_stripname_result%"${2}"}\
21322+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21323+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21324+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21325+test 0 -eq $? || _lt_function_replace_fail=:
21326+
21327+
21328+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21329+func_split_long_opt ()\
21330+{\
21331+\ func_split_long_opt_name=${1%%=*}\
21332+\ func_split_long_opt_arg=${1#*=}\
21333+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21334+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21335+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21336+test 0 -eq $? || _lt_function_replace_fail=:
21337+
21338+
21339+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21340+func_split_short_opt ()\
21341+{\
21342+\ func_split_short_opt_arg=${1#??}\
21343+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21344+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21345+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21346+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21347+test 0 -eq $? || _lt_function_replace_fail=:
21348+
21349+
21350+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21351+func_lo2o ()\
21352+{\
21353+\ case ${1} in\
21354+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21355+\ *) func_lo2o_result=${1} ;;\
21356+\ esac\
21357+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21358+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21359+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21360+test 0 -eq $? || _lt_function_replace_fail=:
21361+
21362+
21363+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
21364+func_xform ()\
21365+{\
21366+ func_xform_result=${1%.*}.lo\
21367+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21368+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21369+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21370+test 0 -eq $? || _lt_function_replace_fail=:
21371+
21372+
21373+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
21374+func_arith ()\
21375+{\
21376+ func_arith_result=$(( $* ))\
21377+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21378+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21379+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21380+test 0 -eq $? || _lt_function_replace_fail=:
21381+
21382+
21383+ sed -e '/^func_len ()$/,/^} # func_len /c\
21384+func_len ()\
21385+{\
21386+ func_len_result=${#1}\
21387+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21388+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21389+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21390+test 0 -eq $? || _lt_function_replace_fail=:
21391+
21392+fi
21393+
21394+if test x"$lt_shell_append" = xyes; then
21395+ sed -e '/^func_append ()$/,/^} # func_append /c\
21396+func_append ()\
21397+{\
21398+ eval "${1}+=\\${2}"\
21399+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21400+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21401+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21402+test 0 -eq $? || _lt_function_replace_fail=:
21403+
21404+
21405+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21406+func_append_quoted ()\
21407+{\
21408+\ func_quote_for_eval "${2}"\
21409+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21410+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21411+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21412+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21413+test 0 -eq $? || _lt_function_replace_fail=:
21414+
21415+
21416+ # Save a `func_append' function call where possible by direct use of '+='
21417+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21418+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21419+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21420+ test 0 -eq $? || _lt_function_replace_fail=:
21421+else
21422+ # Save a `func_append' function call even when '+=' is not available
21423+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21424+ && mv -f "$cfgfile.tmp" "$cfgfile" \
21425+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21426+ test 0 -eq $? || _lt_function_replace_fail=:
21427+fi
21428+
21429+if test x"$_lt_function_replace_fail" = x":"; then
21430+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21431+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21432+fi
21433+
21434+
21435+ mv -f "$cfgfile" "$ofile" ||
21436 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21437 chmod +x "$ofile"
21438
Andrew Geissler635e0e42020-08-21 15:58:33 -050021439diff --git a/zlib/configure b/zlib/configure
Patrick Williams213cb262021-08-07 19:21:33 -050021440index 695819cd54b..14b5f28013a 100755
Andrew Geissler635e0e42020-08-21 15:58:33 -050021441--- a/zlib/configure
21442+++ b/zlib/configure
21443@@ -646,8 +646,11 @@ OTOOL
21444 LIPO
21445 NMEDIT
21446 DSYMUTIL
21447+MANIFEST_TOOL
21448 RANLIB
21449+ac_ct_AR
21450 AR
21451+DLLTOOL
21452 OBJDUMP
21453 LN_S
21454 NM
21455@@ -774,6 +777,7 @@ enable_static
21456 with_pic
21457 enable_fast_install
21458 with_gnu_ld
21459+with_libtool_sysroot
21460 enable_libtool_lock
21461 enable_host_shared
21462 '
21463@@ -1428,6 +1432,8 @@ Optional Packages:
21464 --with-pic try to use only PIC/non-PIC objects [default=use
21465 both]
21466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
21467+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
21468+ (or the compiler's sysroot if not specified).
21469
21470 Some influential environment variables:
21471 CC C compiler command
21472@@ -4147,8 +4153,8 @@ esac
21473
21474
21475
21476-macro_version='2.2.7a'
21477-macro_revision='1.3134'
21478+macro_version='2.4'
21479+macro_revision='1.3293'
21480
21481
21482
21483@@ -4188,7 +4194,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
21485 $as_echo_n "checking how to print strings... " >&6; }
21486 # Test print first, because it will be a builtin if present.
21487-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
21488+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
21489 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
21490 ECHO='print -r --'
21491 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
21492@@ -5004,8 +5010,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
21493 # Try some XSI features
21494 xsi_shell=no
21495 ( _lt_dummy="a/b/c"
21496- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
21497- = c,a/b,, \
21498+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
21499+ = c,a/b,b/c, \
21500 && eval 'test $(( 1 + 1 )) -eq 2 \
21501 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
21502 && xsi_shell=yes
21503@@ -5054,6 +5060,80 @@ esac
21504
21505
21506
21507+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
21508+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
21509+if ${lt_cv_to_host_file_cmd+:} false; then :
21510+ $as_echo_n "(cached) " >&6
21511+else
21512+ case $host in
21513+ *-*-mingw* )
21514+ case $build in
21515+ *-*-mingw* ) # actually msys
21516+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
21517+ ;;
21518+ *-*-cygwin* )
21519+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
21520+ ;;
21521+ * ) # otherwise, assume *nix
21522+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
21523+ ;;
21524+ esac
21525+ ;;
21526+ *-*-cygwin* )
21527+ case $build in
21528+ *-*-mingw* ) # actually msys
21529+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
21530+ ;;
21531+ *-*-cygwin* )
21532+ lt_cv_to_host_file_cmd=func_convert_file_noop
21533+ ;;
21534+ * ) # otherwise, assume *nix
21535+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
21536+ ;;
21537+ esac
21538+ ;;
21539+ * ) # unhandled hosts (and "normal" native builds)
21540+ lt_cv_to_host_file_cmd=func_convert_file_noop
21541+ ;;
21542+esac
21543+
21544+fi
21545+
21546+to_host_file_cmd=$lt_cv_to_host_file_cmd
21547+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
21548+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
21549+
21550+
21551+
21552+
21553+
21554+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
21555+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
21556+if ${lt_cv_to_tool_file_cmd+:} false; then :
21557+ $as_echo_n "(cached) " >&6
21558+else
21559+ #assume ordinary cross tools, or native build.
21560+lt_cv_to_tool_file_cmd=func_convert_file_noop
21561+case $host in
21562+ *-*-mingw* )
21563+ case $build in
21564+ *-*-mingw* ) # actually msys
21565+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
21566+ ;;
21567+ esac
21568+ ;;
21569+esac
21570+
21571+fi
21572+
21573+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21574+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
21575+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
21576+
21577+
21578+
21579+
21580+
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
21582 $as_echo_n "checking for $LD option to reload object files... " >&6; }
21583 if ${lt_cv_ld_reload_flag+:} false; then :
21584@@ -5070,6 +5150,11 @@ case $reload_flag in
21585 esac
21586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
21587 case $host_os in
21588+ cygwin* | mingw* | pw32* | cegcc*)
21589+ if test "$GCC" != yes; then
21590+ reload_cmds=false
21591+ fi
21592+ ;;
21593 darwin*)
21594 if test "$GCC" = yes; then
21595 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
21596@@ -5238,7 +5323,8 @@ mingw* | pw32*)
21597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21598 lt_cv_file_magic_cmd='func_win32_libid'
21599 else
21600- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
21601+ # Keep this pattern in sync with the one in func_win32_libid.
21602+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
21603 lt_cv_file_magic_cmd='$OBJDUMP -f'
21604 fi
21605 ;;
21606@@ -5392,6 +5478,21 @@ esac
21607 fi
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
21609 $as_echo "$lt_cv_deplibs_check_method" >&6; }
21610+
21611+file_magic_glob=
21612+want_nocaseglob=no
21613+if test "$build" = "$host"; then
21614+ case $host_os in
21615+ mingw* | pw32*)
21616+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
21617+ want_nocaseglob=yes
21618+ else
21619+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
21620+ fi
21621+ ;;
21622+ esac
21623+fi
21624+
21625 file_magic_cmd=$lt_cv_file_magic_cmd
21626 deplibs_check_method=$lt_cv_deplibs_check_method
21627 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Patrick Williams213cb262021-08-07 19:21:33 -050021628@@ -5407,6 +5508,158 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
Andrew Geissler635e0e42020-08-21 15:58:33 -050021629
21630
21631
21632+
21633+
21634+
21635+
21636+
21637+
21638+
21639+
21640+
21641+
Patrick Williams213cb262021-08-07 19:21:33 -050021642+if test -n "$ac_tool_prefix"; then
Andrew Geissler635e0e42020-08-21 15:58:33 -050021643+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
21644+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
21645+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21646+$as_echo_n "checking for $ac_word... " >&6; }
21647+if ${ac_cv_prog_DLLTOOL+:} false; then :
21648+ $as_echo_n "(cached) " >&6
21649+else
21650+ if test -n "$DLLTOOL"; then
21651+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
21652+else
21653+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21654+for as_dir in $PATH
21655+do
21656+ IFS=$as_save_IFS
21657+ test -z "$as_dir" && as_dir=.
21658+ for ac_exec_ext in '' $ac_executable_extensions; do
21659+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21660+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
21661+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21662+ break 2
21663+ fi
21664+done
21665+ done
21666+IFS=$as_save_IFS
21667+
21668+fi
21669+fi
21670+DLLTOOL=$ac_cv_prog_DLLTOOL
21671+if test -n "$DLLTOOL"; then
21672+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
21673+$as_echo "$DLLTOOL" >&6; }
21674+else
21675+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676+$as_echo "no" >&6; }
21677+fi
21678+
21679+
21680+fi
21681+if test -z "$ac_cv_prog_DLLTOOL"; then
21682+ ac_ct_DLLTOOL=$DLLTOOL
21683+ # Extract the first word of "dlltool", so it can be a program name with args.
21684+set dummy dlltool; ac_word=$2
21685+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21686+$as_echo_n "checking for $ac_word... " >&6; }
21687+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
21688+ $as_echo_n "(cached) " >&6
21689+else
21690+ if test -n "$ac_ct_DLLTOOL"; then
21691+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
21692+else
21693+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21694+for as_dir in $PATH
21695+do
21696+ IFS=$as_save_IFS
21697+ test -z "$as_dir" && as_dir=.
21698+ for ac_exec_ext in '' $ac_executable_extensions; do
21699+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21700+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
21701+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21702+ break 2
21703+ fi
21704+done
21705+ done
21706+IFS=$as_save_IFS
21707+
21708+fi
21709+fi
21710+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
21711+if test -n "$ac_ct_DLLTOOL"; then
21712+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
21713+$as_echo "$ac_ct_DLLTOOL" >&6; }
21714+else
21715+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21716+$as_echo "no" >&6; }
21717+fi
21718+
21719+ if test "x$ac_ct_DLLTOOL" = x; then
21720+ DLLTOOL="false"
21721+ else
21722+ case $cross_compiling:$ac_tool_warned in
21723+yes:)
21724+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21725+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21726+ac_tool_warned=yes ;;
21727+esac
21728+ DLLTOOL=$ac_ct_DLLTOOL
21729+ fi
21730+else
21731+ DLLTOOL="$ac_cv_prog_DLLTOOL"
21732+fi
21733+
21734+test -z "$DLLTOOL" && DLLTOOL=dlltool
21735+
21736+
21737+
21738+
21739+
21740+
21741+
21742+
21743+
21744+
21745+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
21746+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
21747+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
21748+ $as_echo_n "(cached) " >&6
21749+else
21750+ lt_cv_sharedlib_from_linklib_cmd='unknown'
21751+
21752+case $host_os in
21753+cygwin* | mingw* | pw32* | cegcc*)
21754+ # two different shell functions defined in ltmain.sh
21755+ # decide which to use based on capabilities of $DLLTOOL
21756+ case `$DLLTOOL --help 2>&1` in
21757+ *--identify-strict*)
21758+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
21759+ ;;
21760+ *)
21761+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
21762+ ;;
21763+ esac
21764+ ;;
21765+*)
21766+ # fallback: assume linklib IS sharedlib
21767+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
21768+ ;;
21769+esac
21770+
21771+fi
21772+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
21773+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
21774+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
21775+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
21776+
21777+
21778+
21779+
21780+
21781+
21782+
21783+
Patrick Williams213cb262021-08-07 19:21:33 -050021784 plugin_option=
21785 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
21786 for plugin in $plugin_names; do
21787@@ -5421,8 +5674,10 @@ for plugin in $plugin_names; do
21788 done
21789
21790 if test -n "$ac_tool_prefix"; then
21791- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21792-set dummy ${ac_tool_prefix}ar; ac_word=$2
Andrew Geissler635e0e42020-08-21 15:58:33 -050021793+ for ac_prog in ar
21794+ do
21795+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21796+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21798 $as_echo_n "checking for $ac_word... " >&6; }
21799 if ${ac_cv_prog_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -050021800@@ -5438,7 +5693,7 @@ do
Andrew Geissler635e0e42020-08-21 15:58:33 -050021801 test -z "$as_dir" && as_dir=.
21802 for ac_exec_ext in '' $ac_executable_extensions; do
21803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21804- ac_cv_prog_AR="${ac_tool_prefix}ar"
21805+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
21806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21807 break 2
21808 fi
Patrick Williams213cb262021-08-07 19:21:33 -050021809@@ -5458,11 +5713,15 @@ $as_echo "no" >&6; }
Andrew Geissler635e0e42020-08-21 15:58:33 -050021810 fi
21811
21812
21813+ test -n "$AR" && break
21814+ done
21815 fi
21816-if test -z "$ac_cv_prog_AR"; then
21817+if test -z "$AR"; then
21818 ac_ct_AR=$AR
21819- # Extract the first word of "ar", so it can be a program name with args.
21820-set dummy ar; ac_word=$2
21821+ for ac_prog in ar
21822+do
21823+ # Extract the first word of "$ac_prog", so it can be a program name with args.
21824+set dummy $ac_prog; ac_word=$2
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21826 $as_echo_n "checking for $ac_word... " >&6; }
21827 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Williams213cb262021-08-07 19:21:33 -050021828@@ -5478,7 +5737,7 @@ do
Andrew Geissler635e0e42020-08-21 15:58:33 -050021829 test -z "$as_dir" && as_dir=.
21830 for ac_exec_ext in '' $ac_executable_extensions; do
21831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21832- ac_cv_prog_ac_ct_AR="ar"
21833+ ac_cv_prog_ac_ct_AR="$ac_prog"
21834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21835 break 2
21836 fi
Patrick Williams213cb262021-08-07 19:21:33 -050021837@@ -5497,6 +5756,10 @@ else
Andrew Geissler635e0e42020-08-21 15:58:33 -050021838 $as_echo "no" >&6; }
21839 fi
21840
21841+
21842+ test -n "$ac_ct_AR" && break
21843+done
21844+
21845 if test "x$ac_ct_AR" = x; then
21846 AR="false"
21847 else
Patrick Williams213cb262021-08-07 19:21:33 -050021848@@ -5508,25 +5771,19 @@ ac_tool_warned=yes ;;
Andrew Geissler635e0e42020-08-21 15:58:33 -050021849 esac
21850 AR=$ac_ct_AR
21851 fi
21852-else
21853- AR="$ac_cv_prog_AR"
21854 fi
21855
21856-test -z "$AR" && AR=ar
Patrick Williams213cb262021-08-07 19:21:33 -050021857-if test -n "$plugin_option"; then
21858- if $AR --help 2>&1 | grep -q "\--plugin"; then
21859- touch conftest.c
21860- $AR $plugin_option rc conftest.a conftest.c
21861- if test "$?" != 0; then
21862- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
21863+ touch conftest.c
21864+ $AR $plugin_option rc conftest.a conftest.c
21865+ if test "$?" != 0; then
21866+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
21867 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
21868- else
21869- AR="$AR $plugin_option"
21870- fi
21871- rm -f conftest.*
21872+ else
21873+ AR="$AR $plugin_option"
21874 fi
21875-fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050021876-test -z "$AR_FLAGS" && AR_FLAGS=cru
Patrick Williams213cb262021-08-07 19:21:33 -050021877+ rm -f conftest.*
Andrew Geissler635e0e42020-08-21 15:58:33 -050021878+: ${AR=ar}
21879+: ${AR_FLAGS=cru}
Patrick Williams213cb262021-08-07 19:21:33 -050021880
21881
21882
21883@@ -5538,6 +5795,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
21884
21885
21886
Andrew Geissler635e0e42020-08-21 15:58:33 -050021887+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
21888+$as_echo_n "checking for archiver @FILE support... " >&6; }
21889+if ${lt_cv_ar_at_file+:} false; then :
21890+ $as_echo_n "(cached) " >&6
21891+else
21892+ lt_cv_ar_at_file=no
21893+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894+/* end confdefs.h. */
21895+
21896+int
21897+main ()
21898+{
Patrick Williams213cb262021-08-07 19:21:33 -050021899+
Andrew Geissler635e0e42020-08-21 15:58:33 -050021900+ ;
21901+ return 0;
21902+}
21903+_ACEOF
21904+if ac_fn_c_try_compile "$LINENO"; then :
21905+ echo conftest.$ac_objext > conftest.lst
21906+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
21907+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
21908+ (eval $lt_ar_try) 2>&5
21909+ ac_status=$?
21910+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21911+ test $ac_status = 0; }
21912+ if test "$ac_status" -eq 0; then
21913+ # Ensure the archiver fails upon bogus file names.
21914+ rm -f conftest.$ac_objext libconftest.a
21915+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
21916+ (eval $lt_ar_try) 2>&5
21917+ ac_status=$?
21918+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21919+ test $ac_status = 0; }
21920+ if test "$ac_status" -ne 0; then
21921+ lt_cv_ar_at_file=@
21922+ fi
21923+ fi
21924+ rm -f conftest.* libconftest.a
Patrick Williams213cb262021-08-07 19:21:33 -050021925+
Andrew Geissler635e0e42020-08-21 15:58:33 -050021926+fi
21927+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -050021928+
Andrew Geissler635e0e42020-08-21 15:58:33 -050021929+fi
21930+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
21931+$as_echo "$lt_cv_ar_at_file" >&6; }
Patrick Williams213cb262021-08-07 19:21:33 -050021932+
Andrew Geissler635e0e42020-08-21 15:58:33 -050021933+if test "x$lt_cv_ar_at_file" = xno; then
21934+ archiver_list_spec=
21935+else
21936+ archiver_list_spec=$lt_cv_ar_at_file
21937+fi
Patrick Williams213cb262021-08-07 19:21:33 -050021938+
21939+
21940+
21941+
21942+
21943+
21944+
21945 if test -n "$ac_tool_prefix"; then
21946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
21947 set dummy ${ac_tool_prefix}strip; ac_word=$2
21948@@ -5877,8 +6192,8 @@ esac
Andrew Geissler635e0e42020-08-21 15:58:33 -050021949 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
21950
21951 # Transform an extracted symbol line into symbol name and symbol address
21952-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
21953-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'"
21954+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
21955+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'"
21956
21957 # Handle CRLF in mingw tool chain
21958 opt_cr=
Patrick Williams213cb262021-08-07 19:21:33 -050021959@@ -5914,6 +6229,7 @@ for ac_symprfx in "" "_"; do
Andrew Geissler635e0e42020-08-21 15:58:33 -050021960 else
21961 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
21962 fi
21963+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
21964
21965 # Check to see that the pipe works correctly.
21966 pipe_works=no
Patrick Williams213cb262021-08-07 19:21:33 -050021967@@ -5955,6 +6271,18 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050021968 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
21969 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
21970 cat <<_LT_EOF > conftest.$ac_ext
21971+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
21972+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
21973+/* DATA imports from DLLs on WIN32 con't be const, because runtime
21974+ relocations are performed -- see ld's documentation on pseudo-relocs. */
21975+# define LT_DLSYM_CONST
21976+#elif defined(__osf__)
21977+/* This system does not cope well with relocations in const data. */
21978+# define LT_DLSYM_CONST
21979+#else
21980+# define LT_DLSYM_CONST const
21981+#endif
21982+
21983 #ifdef __cplusplus
21984 extern "C" {
21985 #endif
Patrick Williams213cb262021-08-07 19:21:33 -050021986@@ -5966,7 +6294,7 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050021987 cat <<_LT_EOF >> conftest.$ac_ext
21988
21989 /* The mapping between symbol names and symbols. */
21990-const struct {
21991+LT_DLSYM_CONST struct {
21992 const char *name;
21993 void *address;
21994 }
Patrick Williams213cb262021-08-07 19:21:33 -050021995@@ -5992,8 +6320,8 @@ static const void *lt_preloaded_setup() {
Andrew Geissler635e0e42020-08-21 15:58:33 -050021996 _LT_EOF
21997 # Now try linking the two files.
21998 mv conftest.$ac_objext conftstm.$ac_objext
21999- lt_save_LIBS="$LIBS"
22000- lt_save_CFLAGS="$CFLAGS"
22001+ lt_globsym_save_LIBS=$LIBS
22002+ lt_globsym_save_CFLAGS=$CFLAGS
22003 LIBS="conftstm.$ac_objext"
22004 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
22005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Patrick Williams213cb262021-08-07 19:21:33 -050022006@@ -6003,8 +6331,8 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050022007 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
22008 pipe_works=yes
22009 fi
22010- LIBS="$lt_save_LIBS"
22011- CFLAGS="$lt_save_CFLAGS"
22012+ LIBS=$lt_globsym_save_LIBS
22013+ CFLAGS=$lt_globsym_save_CFLAGS
22014 else
22015 echo "cannot find nm_test_func in $nlist" >&5
22016 fi
Patrick Williams213cb262021-08-07 19:21:33 -050022017@@ -6041,6 +6369,17 @@ else
Andrew Geissler635e0e42020-08-21 15:58:33 -050022018 $as_echo "ok" >&6; }
22019 fi
22020
22021+# Response file support.
22022+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
22023+ nm_file_list_spec='@'
22024+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
22025+ nm_file_list_spec='@'
22026+fi
22027+
22028+
22029+
22030+
22031+
Patrick Williams213cb262021-08-07 19:21:33 -050022032
22033
22034
22035@@ -6058,6 +6397,43 @@ fi
22036
22037
22038
Andrew Geissler635e0e42020-08-21 15:58:33 -050022039+
22040+
Andrew Geissler635e0e42020-08-21 15:58:33 -050022041+
22042+
22043+
22044+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
22045+$as_echo_n "checking for sysroot... " >&6; }
22046+
22047+# Check whether --with-libtool-sysroot was given.
22048+if test "${with_libtool_sysroot+set}" = set; then :
22049+ withval=$with_libtool_sysroot;
22050+else
22051+ with_libtool_sysroot=no
22052+fi
22053+
22054+
22055+lt_sysroot=
22056+case ${with_libtool_sysroot} in #(
22057+ yes)
22058+ if test "$GCC" = yes; then
22059+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
22060+ fi
22061+ ;; #(
22062+ /*)
22063+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
22064+ ;; #(
22065+ no|'')
22066+ ;; #(
22067+ *)
22068+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
22069+$as_echo "${with_libtool_sysroot}" >&6; }
22070+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
22071+ ;;
22072+esac
22073+
22074+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
22075+$as_echo "${lt_sysroot:-no}" >&6; }
22076
22077
22078
Patrick Williams213cb262021-08-07 19:21:33 -050022079@@ -6272,6 +6648,123 @@ esac
Andrew Geissler635e0e42020-08-21 15:58:33 -050022080
22081 need_locks="$enable_libtool_lock"
22082
22083+if test -n "$ac_tool_prefix"; then
22084+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
22085+set dummy ${ac_tool_prefix}mt; ac_word=$2
22086+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22087+$as_echo_n "checking for $ac_word... " >&6; }
22088+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
22089+ $as_echo_n "(cached) " >&6
22090+else
22091+ if test -n "$MANIFEST_TOOL"; then
22092+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
22093+else
22094+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22095+for as_dir in $PATH
22096+do
22097+ IFS=$as_save_IFS
22098+ test -z "$as_dir" && as_dir=.
22099+ for ac_exec_ext in '' $ac_executable_extensions; do
22100+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22101+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
22102+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22103+ break 2
22104+ fi
22105+done
22106+ done
22107+IFS=$as_save_IFS
22108+
22109+fi
22110+fi
22111+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
22112+if test -n "$MANIFEST_TOOL"; then
22113+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
22114+$as_echo "$MANIFEST_TOOL" >&6; }
22115+else
22116+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22117+$as_echo "no" >&6; }
22118+fi
22119+
22120+
22121+fi
22122+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
22123+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
22124+ # Extract the first word of "mt", so it can be a program name with args.
22125+set dummy mt; ac_word=$2
22126+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22127+$as_echo_n "checking for $ac_word... " >&6; }
22128+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
22129+ $as_echo_n "(cached) " >&6
22130+else
22131+ if test -n "$ac_ct_MANIFEST_TOOL"; then
22132+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
22133+else
22134+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22135+for as_dir in $PATH
22136+do
22137+ IFS=$as_save_IFS
22138+ test -z "$as_dir" && as_dir=.
22139+ for ac_exec_ext in '' $ac_executable_extensions; do
22140+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22141+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
22142+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22143+ break 2
22144+ fi
22145+done
22146+ done
22147+IFS=$as_save_IFS
22148+
22149+fi
22150+fi
22151+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
22152+if test -n "$ac_ct_MANIFEST_TOOL"; then
22153+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
22154+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
22155+else
22156+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22157+$as_echo "no" >&6; }
22158+fi
22159+
22160+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
22161+ MANIFEST_TOOL=":"
22162+ else
22163+ case $cross_compiling:$ac_tool_warned in
22164+yes:)
22165+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22166+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22167+ac_tool_warned=yes ;;
22168+esac
22169+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
22170+ fi
22171+else
22172+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
22173+fi
22174+
22175+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
22176+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
22177+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
22178+if ${lt_cv_path_mainfest_tool+:} false; then :
22179+ $as_echo_n "(cached) " >&6
22180+else
22181+ lt_cv_path_mainfest_tool=no
22182+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
22183+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
22184+ cat conftest.err >&5
22185+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
22186+ lt_cv_path_mainfest_tool=yes
22187+ fi
22188+ rm -f conftest*
22189+fi
22190+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
22191+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
22192+if test "x$lt_cv_path_mainfest_tool" != xyes; then
22193+ MANIFEST_TOOL=:
22194+fi
22195+
22196+
22197+
22198+
22199+
22200
22201 case $host_os in
22202 rhapsody* | darwin*)
Patrick Williams213cb262021-08-07 19:21:33 -050022203@@ -6838,6 +7331,8 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050022204 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
22205 echo "$AR cru libconftest.a conftest.o" >&5
22206 $AR cru libconftest.a conftest.o 2>&5
22207+ echo "$RANLIB libconftest.a" >&5
22208+ $RANLIB libconftest.a 2>&5
22209 cat > conftest.c << _LT_EOF
22210 int main() { return 0;}
22211 _LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050022212@@ -7300,7 +7795,8 @@ fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022213 LIBTOOL_DEPS="$ltmain"
22214
22215 # Always use our own libtool.
22216-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22217+LIBTOOL='$(SHELL) $(top_builddir)'
22218+LIBTOOL="$LIBTOOL/${host_alias}-libtool"
22219
22220
22221
Patrick Williams213cb262021-08-07 19:21:33 -050022222@@ -7389,7 +7885,7 @@ aix3*)
Andrew Geissler635e0e42020-08-21 15:58:33 -050022223 esac
22224
22225 # Global variables:
22226-ofile=libtool
22227+ofile=${host_alias}-libtool
22228 can_build_shared=yes
22229
22230 # All known linkers require a `.a' archive for static linking (except MSVC,
Patrick Williams213cb262021-08-07 19:21:33 -050022231@@ -7687,8 +8183,6 @@ fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022232 lt_prog_compiler_pic=
22233 lt_prog_compiler_static=
22234
22235-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22236-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22237
22238 if test "$GCC" = yes; then
22239 lt_prog_compiler_wl='-Wl,'
Patrick Williams213cb262021-08-07 19:21:33 -050022240@@ -7854,6 +8348,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler635e0e42020-08-21 15:58:33 -050022241 lt_prog_compiler_pic='--shared'
22242 lt_prog_compiler_static='--static'
22243 ;;
22244+ nagfor*)
22245+ # NAG Fortran compiler
22246+ lt_prog_compiler_wl='-Wl,-Wl,,'
22247+ lt_prog_compiler_pic='-PIC'
22248+ lt_prog_compiler_static='-Bstatic'
22249+ ;;
22250 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
22251 # Portland Group compilers (*not* the Pentium gcc compiler,
22252 # which looks to be a dead project)
Patrick Williams213cb262021-08-07 19:21:33 -050022253@@ -7916,7 +8416,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Andrew Geissler635e0e42020-08-21 15:58:33 -050022254 lt_prog_compiler_pic='-KPIC'
22255 lt_prog_compiler_static='-Bstatic'
22256 case $cc_basename in
22257- f77* | f90* | f95*)
22258+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22259 lt_prog_compiler_wl='-Qoption ld ';;
22260 *)
22261 lt_prog_compiler_wl='-Wl,';;
Patrick Williams213cb262021-08-07 19:21:33 -050022262@@ -7973,13 +8473,17 @@ case $host_os in
Andrew Geissler635e0e42020-08-21 15:58:33 -050022263 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
22264 ;;
22265 esac
22266-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
22267-$as_echo "$lt_prog_compiler_pic" >&6; }
22268-
22269-
22270-
22271-
22272
22273+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22274+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22275+if ${lt_cv_prog_compiler_pic+:} false; then :
22276+ $as_echo_n "(cached) " >&6
22277+else
22278+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
22279+fi
22280+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
22281+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
22282+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
22283
22284 #
22285 # Check to make sure the PIC flag actually works.
Patrick Williams213cb262021-08-07 19:21:33 -050022286@@ -8040,6 +8544,11 @@ fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022287
22288
22289
22290+
22291+
22292+
22293+
22294+
22295 #
22296 # Check to make sure the static flag actually works.
22297 #
Patrick Williams213cb262021-08-07 19:21:33 -050022298@@ -8390,7 +8899,8 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050022299 allow_undefined_flag=unsupported
22300 always_export_symbols=no
22301 enable_shared_with_static_runtimes=yes
22302- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22303+ 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'
22304+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22305
22306 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Patrick Williams213cb262021-08-07 19:21:33 -050022308@@ -8489,12 +8999,12 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050022309 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
22310 hardcode_libdir_flag_spec=
22311 hardcode_libdir_flag_spec_ld='-rpath $libdir'
22312- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
22313+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
22314 if test "x$supports_anon_versioning" = xyes; then
22315 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
22316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22317 echo "local: *; };" >> $output_objdir/$libname.ver~
22318- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22319+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22320 fi
22321 ;;
22322 esac
Patrick Williams213cb262021-08-07 19:21:33 -050022323@@ -8508,8 +9018,8 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050022324 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22325 wlarc=
22326 else
22327- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22328- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22329+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22330+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22331 fi
22332 ;;
22333
Patrick Williams213cb262021-08-07 19:21:33 -050022334@@ -8527,8 +9037,8 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050022335
22336 _LT_EOF
22337 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22338- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22339- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22340+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22341+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22342 else
22343 ld_shlibs=no
22344 fi
Patrick Williams213cb262021-08-07 19:21:33 -050022345@@ -8574,8 +9084,8 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050022346
22347 *)
22348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22349- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22350- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22351+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22352+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22353 else
22354 ld_shlibs=no
22355 fi
Patrick Williams213cb262021-08-07 19:21:33 -050022356@@ -8705,7 +9215,13 @@ _LT_EOF
Andrew Geissler635e0e42020-08-21 15:58:33 -050022357 allow_undefined_flag='-berok'
22358 # Determine the default libpath from the value encoded in an
22359 # empty executable.
22360- if test x$gcc_no_link = xyes; then
22361+ if test "${lt_cv_aix_libpath+set}" = set; then
22362+ aix_libpath=$lt_cv_aix_libpath
22363+else
22364+ if ${lt_cv_aix_libpath_+:} false; then :
22365+ $as_echo_n "(cached) " >&6
22366+else
22367+ if test x$gcc_no_link = xyes; then
22368 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22369 fi
22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -050022371@@ -8721,22 +9237,29 @@ main ()
Andrew Geissler635e0e42020-08-21 15:58:33 -050022372 _ACEOF
22373 if ac_fn_c_try_link "$LINENO"; then :
22374
22375-lt_aix_libpath_sed='
22376- /Import File Strings/,/^$/ {
22377- /^0/ {
22378- s/^0 *\(.*\)$/\1/
22379- p
22380- }
22381- }'
22382-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22383-# Check for a 64-bit object if we didn't find anything.
22384-if test -z "$aix_libpath"; then
22385- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22386-fi
22387+ lt_aix_libpath_sed='
22388+ /Import File Strings/,/^$/ {
22389+ /^0/ {
22390+ s/^0 *\([^ ]*\) *$/\1/
22391+ p
22392+ }
22393+ }'
22394+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22395+ # Check for a 64-bit object if we didn't find anything.
22396+ if test -z "$lt_cv_aix_libpath_"; then
22397+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22398+ fi
22399 fi
22400 rm -f core conftest.err conftest.$ac_objext \
22401 conftest$ac_exeext conftest.$ac_ext
22402-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22403+ if test -z "$lt_cv_aix_libpath_"; then
22404+ lt_cv_aix_libpath_="/usr/lib:/lib"
22405+ fi
22406+
22407+fi
22408+
22409+ aix_libpath=$lt_cv_aix_libpath_
22410+fi
22411
22412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
22413 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"
Patrick Williams213cb262021-08-07 19:21:33 -050022414@@ -8748,7 +9271,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022415 else
22416 # Determine the default libpath from the value encoded in an
22417 # empty executable.
22418- if test x$gcc_no_link = xyes; then
22419+ if test "${lt_cv_aix_libpath+set}" = set; then
22420+ aix_libpath=$lt_cv_aix_libpath
22421+else
22422+ if ${lt_cv_aix_libpath_+:} false; then :
22423+ $as_echo_n "(cached) " >&6
22424+else
22425+ if test x$gcc_no_link = xyes; then
22426 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22427 fi
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Patrick Williams213cb262021-08-07 19:21:33 -050022429@@ -8764,22 +9293,29 @@ main ()
Andrew Geissler635e0e42020-08-21 15:58:33 -050022430 _ACEOF
22431 if ac_fn_c_try_link "$LINENO"; then :
22432
22433-lt_aix_libpath_sed='
22434- /Import File Strings/,/^$/ {
22435- /^0/ {
22436- s/^0 *\(.*\)$/\1/
22437- p
22438- }
22439- }'
22440-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22441-# Check for a 64-bit object if we didn't find anything.
22442-if test -z "$aix_libpath"; then
22443- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22444-fi
22445+ lt_aix_libpath_sed='
22446+ /Import File Strings/,/^$/ {
22447+ /^0/ {
22448+ s/^0 *\([^ ]*\) *$/\1/
22449+ p
22450+ }
22451+ }'
22452+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22453+ # Check for a 64-bit object if we didn't find anything.
22454+ if test -z "$lt_cv_aix_libpath_"; then
22455+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22456+ fi
22457 fi
22458 rm -f core conftest.err conftest.$ac_objext \
22459 conftest$ac_exeext conftest.$ac_ext
22460-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22461+ if test -z "$lt_cv_aix_libpath_"; then
22462+ lt_cv_aix_libpath_="/usr/lib:/lib"
22463+ fi
22464+
22465+fi
22466+
22467+ aix_libpath=$lt_cv_aix_libpath_
22468+fi
22469
22470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
22471 # Warning - without using the other run time loading flags,
Patrick Williams213cb262021-08-07 19:21:33 -050022472@@ -8824,20 +9360,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022473 # Microsoft Visual C++.
22474 # hardcode_libdir_flag_spec is actually meaningless, as there is
22475 # no search path for DLLs.
22476- hardcode_libdir_flag_spec=' '
22477- allow_undefined_flag=unsupported
22478- # Tell ltmain to make .lib files, not .a files.
22479- libext=lib
22480- # Tell ltmain to make .dll files, not .so files.
22481- shrext_cmds=".dll"
22482- # FIXME: Setting linknames here is a bad hack.
22483- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
22484- # The linker will automatically build a .lib file if we build a DLL.
22485- old_archive_from_new_cmds='true'
22486- # FIXME: Should let the user specify the lib program.
22487- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
22488- fix_srcfile_path='`cygpath -w "$srcfile"`'
22489- enable_shared_with_static_runtimes=yes
22490+ case $cc_basename in
22491+ cl*)
22492+ # Native MSVC
22493+ hardcode_libdir_flag_spec=' '
22494+ allow_undefined_flag=unsupported
22495+ always_export_symbols=yes
22496+ file_list_spec='@'
22497+ # Tell ltmain to make .lib files, not .a files.
22498+ libext=lib
22499+ # Tell ltmain to make .dll files, not .so files.
22500+ shrext_cmds=".dll"
22501+ # FIXME: Setting linknames here is a bad hack.
22502+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
22503+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22504+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
22505+ else
22506+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
22507+ fi~
22508+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
22509+ linknames='
22510+ # The linker will not automatically build a static lib if we build a DLL.
22511+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
22512+ enable_shared_with_static_runtimes=yes
22513+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22514+ # Don't use ranlib
22515+ old_postinstall_cmds='chmod 644 $oldlib'
22516+ postlink_cmds='lt_outputfile="@OUTPUT@"~
22517+ lt_tool_outputfile="@TOOL_OUTPUT@"~
22518+ case $lt_outputfile in
22519+ *.exe|*.EXE) ;;
22520+ *)
22521+ lt_outputfile="$lt_outputfile.exe"
22522+ lt_tool_outputfile="$lt_tool_outputfile.exe"
22523+ ;;
22524+ esac~
22525+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
22526+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
22527+ $RM "$lt_outputfile.manifest";
22528+ fi'
22529+ ;;
22530+ *)
22531+ # Assume MSVC wrapper
22532+ hardcode_libdir_flag_spec=' '
22533+ allow_undefined_flag=unsupported
22534+ # Tell ltmain to make .lib files, not .a files.
22535+ libext=lib
22536+ # Tell ltmain to make .dll files, not .so files.
22537+ shrext_cmds=".dll"
22538+ # FIXME: Setting linknames here is a bad hack.
22539+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
22540+ # The linker will automatically build a .lib file if we build a DLL.
22541+ old_archive_from_new_cmds='true'
22542+ # FIXME: Should let the user specify the lib program.
22543+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
22544+ enable_shared_with_static_runtimes=yes
22545+ ;;
22546+ esac
22547 ;;
22548
22549 darwin* | rhapsody*)
Patrick Williams213cb262021-08-07 19:21:33 -050022550@@ -8898,7 +9477,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022551
22552 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22553 freebsd* | dragonfly*)
22554- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22555+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22556 hardcode_libdir_flag_spec='-R$libdir'
22557 hardcode_direct=yes
22558 hardcode_shlibpath_var=no
Patrick Williams213cb262021-08-07 19:21:33 -050022559@@ -8906,7 +9485,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022560
22561 hpux9*)
22562 if test "$GCC" = yes; then
22563- 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'
22564+ 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'
22565 else
22566 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'
22567 fi
Patrick Williams213cb262021-08-07 19:21:33 -050022568@@ -8922,7 +9501,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022569
22570 hpux10*)
22571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
22572- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22573+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22574 else
22575 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22576 fi
Patrick Williams213cb262021-08-07 19:21:33 -050022577@@ -8946,10 +9525,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022578 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22579 ;;
22580 ia64*)
22581- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22582+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22583 ;;
22584 *)
22585- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22586+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22587 ;;
22588 esac
22589 else
Patrick Williams213cb262021-08-07 19:21:33 -050022590@@ -9028,26 +9607,39 @@ fi
Andrew Geissler635e0e42020-08-21 15:58:33 -050022591
22592 irix5* | irix6* | nonstopux*)
22593 if test "$GCC" = yes; then
22594- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22595+ 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'
22596 # Try to use the -exported_symbol ld option, if it does not
22597 # work, assume that -exports_file does not work either and
22598 # implicitly export all symbols.
22599- save_LDFLAGS="$LDFLAGS"
22600- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22601- if test x$gcc_no_link = xyes; then
22602+ # This should be the same for all languages, so no per-tag cache variable.
22603+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
22604+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
22605+if ${lt_cv_irix_exported_symbol+:} false; then :
22606+ $as_echo_n "(cached) " >&6
22607+else
22608+ save_LDFLAGS="$LDFLAGS"
22609+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22610+ if test x$gcc_no_link = xyes; then
22611 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22612 fi
22613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22614 /* end confdefs.h. */
22615-int foo(void) {}
22616+int foo (void) { return 0; }
22617 _ACEOF
22618 if ac_fn_c_try_link "$LINENO"; then :
22619- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
22620-
22621+ lt_cv_irix_exported_symbol=yes
22622+else
22623+ lt_cv_irix_exported_symbol=no
22624 fi
22625 rm -f core conftest.err conftest.$ac_objext \
22626 conftest$ac_exeext conftest.$ac_ext
22627- LDFLAGS="$save_LDFLAGS"
22628+ LDFLAGS="$save_LDFLAGS"
22629+fi
22630+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
22631+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
22632+ if test "$lt_cv_irix_exported_symbol" = yes; then
22633+ 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'
22634+ fi
22635 else
22636 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'
22637 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'
Patrick Williams213cb262021-08-07 19:21:33 -050022638@@ -9132,7 +9724,7 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler635e0e42020-08-21 15:58:33 -050022639 osf4* | osf5*) # as osf3* with the addition of -msym flag
22640 if test "$GCC" = yes; then
22641 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
22642- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22643+ 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'
22644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22645 else
22646 allow_undefined_flag=' -expect_unresolved \*'
Patrick Williams213cb262021-08-07 19:21:33 -050022647@@ -9151,9 +9743,9 @@ rm -f core conftest.err conftest.$ac_objext \
Andrew Geissler635e0e42020-08-21 15:58:33 -050022648 no_undefined_flag=' -z defs'
22649 if test "$GCC" = yes; then
22650 wlarc='${wl}'
22651- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22652+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22654- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22655+ $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'
22656 else
22657 case `$CC -V 2>&1` in
22658 *"Compilers 5.0"*)
Patrick Williams213cb262021-08-07 19:21:33 -050022659@@ -9729,8 +10321,9 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler635e0e42020-08-21 15:58:33 -050022660 need_version=no
22661 need_lib_prefix=no
22662
22663- case $GCC,$host_os in
22664- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22665+ case $GCC,$cc_basename in
22666+ yes,*)
22667+ # gcc
22668 library_names_spec='$libname.dll.a'
22669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22670 postinstall_cmds='base_file=`basename \${file}`~
Patrick Williams213cb262021-08-07 19:21:33 -050022671@@ -9763,13 +10356,71 @@ cygwin* | mingw* | pw32* | cegcc*)
Andrew Geissler635e0e42020-08-21 15:58:33 -050022672 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22673 ;;
22674 esac
22675+ dynamic_linker='Win32 ld.exe'
22676+ ;;
22677+
22678+ *,cl*)
22679+ # Native MSVC
22680+ libname_spec='$name'
22681+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22682+ library_names_spec='${libname}.dll.lib'
22683+
22684+ case $build_os in
22685+ mingw*)
22686+ sys_lib_search_path_spec=
22687+ lt_save_ifs=$IFS
22688+ IFS=';'
22689+ for lt_path in $LIB
22690+ do
22691+ IFS=$lt_save_ifs
22692+ # Let DOS variable expansion print the short 8.3 style file name.
22693+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22694+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22695+ done
22696+ IFS=$lt_save_ifs
22697+ # Convert to MSYS style.
22698+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22699+ ;;
22700+ cygwin*)
22701+ # Convert to unix form, then to dos form, then back to unix form
22702+ # but this time dos style (no spaces!) so that the unix form looks
22703+ # like /cygdrive/c/PROGRA~1:/cygdr...
22704+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22705+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22706+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22707+ ;;
22708+ *)
22709+ sys_lib_search_path_spec="$LIB"
22710+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22711+ # It is most probably a Windows format PATH.
22712+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22713+ else
22714+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22715+ fi
22716+ # FIXME: find the short name or the path components, as spaces are
22717+ # common. (e.g. "Program Files" -> "PROGRA~1")
22718+ ;;
22719+ esac
22720+
22721+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
22722+ postinstall_cmds='base_file=`basename \${file}`~
22723+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22724+ dldir=$destdir/`dirname \$dlpath`~
22725+ test -d \$dldir || mkdir -p \$dldir~
22726+ $install_prog $dir/$dlname \$dldir/$dlname'
22727+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22728+ dlpath=$dir/\$dldll~
22729+ $RM \$dlpath'
22730+ shlibpath_overrides_runpath=yes
22731+ dynamic_linker='Win32 link.exe'
22732 ;;
22733
22734 *)
22735+ # Assume MSVC wrapper
22736 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22737+ dynamic_linker='Win32 ld.exe'
22738 ;;
22739 esac
22740- dynamic_linker='Win32 ld.exe'
22741 # FIXME: first we should search . and the directory the executable is in
22742 shlibpath_var=PATH
22743 ;;
Patrick Williams213cb262021-08-07 19:21:33 -050022744@@ -9851,7 +10502,7 @@ haiku*)
Andrew Geissler635e0e42020-08-21 15:58:33 -050022745 soname_spec='${libname}${release}${shared_ext}$major'
22746 shlibpath_var=LIBRARY_PATH
22747 shlibpath_overrides_runpath=yes
22748- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22749+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22750 hardcode_into_libs=yes
22751 ;;
22752
Patrick Williams213cb262021-08-07 19:21:33 -050022753@@ -10665,7 +11316,7 @@ else
Andrew Geissler635e0e42020-08-21 15:58:33 -050022754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22755 lt_status=$lt_dlunknown
22756 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050022757-#line 10668 "configure"
Andrew Geissler635e0e42020-08-21 15:58:33 -050022758+#line $LINENO "configure"
22759 #include "confdefs.h"
22760
22761 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -050022762@@ -10709,10 +11360,10 @@ else
Andrew Geissler635e0e42020-08-21 15:58:33 -050022763 /* When -fvisbility=hidden is used, assume the code has been annotated
22764 correspondingly for the symbols needed. */
22765 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22766-void fnord () __attribute__((visibility("default")));
22767+int fnord () __attribute__((visibility("default")));
22768 #endif
22769
22770-void fnord () { int i=42; }
22771+int fnord () { return 42; }
22772 int main ()
22773 {
22774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -050022775@@ -10771,7 +11422,7 @@ else
Andrew Geissler635e0e42020-08-21 15:58:33 -050022776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22777 lt_status=$lt_dlunknown
22778 cat > conftest.$ac_ext <<_LT_EOF
Patrick Williams213cb262021-08-07 19:21:33 -050022779-#line 10774 "configure"
Andrew Geissler635e0e42020-08-21 15:58:33 -050022780+#line $LINENO "configure"
22781 #include "confdefs.h"
22782
22783 #if HAVE_DLFCN_H
Patrick Williams213cb262021-08-07 19:21:33 -050022784@@ -10815,10 +11466,10 @@ else
Andrew Geissler635e0e42020-08-21 15:58:33 -050022785 /* When -fvisbility=hidden is used, assume the code has been annotated
22786 correspondingly for the symbols needed. */
22787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22788-void fnord () __attribute__((visibility("default")));
22789+int fnord () __attribute__((visibility("default")));
22790 #endif
22791
22792-void fnord () { int i=42; }
22793+int fnord () { return 42; }
22794 int main ()
22795 {
22796 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Patrick Williams213cb262021-08-07 19:21:33 -050022797@@ -12288,13 +12939,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Andrew Geissler635e0e42020-08-21 15:58:33 -050022798 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22799 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22800 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22801+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22802+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22803 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22804 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22805 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22806 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22807 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22808+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22809+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22810+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22811+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22812 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22813 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22814+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22815 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22816 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22817 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050022818@@ -12309,14 +12967,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
Andrew Geissler635e0e42020-08-21 15:58:33 -050022819 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22820 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22821 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"`'
22822+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22823+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22824 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22825 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22826 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22827-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22828 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22829+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22830 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22831 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22832 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22833+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22834 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22835 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22836 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050022837@@ -12349,12 +13010,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
Andrew Geissler635e0e42020-08-21 15:58:33 -050022838 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22839 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22840 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22841-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
22842 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22843 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22844 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22845 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22846 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22847+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22848 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22849 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22850 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Patrick Williams213cb262021-08-07 19:21:33 -050022851@@ -12409,8 +13070,13 @@ reload_flag \
Andrew Geissler635e0e42020-08-21 15:58:33 -050022852 OBJDUMP \
22853 deplibs_check_method \
22854 file_magic_cmd \
22855+file_magic_glob \
22856+want_nocaseglob \
22857+DLLTOOL \
22858+sharedlib_from_linklib_cmd \
22859 AR \
22860 AR_FLAGS \
22861+archiver_list_spec \
22862 STRIP \
22863 RANLIB \
22864 CC \
Patrick Williams213cb262021-08-07 19:21:33 -050022865@@ -12420,12 +13086,14 @@ lt_cv_sys_global_symbol_pipe \
Andrew Geissler635e0e42020-08-21 15:58:33 -050022866 lt_cv_sys_global_symbol_to_cdecl \
22867 lt_cv_sys_global_symbol_to_c_name_address \
22868 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22869+nm_file_list_spec \
22870 lt_prog_compiler_no_builtin_flag \
22871-lt_prog_compiler_wl \
22872 lt_prog_compiler_pic \
22873+lt_prog_compiler_wl \
22874 lt_prog_compiler_static \
22875 lt_cv_prog_compiler_c_o \
22876 need_locks \
22877+MANIFEST_TOOL \
22878 DSYMUTIL \
22879 NMEDIT \
22880 LIPO \
Patrick Williams213cb262021-08-07 19:21:33 -050022881@@ -12441,7 +13109,6 @@ no_undefined_flag \
Andrew Geissler635e0e42020-08-21 15:58:33 -050022882 hardcode_libdir_flag_spec \
22883 hardcode_libdir_flag_spec_ld \
22884 hardcode_libdir_separator \
22885-fix_srcfile_path \
22886 exclude_expsyms \
22887 include_expsyms \
22888 file_list_spec \
Patrick Williams213cb262021-08-07 19:21:33 -050022889@@ -12477,6 +13144,7 @@ module_cmds \
Andrew Geissler635e0e42020-08-21 15:58:33 -050022890 module_expsym_cmds \
22891 export_symbols_cmds \
22892 prelink_cmds \
22893+postlink_cmds \
22894 postinstall_cmds \
22895 postuninstall_cmds \
22896 finish_cmds \
Patrick Williams213cb262021-08-07 19:21:33 -050022897@@ -13075,7 +13743,8 @@ $as_echo X"$file" |
Andrew Geissler635e0e42020-08-21 15:58:33 -050022898 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22899 #
22900 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22901-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
22902+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
22903+# Inc.
22904 # Written by Gordon Matzigkeit, 1996
22905 #
22906 # This file is part of GNU Libtool.
Patrick Williams213cb262021-08-07 19:21:33 -050022907@@ -13178,19 +13847,42 @@ SP2NL=$lt_lt_SP2NL
Andrew Geissler635e0e42020-08-21 15:58:33 -050022908 # turn newlines into spaces.
22909 NL2SP=$lt_lt_NL2SP
22910
22911+# convert \$build file names to \$host format.
22912+to_host_file_cmd=$lt_cv_to_host_file_cmd
22913+
22914+# convert \$build files to toolchain format.
22915+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22916+
22917 # An object symbol dumper.
22918 OBJDUMP=$lt_OBJDUMP
22919
22920 # Method to check whether dependent libraries are shared objects.
22921 deplibs_check_method=$lt_deplibs_check_method
22922
22923-# Command to use when deplibs_check_method == "file_magic".
22924+# Command to use when deplibs_check_method = "file_magic".
22925 file_magic_cmd=$lt_file_magic_cmd
22926
22927+# How to find potential files when deplibs_check_method = "file_magic".
22928+file_magic_glob=$lt_file_magic_glob
22929+
22930+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22931+want_nocaseglob=$lt_want_nocaseglob
22932+
22933+# DLL creation program.
22934+DLLTOOL=$lt_DLLTOOL
22935+
22936+# Command to associate shared and link libraries.
22937+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22938+
22939 # The archiver.
22940 AR=$lt_AR
22941+
22942+# Flags to create an archive.
22943 AR_FLAGS=$lt_AR_FLAGS
22944
22945+# How to feed a file listing to the archiver.
22946+archiver_list_spec=$lt_archiver_list_spec
22947+
22948 # A symbol stripping program.
22949 STRIP=$lt_STRIP
22950
Patrick Williams213cb262021-08-07 19:21:33 -050022951@@ -13220,6 +13912,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Andrew Geissler635e0e42020-08-21 15:58:33 -050022952 # Transform the output of nm in a C name address pair when lib prefix is needed.
22953 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22954
22955+# Specify filename containing input files for \$NM.
22956+nm_file_list_spec=$lt_nm_file_list_spec
22957+
22958+# The root where to search for dependent libraries,and in which our libraries should be installed.
22959+lt_sysroot=$lt_sysroot
22960+
22961 # The name of the directory that contains temporary libtool files.
22962 objdir=$objdir
22963
Patrick Williams213cb262021-08-07 19:21:33 -050022964@@ -13229,6 +13927,9 @@ MAGIC_CMD=$MAGIC_CMD
Andrew Geissler635e0e42020-08-21 15:58:33 -050022965 # Must we lock files when doing compilation?
22966 need_locks=$lt_need_locks
22967
22968+# Manifest tool.
22969+MANIFEST_TOOL=$lt_MANIFEST_TOOL
22970+
22971 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22972 DSYMUTIL=$lt_DSYMUTIL
22973
Patrick Williams213cb262021-08-07 19:21:33 -050022974@@ -13343,12 +14044,12 @@ with_gcc=$GCC
Andrew Geissler635e0e42020-08-21 15:58:33 -050022975 # Compiler flag to turn off builtin functions.
22976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22977
22978-# How to pass a linker flag through the compiler.
22979-wl=$lt_lt_prog_compiler_wl
22980-
22981 # Additional compiler flags for building library objects.
22982 pic_flag=$lt_lt_prog_compiler_pic
22983
22984+# How to pass a linker flag through the compiler.
22985+wl=$lt_lt_prog_compiler_wl
22986+
22987 # Compiler flag to prevent dynamic linking.
22988 link_static_flag=$lt_lt_prog_compiler_static
22989
Patrick Williams213cb262021-08-07 19:21:33 -050022990@@ -13435,9 +14136,6 @@ inherit_rpath=$inherit_rpath
Andrew Geissler635e0e42020-08-21 15:58:33 -050022991 # Whether libtool must link a program against all its dependency libraries.
22992 link_all_deplibs=$link_all_deplibs
22993
22994-# Fix the shell variable \$srcfile for the compiler.
22995-fix_srcfile_path=$lt_fix_srcfile_path
22996-
22997 # Set to "yes" if exported symbols are required.
22998 always_export_symbols=$always_export_symbols
22999
Patrick Williams213cb262021-08-07 19:21:33 -050023000@@ -13453,6 +14151,9 @@ include_expsyms=$lt_include_expsyms
Andrew Geissler635e0e42020-08-21 15:58:33 -050023001 # Commands necessary for linking programs (against libraries) with templates.
23002 prelink_cmds=$lt_prelink_cmds
23003
23004+# Commands necessary for finishing linking programs.
23005+postlink_cmds=$lt_postlink_cmds
23006+
23007 # Specify filename containing input files.
23008 file_list_spec=$lt_file_list_spec
23009
Patrick Williams213cb262021-08-07 19:21:33 -050023010@@ -13485,210 +14186,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
Andrew Geissler635e0e42020-08-21 15:58:33 -050023011 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23012 # text mode, it properly converts lines to CR/LF. This bash problem
23013 # is reportedly fixed, but why not run on old versions too?
23014- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23015- || (rm -f "$cfgfile"; exit 1)
23016-
23017- case $xsi_shell in
23018- yes)
23019- cat << \_LT_EOF >> "$cfgfile"
23020-
23021-# func_dirname file append nondir_replacement
23022-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23023-# otherwise set result to NONDIR_REPLACEMENT.
23024-func_dirname ()
23025-{
23026- case ${1} in
23027- */*) func_dirname_result="${1%/*}${2}" ;;
23028- * ) func_dirname_result="${3}" ;;
23029- esac
23030-}
23031-
23032-# func_basename file
23033-func_basename ()
23034-{
23035- func_basename_result="${1##*/}"
23036-}
23037-
23038-# func_dirname_and_basename file append nondir_replacement
23039-# perform func_basename and func_dirname in a single function
23040-# call:
23041-# dirname: Compute the dirname of FILE. If nonempty,
23042-# add APPEND to the result, otherwise set result
23043-# to NONDIR_REPLACEMENT.
23044-# value returned in "$func_dirname_result"
23045-# basename: Compute filename of FILE.
23046-# value retuned in "$func_basename_result"
23047-# Implementation must be kept synchronized with func_dirname
23048-# and func_basename. For efficiency, we do not delegate to
23049-# those functions but instead duplicate the functionality here.
23050-func_dirname_and_basename ()
23051-{
23052- case ${1} in
23053- */*) func_dirname_result="${1%/*}${2}" ;;
23054- * ) func_dirname_result="${3}" ;;
23055- esac
23056- func_basename_result="${1##*/}"
23057-}
23058-
23059-# func_stripname prefix suffix name
23060-# strip PREFIX and SUFFIX off of NAME.
23061-# PREFIX and SUFFIX must not contain globbing or regex special
23062-# characters, hashes, percent signs, but SUFFIX may contain a leading
23063-# dot (in which case that matches only a dot).
23064-func_stripname ()
23065-{
23066- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23067- # positional parameters, so assign one to ordinary parameter first.
23068- func_stripname_result=${3}
23069- func_stripname_result=${func_stripname_result#"${1}"}
23070- func_stripname_result=${func_stripname_result%"${2}"}
23071-}
23072-
23073-# func_opt_split
23074-func_opt_split ()
23075-{
23076- func_opt_split_opt=${1%%=*}
23077- func_opt_split_arg=${1#*=}
23078-}
23079-
23080-# func_lo2o object
23081-func_lo2o ()
23082-{
23083- case ${1} in
23084- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23085- *) func_lo2o_result=${1} ;;
23086- esac
23087-}
23088-
23089-# func_xform libobj-or-source
23090-func_xform ()
23091-{
23092- func_xform_result=${1%.*}.lo
23093-}
23094-
23095-# func_arith arithmetic-term...
23096-func_arith ()
23097-{
23098- func_arith_result=$(( $* ))
23099-}
23100-
23101-# func_len string
23102-# STRING may not start with a hyphen.
23103-func_len ()
23104-{
23105- func_len_result=${#1}
23106-}
23107-
23108-_LT_EOF
23109- ;;
23110- *) # Bourne compatible functions.
23111- cat << \_LT_EOF >> "$cfgfile"
23112-
23113-# func_dirname file append nondir_replacement
23114-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23115-# otherwise set result to NONDIR_REPLACEMENT.
23116-func_dirname ()
23117-{
23118- # Extract subdirectory from the argument.
23119- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
23120- if test "X$func_dirname_result" = "X${1}"; then
23121- func_dirname_result="${3}"
23122- else
23123- func_dirname_result="$func_dirname_result${2}"
23124- fi
23125-}
23126-
23127-# func_basename file
23128-func_basename ()
23129-{
23130- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
23131-}
23132-
23133-
23134-# func_stripname prefix suffix name
23135-# strip PREFIX and SUFFIX off of NAME.
23136-# PREFIX and SUFFIX must not contain globbing or regex special
23137-# characters, hashes, percent signs, but SUFFIX may contain a leading
23138-# dot (in which case that matches only a dot).
23139-# func_strip_suffix prefix name
23140-func_stripname ()
23141-{
23142- case ${2} in
23143- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
23144- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
23145- esac
23146-}
23147-
23148-# sed scripts:
23149-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23150-my_sed_long_arg='1s/^-[^=]*=//'
23151-
23152-# func_opt_split
23153-func_opt_split ()
23154-{
23155- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
23156- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
23157-}
23158-
23159-# func_lo2o object
23160-func_lo2o ()
23161-{
23162- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
23163-}
23164-
23165-# func_xform libobj-or-source
23166-func_xform ()
23167-{
23168- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
23169-}
23170-
23171-# func_arith arithmetic-term...
23172-func_arith ()
23173-{
23174- func_arith_result=`expr "$@"`
23175-}
23176-
23177-# func_len string
23178-# STRING may not start with a hyphen.
23179-func_len ()
23180-{
23181- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23182-}
23183-
23184-_LT_EOF
23185-esac
23186-
23187-case $lt_shell_append in
23188- yes)
23189- cat << \_LT_EOF >> "$cfgfile"
23190-
23191-# func_append var value
23192-# Append VALUE to the end of shell variable VAR.
23193-func_append ()
23194-{
23195- eval "$1+=\$2"
23196-}
23197-_LT_EOF
23198- ;;
23199- *)
23200- cat << \_LT_EOF >> "$cfgfile"
23201-
23202-# func_append var value
23203-# Append VALUE to the end of shell variable VAR.
23204-func_append ()
23205-{
23206- eval "$1=\$$1\$2"
23207-}
23208-
23209-_LT_EOF
23210- ;;
23211- esac
23212-
23213-
23214- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23215- || (rm -f "$cfgfile"; exit 1)
23216-
23217- mv -f "$cfgfile" "$ofile" ||
23218+ sed '$q' "$ltmain" >> "$cfgfile" \
23219+ || (rm -f "$cfgfile"; exit 1)
23220+
23221+ if test x"$xsi_shell" = xyes; then
23222+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23223+func_dirname ()\
23224+{\
23225+\ case ${1} in\
23226+\ */*) func_dirname_result="${1%/*}${2}" ;;\
23227+\ * ) func_dirname_result="${3}" ;;\
23228+\ esac\
23229+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23230+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23231+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23232+test 0 -eq $? || _lt_function_replace_fail=:
23233+
23234+
23235+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
23236+func_basename ()\
23237+{\
23238+\ func_basename_result="${1##*/}"\
23239+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23240+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23241+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23242+test 0 -eq $? || _lt_function_replace_fail=:
23243+
23244+
23245+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23246+func_dirname_and_basename ()\
23247+{\
23248+\ case ${1} in\
23249+\ */*) func_dirname_result="${1%/*}${2}" ;;\
23250+\ * ) func_dirname_result="${3}" ;;\
23251+\ esac\
23252+\ func_basename_result="${1##*/}"\
23253+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23254+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23255+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23256+test 0 -eq $? || _lt_function_replace_fail=:
23257+
23258+
23259+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23260+func_stripname ()\
23261+{\
23262+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23263+\ # positional parameters, so assign one to ordinary parameter first.\
23264+\ func_stripname_result=${3}\
23265+\ func_stripname_result=${func_stripname_result#"${1}"}\
23266+\ func_stripname_result=${func_stripname_result%"${2}"}\
23267+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23268+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23269+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23270+test 0 -eq $? || _lt_function_replace_fail=:
23271+
23272+
23273+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23274+func_split_long_opt ()\
23275+{\
23276+\ func_split_long_opt_name=${1%%=*}\
23277+\ func_split_long_opt_arg=${1#*=}\
23278+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23279+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23280+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23281+test 0 -eq $? || _lt_function_replace_fail=:
23282+
23283+
23284+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23285+func_split_short_opt ()\
23286+{\
23287+\ func_split_short_opt_arg=${1#??}\
23288+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23289+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23290+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23291+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23292+test 0 -eq $? || _lt_function_replace_fail=:
23293+
23294+
23295+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23296+func_lo2o ()\
23297+{\
23298+\ case ${1} in\
23299+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23300+\ *) func_lo2o_result=${1} ;;\
23301+\ esac\
23302+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23303+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23304+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23305+test 0 -eq $? || _lt_function_replace_fail=:
23306+
23307+
23308+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
23309+func_xform ()\
23310+{\
23311+ func_xform_result=${1%.*}.lo\
23312+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23313+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23314+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23315+test 0 -eq $? || _lt_function_replace_fail=:
23316+
23317+
23318+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
23319+func_arith ()\
23320+{\
23321+ func_arith_result=$(( $* ))\
23322+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23323+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23324+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23325+test 0 -eq $? || _lt_function_replace_fail=:
23326+
23327+
23328+ sed -e '/^func_len ()$/,/^} # func_len /c\
23329+func_len ()\
23330+{\
23331+ func_len_result=${#1}\
23332+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23333+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23334+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23335+test 0 -eq $? || _lt_function_replace_fail=:
23336+
23337+fi
23338+
23339+if test x"$lt_shell_append" = xyes; then
23340+ sed -e '/^func_append ()$/,/^} # func_append /c\
23341+func_append ()\
23342+{\
23343+ eval "${1}+=\\${2}"\
23344+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23345+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23346+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23347+test 0 -eq $? || _lt_function_replace_fail=:
23348+
23349+
23350+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23351+func_append_quoted ()\
23352+{\
23353+\ func_quote_for_eval "${2}"\
23354+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23355+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23356+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23357+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23358+test 0 -eq $? || _lt_function_replace_fail=:
23359+
23360+
23361+ # Save a `func_append' function call where possible by direct use of '+='
23362+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23363+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23364+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23365+ test 0 -eq $? || _lt_function_replace_fail=:
23366+else
23367+ # Save a `func_append' function call even when '+=' is not available
23368+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23369+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23370+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23371+ test 0 -eq $? || _lt_function_replace_fail=:
23372+fi
23373+
23374+if test x"$_lt_function_replace_fail" = x":"; then
23375+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23376+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23377+fi
23378+
23379+
23380+ mv -f "$cfgfile" "$ofile" ||
23381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23382 chmod +x "$ofile"
23383