/[pkg-kde]/tags/packages/kdenetwork/kdenetwork-3.5.0-3/debian/patches/98_buildprep.diff
ViewVC logotype

Contents of /tags/packages/kdenetwork/kdenetwork-3.5.0-3/debian/patches/98_buildprep.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2781 - (show annotations) (download)
Sat Jan 7 23:36:53 2006 UTC (7 years, 4 months ago) by chrsmrtn
File size: 1215119 byte(s)
Tagging kdenetwork.
1 #DPATCHLEVEL=0
2 # vi: ft=diff
3 --- acinclude.m4
4 +++ acinclude.m4
5 @@ -1689,15 +1689,6 @@
6 KDE_USE_CLOSURE_TRUE="#"
7 KDE_USE_CLOSURE_FALSE=""
8 KDE_NO_UNDEFINED=""
9 - case $host in
10 - *-*-linux-gnu)
11 - KDE_CHECK_COMPILER_FLAG([Wl,--no-undefined],
12 - [KDE_CHECK_COMPILER_FLAG([Wl,--allow-shlib-undefined],
13 - [KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"],
14 - [KDE_NO_UNDEFINED=""])],
15 - [KDE_NO_UNDEFINED=""])
16 - ;;
17 - esac
18 fi
19 AC_SUBST(KDE_USE_CLOSURE_TRUE)
20 AC_SUBST(KDE_USE_CLOSURE_FALSE)
21 @@ -2144,9 +2135,6 @@
22 save_CXXFLAGS="$CXXFLAGS"
23 kde_safe_LIBS="$LIBS"
24 LIBS="$LIBS $X_EXTRA_LIBS"
25 -if test "$GXX" = "yes"; then
26 -CXXFLAGS="$CXXFLAGS -pedantic-errors"
27 -fi
28 AC_TRY_COMPILE([
29 $2
30 ],
31 @@ -5917,30 +5905,15 @@
32 fi
33 ])
34 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
35 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001
36 +## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
37 ## Free Software Foundation, Inc.
38 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
39 ##
40 -## This program is free software; you can redistribute it and/or modify
41 -## it under the terms of the GNU General Public License as published by
42 -## the Free Software Foundation; either version 2 of the License, or
43 -## (at your option) any later version.
44 -##
45 -## This program is distributed in the hope that it will be useful, but
46 -## WITHOUT ANY WARRANTY; without even the implied warranty of
47 -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
48 -## General Public License for more details.
49 -##
50 -## You should have received a copy of the GNU General Public License
51 -## along with this program; if not, write to the Free Software
52 -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
53 -##
54 -## As a special exception to the GNU General Public License, if you
55 -## distribute this file as part of a program that contains a
56 -## configuration script generated by Autoconf, you may include it under
57 -## the same distribution terms that you use for the rest of that program.
58 +## This file is free software; the Free Software Foundation gives
59 +## unlimited permission to copy and/or distribute it, with or without
60 +## modifications, as long as this notice is preserved.
61
62 -# serial 47 AC_PROG_LIBTOOL
63 +# serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL
64
65
66 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
67 @@ -6000,7 +5973,7 @@
68 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
69
70 # Always use our own libtool.
71 -LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
72 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
73 AC_SUBST(LIBTOOL)dnl
74
75 # Prevent multiple expansion
76 @@ -6050,7 +6023,7 @@
77
78 # Sed substitution that helps us do robust quoting. It backslashifies
79 # metacharacters that are still active within double-quoted strings.
80 -Xsed='sed -e s/^X//'
81 +Xsed='sed -e 1s/^X//'
82 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
83
84 # Same as above, but do not quote variable references.
85 @@ -6070,7 +6043,7 @@
86 default_ofile=libtool
87 can_build_shared=yes
88
89 -# All known linkers require a `.a' archive for static linking (except M$VC,
90 +# All known linkers require a `.a' archive for static linking (except MSVC,
91 # which needs '.lib').
92 libext=a
93 ltmain="$ac_aux_dir/ltmain.sh"
94 @@ -6118,6 +6091,8 @@
95 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
96 fi
97
98 +_LT_CC_BASENAME([$compiler])
99 +
100 # Only perform the check for file, if the check method requires it
101 case $deplibs_check_method in
102 file_magic*)
103 @@ -6163,6 +6138,48 @@
104 ])# _LT_AC_SYS_COMPILER
105
106
107 +# _LT_CC_BASENAME(CC)
108 +# -------------------
109 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
110 +AC_DEFUN([_LT_CC_BASENAME],
111 +[for cc_temp in $1""; do
112 + case $cc_temp in
113 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
114 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
115 + \-*) ;;
116 + *) break;;
117 + esac
118 +done
119 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
120 +])
121 +
122 +
123 +# _LT_COMPILER_BOILERPLATE
124 +# ------------------------
125 +# Check for compiler boilerplate output or warnings with
126 +# the simple compiler test code.
127 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
128 +[ac_outfile=conftest.$ac_objext
129 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
130 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
131 +_lt_compiler_boilerplate=`cat conftest.err`
132 +$rm conftest*
133 +])# _LT_COMPILER_BOILERPLATE
134 +
135 +
136 +# _LT_LINKER_BOILERPLATE
137 +# ----------------------
138 +# Check for linker boilerplate output or warnings with
139 +# the simple link test code.
140 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
141 +[ac_outfile=conftest.$ac_objext
142 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
143 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
144 +_lt_linker_boilerplate=`cat conftest.err`
145 +$rm conftest*
146 +])# _LT_LINKER_BOILERPLATE
147 +
148 +
149 # _LT_AC_SYS_LIBPATH_AIX
150 # ----------------------
151 # Links a minimal program and checks the executable
152 @@ -6235,15 +6252,15 @@
153
154 # The HP-UX ksh and POSIX shell print the target directory to stdout
155 # if CDPATH is set.
156 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
157 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
158
159 if test -z "$ECHO"; then
160 if test "X${echo_test_string+set}" != Xset; then
161 # find a string as large as possible, as long as the shell can cope with it
162 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
163 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
164 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
165 - echo_test_string="`eval $cmd`" &&
166 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
167 + echo_test_string=`eval $cmd` &&
168 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
169 then
170 break
171 @@ -6412,14 +6429,13 @@
172 # Find out which ABI we are using.
173 echo 'int i;' > conftest.$ac_ext
174 if AC_TRY_EVAL(ac_compile); then
175 - case "`/usr/bin/file conftest.o`" in
176 + case `/usr/bin/file conftest.o` in
177 *32-bit*)
178 - LINUX_64_MODE="32"
179 case $host in
180 x86_64-*linux*)
181 LD="${LD-ld} -m elf_i386"
182 ;;
183 - ppc64-*linux*)
184 + ppc64-*linux*|powerpc64-*linux*)
185 LD="${LD-ld} -m elf32ppclinux"
186 ;;
187 s390x-*linux*)
188 @@ -6431,7 +6447,6 @@
189 esac
190 ;;
191 *64-bit*)
192 - LINUX_64_MODE="64"
193 case $host in
194 x86_64-*linux*)
195 LD="${LD-ld} -m elf_x86_64"
196 @@ -6496,7 +6511,7 @@
197 # with a dollar sign (not a hyphen), so the echo should work correctly.
198 # The option is referenced via a variable to avoid confusing sed.
199 lt_compile=`echo "$ac_compile" | $SED \
200 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
201 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
202 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
203 -e 's:$: $lt_compiler_flag:'`
204 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
205 @@ -6506,8 +6521,10 @@
206 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
207 if (exit $ac_status) && test -s "$ac_outfile"; then
208 # The compiler can only warn and ignore the option if not recognized
209 - # So say no if there are warnings
210 - if test ! -s conftest.err; then
211 + # So say no if there are warnings other than the usual output.
212 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
213 + $SED '/^$/d' conftest.err >conftest.er2
214 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
215 $2=yes
216 fi
217 fi
218 @@ -6533,11 +6550,16 @@
219 LDFLAGS="$LDFLAGS $3"
220 printf "$lt_simple_link_test_code" > conftest.$ac_ext
221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
222 - # The compiler can only warn and ignore the option if not recognized
223 + # The linker can only warn and ignore the option if not recognized
224 # So say no if there are warnings
225 if test -s conftest.err; then
226 # Append any errors to the config.log.
227 cat conftest.err 1>&AS_MESSAGE_LOG_FD
228 + $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
229 + $SED '/^$/d' conftest.err >conftest.er2
230 + if diff conftest.exp conftest.er2 >/dev/null; then
231 + $2=yes
232 + fi
233 else
234 $2=yes
235 fi
236 @@ -6561,7 +6583,7 @@
237 AC_MSG_CHECKING([the maximum length of command line arguments])
238 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
239 i=0
240 - testring="ABCD"
241 + teststring="ABCD"
242
243 case $build_os in
244 msdosdjgpp*)
245 @@ -6590,20 +6612,53 @@
246 lt_cv_sys_max_cmd_len=8192;
247 ;;
248
249 - *)
250 + amigaos*)
251 + # On AmigaOS with pdksh, this test takes hours, literally.
252 + # So we just punt and use a minimum line length of 8192.
253 + lt_cv_sys_max_cmd_len=8192;
254 + ;;
255 +
256 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
257 + # This has been around since 386BSD, at least. Likely further.
258 + if test -x /sbin/sysctl; then
259 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
260 + elif test -x /usr/sbin/sysctl; then
261 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
262 + else
263 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
264 + fi
265 + # And add a safety zone
266 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
267 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
268 + ;;
269 + osf*)
270 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
271 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
272 + # nice to cause kernel panics so lets avoid the loop below.
273 + # First set a reasonable default.
274 + lt_cv_sys_max_cmd_len=16384
275 + #
276 + if test -x /sbin/sysconfig; then
277 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
278 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
279 + esac
280 + fi
281 + ;;
282 + *)
283 # If test is not a shell built-in, we'll probably end up computing a
284 # maximum length that is only half of the actual maximum length, but
285 # we can't tell.
286 - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
287 - = "XX$testring") >/dev/null 2>&1 &&
288 - new_result=`expr "X$testring" : ".*" 2>&1` &&
289 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
290 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
291 + = "XX$teststring") >/dev/null 2>&1 &&
292 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
293 lt_cv_sys_max_cmd_len=$new_result &&
294 test $i != 17 # 1/2 MB should be enough
295 do
296 i=`expr $i + 1`
297 - testring=$testring$testring
298 + teststring=$teststring$teststring
299 done
300 - testring=
301 + teststring=
302 # Add a significant safety factor because C++ compilers can tack on massive
303 # amounts of additional arguments before passing them to the linker.
304 # It appears as though 1/2 is a usable value.
305 @@ -6699,7 +6754,7 @@
306 }]
307 EOF
308 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
309 - (./conftest; exit; ) 2>/dev/null
310 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
311 lt_status=$?
312 case x$lt_status in
313 x$lt_dlno_uscore) $1 ;;
314 @@ -6753,7 +6808,7 @@
315 lt_cv_dlopen_self=yes
316 ])
317 ;;
318 -
319 +
320 *)
321 AC_CHECK_FUNC([shl_load],
322 [lt_cv_dlopen="shl_load"],
323 @@ -6842,20 +6897,13 @@
324 mkdir out
325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
326
327 - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
328 - # that will create temporary files in the current directory regardless of
329 - # the output directory. Thus, making CWD read-only will cause this test
330 - # to fail, enabling locking or at least warning the user not to do parallel
331 - # builds.
332 - chmod -w .
333 -
334 lt_compiler_flag="-o out/conftest2.$ac_objext"
335 # Insert the option either (1) after the last *FLAGS variable, or
336 # (2) before a word containing "conftest.", or (3) at the end.
337 # Note that $ac_compile itself does not contain backslashes and begins
338 # with a dollar sign (not a hyphen), so the echo should work correctly.
339 lt_compile=`echo "$ac_compile" | $SED \
340 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
341 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
342 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
343 -e 's:$: $lt_compiler_flag:'`
344 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
345 @@ -6867,13 +6915,18 @@
346 then
347 # The compiler can only warn and ignore the option if not recognized
348 # So say no if there are warnings
349 - if test ! -s out/conftest.err; then
350 + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
351 + $SED '/^$/d' out/conftest.err >out/conftest.er2
352 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
353 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
354 fi
355 fi
356 - chmod u+w .
357 - $rm conftest* out/*
358 - rmdir out
359 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
360 + $rm conftest*
361 + # SGI C++ compiler will create directory out/ii_files/ for
362 + # template instantiation
363 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
364 + $rm out/* && rmdir out
365 cd ..
366 rmdir conftest
367 $rm conftest*
368 @@ -6932,8 +6985,8 @@
369 [AC_MSG_CHECKING([how to hardcode library paths into programs])
370 _LT_AC_TAGVAR(hardcode_action, $1)=
371 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
372 - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
373 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
374 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
375 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
376
377 # We can hardcode non-existant directories.
378 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
379 @@ -6990,7 +7043,7 @@
380 *)
381 AC_MSG_RESULT([no])
382 ;;
383 - esac
384 + esac
385 fi
386 ])# AC_LIBTOOL_SYS_LIB_STRIP
387
388 @@ -7003,7 +7056,7 @@
389 library_names_spec=
390 libname_spec='lib$name'
391 soname_spec=
392 -shrext=".so"
393 +shrext_cmds=".so"
394 postinstall_cmds=
395 postuninstall_cmds=
396 finish_cmds=
397 @@ -7013,7 +7066,20 @@
398 version_type=none
399 dynamic_linker="$host_os ld.so"
400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
401 -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
402 +if test "$GCC" = yes; then
403 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
404 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
405 + # if the path contains ";" then we assume it to be the separator
406 + # otherwise default to the standard path separator (i.e. ":") - it is
407 + # assumed that no part of a normal pathname contains ";" but that should
408 + # okay in the real world where ";" in dirpaths is itself problematic.
409 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
410 + else
411 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
412 + fi
413 +else
414 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
415 +fi
416 need_lib_prefix=unknown
417 hardcode_into_libs=no
418
419 @@ -7078,7 +7144,7 @@
420 amigaos*)
421 library_names_spec='$libname.ixlibrary $libname.a'
422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
423 - 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'
424 + 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'
425 ;;
426
427 beos*)
428 @@ -7087,7 +7153,7 @@
429 shlibpath_var=LIBRARY_PATH
430 ;;
431
432 -bsdi4*)
433 +bsdi[[45]]*)
434 version_type=linux
435 need_version=no
436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
437 @@ -7103,7 +7169,7 @@
438
439 cygwin* | mingw* | pw32*)
440 version_type=windows
441 - shrext=".dll"
442 + shrext_cmds=".dll"
443 need_version=no
444 need_lib_prefix=no
445
446 @@ -7115,7 +7181,8 @@
447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
448 dldir=$destdir/`dirname \$dlpath`~
449 test -d \$dldir || mkdir -p \$dldir~
450 - $install_prog $dir/$dlname \$dldir/$dlname'
451 + $install_prog $dir/$dlname \$dldir/$dlname~
452 + chmod a+x \$dldir/$dlname'
453 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
454 dlpath=$dir/\$dldll~
455 $rm \$dlpath'
456 @@ -7145,7 +7212,7 @@
457 ;;
458 pw32*)
459 # pw32 DLLs use 'pw' prefix rather than 'lib'
460 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
461 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
462 ;;
463 esac
464 ;;
465 @@ -7168,7 +7235,7 @@
466 soname_spec='${libname}${release}${major}$shared_ext'
467 shlibpath_overrides_runpath=yes
468 shlibpath_var=DYLD_LIBRARY_PATH
469 - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
470 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
471 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
472 if test "$GCC" = yes; then
473 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"`
474 @@ -7191,7 +7258,7 @@
475 dynamic_linker=no
476 ;;
477
478 -kfreebsd*-gnu*)
479 +kfreebsd*-gnu)
480 version_type=linux
481 need_lib_prefix=no
482 need_version=no
483 @@ -7203,8 +7270,17 @@
484 dynamic_linker='GNU ld.so'
485 ;;
486
487 -freebsd*)
488 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
489 +freebsd* | dragonfly*)
490 + # DragonFly does not have aout. When/if they implement a new
491 + # versioning mechanism, adjust this.
492 + if test -x /usr/bin/objformat; then
493 + objformat=`/usr/bin/objformat`
494 + else
495 + case $host_os in
496 + freebsd[[123]]*) objformat=aout ;;
497 + *) objformat=elf ;;
498 + esac
499 + fi
500 version_type=freebsd-$objformat
501 case $version_type in
502 freebsd-elf*)
503 @@ -7222,7 +7298,7 @@
504 freebsd2*)
505 shlibpath_overrides_runpath=yes
506 ;;
507 - freebsd3.[01]* | freebsdelf3.[01]*)
508 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
509 shlibpath_overrides_runpath=yes
510 hardcode_into_libs=yes
511 ;;
512 @@ -7249,9 +7325,9 @@
513 version_type=sunos
514 need_lib_prefix=no
515 need_version=no
516 - case "$host_cpu" in
517 + case $host_cpu in
518 ia64*)
519 - shrext='.so'
520 + shrext_cmds='.so'
521 hardcode_into_libs=yes
522 dynamic_linker="$host_os dld.so"
523 shlibpath_var=LD_LIBRARY_PATH
524 @@ -7266,7 +7342,7 @@
525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
526 ;;
527 hppa*64*)
528 - shrext='.sl'
529 + shrext_cmds='.sl'
530 hardcode_into_libs=yes
531 dynamic_linker="$host_os dld.sl"
532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
533 @@ -7277,7 +7353,7 @@
534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
535 ;;
536 *)
537 - shrext='.sl'
538 + shrext_cmds='.sl'
539 dynamic_linker="$host_os dld.sl"
540 shlibpath_var=SHLIB_PATH
541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
542 @@ -7339,22 +7415,19 @@
543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
544 soname_spec='${libname}${release}${shared_ext}$major'
545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
546 - libsuff=
547 - if test "x$LINUX_64_MODE" = x64; then
548 - # Some platforms are per default 64-bit, so there's no /lib64
549 - if test -d /lib64; then
550 - libsuff=64
551 - fi
552 - fi
553 shlibpath_var=LD_LIBRARY_PATH
554 shlibpath_overrides_runpath=no
555 - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
556 - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
557 # This implies no fast_install, which is unacceptable.
558 # Some rework will be needed to allow for fast_install
559 # before this can be enabled.
560 hardcode_into_libs=yes
561
562 + # Append ld.so.conf contents to the search path
563 + if test -f /etc/ld.so.conf; then
564 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
565 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
566 + fi
567 +
568 # We used to test for /lib/ld.so.1 and disable shared libraries on
569 # powerpc, because MkLinux only supported shared libraries with the
570 # GNU dynamic linker. Since this was broken with cross compilers,
571 @@ -7364,6 +7437,30 @@
572 dynamic_linker='GNU/Linux ld.so'
573 ;;
574
575 +netbsdelf*-gnu)
576 + version_type=linux
577 + need_lib_prefix=no
578 + need_version=no
579 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
580 + soname_spec='${libname}${release}${shared_ext}$major'
581 + shlibpath_var=LD_LIBRARY_PATH
582 + shlibpath_overrides_runpath=no
583 + hardcode_into_libs=yes
584 + dynamic_linker='NetBSD ld.elf_so'
585 + ;;
586 +
587 +knetbsd*-gnu)
588 + version_type=linux
589 + need_lib_prefix=no
590 + need_version=no
591 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
592 + soname_spec='${libname}${release}${shared_ext}$major'
593 + shlibpath_var=LD_LIBRARY_PATH
594 + shlibpath_overrides_runpath=no
595 + hardcode_into_libs=yes
596 + dynamic_linker='GNU ld.so'
597 + ;;
598 +
599 netbsd*)
600 version_type=sunos
601 need_lib_prefix=no
602 @@ -7373,7 +7470,7 @@
603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
604 dynamic_linker='NetBSD (a.out) ld.so'
605 else
606 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
607 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
608 soname_spec='${libname}${release}${shared_ext}$major'
609 dynamic_linker='NetBSD ld.elf_so'
610 fi
611 @@ -7402,7 +7499,11 @@
612 openbsd*)
613 version_type=sunos
614 need_lib_prefix=no
615 - need_version=no
616 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
617 + case $host_os in
618 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
619 + *) need_version=no ;;
620 + esac
621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
623 shlibpath_var=LD_LIBRARY_PATH
624 @@ -7422,7 +7523,7 @@
625
626 os2*)
627 libname_spec='$name'
628 - shrext=".dll"
629 + shrext_cmds=".dll"
630 need_lib_prefix=no
631 library_names_spec='$libname${shared_ext} $libname.a'
632 dynamic_linker='OS/2 ld.exe'
633 @@ -7568,7 +7669,9 @@
634
635 case $tagname in
636 CXX)
637 - if test -n "$CXX" && test "X$CXX" != "Xno"; then
638 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
639 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
640 + (test "X$CXX" != "Xg++"))) ; then
641 AC_LIBTOOL_LANG_CXX_CONFIG
642 else
643 tagname=""
644 @@ -7630,7 +7733,7 @@
645
646 # AC_LIBTOOL_WIN32_DLL
647 # --------------------
648 -# declare package support for building win32 dll's
649 +# declare package support for building win32 DLLs
650 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
651 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
652 ])# AC_LIBTOOL_WIN32_DLL
653 @@ -7804,7 +7907,7 @@
654 if test -n "$file_magic_test_file"; then
655 case $deplibs_check_method in
656 "file_magic "*)
657 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
658 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
661 $EGREP "$file_magic_regex" > /dev/null; then
662 @@ -7914,7 +8017,7 @@
663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
664 lt_cv_path_LD="$ac_dir/$ac_prog"
665 # Check to see if the program is GNU ld. I'd rather use --version,
666 - # but apparently some GNU ld's only accept -v.
667 + # but apparently some variants of GNU ld only accept -v.
668 # Break only if it was the GNU/non-GNU ld that we prefer.
669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
670 *GNU* | *'with BFD'*)
671 @@ -7946,7 +8049,7 @@
672 AC_DEFUN([AC_PROG_LD_GNU],
673 [AC_REQUIRE([AC_PROG_EGREP])dnl
674 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
675 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
676 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
677 case `$LD -v 2>&1 </dev/null` in
678 *GNU* | *'with BFD'*)
679 lt_cv_prog_gnu_ld=yes
680 @@ -7973,6 +8076,15 @@
681 *) reload_flag=" $reload_flag" ;;
682 esac
683 reload_cmds='$LD$reload_flag -o $output$reload_objs'
684 +case $host_os in
685 + darwin*)
686 + if test "$GCC" = yes; then
687 + reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
688 + else
689 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
690 + fi
691 + ;;
692 +esac
693 ])# AC_PROG_LD_RELOAD_FLAG
694
695
696 @@ -8006,44 +8118,36 @@
697 lt_cv_deplibs_check_method=pass_all
698 ;;
699
700 -bsdi4*)
701 +bsdi[[45]]*)
702 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
703 lt_cv_file_magic_cmd='/usr/bin/file -L'
704 lt_cv_file_magic_test_file=/shlib/libc.so
705 ;;
706
707 cygwin*)
708 - lt_cv_deplibs_check_method=pass_all
709 + # func_win32_libid is a shell function defined in ltmain.sh
710 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
711 + lt_cv_file_magic_cmd='func_win32_libid'
712 ;;
713 -
714 +
715 mingw* | pw32*)
716 - # win32_libid is a shell function defined in ltmain.sh
717 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
718 - lt_cv_file_magic_cmd='win32_libid'
719 + # Base MSYS/MinGW do not provide the 'file' command needed by
720 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
721 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
722 + lt_cv_file_magic_cmd='$OBJDUMP -f'
723 ;;
724
725 darwin* | rhapsody*)
726 - # this will be overwritten by pass_all, but leave it in just in case
727 - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
728 - lt_cv_file_magic_cmd='/usr/bin/file -L'
729 - case "$host_os" in
730 - rhapsody* | darwin1.[[012]])
731 - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
732 - ;;
733 - *) # Darwin 1.3 on
734 - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
735 - ;;
736 - esac
737 lt_cv_deplibs_check_method=pass_all
738 ;;
739
740 -freebsd* | kfreebsd*-gnu)
741 +freebsd* | kfreebsd*-gnu | dragonfly*)
742 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
743 case $host_cpu in
744 i*86 )
745 # Not sure whether the presence of OpenBSD here was a mistake.
746 # Let's accept both of them until this is cleared up.
747 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
748 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
749 lt_cv_file_magic_cmd=/usr/bin/file
750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
751 ;;
752 @@ -8059,7 +8163,7 @@
753
754 hpux10.20* | hpux11*)
755 lt_cv_file_magic_cmd=/usr/bin/file
756 - case "$host_cpu" in
757 + case $host_cpu in
758 ia64*)
759 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
760 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
761 @@ -8076,42 +8180,21 @@
762 ;;
763
764 irix5* | irix6* | nonstopux*)
765 - case $host_os in
766 - irix5* | nonstopux*)
767 - # this will be overridden with pass_all, but let us keep it just in case
768 - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
769 - ;;
770 - *)
771 - case $LD in
772 - *-32|*"-32 ") libmagic=32-bit;;
773 - *-n32|*"-n32 ") libmagic=N32;;
774 - *-64|*"-64 ") libmagic=64-bit;;
775 - *) libmagic=never-match;;
776 - esac
777 - # this will be overridden with pass_all, but let us keep it just in case
778 - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
779 - ;;
780 + case $LD in
781 + *-32|*"-32 ") libmagic=32-bit;;
782 + *-n32|*"-n32 ") libmagic=N32;;
783 + *-64|*"-64 ") libmagic=64-bit;;
784 + *) libmagic=never-match;;
785 esac
786 - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
787 lt_cv_deplibs_check_method=pass_all
788 ;;
789
790 # This must be Linux ELF.
791 linux*)
792 - case $host_cpu in
793 - alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
794 - lt_cv_deplibs_check_method=pass_all ;;
795 - # the debian people say, arm and glibc 2.3.1 works for them with pass_all
796 - arm* )
797 - lt_cv_deplibs_check_method=pass_all ;;
798 - *)
799 - # glibc up to 2.1.1 does not perform some relocations on ARM
800 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
801 - esac
802 - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
803 + lt_cv_deplibs_check_method=pass_all
804 ;;
805
806 -netbsd*)
807 +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
808 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
809 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
810 else
811 @@ -8130,19 +8213,14 @@
812 ;;
813
814 openbsd*)
815 - lt_cv_file_magic_cmd=/usr/bin/file
816 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
818 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
819 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
820 else
821 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
822 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
823 fi
824 ;;
825
826 osf3* | osf4* | osf5*)
827 - # this will be overridden with pass_all, but let us keep it just in case
828 - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
829 - lt_cv_file_magic_test_file=/shlib/libc.so
830 lt_cv_deplibs_check_method=pass_all
831 ;;
832
833 @@ -8152,7 +8230,6 @@
834
835 solaris*)
836 lt_cv_deplibs_check_method=pass_all
837 - lt_cv_file_magic_test_file=/lib/libc.so
838 ;;
839
840 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
841 @@ -8260,13 +8337,13 @@
842 # -----------------------------------
843 # sets LIBLTDL to the link flags for the libltdl convenience library and
844 # LTDLINCL to the include flags for the libltdl header and adds
845 -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
846 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
847 -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
848 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
849 -# '${top_srcdir}/' (note the single quotes!). If your package is not
850 -# flat and you're not using automake, define top_builddir and
851 -# top_srcdir appropriately in the Makefiles.
852 +# --enable-ltdl-convenience to the configure arguments. Note that
853 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
854 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
855 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
856 +# (note the single quotes!). If your package is not flat and you're not
857 +# using automake, define top_builddir and top_srcdir appropriately in
858 +# the Makefiles.
859 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
860 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
861 case $enable_ltdl_convenience in
862 @@ -8285,13 +8362,13 @@
863 # -----------------------------------
864 # sets LIBLTDL to the link flags for the libltdl installable library and
865 # LTDLINCL to the include flags for the libltdl header and adds
866 -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
867 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
868 -# DIRECTORY is not provided and an installed libltdl is not found, it is
869 -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
870 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
871 -# quotes!). If your package is not flat and you're not using automake,
872 -# define top_builddir and top_srcdir appropriately in the Makefiles.
873 +# --enable-ltdl-install to the configure arguments. Note that
874 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
875 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
876 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
877 +# '${top_srcdir}/' (note the single quotes!). If your package is not
878 +# flat and you're not using automake, define top_builddir and top_srcdir
879 +# appropriately in the Makefiles.
880 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
881 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
882 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
883 @@ -8329,10 +8406,21 @@
884 # ---------------
885 AC_DEFUN([_LT_AC_LANG_CXX],
886 [AC_REQUIRE([AC_PROG_CXX])
887 -AC_REQUIRE([AC_PROG_CXXCPP])
888 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
889 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
890 ])# _LT_AC_LANG_CXX
891
892 +# _LT_AC_PROG_CXXCPP
893 +# ---------------
894 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
895 +[
896 +AC_REQUIRE([AC_PROG_CXX])
897 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
898 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
899 + (test "X$CXX" != "Xg++"))) ; then
900 + AC_PROG_CXXCPP
901 +fi
902 +])# _LT_AC_PROG_CXXCPP
903
904 # AC_LIBTOOL_F77
905 # --------------
906 @@ -8405,6 +8493,10 @@
907
908 _LT_AC_SYS_COMPILER
909
910 +# save warnings/boilerplate of simple test code
911 +_LT_COMPILER_BOILERPLATE
912 +_LT_LINKER_BOILERPLATE
913 +
914 #
915 # Check for any special shared library compilation flags.
916 #
917 @@ -8418,7 +8510,7 @@
918 fi
919 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
920 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
921 - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then :
922 + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
923 else
924 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
925 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
926 @@ -8459,7 +8551,7 @@
927
928 # On AIX, shared libraries and static libraries use the same namespace, and
929 # are all built from PIC.
930 -case "$host_os" in
931 +case $host_os in
932 aix3*)
933 test "$enable_shared" = yes && enable_static=no
934 if test -n "$RANLIB"; then
935 @@ -8468,48 +8560,11 @@
936 fi
937 ;;
938
939 -aix4*)
940 +aix4* | aix5*)
941 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
942 test "$enable_shared" = yes && enable_static=no
943 fi
944 - ;;
945 - darwin* | rhapsody*)
946 - if test "$GCC" = yes; then
947 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
948 - case "$host_os" in
949 - rhapsody* | darwin1.[[012]])
950 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
951 - ;;
952 - *) # Darwin 1.3 on
953 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
954 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
955 - else
956 - case ${MACOSX_DEPLOYMENT_TARGET} in
957 - 10.[012])
958 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
959 - ;;
960 - 10.*)
961 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
962 - ;;
963 - esac
964 - fi
965 - ;;
966 - esac
967 - output_verbose_link_cmd='echo'
968 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
969 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
970 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
971 - _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}'
972 - _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}'
973 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
974 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
975 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
976 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
977 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
978 - else
979 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
980 - fi
981 - ;;
982 + ;;
983 esac
984 AC_MSG_RESULT([$enable_shared])
985
986 @@ -8534,7 +8589,7 @@
987 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
988 [AC_LANG_PUSH(C++)
989 AC_REQUIRE([AC_PROG_CXX])
990 -AC_REQUIRE([AC_PROG_CXXCPP])
991 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
992
993 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
994 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
995 @@ -8563,7 +8618,7 @@
996 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
997
998 # Source file extension for C++ test sources.
999 -ac_ext=cc
1000 +ac_ext=cpp
1001
1002 # Object file extension for compiled C++ test sources.
1003 objext=o
1004 @@ -8578,6 +8633,10 @@
1005 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1006 _LT_AC_SYS_COMPILER
1007
1008 +# save warnings/boilerplate of simple test code
1009 +_LT_COMPILER_BOILERPLATE
1010 +_LT_LINKER_BOILERPLATE
1011 +
1012 # Allow CC to be a program name with arguments.
1013 lt_save_CC=$CC
1014 lt_save_LD=$LD
1015 @@ -8599,7 +8658,7 @@
1016 CC=${CXX-"c++"}
1017 compiler=$CC
1018 _LT_AC_TAGVAR(compiler, $1)=$CC
1019 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1020 +_LT_CC_BASENAME([$compiler])
1021
1022 # We don't want -fno-exception wen compiling C++ code, so set the
1023 # no_builtin_flag separately
1024 @@ -8617,8 +8676,8 @@
1025 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1026 # archiving commands below assume that GNU ld is being used.
1027 if test "$with_gnu_ld" = yes; then
1028 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
1029 - _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'
1030 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1031 + _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'
1032
1033 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1034 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1035 @@ -8644,7 +8703,7 @@
1036 # linker, instead of GNU ld. If possible, this setting should
1037 # overridden to take advantage of the native linker features on
1038 # the platform it is being used on.
1039 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
1040 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1041 fi
1042
1043 # Commands to make compiler produce verbose output that lists
1044 @@ -8674,8 +8733,22 @@
1045 exp_sym_flag='-Bexport'
1046 no_entry_flag=""
1047 else
1048 - # KDE requires run time linking. Make it the default.
1049 - aix_use_runtimelinking=yes
1050 + aix_use_runtimelinking=no
1051 +
1052 + # Test if we are trying to use run time linking or normal
1053 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1054 + # need to do runtime linking.
1055 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1056 + for ld_flag in $LDFLAGS; do
1057 + case $ld_flag in
1058 + *-brtl*)
1059 + aix_use_runtimelinking=yes
1060 + break
1061 + ;;
1062 + esac
1063 + done
1064 + esac
1065 +
1066 exp_sym_flag='-bexport'
1067 no_entry_flag='-bnoentry'
1068 fi
1069 @@ -8692,7 +8765,7 @@
1070 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1071
1072 if test "$GXX" = yes; then
1073 - case $host_os in aix4.[012]|aix4.[012].*)
1074 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
1075 # We only want to do this on AIX 4.2 and lower, the check
1076 # below for broken collect2 doesn't work under 4.3+
1077 collect2name=`${CC} -print-prog-name=collect2`
1078 @@ -8713,6 +8786,9 @@
1079 fi
1080 esac
1081 shared_flag='-shared'
1082 + if test "$aix_use_runtimelinking" = yes; then
1083 + shared_flag="$shared_flag "'${wl}-G'
1084 + fi
1085 else
1086 # not using gcc
1087 if test "$host_cpu" = ia64; then
1088 @@ -8721,15 +8797,16 @@
1089 shared_flag='-G'
1090 else
1091 if test "$aix_use_runtimelinking" = yes; then
1092 - shared_flag='-qmkshrobj ${wl}-G'
1093 + shared_flag='${wl}-G'
1094 else
1095 - shared_flag='-qmkshrobj'
1096 + shared_flag='${wl}-bM:SRE'
1097 fi
1098 fi
1099 fi
1100
1101 - # Let the compiler handle the export list.
1102 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
1103 + # It seems that -bexpall does not export symbols beginning with
1104 + # underscore (_), so it is better to generate a list of symbols to export.
1105 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1106 if test "$aix_use_runtimelinking" = yes; then
1107 # Warning - without using the other runtime loading flags (-brtl),
1108 # -berok will link without error, but may produce a broken library.
1109 @@ -8738,13 +8815,12 @@
1110 _LT_AC_SYS_LIBPATH_AIX
1111 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1112
1113 - _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"
1114 - _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"
1115 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1116 else
1117 if test "$host_cpu" = ia64; then
1118 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1119 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1120 - _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"
1121 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1122 else
1123 # Determine the default libpath from the value encoded in an empty executable.
1124 _LT_AC_SYS_LIBPATH_AIX
1125 @@ -8758,8 +8834,8 @@
1126 # Exported symbols can be pulled into shared objects from archives
1127 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1128 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1129 - # This is similar to how AIX traditionally builds it's shared libraries.
1130 - _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'
1131 + # This is similar to how AIX traditionally builds its shared libraries.
1132 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1133 fi
1134 fi
1135 ;;
1136 @@ -8772,16 +8848,17 @@
1137 esac
1138 ;;
1139
1140 +
1141 cygwin* | mingw* | pw32*)
1142 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
1143 # as there is no search path for DLLs.
1144 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1145 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
1146 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1147 _LT_AC_TAGVAR(always_export_symbols, $1)=no
1148 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1149
1150 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1151 - _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'
1152 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1153 # If the export-symbols file already is a .def file (1st line
1154 # is EXPORTS), use it as is; otherwise, prepend...
1155 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1156 @@ -8790,70 +8867,81 @@
1157 echo EXPORTS > $output_objdir/$soname.def;
1158 cat $export_symbols >> $output_objdir/$soname.def;
1159 fi~
1160 - $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'
1161 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1162 else
1163 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1164 fi
1165 ;;
1166 + darwin* | rhapsody*)
1167 + case $host_os in
1168 + rhapsody* | darwin1.[[012]])
1169 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
1170 + ;;
1171 + *) # Darwin 1.3 on
1172 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1173 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1174 + else
1175 + case ${MACOSX_DEPLOYMENT_TARGET} in
1176 + 10.[[012]])
1177 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1178 + ;;
1179 + 10.*)
1180 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
1181 + ;;
1182 + esac
1183 + fi
1184 + ;;
1185 + esac
1186 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1187 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
1188 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1189 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1190 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1191 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1192
1193 - darwin* | rhapsody*)
1194 - if test "$GXX" = yes; then
1195 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1196 - case "$host_os" in
1197 - rhapsody* | darwin1.[[012]])
1198 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
1199 - ;;
1200 - *) # Darwin 1.3 on
1201 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1202 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
1203 - else
1204 - case ${MACOSX_DEPLOYMENT_TARGET} in
1205 - 10.[012])
1206 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
1207 - ;;
1208 - 10.*)
1209 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
1210 - ;;
1211 - esac
1212 + if test "$GXX" = yes ; then
1213 + lt_int_apple_cc_single_mod=no
1214 + output_verbose_link_cmd='echo'
1215 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
1216 + lt_int_apple_cc_single_mod=yes
1217 fi
1218 - ;;
1219 - esac
1220 - lt_int_apple_cc_single_mod=no
1221 - output_verbose_link_cmd='echo'
1222 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
1223 - lt_int_apple_cc_single_mod=yes
1224 - fi
1225 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1226 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
1227 - else
1228 - _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'
1229 - fi
1230 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
1231 -
1232 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1233 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1234 - _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}'
1235 - else
1236 - _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}'
1237 - fi
1238 - _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}'
1239 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1240 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1241 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1242 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1243 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1244 - else
1245 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1246 - fi
1247 - ;;
1248 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1249 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1250 + else
1251 + _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'
1252 + fi
1253 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1254 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1255 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1256 + _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}'
1257 + else
1258 + _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}'
1259 + fi
1260 + _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}'
1261 + else
1262 + case $cc_basename in
1263 + xlc*)
1264 + output_verbose_link_cmd='echo'
1265 + _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` $verstring'
1266 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1267 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1268 + _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1269 + _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}'
1270 + ;;
1271 + *)
1272 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1273 + ;;
1274 + esac
1275 + fi
1276 + ;;
1277
1278 dgux*)
1279 case $cc_basename in
1280 - ec++)
1281 + ec++*)
1282 # FIXME: insert proper C++ library support
1283 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1284 ;;
1285 - ghcx)
1286 + ghcx*)
1287 # Green Hills C++ Compiler
1288 # FIXME: insert proper C++ library support
1289 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1290 @@ -8864,14 +8952,14 @@
1291 ;;
1292 esac
1293 ;;
1294 - freebsd[12]*)
1295 + freebsd[[12]]*)
1296 # C++ shared libraries reported to be fairly broken before switch to ELF
1297 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1298 ;;
1299 freebsd-elf*)
1300 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1301 ;;
1302 - freebsd* | kfreebsd*-gnu)
1303 + freebsd* | kfreebsd*-gnu | dragonfly*)
1304 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1305 # conventions
1306 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1307 @@ -8888,12 +8976,12 @@
1308 # location of the library.
1309
1310 case $cc_basename in
1311 - CC)
1312 + CC*)
1313 # FIXME: insert proper C++ library support
1314 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1315 ;;
1316 - aCC)
1317 - _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'
1318 + aCC*)
1319 + _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'
1320 # Commands to make compiler produce verbose output that lists
1321 # what "hidden" libraries, object files and flags are used when
1322 # linking a shared library.
1323 @@ -8902,11 +8990,11 @@
1324 # explicitly linking system object files so we need to strip them
1325 # from the output so that they don't get included in the library
1326 # dependencies.
1327 - 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'
1328 + 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'
1329 ;;
1330 *)
1331 if test "$GXX" = yes; then
1332 - _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'
1333 + _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'
1334 else
1335 # FIXME: insert proper C++ library support
1336 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1337 @@ -8916,7 +9004,7 @@
1338 ;;
1339 hpux10*|hpux11*)
1340 if test $with_gnu_ld = no; then
1341 - case "$host_cpu" in
1342 + case $host_cpu in
1343 hppa*64*)
1344 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1345 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1346 @@ -8932,7 +9020,7 @@
1347 ;;
1348 esac
1349 fi
1350 - case "$host_cpu" in
1351 + case $host_cpu in
1352 hppa*64*)
1353 _LT_AC_TAGVAR(hardcode_direct, $1)=no
1354 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1355 @@ -8953,17 +9041,17 @@
1356 esac
1357
1358 case $cc_basename in
1359 - CC)
1360 + CC*)
1361 # FIXME: insert proper C++ library support
1362 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1363 ;;
1364 - aCC)
1365 - case "$host_cpu" in
1366 + aCC*)
1367 + case $host_cpu in
1368 hppa*64*|ia64*)
1369 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1370 ;;
1371 *)
1372 - _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'
1373 + _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'
1374 ;;
1375 esac
1376 # Commands to make compiler produce verbose output that lists
1377 @@ -8979,12 +9067,12 @@
1378 *)
1379 if test "$GXX" = yes; then
1380 if test $with_gnu_ld = no; then
1381 - case "$host_cpu" in
1382 + case $host_cpu in
1383 ia64*|hppa*64*)
1384 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1385 ;;
1386 *)
1387 - _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'
1388 + _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'
1389 ;;
1390 esac
1391 fi
1392 @@ -8997,9 +9085,9 @@
1393 ;;
1394 irix5* | irix6*)
1395 case $cc_basename in
1396 - CC)
1397 + CC*)
1398 # SGI C++
1399 - _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'
1400 + _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'
1401
1402 # Archives containing C++ object files must be created using
1403 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1404 @@ -9010,9 +9098,9 @@
1405 *)
1406 if test "$GXX" = yes; then
1407 if test "$with_gnu_ld" = no; then
1408 - _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'
1409 + _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'
1410 else
1411 - _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'
1412 + _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'
1413 fi
1414 fi
1415 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1416 @@ -9023,14 +9111,14 @@
1417 ;;
1418 linux*)
1419 case $cc_basename in
1420 - KCC)
1421 + KCC*)
1422 # Kuck and Associates, Inc. (KAI) C++ Compiler
1423
1424 # KCC will only create a shared library if the output file
1425 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1426 # to its proper name (with version) after linking.
1427 - _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'
1428 - _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'
1429 + _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'
1430 + _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'
1431 # Commands to make compiler produce verbose output that lists
1432 # what "hidden" libraries, object files and flags are used when
1433 # linking a shared library.
1434 @@ -9048,20 +9136,44 @@
1435 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1436 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
1437 ;;
1438 - icpc)
1439 + icpc*)
1440 # Intel C++
1441 with_gnu_ld=yes
1442 + # version 8.0 and above of icpc choke on multiply defined symbols
1443 + # if we add $predep_objects and $postdep_objects, however 7.1 and
1444 + # earlier do not add the objects themselves.
1445 + case `$CC -V 2>&1` in
1446 + *"Version 7."*)
1447 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1448 + _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'
1449 + ;;
1450 + *) # Version 8.0 or newer
1451 + tmp_idyn=
1452 + case $host_cpu in
1453 + ia64*) tmp_idyn=' -i_dynamic';;
1454 + esac
1455 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1456 + _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'
1457 + ;;
1458 + esac
1459 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1460 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
1461 - _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'
1462 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1463 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1464 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
1465 ;;
1466 - cxx)
1467 + pgCC*)
1468 + # Portland Group C++ compiler
1469 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1470 + _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'
1471 +
1472 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1473 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1474 + _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'
1475 + ;;
1476 + cxx*)
1477 # Compaq C++
1478 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
1479 - _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'
1480 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1481 + _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'
1482
1483 runpath_var=LD_RUN_PATH
1484 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1485 @@ -9089,7 +9201,7 @@
1486 ;;
1487 mvs*)
1488 case $cc_basename in
1489 - cxx)
1490 + cxx*)
1491 # FIXME: insert proper C++ library support
1492 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1493 ;;
1494 @@ -9099,7 +9211,7 @@
1495 ;;
1496 esac
1497 ;;
1498 - netbsd*)
1499 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
1500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1501 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
1502 wlarc=
1503 @@ -9110,15 +9222,31 @@
1504 # Workaround some broken pre-1.5 toolchains
1505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
1506 ;;
1507 + openbsd2*)
1508 + # C++ shared libraries are fairly broken
1509 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1510 + ;;
1511 + openbsd*)
1512 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1513 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1514 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1515 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1516 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1517 + _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'
1518 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1519 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1520 + fi
1521 + output_verbose_link_cmd='echo'
1522 + ;;
1523 osf3*)
1524 case $cc_basename in
1525 - KCC)
1526 + KCC*)
1527 # Kuck and Associates, Inc. (KAI) C++ Compiler
1528
1529 # KCC will only create a shared library if the output file
1530 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1531 # to its proper name (with version) after linking.
1532 - _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'
1533 + _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'
1534
1535 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1536 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1537 @@ -9128,14 +9256,14 @@
1538 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
1539
1540 ;;
1541 - RCC)
1542 + RCC*)
1543 # Rational C++ 2.4.1
1544 # FIXME: insert proper C++ library support
1545 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1546 ;;
1547 - cxx)
1548 + cxx*)
1549 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1550 - _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'
1551 + _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'
1552
1553 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1554 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1555 @@ -9153,7 +9281,7 @@
1556 *)
1557 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1558 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1559 - _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'
1560 + _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'
1561
1562 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1563 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1564 @@ -9172,13 +9300,13 @@
1565 ;;
1566 osf4* | osf5*)
1567 case $cc_basename in
1568 - KCC)
1569 + KCC*)
1570 # Kuck and Associates, Inc. (KAI) C++ Compiler
1571
1572 # KCC will only create a shared library if the output file
1573 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1574 # to its proper name (with version) after linking.
1575 - _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'
1576 + _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'
1577
1578 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1579 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1580 @@ -9187,17 +9315,17 @@
1581 # the KAI C++ compiler.
1582 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
1583 ;;
1584 - RCC)
1585 + RCC*)
1586 # Rational C++ 2.4.1
1587 # FIXME: insert proper C++ library support
1588 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1589 ;;
1590 - cxx)
1591 + cxx*)
1592 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
1593 - _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'
1594 + _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'
1595 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1596 echo "-hidden">> $lib.exp~
1597 - $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~
1598 + $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~
1599 $rm $lib.exp'
1600
1601 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1602 @@ -9216,7 +9344,7 @@
1603 *)
1604 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1605 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1606 - _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'
1607 + _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'
1608
1609 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1610 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1611 @@ -9240,7 +9368,7 @@
1612 sco*)
1613 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1614 case $cc_basename in
1615 - CC)
1616 + CC*)
1617 # FIXME: insert proper C++ library support
1618 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1619 ;;
1620 @@ -9252,12 +9380,12 @@
1621 ;;
1622 sunos4*)
1623 case $cc_basename in
1624 - CC)
1625 + CC*)
1626 # Sun C++ 4.x
1627 # FIXME: insert proper C++ library support
1628 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1629 ;;
1630 - lcc)
1631 + lcc*)
1632 # Lucid
1633 # FIXME: insert proper C++ library support
1634 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1635 @@ -9270,36 +9398,33 @@
1636 ;;
1637 solaris*)
1638 case $cc_basename in
1639 - CC)
1640 + CC*)
1641 # Sun C++ 4.2, 5.x and Centerline C++
1642 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
1643 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
1644 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
1645 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1646 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1647 - $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'
1648 + $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'
1649
1650 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1651 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1652 case $host_os in
1653 - solaris2.[0-5] | solaris2.[0-5].*) ;;
1654 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
1655 *)
1656 # The C++ compiler is used as linker so we must use $wl
1657 # flag to pass the commands to the underlying system
1658 - # linker.
1659 + # linker. We must also pass each convience library through
1660 + # to the system linker between allextract/defaultextract.
1661 + # The C++ compiler will combine linker options so we
1662 + # cannot just pass the convience library names through
1663 + # without $wl.
1664 # Supported since Solaris 2.6 (maybe 2.5.1?)
1665 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
1666 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
1667 ;;
1668 esac
1669 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1670
1671 - # Commands to make compiler produce verbose output that lists
1672 - # what "hidden" libraries, object files and flags are used when
1673 - # linking a shared library.
1674 - #
1675 - # There doesn't appear to be a way to prevent this compiler from
1676 - # explicitly linking system object files so we need to strip them
1677 - # from the output so that they don't get included in the library
1678 - # dependencies.
1679 - 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'
1680 + output_verbose_link_cmd='echo'
1681
1682 # Archives containing C++ object files must be created using
1683 # "CC -xar", where "CC" is the Sun C++ compiler. This is
1684 @@ -9307,9 +9432,9 @@
1685 # in the archive.
1686 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
1687 ;;
1688 - gcx)
1689 + gcx*)
1690 # Green Hills C++ Compiler
1691 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
1692 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1693
1694 # The C++ compiler must be used to create the archive.
1695 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
1696 @@ -9319,9 +9444,9 @@
1697 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1698 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
1699 if $CC --version | grep -v '^2\.7' > /dev/null; then
1700 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
1701 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1702 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1703 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
1704 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1705
1706 # Commands to make compiler produce verbose output that lists
1707 # what "hidden" libraries, object files and flags are used when
1708 @@ -9330,9 +9455,9 @@
1709 else
1710 # g++ 2.7 appears to require `-G' NOT `-shared' on this
1711 # platform.
1712 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
1713 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1714 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1715 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
1716 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1717
1718 # Commands to make compiler produce verbose output that lists
1719 # what "hidden" libraries, object files and flags are used when
1720 @@ -9350,7 +9475,7 @@
1721 ;;
1722 tandem*)
1723 case $cc_basename in
1724 - NCC)
1725 + NCC*)
1726 # NonStop-UX NCC 3.20
1727 # FIXME: insert proper C++ library support
1728 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1729 @@ -9460,7 +9585,7 @@
1730 # The `*' in the case matches for architectures that use `case' in
1731 # $output_verbose_cmd can trigger glob expansion during the loop
1732 # eval without this substitution.
1733 - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
1734 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1735
1736 for p in `eval $output_verbose_link_cmd`; do
1737 case $p in
1738 @@ -9500,7 +9625,7 @@
1739 fi
1740 ;;
1741
1742 - *.$objext|*.$libext)
1743 + *.$objext)
1744 # This assumes that the test object file only shows up
1745 # once in the compiler output.
1746 if test "$p" = "conftest.$objext"; then
1747 @@ -9536,6 +9661,21 @@
1748
1749 $rm -f confest.$objext
1750
1751 +# PORTME: override above test on systems where it is broken
1752 +ifelse([$1],[CXX],
1753 +[case $host_os in
1754 +solaris*)
1755 + case $cc_basename in
1756 + CC*)
1757 + # Adding this requires a known-good setup of shared libraries for
1758 + # Sun compiler versions before 5.6, else PIC objects from an old
1759 + # archive will be linked into the output, leading to subtle bugs.
1760 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
1761 + ;;
1762 + esac
1763 +esac
1764 +])
1765 +
1766 case " $_LT_AC_TAGVAR(postdeps, $1) " in
1767 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
1768 esac
1769 @@ -9586,12 +9726,16 @@
1770 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1771 _LT_AC_SYS_COMPILER
1772
1773 +# save warnings/boilerplate of simple test code
1774 +_LT_COMPILER_BOILERPLATE
1775 +_LT_LINKER_BOILERPLATE
1776 +
1777 # Allow CC to be a program name with arguments.
1778 lt_save_CC="$CC"
1779 CC=${F77-"f77"}
1780 compiler=$CC
1781 _LT_AC_TAGVAR(compiler, $1)=$CC
1782 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1783 +_LT_CC_BASENAME([$compiler])
1784
1785 AC_MSG_CHECKING([if libtool supports shared libraries])
1786 AC_MSG_RESULT([$can_build_shared])
1787 @@ -9601,7 +9745,7 @@
1788
1789 # On AIX, shared libraries and static libraries use the same namespace, and
1790 # are all built from PIC.
1791 -case "$host_os" in
1792 +case $host_os in
1793 aix3*)
1794 test "$enable_shared" = yes && enable_static=no
1795 if test -n "$RANLIB"; then
1796 @@ -9609,8 +9753,10 @@
1797 postinstall_cmds='$RANLIB $lib'
1798 fi
1799 ;;
1800 -aix4*)
1801 - test "$enable_shared" = yes && enable_static=no
1802 +aix4* | aix5*)
1803 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1804 + test "$enable_shared" = yes && enable_static=no
1805 + fi
1806 ;;
1807 esac
1808 AC_MSG_RESULT([$enable_shared])
1809 @@ -9661,20 +9807,27 @@
1810 lt_simple_compile_test_code="class foo {}\n"
1811
1812 # Code to be used in simple link tests
1813 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
1814 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
1815
1816 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1817 _LT_AC_SYS_COMPILER
1818
1819 +# save warnings/boilerplate of simple test code
1820 +_LT_COMPILER_BOILERPLATE
1821 +_LT_LINKER_BOILERPLATE
1822 +
1823 # Allow CC to be a program name with arguments.
1824 lt_save_CC="$CC"
1825 CC=${GCJ-"gcj"}
1826 compiler=$CC
1827 _LT_AC_TAGVAR(compiler, $1)=$CC
1828 +_LT_CC_BASENAME([$compiler])
1829
1830 # GCJ did not exist at the time GCC didn't implicitly link libc in.
1831 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1832
1833 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
1834 +
1835 ## CAVEAT EMPTOR:
1836 ## There is no encapsulation within the following macros, do not change
1837 ## the running order or otherwise move them around unless you know exactly
1838 @@ -9721,11 +9874,16 @@
1839 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1840 _LT_AC_SYS_COMPILER
1841
1842 +# save warnings/boilerplate of simple test code
1843 +_LT_COMPILER_BOILERPLATE
1844 +_LT_LINKER_BOILERPLATE
1845 +
1846 # Allow CC to be a program name with arguments.
1847 lt_save_CC="$CC"
1848 CC=${RC-"windres"}
1849 compiler=$CC
1850 _LT_AC_TAGVAR(compiler, $1)=$CC
1851 +_LT_CC_BASENAME([$compiler])
1852 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1853
1854 AC_LIBTOOL_CONFIG($1)
1855 @@ -9751,11 +9909,12 @@
1856 # without removal of \ escapes.
1857 if test -n "${ZSH_VERSION+set}" ; then
1858 setopt NO_GLOB_SUBST
1859 - fi
1860 + fi
1861 # Now quote all the things that may contain metacharacters while being
1862 # careful not to overquote the AC_SUBSTed values. We take copies of the
1863 # variables and quote the copies for generation of the libtool script.
1864 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
1865 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1866 + SED SHELL STRIP \
1867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1869 deplibs_check_method reload_flag reload_cmds need_locks \
1870 @@ -9805,7 +9964,7 @@
1871 _LT_AC_TAGVAR(archive_cmds, $1) | \
1872 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
1873 _LT_AC_TAGVAR(module_cmds, $1) | \
1874 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
1875 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
1876 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
1877 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
1878 extract_expsyms_cmds | reload_cmds | finish_cmds | \
1879 @@ -9871,11 +10030,11 @@
1880 SED=$lt_SED
1881
1882 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
1883 -Xsed="$SED -e s/^X//"
1884 +Xsed="$SED -e 1s/^X//"
1885
1886 # The HP-UX ksh and POSIX shell print the target directory to stdout
1887 # if CDPATH is set.
1888 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1889 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1890
1891 # The names of the tagged configurations supported by this script.
1892 available_tags=
1893 @@ -9906,6 +10065,12 @@
1894 # The host system.
1895 host_alias=$host_alias
1896 host=$host
1897 +host_os=$host_os
1898 +
1899 +# The build system.
1900 +build_alias=$build_alias
1901 +build=$build
1902 +build_os=$build_os
1903
1904 # An echo program that does not interpret backslashes.
1905 echo=$lt_echo
1906 @@ -9936,7 +10101,7 @@
1907 NM=$lt_NM
1908
1909 # A symbol stripping program
1910 -STRIP=$STRIP
1911 +STRIP=$lt_STRIP
1912
1913 # Used to examine libraries when file_magic_cmd begins "file"
1914 MAGIC_CMD=$MAGIC_CMD
1915 @@ -9967,7 +10132,7 @@
1916 libext="$libext"
1917
1918 # Shared library suffix (normally ".so").
1919 -shrext='$shrext'
1920 +shrext_cmds='$shrext_cmds'
1921
1922 # Executable file suffix (normally "").
1923 exeext="$exeext"
1924 @@ -9982,7 +10147,7 @@
1925 # Does compiler simultaneously support -c and -o options?
1926 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
1927
1928 -# Must we lock files when doing compilation ?
1929 +# Must we lock files when doing compilation?
1930 need_locks=$lt_need_locks
1931
1932 # Do we need the lib prefix for modules?
1933 @@ -10211,7 +10376,10 @@
1934 # If there is no Makefile yet, we rely on a make rule to execute
1935 # `config.status --recheck' to rerun these tests and create the
1936 # libtool script then.
1937 - test -f Makefile && make "$ltmain"
1938 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1939 + if test -f "$ltmain_in"; then
1940 + test -f Makefile && make "$ltmain"
1941 + fi
1942 fi
1943 ])# AC_LIBTOOL_CONFIG
1944
1945 @@ -10253,9 +10421,6 @@
1946 # Regexp to match symbols that can be accessed directly from C.
1947 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1948
1949 -# Transform the above into a raw symbol and a C symbol.
1950 -symxfrm='\1 \2\3 \3'
1951 -
1952 # Transform an extracted symbol line into a proper C declaration
1953 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
1954
1955 @@ -10277,6 +10442,13 @@
1956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1957 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'"
1958 ;;
1959 +linux*)
1960 + if test "$host_cpu" = ia64; then
1961 + symcode='[[ABCDGIRSTW]]'
1962 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1963 + 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'"
1964 + fi
1965 + ;;
1966 irix* | nonstopux*)
1967 symcode='[[BCDEGRST]]'
1968 ;;
1969 @@ -10284,7 +10456,7 @@
1970 symcode='[[BCDEGQRST]]'
1971 ;;
1972 solaris* | sysv5*)
1973 - symcode='[[BDT]]'
1974 + symcode='[[BDRT]]'
1975 ;;
1976 sysv4)
1977 symcode='[[DFNSTU]]'
1978 @@ -10302,14 +10474,17 @@
1979 # If we're using GNU nm, then use its standard symbol codes.
1980 case `$NM -V 2>&1` in
1981 *GNU* | *'with BFD'*)
1982 - symcode='[[ABCDGISTW]]' ;;
1983 + symcode='[[ABCDGIRSTW]]' ;;
1984 esac
1985
1986 # Try without a prefix undercore, then with it.
1987 for ac_symprfx in "" "_"; do
1988
1989 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
1990 + symxfrm="\\1 $ac_symprfx\\2 \\2"
1991 +
1992 # Write the raw and C identifiers.
1993 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1994 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1995
1996 # Check to see that the pipe works correctly.
1997 pipe_works=no
1998 @@ -10473,7 +10648,7 @@
1999 hpux*)
2000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2001 # not for PA HP-UX.
2002 - case "$host_cpu" in
2003 + case $host_cpu in
2004 hppa*64*|ia64*)
2005 ;;
2006 *)
2007 @@ -10498,18 +10673,28 @@
2008 ;;
2009 chorus*)
2010 case $cc_basename in
2011 - cxch68)
2012 + cxch68*)
2013 # Green Hills C++ Compiler
2014 # _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"
2015 ;;
2016 esac
2017 ;;
2018 + darwin*)
2019 + # PIC is the default on this platform
2020 + # Common symbols not allowed in MH_DYLIB files
2021 + case $cc_basename in
2022 + xlc*)
2023 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
2024 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2025 + ;;
2026 + esac
2027 + ;;
2028 dgux*)
2029 case $cc_basename in
2030 - ec++)
2031 + ec++*)
2032 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2033 ;;
2034 - ghcx)
2035 + ghcx*)
2036 # Green Hills C++ Compiler
2037 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2038 ;;
2039 @@ -10517,22 +10702,22 @@
2040 ;;
2041 esac
2042 ;;
2043 - freebsd* | kfreebsd*-gnu)
2044 + freebsd* | kfreebsd*-gnu | dragonfly*)
2045 # FreeBSD uses GNU C++
2046 ;;
2047 hpux9* | hpux10* | hpux11*)
2048 case $cc_basename in
2049 - CC)
2050 + CC*)
2051 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2052 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
2053 if test "$host_cpu" != ia64; then
2054 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
2055 fi
2056 ;;
2057 - aCC)
2058 + aCC*)
2059 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2060 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
2061 - case "$host_cpu" in
2062 + case $host_cpu in
2063 hppa*64*|ia64*)
2064 # +Z the default
2065 ;;
2066 @@ -10547,7 +10732,7 @@
2067 ;;
2068 irix5* | irix6* | nonstopux*)
2069 case $cc_basename in
2070 - CC)
2071 + CC*)
2072 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2073 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2074 # CC pic flag -KPIC is the default.
2075 @@ -10558,18 +10743,24 @@
2076 ;;
2077 linux*)
2078 case $cc_basename in
2079 - KCC)
2080 + KCC*)
2081 # KAI C++ Compiler
2082 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
2083 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2084 ;;
2085 - icpc)
2086 + icpc* | ecpc*)
2087 # Intel C++
2088 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2089 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2090 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
2091 - ;;
2092 - cxx)
2093 + ;;
2094 + pgCC*)
2095 + # Portland Group C++ compiler.
2096 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2097 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
2098 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2099 + ;;
2100 + cxx*)
2101 # Compaq C++
2102 # Make sure the PIC flag is empty. It appears that all Alpha
2103 # Linux and Compaq Tru64 Unix objects are PIC.
2104 @@ -10586,25 +10777,25 @@
2105 ;;
2106 mvs*)
2107 case $cc_basename in
2108 - cxx)
2109 + cxx*)
2110 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
2111 ;;
2112 *)
2113 ;;
2114 esac
2115 ;;
2116 - netbsd*)
2117 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2118 ;;
2119 osf3* | osf4* | osf5*)
2120 case $cc_basename in
2121 - KCC)
2122 + KCC*)
2123 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
2124 ;;
2125 - RCC)
2126 + RCC*)
2127 # Rational C++ 2.4.1
2128 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2129 ;;
2130 - cxx)
2131 + cxx*)
2132 # Digital/Compaq C++
2133 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2134 # Make sure the PIC flag is empty. It appears that all Alpha
2135 @@ -10620,7 +10811,7 @@
2136 ;;
2137 sco*)
2138 case $cc_basename in
2139 - CC)
2140 + CC*)
2141 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2142 ;;
2143 *)
2144 @@ -10629,13 +10820,13 @@
2145 ;;
2146 solaris*)
2147 case $cc_basename in
2148 - CC)
2149 + CC*)
2150 # Sun C++ 4.2, 5.x and Centerline C++
2151 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2152 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2153 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
2154 ;;
2155 - gcx)
2156 + gcx*)
2157 # Green Hills C++ Compiler
2158 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
2159 ;;
2160 @@ -10645,12 +10836,12 @@
2161 ;;
2162 sunos4*)
2163 case $cc_basename in
2164 - CC)
2165 + CC*)
2166 # Sun C++ 4.x
2167 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2168 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2169 ;;
2170 - lcc)
2171 + lcc*)
2172 # Lucid
2173 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2174 ;;
2175 @@ -10660,7 +10851,7 @@
2176 ;;
2177 tandem*)
2178 case $cc_basename in
2179 - NCC)
2180 + NCC*)
2181 # NonStop-UX NCC 3.20
2182 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2183 ;;
2184 @@ -10731,7 +10922,7 @@
2185 hpux*)
2186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2187 # not for PA HP-UX.
2188 - case "$host_cpu" in
2189 + case $host_cpu in
2190 hppa*64*|ia64*)
2191 # +Z the default
2192 ;;
2193 @@ -10757,6 +10948,16 @@
2194 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
2195 fi
2196 ;;
2197 + darwin*)
2198 + # PIC is the default on this platform
2199 + # Common symbols not allowed in MH_DYLIB files
2200 + case $cc_basename in
2201 + xlc*)
2202 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
2203 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2204 + ;;
2205 + esac
2206 + ;;
2207
2208 mingw* | pw32* | os2*)
2209 # This hack is so that the source file can tell whether it is being
2210 @@ -10768,7 +10969,7 @@
2211 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2213 # not for PA HP-UX.
2214 - case "$host_cpu" in
2215 + case $host_cpu in
2216 hppa*64*|ia64*)
2217 # +Z the default
2218 ;;
2219 @@ -10792,12 +10993,19 @@
2220 ;;
2221
2222 linux*)
2223 - case $CC in
2224 + case $cc_basename in
2225 icc* | ecc*)
2226 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2227 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2228 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
2229 ;;
2230 + pgcc* | pgf77* | pgf90* | pgf95*)
2231 + # Portland Group compilers (*not* the Pentium gcc compiler,
2232 + # which looks to be a dead project)
2233 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2234 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
2235 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2236 + ;;
2237 ccc*)
2238 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2239 # All Alpha code is PIC.
2240 @@ -10818,9 +11026,14 @@
2241 ;;
2242
2243 solaris*)
2244 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2245 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2246 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2247 + case $cc_basename in
2248 + f77* | f90* | f95*)
2249 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
2250 + *)
2251 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
2252 + esac
2253 ;;
2254
2255 sunos4*)
2256 @@ -10842,6 +11055,11 @@
2257 fi
2258 ;;
2259
2260 + unicos*)
2261 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2262 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
2263 + ;;
2264 +
2265 uts4*)
2266 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2267 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2268 @@ -10869,7 +11087,7 @@
2269 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2270 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
2271 fi
2272 -case "$host_os" in
2273 +case $host_os in
2274 # For platforms which do not support PIC, -DPIC is meaningless:
2275 *djgpp*)
2276 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2277 @@ -10902,7 +11120,10 @@
2278 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
2279 ;;
2280 cygwin* | mingw*)
2281 - _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'
2282 + _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'
2283 + ;;
2284 + linux*)
2285 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
2286 ;;
2287 *)
2288 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
2289 @@ -10928,7 +11149,7 @@
2290 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2291 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2292 _LT_AC_TAGVAR(module_cmds, $1)=
2293 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2294 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2295 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2296 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
2297 # include_expsyms should be a list of space-separated symbols to be *always*
2298 @@ -10945,7 +11166,8 @@
2299 # rely on this symbol name, it's probably fine to never include it in
2300 # preloaded symbol tables.
2301 extract_expsyms_cmds=
2302 -
2303 + # Just being paranoid about ensuring that cc_basename is set.
2304 + _LT_CC_BASENAME([$compiler])
2305 case $host_os in
2306 cygwin* | mingw* | pw32*)
2307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
2308 @@ -10965,6 +11187,27 @@
2309 # If archive_cmds runs LD, not CC, wlarc should be empty
2310 wlarc='${wl}'
2311
2312 + # Set some defaults for GNU ld with shared library support. These
2313 + # are reset later if shared libraries are not supported. Putting them
2314 + # here allows them to be overridden if necessary.
2315 + runpath_var=LD_RUN_PATH
2316 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2317 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2318 + # ancient GNU ld didn't support --whole-archive et. al.
2319 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
2320 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2321 + else
2322 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2323 + fi
2324 + supports_anon_versioning=no
2325 + case `$LD -v 2>/dev/null` in
2326 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
2327 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
2328 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
2329 + *\ 2.11.*) ;; # other 2.11 versions
2330 + *) supports_anon_versioning=yes ;;
2331 + esac
2332 +
2333 # See if GNU ld supports shared libraries.
2334 case $host_os in
2335 aix3* | aix4* | aix5*)
2336 @@ -11002,7 +11245,7 @@
2337 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2338 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2339 # support --undefined. This deserves some investigation. FIXME
2340 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
2341 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2342 else
2343 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2344 fi
2345 @@ -11012,13 +11255,13 @@
2346 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2347 # as there is no search path for DLLs.
2348 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2349 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
2350 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2351 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2352 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2353 - _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'
2354 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
2355
2356 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2357 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2358 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2359 # If the export-symbols file already is a .def file (1st line
2360 # is EXPORTS), use it as is; otherwise, prepend...
2361 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2362 @@ -11027,19 +11270,51 @@
2363 echo EXPORTS > $output_objdir/$soname.def;
2364 cat $export_symbols >> $output_objdir/$soname.def;
2365 fi~
2366 - $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2367 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2368 else
2369 - ld_shlibs=no
2370 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2371 + fi
2372 + ;;
2373 +
2374 + linux*)
2375 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2376 + tmp_addflag=
2377 + case $cc_basename,$host_cpu in
2378 + pgcc*) # Portland Group C compiler
2379 + _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'
2380 + tmp_addflag=' $pic_flag'
2381 + ;;
2382 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
2383 + _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'
2384 + tmp_addflag=' $pic_flag -Mnomain' ;;
2385 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
2386 + tmp_addflag=' -i_dynamic' ;;
2387 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
2388 + tmp_addflag=' -i_dynamic -nofor_main' ;;
2389 + ifc* | ifort*) # Intel Fortran compiler
2390 + tmp_addflag=' -nofor_main' ;;
2391 + esac
2392 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2393 +
2394 + if test $supports_anon_versioning = yes; then
2395 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
2396 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
2397 + $echo "local: *; };" >> $output_objdir/$libname.ver~
2398 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
2399 + fi
2400 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
2401 + else
2402 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2403 fi
2404 ;;
2405
2406 - netbsd*)
2407 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2409 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2410 wlarc=
2411 else
2412 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
2413 - _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'
2414 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2415 + _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'
2416 fi
2417 ;;
2418
2419 @@ -11057,8 +11332,8 @@
2420
2421 EOF
2422 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2423 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
2424 - _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'
2425 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2426 + _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'
2427 else
2428 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2429 fi
2430 @@ -11073,24 +11348,19 @@
2431
2432 *)
2433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2434 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
2435 - _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'
2436 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2437 + _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'
2438 else
2439 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2440 fi
2441 ;;
2442 esac
2443
2444 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
2445 - runpath_var=LD_RUN_PATH
2446 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2447 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2448 - # ancient GNU ld didn't support --whole-archive et. al.
2449 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
2450 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2451 - else
2452 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2453 - fi
2454 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
2455 + runpath_var=
2456 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2457 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2458 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2459 fi
2460 else
2461 # PORTME fill in a description of your system's linker (not GNU ld)
2462 @@ -11124,9 +11394,20 @@
2463 else
2464 _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'
2465 fi
2466 + aix_use_runtimelinking=no
2467 +
2468 + # Test if we are trying to use run time linking or normal
2469 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2470 + # need to do runtime linking.
2471 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2472 + for ld_flag in $LDFLAGS; do
2473 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
2474 + aix_use_runtimelinking=yes
2475 + break
2476 + fi
2477 + done
2478 + esac
2479
2480 - # KDE requires run time linking. Make it the default.
2481 - aix_use_runtimelinking=yes
2482 exp_sym_flag='-bexport'
2483 no_entry_flag='-bnoentry'
2484 fi
2485 @@ -11143,7 +11424,7 @@
2486 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2487
2488 if test "$GCC" = yes; then
2489 - case $host_os in aix4.[012]|aix4.[012].*)
2490 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
2491 # We only want to do this on AIX 4.2 and lower, the check
2492 # below for broken collect2 doesn't work under 4.3+
2493 collect2name=`${CC} -print-prog-name=collect2`
2494 @@ -11164,6 +11445,9 @@
2495 fi
2496 esac
2497 shared_flag='-shared'
2498 + if test "$aix_use_runtimelinking" = yes; then
2499 + shared_flag="$shared_flag "'${wl}-G'
2500 + fi
2501 else
2502 # not using gcc
2503 if test "$host_cpu" = ia64; then
2504 @@ -11172,29 +11456,29 @@
2505 shared_flag='-G'
2506 else
2507 if test "$aix_use_runtimelinking" = yes; then
2508 - shared_flag='-qmkshrobj ${wl}-G'
2509 + shared_flag='${wl}-G'
2510 else
2511 - shared_flag='-qmkshrobj'
2512 + shared_flag='${wl}-bM:SRE'
2513 fi
2514 fi
2515 fi
2516
2517 - # Let the compiler handle the export list.
2518 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
2519 + # It seems that -bexpall does not export symbols beginning with
2520 + # underscore (_), so it is better to generate a list of symbols to export.
2521 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2522 if test "$aix_use_runtimelinking" = yes; then
2523 # Warning - without using the other runtime loading flags (-brtl),
2524 # -berok will link without error, but may produce a broken library.
2525 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2526 # Determine the default libpath from the value encoded in an empty executable.
2527 - _LT_AC_SYS_LIBPATH_AIX
2528 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2529 - _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"
2530 - _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"
2531 + _LT_AC_SYS_LIBPATH_AIX
2532 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2533 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2534 else
2535 if test "$host_cpu" = ia64; then
2536 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2537 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2538 - _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"
2539 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2540 else
2541 # Determine the default libpath from the value encoded in an empty executable.
2542 _LT_AC_SYS_LIBPATH_AIX
2543 @@ -11208,8 +11492,8 @@
2544 # Exported symbols can be pulled into shared objects from archives
2545 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2546 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2547 - # This is similar to how AIX traditionally builds it's shared libraries.
2548 - _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'
2549 + # This is similar to how AIX traditionally builds its shared libraries.
2550 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2551 fi
2552 fi
2553 ;;
2554 @@ -11222,7 +11506,7 @@
2555 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2556 ;;
2557
2558 - bsdi4*)
2559 + bsdi[[45]]*)
2560 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
2561 ;;
2562
2563 @@ -11232,69 +11516,69 @@
2564 # hardcode_libdir_flag_spec is actually meaningless, as there is
2565 # no search path for DLLs.
2566 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
2567 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
2568 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2569 # Tell ltmain to make .lib files, not .a files.
2570 libext=lib
2571 # Tell ltmain to make .dll files, not .so files.
2572 - shrext=".dll"
2573 + shrext_cmds=".dll"
2574 # FIXME: Setting linknames here is a bad hack.
2575 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
2576 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
2577 # The linker will automatically build a .lib file if we build a DLL.
2578 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
2579 # FIXME: Should let the user specify the lib program.
2580 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
2581 - fix_srcfile_path='`cygpath -w "$srcfile"`'
2582 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
2583 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2584 ;;
2585
2586 darwin* | rhapsody*)
2587 - if test "$GXX" = yes ; then
2588 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2589 - case "$host_os" in
2590 - rhapsody* | darwin1.[[012]])
2591 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
2592 - ;;
2593 - *) # Darwin 1.3 on
2594 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2595 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
2596 - else
2597 - case ${MACOSX_DEPLOYMENT_TARGET} in
2598 - 10.[012])
2599 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
2600 - ;;
2601 - 10.*)
2602 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
2603 - ;;
2604 - esac
2605 - fi
2606 - ;;
2607 + case $host_os in
2608 + rhapsody* | darwin1.[[012]])
2609 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2610 + ;;
2611 + *) # Darwin 1.3 on
2612 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2613 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2614 + else
2615 + case ${MACOSX_DEPLOYMENT_TARGET} in
2616 + 10.[[012]])
2617 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2618 + ;;
2619 + 10.*)
2620 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2621 + ;;
2622 + esac
2623 + fi
2624 + ;;
2625 esac
2626 - lt_int_apple_cc_single_mod=no
2627 - output_verbose_link_cmd='echo'
2628 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2629 - lt_int_apple_cc_single_mod=yes
2630 - fi
2631 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2632 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
2633 - else
2634 - _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'
2635 - fi
2636 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
2637 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2638 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2639 - _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}'
2640 - else
2641 - _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}'
2642 - fi
2643 - _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}'
2644 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2645 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2646 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2647 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2648 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2649 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2650 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2651 - else
2652 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
2653 - fi
2654 + if test "$GCC" = yes ; then
2655 + output_verbose_link_cmd='echo'
2656 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2657 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2658 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2659 + _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}'
2660 + _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}'
2661 + else
2662 + case $cc_basename in
2663 + xlc*)
2664 + output_verbose_link_cmd='echo'
2665 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
2666 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2667 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2668 + _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2669 + _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}'
2670 + ;;
2671 + *)
2672 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2673 + ;;
2674 + esac
2675 + fi
2676 ;;
2677
2678 dgux*)
2679 @@ -11327,8 +11611,8 @@
2680 ;;
2681
2682 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
2683 - freebsd* | kfreebsd*-gnu)
2684 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
2685 + freebsd* | kfreebsd*-gnu | dragonfly*)
2686 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
2687 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2688 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2689 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2690 @@ -11336,7 +11620,7 @@
2691
2692 hpux9*)
2693 if test "$GCC" = yes; then
2694 - _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'
2695 + _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'
2696 else
2697 _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'
2698 fi
2699 @@ -11352,16 +11636,16 @@
2700
2701 hpux10* | hpux11*)
2702 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
2703 - case "$host_cpu" in
2704 + case $host_cpu in
2705 hppa*64*|ia64*)
2706 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
2707 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2708 ;;
2709 *)
2710 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
2711 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2712 ;;
2713 esac
2714 else
2715 - case "$host_cpu" in
2716 + case $host_cpu in
2717 hppa*64*|ia64*)
2718 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
2719 ;;
2720 @@ -11371,7 +11655,7 @@
2721 esac
2722 fi
2723 if test "$with_gnu_ld" = no; then
2724 - case "$host_cpu" in
2725 + case $host_cpu in
2726 hppa*64*)
2727 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2728 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
2729 @@ -11404,7 +11688,7 @@
2730
2731 irix5* | irix6* | nonstopux*)
2732 if test "$GCC" = yes; then
2733 - _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'
2734 + _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'
2735 else
2736 _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'
2737 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
2738 @@ -11414,7 +11698,7 @@
2739 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2740 ;;
2741
2742 - netbsd*)
2743 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2745 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
2746 else
2747 @@ -11437,7 +11721,8 @@
2748 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2749 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2751 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
2752 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2753 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
2754 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2755 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2756 else
2757 @@ -11447,7 +11732,7 @@
2758 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2759 ;;
2760 *)
2761 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
2762 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2763 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2764 ;;
2765 esac
2766 @@ -11458,14 +11743,14 @@
2767 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2768 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2769 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2770 - _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'
2771 + _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'
2772 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2773 ;;
2774
2775 osf3*)
2776 if test "$GCC" = yes; then
2777 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2778 - _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'
2779 + _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'
2780 else
2781 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2782 _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'
2783 @@ -11477,13 +11762,13 @@
2784 osf4* | osf5*) # as osf3* with the addition of -msym flag
2785 if test "$GCC" = yes; then
2786 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2787 - _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'
2788 + _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'
2789 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2790 else
2791 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2792 _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'
2793 _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~
2794 - $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'
2795 + $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'
2796
2797 # Both c and cxx compiler support -rpath directly
2798 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2799 @@ -11502,10 +11787,12 @@
2800 solaris*)
2801 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
2802 if test "$GCC" = yes; then
2803 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
2804 + wlarc='${wl}'
2805 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2806 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2807 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
2808 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
2809 else
2810 + wlarc=''
2811 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2812 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2813 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2814 @@ -11514,8 +11801,18 @@
2815 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2816 case $host_os in
2817 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2818 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
2819 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
2820 + *)
2821 + # The compiler driver will combine linker options so we
2822 + # cannot just pass the convience library names through
2823 + # without $wl, iff we do not link with $LD.
2824 + # Luckily, gcc supports the same syntax we need for Sun Studio.
2825 + # Supported since Solaris 2.6 (maybe 2.5.1?)
2826 + case $wlarc in
2827 + '')
2828 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
2829 + *)
2830 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
2831 + esac ;;
2832 esac
2833 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2834 ;;
2835 @@ -11524,7 +11821,7 @@
2836 if test "x$host_vendor" = xsequent; then
2837 # Use $CC to link under sequent, because it throws in some extra .o
2838 # files that make .init and .fini sections work.
2839 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
2840 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
2841 else
2842 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2843 fi
2844 @@ -11584,9 +11881,9 @@
2845 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
2846 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
2847 if test "$GCC" = yes; then
2848 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
2849 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2850 else
2851 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
2852 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2853 fi
2854 runpath_var='LD_RUN_PATH'
2855 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2856 @@ -11644,7 +11941,7 @@
2857 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
2858 $rm conftest*
2859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2860 -
2861 +
2862 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
2863 soname=conftest
2864 lib=conftest
2865 @@ -11778,7 +12075,7 @@
2866 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2867 # along with /bin/sed that truncates output.
2868 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2869 - test ! -f $lt_ac_sed && break
2870 + test ! -f $lt_ac_sed && continue
2871 cat /dev/null > conftest.in
2872 lt_ac_count=0
2873 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2874 --- aclocal.m4
2875 +++ aclocal.m4
2876 @@ -501,6 +501,35 @@
2877 rmdir .tst 2>/dev/null
2878 AC_SUBST([am__leading_dot])])
2879
2880 +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
2881 +# From Jim Meyering
2882 +
2883 +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
2884 +# Free Software Foundation, Inc.
2885 +#
2886 +# This file is free software; the Free Software Foundation
2887 +# gives unlimited permission to copy and/or distribute it,
2888 +# with or without modifications, as long as this notice is preserved.
2889 +
2890 +# serial 4
2891 +
2892 +AC_DEFUN([AM_MAINTAINER_MODE],
2893 +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
2894 + dnl maintainer-mode is disabled by default
2895 + AC_ARG_ENABLE(maintainer-mode,
2896 +[ --enable-maintainer-mode enable make rules and dependencies not useful
2897 + (and sometimes confusing) to the casual installer],
2898 + USE_MAINTAINER_MODE=$enableval,
2899 + USE_MAINTAINER_MODE=no)
2900 + AC_MSG_RESULT([$USE_MAINTAINER_MODE])
2901 + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
2902 + MAINT=$MAINTAINER_MODE_TRUE
2903 + AC_SUBST(MAINT)dnl
2904 +]
2905 +)
2906 +
2907 +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
2908 +
2909 # Check to see how 'make' treats includes. -*- Autoconf -*-
2910
2911 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
2912 --- configure
2913 +++ configure
2914 @@ -278,15 +278,15 @@
2915
2916 # The HP-UX ksh and POSIX shell print the target directory to stdout
2917 # if CDPATH is set.
2918 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2919 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2920
2921 if test -z "$ECHO"; then
2922 if test "X${echo_test_string+set}" != Xset; then
2923 # find a string as large as possible, as long as the shell can cope with it
2924 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
2925 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2926 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
2927 - echo_test_string="`eval $cmd`" &&
2928 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
2929 + echo_test_string=`eval $cmd` &&
2930 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
2931 then
2932 break
2933 @@ -464,7 +464,7 @@
2934 # include <unistd.h>
2935 #endif"
2936
2937 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar KDECONFIG kde_libs_prefix kde_libs_htmldir CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED LDFLAGS_NEW_DTAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN KDE_CHECK_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL KDE_USE_FPIE KDE_USE_PIE include_x11_TRUE include_x11_FALSE X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE MAKEKDEWIDGETS KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDED LIB_KDECORE LIB_KDEUI LIB_KIO LIB_KJS LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KIMPROXY LIB_KNEWSTUFF LIB_KDNSSD LIB_KUNITTEST LIB_KSYCOCA LIB_KFILE LIB_KFM QTDOCDIR KDE_HAVE_DOT DOXYGEN DOXYGEN_PROJECT_NAME DOXYGEN_PROJECT_NUMBER KDE_HAS_DOXYGEN LIB_SLP GLINC GLLIB include_smpppdcs_TRUE include_smpppdcs_FALSE LIBXSLT_LIBS LIBXSLT_CFLAGS LIBXSLT_RPATH LIBXML_LIBS LIBXML_CFLAGS LIBXML_RPATH KOPETE_INCLUDES KOPETE_COMPAT_INCLUDES LIB_KOPETECOMPAT LIB_XSS include_motionautoaway_TRUE include_motionautoaway_FALSE XMMS_LIBS XMMS_LDFLAGS XMMS_INCLUDES LIBGG_INCLUDES LIBGG_LIBS COMPILE_GADU include_gadu_TRUE include_gadu_FALSE include_libggcopy_TRUE include_libggcopy_FALSE SSL_INCLUDES SSL_LDFLAGS LIBSSL include_jabber_TRUE include_jabber_FALSE IDN_LDFLAGS IDN_CPPFLAGS IDN_LIBS PKG_CONFIG MEANWHILE_CFLAGS MEANWHILE_LIBS GLIB_CFLAGS GLIB_LIBS include_meanwhile_TRUE include_meanwhile_FALSE include_testbed_TRUE include_testbed_FALSE include_msn_webcam_TRUE include_msn_webcam_FALSE YAHOO2_VERSION SAMPLE_CLIENT_TRUE SAMPLE_CLIENT_FALSE YAHOOPKGREQ LIBXF86VIDMODE COMPILE_GETIFADDRS KDE_INSTALLED_TRUE KDE_INSTALLED_FALSE LIBBSD TOPSUBDIRS doc_SUBDIR_included_TRUE doc_SUBDIR_included_FALSE filesharing_SUBDIR_included_TRUE filesharing_SUBDIR_included_FALSE kdict_SUBDIR_included_TRUE kdict_SUBDIR_included_FALSE kdnssd_SUBDIR_included_TRUE kdnssd_SUBDIR_included_FALSE kfile_plugins_SUBDIR_included_TRUE kfile_plugins_SUBDIR_included_FALSE kget_SUBDIR_included_TRUE kget_SUBDIR_included_FALSE kopete_SUBDIR_included_TRUE kopete_SUBDIR_included_FALSE kpf_SUBDIR_included_TRUE kpf_SUBDIR_included_FALSE kppp_SUBDIR_included_TRUE kppp_SUBDIR_included_FALSE krdc_SUBDIR_included_TRUE krdc_SUBDIR_included_FALSE krfb_SUBDIR_included_TRUE krfb_SUBDIR_included_FALSE ksirc_SUBDIR_included_TRUE ksirc_SUBDIR_included_FALSE ktalkd_SUBDIR_included_TRUE ktalkd_SUBDIR_included_FALSE lanbrowsing_SUBDIR_included_TRUE lanbrowsing_SUBDIR_included_FALSE librss_SUBDIR_included_TRUE librss_SUBDIR_included_FALSE wifi_SUBDIR_included_TRUE wifi_SUBDIR_included_FALSE knewsticker_SUBDIR_included_TRUE knewsticker_SUBDIR_included_FALSE dcoprss_SUBDIR_included_TRUE dcoprss_SUBDIR_included_FALSE LIBOBJS LTLIBOBJS'
2938 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT KDECONFIG kde_libs_prefix kde_libs_htmldir CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED LDFLAGS_NEW_DTAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN KDE_CHECK_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL KDE_USE_FPIE KDE_USE_PIE include_x11_TRUE include_x11_FALSE X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE MAKEKDEWIDGETS KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDED LIB_KDECORE LIB_KDEUI LIB_KIO LIB_KJS LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KIMPROXY LIB_KNEWSTUFF LIB_KDNSSD LIB_KUNITTEST LIB_KSYCOCA LIB_KFILE LIB_KFM QTDOCDIR KDE_HAVE_DOT DOXYGEN DOXYGEN_PROJECT_NAME DOXYGEN_PROJECT_NUMBER KDE_HAS_DOXYGEN LIB_SLP GLINC GLLIB include_smpppdcs_TRUE include_smpppdcs_FALSE LIBXSLT_LIBS LIBXSLT_CFLAGS LIBXSLT_RPATH LIBXML_LIBS LIBXML_CFLAGS LIBXML_RPATH KOPETE_INCLUDES KOPETE_COMPAT_INCLUDES LIB_KOPETECOMPAT LIB_XSS include_motionautoaway_TRUE include_motionautoaway_FALSE XMMS_LIBS XMMS_LDFLAGS XMMS_INCLUDES LIBGG_INCLUDES LIBGG_LIBS COMPILE_GADU include_gadu_TRUE include_gadu_FALSE include_libggcopy_TRUE include_libggcopy_FALSE SSL_INCLUDES SSL_LDFLAGS LIBSSL include_jabber_TRUE include_jabber_FALSE IDN_LDFLAGS IDN_CPPFLAGS IDN_LIBS PKG_CONFIG MEANWHILE_CFLAGS MEANWHILE_LIBS GLIB_CFLAGS GLIB_LIBS include_meanwhile_TRUE include_meanwhile_FALSE include_testbed_TRUE include_testbed_FALSE include_msn_webcam_TRUE include_msn_webcam_FALSE YAHOO2_VERSION SAMPLE_CLIENT_TRUE SAMPLE_CLIENT_FALSE YAHOOPKGREQ LIBXF86VIDMODE COMPILE_GETIFADDRS KDE_INSTALLED_TRUE KDE_INSTALLED_FALSE LIBBSD TOPSUBDIRS doc_SUBDIR_included_TRUE doc_SUBDIR_included_FALSE filesharing_SUBDIR_included_TRUE filesharing_SUBDIR_included_FALSE kdict_SUBDIR_included_TRUE kdict_SUBDIR_included_FALSE kdnssd_SUBDIR_included_TRUE kdnssd_SUBDIR_included_FALSE kfile_plugins_SUBDIR_included_TRUE kfile_plugins_SUBDIR_included_FALSE kget_SUBDIR_included_TRUE kget_SUBDIR_included_FALSE kopete_SUBDIR_included_TRUE kopete_SUBDIR_included_FALSE kpf_SUBDIR_included_TRUE kpf_SUBDIR_included_FALSE kppp_SUBDIR_included_TRUE kppp_SUBDIR_included_FALSE krdc_SUBDIR_included_TRUE krdc_SUBDIR_included_FALSE krfb_SUBDIR_included_TRUE krfb_SUBDIR_included_FALSE ksirc_SUBDIR_included_TRUE ksirc_SUBDIR_included_FALSE ktalkd_SUBDIR_included_TRUE ktalkd_SUBDIR_included_FALSE lanbrowsing_SUBDIR_included_TRUE lanbrowsing_SUBDIR_included_FALSE librss_SUBDIR_included_TRUE librss_SUBDIR_included_FALSE wifi_SUBDIR_included_TRUE wifi_SUBDIR_included_FALSE knewsticker_SUBDIR_included_TRUE knewsticker_SUBDIR_included_FALSE dcoprss_SUBDIR_included_TRUE dcoprss_SUBDIR_included_FALSE LIBOBJS LTLIBOBJS'
2939 ac_subst_files=''
2940
2941 # Initialize some variables set by options.
2942 @@ -1025,6 +1025,8 @@
2943 Optional Features:
2944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2946 + --enable-maintainer-mode enable make rules and dependencies not useful
2947 + (and sometimes confusing) to the casual installer
2948 --disable-fast-perl disable fast Makefile generation (needs perl)
2949 --enable-debug=ARG enables debug symbols (yes|no|full) default=no
2950 --disable-debug disables debug output and debug symbols default=no
2951 @@ -1062,7 +1064,8 @@
2952 toolchain hidden visibility default=no
2953 --disable-largefile omit support for large files
2954 --disable-slp don't require libslp (Browsing in krfb and krdc not possible)
2955 - --enable-smpppd enable support for smpppd
2956 + --enable-smpppd enable support for the SuSE Meta PPP Daemon (smpppd)
2957 + (default is NO)
2958 --enable-sametime-plugin
2959 build the Kopete Sametime plugin [default=no]
2960 --disable-testbed disable kopete testbed protocol compilation
2961 @@ -1201,7 +1204,7 @@
2962 else
2963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2964 fi
2965 - cd $ac_popdir
2966 + cd "$ac_popdir"
2967 done
2968 fi
2969
2970 @@ -2104,6 +2107,31 @@
2971
2972
2973
2974 +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2975 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2976 + # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2977 +if test "${enable_maintainer_mode+set}" = set; then
2978 + enableval="$enable_maintainer_mode"
2979 + USE_MAINTAINER_MODE=$enableval
2980 +else
2981 + USE_MAINTAINER_MODE=no
2982 +fi;
2983 + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2984 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2985 +
2986 +
2987 +if test $USE_MAINTAINER_MODE = yes; then
2988 + MAINTAINER_MODE_TRUE=
2989 + MAINTAINER_MODE_FALSE='#'
2990 +else
2991 + MAINTAINER_MODE_TRUE='#'
2992 + MAINTAINER_MODE_FALSE=
2993 +fi
2994 +
2995 + MAINT=$MAINTAINER_MODE_TRUE
2996 +
2997 +
2998 +
2999
3000 unset CDPATH
3001
3002 @@ -3037,8 +3065,7 @@
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 - { ac_try='test -z "$ac_c_werror_flag"
3007 - || test ! -s conftest.err'
3008 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 (eval $ac_try) 2>&5
3011 ac_status=$?
3012 @@ -3096,8 +3123,7 @@
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 - { ac_try='test -z "$ac_c_werror_flag"
3017 - || test ! -s conftest.err'
3018 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 (eval $ac_try) 2>&5
3021 ac_status=$?
3022 @@ -3213,8 +3239,7 @@
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 - { ac_try='test -z "$ac_c_werror_flag"
3027 - || test ! -s conftest.err'
3028 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 @@ -3268,8 +3293,7 @@
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 - { ac_try='test -z "$ac_c_werror_flag"
3037 - || test ! -s conftest.err'
3038 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 @@ -3314,8 +3338,7 @@
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 - { ac_try='test -z "$ac_c_werror_flag"
3047 - || test ! -s conftest.err'
3048 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 @@ -3359,8 +3382,7 @@
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 - { ac_try='test -z "$ac_c_werror_flag"
3057 - || test ! -s conftest.err'
3058 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 @@ -3917,8 +3939,7 @@
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 - { ac_try='test -z "$ac_cxx_werror_flag"
3067 - || test ! -s conftest.err'
3068 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 @@ -3976,8 +3997,7 @@
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 - { ac_try='test -z "$ac_cxx_werror_flag"
3077 - || test ! -s conftest.err'
3078 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 @@ -4048,8 +4068,7 @@
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 - { ac_try='test -z "$ac_cxx_werror_flag"
3087 - || test ! -s conftest.err'
3088 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 @@ -4093,8 +4112,7 @@
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 - { ac_try='test -z "$ac_cxx_werror_flag"
3097 - || test ! -s conftest.err'
3098 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 @@ -4272,8 +4290,7 @@
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 - { ac_try='test -z "$ac_c_werror_flag"
3107 - || test ! -s conftest.err'
3108 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 (eval $ac_try) 2>&5
3111 ac_status=$?
3112 @@ -4384,8 +4401,7 @@
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 - { ac_try='test -z "$ac_cxx_werror_flag"
3117 - || test ! -s conftest.err'
3118 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 @@ -4473,8 +4489,7 @@
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 - { ac_try='test -z "$ac_cxx_werror_flag"
3127 - || test ! -s conftest.err'
3128 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 @@ -4576,8 +4591,7 @@
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 - { ac_try='test -z "$ac_cxx_werror_flag"
3137 - || test ! -s conftest.err'
3138 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 (eval $ac_try) 2>&5
3141 ac_status=$?
3142 @@ -4676,8 +4690,7 @@
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 - { ac_try='test -z "$ac_cxx_werror_flag"
3147 - || test ! -s conftest.err'
3148 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 @@ -4761,8 +4774,7 @@
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 - { ac_try='test -z "$ac_c_werror_flag"
3157 - || test ! -s conftest.err'
3158 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 @@ -4851,8 +4863,7 @@
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 - { ac_try='test -z "$ac_cxx_werror_flag"
3167 - || test ! -s conftest.err'
3168 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 (eval $ac_try) 2>&5
3171 ac_status=$?
3172 @@ -4939,8 +4950,7 @@
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 - { ac_try='test -z "$ac_cxx_werror_flag"
3177 - || test ! -s conftest.err'
3178 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 @@ -5027,8 +5037,7 @@
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 - { ac_try='test -z "$ac_cxx_werror_flag"
3187 - || test ! -s conftest.err'
3188 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 @@ -5134,8 +5143,7 @@
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 - { ac_try='test -z "$ac_cxx_werror_flag"
3197 - || test ! -s conftest.err'
3198 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 @@ -5222,8 +5230,7 @@
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 - { ac_try='test -z "$ac_cxx_werror_flag"
3207 - || test ! -s conftest.err'
3208 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 @@ -5310,8 +5317,7 @@
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } &&
3216 - { ac_try='test -z "$ac_cxx_werror_flag"
3217 - || test ! -s conftest.err'
3218 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 @@ -5398,8 +5404,7 @@
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 - { ac_try='test -z "$ac_cxx_werror_flag"
3227 - || test ! -s conftest.err'
3228 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 @@ -5530,8 +5535,7 @@
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 - { ac_try='test -z "$ac_cxx_werror_flag"
3237 - || test ! -s conftest.err'
3238 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 @@ -5619,8 +5623,7 @@
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 - { ac_try='test -z "$ac_cxx_werror_flag"
3247 - || test ! -s conftest.err'
3248 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 @@ -5707,8 +5710,7 @@
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 - { ac_try='test -z "$ac_cxx_werror_flag"
3257 - || test ! -s conftest.err'
3258 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 @@ -5795,8 +5797,7 @@
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 - { ac_try='test -z "$ac_cxx_werror_flag"
3267 - || test ! -s conftest.err'
3268 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 @@ -5883,8 +5884,7 @@
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 - { ac_try='test -z "$ac_cxx_werror_flag"
3277 - || test ! -s conftest.err'
3278 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 @@ -5971,8 +5971,7 @@
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 - { ac_try='test -z "$ac_cxx_werror_flag"
3287 - || test ! -s conftest.err'
3288 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 @@ -6395,8 +6394,7 @@
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 - { ac_try='test -z "$ac_cxx_werror_flag"
3297 - || test ! -s conftest.err'
3298 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 @@ -6522,8 +6520,7 @@
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 - { ac_try='test -z "$ac_cxx_werror_flag"
3307 - || test ! -s conftest.err'
3308 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 (eval $ac_try) 2>&5
3311 ac_status=$?
3312 @@ -6611,8 +6608,7 @@
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 - { ac_try='test -z "$ac_cxx_werror_flag"
3317 - || test ! -s conftest.err'
3318 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 (eval $ac_try) 2>&5
3321 ac_status=$?
3322 @@ -6695,185 +6691,6 @@
3323 KDE_USE_CLOSURE_TRUE="#"
3324 KDE_USE_CLOSURE_FALSE=""
3325 KDE_NO_UNDEFINED=""
3326 - case $host in
3327 - *-*-linux-gnu)
3328 -
3329 -echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
3330 -echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
3331 -kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
3332 -if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3333 - echo $ECHO_N "(cached) $ECHO_C" >&6
3334 -else
3335 -
3336 -
3337 -
3338 - ac_ext=cc
3339 -ac_cpp='$CXXCPP $CPPFLAGS'
3340 -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3343 -
3344 -ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3345 -
3346 -
3347 - save_CXXFLAGS="$CXXFLAGS"
3348 - CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
3349 - cat >conftest.$ac_ext <<_ACEOF
3350 -/* confdefs.h. */
3351 -_ACEOF
3352 -cat confdefs.h >>conftest.$ac_ext
3353 -cat >>conftest.$ac_ext <<_ACEOF
3354 -/* end confdefs.h. */
3355 -
3356 -int
3357 -main ()
3358 -{
3359 - return 0;
3360 - ;
3361 - return 0;
3362 -}
3363 -_ACEOF
3364 -rm -f conftest.$ac_objext conftest$ac_exeext
3365 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3366 - (eval $ac_link) 2>conftest.er1
3367 - ac_status=$?
3368 - grep -v '^ *+' conftest.er1 >conftest.err
3369 - rm -f conftest.er1
3370 - cat conftest.err >&5
3371 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 - (exit $ac_status); } &&
3373 - { ac_try='test -z "$ac_cxx_werror_flag"
3374 - || test ! -s conftest.err'
3375 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 - (eval $ac_try) 2>&5
3377 - ac_status=$?
3378 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 - (exit $ac_status); }; } &&
3380 - { ac_try='test -s conftest$ac_exeext'
3381 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 - (eval $ac_try) 2>&5
3383 - ac_status=$?
3384 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 - (exit $ac_status); }; }; then
3386 - eval "kde_cv_prog_cxx_$kde_cache=yes"
3387 -else
3388 - echo "$as_me: failed program was:" >&5
3389 -sed 's/^/| /' conftest.$ac_ext >&5
3390 -
3391 -fi
3392 -rm -f conftest.err conftest.$ac_objext \
3393 - conftest$ac_exeext conftest.$ac_ext
3394 - CXXFLAGS="$save_CXXFLAGS"
3395 - ac_ext=c
3396 -ac_cpp='$CPP $CPPFLAGS'
3397 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 -
3401 -
3402 -fi
3403 -
3404 -if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3405 - echo "$as_me:$LINENO: result: yes" >&5
3406 -echo "${ECHO_T}yes" >&6
3407 - :
3408 -
3409 -echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
3410 -echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
3411 -kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
3412 -if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3413 - echo $ECHO_N "(cached) $ECHO_C" >&6
3414 -else
3415 -
3416 -
3417 -
3418 - ac_ext=cc
3419 -ac_cpp='$CXXCPP $CPPFLAGS'
3420 -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3423 -
3424 -ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3425 -
3426 -
3427 - save_CXXFLAGS="$CXXFLAGS"
3428 - CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
3429 - cat >conftest.$ac_ext <<_ACEOF
3430 -/* confdefs.h. */
3431 -_ACEOF
3432 -cat confdefs.h >>conftest.$ac_ext
3433 -cat >>conftest.$ac_ext <<_ACEOF
3434 -/* end confdefs.h. */
3435 -
3436 -int
3437 -main ()
3438 -{
3439 - return 0;
3440 - ;
3441 - return 0;
3442 -}
3443 -_ACEOF
3444 -rm -f conftest.$ac_objext conftest$ac_exeext
3445 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3446 - (eval $ac_link) 2>conftest.er1
3447 - ac_status=$?
3448 - grep -v '^ *+' conftest.er1 >conftest.err
3449 - rm -f conftest.er1
3450 - cat conftest.err >&5
3451 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 - (exit $ac_status); } &&
3453 - { ac_try='test -z "$ac_cxx_werror_flag"
3454 - || test ! -s conftest.err'
3455 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 - (eval $ac_try) 2>&5
3457 - ac_status=$?
3458 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 - (exit $ac_status); }; } &&
3460 - { ac_try='test -s conftest$ac_exeext'
3461 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 - (eval $ac_try) 2>&5
3463 - ac_status=$?
3464 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 - (exit $ac_status); }; }; then
3466 - eval "kde_cv_prog_cxx_$kde_cache=yes"
3467 -else
3468 - echo "$as_me: failed program was:" >&5
3469 -sed 's/^/| /' conftest.$ac_ext >&5
3470 -
3471 -fi
3472 -rm -f conftest.err conftest.$ac_objext \
3473 - conftest$ac_exeext conftest.$ac_ext
3474 - CXXFLAGS="$save_CXXFLAGS"
3475 - ac_ext=c
3476 -ac_cpp='$CPP $CPPFLAGS'
3477 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480 -
3481 -
3482 -fi
3483 -
3484 -if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3485 - echo "$as_me:$LINENO: result: yes" >&5
3486 -echo "${ECHO_T}yes" >&6
3487 - :
3488 - KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
3489 -else
3490 - echo "$as_me:$LINENO: result: no" >&5
3491 -echo "${ECHO_T}no" >&6
3492 - :
3493 - KDE_NO_UNDEFINED=""
3494 -fi
3495 -
3496 -else
3497 - echo "$as_me:$LINENO: result: no" >&5
3498 -echo "${ECHO_T}no" >&6
3499 - :
3500 - KDE_NO_UNDEFINED=""
3501 -fi
3502 -
3503 - ;;
3504 - esac
3505 fi
3506
3507
3508 @@ -7037,7 +6854,7 @@
3509 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3510 # along with /bin/sed that truncates output.
3511 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3512 - test ! -f $lt_ac_sed && break
3513 + test ! -f $lt_ac_sed && continue
3514 cat /dev/null > conftest.in
3515 lt_ac_count=0
3516 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3517 @@ -7142,7 +6959,7 @@
3518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3519 lt_cv_path_LD="$ac_dir/$ac_prog"
3520 # Check to see if the program is GNU ld. I'd rather use --version,
3521 - # but apparently some GNU ld's only accept -v.
3522 + # but apparently some variants of GNU ld only accept -v.
3523 # Break only if it was the GNU/non-GNU ld that we prefer.
3524 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3525 *GNU* | *'with BFD'*)
3526 @@ -7176,7 +6993,7 @@
3527 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3531 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
3532 case `$LD -v 2>&1 </dev/null` in
3533 *GNU* | *'with BFD'*)
3534 lt_cv_prog_gnu_ld=yes
3535 @@ -7206,6 +7023,15 @@
3536 *) reload_flag=" $reload_flag" ;;
3537 esac
3538 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3539 +case $host_os in
3540 + darwin*)
3541 + if test "$GCC" = yes; then
3542 + reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3543 + else
3544 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
3545 + fi
3546 + ;;
3547 +esac
3548
3549 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3550 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3551 @@ -7292,44 +7118,36 @@
3552 lt_cv_deplibs_check_method=pass_all
3553 ;;
3554
3555 -bsdi4*)
3556 +bsdi[45]*)
3557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3558 lt_cv_file_magic_cmd='/usr/bin/file -L'
3559 lt_cv_file_magic_test_file=/shlib/libc.so
3560 ;;
3561
3562 cygwin*)
3563 - lt_cv_deplibs_check_method=pass_all
3564 + # func_win32_libid is a shell function defined in ltmain.sh
3565 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3566 + lt_cv_file_magic_cmd='func_win32_libid'
3567 ;;
3568
3569 mingw* | pw32*)
3570 - # win32_libid is a shell function defined in ltmain.sh
3571 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3572 - lt_cv_file_magic_cmd='win32_libid'
3573 + # Base MSYS/MinGW do not provide the 'file' command needed by
3574 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3575 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3576 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3577 ;;
3578
3579 darwin* | rhapsody*)
3580 - # this will be overwritten by pass_all, but leave it in just in case
3581 - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3582 - lt_cv_file_magic_cmd='/usr/bin/file -L'
3583 - case "$host_os" in
3584 - rhapsody* | darwin1.[012])
3585 - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3586 - ;;
3587 - *) # Darwin 1.3 on
3588 - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3589 - ;;
3590 - esac
3591 lt_cv_deplibs_check_method=pass_all
3592 ;;
3593
3594 -freebsd* | kfreebsd*-gnu)
3595 +freebsd* | kfreebsd*-gnu | dragonfly*)
3596 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3597 case $host_cpu in
3598 i*86 )
3599 # Not sure whether the presence of OpenBSD here was a mistake.
3600 # Let's accept both of them until this is cleared up.
3601 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3602 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3603 lt_cv_file_magic_cmd=/usr/bin/file
3604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3605 ;;
3606 @@ -7345,7 +7163,7 @@
3607
3608 hpux10.20* | hpux11*)
3609 lt_cv_file_magic_cmd=/usr/bin/file
3610 - case "$host_cpu" in
3611 + case $host_cpu in
3612 ia64*)
3613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3614 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3615 @@ -7362,42 +7180,21 @@
3616 ;;
3617
3618 irix5* | irix6* | nonstopux*)
3619 - case $host_os in
3620 - irix5* | nonstopux*)
3621 - # this will be overridden with pass_all, but let us keep it just in case
3622 - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3623 - ;;
3624 - *)
3625 - case $LD in
3626 - *-32|*"-32 ") libmagic=32-bit;;
3627 - *-n32|*"-n32 ") libmagic=N32;;
3628 - *-64|*"-64 ") libmagic=64-bit;;
3629 - *) libmagic=never-match;;
3630 - esac
3631 - # this will be overridden with pass_all, but let us keep it just in case
3632 - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3633 - ;;
3634 + case $LD in
3635 + *-32|*"-32 ") libmagic=32-bit;;
3636 + *-n32|*"-n32 ") libmagic=N32;;
3637 + *-64|*"-64 ") libmagic=64-bit;;
3638 + *) libmagic=never-match;;
3639 esac
3640 - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3641 lt_cv_deplibs_check_method=pass_all
3642 ;;
3643
3644 # This must be Linux ELF.
3645 linux*)
3646 - case $host_cpu in
3647 - alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
3648 - lt_cv_deplibs_check_method=pass_all ;;
3649 - # the debian people say, arm and glibc 2.3.1 works for them with pass_all
3650 - arm* )
3651 - lt_cv_deplibs_check_method=pass_all ;;
3652 - *)
3653 - # glibc up to 2.1.1 does not perform some relocations on ARM
3654 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3655 - esac
3656 - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3657 + lt_cv_deplibs_check_method=pass_all
3658 ;;
3659
3660 -netbsd*)
3661 +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3662 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3664 else
3665 @@ -7416,19 +7213,14 @@
3666 ;;
3667
3668 openbsd*)
3669 - lt_cv_file_magic_cmd=/usr/bin/file
3670 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3672 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3673 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3674 else
3675 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3676 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3677 fi
3678 ;;
3679
3680 osf3* | osf4* | osf5*)
3681 - # this will be overridden with pass_all, but let us keep it just in case
3682 - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3683 - lt_cv_file_magic_test_file=/shlib/libc.so
3684 lt_cv_deplibs_check_method=pass_all
3685 ;;
3686
3687 @@ -7438,7 +7230,6 @@
3688
3689 solaris*)
3690 lt_cv_deplibs_check_method=pass_all
3691 - lt_cv_file_magic_test_file=/lib/libc.so
3692 ;;
3693
3694 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3695 @@ -7515,7 +7306,7 @@
3696 ;;
3697 *-*-irix6*)
3698 # Find out which ABI we are using.
3699 - echo '#line 7518 "configure"' > conftest.$ac_ext
3700 + echo '#line 7309 "configure"' > conftest.$ac_ext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>&5
3703 ac_status=$?
3704 @@ -7558,14 +7349,13 @@
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; then
3708 - case "`/usr/bin/file conftest.o`" in
3709 + case `/usr/bin/file conftest.o` in
3710 *32-bit*)
3711 - LINUX_64_MODE="32"
3712 case $host in
3713 x86_64-*linux*)
3714 LD="${LD-ld} -m elf_i386"
3715 ;;
3716 - ppc64-*linux*)
3717 + ppc64-*linux*|powerpc64-*linux*)
3718 LD="${LD-ld} -m elf32ppclinux"
3719 ;;
3720 s390x-*linux*)
3721 @@ -7577,7 +7367,6 @@
3722 esac
3723 ;;
3724 *64-bit*)
3725 - LINUX_64_MODE="64"
3726 case $host in
3727 x86_64-*linux*)
3728 LD="${LD-ld} -m elf_x86_64"
3729 @@ -7637,8 +7426,7 @@
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 - { ac_try='test -z "$ac_c_werror_flag"
3734 - || test ! -s conftest.err'
3735 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 @@ -7713,8 +7501,7 @@
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 - { ac_try='test -z "$ac_c_werror_flag"
3744 - || test ! -s conftest.err'
3745 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 @@ -7884,8 +7671,7 @@
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 - { ac_try='test -z "$ac_c_werror_flag"
3754 - || test ! -s conftest.err'
3755 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 @@ -7952,8 +7738,7 @@
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 - { ac_try='test -z "$ac_c_werror_flag"
3764 - || test ! -s conftest.err'
3765 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 @@ -8068,6 +7853,243 @@
3770
3771 done
3772
3773 +
3774 +
3775 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3776 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3777 + (test "X$CXX" != "Xg++"))) ; then
3778 + ac_ext=cc
3779 +ac_cpp='$CXXCPP $CPPFLAGS'
3780 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3783 +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3784 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3785 +if test -z "$CXXCPP"; then
3786 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
3787 + echo $ECHO_N "(cached) $ECHO_C" >&6
3788 +else
3789 + # Double quotes because CXXCPP needs to be expanded
3790 + for CXXCPP in "$CXX -E" "/lib/cpp"
3791 + do
3792 + ac_preproc_ok=false
3793 +for ac_cxx_preproc_warn_flag in '' yes
3794 +do
3795 + # Use a header file that comes with gcc, so configuring glibc
3796 + # with a fresh cross-compiler works.
3797 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 + # <limits.h> exists even on freestanding compilers.
3799 + # On the NeXT, cc -E runs the code through the compiler's parser,
3800 + # not just through cpp. "Syntax error" is here to catch this case.
3801 + cat >conftest.$ac_ext <<_ACEOF
3802 +/* confdefs.h. */
3803 +_ACEOF
3804 +cat confdefs.h >>conftest.$ac_ext
3805 +cat >>conftest.$ac_ext <<_ACEOF
3806 +/* end confdefs.h. */
3807 +#ifdef __STDC__
3808 +# include <limits.h>
3809 +#else
3810 +# include <assert.h>
3811 +#endif
3812 + Syntax error
3813 +_ACEOF
3814 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816 + ac_status=$?
3817 + grep -v '^ *+' conftest.er1 >conftest.err
3818 + rm -f conftest.er1
3819 + cat conftest.err >&5
3820 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 + (exit $ac_status); } >/dev/null; then
3822 + if test -s conftest.err; then
3823 + ac_cpp_err=$ac_cxx_preproc_warn_flag
3824 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3825 + else
3826 + ac_cpp_err=
3827 + fi
3828 +else
3829 + ac_cpp_err=yes
3830 +fi
3831 +if test -z "$ac_cpp_err"; then
3832 + :
3833 +else
3834 + echo "$as_me: failed program was:" >&5
3835 +sed 's/^/| /' conftest.$ac_ext >&5
3836 +
3837 + # Broken: fails on valid input.
3838 +continue
3839 +fi
3840 +rm -f conftest.err conftest.$ac_ext
3841 +
3842 + # OK, works on sane cases. Now check whether non-existent headers
3843 + # can be detected and how.
3844 + cat >conftest.$ac_ext <<_ACEOF
3845 +/* confdefs.h. */
3846 +_ACEOF
3847 +cat confdefs.h >>conftest.$ac_ext
3848 +cat >>conftest.$ac_ext <<_ACEOF
3849 +/* end confdefs.h. */
3850 +#include <ac_nonexistent.h>
3851 +_ACEOF
3852 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 + ac_status=$?
3855 + grep -v '^ *+' conftest.er1 >conftest.err
3856 + rm -f conftest.er1
3857 + cat conftest.err >&5
3858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 + (exit $ac_status); } >/dev/null; then
3860 + if test -s conftest.err; then
3861 + ac_cpp_err=$ac_cxx_preproc_warn_flag
3862 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3863 + else
3864 + ac_cpp_err=
3865 + fi
3866 +else
3867 + ac_cpp_err=yes
3868 +fi
3869 +if test -z "$ac_cpp_err"; then
3870 + # Broken: success on invalid input.
3871 +continue
3872 +else
3873 + echo "$as_me: failed program was:" >&5
3874 +sed 's/^/| /' conftest.$ac_ext >&5
3875 +
3876 + # Passes both tests.
3877 +ac_preproc_ok=:
3878 +break
3879 +fi
3880 +rm -f conftest.err conftest.$ac_ext
3881 +
3882 +done
3883 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 +rm -f conftest.err conftest.$ac_ext
3885 +if $ac_preproc_ok; then
3886 + break
3887 +fi
3888 +
3889 + done
3890 + ac_cv_prog_CXXCPP=$CXXCPP
3891 +
3892 +fi
3893 + CXXCPP=$ac_cv_prog_CXXCPP
3894 +else
3895 + ac_cv_prog_CXXCPP=$CXXCPP
3896 +fi
3897 +echo "$as_me:$LINENO: result: $CXXCPP" >&5
3898 +echo "${ECHO_T}$CXXCPP" >&6
3899 +ac_preproc_ok=false
3900 +for ac_cxx_preproc_warn_flag in '' yes
3901 +do
3902 + # Use a header file that comes with gcc, so configuring glibc
3903 + # with a fresh cross-compiler works.
3904 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3905 + # <limits.h> exists even on freestanding compilers.
3906 + # On the NeXT, cc -E runs the code through the compiler's parser,
3907 + # not just through cpp. "Syntax error" is here to catch this case.
3908 + cat >conftest.$ac_ext <<_ACEOF
3909 +/* confdefs.h. */
3910 +_ACEOF
3911 +cat confdefs.h >>conftest.$ac_ext
3912 +cat >>conftest.$ac_ext <<_ACEOF
3913 +/* end confdefs.h. */
3914 +#ifdef __STDC__
3915 +# include <limits.h>
3916 +#else
3917 +# include <assert.h>
3918 +#endif
3919 + Syntax error
3920 +_ACEOF
3921 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3922 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923 + ac_status=$?
3924 + grep -v '^ *+' conftest.er1 >conftest.err
3925 + rm -f conftest.er1
3926 + cat conftest.err >&5
3927 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 + (exit $ac_status); } >/dev/null; then
3929 + if test -s conftest.err; then
3930 + ac_cpp_err=$ac_cxx_preproc_warn_flag
3931 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3932 + else
3933 + ac_cpp_err=
3934 + fi
3935 +else
3936 + ac_cpp_err=yes
3937 +fi
3938 +if test -z "$ac_cpp_err"; then
3939 + :
3940 +else
3941 + echo "$as_me: failed program was:" >&5
3942 +sed 's/^/| /' conftest.$ac_ext >&5
3943 +
3944 + # Broken: fails on valid input.
3945 +continue
3946 +fi
3947 +rm -f conftest.err conftest.$ac_ext
3948 +
3949 + # OK, works on sane cases. Now check whether non-existent headers
3950 + # can be detected and how.
3951 + cat >conftest.$ac_ext <<_ACEOF
3952 +/* confdefs.h. */
3953 +_ACEOF
3954 +cat confdefs.h >>conftest.$ac_ext
3955 +cat >>conftest.$ac_ext <<_ACEOF
3956 +/* end confdefs.h. */
3957 +#include <ac_nonexistent.h>
3958 +_ACEOF
3959 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3960 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961 + ac_status=$?
3962 + grep -v '^ *+' conftest.er1 >conftest.err
3963 + rm -f conftest.er1
3964 + cat conftest.err >&5
3965 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 + (exit $ac_status); } >/dev/null; then
3967 + if test -s conftest.err; then
3968 + ac_cpp_err=$ac_cxx_preproc_warn_flag
3969 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3970 + else
3971 + ac_cpp_err=
3972 + fi
3973 +else
3974 + ac_cpp_err=yes
3975 +fi
3976 +if test -z "$ac_cpp_err"; then
3977 + # Broken: success on invalid input.
3978 +continue
3979 +else
3980 + echo "$as_me: failed program was:" >&5
3981 +sed 's/^/| /' conftest.$ac_ext >&5
3982 +
3983 + # Passes both tests.
3984 +ac_preproc_ok=:
3985 +break
3986 +fi
3987 +rm -f conftest.err conftest.$ac_ext
3988 +
3989 +done
3990 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3991 +rm -f conftest.err conftest.$ac_ext
3992 +if $ac_preproc_ok; then
3993 + :
3994 +else
3995 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3996 +See \`config.log' for more details." >&5
3997 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3998 +See \`config.log' for more details." >&2;}
3999 + { (exit 1); exit 1; }; }
4000 +fi
4001 +
4002 +ac_ext=cc
4003 +ac_cpp='$CXXCPP $CPPFLAGS'
4004 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4007 +
4008 +fi
4009 +
4010 ac_ext=f
4011 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4012 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 @@ -8160,7 +8182,7 @@
4014
4015
4016 # Provide some information about the compiler.
4017 -echo "$as_me:8163:" \
4018 +echo "$as_me:8185:" \
4019 "checking for Fortran 77 compiler version" >&5
4020 ac_compiler=`set X $ac_compile; echo $2`
4021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4022 @@ -8206,8 +8228,7 @@
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 - { ac_try='test -z "$ac_f77_werror_flag"
4027 - || test ! -s conftest.err'
4028 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 @@ -8256,8 +8277,7 @@
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 - { ac_try='test -z "$ac_f77_werror_flag"
4037 - || test ! -s conftest.err'
4038 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 @@ -8315,7 +8335,7 @@
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 i=0
4046 - testring="ABCD"
4047 + teststring="ABCD"
4048
4049 case $build_os in
4050 msdosdjgpp*)
4051 @@ -8344,20 +8364,53 @@
4052 lt_cv_sys_max_cmd_len=8192;
4053 ;;
4054
4055 - *)
4056 + amigaos*)
4057 + # On AmigaOS with pdksh, this test takes hours, literally.
4058 + # So we just punt and use a minimum line length of 8192.
4059 + lt_cv_sys_max_cmd_len=8192;
4060 + ;;
4061 +
4062 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4063 + # This has been around since 386BSD, at least. Likely further.
4064 + if test -x /sbin/sysctl; then
4065 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4066 + elif test -x /usr/sbin/sysctl; then
4067 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4068 + else
4069 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4070 + fi
4071 + # And add a safety zone
4072 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4073 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4074 + ;;
4075 + osf*)
4076 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4077 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4078 + # nice to cause kernel panics so lets avoid the loop below.
4079 + # First set a reasonable default.
4080 + lt_cv_sys_max_cmd_len=16384
4081 + #
4082 + if test -x /sbin/sysconfig; then
4083 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4084 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
4085 + esac
4086 + fi
4087 + ;;
4088 + *)
4089 # If test is not a shell built-in, we'll probably end up computing a
4090 # maximum length that is only half of the actual maximum length, but
4091 # we can't tell.
4092 - while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4093 - = "XX$testring") >/dev/null 2>&1 &&
4094 - new_result=`expr "X$testring" : ".*" 2>&1` &&
4095 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4096 + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4097 + = "XX$teststring") >/dev/null 2>&1 &&
4098 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
4099 lt_cv_sys_max_cmd_len=$new_result &&
4100 test $i != 17 # 1/2 MB should be enough
4101 do
4102 i=`expr $i + 1`
4103 - testring=$testring$testring
4104 + teststring=$teststring$teststring
4105 done
4106 - testring=
4107 + teststring=
4108 # Add a significant safety factor because C++ compilers can tack on massive
4109 # amounts of additional arguments before passing them to the linker.
4110 # It appears as though 1/2 is a usable value.
4111 @@ -8394,9 +8447,6 @@
4112 # Regexp to match symbols that can be accessed directly from C.
4113 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4114
4115 -# Transform the above into a raw symbol and a C symbol.
4116 -symxfrm='\1 \2\3 \3'
4117 -
4118 # Transform an extracted symbol line into a proper C declaration
4119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4120
4121 @@ -8418,6 +8468,13 @@
4122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4123 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'"
4124 ;;
4125 +linux*)
4126 + if test "$host_cpu" = ia64; then
4127 + symcode='[ABCDGIRSTW]'
4128 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4129 + 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'"
4130 + fi
4131 + ;;
4132 irix* | nonstopux*)
4133 symcode='[BCDEGRST]'
4134 ;;
4135 @@ -8425,7 +8482,7 @@
4136 symcode='[BCDEGQRST]'
4137 ;;
4138 solaris* | sysv5*)
4139 - symcode='[BDT]'
4140 + symcode='[BDRT]'
4141 ;;
4142 sysv4)
4143 symcode='[DFNSTU]'
4144 @@ -8443,14 +8500,17 @@
4145 # If we're using GNU nm, then use its standard symbol codes.
4146 case `$NM -V 2>&1` in
4147 *GNU* | *'with BFD'*)
4148 - symcode='[ABCDGISTW]' ;;
4149 + symcode='[ABCDGIRSTW]' ;;
4150 esac
4151
4152 # Try without a prefix undercore, then with it.
4153 for ac_symprfx in "" "_"; do
4154
4155 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4156 + symxfrm="\\1 $ac_symprfx\\2 \\2"
4157 +
4158 # Write the raw and C identifiers.
4159 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4160 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4161
4162 # Check to see that the pipe works correctly.
4163 pipe_works=no
4164 @@ -8612,7 +8672,7 @@
4165
4166 # Sed substitution that helps us do robust quoting. It backslashifies
4167 # metacharacters that are still active within double-quoted strings.
4168 -Xsed='sed -e s/^X//'
4169 +Xsed='sed -e 1s/^X//'
4170 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4171
4172 # Same as above, but do not quote variable references.
4173 @@ -8632,7 +8692,7 @@
4174 default_ofile=libtool
4175 can_build_shared=yes
4176
4177 -# All known linkers require a `.a' archive for static linking (except M$VC,
4178 +# All known linkers require a `.a' archive for static linking (except MSVC,
4179 # which needs '.lib').
4180 libext=a
4181 ltmain="$ac_aux_dir/ltmain.sh"
4182 @@ -8917,6 +8977,17 @@
4183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4184 fi
4185
4186 +for cc_temp in $compiler""; do
4187 + case $cc_temp in
4188 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
4189 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
4190 + \-*) ;;
4191 + *) break;;
4192 + esac
4193 +done
4194 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
4195 +
4196 +
4197 # Only perform the check for file, if the check method requires it
4198 case $deplibs_check_method in
4199 file_magic*)
4200 @@ -8942,7 +9013,7 @@
4201 if test -n "$file_magic_test_file"; then
4202 case $deplibs_check_method in
4203 "file_magic "*)
4204 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4205 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
4206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4208 $EGREP "$file_magic_regex" > /dev/null; then
4209 @@ -9004,7 +9075,7 @@
4210 if test -n "$file_magic_test_file"; then
4211 case $deplibs_check_method in
4212 "file_magic "*)
4213 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4214 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
4215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4217 $EGREP "$file_magic_regex" > /dev/null; then
4218 @@ -9103,6 +9174,20 @@
4219 compiler=$CC
4220
4221
4222 +# save warnings/boilerplate of simple test code
4223 +ac_outfile=conftest.$ac_objext
4224 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
4225 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
4226 +_lt_compiler_boilerplate=`cat conftest.err`
4227 +$rm conftest*
4228 +
4229 +ac_outfile=conftest.$ac_objext
4230 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
4231 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
4232 +_lt_linker_boilerplate=`cat conftest.err`
4233 +$rm conftest*
4234 +
4235 +
4236 #
4237 # Check for any special shared library compilation flags.
4238 #
4239 @@ -9139,11 +9224,16 @@
4240 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
4241 printf "$lt_simple_link_test_code" > conftest.$ac_ext
4242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
4243 - # The compiler can only warn and ignore the option if not recognized
4244 + # The linker can only warn and ignore the option if not recognized
4245 # So say no if there are warnings
4246 if test -s conftest.err; then
4247 # Append any errors to the config.log.
4248 cat conftest.err 1>&5
4249 + $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
4250 + $SED '/^$/d' conftest.err >conftest.er2
4251 + if diff conftest.exp conftest.er2 >/dev/null; then
4252 + lt_prog_compiler_static_works=yes
4253 + fi
4254 else
4255 lt_prog_compiler_static_works=yes
4256 fi
4257 @@ -9189,18 +9279,20 @@
4258 # with a dollar sign (not a hyphen), so the echo should work correctly.
4259 # The option is referenced via a variable to avoid confusing sed.
4260 lt_compile=`echo "$ac_compile" | $SED \
4261 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
4262 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4264 -e 's:$: $lt_compiler_flag:'`
4265 - (eval echo "\"\$as_me:9195: $lt_compile\"" >&5)
4266 + (eval echo "\"\$as_me:9285: $lt_compile\"" >&5)
4267 (eval "$lt_compile" 2>conftest.err)
4268 ac_status=$?
4269 cat conftest.err >&5
4270 - echo "$as_me:9199: \$? = $ac_status" >&5
4271 + echo "$as_me:9289: \$? = $ac_status" >&5
4272 if (exit $ac_status) && test -s "$ac_outfile"; then
4273 # The compiler can only warn and ignore the option if not recognized
4274 - # So say no if there are warnings
4275 - if test ! -s conftest.err; then
4276 + # So say no if there are warnings other than the usual output.
4277 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
4278 + $SED '/^$/d' conftest.err >conftest.er2
4279 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
4280 lt_cv_prog_compiler_rtti_exceptions=yes
4281 fi
4282 fi
4283 @@ -9277,7 +9369,7 @@
4284 hpux*)
4285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4286 # not for PA HP-UX.
4287 - case "$host_cpu" in
4288 + case $host_cpu in
4289 hppa*64*|ia64*)
4290 # +Z the default
4291 ;;
4292 @@ -9303,6 +9395,16 @@
4293 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
4294 fi
4295 ;;
4296 + darwin*)
4297 + # PIC is the default on this platform
4298 + # Common symbols not allowed in MH_DYLIB files
4299 + case $cc_basename in
4300 + xlc*)
4301 + lt_prog_compiler_pic='-qnocommon'
4302 + lt_prog_compiler_wl='-Wl,'
4303 + ;;
4304 + esac
4305 + ;;
4306
4307 mingw* | pw32* | os2*)
4308 # This hack is so that the source file can tell whether it is being
4309 @@ -9314,7 +9416,7 @@
4310 lt_prog_compiler_wl='-Wl,'
4311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4312 # not for PA HP-UX.
4313 - case "$host_cpu" in
4314 + case $host_cpu in
4315 hppa*64*|ia64*)
4316 # +Z the default
4317 ;;
4318 @@ -9338,12 +9440,19 @@
4319 ;;
4320
4321 linux*)
4322 - case $CC in
4323 + case $cc_basename in
4324 icc* | ecc*)
4325 lt_prog_compiler_wl='-Wl,'
4326 lt_prog_compiler_pic='-KPIC'
4327 lt_prog_compiler_static='-static'
4328 ;;
4329 + pgcc* | pgf77* | pgf90* | pgf95*)
4330 + # Portland Group compilers (*not* the Pentium gcc compiler,
4331 + # which looks to be a dead project)
4332 + lt_prog_compiler_wl='-Wl,'
4333 + lt_prog_compiler_pic='-fpic'
4334 + lt_prog_compiler_static='-Bstatic'
4335 + ;;
4336 ccc*)
4337 lt_prog_compiler_wl='-Wl,'
4338 # All Alpha code is PIC.
4339 @@ -9364,9 +9473,14 @@
4340 ;;
4341
4342 solaris*)
4343 - lt_prog_compiler_wl='-Wl,'
4344 lt_prog_compiler_pic='-KPIC'
4345 lt_prog_compiler_static='-Bstatic'
4346 + case $cc_basename in
4347 + f77* | f90* | f95*)
4348 + lt_prog_compiler_wl='-Qoption ld ';;
4349 + *)
4350 + lt_prog_compiler_wl='-Wl,';;
4351 + esac
4352 ;;
4353
4354 sunos4*)
4355 @@ -9388,6 +9502,11 @@
4356 fi
4357 ;;
4358
4359 + unicos*)
4360 + lt_prog_compiler_wl='-Wl,'
4361 + lt_prog_compiler_can_build_shared=no
4362 + ;;
4363 +
4364 uts4*)
4365 lt_prog_compiler_pic='-pic'
4366 lt_prog_compiler_static='-Bstatic'
4367 @@ -9422,18 +9541,20 @@
4368 # with a dollar sign (not a hyphen), so the echo should work correctly.
4369 # The option is referenced via a variable to avoid confusing sed.
4370 lt_compile=`echo "$ac_compile" | $SED \
4371 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
4372 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4374 -e 's:$: $lt_compiler_flag:'`
4375 - (eval echo "\"\$as_me:9428: $lt_compile\"" >&5)
4376 + (eval echo "\"\$as_me:9547: $lt_compile\"" >&5)
4377 (eval "$lt_compile" 2>conftest.err)
4378 ac_status=$?
4379 cat conftest.err >&5
4380 - echo "$as_me:9432: \$? = $ac_status" >&5
4381 + echo "$as_me:9551: \$? = $ac_status" >&5
4382 if (exit $ac_status) && test -s "$ac_outfile"; then
4383 # The compiler can only warn and ignore the option if not recognized
4384 - # So say no if there are warnings
4385 - if test ! -s conftest.err; then
4386 + # So say no if there are warnings other than the usual output.
4387 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
4388 + $SED '/^$/d' conftest.err >conftest.er2
4389 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
4390 lt_prog_compiler_pic_works=yes
4391 fi
4392 fi
4393 @@ -9454,7 +9575,7 @@
4394 fi
4395
4396 fi
4397 -case "$host_os" in
4398 +case $host_os in
4399 # For platforms which do not support PIC, -DPIC is meaningless:
4400 *djgpp*)
4401 lt_prog_compiler_pic=
4402 @@ -9476,38 +9597,36 @@
4403 mkdir out
4404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4405
4406 - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4407 - # that will create temporary files in the current directory regardless of
4408 - # the output directory. Thus, making CWD read-only will cause this test
4409 - # to fail, enabling locking or at least warning the user not to do parallel
4410 - # builds.
4411 - chmod -w .
4412 -
4413 lt_compiler_flag="-o out/conftest2.$ac_objext"
4414 # Insert the option either (1) after the last *FLAGS variable, or
4415 # (2) before a word containing "conftest.", or (3) at the end.
4416 # Note that $ac_compile itself does not contain backslashes and begins
4417 # with a dollar sign (not a hyphen), so the echo should work correctly.
4418 lt_compile=`echo "$ac_compile" | $SED \
4419 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
4420 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4422 -e 's:$: $lt_compiler_flag:'`
4423 - (eval echo "\"\$as_me:9495: $lt_compile\"" >&5)
4424 + (eval echo "\"\$as_me:9609: $lt_compile\"" >&5)
4425 (eval "$lt_compile" 2>out/conftest.err)
4426 ac_status=$?
4427 cat out/conftest.err >&5
4428 - echo "$as_me:9499: \$? = $ac_status" >&5
4429 + echo "$as_me:9613: \$? = $ac_status" >&5
4430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
4431 then
4432 # The compiler can only warn and ignore the option if not recognized
4433 # So say no if there are warnings
4434 - if test ! -s out/conftest.err; then
4435 + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
4436 + $SED '/^$/d' out/conftest.err >out/conftest.er2
4437 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
4438 lt_cv_prog_compiler_c_o=yes
4439 fi
4440 fi
4441 - chmod u+w .
4442 - $rm conftest* out/*
4443 - rmdir out
4444 + chmod u+w . 2>&5
4445 + $rm conftest*
4446 + # SGI C++ compiler will create directory out/ii_files/ for
4447 + # template instantiation
4448 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
4449 + $rm out/* && rmdir out
4450 cd ..
4451 rmdir conftest
4452 $rm conftest*
4453 @@ -9578,6 +9697,16 @@
4454 # rely on this symbol name, it's probably fine to never include it in
4455 # preloaded symbol tables.
4456 extract_expsyms_cmds=
4457 + # Just being paranoid about ensuring that cc_basename is set.
4458 + for cc_temp in $compiler""; do
4459 + case $cc_temp in
4460 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
4461 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
4462 + \-*) ;;
4463 + *) break;;
4464 + esac
4465 +done
4466 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
4467
4468 case $host_os in
4469 cygwin* | mingw* | pw32*)
4470 @@ -9598,6 +9727,27 @@
4471 # If archive_cmds runs LD, not CC, wlarc should be empty
4472 wlarc='${wl}'
4473
4474 + # Set some defaults for GNU ld with shared library support. These
4475 + # are reset later if shared libraries are not supported. Putting them
4476 + # here allows them to be overridden if necessary.
4477 + runpath_var=LD_RUN_PATH
4478 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4479 + export_dynamic_flag_spec='${wl}--export-dynamic'
4480 + # ancient GNU ld didn't support --whole-archive et. al.
4481 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
4482 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4483 + else
4484 + whole_archive_flag_spec=
4485 + fi
4486 + supports_anon_versioning=no
4487 + case `$LD -v 2>/dev/null` in
4488 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
4489 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4490 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4491 + *\ 2.11.*) ;; # other 2.11 versions
4492 + *) supports_anon_versioning=yes ;;
4493 + esac
4494 +
4495 # See if GNU ld supports shared libraries.
4496 case $host_os in
4497 aix3* | aix4* | aix5*)
4498 @@ -9635,7 +9785,7 @@
4499 allow_undefined_flag=unsupported
4500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4501 # support --undefined. This deserves some investigation. FIXME
4502 - archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
4503 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4504 else
4505 ld_shlibs=no
4506 fi
4507 @@ -9645,13 +9795,13 @@
4508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
4509 # as there is no search path for DLLs.
4510 hardcode_libdir_flag_spec='-L$libdir'
4511 - allow_undefined_flag=no
4512 + allow_undefined_flag=unsupported
4513 always_export_symbols=no
4514 enable_shared_with_static_runtimes=yes
4515 - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
4516 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
4517
4518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4519 - archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4520 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4521 # If the export-symbols file already is a .def file (1st line
4522 # is EXPORTS), use it as is; otherwise, prepend...
4523 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4524 @@ -9660,19 +9810,51 @@
4525 echo EXPORTS > $output_objdir/$soname.def;
4526 cat $export_symbols >> $output_objdir/$soname.def;
4527 fi~
4528 - $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4529 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4530 + else
4531 + ld_shlibs=no
4532 + fi
4533 + ;;
4534 +
4535 + linux*)
4536 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4537 + tmp_addflag=
4538 + case $cc_basename,$host_cpu in
4539 + pgcc*) # Portland Group C compiler
4540 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4541 + tmp_addflag=' $pic_flag'
4542 + ;;
4543 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4544 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4545 + tmp_addflag=' $pic_flag -Mnomain' ;;
4546 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4547 + tmp_addflag=' -i_dynamic' ;;
4548 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4549 + tmp_addflag=' -i_dynamic -nofor_main' ;;
4550 + ifc* | ifort*) # Intel Fortran compiler
4551 + tmp_addflag=' -nofor_main' ;;
4552 + esac
4553 + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4554 +
4555 + if test $supports_anon_versioning = yes; then
4556 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
4557 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4558 + $echo "local: *; };" >> $output_objdir/$libname.ver~
4559 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4560 + fi
4561 + link_all_deplibs=no
4562 else
4563 ld_shlibs=no
4564 fi
4565 ;;
4566
4567 - netbsd*)
4568 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4570 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4571 wlarc=
4572 else
4573 - archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
4574 - archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4575 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4576 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4577 fi
4578 ;;
4579
4580 @@ -9690,8 +9872,8 @@
4581
4582 EOF
4583 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4584 - archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
4585 - archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4586 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4587 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4588 else
4589 ld_shlibs=no
4590 fi
4591 @@ -9706,24 +9888,19 @@
4592
4593 *)
4594 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4595 - archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
4596 - archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4597 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4598 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4599 else
4600 ld_shlibs=no
4601 fi
4602 ;;
4603 esac
4604
4605 - if test "$ld_shlibs" = yes; then
4606 - runpath_var=LD_RUN_PATH
4607 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4608 - export_dynamic_flag_spec='${wl}--export-dynamic'
4609 - # ancient GNU ld didn't support --whole-archive et. al.
4610 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
4611 - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4612 - else
4613 - whole_archive_flag_spec=
4614 - fi
4615 + if test "$ld_shlibs" = no; then
4616 + runpath_var=
4617 + hardcode_libdir_flag_spec=
4618 + export_dynamic_flag_spec=
4619 + whole_archive_flag_spec=
4620 fi
4621 else
4622 # PORTME fill in a description of your system's linker (not GNU ld)
4623 @@ -9757,9 +9934,20 @@
4624 else
4625 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
4626 fi
4627 + aix_use_runtimelinking=no
4628 +
4629 + # Test if we are trying to use run time linking or normal
4630 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4631 + # need to do runtime linking.
4632 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4633 + for ld_flag in $LDFLAGS; do
4634 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4635 + aix_use_runtimelinking=yes
4636 + break
4637 + fi
4638 + done
4639 + esac
4640
4641 - # KDE requires run time linking. Make it the default.
4642 - aix_use_runtimelinking=yes
4643 exp_sym_flag='-bexport'
4644 no_entry_flag='-bnoentry'
4645 fi
4646 @@ -9776,7 +9964,7 @@
4647 link_all_deplibs=yes
4648
4649 if test "$GCC" = yes; then
4650 - case $host_os in aix4.012|aix4.012.*)
4651 + case $host_os in aix4.[012]|aix4.[012].*)
4652 # We only want to do this on AIX 4.2 and lower, the check
4653 # below for broken collect2 doesn't work under 4.3+
4654 collect2name=`${CC} -print-prog-name=collect2`
4655 @@ -9797,6 +9985,9 @@
4656 fi
4657 esac
4658 shared_flag='-shared'
4659 + if test "$aix_use_runtimelinking" = yes; then
4660 + shared_flag="$shared_flag "'${wl}-G'
4661 + fi
4662 else
4663 # not using gcc
4664 if test "$host_cpu" = ia64; then
4665 @@ -9805,21 +9996,22 @@
4666 shared_flag='-G'
4667 else
4668 if test "$aix_use_runtimelinking" = yes; then
4669 - shared_flag='-qmkshrobj ${wl}-G'
4670 + shared_flag='${wl}-G'
4671 else
4672 - shared_flag='-qmkshrobj'
4673 + shared_flag='${wl}-bM:SRE'
4674 fi
4675 fi
4676 fi
4677
4678 - # Let the compiler handle the export list.
4679 - always_export_symbols=no
4680 + # It seems that -bexpall does not export symbols beginning with
4681 + # underscore (_), so it is better to generate a list of symbols to export.
4682 + always_export_symbols=yes
4683 if test "$aix_use_runtimelinking" = yes; then
4684 # Warning - without using the other runtime loading flags (-brtl),
4685 # -berok will link without error, but may produce a broken library.
4686 allow_undefined_flag='-berok'
4687 # Determine the default libpath from the value encoded in an empty executable.
4688 - cat >conftest.$ac_ext <<_ACEOF
4689 + cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 @@ -9843,8 +10035,7 @@
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 - { ac_try='test -z "$ac_c_werror_flag"
4698 - || test ! -s conftest.err'
4699 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 @@ -9871,14 +10062,13 @@
4704 conftest$ac_exeext conftest.$ac_ext
4705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4706
4707 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4708 - archive_cmds="\$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"
4709 - archive_expsym_cmds="\$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"
4710 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4711 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4712 else
4713 if test "$host_cpu" = ia64; then
4714 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4715 allow_undefined_flag="-z nodefs"
4716 - archive_expsym_cmds="\$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"
4717 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4718 else
4719 # Determine the default libpath from the value encoded in an empty executable.
4720 cat >conftest.$ac_ext <<_ACEOF
4721 @@ -9905,8 +10095,7 @@
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 - { ac_try='test -z "$ac_c_werror_flag"
4726 - || test ! -s conftest.err'
4727 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 @@ -9943,8 +10132,8 @@
4732 # Exported symbols can be pulled into shared objects from archives
4733 whole_archive_flag_spec=' '
4734 archive_cmds_need_lc=yes
4735 - # This is similar to how AIX traditionally builds it's shared libraries.
4736 - archive_expsym_cmds="\$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'
4737 + # This is similar to how AIX traditionally builds its shared libraries.
4738 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4739 fi
4740 fi
4741 ;;
4742 @@ -9957,7 +10146,7 @@
4743 ld_shlibs=no
4744 ;;
4745
4746 - bsdi4*)
4747 + bsdi[45]*)
4748 export_dynamic_flag_spec=-rdynamic
4749 ;;
4750
4751 @@ -9967,13 +10156,13 @@
4752 # hardcode_libdir_flag_spec is actually meaningless, as there is
4753 # no search path for DLLs.
4754 hardcode_libdir_flag_spec=' '
4755 - allow_undefined_flag=no
4756 + allow_undefined_flag=unsupported
4757 # Tell ltmain to make .lib files, not .a files.
4758 libext=lib
4759 # Tell ltmain to make .dll files, not .so files.
4760 - shrext=".dll"
4761 + shrext_cmds=".dll"
4762 # FIXME: Setting linknames here is a bad hack.
4763 - archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
4764 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
4765 # The linker will automatically build a .lib file if we build a DLL.
4766 old_archive_From_new_cmds='true'
4767 # FIXME: Should let the user specify the lib program.
4768 @@ -9983,52 +10172,52 @@
4769 ;;
4770
4771 darwin* | rhapsody*)
4772 - if test "$GXX" = yes ; then
4773 - archive_cmds_need_lc=no
4774 - case "$host_os" in
4775 - rhapsody* | darwin1.[012])
4776 - allow_undefined_flag='-Wl,-undefined -Wl,suppress'
4777 - ;;
4778 - *) # Darwin 1.3 on
4779 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4780 - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
4781 - else
4782 - case ${MACOSX_DEPLOYMENT_TARGET} in
4783 - 10.012)
4784 - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
4785 - ;;
4786 - 10.*)
4787 - allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
4788 - ;;
4789 - esac
4790 - fi
4791 - ;;
4792 + case $host_os in
4793 + rhapsody* | darwin1.[012])
4794 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
4795 + ;;
4796 + *) # Darwin 1.3 on
4797 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4798 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4799 + else
4800 + case ${MACOSX_DEPLOYMENT_TARGET} in
4801 + 10.[012])
4802 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4803 + ;;
4804 + 10.*)
4805 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
4806 + ;;
4807 + esac
4808 + fi
4809 + ;;
4810 esac
4811 - lt_int_apple_cc_single_mod=no
4812 - output_verbose_link_cmd='echo'
4813 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
4814 - lt_int_apple_cc_single_mod=yes
4815 - fi
4816 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4817 - archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
4818 - else
4819 - archive_cmds='$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'
4820 - fi
4821 - module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
4822 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4823 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4824 - archive_expsym_cmds='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}'
4825 - else
4826 - archive_expsym_cmds='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}'
4827 - fi
4828 - module_expsym_cmds='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}'
4829 + archive_cmds_need_lc=no
4830 hardcode_direct=no
4831 hardcode_automatic=yes
4832 hardcode_shlibpath_var=unsupported
4833 - whole_archive_flag_spec='-all_load $convenience'
4834 + whole_archive_flag_spec=''
4835 link_all_deplibs=yes
4836 + if test "$GCC" = yes ; then
4837 + output_verbose_link_cmd='echo'
4838 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4839 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4840 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4841 + archive_expsym_cmds='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}'
4842 + module_expsym_cmds='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}'
4843 else
4844 - ld_shlibs=no
4845 + case $cc_basename in
4846 + xlc*)
4847 + output_verbose_link_cmd='echo'
4848 + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
4849 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4850 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4851 + archive_expsym_cmds='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4852 + module_expsym_cmds='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}'
4853 + ;;
4854 + *)
4855 + ld_shlibs=no
4856 + ;;
4857 + esac
4858 fi
4859 ;;
4860
4861 @@ -10062,8 +10251,8 @@
4862 ;;
4863
4864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4865 - freebsd* | kfreebsd*-gnu)
4866 - archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
4867 + freebsd* | kfreebsd*-gnu | dragonfly*)
4868 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4869 hardcode_libdir_flag_spec='-R$libdir'
4870 hardcode_direct=yes
4871 hardcode_shlibpath_var=no
4872 @@ -10071,7 +10260,7 @@
4873
4874 hpux9*)
4875 if test "$GCC" = yes; then
4876 - archive_cmds='$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'
4877 + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4878 else
4879 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4880 fi
4881 @@ -10087,16 +10276,16 @@
4882
4883 hpux10* | hpux11*)
4884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4885 - case "$host_cpu" in
4886 + case $host_cpu in
4887 hppa*64*|ia64*)
4888 - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
4889 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4890 ;;
4891 *)
4892 - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
4893 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4894 ;;
4895 esac
4896 else
4897 - case "$host_cpu" in
4898 + case $host_cpu in
4899 hppa*64*|ia64*)
4900 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
4901 ;;
4902 @@ -10106,7 +10295,7 @@
4903 esac
4904 fi
4905 if test "$with_gnu_ld" = no; then
4906 - case "$host_cpu" in
4907 + case $host_cpu in
4908 hppa*64*)
4909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4910 hardcode_libdir_flag_spec_ld='+b $libdir'
4911 @@ -10139,7 +10328,7 @@
4912
4913 irix5* | irix6* | nonstopux*)
4914 if test "$GCC" = yes; then
4915 - archive_cmds='$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'
4916 + archive_cmds='$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'
4917 else
4918 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4919 hardcode_libdir_flag_spec_ld='-rpath $libdir'
4920 @@ -10149,7 +10338,7 @@
4921 link_all_deplibs=yes
4922 ;;
4923
4924 - netbsd*)
4925 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4928 else
4929 @@ -10172,7 +10361,8 @@
4930 hardcode_direct=yes
4931 hardcode_shlibpath_var=no
4932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4933 - archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
4934 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4935 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4937 export_dynamic_flag_spec='${wl}-E'
4938 else
4939 @@ -10182,7 +10372,7 @@
4940 hardcode_libdir_flag_spec='-R$libdir'
4941 ;;
4942 *)
4943 - archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
4944 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4946 ;;
4947 esac
4948 @@ -10193,14 +10383,14 @@
4949 hardcode_libdir_flag_spec='-L$libdir'
4950 hardcode_minus_L=yes
4951 allow_undefined_flag=unsupported
4952 - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
4953 + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4954 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4955 ;;
4956
4957 osf3*)
4958 if test "$GCC" = yes; then
4959 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4960 - archive_cmds='$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'
4961 + archive_cmds='$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'
4962 else
4963 allow_undefined_flag=' -expect_unresolved \*'
4964 archive_cmds='$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'
4965 @@ -10212,13 +10402,13 @@
4966 osf4* | osf5*) # as osf3* with the addition of -msym flag
4967 if test "$GCC" = yes; then
4968 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4969 - archive_cmds='$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'
4970 + archive_cmds='$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'
4971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4972 else
4973 allow_undefined_flag=' -expect_unresolved \*'
4974 archive_cmds='$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'
4975 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4976 - $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'
4977 + $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'
4978
4979 # Both c and cxx compiler support -rpath directly
4980 hardcode_libdir_flag_spec='-rpath $libdir'
4981 @@ -10237,10 +10427,12 @@
4982 solaris*)
4983 no_undefined_flag=' -z text'
4984 if test "$GCC" = yes; then
4985 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
4986 + wlarc='${wl}'
4987 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4988 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4989 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
4990 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4991 else
4992 + wlarc=''
4993 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4994 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4995 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4996 @@ -10249,8 +10441,18 @@
4997 hardcode_shlibpath_var=no
4998 case $host_os in
4999 solaris2.[0-5] | solaris2.[0-5].*) ;;
5000 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5001 - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5002 + *)
5003 + # The compiler driver will combine linker options so we
5004 + # cannot just pass the convience library names through
5005 + # without $wl, iff we do not link with $LD.
5006 + # Luckily, gcc supports the same syntax we need for Sun Studio.
5007 + # Supported since Solaris 2.6 (maybe 2.5.1?)
5008 + case $wlarc in
5009 + '')
5010 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5011 + *)
5012 + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
5013 + esac ;;
5014 esac
5015 link_all_deplibs=yes
5016 ;;
5017 @@ -10259,7 +10461,7 @@
5018 if test "x$host_vendor" = xsequent; then
5019 # Use $CC to link under sequent, because it throws in some extra .o
5020 # files that make .init and .fini sections work.
5021 - archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
5022 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5023 else
5024 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5025 fi
5026 @@ -10319,9 +10521,9 @@
5027 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
5028 no_undefined_flag='${wl}-z ${wl}text'
5029 if test "$GCC" = yes; then
5030 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
5031 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5032 else
5033 - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
5034 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5035 fi
5036 runpath_var='LD_RUN_PATH'
5037 hardcode_shlibpath_var=no
5038 @@ -10427,7 +10629,7 @@
5039 library_names_spec=
5040