/[pkg-kde]/branches/etch/packages/kdebindings/debian/patches/common/03_libtool_update.diff
ViewVC logotype

Contents of /branches/etch/packages/kdebindings/debian/patches/common/03_libtool_update.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13861 - (show annotations) (download)
Sat Feb 21 08:20:03 2009 UTC (4 years, 3 months ago) by pusling-guest
File size: 321183 byte(s)
add whatever file that was externals previously
1 diff -Nrua a/admin/libtool.m4.in b/admin/libtool.m4.in
2 --- a/admin/libtool.m4.in 2007-10-08 13:34:50.000000000 +0200
3 +++ b/admin/libtool.m4.in 2008-01-21 23:31:58.000000000 +0100
4 @@ -1,28 +1,13 @@
5 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
6 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001
7 +## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
8 ## Free Software Foundation, Inc.
9 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10 ##
11 -## This program is free software; you can redistribute it and/or modify
12 -## it under the terms of the GNU General Public License as published by
13 -## the Free Software Foundation; either version 2 of the License, or
14 -## (at your option) any later version.
15 -##
16 -## This program is distributed in the hope that it will be useful, but
17 -## WITHOUT ANY WARRANTY; without even the implied warranty of
18 -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 -## General Public License for more details.
20 -##
21 -## You should have received a copy of the GNU General Public License
22 -## along with this program; if not, write to the Free Software
23 -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 -##
25 -## As a special exception to the GNU General Public License, if you
26 -## distribute this file as part of a program that contains a
27 -## configuration script generated by Autoconf, you may include it under
28 -## the same distribution terms that you use for the rest of that program.
29 +## This file is free software; the Free Software Foundation gives
30 +## unlimited permission to copy and/or distribute it, with or without
31 +## modifications, as long as this notice is preserved.
32
33 -# serial 47 AC_PROG_LIBTOOL
34 +# serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL
35
36
37 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
38 @@ -82,7 +67,7 @@
39 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
40
41 # Always use our own libtool.
42 -LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
43 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
44 AC_SUBST(LIBTOOL)dnl
45
46 # Prevent multiple expansion
47 @@ -132,7 +117,7 @@
48
49 # Sed substitution that helps us do robust quoting. It backslashifies
50 # metacharacters that are still active within double-quoted strings.
51 -Xsed='sed -e s/^X//'
52 +Xsed='sed -e 1s/^X//'
53 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
54
55 # Same as above, but do not quote variable references.
56 @@ -152,7 +137,7 @@
57 default_ofile=libtool
58 can_build_shared=yes
59
60 -# All known linkers require a `.a' archive for static linking (except M$VC,
61 +# All known linkers require a `.a' archive for static linking (except MSVC,
62 # which needs '.lib').
63 libext=a
64 ltmain="$ac_aux_dir/ltmain.sh"
65 @@ -172,6 +157,7 @@
66 test -z "$AS" && AS=as
67 test -z "$CC" && CC=cc
68 test -z "$LTCC" && LTCC=$CC
69 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
70 test -z "$DLLTOOL" && DLLTOOL=dlltool
71 test -z "$LD" && LD=ld
72 test -z "$LN_S" && LN_S="ln -s"
73 @@ -184,22 +170,24 @@
74 test -z "$ac_objext" && ac_objext=o
75
76 # Determine commands to create old-style static archives.
77 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
78 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
79 old_postinstall_cmds='chmod 644 $oldlib'
80 old_postuninstall_cmds=
81
82 if test -n "$RANLIB"; then
83 case $host_os in
84 openbsd*)
85 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
86 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
87 ;;
88 *)
89 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
90 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
91 ;;
92 esac
93 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
94 fi
95
96 +_LT_CC_BASENAME([$compiler])
97 +
98 # Only perform the check for file, if the check method requires it
99 case $deplibs_check_method in
100 file_magic*)
101 @@ -240,11 +228,58 @@
102 # If no C compiler was specified, use CC.
103 LTCC=${LTCC-"$CC"}
104
105 +# If no C compiler flags were specified, use CFLAGS.
106 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
107 +
108 # Allow CC to be a program name with arguments.
109 compiler=$CC
110 ])# _LT_AC_SYS_COMPILER
111
112
113 +# _LT_CC_BASENAME(CC)
114 +# -------------------
115 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
116 +AC_DEFUN([_LT_CC_BASENAME],
117 +[for cc_temp in $1""; do
118 + case $cc_temp in
119 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 + \-*) ;;
122 + *) break;;
123 + esac
124 +done
125 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
126 +])
127 +
128 +
129 +# _LT_COMPILER_BOILERPLATE
130 +# ------------------------
131 +# Check for compiler boilerplate output or warnings with
132 +# the simple compiler test code.
133 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
134 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
135 +ac_outfile=conftest.$ac_objext
136 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
137 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
138 +_lt_compiler_boilerplate=`cat conftest.err`
139 +$rm conftest*
140 +])# _LT_COMPILER_BOILERPLATE
141 +
142 +
143 +# _LT_LINKER_BOILERPLATE
144 +# ----------------------
145 +# Check for linker boilerplate output or warnings with
146 +# the simple link test code.
147 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
148 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
149 +ac_outfile=conftest.$ac_objext
150 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
151 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
152 +_lt_linker_boilerplate=`cat conftest.err`
153 +$rm conftest*
154 +])# _LT_LINKER_BOILERPLATE
155 +
156 +
157 # _LT_AC_SYS_LIBPATH_AIX
158 # ----------------------
159 # Links a minimal program and checks the executable
160 @@ -254,12 +289,20 @@
161 # If we don't find anything, use the default library path according
162 # to the aix ld manual.
163 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
164 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
165 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
166 -}'`
167 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
168 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
169 +lt_aix_libpath_sed='
170 + /Import File Strings/,/^$/ {
171 + /^0/ {
172 + s/^0 *\(.*\)$/\1/
173 + p
174 + }
175 + }'
176 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
177 # Check for a 64-bit object if we didn't find anything.
178 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
179 -}'`; fi],[])
180 +if test -z "$aix_libpath"; then
181 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
182 +fi],[])
183 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
184 ])# _LT_AC_SYS_LIBPATH_AIX
185
186 @@ -317,15 +360,15 @@
187
188 # The HP-UX ksh and POSIX shell print the target directory to stdout
189 # if CDPATH is set.
190 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
191 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
192
193 if test -z "$ECHO"; then
194 if test "X${echo_test_string+set}" != Xset; then
195 # find a string as large as possible, as long as the shell can cope with it
196 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
197 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
198 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
199 - echo_test_string="`eval $cmd`" &&
200 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
201 + echo_test_string=`eval $cmd` &&
202 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
203 then
204 break
205 @@ -490,18 +533,21 @@
206 rm -rf conftest*
207 ;;
208
209 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
210 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
211 +s390*-*linux*|sparc*-*linux*)
212 # Find out which ABI we are using.
213 echo 'int i;' > conftest.$ac_ext
214 if AC_TRY_EVAL(ac_compile); then
215 - case "`/usr/bin/file conftest.o`" in
216 + case `/usr/bin/file conftest.o` in
217 *32-bit*)
218 - LINUX_64_MODE="32"
219 case $host in
220 + x86_64-*kfreebsd*-gnu)
221 + LD="${LD-ld} -m elf_i386_fbsd"
222 + ;;
223 x86_64-*linux*)
224 LD="${LD-ld} -m elf_i386"
225 ;;
226 - ppc64-*linux*)
227 + ppc64-*linux*|powerpc64-*linux*)
228 LD="${LD-ld} -m elf32ppclinux"
229 ;;
230 s390x-*linux*)
231 @@ -513,8 +559,10 @@
232 esac
233 ;;
234 *64-bit*)
235 - LINUX_64_MODE="64"
236 case $host in
237 + x86_64-*kfreebsd*-gnu)
238 + LD="${LD-ld} -m elf_x86_64_fbsd"
239 + ;;
240 x86_64-*linux*)
241 LD="${LD-ld} -m elf_x86_64"
242 ;;
243 @@ -547,6 +595,22 @@
244 CFLAGS="$SAVE_CFLAGS"
245 fi
246 ;;
247 +sparc*-*solaris*)
248 + # Find out which ABI we are using.
249 + echo 'int i;' > conftest.$ac_ext
250 + if AC_TRY_EVAL(ac_compile); then
251 + case `/usr/bin/file conftest.o` in
252 + *64-bit*)
253 + case $lt_cv_prog_gnu_ld in
254 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
255 + *) LD="${LD-ld} -64" ;;
256 + esac
257 + ;;
258 + esac
259 + fi
260 + rm -rf conftest*
261 + ;;
262 +
263 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
264 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
265 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
266 @@ -570,7 +634,7 @@
267 AC_CACHE_CHECK([$1], [$2],
268 [$2=no
269 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
270 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
271 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
272 lt_compiler_flag="$3"
273 # Insert the option either (1) after the last *FLAGS variable, or
274 # (2) before a word containing "conftest.", or (3) at the end.
275 @@ -578,7 +642,7 @@
276 # with a dollar sign (not a hyphen), so the echo should work correctly.
277 # The option is referenced via a variable to avoid confusing sed.
278 lt_compile=`echo "$ac_compile" | $SED \
279 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
280 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
281 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
282 -e 's:$: $lt_compiler_flag:'`
283 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
284 @@ -588,8 +652,10 @@
285 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
286 if (exit $ac_status) && test -s "$ac_outfile"; then
287 # The compiler can only warn and ignore the option if not recognized
288 - # So say no if there are warnings
289 - if test ! -s conftest.err; then
290 + # So say no if there are warnings other than the usual output.
291 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
292 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
293 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
294 $2=yes
295 fi
296 fi
297 @@ -609,17 +675,23 @@
298 # ------------------------------------------------------------
299 # Check whether the given compiler option works
300 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
301 -[AC_CACHE_CHECK([$1], [$2],
302 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
303 +AC_CACHE_CHECK([$1], [$2],
304 [$2=no
305 save_LDFLAGS="$LDFLAGS"
306 LDFLAGS="$LDFLAGS $3"
307 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
308 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
310 - # The compiler can only warn and ignore the option if not recognized
311 + # The linker can only warn and ignore the option if not recognized
312 # So say no if there are warnings
313 if test -s conftest.err; then
314 # Append any errors to the config.log.
315 cat conftest.err 1>&AS_MESSAGE_LOG_FD
316 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
317 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
318 + if diff conftest.exp conftest.er2 >/dev/null; then
319 + $2=yes
320 + fi
321 else
322 $2=yes
323 fi
324 @@ -643,7 +715,7 @@
325 AC_MSG_CHECKING([the maximum length of command line arguments])
326 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
327 i=0
328 - testring="ABCD"
329 + teststring="ABCD"
330
331 case $build_os in
332 msdosdjgpp*)
333 @@ -672,24 +744,77 @@
334 lt_cv_sys_max_cmd_len=8192;
335 ;;
336
337 - *)
338 - # If test is not a shell built-in, we'll probably end up computing a
339 - # maximum length that is only half of the actual maximum length, but
340 - # we can't tell.
341 - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
342 - = "XX$testring") >/dev/null 2>&1 &&
343 - new_result=`expr "X$testring" : ".*" 2>&1` &&
344 - lt_cv_sys_max_cmd_len=$new_result &&
345 - test $i != 17 # 1/2 MB should be enough
346 - do
347 - i=`expr $i + 1`
348 - testring=$testring$testring
349 - done
350 - testring=
351 - # Add a significant safety factor because C++ compilers can tack on massive
352 - # amounts of additional arguments before passing them to the linker.
353 - # It appears as though 1/2 is a usable value.
354 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
355 + amigaos*)
356 + # On AmigaOS with pdksh, this test takes hours, literally.
357 + # So we just punt and use a minimum line length of 8192.
358 + lt_cv_sys_max_cmd_len=8192;
359 + ;;
360 +
361 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
362 + # This has been around since 386BSD, at least. Likely further.
363 + if test -x /sbin/sysctl; then
364 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
365 + elif test -x /usr/sbin/sysctl; then
366 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
367 + else
368 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
369 + fi
370 + # And add a safety zone
371 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
372 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
373 + ;;
374 +
375 + interix*)
376 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
377 + lt_cv_sys_max_cmd_len=196608
378 + ;;
379 +
380 + osf*)
381 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
382 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
383 + # nice to cause kernel panics so lets avoid the loop below.
384 + # First set a reasonable default.
385 + lt_cv_sys_max_cmd_len=16384
386 + #
387 + if test -x /sbin/sysconfig; then
388 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
389 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
390 + esac
391 + fi
392 + ;;
393 + sco3.2v5*)
394 + lt_cv_sys_max_cmd_len=102400
395 + ;;
396 + sysv5* | sco5v6* | sysv4.2uw2*)
397 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
398 + if test -n "$kargmax"; then
399 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
400 + else
401 + lt_cv_sys_max_cmd_len=32768
402 + fi
403 + ;;
404 + *)
405 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
406 + if test -n "$lt_cv_sys_max_cmd_len"; then
407 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
408 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
409 + else
410 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
411 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
412 + = "XX$teststring") >/dev/null 2>&1 &&
413 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
414 + lt_cv_sys_max_cmd_len=$new_result &&
415 + test $i != 17 # 1/2 MB should be enough
416 + do
417 + i=`expr $i + 1`
418 + teststring=$teststring$teststring
419 + done
420 + teststring=
421 + # Add a significant safety factor because C++ compilers can tack on massive
422 + # amounts of additional arguments before passing them to the linker.
423 + # It appears as though 1/2 is a usable value.
424 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
425 + fi
426 ;;
427 esac
428 ])
429 @@ -702,7 +827,7 @@
430
431
432 # _LT_AC_CHECK_DLFCN
433 -# --------------------
434 +# ------------------
435 AC_DEFUN([_LT_AC_CHECK_DLFCN],
436 [AC_CHECK_HEADERS(dlfcn.h)dnl
437 ])# _LT_AC_CHECK_DLFCN
438 @@ -710,7 +835,7 @@
439
440 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
441 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
442 -# ------------------------------------------------------------------
443 +# ---------------------------------------------------------------------
444 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
445 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
446 if test "$cross_compiling" = yes; then :
447 @@ -776,17 +901,19 @@
448 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
449 /* dlclose (self); */
450 }
451 + else
452 + puts (dlerror ());
453
454 exit (status);
455 }]
456 EOF
457 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
458 - (./conftest; exit; ) 2>/dev/null
459 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
460 lt_status=$?
461 case x$lt_status in
462 x$lt_dlno_uscore) $1 ;;
463 x$lt_dlneed_uscore) $2 ;;
464 - x$lt_unknown|x*) $3 ;;
465 + x$lt_dlunknown|x*) $3 ;;
466 esac
467 else :
468 # compilation failed
469 @@ -798,7 +925,7 @@
470
471
472 # AC_LIBTOOL_DLOPEN_SELF
473 -# -------------------
474 +# ----------------------
475 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
476 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
477 if test "x$enable_dlopen" != xyes; then
478 @@ -835,7 +962,7 @@
479 lt_cv_dlopen_self=yes
480 ])
481 ;;
482 -
483 +
484 *)
485 AC_CHECK_FUNC([shl_load],
486 [lt_cv_dlopen="shl_load"],
487 @@ -869,7 +996,7 @@
488 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
489
490 save_LDFLAGS="$LDFLAGS"
491 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
492 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
493
494 save_LIBS="$LIBS"
495 LIBS="$lt_cv_dlopen_libs $LIBS"
496 @@ -882,7 +1009,7 @@
497 ])
498
499 if test "x$lt_cv_dlopen_self" = xyes; then
500 - LDFLAGS="$LDFLAGS $link_static_flag"
501 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
502 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
503 lt_cv_dlopen_self_static, [dnl
504 _LT_AC_TRY_DLOPEN_SELF(
505 @@ -914,7 +1041,8 @@
506 # ---------------------------------
507 # Check to see if options -c and -o are simultaneously supported by compiler
508 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
509 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
510 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
511 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
512 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
513 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
514 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
515 @@ -922,14 +1050,7 @@
516 mkdir conftest
517 cd conftest
518 mkdir out
519 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
520 -
521 - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
522 - # that will create temporary files in the current directory regardless of
523 - # the output directory. Thus, making CWD read-only will cause this test
524 - # to fail, enabling locking or at least warning the user not to do parallel
525 - # builds.
526 - chmod -w .
527 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
528
529 lt_compiler_flag="-o out/conftest2.$ac_objext"
530 # Insert the option either (1) after the last *FLAGS variable, or
531 @@ -937,7 +1058,7 @@
532 # Note that $ac_compile itself does not contain backslashes and begins
533 # with a dollar sign (not a hyphen), so the echo should work correctly.
534 lt_compile=`echo "$ac_compile" | $SED \
535 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
536 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
537 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
538 -e 's:$: $lt_compiler_flag:'`
539 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
540 @@ -949,13 +1070,18 @@
541 then
542 # The compiler can only warn and ignore the option if not recognized
543 # So say no if there are warnings
544 - if test ! -s out/conftest.err; then
545 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
546 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
547 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
548 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
549 fi
550 fi
551 - chmod u+w .
552 - $rm conftest* out/*
553 - rmdir out
554 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
555 + $rm conftest*
556 + # SGI C++ compiler will create directory out/ii_files/ for
557 + # template instantiation
558 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
559 + $rm out/* && rmdir out
560 cd ..
561 rmdir conftest
562 $rm conftest*
563 @@ -1014,8 +1140,8 @@
564 [AC_MSG_CHECKING([how to hardcode library paths into programs])
565 _LT_AC_TAGVAR(hardcode_action, $1)=
566 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
567 - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
568 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
569 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
570 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
571
572 # We can hardcode non-existant directories.
573 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
574 @@ -1064,6 +1190,7 @@
575 darwin*)
576 if test -n "$STRIP" ; then
577 striplib="$STRIP -x"
578 + old_striplib="$STRIP -S"
579 AC_MSG_RESULT([yes])
580 else
581 AC_MSG_RESULT([no])
582 @@ -1072,7 +1199,7 @@
583 *)
584 AC_MSG_RESULT([no])
585 ;;
586 - esac
587 + esac
588 fi
589 ])# AC_LIBTOOL_SYS_LIB_STRIP
590
591 @@ -1081,11 +1208,12 @@
592 # -----------------------------
593 # PORTME Fill in your ld.so characteristics
594 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
595 -[AC_MSG_CHECKING([dynamic linker characteristics])
596 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
597 +AC_MSG_CHECKING([dynamic linker characteristics])
598 library_names_spec=
599 libname_spec='lib$name'
600 soname_spec=
601 -shrext=".so"
602 +shrext_cmds=".so"
603 postinstall_cmds=
604 postuninstall_cmds=
605 finish_cmds=
606 @@ -1095,7 +1223,58 @@
607 version_type=none
608 dynamic_linker="$host_os ld.so"
609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
610 -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
611 +m4_if($1,[],[
612 +if test "$GCC" = yes; then
613 + case $host_os in
614 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
615 + *) lt_awk_arg="/^libraries:/" ;;
616 + esac
617 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
618 + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
619 + # if the path contains ";" then we assume it to be the separator
620 + # otherwise default to the standard path separator (i.e. ":") - it is
621 + # assumed that no part of a normal pathname contains ";" but that should
622 + # okay in the real world where ";" in dirpaths is itself problematic.
623 + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
624 + else
625 + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
626 + fi
627 + # Ok, now we have the path, separated by spaces, we can step through it
628 + # and add multilib dir if necessary.
629 + lt_tmp_lt_search_path_spec=
630 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
631 + for lt_sys_path in $lt_search_path_spec; do
632 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
633 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
634 + else
635 + test -d "$lt_sys_path" && \
636 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
637 + fi
638 + done
639 + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
640 +BEGIN {RS=" "; FS="/|\n";} {
641 + lt_foo="";
642 + lt_count=0;
643 + for (lt_i = NF; lt_i > 0; lt_i--) {
644 + if ($lt_i != "" && $lt_i != ".") {
645 + if ($lt_i == "..") {
646 + lt_count++;
647 + } else {
648 + if (lt_count == 0) {
649 + lt_foo="/" $lt_i lt_foo;
650 + } else {
651 + lt_count--;
652 + }
653 + }
654 + }
655 + }
656 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
657 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
658 +}'`
659 + sys_lib_search_path_spec=`echo $lt_search_path_spec`
660 +else
661 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
662 +fi])
663 need_lib_prefix=unknown
664 hardcode_into_libs=no
665
666 @@ -1160,7 +1339,7 @@
667 amigaos*)
668 library_names_spec='$libname.ixlibrary $libname.a'
669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
670 - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
671 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
672 ;;
673
674 beos*)
675 @@ -1169,7 +1348,7 @@
676 shlibpath_var=LIBRARY_PATH
677 ;;
678
679 -bsdi4*)
680 +bsdi[[45]]*)
681 version_type=linux
682 need_version=no
683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
684 @@ -1185,7 +1364,7 @@
685
686 cygwin* | mingw* | pw32*)
687 version_type=windows
688 - shrext=".dll"
689 + shrext_cmds=".dll"
690 need_version=no
691 need_lib_prefix=no
692
693 @@ -1197,7 +1376,8 @@
694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
695 dldir=$destdir/`dirname \$dlpath`~
696 test -d \$dldir || mkdir -p \$dldir~
697 - $install_prog $dir/$dlname \$dldir/$dlname'
698 + $install_prog $dir/$dlname \$dldir/$dlname~
699 + chmod a+x \$dldir/$dlname'
700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
701 dlpath=$dir/\$dldll~
702 $rm \$dlpath'
703 @@ -1227,7 +1407,7 @@
704 ;;
705 pw32*)
706 # pw32 DLLs use 'pw' prefix rather than 'lib'
707 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
708 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
709 ;;
710 esac
711 ;;
712 @@ -1250,13 +1430,9 @@
713 soname_spec='${libname}${release}${major}$shared_ext'
714 shlibpath_overrides_runpath=yes
715 shlibpath_var=DYLD_LIBRARY_PATH
716 - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
717 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
718 - if test "$GCC" = yes; then
719 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
720 - else
721 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
722 - fi
723 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
724 + m4_if([$1], [],[
725 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
727 ;;
728
729 @@ -1273,20 +1449,17 @@
730 dynamic_linker=no
731 ;;
732
733 -kfreebsd*-gnu*)
734 - version_type=linux
735 - need_lib_prefix=no
736 - need_version=no
737 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
738 - soname_spec='${libname}${release}${shared_ext}$major'
739 - shlibpath_var=LD_LIBRARY_PATH
740 - shlibpath_overrides_runpath=no
741 - hardcode_into_libs=yes
742 - dynamic_linker='GNU ld.so'
743 - ;;
744 -
745 -freebsd*)
746 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
747 +freebsd* | dragonfly*)
748 + # DragonFly does not have aout. When/if they implement a new
749 + # versioning mechanism, adjust this.
750 + if test -x /usr/bin/objformat; then
751 + objformat=`/usr/bin/objformat`
752 + else
753 + case $host_os in
754 + freebsd[[123]]*) objformat=aout ;;
755 + *) objformat=elf ;;
756 + esac
757 + fi
758 version_type=freebsd-$objformat
759 case $version_type in
760 freebsd-elf*)
761 @@ -1304,14 +1477,19 @@
762 freebsd2*)
763 shlibpath_overrides_runpath=yes
764 ;;
765 - freebsd3.[01]* | freebsdelf3.[01]*)
766 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
767 shlibpath_overrides_runpath=yes
768 hardcode_into_libs=yes
769 ;;
770 - *) # from 3.2 on
771 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
772 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
773 shlibpath_overrides_runpath=no
774 hardcode_into_libs=yes
775 ;;
776 + *) # from 4.6 on, and DragonFly
777 + shlibpath_overrides_runpath=yes
778 + hardcode_into_libs=yes
779 + ;;
780 esac
781 ;;
782
783 @@ -1331,9 +1509,9 @@
784 version_type=sunos
785 need_lib_prefix=no
786 need_version=no
787 - case "$host_cpu" in
788 + case $host_cpu in
789 ia64*)
790 - shrext='.so'
791 + shrext_cmds='.so'
792 hardcode_into_libs=yes
793 dynamic_linker="$host_os dld.so"
794 shlibpath_var=LD_LIBRARY_PATH
795 @@ -1348,7 +1526,7 @@
796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
797 ;;
798 hppa*64*)
799 - shrext='.sl'
800 + shrext_cmds='.sl'
801 hardcode_into_libs=yes
802 dynamic_linker="$host_os dld.sl"
803 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
804 @@ -1359,7 +1537,7 @@
805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
806 ;;
807 *)
808 - shrext='.sl'
809 + shrext_cmds='.sl'
810 dynamic_linker="$host_os dld.sl"
811 shlibpath_var=SHLIB_PATH
812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
813 @@ -1371,6 +1549,18 @@
814 postinstall_cmds='chmod 555 $lib'
815 ;;
816
817 +interix[[3-9]]*)
818 + version_type=linux
819 + need_lib_prefix=no
820 + need_version=no
821 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
822 + soname_spec='${libname}${release}${shared_ext}$major'
823 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
824 + shlibpath_var=LD_LIBRARY_PATH
825 + shlibpath_overrides_runpath=no
826 + hardcode_into_libs=yes
827 + ;;
828 +
829 irix5* | irix6* | nonstopux*)
830 case $host_os in
831 nonstopux*) version_type=nonstopux ;;
832 @@ -1414,29 +1604,26 @@
833 ;;
834
835 # This must be Linux ELF.
836 -linux*)
837 +linux* | k*bsd*-gnu)
838 version_type=linux
839 need_lib_prefix=no
840 need_version=no
841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
842 soname_spec='${libname}${release}${shared_ext}$major'
843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
844 - libsuff=
845 - if test "x$LINUX_64_MODE" = x64; then
846 - # Some platforms are per default 64-bit, so there's no /lib64
847 - if test -d /lib64 -a ! -h /lib64; then
848 - libsuff=64
849 - fi
850 - fi
851 shlibpath_var=LD_LIBRARY_PATH
852 shlibpath_overrides_runpath=no
853 - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
854 - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
855 # This implies no fast_install, which is unacceptable.
856 # Some rework will be needed to allow for fast_install
857 # before this can be enabled.
858 hardcode_into_libs=yes
859
860 + # Append ld.so.conf contents to the search path
861 + if test -f /etc/ld.so.conf; then
862 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
863 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
864 + fi
865 +
866 # We used to test for /lib/ld.so.1 and disable shared libraries on
867 # powerpc, because MkLinux only supported shared libraries with the
868 # GNU dynamic linker. Since this was broken with cross compilers,
869 @@ -1446,6 +1633,18 @@
870 dynamic_linker='GNU/Linux ld.so'
871 ;;
872
873 +netbsdelf*-gnu)
874 + version_type=linux
875 + need_lib_prefix=no
876 + need_version=no
877 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
878 + soname_spec='${libname}${release}${shared_ext}$major'
879 + shlibpath_var=LD_LIBRARY_PATH
880 + shlibpath_overrides_runpath=no
881 + hardcode_into_libs=yes
882 + dynamic_linker='NetBSD ld.elf_so'
883 + ;;
884 +
885 netbsd*)
886 version_type=sunos
887 need_lib_prefix=no
888 @@ -1455,7 +1654,7 @@
889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
890 dynamic_linker='NetBSD (a.out) ld.so'
891 else
892 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
893 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
894 soname_spec='${libname}${release}${shared_ext}$major'
895 dynamic_linker='NetBSD ld.elf_so'
896 fi
897 @@ -1483,8 +1682,13 @@
898
899 openbsd*)
900 version_type=sunos
901 + sys_lib_dlsearch_path_spec="/usr/lib"
902 need_lib_prefix=no
903 - need_version=no
904 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
905 + case $host_os in
906 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
907 + *) need_version=no ;;
908 + esac
909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
911 shlibpath_var=LD_LIBRARY_PATH
912 @@ -1504,7 +1708,7 @@
913
914 os2*)
915 libname_spec='$name'
916 - shrext=".dll"
917 + shrext_cmds=".dll"
918 need_lib_prefix=no
919 library_names_spec='$libname${shared_ext} $libname.a'
920 dynamic_linker='OS/2 ld.exe'
921 @@ -1522,11 +1726,8 @@
922 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
923 ;;
924
925 -sco3.2v5*)
926 - version_type=osf
927 - soname_spec='${libname}${release}${shared_ext}$major'
928 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
929 - shlibpath_var=LD_LIBRARY_PATH
930 +rdos*)
931 + dynamic_linker=no
932 ;;
933
934 solaris*)
935 @@ -1554,7 +1755,7 @@
936 need_version=yes
937 ;;
938
939 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
940 +sysv4 | sysv4.3*)
941 version_type=linux
942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
943 soname_spec='${libname}${release}${shared_ext}$major'
944 @@ -1587,6 +1788,29 @@
945 fi
946 ;;
947
948 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
949 + version_type=freebsd-elf
950 + need_lib_prefix=no
951 + need_version=no
952 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
953 + soname_spec='${libname}${release}${shared_ext}$major'
954 + shlibpath_var=LD_LIBRARY_PATH
955 + hardcode_into_libs=yes
956 + if test "$with_gnu_ld" = yes; then
957 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
958 + shlibpath_overrides_runpath=no
959 + else
960 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
961 + shlibpath_overrides_runpath=yes
962 + case $host_os in
963 + sco3.2v5*)
964 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
965 + ;;
966 + esac
967 + fi
968 + sys_lib_dlsearch_path_spec='/usr/lib'
969 + ;;
970 +
971 uts4*)
972 version_type=linux
973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
974 @@ -1600,13 +1824,19 @@
975 esac
976 AC_MSG_RESULT([$dynamic_linker])
977 test "$dynamic_linker" = no && can_build_shared=no
978 +
979 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
980 +if test "$GCC" = yes; then
981 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
982 +fi
983 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
984
985
986 # _LT_AC_TAGCONFIG
987 # ----------------
988 AC_DEFUN([_LT_AC_TAGCONFIG],
989 -[AC_ARG_WITH([tags],
990 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
991 +AC_ARG_WITH([tags],
992 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
993 [include additional configurations @<:@automatic@:>@])],
994 [tagnames="$withval"])
995 @@ -1624,6 +1854,9 @@
996 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
997 fi
998 fi
999 + if test -z "$LTCFLAGS"; then
1000 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1001 + fi
1002
1003 # Extract list of available tagged configurations in $ofile.
1004 # Note that this assumes the entire list is on one line.
1005 @@ -1650,7 +1883,9 @@
1006
1007 case $tagname in
1008 CXX)
1009 - if test -n "$CXX" && test "X$CXX" != "Xno"; then
1010 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1011 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1012 + (test "X$CXX" != "Xg++"))) ; then
1013 AC_LIBTOOL_LANG_CXX_CONFIG
1014 else
1015 tagname=""
1016 @@ -1712,7 +1947,7 @@
1017
1018 # AC_LIBTOOL_WIN32_DLL
1019 # --------------------
1020 -# declare package support for building win32 dll's
1021 +# declare package support for building win32 DLLs
1022 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1023 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1024 ])# AC_LIBTOOL_WIN32_DLL
1025 @@ -1750,7 +1985,7 @@
1026
1027 # AC_DISABLE_SHARED
1028 # -----------------
1029 -#- set the default shared flag to --disable-shared
1030 +# set the default shared flag to --disable-shared
1031 AC_DEFUN([AC_DISABLE_SHARED],
1032 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1033 AC_ENABLE_SHARED(no)
1034 @@ -1862,7 +2097,7 @@
1035
1036 # AC_PATH_TOOL_PREFIX
1037 # -------------------
1038 -# find a file program which can recognise shared library
1039 +# find a file program which can recognize shared library
1040 AC_DEFUN([AC_PATH_TOOL_PREFIX],
1041 [AC_REQUIRE([AC_PROG_EGREP])dnl
1042 AC_MSG_CHECKING([for $1])
1043 @@ -1886,7 +2121,7 @@
1044 if test -n "$file_magic_test_file"; then
1045 case $deplibs_check_method in
1046 "file_magic "*)
1047 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1048 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1050 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1051 $EGREP "$file_magic_regex" > /dev/null; then
1052 @@ -1925,7 +2160,7 @@
1053
1054 # AC_PATH_MAGIC
1055 # -------------
1056 -# find a file program which can recognise a shared library
1057 +# find a file program which can recognize a shared library
1058 AC_DEFUN([AC_PATH_MAGIC],
1059 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1060 if test -z "$lt_cv_path_MAGIC_CMD"; then
1061 @@ -1996,7 +2231,7 @@
1062 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1063 lt_cv_path_LD="$ac_dir/$ac_prog"
1064 # Check to see if the program is GNU ld. I'd rather use --version,
1065 - # but apparently some GNU ld's only accept -v.
1066 + # but apparently some variants of GNU ld only accept -v.
1067 # Break only if it was the GNU/non-GNU ld that we prefer.
1068 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1069 *GNU* | *'with BFD'*)
1070 @@ -2028,7 +2263,7 @@
1071 AC_DEFUN([AC_PROG_LD_GNU],
1072 [AC_REQUIRE([AC_PROG_EGREP])dnl
1073 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1074 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1075 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
1076 case `$LD -v 2>&1 </dev/null` in
1077 *GNU* | *'with BFD'*)
1078 lt_cv_prog_gnu_ld=yes
1079 @@ -2055,6 +2290,15 @@
1080 *) reload_flag=" $reload_flag" ;;
1081 esac
1082 reload_cmds='$LD$reload_flag -o $output$reload_objs'
1083 +case $host_os in
1084 + darwin*)
1085 + if test "$GCC" = yes; then
1086 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1087 + else
1088 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
1089 + fi
1090 + ;;
1091 +esac
1092 ])# AC_PROG_LD_RELOAD_FLAG
1093
1094
1095 @@ -2063,7 +2307,7 @@
1096 # how to check for library dependencies
1097 # -- PORTME fill in with the dynamic library characteristics
1098 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
1099 -[AC_CACHE_CHECK([how to recognise dependent libraries],
1100 +[AC_CACHE_CHECK([how to recognize dependent libraries],
1101 lt_cv_deplibs_check_method,
1102 [lt_cv_file_magic_cmd='$MAGIC_CMD'
1103 lt_cv_file_magic_test_file=
1104 @@ -2088,44 +2332,42 @@
1105 lt_cv_deplibs_check_method=pass_all
1106 ;;
1107
1108 -bsdi4*)
1109 +bsdi[[45]]*)
1110 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1111 lt_cv_file_magic_cmd='/usr/bin/file -L'
1112 lt_cv_file_magic_test_file=/shlib/libc.so
1113 ;;
1114
1115 cygwin*)
1116 - lt_cv_deplibs_check_method=pass_all
1117 + # func_win32_libid is a shell function defined in ltmain.sh
1118 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1119 + lt_cv_file_magic_cmd='func_win32_libid'
1120 ;;
1121 -
1122 +
1123 mingw* | pw32*)
1124 - # win32_libid is a shell function defined in ltmain.sh
1125 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1126 - lt_cv_file_magic_cmd='win32_libid'
1127 + # Base MSYS/MinGW do not provide the 'file' command needed by
1128 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
1129 + # unless we find 'file', for example because we are cross-compiling.
1130 + if ( file / ) >/dev/null 2>&1; then
1131 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1132 + lt_cv_file_magic_cmd='func_win32_libid'
1133 + else
1134 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1135 + lt_cv_file_magic_cmd='$OBJDUMP -f'
1136 + fi
1137 ;;
1138
1139 darwin* | rhapsody*)
1140 - # this will be overwritten by pass_all, but leave it in just in case
1141 - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1142 - lt_cv_file_magic_cmd='/usr/bin/file -L'
1143 - case "$host_os" in
1144 - rhapsody* | darwin1.[[012]])
1145 - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
1146 - ;;
1147 - *) # Darwin 1.3 on
1148 - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1149 - ;;
1150 - esac
1151 lt_cv_deplibs_check_method=pass_all
1152 ;;
1153
1154 -freebsd* | kfreebsd*-gnu)
1155 +freebsd* | dragonfly*)
1156 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1157 case $host_cpu in
1158 i*86 )
1159 # Not sure whether the presence of OpenBSD here was a mistake.
1160 # Let's accept both of them until this is cleared up.
1161 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
1162 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1163 lt_cv_file_magic_cmd=/usr/bin/file
1164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1165 ;;
1166 @@ -2141,7 +2383,7 @@
1167
1168 hpux10.20* | hpux11*)
1169 lt_cv_file_magic_cmd=/usr/bin/file
1170 - case "$host_cpu" in
1171 + case $host_cpu in
1172 ia64*)
1173 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
1174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1175 @@ -2157,43 +2399,27 @@
1176 esac
1177 ;;
1178
1179 +interix[[3-9]]*)
1180 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1181 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
1182 + ;;
1183 +
1184 irix5* | irix6* | nonstopux*)
1185 - case $host_os in
1186 - irix5* | nonstopux*)
1187 - # this will be overridden with pass_all, but let us keep it just in case
1188 - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1189 - ;;
1190 - *)
1191 - case $LD in
1192 - *-32|*"-32 ") libmagic=32-bit;;
1193 - *-n32|*"-n32 ") libmagic=N32;;
1194 - *-64|*"-64 ") libmagic=64-bit;;
1195 - *) libmagic=never-match;;
1196 - esac
1197 - # this will be overridden with pass_all, but let us keep it just in case
1198 - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
1199 - ;;
1200 + case $LD in
1201 + *-32|*"-32 ") libmagic=32-bit;;
1202 + *-n32|*"-n32 ") libmagic=N32;;
1203 + *-64|*"-64 ") libmagic=64-bit;;
1204 + *) libmagic=never-match;;
1205 esac
1206 - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1207 lt_cv_deplibs_check_method=pass_all
1208 ;;
1209
1210 # This must be Linux ELF.
1211 -linux*)
1212 - case $host_cpu in
1213 - alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
1214 - lt_cv_deplibs_check_method=pass_all ;;
1215 - # the debian people say, arm and glibc 2.3.1 works for them with pass_all
1216 - arm* )
1217 - lt_cv_deplibs_check_method=pass_all ;;
1218 - *)
1219 - # glibc up to 2.1.1 does not perform some relocations on ARM
1220 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
1221 - esac
1222 - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1223 +linux* | k*bsd*-gnu)
1224 + lt_cv_deplibs_check_method=pass_all
1225 ;;
1226
1227 -netbsd*)
1228 +netbsd* | netbsdelf*-gnu)
1229 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1230 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1231 else
1232 @@ -2212,32 +2438,26 @@
1233 ;;
1234
1235 openbsd*)
1236 - lt_cv_file_magic_cmd=/usr/bin/file
1237 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1238 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1239 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
1240 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
1241 else
1242 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1243 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1244 fi
1245 ;;
1246
1247 osf3* | osf4* | osf5*)
1248 - # this will be overridden with pass_all, but let us keep it just in case
1249 - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1250 - lt_cv_file_magic_test_file=/shlib/libc.so
1251 lt_cv_deplibs_check_method=pass_all
1252 ;;
1253
1254 -sco3.2v5*)
1255 +rdos*)
1256 lt_cv_deplibs_check_method=pass_all
1257 ;;
1258
1259 solaris*)
1260 lt_cv_deplibs_check_method=pass_all
1261 - lt_cv_file_magic_test_file=/lib/libc.so
1262 ;;
1263
1264 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1265 +sysv4 | sysv4.3*)
1266 case $host_vendor in
1267 motorola)
1268 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
1269 @@ -2258,10 +2478,13 @@
1270 siemens)
1271 lt_cv_deplibs_check_method=pass_all
1272 ;;
1273 + pc)
1274 + lt_cv_deplibs_check_method=pass_all
1275 + ;;
1276 esac
1277 ;;
1278
1279 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
1280 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1281 lt_cv_deplibs_check_method=pass_all
1282 ;;
1283 esac
1284 @@ -2281,36 +2504,43 @@
1285 # Let the user override the test.
1286 lt_cv_path_NM="$NM"
1287 else
1288 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1289 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1290 - IFS="$lt_save_ifs"
1291 - test -z "$ac_dir" && ac_dir=.
1292 - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
1293 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1294 - # Check to see if the nm accepts a BSD-compat flag.
1295 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1296 - # nm: unknown option "B" ignored
1297 - # Tru64's nm complains that /dev/null is an invalid object file
1298 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1299 - */dev/null* | *'Invalid file or object type'*)
1300 - lt_cv_path_NM="$tmp_nm -B"
1301 - break
1302 - ;;
1303 - *)
1304 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1305 - */dev/null*)
1306 - lt_cv_path_NM="$tmp_nm -p"
1307 + lt_nm_to_check="${ac_tool_prefix}nm"
1308 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1309 + lt_nm_to_check="$lt_nm_to_check nm"
1310 + fi
1311 + for lt_tmp_nm in $lt_nm_to_check; do
1312 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1313 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1314 + IFS="$lt_save_ifs"
1315 + test -z "$ac_dir" && ac_dir=.
1316 + tmp_nm="$ac_dir/$lt_tmp_nm"
1317 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1318 + # Check to see if the nm accepts a BSD-compat flag.
1319 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1320 + # nm: unknown option "B" ignored
1321 + # Tru64's nm complains that /dev/null is an invalid object file
1322 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1323 + */dev/null* | *'Invalid file or object type'*)
1324 + lt_cv_path_NM="$tmp_nm -B"
1325 break
1326 ;;
1327 *)
1328 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1329 - continue # so that we can try to find one that supports BSD flags
1330 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1331 + */dev/null*)
1332 + lt_cv_path_NM="$tmp_nm -p"
1333 + break
1334 + ;;
1335 + *)
1336 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1337 + continue # so that we can try to find one that supports BSD flags
1338 + ;;
1339 + esac
1340 ;;
1341 esac
1342 - esac
1343 - fi
1344 + fi
1345 + done
1346 + IFS="$lt_save_ifs"
1347 done
1348 - IFS="$lt_save_ifs"
1349 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1350 fi])
1351 NM="$lt_cv_path_NM"
1352 @@ -2342,13 +2572,13 @@
1353 # -----------------------------------
1354 # sets LIBLTDL to the link flags for the libltdl convenience library and
1355 # LTDLINCL to the include flags for the libltdl header and adds
1356 -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
1357 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
1358 -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
1359 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
1360 -# '${top_srcdir}/' (note the single quotes!). If your package is not
1361 -# flat and you're not using automake, define top_builddir and
1362 -# top_srcdir appropriately in the Makefiles.
1363 +# --enable-ltdl-convenience to the configure arguments. Note that
1364 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
1365 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
1366 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1367 +# (note the single quotes!). If your package is not flat and you're not
1368 +# using automake, define top_builddir and top_srcdir appropriately in
1369 +# the Makefiles.
1370 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1371 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1372 case $enable_ltdl_convenience in
1373 @@ -2367,13 +2597,13 @@
1374 # -----------------------------------
1375 # sets LIBLTDL to the link flags for the libltdl installable library and
1376 # LTDLINCL to the include flags for the libltdl header and adds
1377 -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
1378 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
1379 -# DIRECTORY is not provided and an installed libltdl is not found, it is
1380 -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
1381 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
1382 -# quotes!). If your package is not flat and you're not using automake,
1383 -# define top_builddir and top_srcdir appropriately in the Makefiles.
1384 +# --enable-ltdl-install to the configure arguments. Note that
1385 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
1386 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
1387 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1388 +# '${top_srcdir}/' (note the single quotes!). If your package is not
1389 +# flat and you're not using automake, define top_builddir and top_srcdir
1390 +# appropriately in the Makefiles.
1391 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1392 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
1393 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1394 @@ -2411,10 +2641,21 @@
1395 # ---------------
1396 AC_DEFUN([_LT_AC_LANG_CXX],
1397 [AC_REQUIRE([AC_PROG_CXX])
1398 -AC_REQUIRE([AC_PROG_CXXCPP])
1399 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1400 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
1401 ])# _LT_AC_LANG_CXX
1402
1403 +# _LT_AC_PROG_CXXCPP
1404 +# ------------------
1405 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
1406 +[
1407 +AC_REQUIRE([AC_PROG_CXX])
1408 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1409 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1410 + (test "X$CXX" != "Xg++"))) ; then
1411 + AC_PROG_CXXCPP
1412 +fi
1413 +])# _LT_AC_PROG_CXXCPP
1414
1415 # AC_LIBTOOL_F77
1416 # --------------
1417 @@ -2454,7 +2695,7 @@
1418
1419
1420 # AC_LIBTOOL_RC
1421 -# --------------
1422 +# -------------
1423 # enable support for Windows resource files
1424 AC_DEFUN([AC_LIBTOOL_RC],
1425 [AC_REQUIRE([LT_AC_PROG_RC])
1426 @@ -2480,43 +2721,16 @@
1427 _LT_AC_TAGVAR(objext, $1)=$objext
1428
1429 # Code to be used in simple compile tests
1430 -lt_simple_compile_test_code="int some_variable = 0;\n"
1431 +lt_simple_compile_test_code="int some_variable = 0;"
1432
1433 # Code to be used in simple link tests
1434 -lt_simple_link_test_code='int main(){return(0);}\n'
1435 +lt_simple_link_test_code='int main(){return(0);}'
1436
1437 _LT_AC_SYS_COMPILER
1438
1439 -#
1440 -# Check for any special shared library compilation flags.
1441 -#
1442 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
1443 -if test "$GCC" = no; then
1444 - case $host_os in
1445 - sco3.2v5*)
1446 - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
1447 - ;;
1448 - esac
1449 -fi
1450 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
1451 - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
1452 - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then :
1453 - else
1454 - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
1455 - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
1456 - fi
1457 -fi
1458 -
1459 -
1460 -#
1461 -# Check to make sure the static flag actually works.
1462 -#
1463 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
1464 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1465 - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
1466 - [],
1467 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1468 -
1469 +# save warnings/boilerplate of simple test code
1470 +_LT_COMPILER_BOILERPLATE
1471 +_LT_LINKER_BOILERPLATE
1472
1473 ## CAVEAT EMPTOR:
1474 ## There is no encapsulation within the following macros, do not change
1475 @@ -2530,9 +2744,9 @@
1476 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1477 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1478 AC_LIBTOOL_SYS_LIB_STRIP
1479 -AC_LIBTOOL_DLOPEN_SELF($1)
1480 +AC_LIBTOOL_DLOPEN_SELF
1481
1482 -# Report which librarie types wil actually be built
1483 +# Report which library types will actually be built
1484 AC_MSG_CHECKING([if libtool supports shared libraries])
1485 AC_MSG_RESULT([$can_build_shared])
1486
1487 @@ -2541,7 +2755,7 @@
1488
1489 # On AIX, shared libraries and static libraries use the same namespace, and
1490 # are all built from PIC.
1491 -case "$host_os" in
1492 +case $host_os in
1493 aix3*)
1494 test "$enable_shared" = yes && enable_static=no
1495 if test -n "$RANLIB"; then
1496 @@ -2550,48 +2764,11 @@
1497 fi
1498 ;;
1499
1500 -aix4*)
1501 +aix4* | aix5*)
1502 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1503 test "$enable_shared" = yes && enable_static=no
1504 fi
1505 - ;;
1506 - darwin* | rhapsody*)
1507 - if test "$GCC" = yes; then
1508 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1509 - case "$host_os" in
1510 - rhapsody* | darwin1.[[012]])
1511 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
1512 - ;;
1513 - *) # Darwin 1.3 on
1514 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1515 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
1516 - else
1517 - case ${MACOSX_DEPLOYMENT_TARGET} in
1518 - 10.[012])
1519 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
1520 - ;;
1521 - 10.*)
1522 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
1523 - ;;
1524 - esac
1525 - fi
1526 - ;;
1527 - esac
1528 - output_verbose_link_cmd='echo'
1529 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
1530 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
1531 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1532 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1533 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1534 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1535 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1536 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1537 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1538 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1539 - else
1540 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1541 - fi
1542 - ;;
1543 + ;;
1544 esac
1545 AC_MSG_RESULT([$enable_shared])
1546
1547 @@ -2616,7 +2793,7 @@
1548 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
1549 [AC_LANG_PUSH(C++)
1550 AC_REQUIRE([AC_PROG_CXX])
1551 -AC_REQUIRE([AC_PROG_CXXCPP])
1552 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1553
1554 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1555 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
1556 @@ -2628,6 +2805,7 @@
1557 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1558 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1559 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1560 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1561 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
1562 _LT_AC_TAGVAR(module_cmds, $1)=
1563 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
1564 @@ -2645,21 +2823,25 @@
1565 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
1566
1567 # Source file extension for C++ test sources.
1568 -ac_ext=cc
1569 +ac_ext=cpp
1570
1571 # Object file extension for compiled C++ test sources.
1572 objext=o
1573 _LT_AC_TAGVAR(objext, $1)=$objext
1574
1575 # Code to be used in simple compile tests
1576 -lt_simple_compile_test_code="int some_variable = 0;\n"
1577 +lt_simple_compile_test_code="int some_variable = 0;"
1578
1579 # Code to be used in simple link tests
1580 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
1581 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
1582
1583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1584 _LT_AC_SYS_COMPILER
1585
1586 +# save warnings/boilerplate of simple test code
1587 +_LT_COMPILER_BOILERPLATE
1588 +_LT_LINKER_BOILERPLATE
1589 +
1590 # Allow CC to be a program name with arguments.
1591 lt_save_CC=$CC
1592 lt_save_LD=$LD
1593 @@ -2670,18 +2852,18 @@
1594 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1595 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1596 else
1597 - unset lt_cv_prog_gnu_ld
1598 + $as_unset lt_cv_prog_gnu_ld
1599 fi
1600 if test -n "${lt_cv_path_LDCXX+set}"; then
1601 lt_cv_path_LD=$lt_cv_path_LDCXX
1602 else
1603 - unset lt_cv_path_LD
1604 + $as_unset lt_cv_path_LD
1605 fi
1606 test -z "${LDCXX+set}" || LD=$LDCXX
1607 CC=${CXX-"c++"}
1608 compiler=$CC
1609 _LT_AC_TAGVAR(compiler, $1)=$CC
1610 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1611 +_LT_CC_BASENAME([$compiler])
1612
1613 # We don't want -fno-exception wen compiling C++ code, so set the
1614 # no_builtin_flag separately
1615 @@ -2699,8 +2881,8 @@
1616 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1617 # archiving commands below assume that GNU ld is being used.
1618 if test "$with_gnu_ld" = yes; then
1619 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
1620 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1621 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1622 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1623
1624 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1625 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1626 @@ -2726,7 +2908,7 @@
1627 # linker, instead of GNU ld. If possible, this setting should
1628 # overridden to take advantage of the native linker features on
1629 # the platform it is being used on.
1630 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
1631 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1632 fi
1633
1634 # Commands to make compiler produce verbose output that lists
1635 @@ -2756,13 +2938,28 @@
1636 exp_sym_flag='-Bexport'
1637 no_entry_flag=""
1638 else
1639 - # KDE requires run time linking. Make it the default.
1640 - aix_use_runtimelinking=yes
1641 - exp_sym_flag='-bexport'
1642 - no_entry_flag='-bnoentry'
1643 - fi
1644 + aix_use_runtimelinking=no
1645
1646 - # When large executables or shared objects are built, AIX ld can
1647 + # Test if we are trying to use run time linking or normal
1648 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1649 + # need to do runtime linking.
1650 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1651 + for ld_flag in $LDFLAGS; do
1652 + case $ld_flag in
1653 + *-brtl*)
1654 + aix_use_runtimelinking=yes
1655 + break
1656 + ;;
1657 + esac
1658 + done
1659 + ;;
1660 + esac
1661 +
1662 + exp_sym_flag='-bexport'
1663 + no_entry_flag='-bnoentry'
1664 + fi
1665 +
1666 + # When large executables or shared objects are built, AIX ld can
1667 # have problems creating the table of contents. If linking a library
1668 # or program results in "error TOC overflow" add -mminimal-toc to
1669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1670 @@ -2774,7 +2971,7 @@
1671 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1672
1673 if test "$GXX" = yes; then
1674 - case $host_os in aix4.[012]|aix4.[012].*)
1675 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
1676 # We only want to do this on AIX 4.2 and lower, the check
1677 # below for broken collect2 doesn't work under 4.3+
1678 collect2name=`${CC} -print-prog-name=collect2`
1679 @@ -2782,7 +2979,7 @@
1680 strings "$collect2name" | grep resolve_lib_name >/dev/null
1681 then
1682 # We have reworked collect2
1683 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1684 + :
1685 else
1686 # We have old collect2
1687 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1688 @@ -2793,8 +2990,12 @@
1689 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1690 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1691 fi
1692 + ;;
1693 esac
1694 shared_flag='-shared'
1695 + if test "$aix_use_runtimelinking" = yes; then
1696 + shared_flag="$shared_flag "'${wl}-G'
1697 + fi
1698 else
1699 # not using gcc
1700 if test "$host_cpu" = ia64; then
1701 @@ -2803,15 +3004,16 @@
1702 shared_flag='-G'
1703 else
1704 if test "$aix_use_runtimelinking" = yes; then
1705 - shared_flag='-qmkshrobj ${wl}-G'
1706 + shared_flag='${wl}-G'
1707 else
1708 - shared_flag='-qmkshrobj'
1709 + shared_flag='${wl}-bM:SRE'
1710 fi
1711 fi
1712 fi
1713
1714 - # Let the compiler handle the export list.
1715 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
1716 + # It seems that -bexpall does not export symbols beginning with
1717 + # underscore (_), so it is better to generate a list of symbols to export.
1718 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1719 if test "$aix_use_runtimelinking" = yes; then
1720 # Warning - without using the other runtime loading flags (-brtl),
1721 # -berok will link without error, but may produce a broken library.
1722 @@ -2820,13 +3022,12 @@
1723 _LT_AC_SYS_LIBPATH_AIX
1724 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1725
1726 - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
1727 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1728 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1729 else
1730 if test "$host_cpu" = ia64; then
1731 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1732 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1733 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1734 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1735 else
1736 # Determine the default libpath from the value encoded in an empty executable.
1737 _LT_AC_SYS_LIBPATH_AIX
1738 @@ -2835,16 +3036,26 @@
1739 # -berok will link without error, but may produce a broken library.
1740 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1741 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1742 - # -bexpall does not export symbols beginning with underscore (_)
1743 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1744 # Exported symbols can be pulled into shared objects from archives
1745 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1746 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1747 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1748 - # This is similar to how AIX traditionally builds it's shared libraries.
1749 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1750 + # This is similar to how AIX traditionally builds its shared libraries.
1751 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1752 fi
1753 fi
1754 ;;
1755 +
1756 + beos*)
1757 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1758 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1759 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1760 + # support --undefined. This deserves some investigation. FIXME
1761 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1762 + else
1763 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1764 + fi
1765 + ;;
1766 +
1767 chorus*)
1768 case $cc_basename in
1769 *)
1770 @@ -2858,12 +3069,12 @@
1771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
1772 # as there is no search path for DLLs.
1773 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1774 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
1775 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1776 _LT_AC_TAGVAR(always_export_symbols, $1)=no
1777 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1778
1779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1780 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1781 + _LT_AC_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'
1782 # If the export-symbols file already is a .def file (1st line
1783 # is EXPORTS), use it as is; otherwise, prepend...
1784 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1785 @@ -2872,70 +3083,81 @@
1786 echo EXPORTS > $output_objdir/$soname.def;
1787 cat $export_symbols >> $output_objdir/$soname.def;
1788 fi~
1789 - $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1790 + $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'
1791 else
1792 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1793 fi
1794 ;;
1795 + darwin* | rhapsody*)
1796 + case $host_os in
1797 + rhapsody* | darwin1.[[012]])
1798 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
1799 + ;;
1800 + *) # Darwin 1.3 on
1801 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1802 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1803 + else
1804 + case ${MACOSX_DEPLOYMENT_TARGET} in
1805 + 10.[[012]])
1806 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1807 + ;;
1808 + 10.*)
1809 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
1810 + ;;
1811 + esac
1812 + fi
1813 + ;;
1814 + esac
1815 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1816 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
1817 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1818 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1819 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1820 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1821
1822 - darwin* | rhapsody*)
1823 - if test "$GXX" = yes; then
1824 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1825 - case "$host_os" in
1826 - rhapsody* | darwin1.[[012]])
1827 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
1828 - ;;
1829 - *) # Darwin 1.3 on
1830 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1831 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
1832 + if test "$GXX" = yes ; then
1833 + lt_int_apple_cc_single_mod=no
1834 + output_verbose_link_cmd='echo'
1835 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
1836 + lt_int_apple_cc_single_mod=yes
1837 + fi
1838 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1839 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1840 else
1841 - case ${MACOSX_DEPLOYMENT_TARGET} in
1842 - 10.[012])
1843 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
1844 - ;;
1845 - 10.*)
1846 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
1847 - ;;
1848 - esac
1849 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1850 + fi
1851 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1852 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1853 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1854 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1855 + else
1856 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1857 + fi
1858 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1859 + else
1860 + case $cc_basename in
1861 + xlc*)
1862 + output_verbose_link_cmd='echo'
1863 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1864 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1865 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1866 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1867 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1868 + ;;
1869 + *)
1870 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1871 + ;;
1872 + esac
1873 fi
1874 - ;;
1875 - esac
1876 - lt_int_apple_cc_single_mod=no
1877 - output_verbose_link_cmd='echo'
1878 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
1879 - lt_int_apple_cc_single_mod=yes
1880 - fi
1881 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1882 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
1883 - else
1884 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
1885 - fi
1886 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
1887 -
1888 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1889 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1890 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1891 - else
1892 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1893 - fi
1894 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1895 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1896 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1897 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1898 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1899 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1900 - else
1901 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1902 - fi
1903 - ;;
1904 + ;;
1905
1906 dgux*)
1907 case $cc_basename in
1908 - ec++)
1909 + ec++*)
1910 # FIXME: insert proper C++ library support
1911 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1912 ;;
1913 - ghcx)
1914 + ghcx*)
1915 # Green Hills C++ Compiler
1916 # FIXME: insert proper C++ library support
1917 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1918 @@ -2946,14 +3168,14 @@
1919 ;;
1920 esac
1921 ;;
1922 - freebsd[12]*)
1923 + freebsd[[12]]*)
1924 # C++ shared libraries reported to be fairly broken before switch to ELF
1925 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1926 ;;
1927 freebsd-elf*)
1928 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1929 ;;
1930 - freebsd* | kfreebsd*-gnu)
1931 + freebsd* | dragonfly*)
1932 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1933 # conventions
1934 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1935 @@ -2970,12 +3192,12 @@
1936 # location of the library.
1937
1938 case $cc_basename in
1939 - CC)
1940 + CC*)
1941 # FIXME: insert proper C++ library support
1942 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1943 ;;
1944 - aCC)
1945 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1946 + aCC*)
1947 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${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'
1948 # Commands to make compiler produce verbose output that lists
1949 # what "hidden" libraries, object files and flags are used when
1950 # linking a shared library.
1951 @@ -2984,11 +3206,11 @@
1952 # explicitly linking system object files so we need to strip them
1953 # from the output so that they don't get included in the library
1954 # dependencies.
1955 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1956 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1957 ;;
1958 *)
1959 if test "$GXX" = yes; then
1960 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1961 + _LT_AC_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'
1962 else
1963 # FIXME: insert proper C++ library support
1964 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1965 @@ -2998,33 +3220,20 @@
1966 ;;
1967 hpux10*|hpux11*)
1968 if test $with_gnu_ld = no; then
1969 - case "$host_cpu" in
1970 - hppa*64*)
1971 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1972 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1973 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1974 - ;;
1975 - ia64*)
1976 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1977 - ;;
1978 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1979 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1980 +
1981 + case $host_cpu in
1982 + hppa*64*|ia64*) ;;
1983 *)
1984 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1985 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1986 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1987 ;;
1988 esac
1989 fi
1990 - case "$host_cpu" in
1991 - hppa*64*)
1992 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1993 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1994 - ;;
1995 - ia64*)
1996 + case $host_cpu in
1997 + hppa*64*|ia64*)
1998 _LT_AC_TAGVAR(hardcode_direct, $1)=no
1999 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2000 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2001 - # but as the default
2002 - # location of the library.
2003 ;;
2004 *)
2005 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2006 @@ -3035,17 +3244,20 @@
2007 esac
2008
2009 case $cc_basename in
2010 - CC)
2011 + CC*)
2012 # FIXME: insert proper C++ library support
2013 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2014 ;;
2015 - aCC)
2016 - case "$host_cpu" in
2017 - hppa*64*|ia64*)
2018 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
2019 + aCC*)
2020 + case $host_cpu in
2021 + hppa*64*)
2022 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2023 + ;;
2024 + ia64*)
2025 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2026 ;;
2027 *)
2028 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
2029 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2030 ;;
2031 esac
2032 # Commands to make compiler produce verbose output that lists
2033 @@ -3061,12 +3273,15 @@
2034 *)
2035 if test "$GXX" = yes; then
2036 if test $with_gnu_ld = no; then
2037 - case "$host_cpu" in
2038 - ia64*|hppa*64*)
2039 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
2040 + case $host_cpu in
2041 + hppa*64*)
2042 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2043 + ;;
2044 + ia64*)
2045 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2046 ;;
2047 *)
2048 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
2049 + _LT_AC_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'
2050 ;;
2051 esac
2052 fi
2053 @@ -3077,11 +3292,25 @@
2054 ;;
2055 esac
2056 ;;
2057 + interix[[3-9]]*)
2058 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
2059 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2060 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2061 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2062 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
2063 + # Instead, shared libraries are loaded at an image base (0x10000000 by
2064 + # default) and relocated if they conflict, which is a slow very memory
2065 + # consuming and fragmenting process. To avoid this, we pick a random,
2066 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
2067 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
2068 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2069 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2070 + ;;
2071 irix5* | irix6*)
2072 case $cc_basename in
2073 - CC)
2074 + CC*)
2075 # SGI C++
2076 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
2077 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2078
2079 # Archives containing C++ object files must be created using
2080 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
2081 @@ -3092,9 +3321,9 @@
2082 *)
2083 if test "$GXX" = yes; then
2084 if test "$with_gnu_ld" = no; then
2085 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
2086 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2087 else
2088 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
2089 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
2090 fi
2091 fi
2092 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2093 @@ -3103,16 +3332,16 @@
2094 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2095 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2096 ;;
2097 - linux*)
2098 + linux* | k*bsd*-gnu)
2099 case $cc_basename in
2100 - KCC)
2101 + KCC*)
2102 # Kuck and Associates, Inc. (KAI) C++ Compiler
2103
2104 # KCC will only create a shared library if the output file
2105 # ends with ".so" (or ".sl" for HP-UX), so rename the library
2106 # to its proper name (with version) after linking.
2107 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
2108 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
2109 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
2110 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
2111 # Commands to make compiler produce verbose output that lists
2112 # what "hidden" libraries, object files and flags are used when
2113 # linking a shared library.
2114 @@ -3130,20 +3359,44 @@
2115 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
2116 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2117 ;;
2118 - icpc)
2119 + icpc*)
2120 # Intel C++
2121 with_gnu_ld=yes
2122 + # version 8.0 and above of icpc choke on multiply defined symbols
2123 + # if we add $predep_objects and $postdep_objects, however 7.1 and
2124 + # earlier do not add the objects themselves.
2125 + case `$CC -V 2>&1` in
2126 + *"Version 7."*)
2127 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2128 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2129 + ;;
2130 + *) # Version 8.0 or newer
2131 + tmp_idyn=
2132 + case $host_cpu in
2133 + ia64*) tmp_idyn=' -i_dynamic';;
2134 + esac
2135 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2136 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2137 + ;;
2138 + esac
2139 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2140 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
2141 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2142 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2143 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2144 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
2145 ;;
2146 - cxx)
2147 + pgCC*)
2148 + # Portland Group C++ compiler
2149 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2150 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
2151 +
2152 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2153 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2154 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2155 + ;;
2156 + cxx*)
2157 # Compaq C++
2158 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
2159 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
2160 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2161 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
2162
2163 runpath_var=LD_RUN_PATH
2164 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2165 @@ -3159,6 +3412,29 @@
2166 # dependencies.
2167 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2168 ;;
2169 + *)
2170 + case `$CC -V 2>&1 | sed 5q` in
2171 + *Sun\ C*)
2172 + # Sun C++ 5.9
2173 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2174 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2175 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
2176 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2177 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2178 +
2179 + # Not sure whether something based on
2180 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
2181 + # would be better.
2182 + output_verbose_link_cmd='echo'
2183 +
2184 + # Archives containing C++ object files must be created using
2185 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
2186 + # necessary to make sure instantiated templates are included
2187 + # in the archive.
2188 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2189 + ;;
2190 + esac
2191 + ;;
2192 esac
2193 ;;
2194 lynxos*)
2195 @@ -3171,7 +3447,7 @@
2196 ;;
2197 mvs*)
2198 case $cc_basename in
2199 - cxx)
2200 + cxx*)
2201 # FIXME: insert proper C++ library support
2202 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2203 ;;
2204 @@ -3181,7 +3457,7 @@
2205 ;;
2206 esac
2207 ;;
2208 - netbsd*)
2209 + netbsd* | netbsdelf*-gnu)
2210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2211 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
2212 wlarc=
2213 @@ -3192,15 +3468,35 @@
2214 # Workaround some broken pre-1.5 toolchains
2215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
2216 ;;
2217 + openbsd2*)
2218 + # C++ shared libraries are fairly broken
2219 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2220 + ;;
2221 + openbsd*)
2222 + if test -f /usr/libexec/ld.so; then
2223 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2224 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2225 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2226 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2227 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2228 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
2229 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2230 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2231 + fi
2232 + output_verbose_link_cmd='echo'
2233 + else
2234 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2235 + fi
2236 + ;;
2237 osf3*)
2238 case $cc_basename in
2239 - KCC)
2240 + KCC*)
2241 # Kuck and Associates, Inc. (KAI) C++ Compiler
2242
2243 # KCC will only create a shared library if the output file
2244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
2245 # to its proper name (with version) after linking.
2246 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
2247 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
2248
2249 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2250 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2251 @@ -3210,14 +3506,14 @@
2252 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2253
2254 ;;
2255 - RCC)
2256 + RCC*)
2257 # Rational C++ 2.4.1
2258 # FIXME: insert proper C++ library support
2259 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2260 ;;
2261 - cxx)
2262 + cxx*)
2263 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2264 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
2265 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2266
2267 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2268 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2269 @@ -3235,7 +3531,7 @@
2270 *)
2271 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2272 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2273 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
2274 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2275
2276 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2277 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2278 @@ -3254,13 +3550,13 @@
2279 ;;
2280 osf4* | osf5*)
2281 case $cc_basename in
2282 - KCC)
2283 + KCC*)
2284 # Kuck and Associates, Inc. (KAI) C++ Compiler
2285
2286 # KCC will only create a shared library if the output file
2287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
2288 # to its proper name (with version) after linking.
2289 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
2290 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
2291
2292 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2293 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2294 @@ -3269,17 +3565,17 @@
2295 # the KAI C++ compiler.
2296 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
2297 ;;
2298 - RCC)
2299 + RCC*)
2300 # Rational C++ 2.4.1
2301 # FIXME: insert proper C++ library support
2302 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2303 ;;
2304 - cxx)
2305 + cxx*)
2306 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2307 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
2308 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2309 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
2310 echo "-hidden">> $lib.exp~
2311 - $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
2312 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
2313 $rm $lib.exp'
2314
2315 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2316 @@ -3298,7 +3594,7 @@
2317 *)
2318 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2319 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2320 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
2321 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2322
2323 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2324 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2325 @@ -3319,27 +3615,14 @@
2326 # FIXME: insert proper C++ library support
2327 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2328 ;;
2329 - sco*)
2330 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2331 - case $cc_basename in
2332 - CC)
2333 - # FIXME: insert proper C++ library support
2334 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
2335 - ;;
2336 - *)
2337 - # FIXME: insert proper C++ library support
2338 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
2339 - ;;
2340 - esac
2341 - ;;
2342 sunos4*)
2343 case $cc_basename in
2344 - CC)
2345 + CC*)
2346 # Sun C++ 4.x
2347 # FIXME: insert proper C++ library support
2348 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2349 ;;
2350 - lcc)
2351 + lcc*)
2352 # Lucid
2353 # FIXME: insert proper C++ library support
2354 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2355 @@ -3352,36 +3635,28 @@
2356 ;;
2357 solaris*)
2358 case $cc_basename in
2359 - CC)
2360 + CC*)
2361 # Sun C++ 4.2, 5.x and Centerline C++
2362 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
2363 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2364 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
2365 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2366 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2367 - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
2368 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
2369
2370 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2371 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2372 case $host_os in
2373 - solaris2.[0-5] | solaris2.[0-5].*) ;;
2374 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2375 *)
2376 - # The C++ compiler is used as linker so we must use $wl
2377 - # flag to pass the commands to the underlying system
2378 - # linker.
2379 + # The compiler driver will combine and reorder linker options,
2380 + # but understands `-z linker_flag'.
2381 # Supported since Solaris 2.6 (maybe 2.5.1?)
2382 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2383 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
2384 ;;
2385 esac
2386 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2387
2388 - # Commands to make compiler produce verbose output that lists
2389 - # what "hidden" libraries, object files and flags are used when
2390 - # linking a shared library.
2391 - #
2392 - # There doesn't appear to be a way to prevent this compiler from
2393 - # explicitly linking system object files so we need to strip them
2394 - # from the output so that they don't get included in the library
2395 - # dependencies.
2396 - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2397 + output_verbose_link_cmd='echo'
2398
2399 # Archives containing C++ object files must be created using
2400 # "CC -xar", where "CC" is the Sun C++ compiler. This is
2401 @@ -3389,9 +3664,9 @@
2402 # in the archive.
2403 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2404 ;;
2405 - gcx)
2406 + gcx*)
2407 # Green Hills C++ Compiler
2408 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
2409 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2410
2411 # The C++ compiler must be used to create the archive.
2412 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
2413 @@ -3401,9 +3676,9 @@
2414 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2415 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
2416 if $CC --version | grep -v '^2\.7' > /dev/null; then
2417 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
2418 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2419 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2420 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
2421 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
2422
2423 # Commands to make compiler produce verbose output that lists
2424 # what "hidden" libraries, object files and flags are used when
2425 @@ -3412,9 +3687,9 @@
2426 else
2427 # g++ 2.7 appears to require `-G' NOT `-shared' on this
2428 # platform.
2429 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
2430 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2431 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2432 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
2433 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
2434
2435 # Commands to make compiler produce verbose output that lists
2436 # what "hidden" libraries, object files and flags are used when
2437 @@ -3423,16 +3698,73 @@
2438 fi
2439
2440 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
2441 + case $host_os in
2442 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2443 + *)
2444 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2445 + ;;
2446 + esac
2447 fi
2448 ;;
2449 esac
2450 ;;
2451 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
2452 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
2453 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2454 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2455 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2456 + runpath_var='LD_RUN_PATH'
2457 +
2458 + case $cc_basename in
2459 + CC*)
2460 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2461 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2462 + ;;
2463 + *)
2464 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2465 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2466 + ;;
2467 + esac
2468 + ;;
2469 + sysv5* | sco3.2v5* | sco5v6*)
2470 + # Note: We can NOT use -z defs as we might desire, because we do not
2471 + # link with -lc, and that would cause any symbols used from libc to
2472 + # always be unresolved, which means just about no library would
2473 + # ever link correctly. If we're not using GNU ld we use -z text
2474 + # though, which does catch some bad symbols but isn't as heavy-handed
2475 + # as -z defs.
2476 + # For security reasons, it is highly recommended that you always
2477 + # use absolute paths for naming shared libraries, and exclude the
2478 + # DT_RUNPATH tag from executables and libraries. But doing so
2479 + # requires that you compile everything twice, which is a pain.
2480 + # So that behaviour is only enabled if SCOABSPATH is set to a
2481 + # non-empty value in the environment. Most likely only useful for
2482 + # creating official distributions of packages.
2483 + # This is a hack until libtool officially supports absolute path
2484 + # names for shared libraries.
2485 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2486 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2487 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2488 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2489 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2490 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2491 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2492 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2493 + runpath_var='LD_RUN_PATH'
2494 +
2495 + case $cc_basename in
2496 + CC*)
2497 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2498 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2499 + ;;
2500 + *)
2501 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2502 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2503 + ;;
2504 + esac
2505 ;;
2506 tandem*)
2507 case $cc_basename in
2508 - NCC)
2509 + NCC*)
2510 # NonStop-UX NCC 3.20
2511 # FIXME: insert proper C++ library support
2512 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2513 @@ -3469,8 +3801,6 @@
2514 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2515 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2516 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2517 -AC_LIBTOOL_SYS_LIB_STRIP
2518 -AC_LIBTOOL_DLOPEN_SELF($1)
2519
2520 AC_LIBTOOL_CONFIG($1)
2521
2522 @@ -3488,7 +3818,7 @@
2523 ])# AC_LIBTOOL_LANG_CXX_CONFIG
2524
2525 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
2526 -# ------------------------
2527 +# ------------------------------------
2528 # Figure out "hidden" library dependencies from verbose
2529 # compiler output when linking a shared library.
2530 # Parse the compiler output and extract the necessary
2531 @@ -3542,7 +3872,7 @@
2532 # The `*' in the case matches for architectures that use `case' in
2533 # $output_verbose_cmd can trigger glob expansion during the loop
2534 # eval without this substitution.
2535 - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
2536 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
2537
2538 for p in `eval $output_verbose_link_cmd`; do
2539 case $p in
2540 @@ -3582,7 +3912,7 @@
2541 fi
2542 ;;
2543
2544 - *.$objext|*.$libext)
2545 + *.$objext)
2546 # This assumes that the test object file only shows up
2547 # once in the compiler output.
2548 if test "$p" = "conftest.$objext"; then
2549 @@ -3618,13 +3948,70 @@
2550
2551 $rm -f confest.$objext
2552
2553 +# PORTME: override above test on systems where it is broken
2554 +ifelse([$1],[CXX],
2555 +[case $host_os in
2556 +interix[[3-9]]*)
2557 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
2558 + # hack all around it, let's just trust "g++" to DTRT.
2559 + _LT_AC_TAGVAR(predep_objects,$1)=
2560 + _LT_AC_TAGVAR(postdep_objects,$1)=
2561 + _LT_AC_TAGVAR(postdeps,$1)=
2562 + ;;
2563 +
2564 +linux*)
2565 + case `$CC -V 2>&1 | sed 5q` in
2566 + *Sun\ C*)
2567 + # Sun C++ 5.9
2568 + #
2569 + # The more standards-conforming stlport4 library is
2570 + # incompatible with the Cstd library. Avoid specifying
2571 + # it if it's in CXXFLAGS. Ignore libCrun as
2572 + # -library=stlport4 depends on it.
2573 + case " $CXX $CXXFLAGS " in
2574 + *" -library=stlport4 "*)
2575 + solaris_use_stlport4=yes
2576 + ;;
2577 + esac
2578 + if test "$solaris_use_stlport4" != yes; then
2579 + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
2580 + fi
2581 + ;;
2582 + esac
2583 + ;;
2584 +
2585 +solaris*)
2586 + case $cc_basename in
2587 + CC*)
2588 + # The more standards-conforming stlport4 library is
2589 + # incompatible with the Cstd library. Avoid specifying
2590 + # it if it's in CXXFLAGS. Ignore libCrun as
2591 + # -library=stlport4 depends on it.
2592 + case " $CXX $CXXFLAGS " in
2593 + *" -library=stlport4 "*)
2594 + solaris_use_stlport4=yes
2595 + ;;
2596 + esac
2597 +
2598 + # Adding this requires a known-good setup of shared libraries for
2599 + # Sun compiler versions before 5.6, else PIC objects from an old
2600 + # archive will be linked into the output, leading to subtle bugs.
2601 + if test "$solaris_use_stlport4" != yes; then
2602 + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
2603 + fi
2604 + ;;
2605 + esac
2606 + ;;
2607 +esac
2608 +])
2609 +
2610 case " $_LT_AC_TAGVAR(postdeps, $1) " in
2611 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
2612 esac
2613 ])# AC_LIBTOOL_POSTDEP_PREDEP
2614
2615 # AC_LIBTOOL_LANG_F77_CONFIG
2616 -# ------------------------
2617 +# --------------------------
2618 # Ensure that the configuration vars for the C compiler are
2619 # suitably defined. Those variables are subsequently used by
2620 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2621 @@ -3660,20 +4047,31 @@
2622 _LT_AC_TAGVAR(objext, $1)=$objext
2623
2624 # Code to be used in simple compile tests
2625 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
2626 +lt_simple_compile_test_code="\
2627 + subroutine t
2628 + return
2629 + end
2630 +"
2631
2632 # Code to be used in simple link tests
2633 -lt_simple_link_test_code=" program t\n end\n"
2634 +lt_simple_link_test_code="\
2635 + program t
2636 + end
2637 +"
2638
2639 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2640 _LT_AC_SYS_COMPILER
2641
2642 +# save warnings/boilerplate of simple test code
2643 +_LT_COMPILER_BOILERPLATE
2644 +_LT_LINKER_BOILERPLATE
2645 +
2646 # Allow CC to be a program name with arguments.
2647 lt_save_CC="$CC"
2648 CC=${F77-"f77"}
2649 compiler=$CC
2650 _LT_AC_TAGVAR(compiler, $1)=$CC
2651 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2652 +_LT_CC_BASENAME([$compiler])
2653
2654 AC_MSG_CHECKING([if libtool supports shared libraries])
2655 AC_MSG_RESULT([$can_build_shared])
2656 @@ -3683,7 +4081,7 @@
2657
2658 # On AIX, shared libraries and static libraries use the same namespace, and
2659 # are all built from PIC.
2660 -case "$host_os" in
2661 +case $host_os in
2662 aix3*)
2663 test "$enable_shared" = yes && enable_static=no
2664 if test -n "$RANLIB"; then
2665 @@ -3691,8 +4089,10 @@
2666 postinstall_cmds='$RANLIB $lib'
2667 fi
2668 ;;
2669 -aix4*)
2670 - test "$enable_shared" = yes && enable_static=no
2671 +aix4* | aix5*)
2672 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2673 + test "$enable_shared" = yes && enable_static=no
2674 + fi
2675 ;;
2676 esac
2677 AC_MSG_RESULT([$enable_shared])
2678 @@ -3702,8 +4102,6 @@
2679 test "$enable_shared" = yes || enable_static=yes
2680 AC_MSG_RESULT([$enable_static])
2681
2682 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2683 -
2684 _LT_AC_TAGVAR(GCC, $1)="$G77"
2685 _LT_AC_TAGVAR(LD, $1)="$LD"
2686
2687 @@ -3713,8 +4111,6 @@
2688 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2689 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2690 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2691 -AC_LIBTOOL_SYS_LIB_STRIP
2692 -
2693
2694 AC_LIBTOOL_CONFIG($1)
2695
2696 @@ -3740,23 +4136,30 @@
2697 _LT_AC_TAGVAR(objext, $1)=$objext
2698
2699 # Code to be used in simple compile tests
2700 -lt_simple_compile_test_code="class foo {}\n"
2701 +lt_simple_compile_test_code="class foo {}"
2702
2703 # Code to be used in simple link tests
2704 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
2705 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
2706
2707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2708 _LT_AC_SYS_COMPILER
2709
2710 +# save warnings/boilerplate of simple test code
2711 +_LT_COMPILER_BOILERPLATE
2712 +_LT_LINKER_BOILERPLATE
2713 +
2714 # Allow CC to be a program name with arguments.
2715 lt_save_CC="$CC"
2716 CC=${GCJ-"gcj"}
2717 compiler=$CC
2718 _LT_AC_TAGVAR(compiler, $1)=$CC
2719 +_LT_CC_BASENAME([$compiler])
2720
2721 # GCJ did not exist at the time GCC didn't implicitly link libc in.
2722 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2723
2724 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2725 +
2726 ## CAVEAT EMPTOR:
2727 ## There is no encapsulation within the following macros, do not change
2728 ## the running order or otherwise move them around unless you know exactly
2729 @@ -3768,8 +4171,6 @@
2730 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2731 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2732 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2733 -AC_LIBTOOL_SYS_LIB_STRIP
2734 -AC_LIBTOOL_DLOPEN_SELF($1)
2735
2736 AC_LIBTOOL_CONFIG($1)
2737
2738 @@ -3779,7 +4180,7 @@
2739
2740
2741 # AC_LIBTOOL_LANG_RC_CONFIG
2742 -# --------------------------
2743 +# -------------------------
2744 # Ensure that the configuration vars for the Windows resource compiler are
2745 # suitably defined. Those variables are subsequently used by
2746 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2747 @@ -3795,7 +4196,7 @@
2748 _LT_AC_TAGVAR(objext, $1)=$objext
2749
2750 # Code to be used in simple compile tests
2751 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
2752 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
2753
2754 # Code to be used in simple link tests
2755 lt_simple_link_test_code="$lt_simple_compile_test_code"
2756 @@ -3803,11 +4204,16 @@
2757 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2758 _LT_AC_SYS_COMPILER
2759
2760 +# save warnings/boilerplate of simple test code
2761 +_LT_COMPILER_BOILERPLATE
2762 +_LT_LINKER_BOILERPLATE
2763 +
2764 # Allow CC to be a program name with arguments.
2765 lt_save_CC="$CC"
2766 CC=${RC-"windres"}
2767 compiler=$CC
2768 _LT_AC_TAGVAR(compiler, $1)=$CC
2769 +_LT_CC_BASENAME([$compiler])
2770 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2771
2772 AC_LIBTOOL_CONFIG($1)
2773 @@ -3833,11 +4239,12 @@
2774 # without removal of \ escapes.
2775 if test -n "${ZSH_VERSION+set}" ; then
2776 setopt NO_GLOB_SUBST
2777 - fi
2778 + fi
2779 # Now quote all the things that may contain metacharacters while being
2780 # careful not to overquote the AC_SUBSTed values. We take copies of the
2781 # variables and quote the copies for generation of the libtool script.
2782 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
2783 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
2784 + SED SHELL STRIP \
2785 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
2786 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
2787 deplibs_check_method reload_flag reload_cmds need_locks \
2788 @@ -3878,6 +4285,7 @@
2789 _LT_AC_TAGVAR(module_cmds, $1) \
2790 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
2791 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
2792 + _LT_AC_TAGVAR(fix_srcfile_path, $1) \
2793 _LT_AC_TAGVAR(exclude_expsyms, $1) \
2794 _LT_AC_TAGVAR(include_expsyms, $1); do
2795
2796 @@ -3887,7 +4295,7 @@
2797 _LT_AC_TAGVAR(archive_cmds, $1) | \
2798 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
2799 _LT_AC_TAGVAR(module_cmds, $1) | \
2800 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
2801 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
2802 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
2803 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
2804 extract_expsyms_cmds | reload_cmds | finish_cmds | \
2805 @@ -3924,7 +4332,7 @@
2806 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2807 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
2808 #
2809 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
2810 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
2811 # Free Software Foundation, Inc.
2812 #
2813 # This file is part of GNU Libtool:
2814 @@ -3953,11 +4361,11 @@
2815 SED=$lt_SED
2816
2817 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
2818 -Xsed="$SED -e s/^X//"
2819 +Xsed="$SED -e 1s/^X//"
2820
2821 # The HP-UX ksh and POSIX shell print the target directory to stdout
2822 # if CDPATH is set.
2823 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2824 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2825
2826 # The names of the tagged configurations supported by this script.
2827 available_tags=
2828 @@ -3988,6 +4396,12 @@
2829 # The host system.
2830 host_alias=$host_alias
2831 host=$host
2832 +host_os=$host_os
2833 +
2834 +# The build system.
2835 +build_alias=$build_alias
2836 +build=$build
2837 +build_os=$build_os
2838
2839 # An echo program that does not interpret backslashes.
2840 echo=$lt_echo
2841 @@ -3999,6 +4413,9 @@
2842 # A C compiler.
2843 LTCC=$lt_LTCC
2844
2845 +# LTCC compiler flags.
2846 +LTCFLAGS=$lt_LTCFLAGS
2847 +
2848 # A language-specific compiler.
2849 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
2850
2851 @@ -4018,7 +4435,7 @@
2852 NM=$lt_NM
2853
2854 # A symbol stripping program
2855 -STRIP=$STRIP
2856 +STRIP=$lt_STRIP
2857
2858 # Used to examine libraries when file_magic_cmd begins "file"
2859 MAGIC_CMD=$MAGIC_CMD
2860 @@ -4049,7 +4466,7 @@
2861 libext="$libext"
2862
2863 # Shared library suffix (normally ".so").
2864 -shrext='$shrext'
2865 +shrext_cmds='$shrext_cmds'
2866
2867 # Executable file suffix (normally "").
2868 exeext="$exeext"
2869 @@ -4064,7 +4481,7 @@
2870 # Does compiler simultaneously support -c and -o options?
2871 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
2872
2873 -# Must we lock files when doing compilation ?
2874 +# Must we lock files when doing compilation?
2875 need_locks=$lt_need_locks
2876
2877 # Do we need the lib prefix for modules?
2878 @@ -4240,7 +4657,7 @@
2879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
2880
2881 # Fix the shell variable \$srcfile for the compiler.
2882 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
2883 +fix_srcfile_path=$lt_fix_srcfile_path
2884
2885 # Set to yes if exported symbols are required.
2886 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
2887 @@ -4293,7 +4710,10 @@
2888 # If there is no Makefile yet, we rely on a make rule to execute
2889 # `config.status --recheck' to rerun these tests and create the
2890 # libtool script then.
2891 - test -f Makefile && make "$ltmain"
2892 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
2893 + if test -f "$ltmain_in"; then
2894 + test -f Makefile && make "$ltmain"
2895 + fi
2896 fi
2897 ])# AC_LIBTOOL_CONFIG
2898
2899 @@ -4320,6 +4740,7 @@
2900 # ---------------------------------
2901 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
2902 [AC_REQUIRE([AC_CANONICAL_HOST])
2903 +AC_REQUIRE([LT_AC_PROG_SED])
2904 AC_REQUIRE([AC_PROG_NM])
2905 AC_REQUIRE([AC_OBJEXT])
2906 # Check for command to grab the raw symbol name followed by C symbol from nm.
2907 @@ -4335,9 +4756,6 @@
2908 # Regexp to match symbols that can be accessed directly from C.
2909 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
2910
2911 -# Transform the above into a raw symbol and a C symbol.
2912 -symxfrm='\1 \2\3 \3'
2913 -
2914 # Transform an extracted symbol line into a proper C declaration
2915 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
2916
2917 @@ -4359,14 +4777,30 @@
2918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2919 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2920 ;;
2921 +linux* | k*bsd*-gnu)
2922 + if test "$host_cpu" = ia64; then
2923 + symcode='[[ABCDGIRSTW]]'
2924 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2925 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2926 + fi
2927 + ;;
2928 irix* | nonstopux*)
2929 symcode='[[BCDEGRST]]'
2930 ;;
2931 osf*)
2932 symcode='[[BCDEGQRST]]'
2933 ;;
2934 -solaris* | sysv5*)
2935 - symcode='[[BDT]]'
2936 +solaris*)
2937 + symcode='[[BDRT]]'
2938 + ;;
2939 +sco3.2v5*)
2940 + symcode='[[DT]]'
2941 + ;;
2942 +sysv4.2uw2*)
2943 + symcode='[[DT]]'
2944 + ;;
2945 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
2946 + symcode='[[ABDT]]'
2947 ;;
2948 sysv4)
2949 symcode='[[DFNSTU]]'
2950 @@ -4384,14 +4818,17 @@
2951 # If we're using GNU nm, then use its standard symbol codes.
2952 case `$NM -V 2>&1` in
2953 *GNU* | *'with BFD'*)
2954 - symcode='[[ABCDGISTW]]' ;;
2955 + symcode='[[ABCDGIRSTW]]' ;;
2956 esac
2957
2958 # Try without a prefix undercore, then with it.
2959 for ac_symprfx in "" "_"; do
2960
2961 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
2962 + symxfrm="\\1 $ac_symprfx\\2 \\2"
2963 +
2964 # Write the raw and C identifiers.
2965 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2966 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
2967
2968 # Check to see that the pipe works correctly.
2969 pipe_works=no
2970 @@ -4530,12 +4967,14 @@
2971 # like `-m68040'.
2972 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
2973 ;;
2974 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2975 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2976 # PIC is the default for these OSes.
2977 ;;
2978 - mingw* | os2* | pw32*)
2979 + mingw* | cygwin* | os2* | pw32*)
2980 # This hack is so that the source file can tell whether it is being
2981 # built for inclusion in a dll (and should export symbols for example).
2982 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
2983 + # (--disable-auto-import) libraries
2984 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
2985 ;;
2986 darwin* | rhapsody*)
2987 @@ -4547,6 +4986,10 @@
2988 # DJGPP does not support shared libraries at all
2989 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2990 ;;
2991 + interix[[3-9]]*)
2992 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2993 + # Instead, we relocate shared libraries at runtime.
2994 + ;;
2995 sysv4*MP*)
2996 if test -d /usr/nec; then
2997 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
2998 @@ -4555,7 +4998,7 @@
2999 hpux*)
3000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3001 # not for PA HP-UX.
3002 - case "$host_cpu" in
3003 + case $host_cpu in
3004 hppa*64*|ia64*)
3005 ;;
3006 *)
3007 @@ -4580,18 +5023,28 @@
3008 ;;
3009 chorus*)
3010 case $cc_basename in
3011 - cxch68)
3012 + cxch68*)
3013 # Green Hills C++ Compiler
3014 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3015 ;;
3016 esac
3017 ;;
3018 + darwin*)
3019 + # PIC is the default on this platform
3020 + # Common symbols not allowed in MH_DYLIB files
3021 + case $cc_basename in
3022 + xlc*)
3023 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3024 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3025 + ;;
3026 + esac
3027 + ;;
3028 dgux*)
3029 case $cc_basename in
3030 - ec++)
3031 + ec++*)
3032 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3033 ;;
3034 - ghcx)
3035 + ghcx*)
3036 # Green Hills C++ Compiler
3037 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3038 ;;
3039 @@ -4599,22 +5052,22 @@
3040 ;;
3041 esac
3042 ;;
3043 - freebsd* | kfreebsd*-gnu)
3044 + freebsd* | dragonfly*)
3045 # FreeBSD uses GNU C++
3046 ;;
3047 hpux9* | hpux10* | hpux11*)
3048 case $cc_basename in
3049 - CC)
3050 + CC*)
3051 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3052 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
3053 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3054 if test "$host_cpu" != ia64; then
3055 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3056 fi
3057 ;;
3058 - aCC)
3059 + aCC*)
3060 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3061 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
3062 - case "$host_cpu" in
3063 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3064 + case $host_cpu in
3065 hppa*64*|ia64*)
3066 # +Z the default
3067 ;;
3068 @@ -4627,9 +5080,13 @@
3069 ;;
3070 esac
3071 ;;
3072 + interix*)
3073 + # This is c89, which is MS Visual C++ (no shared libs)
3074 + # Anyone wants to do a port?
3075 + ;;
3076 irix5* | irix6* | nonstopux*)
3077 case $cc_basename in
3078 - CC)
3079 + CC*)
3080 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3081 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3082 # CC pic flag -KPIC is the default.
3083 @@ -4638,20 +5095,26 @@
3084 ;;
3085 esac
3086 ;;
3087 - linux*)
3088 + linux* | k*bsd*-gnu)
3089 case $cc_basename in
3090 - KCC)
3091 + KCC*)
3092 # KAI C++ Compiler
3093 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3094 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3095 ;;
3096 - icpc)
3097 + icpc* | ecpc*)
3098 # Intel C++
3099 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3100 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3101 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3102 - ;;
3103 - cxx)
3104 + ;;
3105 + pgCC*)
3106 + # Portland Group C++ compiler.
3107 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3108 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3109 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3110 + ;;
3111 + cxx*)
3112 # Compaq C++
3113 # Make sure the PIC flag is empty. It appears that all Alpha
3114 # Linux and Compaq Tru64 Unix objects are PIC.
3115 @@ -4659,6 +5122,14 @@
3116 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3117 ;;
3118 *)
3119 + case `$CC -V 2>&1 | sed 5q` in
3120 + *Sun\ C*)
3121 + # Sun C++ 5.9
3122 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3123 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3124 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3125 + ;;
3126 + esac
3127 ;;
3128 esac
3129 ;;
3130 @@ -4668,25 +5139,25 @@
3131 ;;
3132 mvs*)
3133 case $cc_basename in
3134 - cxx)
3135 + cxx*)
3136 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3137 ;;
3138 *)
3139 ;;
3140 esac
3141 ;;
3142 - netbsd*)
3143 + netbsd* | netbsdelf*-gnu)
3144 ;;
3145 osf3* | osf4* | osf5*)
3146 case $cc_basename in
3147 - KCC)
3148 + KCC*)
3149 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3150 ;;
3151 - RCC)
3152 + RCC*)
3153 # Rational C++ 2.4.1
3154 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3155 ;;
3156 - cxx)
3157 + cxx*)
3158 # Digital/Compaq C++
3159 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3160 # Make sure the PIC flag is empty. It appears that all Alpha
3161 @@ -4700,24 +5171,15 @@
3162 ;;
3163 psos*)
3164 ;;
3165 - sco*)
3166 - case $cc_basename in
3167 - CC)
3168 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3169 - ;;
3170 - *)
3171 - ;;
3172 - esac
3173 - ;;
3174 solaris*)
3175 case $cc_basename in
3176 - CC)
3177 + CC*)
3178 # Sun C++ 4.2, 5.x and Centerline C++
3179 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3180 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3181 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3182 ;;
3183 - gcx)
3184 + gcx*)
3185 # Green Hills C++ Compiler
3186 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3187 ;;
3188 @@ -4727,12 +5189,12 @@
3189 ;;
3190 sunos4*)
3191 case $cc_basename in
3192 - CC)
3193 + CC*)
3194 # Sun C++ 4.x
3195 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3196 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3197 ;;
3198 - lcc)
3199 + lcc*)
3200 # Lucid
3201 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3202 ;;
3203 @@ -4742,7 +5204,7 @@
3204 ;;
3205 tandem*)
3206 case $cc_basename in
3207 - NCC)
3208 + NCC*)
3209 # NonStop-UX NCC 3.20
3210 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3211 ;;
3212 @@ -4750,7 +5212,14 @@
3213 ;;
3214 esac
3215 ;;
3216 - unixware*)
3217 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3218 + case $cc_basename in
3219 + CC*)
3220 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3221 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3222 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3223 + ;;
3224 + esac
3225 ;;
3226 vxworks*)
3227 ;;
3228 @@ -4781,13 +5250,15 @@
3229 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3230 ;;
3231
3232 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3233 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3234 # PIC is the default for these OSes.
3235 ;;
3236
3237 - mingw* | pw32* | os2*)
3238 + mingw* | cygwin* | pw32* | os2*)
3239 # This hack is so that the source file can tell whether it is being
3240 # built for inclusion in a dll (and should export symbols for example).
3241 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
3242 + # (--disable-auto-import) libraries
3243 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3244 ;;
3245
3246 @@ -4797,6 +5268,11 @@
3247 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3248 ;;
3249
3250 + interix[[3-9]]*)
3251 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3252 + # Instead, we relocate shared libraries at runtime.
3253 + ;;
3254 +
3255 msdosdjgpp*)
3256 # Just because we use GCC doesn't mean we suddenly get shared libraries
3257 # on systems that don't support them.
3258 @@ -4813,7 +5289,7 @@
3259 hpux*)
3260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3261 # not for PA HP-UX.
3262 - case "$host_cpu" in
3263 + case $host_cpu in
3264 hppa*64*|ia64*)
3265 # +Z the default
3266 ;;
3267 @@ -4839,8 +5315,18 @@
3268 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3269 fi
3270 ;;
3271 + darwin*)
3272 + # PIC is the default on this platform
3273 + # Common symbols not allowed in MH_DYLIB files
3274 + case $cc_basename in
3275 + xlc*)
3276 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3277 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3278 + ;;
3279 + esac
3280 + ;;
3281
3282 - mingw* | pw32* | os2*)
3283 + mingw* | cygwin* | pw32* | os2*)
3284 # This hack is so that the source file can tell whether it is being
3285 # built for inclusion in a dll (and should export symbols for example).
3286 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3287 @@ -4850,7 +5336,7 @@
3288 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3290 # not for PA HP-UX.
3291 - case "$host_cpu" in
3292 + case $host_cpu in
3293 hppa*64*|ia64*)
3294 # +Z the default
3295 ;;
3296 @@ -4873,18 +5359,41 @@
3297 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3298 ;;
3299
3300 - linux*)
3301 - case $CC in
3302 + linux* | k*bsd*-gnu)
3303 + case $cc_basename in
3304 icc* | ecc*)
3305 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3306 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3307 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3308 ;;
3309 + pgcc* | pgf77* | pgf90* | pgf95*)
3310 + # Portland Group compilers (*not* the Pentium gcc compiler,
3311 + # which looks to be a dead project)
3312 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3313 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3314 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3315 + ;;
3316 ccc*)
3317 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3318 # All Alpha code is PIC.
3319 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3320 ;;
3321 + *)
3322 + case `$CC -V 2>&1 | sed 5q` in
3323 + *Sun\ C*)
3324 + # Sun C 5.9
3325 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3326 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3327 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3328 + ;;
3329 + *Sun\ F*)
3330 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
3331 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3332 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3333 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
3334 + ;;
3335 + esac
3336 + ;;
3337 esac
3338 ;;
3339
3340 @@ -4894,15 +5403,19 @@
3341 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3342 ;;
3343
3344 - sco3.2v5*)
3345 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
3346 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
3347 + rdos*)
3348 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3349 ;;
3350
3351 solaris*)
3352 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3353 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3354 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3355 + case $cc_basename in
3356 + f77* | f90* | f95*)
3357 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
3358 + *)
3359 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
3360 + esac
3361 ;;
3362
3363 sunos4*)
3364 @@ -4911,7 +5424,7 @@
3365 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3366 ;;
3367
3368 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3369 + sysv4 | sysv4.2uw2* | sysv4.3*)
3370 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3371 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3372 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3373 @@ -4924,6 +5437,17 @@
3374 fi
3375 ;;
3376
3377 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3378 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3379 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3380 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3381 + ;;
3382 +
3383 + unicos*)
3384 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3385 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3386 + ;;
3387 +
3388 uts4*)
3389 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3390 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3391 @@ -4951,7 +5475,7 @@
3392 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3393 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
3394 fi
3395 -case "$host_os" in
3396 +case $host_os in
3397 # For platforms which do not support PIC, -DPIC is meaningless:
3398 *djgpp*)
3399 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3400 @@ -4960,6 +5484,16 @@
3401 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
3402 ;;
3403 esac
3404 +
3405 +#
3406 +# Check to make sure the static flag actually works.
3407 +#
3408 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
3409 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
3410 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3411 + $lt_tmp_static_flag,
3412 + [],
3413 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3414 ])
3415
3416
3417 @@ -4967,7 +5501,8 @@
3418 # ------------------------------------
3419 # See if the linker supports building shared libraries.
3420 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
3421 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3422 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
3423 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3424 ifelse([$1],[CXX],[
3425 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3426 case $host_os in
3427 @@ -4984,7 +5519,10 @@
3428 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
3429 ;;
3430 cygwin* | mingw*)
3431 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3432 + _LT_AC_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'
3433 + ;;
3434 + linux* | k*bsd*-gnu)
3435 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3436 ;;
3437 *)
3438 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3439 @@ -5010,7 +5548,7 @@
3440 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3441 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3442 _LT_AC_TAGVAR(module_cmds, $1)=
3443 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3444 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3445 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3446 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3447 # include_expsyms should be a list of space-separated symbols to be *always*
3448 @@ -5027,7 +5565,8 @@
3449 # rely on this symbol name, it's probably fine to never include it in
3450 # preloaded symbol tables.
3451 extract_expsyms_cmds=
3452 -
3453 + # Just being paranoid about ensuring that cc_basename is set.
3454 + _LT_CC_BASENAME([$compiler])
3455 case $host_os in
3456 cygwin* | mingw* | pw32*)
3457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3458 @@ -5037,6 +5576,10 @@
3459 with_gnu_ld=no
3460 fi
3461 ;;
3462 + interix*)
3463 + # we just hope/assume this is gcc and not c89 (= MSVC++)
3464 + with_gnu_ld=yes
3465 + ;;
3466 openbsd*)
3467 with_gnu_ld=no
3468 ;;
3469 @@ -5047,6 +5590,27 @@
3470 # If archive_cmds runs LD, not CC, wlarc should be empty
3471 wlarc='${wl}'
3472
3473 + # Set some defaults for GNU ld with shared library support. These
3474 + # are reset later if shared libraries are not supported. Putting them
3475 + # here allows them to be overridden if necessary.
3476 + runpath_var=LD_RUN_PATH
3477 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3478 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3479 + # ancient GNU ld didn't support --whole-archive et. al.
3480 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3481 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3482 + else
3483 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3484 + fi
3485 + supports_anon_versioning=no
3486 + case `$LD -v 2>/dev/null` in
3487 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3488 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3489 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3490 + *\ 2.11.*) ;; # other 2.11 versions
3491 + *) supports_anon_versioning=yes ;;
3492 + esac
3493 +
3494 # See if GNU ld supports shared libraries.
3495 case $host_os in
3496 aix3* | aix4* | aix5*)
3497 @@ -5084,7 +5648,7 @@
3498 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3500 # support --undefined. This deserves some investigation. FIXME
3501 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
3502 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3503 else
3504 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3505 fi
3506 @@ -5094,13 +5658,13 @@
3507 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3508 # as there is no search path for DLLs.
3509 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3510 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
3511 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3512 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3513 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3514 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3515 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
3516
3517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3518 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3519 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3520 # If the export-symbols file already is a .def file (1st line
3521 # is EXPORTS), use it as is; otherwise, prepend...
3522 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3523 @@ -5109,23 +5673,79 @@
3524 echo EXPORTS > $output_objdir/$soname.def;
3525 cat $export_symbols >> $output_objdir/$soname.def;
3526 fi~
3527 - $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3528 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3529 else
3530 - ld_shlibs=no
3531 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3532 fi
3533 ;;
3534
3535 - netbsd*)
3536 + interix[[3-9]]*)
3537 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3538 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3539 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3540 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3541 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3542 + # Instead, shared libraries are loaded at an image base (0x10000000 by
3543 + # default) and relocated if they conflict, which is a slow very memory
3544 + # consuming and fragmenting process. To avoid this, we pick a random,
3545 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3546 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3547 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3548 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3549 + ;;
3550 +
3551 + gnu* | linux* | k*bsd*-gnu)
3552 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3553 + tmp_addflag=
3554 + case $cc_basename,$host_cpu in
3555 + pgcc*) # Portland Group C compiler
3556 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3557 + tmp_addflag=' $pic_flag'
3558 + ;;
3559 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
3560 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3561 + tmp_addflag=' $pic_flag -Mnomain' ;;
3562 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
3563 + tmp_addflag=' -i_dynamic' ;;
3564 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
3565 + tmp_addflag=' -i_dynamic -nofor_main' ;;
3566 + ifc* | ifort*) # Intel Fortran compiler
3567 + tmp_addflag=' -nofor_main' ;;
3568 + esac
3569 + case `$CC -V 2>&1 | sed 5q` in
3570 + *Sun\ C*) # Sun C 5.9
3571 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3572 + tmp_sharedflag='-G' ;;
3573 + *Sun\ F*) # Sun Fortran 8.3
3574 + tmp_sharedflag='-G' ;;
3575 + *)
3576 + tmp_sharedflag='-shared' ;;
3577 + esac
3578 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3579 +
3580 + if test $supports_anon_versioning = yes; then
3581 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3582 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3583 + $echo "local: *; };" >> $output_objdir/$libname.ver~
3584 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3585 + fi
3586 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3587 + else
3588 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3589 + fi
3590 + ;;
3591 +
3592 + netbsd* | netbsdelf*-gnu)
3593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3594 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3595 wlarc=
3596 else
3597 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
3598 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3599 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3600 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3601 fi
3602 ;;
3603
3604 - solaris* | sysv5*)
3605 + solaris*)
3606 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
3607 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3608 cat <<EOF 1>&2
3609 @@ -5139,13 +5759,40 @@
3610
3611 EOF
3612 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3613 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
3614 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3615 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3616 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3617 else
3618 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3619 fi
3620 ;;
3621
3622 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
3623 + case `$LD -v 2>&1` in
3624 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
3625 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3626 + cat <<_LT_EOF 1>&2
3627 +
3628 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
3629 +*** reliably create shared libraries on SCO systems. Therefore, libtool
3630 +*** is disabling shared libraries support. We urge you to upgrade GNU
3631 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
3632 +*** your PATH or compiler configuration so that the native linker is
3633 +*** used, and then restart.
3634 +
3635 +_LT_EOF
3636 + ;;
3637 + *)
3638 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3639 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
3640 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
3641 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
3642 + else
3643 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3644 + fi
3645 + ;;
3646 + esac
3647 + ;;
3648 +
3649 sunos4*)
3650 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3651 wlarc=
3652 @@ -5155,24 +5802,19 @@
3653
3654 *)
3655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3656 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
3657 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3658 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3659 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3660 else
3661 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3662 fi
3663 ;;
3664 esac
3665
3666 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
3667 - runpath_var=LD_RUN_PATH
3668 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3669 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3670 - # ancient GNU ld didn't support --whole-archive et. al.
3671 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3672 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3673 - else
3674 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3675 - fi
3676 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
3677 + runpath_var=
3678 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3679 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3680 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3681 fi
3682 else
3683 # PORTME fill in a description of your system's linker (not GNU ld)
3684 @@ -5184,7 +5826,7 @@
3685 # Note: this linker hardcodes the directories in LIBPATH if there
3686 # are no directories specified by -L.
3687 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3688 - if test "$GCC" = yes && test -z "$link_static_flag"; then
3689 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
3690 # Neither direct hardcoding nor static linking is supported with a
3691 # broken collect2.
3692 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3693 @@ -5206,9 +5848,21 @@
3694 else
3695 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
3696 fi
3697 + aix_use_runtimelinking=no
3698 +
3699 + # Test if we are trying to use run time linking or normal
3700 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3701 + # need to do runtime linking.
3702 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3703 + for ld_flag in $LDFLAGS; do
3704 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3705 + aix_use_runtimelinking=yes
3706 + break
3707 + fi
3708 + done
3709 + ;;
3710 + esac
3711
3712 - # KDE requires run time linking. Make it the default.
3713 - aix_use_runtimelinking=yes
3714 exp_sym_flag='-bexport'
3715 no_entry_flag='-bnoentry'
3716 fi
3717 @@ -5225,7 +5879,7 @@
3718 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3719
3720 if test "$GCC" = yes; then
3721 - case $host_os in aix4.[012]|aix4.[012].*)
3722 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
3723 # We only want to do this on AIX 4.2 and lower, the check
3724 # below for broken collect2 doesn't work under 4.3+
3725 collect2name=`${CC} -print-prog-name=collect2`
3726 @@ -5233,7 +5887,7 @@
3727 strings "$collect2name" | grep resolve_lib_name >/dev/null
3728 then
3729 # We have reworked collect2
3730 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3731 + :
3732 else
3733 # We have old collect2
3734 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3735 @@ -5244,8 +5898,12 @@
3736 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3737 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3738 fi
3739 + ;;
3740 esac
3741 shared_flag='-shared'
3742 + if test "$aix_use_runtimelinking" = yes; then
3743 + shared_flag="$shared_flag "'${wl}-G'
3744 + fi
3745 else
3746 # not using gcc
3747 if test "$host_cpu" = ia64; then
3748 @@ -5253,30 +5911,30 @@
3749 # chokes on -Wl,-G. The following line is correct:
3750 shared_flag='-G'
3751 else
3752 - if test "$aix_use_runtimelinking" = yes; then
3753 - shared_flag='-qmkshrobj ${wl}-G'
3754 + if test "$aix_use_runtimelinking" = yes; then
3755 + shared_flag='${wl}-G'
3756 else
3757 - shared_flag='-qmkshrobj'
3758 - fi
3759 + shared_flag='${wl}-bM:SRE'
3760 + fi
3761 fi
3762 fi
3763
3764 - # Let the compiler handle the export list.
3765 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
3766 + # It seems that -bexpall does not export symbols beginning with
3767 + # underscore (_), so it is better to generate a list of symbols to export.
3768 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3769 if test "$aix_use_runtimelinking" = yes; then
3770 # Warning - without using the other runtime loading flags (-brtl),
3771 # -berok will link without error, but may produce a broken library.
3772 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3773 # Determine the default libpath from the value encoded in an empty executable.
3774 - _LT_AC_SYS_LIBPATH_AIX
3775 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3776 - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
3777 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3778 + _LT_AC_SYS_LIBPATH_AIX
3779 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3780 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3781 else
3782 if test "$host_cpu" = ia64; then
3783 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3784 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3785 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3786 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3787 else
3788 # Determine the default libpath from the value encoded in an empty executable.
3789 _LT_AC_SYS_LIBPATH_AIX
3790 @@ -5285,13 +5943,11 @@
3791 # -berok will link without error, but may produce a broken library.
3792 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3793 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3794 - # -bexpall does not export symbols beginning with underscore (_)
3795 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3796 # Exported symbols can be pulled into shared objects from archives
3797 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3798 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3799 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3800 - # This is similar to how AIX traditionally builds it's shared libraries.
3801 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3802 + # This is similar to how AIX traditionally builds its shared libraries.
3803 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3804 fi
3805 fi
3806 ;;
3807 @@ -5304,7 +5960,7 @@
3808 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3809 ;;
3810
3811 - bsdi4*)
3812 + bsdi[[45]]*)
3813 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
3814 ;;
3815
3816 @@ -5314,69 +5970,69 @@
3817 # hardcode_libdir_flag_spec is actually meaningless, as there is
3818 # no search path for DLLs.
3819 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
3820 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
3821 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3822 # Tell ltmain to make .lib files, not .a files.
3823 libext=lib
3824 # Tell ltmain to make .dll files, not .so files.
3825 - shrext=".dll"
3826 + shrext_cmds=".dll"
3827 # FIXME: Setting linknames here is a bad hack.
3828 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
3829 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
3830 # The linker will automatically build a .lib file if we build a DLL.
3831 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
3832 # FIXME: Should let the user specify the lib program.
3833 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
3834 - fix_srcfile_path='`cygpath -w "$srcfile"`'
3835 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
3836 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
3837 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3838 ;;
3839
3840 darwin* | rhapsody*)
3841 - if test "$GXX" = yes ; then
3842 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3843 - case "$host_os" in
3844 - rhapsody* | darwin1.[[012]])
3845 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
3846 - ;;
3847 - *) # Darwin 1.3 on
3848 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3849 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
3850 - else
3851 - case ${MACOSX_DEPLOYMENT_TARGET} in
3852 - 10.[012])
3853 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
3854 - ;;
3855 - 10.*)
3856 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
3857 - ;;
3858 - esac
3859 - fi
3860 - ;;
3861 + case $host_os in
3862 + rhapsody* | darwin1.[[012]])
3863 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3864 + ;;
3865 + *) # Darwin 1.3 on
3866 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3867 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3868 + else
3869 + case ${MACOSX_DEPLOYMENT_TARGET} in
3870 + 10.[[012]])
3871 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3872 + ;;
3873 + 10.*)
3874 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3875 + ;;
3876 + esac
3877 + fi
3878 + ;;
3879 esac
3880 - lt_int_apple_cc_single_mod=no
3881 - output_verbose_link_cmd='echo'
3882 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3883 - lt_int_apple_cc_single_mod=yes
3884 - fi
3885 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3886 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
3887 - else
3888 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
3889 - fi
3890 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
3891 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3892 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3893 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3894 - else
3895 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3896 - fi
3897 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3898 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3899 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3900 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3901 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3902 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3903 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3904 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3905 - else
3906 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3907 - fi
3908 + if test "$GCC" = yes ; then
3909 + output_verbose_link_cmd='echo'
3910 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3911 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3912 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3913 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3914 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3915 + else
3916 + case $cc_basename in
3917 + xlc*)
3918 + output_verbose_link_cmd='echo'
3919 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3920 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3921 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3922 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3923 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3924 + ;;
3925 + *)
3926 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3927 + ;;
3928 + esac
3929 + fi
3930 ;;
3931
3932 dgux*)
3933 @@ -5409,8 +6065,8 @@
3934 ;;
3935
3936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3937 - freebsd* | kfreebsd*-gnu)
3938 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
3939 + freebsd* | dragonfly*)
3940 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3941 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3942 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3943 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3944 @@ -5418,7 +6074,7 @@
3945
3946 hpux9*)
3947 if test "$GCC" = yes; then
3948 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3949 + _LT_AC_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'
3950 else
3951 _LT_AC_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'
3952 fi
3953 @@ -5432,47 +6088,62 @@
3954 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3955 ;;
3956
3957 - hpux10* | hpux11*)
3958 + hpux10*)
3959 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3960 - case "$host_cpu" in
3961 - hppa*64*|ia64*)
3962 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
3963 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3964 + else
3965 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3966 + fi
3967 + if test "$with_gnu_ld" = no; then
3968 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3969 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3970 +
3971 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3972 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3973 +
3974 + # hardcode_minus_L: Not really in the search PATH,
3975 + # but as the default location of the library.
3976 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3977 + fi
3978 + ;;
3979 +
3980 + hpux11*)
3981 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3982 + case $host_cpu in
3983 + hppa*64*)
3984 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3985 + ;;
3986 + ia64*)
3987 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3988 ;;
3989 *)
3990 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
3991 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3992 ;;
3993 esac
3994 else
3995 - case "$host_cpu" in
3996 - hppa*64*|ia64*)
3997 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
3998 + case $host_cpu in
3999 + hppa*64*)
4000 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4001 + ;;
4002 + ia64*)
4003 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4004 ;;
4005 *)
4006 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4007 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4008 ;;
4009 esac
4010 fi
4011 if test "$with_gnu_ld" = no; then
4012 - case "$host_cpu" in
4013 - hppa*64*)
4014 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4015 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4016 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4017 +
4018 + case $host_cpu in
4019 + hppa*64*|ia64*)
4020 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4021 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4022 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4023 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4024 ;;
4025 - ia64*)
4026 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4027 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
4028 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4029 -
4030 - # hardcode_minus_L: Not really in the search PATH,
4031 - # but as the default location of the library.
4032 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4033 - ;;
4034 *)
4035 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4036 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4037 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4038 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4039
4040 @@ -5486,7 +6157,7 @@
4041
4042 irix5* | irix6* | nonstopux*)
4043 if test "$GCC" = yes; then
4044 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4045 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4046 else
4047 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4048 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4049 @@ -5496,7 +6167,7 @@
4050 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4051 ;;
4052
4053 - netbsd*)
4054 + netbsd* | netbsdelf*-gnu)
4055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4056 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4057 else
4058 @@ -5516,23 +6187,28 @@
4059 ;;
4060
4061 openbsd*)
4062 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4063 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4064 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4065 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
4066 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4067 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4068 + if test -f /usr/libexec/ld.so; then
4069 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4070 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4071 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4072 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4073 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4074 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4075 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4076 + else
4077 + case $host_os in
4078 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4079 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4080 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4081 + ;;
4082 + *)
4083 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4084 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4085 + ;;
4086 + esac
4087 + fi
4088 else
4089 - case $host_os in
4090 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4091 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4092 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4093 - ;;
4094 - *)
4095 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
4096 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4097 - ;;
4098 - esac
4099 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4100 fi
4101 ;;
4102
4103 @@ -5540,14 +6216,14 @@
4104 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4105 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4106 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4107 - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
4108 + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4109 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4110 ;;
4111
4112 osf3*)
4113 if test "$GCC" = yes; then
4114 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4115 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4116 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4117 else
4118 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4119 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4120 @@ -5559,13 +6235,13 @@
4121 osf4* | osf5*) # as osf3* with the addition of -msym flag
4122 if test "$GCC" = yes; then
4123 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4124 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4125 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4126 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4127 else
4128 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4129 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4130 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4131 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4132 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
4133
4134 # Both c and cxx compiler support -rpath directly
4135 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4136 @@ -5573,21 +6249,15 @@
4137 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4138 ;;
4139
4140 - sco3.2v5*)
4141 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4142 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4143 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4144 - runpath_var=LD_RUN_PATH
4145 - hardcode_runpath_var=yes
4146 - ;;
4147 -
4148 solaris*)
4149 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4150 if test "$GCC" = yes; then
4151 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
4152 + wlarc='${wl}'
4153 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4154 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4155 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
4156 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4157 else
4158 + wlarc=''
4159 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4160 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4161 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4162 @@ -5596,8 +6266,17 @@
4163 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4164 case $host_os in
4165 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4166 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4167 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
4168 + *)
4169 + # The compiler driver will combine and reorder linker options,
4170 + # but understands `-z linker_flag'. GCC discards it without `$wl',
4171 + # but is careful enough not to reorder.
4172 + # Supported since Solaris 2.6 (maybe 2.5.1?)
4173 + if test "$GCC" = yes; then
4174 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4175 + else
4176 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4177 + fi
4178 + ;;
4179 esac
4180 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4181 ;;
4182 @@ -5606,7 +6285,7 @@
4183 if test "x$host_vendor" = xsequent; then
4184 # Use $CC to link under sequent, because it throws in some extra .o
4185 # files that make .init and .fini sections work.
4186 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
4187 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4188 else
4189 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4190 fi
4191 @@ -5654,36 +6333,45 @@
4192 fi
4193 ;;
4194
4195 - sysv4.2uw2*)
4196 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4197 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4198 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4199 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4200 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4201 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4202 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4203 - hardcode_runpath_var=yes
4204 - runpath_var=LD_RUN_PATH
4205 - ;;
4206 + runpath_var='LD_RUN_PATH'
4207
4208 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4209 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
4210 if test "$GCC" = yes; then
4211 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
4212 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4213 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4214 else
4215 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
4216 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4217 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4218 fi
4219 - runpath_var='LD_RUN_PATH'
4220 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4221 ;;
4222
4223 - sysv5*)
4224 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4225 - # $CC -shared without GNU ld will not create a library from C++
4226 - # object files and a static libstdc++, better avoid it by now
4227 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4228 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4229 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4230 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4231 + sysv5* | sco3.2v5* | sco5v6*)
4232 + # Note: We can NOT use -z defs as we might desire, because we do not
4233 + # link with -lc, and that would cause any symbols used from libc to
4234 + # always be unresolved, which means just about no library would
4235 + # ever link correctly. If we're not using GNU ld we use -z text
4236 + # though, which does catch some bad symbols but isn't as heavy-handed
4237 + # as -z defs.
4238 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4239 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4240 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4241 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4242 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4243 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4244 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4245 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4246 runpath_var='LD_RUN_PATH'
4247 +
4248 + if test "$GCC" = yes; then
4249 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4250 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4251 + else
4252 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4253 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4254 + fi
4255 ;;
4256
4257 uts4*)
4258 @@ -5701,11 +6389,6 @@
4259 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4260 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4261
4262 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4263 -if test "$GCC" = yes; then
4264 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4265 -fi
4266 -
4267 #
4268 # Do we need to explicitly link libc?
4269 #
4270 @@ -5725,14 +6408,15 @@
4271 # to ld, don't add -lc before -lgcc.
4272 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
4273 $rm conftest*
4274 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4275 -
4276 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4277 +
4278 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
4279 soname=conftest
4280 lib=conftest
4281 libobjs=conftest.$ac_objext
4282 deplibs=
4283 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4284 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4285 compiler_flags=-v
4286 linker_flags=-v
4287 verstring=
4288 @@ -5827,6 +6511,30 @@
4289 [AC_CHECK_TOOL(RC, windres, no)
4290 ])
4291
4292 +
4293 +# Cheap backport of AS_EXECUTABLE_P and required macros
4294 +# from Autoconf 2.59; we should not use $as_executable_p directly.
4295 +
4296 +# _AS_TEST_PREPARE
4297 +# ----------------
4298 +m4_ifndef([_AS_TEST_PREPARE],
4299 +[m4_defun([_AS_TEST_PREPARE],
4300 +[if test -x / >/dev/null 2>&1; then
4301 + as_executable_p='test -x'
4302 +else
4303 + as_executable_p='test -f'
4304 +fi
4305 +])])# _AS_TEST_PREPARE
4306 +
4307 +# AS_EXECUTABLE_P
4308 +# ---------------
4309 +# Check whether a file is executable.
4310 +m4_ifndef([AS_EXECUTABLE_P],
4311 +[m4_defun([AS_EXECUTABLE_P],
4312 +[AS_REQUIRE([_AS_TEST_PREPARE])dnl
4313 +$as_executable_p $1[]dnl
4314 +])])# AS_EXECUTABLE_P
4315 +
4316 ############################################################
4317 # NOTE: This macro has been submitted for inclusion into #
4318 # GNU Autoconf as AC_PROG_SED. When it is available in #
4319 @@ -5849,18 +6557,19 @@
4320 test -z "$as_dir" && as_dir=.
4321 for lt_ac_prog in sed gsed; do
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4324 + if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
4325 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4326 fi
4327 done
4328 done
4329 done
4330 +IFS=$as_save_IFS
4331 lt_ac_max=0
4332 lt_ac_count=0
4333 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4334 # along with /bin/sed that truncates output.
4335 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4336 - test ! -f $lt_ac_sed && break
4337 + test ! -f $lt_ac_sed && continue
4338 cat /dev/null > conftest.in
4339 lt_ac_count=0
4340 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4341 @@ -5887,5 +6596,6 @@
4342 done
4343 ])
4344 SED=$lt_cv_path_SED
4345 +AC_SUBST([SED])
4346 AC_MSG_RESULT([$SED])
4347 ])
4348 diff -Nrua a/admin/ltmain.sh b/admin/ltmain.sh
4349 --- a/admin/ltmain.sh 2007-10-08 13:34:50.000000000 +0200
4350 +++ b/admin/ltmain.sh 2008-01-21 23:31:58.000000000 +0100
4351 @@ -1,8 +1,8 @@
4352 # ltmain.sh - Provide generalized library-building support services.
4353 # NOTE: Changing this file will not affect anything until you rerun configure.
4354 #
4355 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
4356 -# Free Software Foundation, Inc.
4357 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
4358 +# 2007 Free Software Foundation, Inc.
4359 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4360 #
4361 # This program is free software; you can redistribute it and/or modify
4362 @@ -24,6 +24,42 @@
4363 # configuration script generated by Autoconf, you may include it under
4364 # the same distribution terms that you use for the rest of that program.
4365
4366 +basename="s,^.*/,,g"
4367 +
4368 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
4369 +# is ksh but when the shell is invoked as "sh" and the current value of
4370 +# the _XPG environment variable is not equal to 1 (one), the special
4371 +# positional parameter $0, within a function call, is the name of the
4372 +# function.
4373 +progpath="$0"
4374 +
4375 +# The name of this program:
4376 +progname=`echo "$progpath" | $SED $basename`
4377 +modename="$progname"
4378 +
4379 +# Global variables:
4380 +EXIT_SUCCESS=0
4381 +EXIT_FAILURE=1
4382 +
4383 +PROGRAM=ltmain.sh
4384 +PACKAGE=libtool
4385 +VERSION="1.5.24 Debian 1.5.24-2"
4386 +TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
4387 +
4388 +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
4389 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4390 + emulate sh
4391 + NULLCMD=:
4392 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4393 + # is contrary to our usage. Disable this feature.
4394 + alias -g '${1+"$@"}'='"$@"'
4395 + setopt NO_GLOB_SUBST
4396 +else
4397 + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
4398 +fi
4399 +BIN_SH=xpg4; export BIN_SH # for Tru64
4400 +DUALCASE=1; export DUALCASE # for MKS sh
4401 +
4402 # Check that we have a working $echo.
4403 if test "X$1" = X--no-reexec; then
4404 # Discard the --no-reexec flag, and continue.
4405 @@ -36,7 +72,7 @@
4406 :
4407 else
4408 # Restart under the correct shell, and then maybe $echo will work.
4409 - exec $SHELL "$0" --no-reexec ${1+"$@"}
4410 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
4411 fi
4412
4413 if test "X$1" = X--fallback-echo; then
4414 @@ -45,19 +81,9 @@
4415 cat <<EOF
4416 $*
4417 EOF
4418 - exit 0
4419 + exit $EXIT_SUCCESS
4420 fi
4421
4422 -# The name of this program.
4423 -progname=`$echo "$0" | ${SED} 's%^.*/%%'`
4424 -modename="$progname"
4425 -
4426 -# Constants.
4427 -PROGRAM=ltmain.sh
4428 -PACKAGE=libtool
4429 -VERSION=1.5a
4430 -TIMESTAMP=" (1.1240 2003/06/26 06:55:19)"
4431 -
4432 default_mode=
4433 help="Try \`$progname --help' for more information."
4434 magic="%%%MAGIC variable%%%"
4435 @@ -70,14 +96,15 @@
4436 Xsed="${SED}"' -e 1s/^X//'
4437 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
4438 # test EBCDIC or ASCII
4439 -case `echo A|tr A '\301'` in
4440 - A) # EBCDIC based system
4441 - SP2NL="tr '\100' '\n'"
4442 - NL2SP="tr '\r\n' '\100\100'"
4443 +case `echo X|tr X '\101'` in
4444 + A) # ASCII based system
4445 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4446 + SP2NL='tr \040 \012'
4447 + NL2SP='tr \015\012 \040\040'
4448 ;;
4449 - *) # Assume ASCII based system
4450 - SP2NL="tr '\040' '\012'"
4451 - NL2SP="tr '\015\012' '\040\040'"
4452 + *) # EBCDIC based system
4453 + SP2NL='tr \100 \n'
4454 + NL2SP='tr \r\n \100\100'
4455 ;;
4456 esac
4457
4458 @@ -86,20 +113,24 @@
4459 # These must not be set unconditionally because not all systems understand
4460 # e.g. LANG=C (notably SCO).
4461 # We save the old values to restore during execute mode.
4462 -if test "${LC_ALL+set}" = set; then
4463 - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
4464 -fi
4465 -if test "${LANG+set}" = set; then
4466 - save_LANG="$LANG"; LANG=C; export LANG
4467 -fi
4468 +for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
4469 +do
4470 + eval "if test \"\${$lt_var+set}\" = set; then
4471 + save_$lt_var=\$$lt_var
4472 + $lt_var=C
4473 + export $lt_var
4474 + fi"
4475 +done
4476
4477 # Make sure IFS has a sensible default
4478 -: ${IFS=" "}
4479 +lt_nl='
4480 +'
4481 +IFS=" $lt_nl"
4482
4483 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
4484 $echo "$modename: not configured to build any kind of library" 1>&2
4485 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
4486 - exit 1
4487 + exit $EXIT_FAILURE
4488 fi
4489
4490 # Global variables.
4491 @@ -111,17 +142,62 @@
4492 show="$echo"
4493 show_help=
4494 execute_dlfiles=
4495 +duplicate_deps=no
4496 +preserve_args=
4497 lo2o="s/\\.lo\$/.${objext}/"
4498 o2lo="s/\\.${objext}\$/.lo/"
4499 +extracted_archives=
4500 +extracted_serial=0
4501
4502 #####################################
4503 # Shell function definitions:
4504 # This seems to be the best place for them
4505
4506 +# func_mktempdir [string]
4507 +# Make a temporary directory that won't clash with other running
4508 +# libtool processes, and avoids race conditions if possible. If
4509 +# given, STRING is the basename for that directory.
4510 +func_mktempdir ()
4511 +{
4512 + my_template="${TMPDIR-/tmp}/${1-$progname}"
4513 +
4514 + if test "$run" = ":"; then
4515 + # Return a directory name, but don't create it in dry-run mode
4516 + my_tmpdir="${my_template}-$$"
4517 + else
4518 +
4519 + # If mktemp works, use that first and foremost
4520 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
4521 +
4522 + if test ! -d "$my_tmpdir"; then
4523 + # Failing that, at least try and use $RANDOM to avoid a race
4524 + my_tmpdir="${my_template}-${RANDOM-0}$$"
4525 +
4526 + save_mktempdir_umask=`umask`
4527 + umask 0077
4528 + $mkdir "$my_tmpdir"
4529 + umask $save_mktempdir_umask
4530 + fi
4531 +
4532 + # If we're not in dry-run mode, bomb out on failure
4533 + test -d "$my_tmpdir" || {
4534 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
4535 + exit $EXIT_FAILURE
4536 + }
4537 + fi
4538 +
4539 + $echo "X$my_tmpdir" | $Xsed
4540 +}
4541 +
4542 +
4543 +# func_win32_libid arg
4544 +# return the library type of file 'arg'
4545 +#
4546 # Need a lot of goo to handle *both* DLLs and import libs
4547 # Has to be a shell function in order to 'eat' the argument
4548 # that is supplied when $file_magic_command is called.
4549 -win32_libid () {
4550 +func_win32_libid ()
4551 +{
4552 win32_libid_type="unknown"
4553 win32_fileres=`file -L $1 2>/dev/null`
4554 case $win32_fileres in
4555 @@ -130,17 +206,22 @@
4556 ;;
4557 *ar\ archive*) # could be an import, or static
4558 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
4559 - grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
4560 + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
4561 win32_nmres=`eval $NM -f posix -A $1 | \
4562 - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
4563 - if test "X$win32_nmres" = "Ximport" ; then
4564 - win32_libid_type="x86 archive import"
4565 - else
4566 - win32_libid_type="x86 archive static"
4567 - fi
4568 + $SED -n -e '1,100{
4569 + / I /{
4570 + s,.*,import,
4571 + p
4572 + q
4573 + }
4574 + }'`
4575 + case $win32_nmres in
4576 + import*) win32_libid_type="x86 archive import";;
4577 + *) win32_libid_type="x86 archive static";;
4578 + esac
4579 fi
4580 ;;
4581 - *DLL*)
4582 + *DLL*)
4583 win32_libid_type="x86 DLL"
4584 ;;
4585 *executable*) # but shell scripts are "executable" too...
4586 @@ -154,9 +235,191 @@
4587 $echo $win32_libid_type
4588 }
4589
4590 +
4591 +# func_infer_tag arg
4592 +# Infer tagged configuration to use if any are available and
4593 +# if one wasn't chosen via the "--tag" command line option.
4594 +# Only attempt this if the compiler in the base compile
4595 +# command doesn't match the default compiler.
4596 +# arg is usually of the form 'gcc ...'
4597 +func_infer_tag ()
4598 +{
4599 + if test -n "$available_tags" && test -z "$tagname"; then
4600 + CC_quoted=
4601 + for arg in $CC; do
4602 + case $arg in
4603 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
4604 + arg="\"$arg\""
4605 + ;;
4606 + esac
4607 + CC_quoted="$CC_quoted $arg"
4608 + done
4609 + case $@ in
4610 + # Blanks in the command may have been stripped by the calling shell,
4611 + # but not from the CC environment variable when configure was run.
4612 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
4613 + # Blanks at the start of $base_compile will cause this to fail
4614 + # if we don't check for them as well.
4615 + *)
4616 + for z in $available_tags; do
4617 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
4618 + # Evaluate the configuration.
4619 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
4620 + CC_quoted=
4621 + for arg in $CC; do
4622 + # Double-quote args containing other shell metacharacters.
4623 + case $arg in
4624 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
4625 + arg="\"$arg\""
4626 + ;;
4627 + esac
4628 + CC_quoted="$CC_quoted $arg"
4629 + done
4630 + case "$@ " in
4631 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
4632 + # The compiler in the base compile command matches
4633 + # the one in the tagged configuration.
4634 + # Assume this is the tagged configuration we want.
4635 + tagname=$z
4636 + break
4637 + ;;
4638 + esac
4639 + fi
4640 + done
4641 + # If $tagname still isn't set, then no tagged configuration
4642 + # was found and let the user know that the "--tag" command
4643 + # line option must be used.
4644 + if test -z "$tagname"; then
4645 + $echo "$modename: unable to infer tagged configuration"
4646 + $echo "$modename: specify a tag with \`--tag'" 1>&2
4647 + exit $EXIT_FAILURE
4648 +# else
4649 +# $echo "$modename: using $tagname tagged configuration"
4650 + fi
4651 + ;;
4652 + esac
4653 + fi
4654 +}
4655 +
4656 +
4657 +# func_extract_an_archive dir oldlib
4658 +func_extract_an_archive ()
4659 +{
4660 + f_ex_an_ar_dir="$1"; shift
4661 + f_ex_an_ar_oldlib="$1"
4662 +
4663 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
4664 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
4665 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
4666 + :
4667 + else
4668 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
4669 + exit $EXIT_FAILURE
4670 + fi
4671 +}
4672 +
4673 +# func_extract_archives gentop oldlib ...
4674 +func_extract_archives ()
4675 +{
4676 + my_gentop="$1"; shift
4677 + my_oldlibs=${1+"$@"}
4678 + my_oldobjs=""
4679 + my_xlib=""
4680 + my_xabs=""
4681 + my_xdir=""
4682 + my_status=""
4683 +
4684 + $show "${rm}r $my_gentop"
4685 + $run ${rm}r "$my_gentop"
4686 + $show "$mkdir $my_gentop"
4687 + $run $mkdir "$my_gentop"
4688 + my_status=$?
4689 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
4690 + exit $my_status
4691 + fi
4692 +
4693 + for my_xlib in $my_oldlibs; do
4694 + # Extract the objects.
4695 + case $my_xlib in
4696 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
4697 + *) my_xabs=`pwd`"/$my_xlib" ;;
4698 + esac
4699 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
4700 + my_xlib_u=$my_xlib
4701 + while :; do
4702 + case " $extracted_archives " in
4703 + *" $my_xlib_u "*)
4704 + extracted_serial=`expr $extracted_serial + 1`
4705 + my_xlib_u=lt$extracted_serial-$my_xlib ;;
4706 + *) break ;;
4707 + esac
4708 + done
4709 + extracted_archives="$extracted_archives $my_xlib_u"
4710 + my_xdir="$my_gentop/$my_xlib_u"
4711 +
4712 + $show "${rm}r $my_xdir"
4713 + $run ${rm}r "$my_xdir"
4714 + $show "$mkdir $my_xdir"
4715 + $run $mkdir "$my_xdir"
4716 + exit_status=$?
4717 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
4718 + exit $exit_status
4719 + fi
4720 + case $host in
4721 + *-darwin*)
4722 + $show "Extracting $my_xabs"
4723 + # Do not bother doing anything if just a dry run
4724 + if test -z "$run"; then
4725 + darwin_orig_dir=`pwd`
4726 + cd $my_xdir || exit $?
4727 + darwin_archive=$my_xabs
4728 + darwin_curdir=`pwd`
4729 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
4730 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
4731 + if test -n "$darwin_arches"; then
4732 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
4733 + darwin_arch=
4734 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
4735 + for darwin_arch in $darwin_arches ; do
4736 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
4737 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
4738 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
4739 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
4740 + cd "$darwin_curdir"
4741 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
4742 + done # $darwin_arches
4743 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
4744 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
4745 + darwin_file=
4746 + darwin_files=
4747 + for darwin_file in $darwin_filelist; do
4748 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
4749 + lipo -create -output "$darwin_file" $darwin_files
4750 + done # $darwin_filelist
4751 + ${rm}r unfat-$$
4752 + cd "$darwin_orig_dir"
4753 + else
4754 + cd "$darwin_orig_dir"
4755 + func_extract_an_archive "$my_xdir" "$my_xabs"
4756 + fi # $darwin_arches
4757 + fi # $run
4758 + ;;
4759 + *)
4760 + func_extract_an_archive "$my_xdir" "$my_xabs"
4761 + ;;
4762 + esac
4763 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4764 + done
4765 + func_extract_archives_result="$my_oldobjs"
4766 +}
4767 # End of Shell function definitions
4768 #####################################
4769
4770 +# Darwin sucks
4771 +eval std_shrext=\"$shrext_cmds\"
4772 +
4773 +disable_libs=no
4774 +
4775 # Parse our command line options once, thoroughly.
4776 while test "$#" -gt 0
4777 do
4778 @@ -176,12 +439,13 @@
4779 ;;
4780 tag)
4781 tagname="$arg"
4782 + preserve_args="${preserve_args}=$arg"
4783
4784 # Check whether tagname contains only valid characters
4785 case $tagname in
4786 *[!-_A-Za-z0-9,/]*)
4787 $echo "$progname: invalid tag name: $tagname" 1>&2
4788 - exit 1
4789 + exit $EXIT_FAILURE
4790 ;;
4791 esac
4792
4793 @@ -191,10 +455,10 @@
4794 # not specially marked.
4795 ;;
4796 *)
4797 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
4798 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
4799 taglist="$taglist $tagname"
4800 # Evaluate the configuration.
4801 - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
4802 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
4803 else
4804 $echo "$progname: ignoring unknown tag $tagname" 1>&2
4805 fi
4806 @@ -218,26 +482,28 @@
4807 ;;
4808
4809 --version)
4810 - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
4811 - $echo
4812 - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
4813 - $echo "This is free software; see the source for copying conditions. There is NO"
4814 - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4815 - exit 0
4816 + echo "\
4817 +$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
4818 +
4819 +Copyright (C) 2007 Free Software Foundation, Inc.
4820 +This is free software; see the source for copying conditions. There is NO
4821 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4822 + exit $?
4823 ;;
4824
4825 --config)
4826 - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
4827 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
4828 # Now print the configurations for the tags.
4829 for tagname in $taglist; do
4830 - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0"
4831 + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
4832 done
4833 - exit 0
4834 + exit $?
4835 ;;
4836
4837 --debug)
4838 $echo "$progname: enabling shell trace mode"
4839 set -x
4840 + preserve_args="$preserve_args $arg"
4841 ;;
4842
4843 --dry-run | -n)
4844 @@ -256,7 +522,7 @@
4845 else
4846 $echo "disable static libraries"
4847 fi
4848 - exit 0
4849 + exit $?
4850 ;;
4851
4852 --finish) mode="finish" ;;
4853 @@ -268,13 +534,19 @@
4854
4855 --quiet | --silent)
4856 show=:
4857 + preserve_args="$preserve_args $arg"
4858 ;;
4859
4860 - --tag) prevopt="--tag" prev=tag ;;
4861 + --tag)
4862 + prevopt="--tag"
4863 + prev=tag
4864 + preserve_args="$preserve_args --tag"
4865 + ;;
4866 --tag=*)
4867 set tag "$optarg" ${1+"$@"}
4868 shift
4869 prev=tag
4870 + preserve_args="$preserve_args --tag"
4871 ;;
4872
4873 -dlopen)
4874 @@ -285,7 +557,7 @@
4875 -*)
4876 $echo "$modename: unrecognized option \`$arg'" 1>&2
4877 $echo "$help" 1>&2
4878 - exit 1
4879 + exit $EXIT_FAILURE
4880 ;;
4881
4882 *)
4883 @@ -298,9 +570,21 @@
4884 if test -n "$prevopt"; then
4885 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
4886 $echo "$help" 1>&2
4887 - exit 1
4888 + exit $EXIT_FAILURE
4889 fi
4890
4891 +case $disable_libs in
4892 +no)
4893 + ;;
4894 +shared)
4895 + build_libtool_libs=no
4896 + build_old_libs=yes
4897 + ;;
4898 +static)
4899 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
4900 + ;;
4901 +esac
4902 +
4903 # If this variable is set in any of the actions, the command in it
4904 # will be execed at the end. This prevents here-documents from being
4905 # left over by shells.
4906 @@ -311,7 +595,7 @@
4907 # Infer the operation mode.
4908 if test -z "$mode"; then
4909 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
4910 - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
4911 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
4912 case $nonopt in
4913 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
4914 mode=link
4915 @@ -354,7 +638,7 @@
4916 if test -n "$execute_dlfiles" && test "$mode" != execute; then
4917 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
4918 $echo "$help" 1>&2
4919 - exit 1
4920 + exit $EXIT_FAILURE
4921 fi
4922
4923 # Change the help message to a mode-specific one.
4924 @@ -369,13 +653,15 @@
4925 # Get the compilation command and the source file.
4926 base_compile=
4927 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
4928 + suppress_opt=yes
4929 suppress_output=
4930 arg_mode=normal
4931 libobj=
4932 + later=
4933
4934 for arg
4935 do
4936 - case "$arg_mode" in
4937 + case $arg_mode in
4938 arg )
4939 # do not "continue". Instead, add this to base_compile
4940 lastarg="$arg"
4941 @@ -394,24 +680,19 @@
4942 -o)
4943 if test -n "$libobj" ; then
4944 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
4945 - exit 1
4946 + exit $EXIT_FAILURE
4947 fi
4948 arg_mode=target
4949 continue
4950 ;;
4951
4952 - -static)
4953 - build_old_libs=yes
4954 + -static | -prefer-pic | -prefer-non-pic)
4955 + later="$later $arg"
4956 continue
4957 ;;
4958
4959 - -prefer-pic)
4960 - pic_mode=yes
4961 - continue
4962 - ;;
4963 -
4964 - -prefer-non-pic)
4965 - pic_mode=no
4966 + -no-suppress)
4967 + suppress_opt=no
4968 continue
4969 ;;
4970
4971 @@ -424,7 +705,7 @@
4972 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
4973 lastarg=
4974 save_ifs="$IFS"; IFS=','
4975 - for arg in $args; do
4976 + for arg in $args; do
4977 IFS="$save_ifs"
4978
4979 # Double-quote args containing other shell metacharacters.
4980 @@ -462,7 +743,10 @@
4981 case $lastarg in
4982 # Double-quote args containing other shell metacharacters.
4983 # Many Bourne shells cannot handle close brackets correctly
4984 - # in scan sets, so we specify it separately.
4985 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
4986 + # in scan sets (worked around with variable expansion),
4987 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
4988 + # at all, so we specify them separately.
4989 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
4990 lastarg="\"$lastarg\""
4991 ;;
4992 @@ -474,11 +758,11 @@
4993 case $arg_mode in
4994 arg)
4995 $echo "$modename: you must specify an argument for -Xcompile"
4996 - exit 1
4997 + exit $EXIT_FAILURE
4998 ;;
4999 target)
5000 $echo "$modename: you must specify a target with \`-o'" 1>&2
5001 - exit 1
5002 + exit $EXIT_FAILURE
5003 ;;
5004 *)
5005 # Get the name of the library object.
5006 @@ -500,9 +784,10 @@
5007 *.class) xform=class ;;
5008 *.cpp) xform=cpp ;;
5009 *.cxx) xform=cxx ;;
5010 - *.f90) xform=f90 ;;
5011 + *.[fF][09]?) xform=[fF][09]. ;;
5012 *.for) xform=for ;;
5013 *.java) xform=java ;;
5014 + *.obj) xform=obj ;;
5015 esac
5016
5017 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
5018 @@ -511,51 +796,39 @@
5019 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
5020 *)
5021 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
5022 - exit 1
5023 + exit $EXIT_FAILURE
5024 ;;
5025 esac
5026
5027 - # Infer tagged configuration to use if any are available and
5028 - # if one wasn't chosen via the "--tag" command line option.
5029 - # Only attempt this if the compiler in the base compile
5030 - # command doesn't match the default compiler.
5031 - if test -n "$available_tags" && test -z "$tagname"; then
5032 - case $base_compile in
5033 - # Blanks in the command may have been stripped by the calling shell,
5034 - # but not from the CC environment variable when configure was run.
5035 - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;;
5036 - # Blanks at the start of $base_compile will cause this to fail
5037 - # if we don't check for them as well.
5038 - *)
5039 - for z in $available_tags; do
5040 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
5041 - # Evaluate the configuration.
5042 - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
5043 - case "$base_compile " in
5044 - "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
5045 - # The compiler in the base compile command matches
5046 - # the one in the tagged configuration.
5047 - # Assume this is the tagged configuration we want.
5048 - tagname=$z
5049 - break
5050 - ;;
5051 - esac
5052 - fi
5053 - done
5054 - # If $tagname still isn't set, then no tagged configuration
5055 - # was found and let the user know that the "--tag" command
5056 - # line option must be used.
5057 - if test -z "$tagname"; then
5058 - $echo "$modename: unable to infer tagged configuration"
5059 - $echo "$modename: specify a tag with \`--tag'" 1>&2
5060 - exit 1
5061 -# else
5062 -# $echo "$modename: using $tagname tagged configuration"
5063 - fi
5064 + func_infer_tag $base_compile
5065 +
5066 + for arg in $later; do
5067 + case $arg in
5068 + -static)
5069 + build_old_libs=yes
5070 + continue
5071 + ;;
5072 +
5073 + -prefer-pic)
5074 + pic_mode=yes
5075 + continue
5076 + ;;
5077 +
5078 + -prefer-non-pic)
5079 + pic_mode=no
5080 + continue
5081 ;;
5082 esac
5083 - fi
5084 + done
5085
5086 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
5087 + case $qlibobj in
5088 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5089 + qlibobj="\"$qlibobj\"" ;;
5090 + esac
5091 + test "X$libobj" != "X$qlibobj" \
5092 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
5093 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
5094 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5095 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
5096 if test "X$xdir" = "X$obj"; then
5097 @@ -568,7 +841,7 @@
5098 if test -z "$base_compile"; then
5099 $echo "$modename: you must specify a compilation command" 1>&2
5100 $echo "$help" 1>&2
5101 - exit 1
5102 + exit $EXIT_FAILURE
5103 fi
5104
5105 # Delete any leftover library objects.
5106 @@ -579,7 +852,7 @@
5107 fi
5108
5109 $run $rm $removelist
5110 - trap "$run $rm $removelist; exit 1" 1 2 15
5111 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
5112
5113 # On Cygwin there's no "real" PIC flag so we must build both object types
5114 case $host_os in
5115 @@ -598,7 +871,7 @@
5116 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
5117 lockfile="$output_obj.lock"
5118 removelist="$removelist $output_obj $lockfile"
5119 - trap "$run $rm $removelist; exit 1" 1 2 15
5120 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
5121 else
5122 output_obj=
5123 need_locks=no
5124 @@ -608,7 +881,7 @@
5125 # Lock this critical section if it is needed
5126 # We use this script file to make the link, it avoids creating a new file
5127 if test "$need_locks" = yes; then
5128 - until $run ln "$0" "$lockfile" 2>/dev/null; do
5129 + until $run ln "$progpath" "$lockfile" 2>/dev/null; do
5130 $show "Waiting for $lockfile to be removed"
5131 sleep 2
5132 done
5133 @@ -626,14 +899,19 @@
5134 compiler."
5135
5136 $run $rm $removelist
5137 - exit 1
5138 + exit $EXIT_FAILURE
5139 fi
5140 - $echo $srcfile > "$lockfile"
5141 + $echo "$srcfile" > "$lockfile"
5142 fi
5143
5144 if test -n "$fix_srcfile_path"; then
5145 eval srcfile=\"$fix_srcfile_path\"
5146 fi
5147 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
5148 + case $qsrcfile in
5149 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5150 + qsrcfile="\"$qsrcfile\"" ;;
5151 + esac
5152
5153 $run $rm "$libobj" "${libobj}T"
5154
5155 @@ -655,18 +933,18 @@
5156 fbsd_hideous_sh_bug=$base_compile
5157
5158 if test "$pic_mode" != no; then
5159 - command="$base_compile $srcfile $pic_flag"
5160 + command="$base_compile $qsrcfile $pic_flag"
5161 else
5162 # Don't build PIC code
5163 - command="$base_compile $srcfile"
5164 + command="$base_compile $qsrcfile"
5165 fi
5166
5167 if test ! -d "${xdir}$objdir"; then
5168 $show "$mkdir ${xdir}$objdir"
5169 $run $mkdir ${xdir}$objdir
5170 - status=$?
5171 - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
5172 - exit $status
5173 + exit_status=$?
5174 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
5175 + exit $exit_status
5176 fi
5177 fi
5178
5179 @@ -681,7 +959,7 @@
5180 if $run eval "$command"; then :
5181 else
5182 test -n "$output_obj" && $run $rm $removelist
5183 - exit 1
5184 + exit $EXIT_FAILURE
5185 fi
5186
5187 if test "$need_locks" = warn &&
5188 @@ -701,7 +979,7 @@
5189 compiler."
5190
5191 $run $rm $removelist
5192 - exit 1
5193 + exit $EXIT_FAILURE
5194 fi
5195
5196 # Just move the object if needed, then go on to compile the next one
5197 @@ -722,7 +1000,9 @@
5198 EOF
5199
5200 # Allow error messages only from the first compilation.
5201 - suppress_output=' >/dev/null 2>&1'
5202 + if test "$suppress_opt" = yes; then
5203 + suppress_output=' >/dev/null 2>&1'
5204 + fi
5205 else
5206 # No PIC object so indicate it doesn't exist in the libtool
5207 # object file.
5208 @@ -736,9 +1016,9 @@
5209 if test "$build_old_libs" = yes; then
5210 if test "$pic_mode" != yes; then
5211 # Don't build PIC code
5212 - command="$base_compile $srcfile"
5213 + command="$base_compile $qsrcfile"
5214 else
5215 - command="$base_compile $srcfile $pic_flag"
5216 + command="$base_compile $qsrcfile $pic_flag"
5217 fi
5218 if test "$compiler_c_o" = yes; then
5219 command="$command -o $obj"
5220 @@ -751,7 +1031,7 @@
5221 if $run eval "$command"; then :
5222 else
5223 $run $rm $removelist
5224 - exit 1
5225 + exit $EXIT_FAILURE
5226 fi
5227
5228 if test "$need_locks" = warn &&
5229 @@ -771,7 +1051,7 @@
5230 compiler."
5231
5232 $run $rm $removelist
5233 - exit 1
5234 + exit $EXIT_FAILURE
5235 fi
5236
5237 # Just move the object if needed
5238 @@ -809,7 +1089,7 @@
5239 $run $rm "$lockfile"
5240 fi
5241
5242 - exit 0
5243 + exit $EXIT_SUCCESS
5244 ;;
5245
5246 # libtool link mode
5247 @@ -835,7 +1115,7 @@
5248 ;;
5249 esac
5250 libtool_args="$nonopt"
5251 - base_compile="$nonopt"
5252 + base_compile="$nonopt $@"
5253 compile_command="$nonopt"
5254 finalize_command="$nonopt"
5255
5256 @@ -847,7 +1127,6 @@
5257 old_convenience=
5258 deplibs=
5259 old_deplibs=
5260 - add_flags=
5261 compiler_flags=
5262 linker_flags=
5263 dllsearchpath=
5264 @@ -868,6 +1147,8 @@
5265 no_install=no
5266 objs=
5267 non_pic_objects=
5268 + notinst_path= # paths that contain not-installed libtool libraries
5269 + precious_files_regex=
5270 prefer_static_libs=no
5271 preload=no
5272 prev=
5273 @@ -881,26 +1162,38 @@
5274 vinfo=
5275 vinfo_number=no
5276
5277 + func_infer_tag $base_compile
5278 +
5279 # We need to know -static, to get the right output filenames.
5280 for arg
5281 do
5282 case $arg in
5283 - -all-static | -static)
5284 - if test "X$arg" = "X-all-static"; then
5285 + -all-static | -static | -static-libtool-libs)
5286 + case $arg in
5287 + -all-static)
5288 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5289 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
5290 fi
5291 if test -n "$link_static_flag"; then
5292 dlopen_self=$dlopen_self_static
5293 fi
5294 - else
5295 + prefer_static_libs=yes
5296 + ;;
5297 + -static)
5298 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5299 dlopen_self=$dlopen_self_static
5300 fi
5301 - fi
5302 + prefer_static_libs=built
5303 + ;;
5304 + -static-libtool-libs)
5305 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
5306 + dlopen_self=$dlopen_self_static
5307 + fi
5308 + prefer_static_libs=yes
5309 + ;;
5310 + esac
5311 build_libtool_libs=no
5312 build_old_libs=yes
5313 - prefer_static_libs=yes
5314 break
5315 ;;
5316 esac
5317 @@ -912,7 +1205,6 @@
5318 # Go through the arguments, transforming them on the way.
5319 while test "$#" -gt 0; do
5320 arg="$1"
5321 - base_compile="$base_compile $arg"
5322 shift
5323 case $arg in
5324 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5325 @@ -976,7 +1268,7 @@
5326 export_symbols="$arg"
5327 if test ! -f "$arg"; then
5328 $echo "$modename: symbol file \`$arg' does not exist"
5329 - exit 1
5330 + exit $EXIT_FAILURE
5331 fi
5332 prev=
5333 continue
5334 @@ -991,6 +1283,11 @@
5335 prev=
5336 continue
5337 ;;
5338 + precious_regex)
5339 + precious_files_regex="$arg"
5340 + prev=
5341 + continue
5342 + ;;
5343 release)
5344 release="-$arg"
5345 prev=
5346 @@ -1023,7 +1320,7 @@
5347 test "$pic_object" = none && \
5348 test "$non_pic_object" = none; then
5349 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
5350 - exit 1
5351 + exit $EXIT_FAILURE
5352 fi
5353
5354 # Extract subdirectory from the argument.
5355 @@ -1071,12 +1368,17 @@
5356 if test -z "$pic_object" || test "$pic_object" = none ; then
5357 arg="$non_pic_object"
5358 fi
5359 + else
5360 + # If the PIC object exists, use it instead.
5361 + # $xdir was prepended to $pic_object above.
5362 + non_pic_object="$pic_object"
5363 + non_pic_objects="$non_pic_objects $non_pic_object"
5364 fi
5365 else
5366 # Only an error if not doing a dry-run.
5367 if test -z "$run"; then
5368 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
5369 - exit 1
5370 + exit $EXIT_FAILURE
5371 else
5372 # Dry-run case.
5373
5374 @@ -1097,7 +1399,7 @@
5375 done
5376 else
5377 $echo "$modename: link input file \`$save_arg' does not exist"
5378 - exit 1
5379 + exit $EXIT_FAILURE
5380 fi
5381 arg=$save_arg
5382 prev=
5383 @@ -1109,7 +1411,7 @@
5384 [\\/]* | [A-Za-z]:[\\/]*) ;;
5385 *)
5386 $echo "$modename: only absolute run-paths are allowed" 1>&2
5387 - exit 1
5388 + exit $EXIT_FAILURE
5389 ;;
5390 esac
5391 if test "$prev" = rpath; then
5392 @@ -1149,16 +1451,15 @@
5393 finalize_command="$finalize_command $qarg"
5394 continue
5395 ;;
5396 - framework)
5397 - case $host in
5398 - *-*-darwin*)
5399 - case "$deplibs " in
5400 - *" $qarg.ltframework "*) ;;
5401 - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
5402 - ;;
5403 - esac
5404 - ;;
5405 - esac
5406 + shrext)
5407 + shrext_cmds="$arg"
5408 + prev=
5409 + continue
5410 + ;;
5411 + darwin_framework|darwin_framework_skip)
5412 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
5413 + compile_command="$compile_command $arg"
5414 + finalize_command="$finalize_command $arg"
5415 prev=
5416 continue
5417 ;;
5418 @@ -1210,7 +1511,7 @@
5419 -export-symbols | -export-symbols-regex)
5420 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5421 $echo "$modename: more than one -exported-symbols argument is not allowed"
5422 - exit 1
5423 + exit $EXIT_FAILURE
5424 fi
5425 if test "X$arg" = "X-export-symbols"; then
5426 prev=expsyms
5427 @@ -1220,6 +1521,18 @@
5428 continue
5429 ;;
5430
5431 + -framework|-arch|-isysroot)
5432 + case " $CC " in
5433 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
5434 + prev=darwin_framework_skip ;;
5435 + *) compiler_flags="$compiler_flags $arg"
5436 + prev=darwin_framework ;;
5437 + esac
5438 + compile_command="$compile_command $arg"
5439 + finalize_command="$finalize_command $arg"
5440 + continue
5441 + ;;
5442 +
5443 -inst-prefix-dir)
5444 prev=inst_prefix
5445 continue
5446 @@ -1246,7 +1559,8 @@
5447 absdir=`cd "$dir" && pwd`
5448 if test -z "$absdir"; then
5449 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
5450 - exit 1
5451 + absdir="$dir"
5452 + notinst_path="$notinst_path $dir"
5453 fi
5454 dir="$absdir"
5455 ;;
5456 @@ -1260,10 +1574,15 @@
5457 esac
5458 case $host in
5459 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
5460 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
5461 case :$dllsearchpath: in
5462 *":$dir:"*) ;;
5463 *) dllsearchpath="$dllsearchpath:$dir";;
5464 esac
5465 + case :$dllsearchpath: in
5466 + *":$testbindir:"*) ;;
5467 + *) dllsearchpath="$dllsearchpath:$testbindir";;
5468 + esac
5469 ;;
5470 esac
5471 continue
5472 @@ -1272,26 +1591,35 @@
5473 -l*)
5474 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5475 case $host in
5476 - *-*-cygwin* | *-*-pw32* | *-*-beos*)
5477 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
5478 # These systems don't actually have a C or math library (as such)
5479 continue
5480 ;;
5481 - *-*-mingw* | *-*-os2*)
5482 + *-*-os2*)
5483 # These systems don't actually have a C library (as such)
5484 test "X$arg" = "X-lc" && continue
5485 ;;
5486 - *-*-openbsd* | *-*-freebsd*)
5487 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5488 # Do not include libc due to us having libc/libc_r.
5489 test "X$arg" = "X-lc" && continue
5490 ;;
5491 *-*-rhapsody* | *-*-darwin1.[012])
5492 # Rhapsody C and math libraries are in the System framework
5493 - deplibs="$deplibs System.ltframework"
5494 + deplibs="$deplibs -framework System"
5495 continue
5496 + ;;
5497 + *-*-sco3.2v5* | *-*-sco5v6*)
5498 + # Causes problems with __ctype
5499 + test "X$arg" = "X-lc" && continue
5500 + ;;
5501 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5502 + # Compiler inserts libc in the correct place for threads to work
5503 + test "X$arg" = "X-lc" && continue
5504 + ;;
5505 esac
5506 elif test "X$arg" = "X-lc_r"; then
5507 case $host in
5508 - *-*-openbsd*)
5509 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5510 # Do not include libc_r directly, use -pthread flag.
5511 continue
5512 ;;
5513 @@ -1301,18 +1629,42 @@
5514 continue
5515 ;;
5516
5517 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
5518 + # classes, name mangling, and exception handling.
5519 + -model)
5520 + compile_command="$compile_command $arg"
5521 + compiler_flags="$compiler_flags $arg"
5522 + finalize_command="$finalize_command $arg"
5523 + prev=xcompiler
5524 + continue
5525 + ;;
5526 +
5527 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
5528 + compiler_flags="$compiler_flags $arg"
5529 + compile_command="$compile_command $arg"
5530 + finalize_command="$finalize_command $arg"
5531 + continue
5532 + ;;
5533 +
5534 -module)
5535 module=yes
5536 continue
5537 ;;
5538
5539 - # gcc -m* arguments should be passed to the linker via $compiler_flags
5540 - # in order to pass architecture information to the linker
5541 - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
5542 - # but this is not reliable with gcc because gcc may use -mfoo to
5543