549b243009f868c9ad6d8517c59c0716f7f14d00
[debian/mimetic.git] / debian / patches / libtool.patch
1 Author: gregor herrmann <gregoa@debian.org>
2 Bug: #500317
3 Description: We need a newer libtool at least for amd64.
4
5 This patch basically is the result of:
6   libtoolize --force --copy
7   aclocal-1.6
8   autoconf
9   fakeroot debian/rules clean
10
11 Cf. http://people.dooz.org/~lool/debian/relibtoolize
12
13 --- a/configure
14 +++ b/configure
15 @@ -1,7 +1,7 @@
16  #! /bin/sh
17  # From configure.in Revision: 1.36 .
18  # Guess values for system-dependent variables and create Makefiles.
19 -# Generated by GNU Autoconf 2.60.
20 +# Generated by GNU Autoconf 2.61.
21  #
22  # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
23  # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
24 @@ -11,7 +11,8 @@
25  ## M4sh Initialization.  ##
26  ## --------------------- ##
27  
28 -# Be Bourne compatible
29 +# Be more Bourne compatible
30 +DUALCASE=1; export DUALCASE # for MKS sh
31  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32    emulate sh
33    NULLCMD=:
34 @@ -20,10 +21,13 @@
35    alias -g '${1+"$@"}'='"$@"'
36    setopt NO_GLOB_SUBST
37  else
38 -  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
39 +  case `(set -o) 2>/dev/null` in
40 +  *posix*) set -o posix ;;
41 +esac
42 +
43  fi
44 -BIN_SH=xpg4; export BIN_SH # for Tru64
45 -DUALCASE=1; export DUALCASE # for MKS sh
46 +
47 +
48  
49  
50  # PATH needs CR
51 @@ -216,7 +220,7 @@
52  else
53    as_candidate_shells=
54      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55 -for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
56 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
57  do
58    IFS=$as_save_IFS
59    test -z "$as_dir" && as_dir=.
60 @@ -234,7 +238,6 @@
61          # Try only shells that exist, to save several forks.
62          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
63                 { ("$as_shell") 2> /dev/null <<\_ASEOF
64 -# Be Bourne compatible
65  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
66    emulate sh
67    NULLCMD=:
68 @@ -243,10 +246,12 @@
69    alias -g '${1+"$@"}'='"$@"'
70    setopt NO_GLOB_SUBST
71  else
72 -  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
73 +  case `(set -o) 2>/dev/null` in
74 +  *posix*) set -o posix ;;
75 +esac
76 +
77  fi
78 -BIN_SH=xpg4; export BIN_SH # for Tru64
79 -DUALCASE=1; export DUALCASE # for MKS sh
80 +
81  
82  :
83  _ASEOF
84 @@ -254,7 +259,6 @@
85    CONFIG_SHELL=$as_shell
86                as_have_required=yes
87                if { "$as_shell" 2> /dev/null <<\_ASEOF
88 -# Be Bourne compatible
89  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
90    emulate sh
91    NULLCMD=:
92 @@ -263,10 +267,12 @@
93    alias -g '${1+"$@"}'='"$@"'
94    setopt NO_GLOB_SUBST
95  else
96 -  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
97 +  case `(set -o) 2>/dev/null` in
98 +  *posix*) set -o posix ;;
99 +esac
100 +
101  fi
102 -BIN_SH=xpg4; export BIN_SH # for Tru64
103 -DUALCASE=1; export DUALCASE # for MKS sh
104 +
105  
106  :
107  (as_func_return () {
108 @@ -513,19 +519,28 @@
109    as_mkdir_p=false
110  fi
111  
112 -# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
113 -# systems may use methods other than mode bits to determine executability.
114 -cat >conf$$.file <<_ASEOF
115 -#! /bin/sh
116 -exit 0
117 -_ASEOF
118 -chmod +x conf$$.file
119 -if test -x conf$$.file >/dev/null 2>&1; then
120 -  as_executable_p="test -x"
121 +if test -x / >/dev/null 2>&1; then
122 +  as_test_x='test -x'
123  else
124 -  as_executable_p=:
125 +  if ls -dL / >/dev/null 2>&1; then
126 +    as_ls_L_option=L
127 +  else
128 +    as_ls_L_option=
129 +  fi
130 +  as_test_x='
131 +    eval sh -c '\''
132 +      if test -d "$1"; then
133 +        test -d "$1/.";
134 +      else
135 +       case $1 in
136 +        -*)set "./$1";;
137 +       esac;
138 +       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
139 +       ???[sx]*):;;*)false;;esac;fi
140 +    '\'' sh
141 +  '
142  fi
143 -rm -f conf$$.file
144 +as_executable_p=$as_test_x
145  
146  # Sed expression to map a string onto a valid CPP name.
147  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
148 @@ -572,15 +587,15 @@
149  
150  # The HP-UX ksh and POSIX shell print the target directory to stdout
151  # if CDPATH is set.
152 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
153 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
154  
155  if test -z "$ECHO"; then
156  if test "X${echo_test_string+set}" != Xset; then
157  # find a string as large as possible, as long as the shell can cope with it
158    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
159      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
160 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
161 -       echo_test_string="`eval $cmd`" &&
162 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
163 +       echo_test_string=`eval $cmd` &&
164         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
165      then
166        break
167 @@ -685,9 +700,9 @@
168  
169  
170  
171 -tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
172 +tagnames=${tagnames+${tagnames},}CXX
173  
174 -tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
175 +tagnames=${tagnames+${tagnames},}F77
176  
177  exec 7<&0 </dev/null 6>&1
178  
179 @@ -720,36 +735,36 @@
180  # Factoring default headers for most tests.
181  ac_includes_default="\
182  #include <stdio.h>
183 -#if HAVE_SYS_TYPES_H
184 +#ifdef HAVE_SYS_TYPES_H
185  # include <sys/types.h>
186  #endif
187 -#if HAVE_SYS_STAT_H
188 +#ifdef HAVE_SYS_STAT_H
189  # include <sys/stat.h>
190  #endif
191 -#if STDC_HEADERS
192 +#ifdef STDC_HEADERS
193  # include <stdlib.h>
194  # include <stddef.h>
195  #else
196 -# if HAVE_STDLIB_H
197 +# ifdef HAVE_STDLIB_H
198  #  include <stdlib.h>
199  # endif
200  #endif
201 -#if HAVE_STRING_H
202 -# if !STDC_HEADERS && HAVE_MEMORY_H
203 +#ifdef HAVE_STRING_H
204 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
205  #  include <memory.h>
206  # endif
207  # include <string.h>
208  #endif
209 -#if HAVE_STRINGS_H
210 +#ifdef HAVE_STRINGS_H
211  # include <strings.h>
212  #endif
213 -#if HAVE_INTTYPES_H
214 +#ifdef HAVE_INTTYPES_H
215  # include <inttypes.h>
216  #endif
217 -#if HAVE_STDINT_H
218 +#ifdef HAVE_STDINT_H
219  # include <stdint.h>
220  #endif
221 -#if HAVE_UNISTD_H
222 +#ifdef HAVE_UNISTD_H
223  # include <unistd.h>
224  #endif"
225  
226 @@ -832,12 +847,15 @@
227  AMDEP_FALSE
228  AMDEPBACKSLASH
229  CCDEPMODE
230 +SED
231  GREP
232  EGREP
233  LN_S
234  ECHO
235  AR
236  RANLIB
237 +DSYMUTIL
238 +NMEDIT
239  CPP
240  CXX
241  CXXFLAGS
242 @@ -858,6 +876,7 @@
243  CC
244  CFLAGS
245  LDFLAGS
246 +LIBS
247  CPPFLAGS
248  CPP
249  CXX
250 @@ -971,10 +990,10 @@
251    -disable-* | --disable-*)
252      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
253      # Reject names that are not valid shell variable names.
254 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 +    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
256        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
257     { (exit 1); exit 1; }; }
258 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 +    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
260      eval enable_$ac_feature=no ;;
261  
262    -docdir | --docdir | --docdi | --doc | --do)
263 @@ -990,10 +1009,10 @@
264    -enable-* | --enable-*)
265      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
266      # Reject names that are not valid shell variable names.
267 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
268 +    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
269        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
270     { (exit 1); exit 1; }; }
271 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
272 +    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
273      eval enable_$ac_feature=\$ac_optarg ;;
274  
275    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
276 @@ -1187,19 +1206,19 @@
277    -with-* | --with-*)
278      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
279      # Reject names that are not valid shell variable names.
280 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
281 +    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
282        { echo "$as_me: error: invalid package name: $ac_package" >&2
283     { (exit 1); exit 1; }; }
284 -    ac_package=`echo $ac_package| sed 's/-/_/g'`
285 +    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
286      eval with_$ac_package=\$ac_optarg ;;
287  
288    -without-* | --without-*)
289      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
290      # Reject names that are not valid shell variable names.
291 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
292 +    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
293        { echo "$as_me: error: invalid package name: $ac_package" >&2
294     { (exit 1); exit 1; }; }
295 -    ac_package=`echo $ac_package | sed 's/-/_/g'`
296 +    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
297      eval with_$ac_package=no ;;
298  
299    --x)
300 @@ -1471,6 +1490,7 @@
301    CFLAGS      C compiler flags
302    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
303                nonstandard directory <lib dir>
304 +  LIBS        libraries to pass to the linker, e.g. -l<library>
305    CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
306                you have headers in a nonstandard directory <include dir>
307    CPP         C preprocessor
308 @@ -1544,7 +1564,7 @@
309  if $ac_init_version; then
310    cat <<\_ACEOF
311  configure
312 -generated by GNU Autoconf 2.60
313 +generated by GNU Autoconf 2.61
314  
315  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
316  2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
317 @@ -1558,7 +1578,7 @@
318  running configure, to aid debugging if configure makes a mistake.
319  
320  It was created by $as_me, which was
321 -generated by GNU Autoconf 2.60.  Invocation command line was
322 +generated by GNU Autoconf 2.61.  Invocation command line was
323  
324    $ $0 $@
325  
326 @@ -2097,7 +2117,7 @@
327      # by default.
328      for ac_prog in ginstall scoinst install; do
329        for ac_exec_ext in '' $ac_executable_extensions; do
330 -       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
331 +       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
332           if test $ac_prog = install &&
333             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
334             # AIX install.  It has an incompatible calling convention.
335 @@ -2231,7 +2251,7 @@
336    IFS=$as_save_IFS
337    test -z "$as_dir" && as_dir=.
338    for ac_exec_ext in '' $ac_executable_extensions; do
339 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
340 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
341      ac_cv_prog_AWK="$ac_prog"
342      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
343      break 2
344 @@ -2350,7 +2370,7 @@
345    IFS=$as_save_IFS
346    test -z "$as_dir" && as_dir=.
347    for ac_exec_ext in '' $ac_executable_extensions; do
348 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
349 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
350      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
351      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
352      break 2
353 @@ -2390,7 +2410,7 @@
354    IFS=$as_save_IFS
355    test -z "$as_dir" && as_dir=.
356    for ac_exec_ext in '' $ac_executable_extensions; do
357 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
358 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
359      ac_cv_prog_ac_ct_STRIP="strip"
360      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
361      break 2
362 @@ -2466,7 +2486,7 @@
363    IFS=$as_save_IFS
364    test -z "$as_dir" && as_dir=.
365    for ac_exec_ext in '' $ac_executable_extensions; do
366 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
367 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
368      ac_cv_prog_CC="${ac_tool_prefix}gcc"
369      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
370      break 2
371 @@ -2506,7 +2526,7 @@
372    IFS=$as_save_IFS
373    test -z "$as_dir" && as_dir=.
374    for ac_exec_ext in '' $ac_executable_extensions; do
375 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
376 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
377      ac_cv_prog_ac_ct_CC="gcc"
378      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
379      break 2
380 @@ -2563,7 +2583,7 @@
381    IFS=$as_save_IFS
382    test -z "$as_dir" && as_dir=.
383    for ac_exec_ext in '' $ac_executable_extensions; do
384 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
385 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
386      ac_cv_prog_CC="${ac_tool_prefix}cc"
387      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
388      break 2
389 @@ -2604,7 +2624,7 @@
390    IFS=$as_save_IFS
391    test -z "$as_dir" && as_dir=.
392    for ac_exec_ext in '' $ac_executable_extensions; do
393 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
394 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
395      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
396         ac_prog_rejected=yes
397         continue
398 @@ -2662,7 +2682,7 @@
399    IFS=$as_save_IFS
400    test -z "$as_dir" && as_dir=.
401    for ac_exec_ext in '' $ac_executable_extensions; do
402 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
403 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
404      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
405      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
406      break 2
407 @@ -2706,7 +2726,7 @@
408    IFS=$as_save_IFS
409    test -z "$as_dir" && as_dir=.
410    for ac_exec_ext in '' $ac_executable_extensions; do
411 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
412 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
413      ac_cv_prog_ac_ct_CC="$ac_prog"
414      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
415      break 2
416 @@ -2847,7 +2867,7 @@
417  # in a Makefile.  We should not override ac_cv_exeext if it was cached,
418  # so that the user can short-circuit this test for compilers unknown to
419  # Autoconf.
420 -for ac_file in $ac_files
421 +for ac_file in $ac_files ''
422  do
423    test -f "$ac_file" || continue
424    case $ac_file in
425 @@ -2875,6 +2895,12 @@
426  test "$ac_cv_exeext" = no && ac_cv_exeext=
427  
428  else
429 +  ac_file=''
430 +fi
431 +
432 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
433 +echo "${ECHO_T}$ac_file" >&6; }
434 +if test -z "$ac_file"; then
435    echo "$as_me: failed program was:" >&5
436  sed 's/^/| /' conftest.$ac_ext >&5
437  
438 @@ -2886,8 +2912,6 @@
439  fi
440  
441  ac_exeext=$ac_cv_exeext
442 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
443 -echo "${ECHO_T}$ac_file" >&6; }
444  
445  # Check that the compiler produces executables we can run.  If not, either
446  # the compiler is broken, or we cross compile.
447 @@ -3065,27 +3089,10 @@
448    rm -f conftest.er1
449    cat conftest.err >&5
450    echo "$as_me:$LINENO: \$? = $ac_status" >&5
451 -  (exit $ac_status); } &&
452 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453 -  { (case "(($ac_try" in
454 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
455 -  *) ac_try_echo=$ac_try;;
456 -esac
457 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
458 -  (eval "$ac_try") 2>&5
459 -  ac_status=$?
460 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
461 -  (exit $ac_status); }; } &&
462 -        { ac_try='test -s conftest.$ac_objext'
463 -  { (case "(($ac_try" in
464 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
465 -  *) ac_try_echo=$ac_try;;
466 -esac
467 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
468 -  (eval "$ac_try") 2>&5
469 -  ac_status=$?
470 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
471 -  (exit $ac_status); }; }; then
472 +  (exit $ac_status); } && {
473 +        test -z "$ac_c_werror_flag" ||
474 +        test ! -s conftest.err
475 +       } && test -s conftest.$ac_objext; then
476    ac_compiler_gnu=yes
477  else
478    echo "$as_me: failed program was:" >&5
479 @@ -3140,27 +3147,10 @@
480    rm -f conftest.er1
481    cat conftest.err >&5
482    echo "$as_me:$LINENO: \$? = $ac_status" >&5
483 -  (exit $ac_status); } &&
484 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
485 -  { (case "(($ac_try" in
486 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
487 -  *) ac_try_echo=$ac_try;;
488 -esac
489 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
490 -  (eval "$ac_try") 2>&5
491 -  ac_status=$?
492 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
493 -  (exit $ac_status); }; } &&
494 -        { ac_try='test -s conftest.$ac_objext'
495 -  { (case "(($ac_try" in
496 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
497 -  *) ac_try_echo=$ac_try;;
498 -esac
499 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
500 -  (eval "$ac_try") 2>&5
501 -  ac_status=$?
502 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
503 -  (exit $ac_status); }; }; then
504 +  (exit $ac_status); } && {
505 +        test -z "$ac_c_werror_flag" ||
506 +        test ! -s conftest.err
507 +       } && test -s conftest.$ac_objext; then
508    ac_cv_prog_cc_g=yes
509  else
510    echo "$as_me: failed program was:" >&5
511 @@ -3195,27 +3185,10 @@
512    rm -f conftest.er1
513    cat conftest.err >&5
514    echo "$as_me:$LINENO: \$? = $ac_status" >&5
515 -  (exit $ac_status); } &&
516 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
517 -  { (case "(($ac_try" in
518 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
519 -  *) ac_try_echo=$ac_try;;
520 -esac
521 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
522 -  (eval "$ac_try") 2>&5
523 -  ac_status=$?
524 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
525 -  (exit $ac_status); }; } &&
526 -        { ac_try='test -s conftest.$ac_objext'
527 -  { (case "(($ac_try" in
528 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
529 -  *) ac_try_echo=$ac_try;;
530 -esac
531 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
532 -  (eval "$ac_try") 2>&5
533 -  ac_status=$?
534 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
535 -  (exit $ac_status); }; }; then
536 +  (exit $ac_status); } && {
537 +        test -z "$ac_c_werror_flag" ||
538 +        test ! -s conftest.err
539 +       } && test -s conftest.$ac_objext; then
540    :
541  else
542    echo "$as_me: failed program was:" >&5
543 @@ -3251,27 +3224,10 @@
544    rm -f conftest.er1
545    cat conftest.err >&5
546    echo "$as_me:$LINENO: \$? = $ac_status" >&5
547 -  (exit $ac_status); } &&
548 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
549 -  { (case "(($ac_try" in
550 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
551 -  *) ac_try_echo=$ac_try;;
552 -esac
553 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
554 -  (eval "$ac_try") 2>&5
555 -  ac_status=$?
556 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
557 -  (exit $ac_status); }; } &&
558 -        { ac_try='test -s conftest.$ac_objext'
559 -  { (case "(($ac_try" in
560 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
561 -  *) ac_try_echo=$ac_try;;
562 -esac
563 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
564 -  (eval "$ac_try") 2>&5
565 -  ac_status=$?
566 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
567 -  (exit $ac_status); }; }; then
568 +  (exit $ac_status); } && {
569 +        test -z "$ac_c_werror_flag" ||
570 +        test ! -s conftest.err
571 +       } && test -s conftest.$ac_objext; then
572    ac_cv_prog_cc_g=yes
573  else
574    echo "$as_me: failed program was:" >&5
575 @@ -3387,27 +3343,10 @@
576    rm -f conftest.er1
577    cat conftest.err >&5
578    echo "$as_me:$LINENO: \$? = $ac_status" >&5
579 -  (exit $ac_status); } &&
580 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
581 -  { (case "(($ac_try" in
582 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
583 -  *) ac_try_echo=$ac_try;;
584 -esac
585 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
586 -  (eval "$ac_try") 2>&5
587 -  ac_status=$?
588 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
589 -  (exit $ac_status); }; } &&
590 -        { ac_try='test -s conftest.$ac_objext'
591 -  { (case "(($ac_try" in
592 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
593 -  *) ac_try_echo=$ac_try;;
594 -esac
595 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
596 -  (eval "$ac_try") 2>&5
597 -  ac_status=$?
598 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
599 -  (exit $ac_status); }; }; then
600 +  (exit $ac_status); } && {
601 +        test -z "$ac_c_werror_flag" ||
602 +        test ! -s conftest.err
603 +       } && test -s conftest.$ac_objext; then
604    ac_cv_prog_cc_c89=$ac_arg
605  else
606    echo "$as_me: failed program was:" >&5
607 @@ -3702,18 +3641,19 @@
608    test -z "$as_dir" && as_dir=.
609    for lt_ac_prog in sed gsed; do
610      for ac_exec_ext in '' $ac_executable_extensions; do
611 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
612 +      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
613          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
614        fi
615      done
616    done
617  done
618 +IFS=$as_save_IFS
619  lt_ac_max=0
620  lt_ac_count=0
621  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
622  # along with /bin/sed that truncates output.
623  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
624 -  test ! -f $lt_ac_sed && break
625 +  test ! -f $lt_ac_sed && continue
626    cat /dev/null > conftest.in
627    lt_ac_count=0
628    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
629 @@ -3738,10 +3678,11 @@
630      fi
631    done
632  done
633 -SED=$lt_cv_path_SED
634  
635  fi
636  
637 +SED=$lt_cv_path_SED
638 +
639  { echo "$as_me:$LINENO: result: $SED" >&5
640  echo "${ECHO_T}$SED" >&6; }
641  
642 @@ -3766,7 +3707,7 @@
643    for ac_prog in grep ggrep; do
644    for ac_exec_ext in '' $ac_executable_extensions; do
645      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
646 -    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
647 +    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
648      # Check for GNU ac_path_GREP and select it if it is found.
649    # Check for GNU $ac_path_GREP
650  case `"$ac_path_GREP" --version 2>&1` in
651 @@ -3848,7 +3789,7 @@
652    for ac_prog in egrep; do
653    for ac_exec_ext in '' $ac_executable_extensions; do
654      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
655 -    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
656 +    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
657      # Check for GNU ac_path_EGREP and select it if it is found.
658    # Check for GNU $ac_path_EGREP
659  case `"$ac_path_EGREP" --version 2>&1` in
660 @@ -3931,7 +3872,7 @@
661      # Accept absolute paths.
662      [\\/]* | ?:[\\/]*)
663        re_direlt='/[^/][^/]*/\.\./'
664 -      # Canonicalize the path of ld
665 +      # Canonicalize the pathname of ld
666        ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
667        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
668         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
669 @@ -3965,7 +3906,7 @@
670      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
671        lt_cv_path_LD="$ac_dir/$ac_prog"
672        # Check to see if the program is GNU ld.  I'd rather use --version,
673 -      # but apparently some GNU ld's only accept -v.
674 +      # but apparently some variants of GNU ld only accept -v.
675        # Break only if it was the GNU/non-GNU ld that we prefer.
676        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
677        *GNU* | *'with BFD'*)
678 @@ -3999,8 +3940,8 @@
679  if test "${lt_cv_prog_gnu_ld+set}" = set; then
680    echo $ECHO_N "(cached) $ECHO_C" >&6
681  else
682 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
683 -case `"$LD" -v 2>&1 </dev/null` in
684 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
685 +case `$LD -v 2>&1 </dev/null` in
686  *GNU* | *'with BFD'*)
687    lt_cv_prog_gnu_ld=yes
688    ;;
689 @@ -4028,7 +3969,16 @@
690  "" | " "*) ;;
691  *) reload_flag=" $reload_flag" ;;
692  esac
693 -reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
694 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
695 +case $host_os in
696 +  darwin*)
697 +    if test "$GCC" = yes; then
698 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
699 +    else
700 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
701 +    fi
702 +    ;;
703 +esac
704  
705  { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
706  echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
707 @@ -4039,36 +3989,43 @@
708    # Let the user override the test.
709    lt_cv_path_NM="$NM"
710  else
711 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
712 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
713 -    IFS="$lt_save_ifs"
714 -    test -z "$ac_dir" && ac_dir=.
715 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
716 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
717 -      # Check to see if the nm accepts a BSD-compat flag.
718 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
719 -      #   nm: unknown option "B" ignored
720 -      # Tru64's nm complains that /dev/null is an invalid object file
721 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
722 -      */dev/null* | *'Invalid file or object type'*)
723 -       lt_cv_path_NM="$tmp_nm -B"
724 -       break
725 -        ;;
726 -      *)
727 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
728 -       */dev/null*)
729 -         lt_cv_path_NM="$tmp_nm -p"
730 +  lt_nm_to_check="${ac_tool_prefix}nm"
731 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
732 +    lt_nm_to_check="$lt_nm_to_check nm"
733 +  fi
734 +  for lt_tmp_nm in $lt_nm_to_check; do
735 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
736 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
737 +      IFS="$lt_save_ifs"
738 +      test -z "$ac_dir" && ac_dir=.
739 +      tmp_nm="$ac_dir/$lt_tmp_nm"
740 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
741 +       # Check to see if the nm accepts a BSD-compat flag.
742 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
743 +       #   nm: unknown option "B" ignored
744 +       # Tru64's nm complains that /dev/null is an invalid object file
745 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
746 +       */dev/null* | *'Invalid file or object type'*)
747 +         lt_cv_path_NM="$tmp_nm -B"
748           break
749           ;;
750         *)
751 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
752 -         continue # so that we can try to find one that supports BSD flags
753 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
754 +         */dev/null*)
755 +           lt_cv_path_NM="$tmp_nm -p"
756 +           break
757 +           ;;
758 +         *)
759 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
760 +           continue # so that we can try to find one that supports BSD flags
761 +           ;;
762 +         esac
763           ;;
764         esac
765 -      esac
766 -    fi
767 +      fi
768 +    done
769 +    IFS="$lt_save_ifs"
770    done
771 -  IFS="$lt_save_ifs"
772    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
773  fi
774  fi
775 @@ -4087,8 +4044,8 @@
776  echo "${ECHO_T}no, using $LN_S" >&6; }
777  fi
778  
779 -{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
780 -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
781 +{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
782 +echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
783  if test "${lt_cv_deplibs_check_method+set}" = set; then
784    echo $ECHO_N "(cached) $ECHO_C" >&6
785  else
786 @@ -4107,7 +4064,7 @@
787  # whether `pass_all' will *always* work, you probably want this one.
788  
789  case $host_os in
790 -aix4* | aix5*)
791 +aix[4-9]*)
792    lt_cv_deplibs_check_method=pass_all
793    ;;
794  
795 @@ -4115,40 +4072,42 @@
796    lt_cv_deplibs_check_method=pass_all
797    ;;
798  
799 -bsdi4*)
800 +bsdi[45]*)
801    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
802    lt_cv_file_magic_cmd='/usr/bin/file -L'
803    lt_cv_file_magic_test_file=/shlib/libc.so
804    ;;
805  
806 -cygwin* | mingw* | pw32*)
807 -  # win32_libid is a shell function defined in ltmain.sh
808 +cygwin*)
809 +  # func_win32_libid is a shell function defined in ltmain.sh
810    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
811 -  lt_cv_file_magic_cmd='win32_libid'
812 +  lt_cv_file_magic_cmd='func_win32_libid'
813 +  ;;
814 +
815 +mingw* | pw32*)
816 +  # Base MSYS/MinGW do not provide the 'file' command needed by
817 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
818 +  # unless we find 'file', for example because we are cross-compiling.
819 +  if ( file / ) >/dev/null 2>&1; then
820 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
821 +    lt_cv_file_magic_cmd='func_win32_libid'
822 +  else
823 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
824 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
825 +  fi
826    ;;
827  
828  darwin* | rhapsody*)
829 -  # this will be overwritten by pass_all, but leave it in just in case
830 -  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
831 -  lt_cv_file_magic_cmd='/usr/bin/file -L'
832 -  case "$host_os" in
833 -  rhapsody* | darwin1.[012])
834 -    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
835 -    ;;
836 -  *) # Darwin 1.3 on
837 -    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
838 -    ;;
839 -  esac
840    lt_cv_deplibs_check_method=pass_all
841    ;;
842  
843 -freebsd*)
844 +freebsd* | dragonfly*)
845    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
846      case $host_cpu in
847      i*86 )
848        # Not sure whether the presence of OpenBSD here was a mistake.
849        # Let's accept both of them until this is cleared up.
850 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
851 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
852        lt_cv_file_magic_cmd=/usr/bin/file
853        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
854        ;;
855 @@ -4164,7 +4123,7 @@
856  
857  hpux10.20* | hpux11*)
858    lt_cv_file_magic_cmd=/usr/bin/file
859 -  case "$host_cpu" in
860 +  case $host_cpu in
861    ia64*)
862      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
863      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
864 @@ -4180,40 +4139,27 @@
865    esac
866    ;;
867  
868 +interix[3-9]*)
869 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
870 +  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
871 +  ;;
872 +
873  irix5* | irix6* | nonstopux*)
874 -  case $host_os in
875 -  irix5* | nonstopux*)
876 -    # this will be overridden with pass_all, but let us keep it just in case
877 -    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
878 -    ;;
879 -  *)
880 -    case $LD in
881 -    *-32|*"-32 ") libmagic=32-bit;;
882 -    *-n32|*"-n32 ") libmagic=N32;;
883 -    *-64|*"-64 ") libmagic=64-bit;;
884 -    *) libmagic=never-match;;
885 -    esac
886 -    # this will be overridden with pass_all, but let us keep it just in case
887 -    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
888 -    ;;
889 +  case $LD in
890 +  *-32|*"-32 ") libmagic=32-bit;;
891 +  *-n32|*"-n32 ") libmagic=N32;;
892 +  *-64|*"-64 ") libmagic=64-bit;;
893 +  *) libmagic=never-match;;
894    esac
895 -  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
896    lt_cv_deplibs_check_method=pass_all
897    ;;
898  
899  # This must be Linux ELF.
900 -linux*)
901 -  case $host_cpu in
902 -  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
903 -    lt_cv_deplibs_check_method=pass_all ;;
904 -  *)
905 -    # glibc up to 2.1.1 does not perform some relocations on ARM
906 -    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
907 -  esac
908 -  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
909 +linux* | k*bsd*-gnu)
910 +  lt_cv_deplibs_check_method=pass_all
911    ;;
912  
913 -netbsd*)
914 +netbsd* | netbsdelf*-gnu)
915    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
916      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
917    else
918 @@ -4227,37 +4173,31 @@
919    lt_cv_file_magic_test_file=/usr/lib/libnls.so
920    ;;
921  
922 -nto-qnx)
923 +nto-qnx*)
924    lt_cv_deplibs_check_method=unknown
925    ;;
926  
927  openbsd*)
928 -  lt_cv_file_magic_cmd=/usr/bin/file
929 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
930    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
931 -    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
932 +    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
933    else
934 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
935 +    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
936    fi
937    ;;
938  
939  osf3* | osf4* | osf5*)
940 -  # this will be overridden with pass_all, but let us keep it just in case
941 -  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
942 -  lt_cv_file_magic_test_file=/shlib/libc.so
943    lt_cv_deplibs_check_method=pass_all
944    ;;
945  
946 -sco3.2v5*)
947 +rdos*)
948    lt_cv_deplibs_check_method=pass_all
949    ;;
950  
951  solaris*)
952    lt_cv_deplibs_check_method=pass_all
953 -  lt_cv_file_magic_test_file=/lib/libc.so
954    ;;
955  
956 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
957 +sysv4 | sysv4.3*)
958    case $host_vendor in
959    motorola)
960      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
961 @@ -4278,10 +4218,13 @@
962    siemens)
963      lt_cv_deplibs_check_method=pass_all
964      ;;
965 +  pc)
966 +    lt_cv_deplibs_check_method=pass_all
967 +    ;;
968    esac
969    ;;
970  
971 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
972 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
973    lt_cv_deplibs_check_method=pass_all
974    ;;
975  esac
976 @@ -4299,6 +4242,9 @@
977  # If no C compiler was specified, use CC.
978  LTCC=${LTCC-"$CC"}
979  
980 +# If no C compiler flags were specified, use CFLAGS.
981 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
982 +
983  # Allow CC to be a program name with arguments.
984  compiler=$CC
985  
986 @@ -4334,7 +4280,7 @@
987    ;;
988  *-*-irix6*)
989    # Find out which ABI we are using.
990 -  echo '#line 4337 "configure"' > conftest.$ac_ext
991 +  echo '#line 4283 "configure"' > conftest.$ac_ext
992    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
993    (eval $ac_compile) 2>&5
994    ac_status=$?
995 @@ -4369,7 +4315,8 @@
996    rm -rf conftest*
997    ;;
998  
999 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1000 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1001 +s390*-*linux*|sparc*-*linux*)
1002    # Find out which ABI we are using.
1003    echo 'int i;' > conftest.$ac_ext
1004    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1005 @@ -4377,13 +4324,16 @@
1006    ac_status=$?
1007    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1008    (exit $ac_status); }; then
1009 -    case "`/usr/bin/file conftest.o`" in
1010 +    case `/usr/bin/file conftest.o` in
1011      *32-bit*)
1012        case $host in
1013 +        x86_64-*kfreebsd*-gnu)
1014 +          LD="${LD-ld} -m elf_i386_fbsd"
1015 +          ;;
1016          x86_64-*linux*)
1017            LD="${LD-ld} -m elf_i386"
1018            ;;
1019 -        ppc64-*linux*)
1020 +        ppc64-*linux*|powerpc64-*linux*)
1021            LD="${LD-ld} -m elf32ppclinux"
1022            ;;
1023          s390x-*linux*)
1024 @@ -4396,6 +4346,9 @@
1025        ;;
1026      *64-bit*)
1027        case $host in
1028 +        x86_64-*kfreebsd*-gnu)
1029 +          LD="${LD-ld} -m elf_x86_64_fbsd"
1030 +          ;;
1031          x86_64-*linux*)
1032            LD="${LD-ld} -m elf_x86_64"
1033            ;;
1034 @@ -4458,27 +4411,11 @@
1035    rm -f conftest.er1
1036    cat conftest.err >&5
1037    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1038 -  (exit $ac_status); } &&
1039 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1040 -  { (case "(($ac_try" in
1041 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1042 -  *) ac_try_echo=$ac_try;;
1043 -esac
1044 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1045 -  (eval "$ac_try") 2>&5
1046 -  ac_status=$?
1047 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1048 -  (exit $ac_status); }; } &&
1049 -        { ac_try='test -s conftest$ac_exeext'
1050 -  { (case "(($ac_try" in
1051 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1052 -  *) ac_try_echo=$ac_try;;
1053 -esac
1054 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1055 -  (eval "$ac_try") 2>&5
1056 -  ac_status=$?
1057 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1058 -  (exit $ac_status); }; }; then
1059 +  (exit $ac_status); } && {
1060 +        test -z "$ac_c_werror_flag" ||
1061 +        test ! -s conftest.err
1062 +       } && test -s conftest$ac_exeext &&
1063 +       $as_test_x conftest$ac_exeext; then
1064    lt_cv_cc_needs_belf=yes
1065  else
1066    echo "$as_me: failed program was:" >&5
1067 @@ -4487,7 +4424,7 @@
1068         lt_cv_cc_needs_belf=no
1069  fi
1070  
1071 -rm -f core conftest.err conftest.$ac_objext \
1072 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1073        conftest$ac_exeext conftest.$ac_ext
1074       ac_ext=c
1075  ac_cpp='$CPP $CPPFLAGS'
1076 @@ -4503,6 +4440,30 @@
1077      CFLAGS="$SAVE_CFLAGS"
1078    fi
1079    ;;
1080 +sparc*-*solaris*)
1081 +  # Find out which ABI we are using.
1082 +  echo 'int i;' > conftest.$ac_ext
1083 +  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1084 +  (eval $ac_compile) 2>&5
1085 +  ac_status=$?
1086 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1087 +  (exit $ac_status); }; then
1088 +    case `/usr/bin/file conftest.o` in
1089 +    *64-bit*)
1090 +      case $lt_cv_prog_gnu_ld in
1091 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1092 +      *)
1093 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1094 +         LD="${LD-ld} -64"
1095 +       fi
1096 +       ;;
1097 +      esac
1098 +      ;;
1099 +    esac
1100 +  fi
1101 +  rm -rf conftest*
1102 +  ;;
1103 +
1104  
1105  esac
1106  
1107 @@ -4561,17 +4522,10 @@
1108    rm -f conftest.er1
1109    cat conftest.err >&5
1110    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1111 -  (exit $ac_status); } >/dev/null; then
1112 -  if test -s conftest.err; then
1113 -    ac_cpp_err=$ac_c_preproc_warn_flag
1114 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1115 -  else
1116 -    ac_cpp_err=
1117 -  fi
1118 -else
1119 -  ac_cpp_err=yes
1120 -fi
1121 -if test -z "$ac_cpp_err"; then
1122 +  (exit $ac_status); } >/dev/null && {
1123 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1124 +        test ! -s conftest.err
1125 +       }; then
1126    :
1127  else
1128    echo "$as_me: failed program was:" >&5
1129 @@ -4605,17 +4559,10 @@
1130    rm -f conftest.er1
1131    cat conftest.err >&5
1132    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1133 -  (exit $ac_status); } >/dev/null; then
1134 -  if test -s conftest.err; then
1135 -    ac_cpp_err=$ac_c_preproc_warn_flag
1136 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1137 -  else
1138 -    ac_cpp_err=
1139 -  fi
1140 -else
1141 -  ac_cpp_err=yes
1142 -fi
1143 -if test -z "$ac_cpp_err"; then
1144 +  (exit $ac_status); } >/dev/null && {
1145 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1146 +        test ! -s conftest.err
1147 +       }; then
1148    # Broken: success on invalid input.
1149  continue
1150  else
1151 @@ -4680,17 +4627,10 @@
1152    rm -f conftest.er1
1153    cat conftest.err >&5
1154    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1155 -  (exit $ac_status); } >/dev/null; then
1156 -  if test -s conftest.err; then
1157 -    ac_cpp_err=$ac_c_preproc_warn_flag
1158 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1159 -  else
1160 -    ac_cpp_err=
1161 -  fi
1162 -else
1163 -  ac_cpp_err=yes
1164 -fi
1165 -if test -z "$ac_cpp_err"; then
1166 +  (exit $ac_status); } >/dev/null && {
1167 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1168 +        test ! -s conftest.err
1169 +       }; then
1170    :
1171  else
1172    echo "$as_me: failed program was:" >&5
1173 @@ -4724,17 +4664,10 @@
1174    rm -f conftest.er1
1175    cat conftest.err >&5
1176    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1177 -  (exit $ac_status); } >/dev/null; then
1178 -  if test -s conftest.err; then
1179 -    ac_cpp_err=$ac_c_preproc_warn_flag
1180 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1181 -  else
1182 -    ac_cpp_err=
1183 -  fi
1184 -else
1185 -  ac_cpp_err=yes
1186 -fi
1187 -if test -z "$ac_cpp_err"; then
1188 +  (exit $ac_status); } >/dev/null && {
1189 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1190 +        test ! -s conftest.err
1191 +       }; then
1192    # Broken: success on invalid input.
1193  continue
1194  else
1195 @@ -4805,27 +4738,10 @@
1196    rm -f conftest.er1
1197    cat conftest.err >&5
1198    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1199 -  (exit $ac_status); } &&
1200 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1201 -  { (case "(($ac_try" in
1202 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1203 -  *) ac_try_echo=$ac_try;;
1204 -esac
1205 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1206 -  (eval "$ac_try") 2>&5
1207 -  ac_status=$?
1208 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1209 -  (exit $ac_status); }; } &&
1210 -        { ac_try='test -s conftest.$ac_objext'
1211 -  { (case "(($ac_try" in
1212 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1213 -  *) ac_try_echo=$ac_try;;
1214 -esac
1215 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1216 -  (eval "$ac_try") 2>&5
1217 -  ac_status=$?
1218 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1219 -  (exit $ac_status); }; }; then
1220 +  (exit $ac_status); } && {
1221 +        test -z "$ac_c_werror_flag" ||
1222 +        test ! -s conftest.err
1223 +       } && test -s conftest.$ac_objext; then
1224    ac_cv_header_stdc=yes
1225  else
1226    echo "$as_me: failed program was:" >&5
1227 @@ -5001,27 +4917,10 @@
1228    rm -f conftest.er1
1229    cat conftest.err >&5
1230    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1231 -  (exit $ac_status); } &&
1232 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1233 -  { (case "(($ac_try" in
1234 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1235 -  *) ac_try_echo=$ac_try;;
1236 -esac
1237 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1238 -  (eval "$ac_try") 2>&5
1239 -  ac_status=$?
1240 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1241 -  (exit $ac_status); }; } &&
1242 -        { ac_try='test -s conftest.$ac_objext'
1243 -  { (case "(($ac_try" in
1244 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1245 -  *) ac_try_echo=$ac_try;;
1246 -esac
1247 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1248 -  (eval "$ac_try") 2>&5
1249 -  ac_status=$?
1250 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1251 -  (exit $ac_status); }; }; then
1252 +  (exit $ac_status); } && {
1253 +        test -z "$ac_c_werror_flag" ||
1254 +        test ! -s conftest.err
1255 +       } && test -s conftest.$ac_objext; then
1256    eval "$as_ac_Header=yes"
1257  else
1258    echo "$as_me: failed program was:" >&5
1259 @@ -5084,27 +4983,10 @@
1260    rm -f conftest.er1
1261    cat conftest.err >&5
1262    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1263 -  (exit $ac_status); } &&
1264 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1265 -  { (case "(($ac_try" in
1266 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1267 -  *) ac_try_echo=$ac_try;;
1268 -esac
1269 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1270 -  (eval "$ac_try") 2>&5
1271 -  ac_status=$?
1272 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1273 -  (exit $ac_status); }; } &&
1274 -        { ac_try='test -s conftest.$ac_objext'
1275 -  { (case "(($ac_try" in
1276 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1277 -  *) ac_try_echo=$ac_try;;
1278 -esac
1279 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1280 -  (eval "$ac_try") 2>&5
1281 -  ac_status=$?
1282 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1283 -  (exit $ac_status); }; }; then
1284 +  (exit $ac_status); } && {
1285 +        test -z "$ac_c_werror_flag" ||
1286 +        test ! -s conftest.err
1287 +       } && test -s conftest.$ac_objext; then
1288    ac_header_compiler=yes
1289  else
1290    echo "$as_me: failed program was:" >&5
1291 @@ -5140,17 +5022,10 @@
1292    rm -f conftest.er1
1293    cat conftest.err >&5
1294    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1295 -  (exit $ac_status); } >/dev/null; then
1296 -  if test -s conftest.err; then
1297 -    ac_cpp_err=$ac_c_preproc_warn_flag
1298 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1299 -  else
1300 -    ac_cpp_err=
1301 -  fi
1302 -else
1303 -  ac_cpp_err=yes
1304 -fi
1305 -if test -z "$ac_cpp_err"; then
1306 +  (exit $ac_status); } >/dev/null && {
1307 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1308 +        test ! -s conftest.err
1309 +       }; then
1310    ac_header_preproc=yes
1311  else
1312    echo "$as_me: failed program was:" >&5
1313 @@ -5237,7 +5112,7 @@
1314    IFS=$as_save_IFS
1315    test -z "$as_dir" && as_dir=.
1316    for ac_exec_ext in '' $ac_executable_extensions; do
1317 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1318 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1319      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1320      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1321      break 2
1322 @@ -5281,7 +5156,7 @@
1323    IFS=$as_save_IFS
1324    test -z "$as_dir" && as_dir=.
1325    for ac_exec_ext in '' $ac_executable_extensions; do
1326 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1327 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1328      ac_cv_prog_ac_ct_CXX="$ac_prog"
1329      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330      break 2
1331 @@ -5394,27 +5269,10 @@
1332    rm -f conftest.er1
1333    cat conftest.err >&5
1334    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1335 -  (exit $ac_status); } &&
1336 -        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1337 -  { (case "(($ac_try" in
1338 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1339 -  *) ac_try_echo=$ac_try;;
1340 -esac
1341 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1342 -  (eval "$ac_try") 2>&5
1343 -  ac_status=$?
1344 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1345 -  (exit $ac_status); }; } &&
1346 -        { ac_try='test -s conftest.$ac_objext'
1347 -  { (case "(($ac_try" in
1348 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1349 -  *) ac_try_echo=$ac_try;;
1350 -esac
1351 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1352 -  (eval "$ac_try") 2>&5
1353 -  ac_status=$?
1354 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1355 -  (exit $ac_status); }; }; then
1356 +  (exit $ac_status); } && {
1357 +        test -z "$ac_cxx_werror_flag" ||
1358 +        test ! -s conftest.err
1359 +       } && test -s conftest.$ac_objext; then
1360    ac_compiler_gnu=yes
1361  else
1362    echo "$as_me: failed program was:" >&5
1363 @@ -5469,27 +5327,10 @@
1364    rm -f conftest.er1
1365    cat conftest.err >&5
1366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1367 -  (exit $ac_status); } &&
1368 -        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1369 -  { (case "(($ac_try" in
1370 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1371 -  *) ac_try_echo=$ac_try;;
1372 -esac
1373 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1374 -  (eval "$ac_try") 2>&5
1375 -  ac_status=$?
1376 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1377 -  (exit $ac_status); }; } &&
1378 -        { ac_try='test -s conftest.$ac_objext'
1379 -  { (case "(($ac_try" in
1380 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1381 -  *) ac_try_echo=$ac_try;;
1382 -esac
1383 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1384 -  (eval "$ac_try") 2>&5
1385 -  ac_status=$?
1386 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1387 -  (exit $ac_status); }; }; then
1388 +  (exit $ac_status); } && {
1389 +        test -z "$ac_cxx_werror_flag" ||
1390 +        test ! -s conftest.err
1391 +       } && test -s conftest.$ac_objext; then
1392    ac_cv_prog_cxx_g=yes
1393  else
1394    echo "$as_me: failed program was:" >&5
1395 @@ -5524,27 +5365,10 @@
1396    rm -f conftest.er1
1397    cat conftest.err >&5
1398    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1399 -  (exit $ac_status); } &&
1400 -        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1401 -  { (case "(($ac_try" in
1402 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1403 -  *) ac_try_echo=$ac_try;;
1404 -esac
1405 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1406 -  (eval "$ac_try") 2>&5
1407 -  ac_status=$?
1408 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1409 -  (exit $ac_status); }; } &&
1410 -        { ac_try='test -s conftest.$ac_objext'
1411 -  { (case "(($ac_try" in
1412 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1413 -  *) ac_try_echo=$ac_try;;
1414 -esac
1415 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1416 -  (eval "$ac_try") 2>&5
1417 -  ac_status=$?
1418 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1419 -  (exit $ac_status); }; }; then
1420 +  (exit $ac_status); } && {
1421 +        test -z "$ac_cxx_werror_flag" ||
1422 +        test ! -s conftest.err
1423 +       } && test -s conftest.$ac_objext; then
1424    :
1425  else
1426    echo "$as_me: failed program was:" >&5
1427 @@ -5580,27 +5404,10 @@
1428    rm -f conftest.er1
1429    cat conftest.err >&5
1430    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1431 -  (exit $ac_status); } &&
1432 -        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1433 -  { (case "(($ac_try" in
1434 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1435 -  *) ac_try_echo=$ac_try;;
1436 -esac
1437 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1438 -  (eval "$ac_try") 2>&5
1439 -  ac_status=$?
1440 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1441 -  (exit $ac_status); }; } &&
1442 -        { ac_try='test -s conftest.$ac_objext'
1443 -  { (case "(($ac_try" in
1444 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1445 -  *) ac_try_echo=$ac_try;;
1446 -esac
1447 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1448 -  (eval "$ac_try") 2>&5
1449 -  ac_status=$?
1450 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1451 -  (exit $ac_status); }; }; then
1452 +  (exit $ac_status); } && {
1453 +        test -z "$ac_cxx_werror_flag" ||
1454 +        test ! -s conftest.err
1455 +       } && test -s conftest.$ac_objext; then
1456    ac_cv_prog_cxx_g=yes
1457  else
1458    echo "$as_me: failed program was:" >&5
1459 @@ -5710,7 +5517,12 @@
1460  CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
1461  
1462  
1463 -ac_ext=cpp
1464 +
1465 +
1466 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1467 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1468 +    (test "X$CXX" != "Xg++"))) ; then
1469 +  ac_ext=cpp
1470  ac_cpp='$CXXCPP $CPPFLAGS'
1471  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 @@ -5758,17 +5570,10 @@
1474    rm -f conftest.er1
1475    cat conftest.err >&5
1476    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1477 -  (exit $ac_status); } >/dev/null; then
1478 -  if test -s conftest.err; then
1479 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
1480 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1481 -  else
1482 -    ac_cpp_err=
1483 -  fi
1484 -else
1485 -  ac_cpp_err=yes
1486 -fi
1487 -if test -z "$ac_cpp_err"; then
1488 +  (exit $ac_status); } >/dev/null && {
1489 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1490 +        test ! -s conftest.err
1491 +       }; then
1492    :
1493  else
1494    echo "$as_me: failed program was:" >&5
1495 @@ -5802,17 +5607,10 @@
1496    rm -f conftest.er1
1497    cat conftest.err >&5
1498    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1499 -  (exit $ac_status); } >/dev/null; then
1500 -  if test -s conftest.err; then
1501 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
1502 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1503 -  else
1504 -    ac_cpp_err=
1505 -  fi
1506 -else
1507 -  ac_cpp_err=yes
1508 -fi
1509 -if test -z "$ac_cpp_err"; then
1510 +  (exit $ac_status); } >/dev/null && {
1511 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1512 +        test ! -s conftest.err
1513 +       }; then
1514    # Broken: success on invalid input.
1515  continue
1516  else
1517 @@ -5877,17 +5675,10 @@
1518    rm -f conftest.er1
1519    cat conftest.err >&5
1520    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1521 -  (exit $ac_status); } >/dev/null; then
1522 -  if test -s conftest.err; then
1523 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
1524 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1525 -  else
1526 -    ac_cpp_err=
1527 -  fi
1528 -else
1529 -  ac_cpp_err=yes
1530 -fi
1531 -if test -z "$ac_cpp_err"; then
1532 +  (exit $ac_status); } >/dev/null && {
1533 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1534 +        test ! -s conftest.err
1535 +       }; then
1536    :
1537  else
1538    echo "$as_me: failed program was:" >&5
1539 @@ -5921,17 +5712,10 @@
1540    rm -f conftest.er1
1541    cat conftest.err >&5
1542    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1543 -  (exit $ac_status); } >/dev/null; then
1544 -  if test -s conftest.err; then
1545 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
1546 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1547 -  else
1548 -    ac_cpp_err=
1549 -  fi
1550 -else
1551 -  ac_cpp_err=yes
1552 -fi
1553 -if test -z "$ac_cpp_err"; then
1554 +  (exit $ac_status); } >/dev/null && {
1555 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1556 +        test ! -s conftest.err
1557 +       }; then
1558    # Broken: success on invalid input.
1559  continue
1560  else
1561 @@ -5964,13 +5748,15 @@
1562  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1564  
1565 +fi
1566 +
1567  
1568  ac_ext=f
1569  ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1570  ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1571  ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1572  if test -n "$ac_tool_prefix"; then
1573 -  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
1574 +  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
1575    do
1576      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1577  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1578 @@ -5988,7 +5774,7 @@
1579    IFS=$as_save_IFS
1580    test -z "$as_dir" && as_dir=.
1581    for ac_exec_ext in '' $ac_executable_extensions; do
1582 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1583 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1584      ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1585      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586      break 2
1587 @@ -6014,7 +5800,7 @@
1588  fi
1589  if test -z "$F77"; then
1590    ac_ct_F77=$F77
1591 -  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
1592 +  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
1593  do
1594    # Extract the first word of "$ac_prog", so it can be a program name with args.
1595  set dummy $ac_prog; ac_word=$2
1596 @@ -6032,7 +5818,7 @@
1597    IFS=$as_save_IFS
1598    test -z "$as_dir" && as_dir=.
1599    for ac_exec_ext in '' $ac_executable_extensions; do
1600 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1601 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1602      ac_cv_prog_ac_ct_F77="$ac_prog"
1603      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604      break 2
1605 @@ -6139,27 +5925,10 @@
1606    rm -f conftest.er1
1607    cat conftest.err >&5
1608    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1609 -  (exit $ac_status); } &&
1610 -        { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
1611 -  { (case "(($ac_try" in
1612 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 -  *) ac_try_echo=$ac_try;;
1614 -esac
1615 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1616 -  (eval "$ac_try") 2>&5
1617 -  ac_status=$?
1618 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1619 -  (exit $ac_status); }; } &&
1620 -        { ac_try='test -s conftest.$ac_objext'
1621 -  { (case "(($ac_try" in
1622 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 -  *) ac_try_echo=$ac_try;;
1624 -esac
1625 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1626 -  (eval "$ac_try") 2>&5
1627 -  ac_status=$?
1628 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1629 -  (exit $ac_status); }; }; then
1630 +  (exit $ac_status); } && {
1631 +        test -z "$ac_f77_werror_flag" ||
1632 +        test ! -s conftest.err
1633 +       } && test -s conftest.$ac_objext; then
1634    ac_compiler_gnu=yes
1635  else
1636    echo "$as_me: failed program was:" >&5
1637 @@ -6202,27 +5971,10 @@
1638    rm -f conftest.er1
1639    cat conftest.err >&5
1640    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641 -  (exit $ac_status); } &&
1642 -        { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
1643 -  { (case "(($ac_try" in
1644 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 -  *) ac_try_echo=$ac_try;;
1646 -esac
1647 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1648 -  (eval "$ac_try") 2>&5
1649 -  ac_status=$?
1650 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 -  (exit $ac_status); }; } &&
1652 -        { ac_try='test -s conftest.$ac_objext'
1653 -  { (case "(($ac_try" in
1654 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 -  *) ac_try_echo=$ac_try;;
1656 -esac
1657 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1658 -  (eval "$ac_try") 2>&5
1659 -  ac_status=$?
1660 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661 -  (exit $ac_status); }; }; then
1662 +  (exit $ac_status); } && {
1663 +        test -z "$ac_f77_werror_flag" ||
1664 +        test ! -s conftest.err
1665 +       } && test -s conftest.$ac_objext; then
1666    ac_cv_prog_f77_g=yes
1667  else
1668    echo "$as_me: failed program was:" >&5
1669 @@ -6262,7 +6014,6 @@
1670  
1671  
1672  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1673 -
1674  # find the maximum length of command line arguments
1675  { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
1676  echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
1677 @@ -6270,7 +6021,7 @@
1678    echo $ECHO_N "(cached) $ECHO_C" >&6
1679  else
1680      i=0
1681 -  testring="ABCD"
1682 +  teststring="ABCD"
1683  
1684    case $build_os in
1685    msdosdjgpp*)
1686 @@ -6299,24 +6050,77 @@
1687      lt_cv_sys_max_cmd_len=8192;
1688      ;;
1689  
1690 - *)
1691 -    # If test is not a shell built-in, we'll probably end up computing a
1692 -    # maximum length that is only half of the actual maximum length, but
1693 -    # we can't tell.
1694 -    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
1695 -              = "XX$testring") >/dev/null 2>&1 &&
1696 -           new_result=`expr "X$testring" : ".*" 2>&1` &&
1697 -           lt_cv_sys_max_cmd_len=$new_result &&
1698 -           test $i != 17 # 1/2 MB should be enough
1699 -    do
1700 -      i=`expr $i + 1`
1701 -      testring=$testring$testring
1702 -    done
1703 -    testring=
1704 -    # Add a significant safety factor because C++ compilers can tack on massive
1705 -    # amounts of additional arguments before passing them to the linker.
1706 -    # It appears as though 1/2 is a usable value.
1707 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1708 +  amigaos*)
1709 +    # On AmigaOS with pdksh, this test takes hours, literally.
1710 +    # So we just punt and use a minimum line length of 8192.
1711 +    lt_cv_sys_max_cmd_len=8192;
1712 +    ;;
1713 +
1714 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1715 +    # This has been around since 386BSD, at least.  Likely further.
1716 +    if test -x /sbin/sysctl; then
1717 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1718 +    elif test -x /usr/sbin/sysctl; then
1719 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1720 +    else
1721 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
1722 +    fi
1723 +    # And add a safety zone
1724 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1725 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1726 +    ;;
1727 +
1728 +  interix*)
1729 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1730 +    lt_cv_sys_max_cmd_len=196608
1731 +    ;;
1732 +
1733 +  osf*)
1734 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1735 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1736 +    # nice to cause kernel panics so lets avoid the loop below.
1737 +    # First set a reasonable default.
1738 +    lt_cv_sys_max_cmd_len=16384
1739 +    #
1740 +    if test -x /sbin/sysconfig; then
1741 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1742 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1743 +      esac
1744 +    fi
1745 +    ;;
1746 +  sco3.2v5*)
1747 +    lt_cv_sys_max_cmd_len=102400
1748 +    ;;
1749 +  sysv5* | sco5v6* | sysv4.2uw2*)
1750 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1751 +    if test -n "$kargmax"; then
1752 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
1753 +    else
1754 +      lt_cv_sys_max_cmd_len=32768
1755 +    fi
1756 +    ;;
1757 +  *)
1758 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1759 +    if test -n "$lt_cv_sys_max_cmd_len"; then
1760 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1761 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1762 +    else
1763 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1764 +      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
1765 +              = "XX$teststring") >/dev/null 2>&1 &&
1766 +             new_result=`expr "X$teststring" : ".*" 2>&1` &&
1767 +             lt_cv_sys_max_cmd_len=$new_result &&
1768 +             test $i != 17 # 1/2 MB should be enough
1769 +      do
1770 +        i=`expr $i + 1`
1771 +        teststring=$teststring$teststring
1772 +      done
1773 +      teststring=
1774 +      # Add a significant safety factor because C++ compilers can tack on massive
1775 +      # amounts of additional arguments before passing them to the linker.
1776 +      # It appears as though 1/2 is a usable value.
1777 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1778 +    fi
1779      ;;
1780    esac
1781  
1782 @@ -6333,6 +6137,7 @@
1783  
1784  
1785  
1786 +
1787  # Check for command to grab the raw symbol name followed by C symbol from nm.
1788  { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
1789  echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
1790 @@ -6349,9 +6154,6 @@
1791  # Regexp to match symbols that can be accessed directly from C.
1792  sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1793  
1794 -# Transform the above into a raw symbol and a C symbol.
1795 -symxfrm='\1 \2\3 \3'
1796 -
1797  # Transform an extracted symbol line into a proper C declaration
1798  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
1799  
1800 @@ -6373,14 +6175,30 @@
1801    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1802    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'"
1803    ;;
1804 +linux* | k*bsd*-gnu)
1805 +  if test "$host_cpu" = ia64; then
1806 +    symcode='[ABCDGIRSTW]'
1807 +    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1808 +    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'"
1809 +  fi
1810 +  ;;
1811  irix* | nonstopux*)
1812    symcode='[BCDEGRST]'
1813    ;;
1814  osf*)
1815    symcode='[BCDEGQRST]'
1816    ;;
1817 -solaris* | sysv5*)
1818 -  symcode='[BDT]'
1819 +solaris*)
1820 +  symcode='[BDRT]'
1821 +  ;;
1822 +sco3.2v5*)
1823 +  symcode='[DT]'
1824 +  ;;
1825 +sysv4.2uw2*)
1826 +  symcode='[DT]'
1827 +  ;;
1828 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
1829 +  symcode='[ABDT]'
1830    ;;
1831  sysv4)
1832    symcode='[DFNSTU]'
1833 @@ -6398,14 +6216,17 @@
1834  # If we're using GNU nm, then use its standard symbol codes.
1835  case `$NM -V 2>&1` in
1836  *GNU* | *'with BFD'*)
1837 -  symcode='[ABCDGISTW]' ;;
1838 +  symcode='[ABCDGIRSTW]' ;;
1839  esac
1840  
1841  # Try without a prefix undercore, then with it.
1842  for ac_symprfx in "" "_"; do
1843  
1844 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
1845 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
1846 +
1847    # Write the raw and C identifiers.
1848 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1849 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1850  
1851    # Check to see that the pipe works correctly.
1852    pipe_works=no
1853 @@ -6507,7 +6328,7 @@
1854      echo "$progname: failed program was:" >&5
1855      cat conftest.$ac_ext >&5
1856    fi
1857 -  rm -f conftest* conftst*
1858 +  rm -rf conftest* conftst*
1859  
1860    # Do not use the global_symbol_pipe unless it works.
1861    if test "$pipe_works" = yes; then
1862 @@ -6567,7 +6388,7 @@
1863  
1864  # Sed substitution that helps us do robust quoting.  It backslashifies
1865  # metacharacters that are still active within double-quoted strings.
1866 -Xsed='sed -e s/^X//'
1867 +Xsed='sed -e 1s/^X//'
1868  sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1869  
1870  # Same as above, but do not quote variable references.
1871 @@ -6577,9 +6398,6 @@
1872  # double_quote_subst'ed string.
1873  delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1874  
1875 -# Sed substitution to undo escaping of the cmd sep variable
1876 -unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
1877 -
1878  # Sed substitution to avoid accidental globbing in evaled expressions
1879  no_glob_subst='s/\*/\\\*/g'
1880  
1881 @@ -6590,7 +6408,7 @@
1882  default_ofile=libtool
1883  can_build_shared=yes
1884  
1885 -# All known linkers require a `.a' archive for static linking (except M$VC,
1886 +# All known linkers require a `.a' archive for static linking (except MSVC,
1887  # which needs '.lib').
1888  libext=a
1889  ltmain="$ac_aux_dir/ltmain.sh"
1890 @@ -6614,7 +6432,7 @@
1891    IFS=$as_save_IFS
1892    test -z "$as_dir" && as_dir=.
1893    for ac_exec_ext in '' $ac_executable_extensions; do
1894 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1895 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1896      ac_cv_prog_AR="${ac_tool_prefix}ar"
1897      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898      break 2
1899 @@ -6654,7 +6472,7 @@
1900    IFS=$as_save_IFS
1901    test -z "$as_dir" && as_dir=.
1902    for ac_exec_ext in '' $ac_executable_extensions; do
1903 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1904 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1905      ac_cv_prog_ac_ct_AR="ar"
1906      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907      break 2
1908 @@ -6710,7 +6528,7 @@
1909    IFS=$as_save_IFS
1910    test -z "$as_dir" && as_dir=.
1911    for ac_exec_ext in '' $ac_executable_extensions; do
1912 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1913 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1914      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1915      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916      break 2
1917 @@ -6750,7 +6568,7 @@
1918    IFS=$as_save_IFS
1919    test -z "$as_dir" && as_dir=.
1920    for ac_exec_ext in '' $ac_executable_extensions; do
1921 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1922 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1923      ac_cv_prog_ac_ct_RANLIB="ranlib"
1924      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925      break 2
1926 @@ -6806,7 +6624,7 @@
1927    IFS=$as_save_IFS
1928    test -z "$as_dir" && as_dir=.
1929    for ac_exec_ext in '' $ac_executable_extensions; do
1930 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1932      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1933      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934      break 2
1935 @@ -6846,7 +6664,7 @@
1936    IFS=$as_save_IFS
1937    test -z "$as_dir" && as_dir=.
1938    for ac_exec_ext in '' $ac_executable_extensions; do
1939 -  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1940 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1941      ac_cv_prog_ac_ct_STRIP="strip"
1942      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943      break 2
1944 @@ -6895,6 +6713,7 @@
1945  test -z "$AS" && AS=as
1946  test -z "$CC" && CC=cc
1947  test -z "$LTCC" && LTCC=$CC
1948 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1949  test -z "$DLLTOOL" && DLLTOOL=dlltool
1950  test -z "$LD" && LD=ld
1951  test -z "$LN_S" && LN_S="ln -s"
1952 @@ -6907,22 +6726,33 @@
1953  test -z "$ac_objext" && ac_objext=o
1954  
1955  # Determine commands to create old-style static archives.
1956 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1957 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1958  old_postinstall_cmds='chmod 644 $oldlib'
1959  old_postuninstall_cmds=
1960  
1961  if test -n "$RANLIB"; then
1962    case $host_os in
1963    openbsd*)
1964 -    old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
1965 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1966      ;;
1967    *)
1968 -    old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
1969 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1970      ;;
1971    esac
1972 -  old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
1973 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1974  fi
1975  
1976 +for cc_temp in $compiler""; do
1977 +  case $cc_temp in
1978 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1979 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1980 +    \-*) ;;
1981 +    *) break;;
1982 +  esac
1983 +done
1984 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1985 +
1986 +
1987  # Only perform the check for file, if the check method requires it
1988  case $deplibs_check_method in
1989  file_magic*)
1990 @@ -6948,7 +6778,7 @@
1991        if test -n "$file_magic_test_file"; then
1992         case $deplibs_check_method in
1993         "file_magic "*)
1994 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1995 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1996           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1997           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1998             $EGREP "$file_magic_regex" > /dev/null; then
1999 @@ -7010,7 +6840,7 @@
2000        if test -n "$file_magic_test_file"; then
2001         case $deplibs_check_method in
2002         "file_magic "*)
2003 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2004 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2005           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2006           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2007             $EGREP "$file_magic_regex" > /dev/null; then
2008 @@ -7058,27 +6888,339 @@
2009    ;;
2010  esac
2011  
2012 -enable_dlopen=no
2013 -enable_win32_dll=no
2014  
2015 -# Check whether --enable-libtool-lock was given.
2016 -if test "${enable_libtool_lock+set}" = set; then
2017 -  enableval=$enable_libtool_lock;
2018 +  case $host_os in
2019 +    rhapsody* | darwin*)
2020 +    if test -n "$ac_tool_prefix"; then
2021 +  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
2022 +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
2023 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
2026 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2027 +else
2028 +  if test -n "$DSYMUTIL"; then
2029 +  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
2030 +else
2031 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 +for as_dir in $PATH
2033 +do
2034 +  IFS=$as_save_IFS
2035 +  test -z "$as_dir" && as_dir=.
2036 +  for ac_exec_ext in '' $ac_executable_extensions; do
2037 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 +    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
2039 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 +    break 2
2041 +  fi
2042 +done
2043 +done
2044 +IFS=$as_save_IFS
2045 +
2046 +fi
2047 +fi
2048 +DSYMUTIL=$ac_cv_prog_DSYMUTIL
2049 +if test -n "$DSYMUTIL"; then
2050 +  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
2051 +echo "${ECHO_T}$DSYMUTIL" >&6; }
2052 +else
2053 +  { echo "$as_me:$LINENO: result: no" >&5
2054 +echo "${ECHO_T}no" >&6; }
2055  fi
2056  
2057 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2058  
2059 +fi
2060 +if test -z "$ac_cv_prog_DSYMUTIL"; then
2061 +  ac_ct_DSYMUTIL=$DSYMUTIL
2062 +  # Extract the first word of "dsymutil", so it can be a program name with args.
2063 +set dummy dsymutil; ac_word=$2
2064 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2066 +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
2067 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2068 +else
2069 +  if test -n "$ac_ct_DSYMUTIL"; then
2070 +  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
2071 +else
2072 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 +for as_dir in $PATH
2074 +do
2075 +  IFS=$as_save_IFS
2076 +  test -z "$as_dir" && as_dir=.
2077 +  for ac_exec_ext in '' $ac_executable_extensions; do
2078 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2079 +    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
2080 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 +    break 2
2082 +  fi
2083 +done
2084 +done
2085 +IFS=$as_save_IFS
2086  
2087 -# Check whether --with-pic was given.
2088 -if test "${with_pic+set}" = set; then
2089 -  withval=$with_pic; pic_mode="$withval"
2090 +fi
2091 +fi
2092 +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
2093 +if test -n "$ac_ct_DSYMUTIL"; then
2094 +  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
2095 +echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
2096  else
2097 -  pic_mode=default
2098 +  { echo "$as_me:$LINENO: result: no" >&5
2099 +echo "${ECHO_T}no" >&6; }
2100  fi
2101  
2102 -test -z "$pic_mode" && pic_mode=default
2103 +  if test "x$ac_ct_DSYMUTIL" = x; then
2104 +    DSYMUTIL=":"
2105 +  else
2106 +    case $cross_compiling:$ac_tool_warned in
2107 +yes:)
2108 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2109 +whose name does not start with the host triplet.  If you think this
2110 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2111 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2112 +whose name does not start with the host triplet.  If you think this
2113 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2114 +ac_tool_warned=yes ;;
2115 +esac
2116 +    DSYMUTIL=$ac_ct_DSYMUTIL
2117 +  fi
2118 +else
2119 +  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
2120 +fi
2121  
2122 -# Use C for the default configuration in the libtool script
2123 +    if test -n "$ac_tool_prefix"; then
2124 +  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
2125 +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
2126 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2128 +if test "${ac_cv_prog_NMEDIT+set}" = set; then
2129 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2130 +else
2131 +  if test -n "$NMEDIT"; then
2132 +  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
2133 +else
2134 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 +for as_dir in $PATH
2136 +do
2137 +  IFS=$as_save_IFS
2138 +  test -z "$as_dir" && as_dir=.
2139 +  for ac_exec_ext in '' $ac_executable_extensions; do
2140 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2141 +    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
2142 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 +    break 2
2144 +  fi
2145 +done
2146 +done
2147 +IFS=$as_save_IFS
2148 +
2149 +fi
2150 +fi
2151 +NMEDIT=$ac_cv_prog_NMEDIT
2152 +if test -n "$NMEDIT"; then
2153 +  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
2154 +echo "${ECHO_T}$NMEDIT" >&6; }
2155 +else
2156 +  { echo "$as_me:$LINENO: result: no" >&5
2157 +echo "${ECHO_T}no" >&6; }
2158 +fi
2159 +
2160 +
2161 +fi
2162 +if test -z "$ac_cv_prog_NMEDIT"; then
2163 +  ac_ct_NMEDIT=$NMEDIT
2164 +  # Extract the first word of "nmedit", so it can be a program name with args.
2165 +set dummy nmedit; ac_word=$2
2166 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168 +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
2169 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2170 +else
2171 +  if test -n "$ac_ct_NMEDIT"; then
2172 +  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
2173 +else
2174 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 +for as_dir in $PATH
2176 +do
2177 +  IFS=$as_save_IFS
2178 +  test -z "$as_dir" && as_dir=.
2179 +  for ac_exec_ext in '' $ac_executable_extensions; do
2180 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 +    ac_cv_prog_ac_ct_NMEDIT="nmedit"
2182 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 +    break 2
2184 +  fi
2185 +done
2186 +done
2187 +IFS=$as_save_IFS
2188 +
2189 +fi
2190 +fi
2191 +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
2192 +if test -n "$ac_ct_NMEDIT"; then
2193 +  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
2194 +echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
2195 +else
2196 +  { echo "$as_me:$LINENO: result: no" >&5
2197 +echo "${ECHO_T}no" >&6; }
2198 +fi
2199 +
2200 +  if test "x$ac_ct_NMEDIT" = x; then
2201 +    NMEDIT=":"
2202 +  else
2203 +    case $cross_compiling:$ac_tool_warned in
2204 +yes:)
2205 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2206 +whose name does not start with the host triplet.  If you think this
2207 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2208 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2209 +whose name does not start with the host triplet.  If you think this
2210 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2211 +ac_tool_warned=yes ;;
2212 +esac
2213 +    NMEDIT=$ac_ct_NMEDIT
2214 +  fi
2215 +else
2216 +  NMEDIT="$ac_cv_prog_NMEDIT"
2217 +fi
2218 +
2219 +
2220 +    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
2221 +echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
2222 +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
2223 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2224 +else
2225 +  lt_cv_apple_cc_single_mod=no
2226 +      if test -z "${LT_MULTI_MODULE}"; then
2227 +   # By default we will add the -single_module flag. You can override
2228 +   # by either setting the environment variable LT_MULTI_MODULE
2229 +   # non-empty at configure time, or by adding -multi_module to the
2230 +   # link flags.
2231 +   echo "int foo(void){return 1;}" > conftest.c
2232 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2233 +     -dynamiclib ${wl}-single_module conftest.c
2234 +   if test -f libconftest.dylib; then
2235 +     lt_cv_apple_cc_single_mod=yes
2236 +     rm -rf libconftest.dylib*
2237 +   fi
2238 +   rm conftest.c
2239 +      fi
2240 +fi
2241 +{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
2242 +echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
2243 +    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
2244 +echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
2245 +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
2246 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2247 +else
2248 +  lt_cv_ld_exported_symbols_list=no
2249 +      save_LDFLAGS=$LDFLAGS
2250 +      echo "_main" > conftest.sym
2251 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2252 +      cat >conftest.$ac_ext <<_ACEOF
2253 +/* confdefs.h.  */
2254 +_ACEOF
2255 +cat confdefs.h >>conftest.$ac_ext
2256 +cat >>conftest.$ac_ext <<_ACEOF
2257 +/* end confdefs.h.  */
2258 +
2259 +int
2260 +main ()
2261 +{
2262 +
2263 +  ;
2264 +  return 0;
2265 +}
2266 +_ACEOF
2267 +rm -f conftest.$ac_objext conftest$ac_exeext
2268 +if { (ac_try="$ac_link"
2269 +case "(($ac_try" in
2270 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 +  *) ac_try_echo=$ac_try;;
2272 +esac
2273 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274 +  (eval "$ac_link") 2>conftest.er1
2275 +  ac_status=$?
2276 +  grep -v '^ *+' conftest.er1 >conftest.err
2277 +  rm -f conftest.er1
2278 +  cat conftest.err >&5
2279 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 +  (exit $ac_status); } && {
2281 +        test -z "$ac_c_werror_flag" ||
2282 +        test ! -s conftest.err
2283 +       } && test -s conftest$ac_exeext &&
2284 +       $as_test_x conftest$ac_exeext; then
2285 +  lt_cv_ld_exported_symbols_list=yes
2286 +else
2287 +  echo "$as_me: failed program was:" >&5
2288 +sed 's/^/| /' conftest.$ac_ext >&5
2289 +
2290 +       lt_cv_ld_exported_symbols_list=no
2291 +fi
2292 +
2293 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2294 +      conftest$ac_exeext conftest.$ac_ext
2295 +   LDFLAGS="$save_LDFLAGS"
2296 +
2297 +fi
2298 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
2299 +echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
2300 +    case $host_os in
2301 +    rhapsody* | darwin1.[0123])
2302 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2303 +    darwin1.*)
2304 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2305 +    darwin*)
2306 +      # if running on 10.5 or later, the deployment target defaults
2307 +      # to the OS version, if on x86, and 10.4, the deployment
2308 +      # target defaults to 10.4. Don't you love it?
2309 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2310 +   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
2311 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2312 +   10.[012]*)
2313 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2314 +   10.*)
2315 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2316 +      esac
2317 +    ;;
2318 +  esac
2319 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2320 +      _lt_dar_single_mod='$single_module'
2321 +    fi
2322 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2323 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2324 +    else
2325 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
2326 +    fi
2327 +    if test "$DSYMUTIL" != ":"; then
2328 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
2329 +    else
2330 +      _lt_dsymutil=
2331 +    fi
2332 +    ;;
2333 +  esac
2334 +
2335 +
2336 +enable_dlopen=no
2337 +enable_win32_dll=no
2338 +
2339 +# Check whether --enable-libtool-lock was given.
2340 +if test "${enable_libtool_lock+set}" = set; then
2341 +  enableval=$enable_libtool_lock;
2342 +fi
2343 +
2344 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2345 +
2346 +
2347 +# Check whether --with-pic was given.
2348 +if test "${with_pic+set}" = set; then
2349 +  withval=$with_pic; pic_mode="$withval"
2350 +else
2351 +  pic_mode=default
2352 +fi
2353 +
2354 +test -z "$pic_mode" && pic_mode=default
2355 +
2356 +# Use C for the default configuration in the libtool script
2357  tagname=
2358  lt_save_CC="$CC"
2359  ac_ext=c
2360 @@ -7096,77 +7238,34 @@
2361  objext=$objext
2362  
2363  # Code to be used in simple compile tests
2364 -lt_simple_compile_test_code="int some_variable = 0;\n"
2365 +lt_simple_compile_test_code="int some_variable = 0;"
2366  
2367  # Code to be used in simple link tests
2368 -lt_simple_link_test_code='int main(){return(0);}\n'
2369 +lt_simple_link_test_code='int main(){return(0);}'
2370  
2371  
2372  # If no C compiler was specified, use CC.
2373  LTCC=${LTCC-"$CC"}
2374  
2375 +# If no C compiler flags were specified, use CFLAGS.
2376 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2377 +
2378  # Allow CC to be a program name with arguments.
2379  compiler=$CC
2380  
2381  
2382 -#
2383 -# Check for any special shared library compilation flags.
2384 -#
2385 -lt_prog_cc_shlib=
2386 -if test "$GCC" = no; then
2387 -  case $host_os in
2388 -  sco3.2v5*)
2389 -    lt_prog_cc_shlib='-belf'
2390 -    ;;
2391 -  esac
2392 -fi
2393 -if test -n "$lt_prog_cc_shlib"; then
2394 -  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
2395 -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
2396 -  if echo "$old_CC $old_CFLAGS " | grep "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
2397 -  else
2398 -    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
2399 -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
2400 -    lt_cv_prog_cc_can_build_shared=no
2401 -  fi
2402 -fi
2403 -
2404 -
2405 -#
2406 -# Check to make sure the static flag actually works.
2407 -#
2408 -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
2409 -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
2410 -if test "${lt_prog_compiler_static_works+set}" = set; then
2411 -  echo $ECHO_N "(cached) $ECHO_C" >&6
2412 -else
2413 -  lt_prog_compiler_static_works=no
2414 -   save_LDFLAGS="$LDFLAGS"
2415 -   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
2416 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
2417 -   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2418 -     # The compiler can only warn and ignore the option if not recognized
2419 -     # So say no if there are warnings
2420 -     if test -s conftest.err; then
2421 -       # Append any errors to the config.log.
2422 -       cat conftest.err 1>&5
2423 -     else
2424 -       lt_prog_compiler_static_works=yes
2425 -     fi
2426 -   fi
2427 -   $rm conftest*
2428 -   LDFLAGS="$save_LDFLAGS"
2429 -
2430 -fi
2431 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
2432 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
2433 -
2434 -if test x"$lt_prog_compiler_static_works" = xyes; then
2435 -    :
2436 -else
2437 -    lt_prog_compiler_static=
2438 -fi
2439 -
2440 +# save warnings/boilerplate of simple test code
2441 +ac_outfile=conftest.$ac_objext
2442 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2443 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2444 +_lt_compiler_boilerplate=`cat conftest.err`
2445 +$rm conftest*
2446 +
2447 +ac_outfile=conftest.$ac_objext
2448 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
2449 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2450 +_lt_linker_boilerplate=`cat conftest.err`
2451 +$rm -r conftest*
2452  
2453  
2454  
2455 @@ -7175,14 +7274,15 @@
2456  if test "$GCC" = yes; then
2457    lt_prog_compiler_no_builtin_flag=' -fno-builtin'
2458  
2459 -  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
2460 +
2461 +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
2462  echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
2463  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
2464    echo $ECHO_N "(cached) $ECHO_C" >&6
2465  else
2466    lt_cv_prog_compiler_rtti_exceptions=no
2467    ac_outfile=conftest.$ac_objext
2468 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2469 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2470     lt_compiler_flag="-fno-rtti -fno-exceptions"
2471     # Insert the option either (1) after the last *FLAGS variable, or
2472     # (2) before a word containing "conftest.", or (3) at the end.
2473 @@ -7190,18 +7290,20 @@
2474     # with a dollar sign (not a hyphen), so the echo should work correctly.
2475     # The option is referenced via a variable to avoid confusing sed.
2476     lt_compile=`echo "$ac_compile" | $SED \
2477 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2478 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2479     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2480     -e 's:$: $lt_compiler_flag:'`
2481 -   (eval echo "\"\$as_me:7196: $lt_compile\"" >&5)
2482 +   (eval echo "\"\$as_me:7296: $lt_compile\"" >&5)
2483     (eval "$lt_compile" 2>conftest.err)
2484     ac_status=$?
2485     cat conftest.err >&5
2486 -   echo "$as_me:7200: \$? = $ac_status" >&5
2487 +   echo "$as_me:7300: \$? = $ac_status" >&5
2488     if (exit $ac_status) && test -s "$ac_outfile"; then
2489       # The compiler can only warn and ignore the option if not recognized
2490 -     # So say no if there are warnings
2491 -     if test ! -s conftest.err; then
2492 +     # So say no if there are warnings other than the usual output.
2493 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2494 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2495 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2496         lt_cv_prog_compiler_rtti_exceptions=yes
2497       fi
2498     fi
2499 @@ -7246,13 +7348,15 @@
2500        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
2501        ;;
2502  
2503 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2504 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2505        # PIC is the default for these OSes.
2506        ;;
2507  
2508 -    mingw* | pw32* | os2*)
2509 +    mingw* | cygwin* | pw32* | os2*)
2510        # This hack is so that the source file can tell whether it is being
2511        # built for inclusion in a dll (and should export symbols for example).
2512 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
2513 +      # (--disable-auto-import) libraries
2514        lt_prog_compiler_pic='-DDLL_EXPORT'
2515        ;;
2516  
2517 @@ -7262,6 +7366,11 @@
2518        lt_prog_compiler_pic='-fno-common'
2519        ;;
2520  
2521 +    interix[3-9]*)
2522 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2523 +      # Instead, we relocate shared libraries at runtime.
2524 +      ;;
2525 +
2526      msdosdjgpp*)
2527        # Just because we use GCC doesn't mean we suddenly get shared libraries
2528        # on systems that don't support them.
2529 @@ -7278,7 +7387,7 @@
2530      hpux*)
2531        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2532        # not for PA HP-UX.
2533 -      case "$host_cpu" in
2534 +      case $host_cpu in
2535        hppa*64*|ia64*)
2536         # +Z the default
2537         ;;
2538 @@ -7304,8 +7413,18 @@
2539         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
2540        fi
2541        ;;
2542 +      darwin*)
2543 +        # PIC is the default on this platform
2544 +        # Common symbols not allowed in MH_DYLIB files
2545 +       case $cc_basename in
2546 +         xlc*)
2547 +         lt_prog_compiler_pic='-qnocommon'
2548 +         lt_prog_compiler_wl='-Wl,'
2549 +         ;;
2550 +       esac
2551 +       ;;
2552  
2553 -    mingw* | pw32* | os2*)
2554 +    mingw* | cygwin* | pw32* | os2*)
2555        # This hack is so that the source file can tell whether it is being
2556        # built for inclusion in a dll (and should export symbols for example).
2557        lt_prog_compiler_pic='-DDLL_EXPORT'
2558 @@ -7315,7 +7434,7 @@
2559        lt_prog_compiler_wl='-Wl,'
2560        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2561        # not for PA HP-UX.
2562 -      case "$host_cpu" in
2563 +      case $host_cpu in
2564        hppa*64*|ia64*)
2565         # +Z the default
2566         ;;
2567 @@ -7338,18 +7457,41 @@
2568        lt_prog_compiler_static='-Bstatic'
2569        ;;
2570  
2571 -    linux*)
2572 -      case $CC in
2573 -      icc|ecc)
2574 +    linux* | k*bsd*-gnu)
2575 +      case $cc_basename in
2576 +      icc* | ecc*)
2577         lt_prog_compiler_wl='-Wl,'
2578         lt_prog_compiler_pic='-KPIC'
2579         lt_prog_compiler_static='-static'
2580          ;;
2581 -      ccc)
2582 +      pgcc* | pgf77* | pgf90* | pgf95*)
2583 +        # Portland Group compilers (*not* the Pentium gcc compiler,
2584 +       # which looks to be a dead project)
2585 +       lt_prog_compiler_wl='-Wl,'
2586 +       lt_prog_compiler_pic='-fpic'
2587 +       lt_prog_compiler_static='-Bstatic'
2588 +        ;;
2589 +      ccc*)
2590          lt_prog_compiler_wl='-Wl,'
2591          # All Alpha code is PIC.
2592          lt_prog_compiler_static='-non_shared'
2593          ;;
2594 +      *)
2595 +        case `$CC -V 2>&1 | sed 5q` in
2596 +       *Sun\ C*)
2597 +         # Sun C 5.9
2598 +         lt_prog_compiler_pic='-KPIC'
2599 +         lt_prog_compiler_static='-Bstatic'
2600 +         lt_prog_compiler_wl='-Wl,'
2601 +         ;;
2602 +       *Sun\ F*)
2603 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
2604 +         lt_prog_compiler_pic='-KPIC'
2605 +         lt_prog_compiler_static='-Bstatic'
2606 +         lt_prog_compiler_wl=''
2607 +         ;;
2608 +       esac
2609 +       ;;
2610        esac
2611        ;;
2612  
2613 @@ -7359,15 +7501,19 @@
2614        lt_prog_compiler_static='-non_shared'
2615        ;;
2616  
2617 -    sco3.2v5*)
2618 -      lt_prog_compiler_pic='-Kpic'
2619 -      lt_prog_compiler_static='-dn'
2620 +    rdos*)
2621 +      lt_prog_compiler_static='-non_shared'
2622        ;;
2623  
2624      solaris*)
2625 -      lt_prog_compiler_wl='-Wl,'
2626        lt_prog_compiler_pic='-KPIC'
2627        lt_prog_compiler_static='-Bstatic'
2628 +      case $cc_basename in
2629 +      f77* | f90* | f95*)
2630 +       lt_prog_compiler_wl='-Qoption ld ';;
2631 +      *)
2632 +       lt_prog_compiler_wl='-Wl,';;
2633 +      esac
2634        ;;
2635  
2636      sunos4*)
2637 @@ -7376,7 +7522,7 @@
2638        lt_prog_compiler_static='-Bstatic'
2639        ;;
2640  
2641 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2642 +    sysv4 | sysv4.2uw2* | sysv4.3*)
2643        lt_prog_compiler_wl='-Wl,'
2644        lt_prog_compiler_pic='-KPIC'
2645        lt_prog_compiler_static='-Bstatic'
2646 @@ -7389,6 +7535,17 @@
2647        fi
2648        ;;
2649  
2650 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
2651 +      lt_prog_compiler_wl='-Wl,'
2652 +      lt_prog_compiler_pic='-KPIC'
2653 +      lt_prog_compiler_static='-Bstatic'
2654 +      ;;
2655 +
2656 +    unicos*)
2657 +      lt_prog_compiler_wl='-Wl,'
2658 +      lt_prog_compiler_can_build_shared=no
2659 +      ;;
2660 +
2661      uts4*)
2662        lt_prog_compiler_pic='-pic'
2663        lt_prog_compiler_static='-Bstatic'
2664 @@ -7407,14 +7564,15 @@
2665  # Check to make sure the PIC flag actually works.
2666  #
2667  if test -n "$lt_prog_compiler_pic"; then
2668 -  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
2669 +
2670 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
2671  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
2672 -if test "${lt_prog_compiler_pic_works+set}" = set; then
2673 +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
2674    echo $ECHO_N "(cached) $ECHO_C" >&6
2675  else
2676 -  lt_prog_compiler_pic_works=no
2677 +  lt_cv_prog_compiler_pic_works=no
2678    ac_outfile=conftest.$ac_objext
2679 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2680 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2681     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
2682     # Insert the option either (1) after the last *FLAGS variable, or
2683     # (2) before a word containing "conftest.", or (3) at the end.
2684 @@ -7422,28 +7580,30 @@
2685     # with a dollar sign (not a hyphen), so the echo should work correctly.
2686     # The option is referenced via a variable to avoid confusing sed.
2687     lt_compile=`echo "$ac_compile" | $SED \
2688 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2689 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2690     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2691     -e 's:$: $lt_compiler_flag:'`
2692 -   (eval echo "\"\$as_me:7428: $lt_compile\"" >&5)
2693 +   (eval echo "\"\$as_me:7586: $lt_compile\"" >&5)
2694     (eval "$lt_compile" 2>conftest.err)
2695     ac_status=$?
2696     cat conftest.err >&5
2697 -   echo "$as_me:7432: \$? = $ac_status" >&5
2698 +   echo "$as_me:7590: \$? = $ac_status" >&5
2699     if (exit $ac_status) && test -s "$ac_outfile"; then
2700       # The compiler can only warn and ignore the option if not recognized
2701 -     # So say no if there are warnings
2702 -     if test ! -s conftest.err; then
2703 -       lt_prog_compiler_pic_works=yes
2704 +     # So say no if there are warnings other than the usual output.
2705 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2706 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2707 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2708 +       lt_cv_prog_compiler_pic_works=yes
2709       fi
2710     fi
2711     $rm conftest*
2712  
2713  fi
2714 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
2715 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
2716 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
2717 +echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
2718  
2719 -if test x"$lt_prog_compiler_pic_works" = xyes; then
2720 +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
2721      case $lt_prog_compiler_pic in
2722       "" | " "*) ;;
2723       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
2724 @@ -7454,7 +7614,7 @@
2725  fi
2726  
2727  fi
2728 -case "$host_os" in
2729 +case $host_os in
2730    # For platforms which do not support PIC, -DPIC is meaningless:
2731    *djgpp*)
2732      lt_prog_compiler_pic=
2733 @@ -7464,6 +7624,48 @@
2734      ;;
2735  esac
2736  
2737 +#
2738 +# Check to make sure the static flag actually works.
2739 +#
2740 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
2741 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
2742 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
2743 +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
2744 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2745 +else
2746 +  lt_cv_prog_compiler_static_works=no
2747 +   save_LDFLAGS="$LDFLAGS"
2748 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
2749 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
2750 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2751 +     # The linker can only warn and ignore the option if not recognized
2752 +     # So say no if there are warnings
2753 +     if test -s conftest.err; then
2754 +       # Append any errors to the config.log.
2755 +       cat conftest.err 1>&5
2756 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2757 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2758 +       if diff conftest.exp conftest.er2 >/dev/null; then
2759 +         lt_cv_prog_compiler_static_works=yes
2760 +       fi
2761 +     else
2762 +       lt_cv_prog_compiler_static_works=yes
2763 +     fi
2764 +   fi
2765 +   $rm -r conftest*
2766 +   LDFLAGS="$save_LDFLAGS"
2767 +
2768 +fi
2769 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
2770 +echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
2771 +
2772 +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
2773 +    :
2774 +else
2775 +    lt_prog_compiler_static=
2776 +fi
2777 +
2778 +
2779  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
2780  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
2781  if test "${lt_cv_prog_compiler_c_o+set}" = set; then
2782 @@ -7474,14 +7676,7 @@
2783     mkdir conftest
2784     cd conftest
2785     mkdir out
2786 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2787 -
2788 -   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2789 -   # that will create temporary files in the current directory regardless of
2790 -   # the output directory.  Thus, making CWD read-only will cause this test
2791 -   # to fail, enabling locking or at least warning the user not to do parallel
2792 -   # builds.
2793 -   chmod -w .
2794 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2795  
2796     lt_compiler_flag="-o out/conftest2.$ac_objext"
2797     # Insert the option either (1) after the last *FLAGS variable, or
2798 @@ -7489,25 +7684,30 @@
2799     # Note that $ac_compile itself does not contain backslashes and begins
2800     # with a dollar sign (not a hyphen), so the echo should work correctly.
2801     lt_compile=`echo "$ac_compile" | $SED \
2802 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2803 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2804     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2805     -e 's:$: $lt_compiler_flag:'`
2806 -   (eval echo "\"\$as_me:7495: $lt_compile\"" >&5)
2807 +   (eval echo "\"\$as_me:7690: $lt_compile\"" >&5)
2808     (eval "$lt_compile" 2>out/conftest.err)
2809     ac_status=$?
2810     cat out/conftest.err >&5
2811 -   echo "$as_me:7499: \$? = $ac_status" >&5
2812 +   echo "$as_me:7694: \$? = $ac_status" >&5
2813     if (exit $ac_status) && test -s out/conftest2.$ac_objext
2814     then
2815       # The compiler can only warn and ignore the option if not recognized
2816       # So say no if there are warnings
2817 -     if test ! -s out/conftest.err; then
2818 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2819 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2820 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2821         lt_cv_prog_compiler_c_o=yes
2822       fi
2823     fi
2824 -   chmod u+w .
2825 -   $rm conftest* out/*
2826 -   rmdir out
2827 +   chmod u+w . 2>&5
2828 +   $rm conftest*
2829 +   # SGI C++ compiler will create directory out/ii_files/ for
2830 +   # template instantiation
2831 +   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2832 +   $rm out/* && rmdir out
2833     cd ..
2834     rmdir conftest
2835     $rm conftest*
2836 @@ -7571,13 +7771,24 @@
2837    # it will be wrapped by ` (' and `)$', so one must not match beginning or
2838    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2839    # as well as any symbol that contains `d'.
2840 -  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2841 +  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
2842    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2843    # platforms (ab)use it in PIC code, but their linkers get confused if
2844    # the symbol is explicitly referenced.  Since portable code cannot
2845    # rely on this symbol name, it's probably fine to never include it in
2846    # preloaded symbol tables.
2847 +  # Exclude shared library initialization/finalization symbols.
2848    extract_expsyms_cmds=
2849 +  # Just being paranoid about ensuring that cc_basename is set.
2850 +  for cc_temp in $compiler""; do
2851 +  case $cc_temp in
2852 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
2853 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
2854 +    \-*) ;;
2855 +    *) break;;
2856 +  esac
2857 +done
2858 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
2859  
2860    case $host_os in
2861    cygwin* | mingw* | pw32*)
2862 @@ -7588,6 +7799,10 @@
2863        with_gnu_ld=no
2864      fi
2865      ;;
2866 +  interix*)
2867 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
2868 +    with_gnu_ld=yes
2869 +    ;;
2870    openbsd*)
2871      with_gnu_ld=no
2872      ;;
2873 @@ -7598,9 +7813,30 @@
2874      # If archive_cmds runs LD, not CC, wlarc should be empty
2875      wlarc='${wl}'
2876  
2877 +    # Set some defaults for GNU ld with shared library support. These
2878 +    # are reset later if shared libraries are not supported. Putting them
2879 +    # here allows them to be overridden if necessary.
2880 +    runpath_var=LD_RUN_PATH
2881 +    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
2882 +    export_dynamic_flag_spec='${wl}--export-dynamic'
2883 +    # ancient GNU ld didn't support --whole-archive et. al.
2884 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
2885 +       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2886 +      else
2887 +       whole_archive_flag_spec=
2888 +    fi
2889 +    supports_anon_versioning=no
2890 +    case `$LD -v 2>/dev/null` in
2891 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
2892 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
2893 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
2894 +      *\ 2.11.*) ;; # other 2.11 versions
2895 +      *) supports_anon_versioning=yes ;;
2896 +    esac
2897 +
2898      # See if GNU ld supports shared libraries.
2899      case $host_os in
2900 -    aix3* | aix4* | aix5*)
2901 +    aix[3-9]*)
2902        # On AIX/PPC, the GNU linker is very broken
2903        if test "$host_cpu" != ia64; then
2904         ld_shlibs=no
2905 @@ -7617,7 +7853,7 @@
2906        ;;
2907  
2908      amigaos*)
2909 -      archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
2910 +      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2911        hardcode_libdir_flag_spec='-L$libdir'
2912        hardcode_minus_L=yes
2913  
2914 @@ -7648,10 +7884,10 @@
2915        allow_undefined_flag=unsupported
2916        always_export_symbols=no
2917        enable_shared_with_static_runtimes=yes
2918 -      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
2919 +      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
2920  
2921        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2922 -        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2923 +        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2924         # If the export-symbols file already is a .def file (1st line
2925         # is EXPORTS), use it as is; otherwise, prepend...
2926         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2927 @@ -7659,24 +7895,80 @@
2928         else
2929           echo EXPORTS > $output_objdir/$soname.def;
2930           cat $export_symbols >> $output_objdir/$soname.def;
2931 -       fi${_S_}
2932 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
2933 +       fi~
2934 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2935        else
2936         ld_shlibs=no
2937        fi
2938        ;;
2939  
2940 -    netbsd*)
2941 -      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2942 -       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2943 -       wlarc=
2944 -      else
2945 +    interix[3-9]*)
2946 +      hardcode_direct=no
2947 +      hardcode_shlibpath_var=no
2948 +      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2949 +      export_dynamic_flag_spec='${wl}-E'
2950 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
2951 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
2952 +      # default) and relocated if they conflict, which is a slow very memory
2953 +      # consuming and fragmenting process.  To avoid this, we pick a random,
2954 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
2955 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
2956 +      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2957 +      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2958 +      ;;
2959 +
2960 +    gnu* | linux* | k*bsd*-gnu)
2961 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2962 +       tmp_addflag=
2963 +       case $cc_basename,$host_cpu in
2964 +       pgcc*)                          # Portland Group C compiler
2965 +         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'
2966 +         tmp_addflag=' $pic_flag'
2967 +         ;;
2968 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
2969 +         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'
2970 +         tmp_addflag=' $pic_flag -Mnomain' ;;
2971 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
2972 +         tmp_addflag=' -i_dynamic' ;;
2973 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
2974 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
2975 +       ifc* | ifort*)                  # Intel Fortran compiler
2976 +         tmp_addflag=' -nofor_main' ;;
2977 +       esac
2978 +       case `$CC -V 2>&1 | sed 5q` in
2979 +       *Sun\ C*)                       # Sun C 5.9
2980 +         whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2981 +         tmp_sharedflag='-G' ;;
2982 +       *Sun\ F*)                       # Sun Fortran 8.3
2983 +         tmp_sharedflag='-G' ;;
2984 +       *)
2985 +         tmp_sharedflag='-shared' ;;
2986 +       esac
2987 +       archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2988 +
2989 +       if test $supports_anon_versioning = yes; then
2990 +         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
2991 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
2992 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
2993 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
2994 +       fi
2995 +       link_all_deplibs=no
2996 +      else
2997 +       ld_shlibs=no
2998 +      fi
2999 +      ;;
3000 +
3001 +    netbsd* | netbsdelf*-gnu)
3002 +      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3003 +       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3004 +       wlarc=
3005 +      else
3006         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3007         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3008        fi
3009        ;;
3010  
3011 -    solaris* | sysv5*)
3012 +    solaris*)
3013        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
3014         ld_shlibs=no
3015         cat <<EOF 1>&2
3016 @@ -7697,6 +7989,33 @@
3017        fi
3018        ;;
3019  
3020 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
3021 +      case `$LD -v 2>&1` in
3022 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
3023 +       ld_shlibs=no
3024 +       cat <<_LT_EOF 1>&2
3025 +
3026 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
3027 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
3028 +*** is disabling shared libraries support.  We urge you to upgrade GNU
3029 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
3030 +*** your PATH or compiler configuration so that the native linker is
3031 +*** used, and then restart.
3032 +
3033 +_LT_EOF
3034 +       ;;
3035 +       *)
3036 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3037 +           hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
3038 +           archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
3039 +           archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
3040 +         else
3041 +           ld_shlibs=no
3042 +         fi
3043 +       ;;
3044 +      esac
3045 +      ;;
3046 +
3047      sunos4*)
3048        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3049        wlarc=
3050 @@ -7714,16 +8033,11 @@
3051        ;;
3052      esac
3053  
3054 -    if test "$ld_shlibs" = yes; then
3055 -      runpath_var=LD_RUN_PATH
3056 -      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3057 -      export_dynamic_flag_spec='${wl}--export-dynamic'
3058 -      # ancient GNU ld didn't support --whole-archive et. al.
3059 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3060 -       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3061 -      else
3062 -       whole_archive_flag_spec=
3063 -      fi
3064 +    if test "$ld_shlibs" = no; then
3065 +      runpath_var=
3066 +      hardcode_libdir_flag_spec=
3067 +      export_dynamic_flag_spec=
3068 +      whole_archive_flag_spec=
3069      fi
3070    else
3071      # PORTME fill in a description of your system's linker (not GNU ld)
3072 @@ -7731,18 +8045,18 @@
3073      aix3*)
3074        allow_undefined_flag=unsupported
3075        always_export_symbols=yes
3076 -      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
3077 +      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3078        # Note: this linker hardcodes the directories in LIBPATH if there
3079        # are no directories specified by -L.
3080        hardcode_minus_L=yes
3081 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
3082 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
3083         # Neither direct hardcoding nor static linking is supported with a
3084         # broken collect2.
3085         hardcode_direct=unsupported
3086        fi
3087        ;;
3088  
3089 -    aix4* | aix5*)
3090 +    aix[4-9]*)
3091        if test "$host_cpu" = ia64; then
3092         # On IA64, the linker does run time linking by default, so we don't
3093         # have to do anything special.
3094 @@ -7762,13 +8076,14 @@
3095         # Test if we are trying to use run time linking or normal
3096         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3097         # need to do runtime linking.
3098 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3099 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
3100           for ld_flag in $LDFLAGS; do
3101           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3102             aix_use_runtimelinking=yes
3103             break
3104           fi
3105           done
3106 +         ;;
3107         esac
3108  
3109         exp_sym_flag='-bexport'
3110 @@ -7787,7 +8102,7 @@
3111        link_all_deplibs=yes
3112  
3113        if test "$GCC" = yes; then
3114 -       case $host_os in aix4.012|aix4.012.*)
3115 +       case $host_os in aix4.[012]|aix4.[012].*)
3116         # We only want to do this on AIX 4.2 and lower, the check
3117         # below for broken collect2 doesn't work under 4.3+
3118           collect2name=`${CC} -print-prog-name=collect2`
3119 @@ -7795,7 +8110,7 @@
3120            strings "$collect2name" | grep resolve_lib_name >/dev/null
3121           then
3122           # We have reworked collect2
3123 -         hardcode_direct=yes
3124 +         :
3125           else
3126           # We have old collect2
3127           hardcode_direct=unsupported
3128 @@ -7806,8 +8121,12 @@
3129           hardcode_libdir_flag_spec='-L$libdir'
3130           hardcode_libdir_separator=
3131           fi
3132 +         ;;
3133         esac
3134         shared_flag='-shared'
3135 +       if test "$aix_use_runtimelinking" = yes; then
3136 +         shared_flag="$shared_flag "'${wl}-G'
3137 +       fi
3138        else
3139         # not using gcc
3140         if test "$host_cpu" = ia64; then
3141 @@ -7815,11 +8134,11 @@
3142         # chokes on -Wl,-G. The following line is correct:
3143           shared_flag='-G'
3144         else
3145 -       if test "$aix_use_runtimelinking" = yes; then
3146 +         if test "$aix_use_runtimelinking" = yes; then
3147             shared_flag='${wl}-G'
3148           else
3149             shared_flag='${wl}-bM:SRE'
3150 -       fi
3151 +         fi
3152         fi
3153        fi
3154  
3155 @@ -7859,33 +8178,24 @@
3156    rm -f conftest.er1
3157    cat conftest.err >&5
3158    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 -  (exit $ac_status); } &&
3160 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3161 -  { (case "(($ac_try" in
3162 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 -  *) ac_try_echo=$ac_try;;
3164 -esac
3165 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 -  (eval "$ac_try") 2>&5
3167 -  ac_status=$?
3168 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 -  (exit $ac_status); }; } &&
3170 -        { ac_try='test -s conftest$ac_exeext'
3171 -  { (case "(($ac_try" in
3172 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 -  *) ac_try_echo=$ac_try;;
3174 -esac
3175 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 -  (eval "$ac_try") 2>&5
3177 -  ac_status=$?
3178 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 -  (exit $ac_status); }; }; then
3180 -
3181 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3182 -}'`
3183 +  (exit $ac_status); } && {
3184 +        test -z "$ac_c_werror_flag" ||
3185 +        test ! -s conftest.err
3186 +       } && test -s conftest$ac_exeext &&
3187 +       $as_test_x conftest$ac_exeext; then
3188 +
3189 +lt_aix_libpath_sed='
3190 +    /Import File Strings/,/^$/ {
3191 +       /^0/ {
3192 +           s/^0  *\(.*\)$/\1/
3193 +           p
3194 +       }
3195 +    }'
3196 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3197  # Check for a 64-bit object if we didn't find anything.
3198 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3199 -}'`; fi
3200 +if test -z "$aix_libpath"; then
3201 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3202 +fi
3203  else
3204    echo "$as_me: failed program was:" >&5
3205  sed 's/^/| /' conftest.$ac_ext >&5
3206 @@ -7893,17 +8203,17 @@
3207  
3208  fi
3209  
3210 -rm -f core conftest.err conftest.$ac_objext \
3211 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3212        conftest$ac_exeext conftest.$ac_ext
3213  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3214  
3215         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3216 -       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"
3217 +       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3218         else
3219         if test "$host_cpu" = ia64; then
3220           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3221           allow_undefined_flag="-z nodefs"
3222 -         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"
3223 +         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3224         else
3225          # Determine the default libpath from the value encoded in an empty executable.
3226          cat >conftest.$ac_ext <<_ACEOF
3227 @@ -7934,33 +8244,24 @@
3228    rm -f conftest.er1
3229    cat conftest.err >&5
3230    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 -  (exit $ac_status); } &&
3232 -        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3233 -  { (case "(($ac_try" in
3234 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 -  *) ac_try_echo=$ac_try;;
3236 -esac
3237 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 -  (eval "$ac_try") 2>&5
3239 -  ac_status=$?
3240 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 -  (exit $ac_status); }; } &&
3242 -        { ac_try='test -s conftest$ac_exeext'
3243 -  { (case "(($ac_try" in
3244 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 -  *) ac_try_echo=$ac_try;;
3246 -esac
3247 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 -  (eval "$ac_try") 2>&5
3249 -  ac_status=$?
3250 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 -  (exit $ac_status); }; }; then
3252 -
3253 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3254 -}'`
3255 +  (exit $ac_status); } && {
3256 +        test -z "$ac_c_werror_flag" ||
3257 +        test ! -s conftest.err
3258 +       } && test -s conftest$ac_exeext &&
3259 +       $as_test_x conftest$ac_exeext; then
3260 +
3261 +lt_aix_libpath_sed='
3262 +    /Import File Strings/,/^$/ {
3263 +       /^0/ {
3264 +           s/^0  *\(.*\)$/\1/
3265 +           p
3266 +       }
3267 +    }'
3268 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3269  # Check for a 64-bit object if we didn't find anything.
3270 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3271 -}'`; fi
3272 +if test -z "$aix_libpath"; then
3273 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3274 +fi
3275  else
3276    echo "$as_me: failed program was:" >&5
3277  sed 's/^/| /' conftest.$ac_ext >&5
3278 @@ -7968,7 +8269,7 @@
3279  
3280  fi
3281  
3282 -rm -f core conftest.err conftest.$ac_objext \
3283 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3284        conftest$ac_exeext conftest.$ac_ext
3285  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3286  
3287 @@ -7977,26 +8278,24 @@
3288           # -berok will link without error, but may produce a broken library.
3289           no_undefined_flag=' ${wl}-bernotok'
3290           allow_undefined_flag=' ${wl}-berok'
3291 -         # -bexpall does not export symbols beginning with underscore (_)
3292 -         always_export_symbols=yes
3293           # Exported symbols can be pulled into shared objects from archives
3294 -         whole_archive_flag_spec=' '
3295 +         whole_archive_flag_spec='$convenience'
3296           archive_cmds_need_lc=yes
3297 -         # This is similar to how AIX traditionally builds it's shared libraries.
3298 -         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3299 +         # This is similar to how AIX traditionally builds its shared libraries.
3300 +         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3301         fi
3302        fi
3303        ;;
3304  
3305      amigaos*)
3306 -      archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
3307 +      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3308        hardcode_libdir_flag_spec='-L$libdir'
3309        hardcode_minus_L=yes
3310        # see comment about different semantics on the GNU ld section
3311        ld_shlibs=no
3312        ;;
3313  
3314 -    bsdi4*)
3315 +    bsdi[45]*)
3316        export_dynamic_flag_spec=-rdynamic
3317        ;;
3318  
3319 @@ -8010,69 +8309,63 @@
3320        # Tell ltmain to make .lib files, not .a files.
3321        libext=lib
3322        # Tell ltmain to make .dll files, not .so files.
3323 -      shrext=".dll"
3324 +      shrext_cmds=".dll"
3325        # FIXME: Setting linknames here is a bad hack.
3326 -      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
3327 +      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
3328        # The linker will automatically build a .lib file if we build a DLL.
3329        old_archive_From_new_cmds='true'
3330        # FIXME: Should let the user specify the lib program.
3331 -      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3332 +      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
3333        fix_srcfile_path='`cygpath -w "$srcfile"`'
3334        enable_shared_with_static_runtimes=yes
3335        ;;
3336  
3337      darwin* | rhapsody*)
3338 -    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
3339 -      archive_cmds_need_lc=no
3340 -      case "$host_os" in
3341 -      rhapsody* | darwin1.[012])
3342 -       allow_undefined_flag='-undefined suppress'
3343 -       ;;
3344 -      darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
3345 -       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
3346 -       ;;
3347 -      *) # Darwin 7.0 on
3348 -       case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
3349 -       10.[012])
3350 -         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
3351 -         ;;
3352 -       *) # 10.3 on
3353 -         if test -z ${LD_TWOLEVEL_NAMESPACE}; then
3354 -           allow_undefined_flag='-flat_namespace -undefined suppress'
3355 -         else
3356 -           allow_undefined_flag='-undefined dynamic_lookup'
3357 -         fi
3358 -         ;;
3359 -       esac
3360 -       ;;
3361 +      case $host_os in
3362 +        rhapsody* | darwin1.[012])
3363 +         allow_undefined_flag='${wl}-undefined ${wl}suppress'
3364 +         ;;
3365 +       *) # Darwin 1.3 on
3366 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3367 +           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3368 +         else
3369 +           case ${MACOSX_DEPLOYMENT_TARGET} in
3370 +             10.[012])
3371 +               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3372 +               ;;
3373 +             10.*)
3374 +               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
3375 +               ;;
3376 +           esac
3377 +         fi
3378 +         ;;
3379        esac
3380 -      # FIXME: Relying on posixy $() will cause problems for
3381 -      #        cross-compilation, but unfortunately the echo tests do not
3382 -      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
3383 -      #               `"' quotes if we put them in here... so don't!
3384 -       lt_int_apple_cc_single_mod=no
3385 -       output_verbose_link_cmd='echo'
3386 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3387 -         lt_int_apple_cc_single_mod=yes
3388 -       fi
3389 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3390 -         archive_cmds='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3391 -       else
3392 -        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3393 -      fi
3394 -      module_cmds='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
3395 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3396 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3397 -          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3398 -        else
3399 -          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3400 -        fi
3401 -          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3402 +      archive_cmds_need_lc=no
3403        hardcode_direct=no
3404        hardcode_automatic=yes
3405        hardcode_shlibpath_var=unsupported
3406 -      whole_archive_flag_spec='-all_load $convenience'
3407 +      whole_archive_flag_spec=''
3408        link_all_deplibs=yes
3409 +    if test "$GCC" = yes ; then
3410 +       output_verbose_link_cmd='echo'
3411 +        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3412 +        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3413 +        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3414 +        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3415 +    else
3416 +      case $cc_basename in
3417 +        xlc*)
3418 +         output_verbose_link_cmd='echo'
3419 +         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3420 +         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3421 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3422 +         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3423 +          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}'
3424 +          ;;
3425 +       *)
3426 +         ld_shlibs=no
3427 +          ;;
3428 +      esac
3429      fi
3430        ;;
3431  
3432 @@ -8106,7 +8399,7 @@
3433        ;;
3434  
3435      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3436 -    freebsd*)
3437 +    freebsd* | dragonfly*)
3438        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3439        hardcode_libdir_flag_spec='-R$libdir'
3440        hardcode_direct=yes
3441 @@ -8115,9 +8408,9 @@
3442  
3443      hpux9*)
3444        if test "$GCC" = yes; then
3445 -       archive_cmds='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3446 +       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'
3447        else
3448 -       archive_cmds='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3449 +       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'
3450        fi
3451        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3452        hardcode_libdir_separator=:
3453 @@ -8129,47 +8422,62 @@
3454        export_dynamic_flag_spec='${wl}-E'
3455        ;;
3456  
3457 -    hpux10* | hpux11*)
3458 +    hpux10*)
3459        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3460 -       case "$host_cpu" in
3461 -       hppa*64*|ia64*)
3462 +       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3463 +      else
3464 +       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3465 +      fi
3466 +      if test "$with_gnu_ld" = no; then
3467 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3468 +       hardcode_libdir_separator=:
3469 +
3470 +       hardcode_direct=yes
3471 +       export_dynamic_flag_spec='${wl}-E'
3472 +
3473 +       # hardcode_minus_L: Not really in the search PATH,
3474 +       # but as the default location of the library.
3475 +       hardcode_minus_L=yes
3476 +      fi
3477 +      ;;
3478 +
3479 +    hpux11*)
3480 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3481 +       case $host_cpu in
3482 +       hppa*64*)
3483           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3484           ;;
3485 +       ia64*)
3486 +         archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3487 +         ;;
3488         *)
3489           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3490           ;;
3491         esac
3492        else
3493 -       case "$host_cpu" in
3494 -       hppa*64*|ia64*)
3495 -         archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
3496 +       case $host_cpu in
3497 +       hppa*64*)
3498 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3499 +         ;;
3500 +       ia64*)
3501 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3502           ;;
3503         *)
3504 -         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3505 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3506           ;;
3507         esac
3508        fi
3509        if test "$with_gnu_ld" = no; then
3510 -       case "$host_cpu" in
3511 -       hppa*64*)
3512 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3513 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3514 +       hardcode_libdir_separator=:
3515 +
3516 +       case $host_cpu in
3517 +       hppa*64*|ia64*)
3518           hardcode_libdir_flag_spec_ld='+b $libdir'
3519 -         hardcode_libdir_separator=:
3520 -         hardcode_direct=no
3521 -         hardcode_shlibpath_var=no
3522 -         ;;
3523 -       ia64*)
3524 -         hardcode_libdir_flag_spec='-L$libdir'
3525           hardcode_direct=no
3526           hardcode_shlibpath_var=no
3527 -
3528 -         # hardcode_minus_L: Not really in the search PATH,
3529 -         # but as the default location of the library.
3530 -         hardcode_minus_L=yes
3531           ;;
3532         *)
3533 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3534 -         hardcode_libdir_separator=:
3535           hardcode_direct=yes
3536           export_dynamic_flag_spec='${wl}-E'
3537  
3538 @@ -8193,7 +8501,7 @@
3539        link_all_deplibs=yes
3540        ;;
3541  
3542 -    netbsd*)
3543 +    netbsd* | netbsdelf*-gnu)
3544        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3545         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3546        else
3547 @@ -8213,23 +8521,28 @@
3548        ;;
3549  
3550      openbsd*)
3551 -      hardcode_direct=yes
3552 -      hardcode_shlibpath_var=no
3553 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3554 -       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3555 -       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3556 -       export_dynamic_flag_spec='${wl}-E'
3557 +      if test -f /usr/libexec/ld.so; then
3558 +       hardcode_direct=yes
3559 +       hardcode_shlibpath_var=no
3560 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3561 +         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3562 +         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
3563 +         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3564 +         export_dynamic_flag_spec='${wl}-E'
3565 +       else
3566 +         case $host_os in
3567 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3568 +            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3569 +            hardcode_libdir_flag_spec='-R$libdir'
3570 +            ;;
3571 +          *)
3572 +            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3573 +            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3574 +            ;;
3575 +         esac
3576 +        fi
3577        else
3578 -       case $host_os in
3579 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3580 -          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3581 -          hardcode_libdir_flag_spec='-R$libdir'
3582 -          ;;
3583 -        *)
3584 -          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3585 -          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3586 -          ;;
3587 -       esac
3588 +       ld_shlibs=no
3589        fi
3590        ;;
3591  
3592 @@ -8237,7 +8550,7 @@
3593        hardcode_libdir_flag_spec='-L$libdir'
3594        hardcode_minus_L=yes
3595        allow_undefined_flag=unsupported
3596 -      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
3597 +      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'
3598        old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3599        ;;
3600  
3601 @@ -8261,8 +8574,8 @@
3602        else
3603         allow_undefined_flag=' -expect_unresolved \*'
3604         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'
3605 -       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp${_S_}
3606 -       $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${_S_}$rm $lib.exp'
3607 +       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3608 +       $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'
3609  
3610         # Both c and cxx compiler support -rpath directly
3611         hardcode_libdir_flag_spec='-rpath $libdir'
3612 @@ -8270,31 +8583,34 @@
3613        hardcode_libdir_separator=:
3614        ;;
3615  
3616 -    sco3.2v5*)
3617 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3618 -      hardcode_shlibpath_var=no
3619 -      export_dynamic_flag_spec='${wl}-Bexport'
3620 -      runpath_var=LD_RUN_PATH
3621 -      hardcode_runpath_var=yes
3622 -      ;;
3623 -
3624      solaris*)
3625        no_undefined_flag=' -z text'
3626        if test "$GCC" = yes; then
3627 +       wlarc='${wl}'
3628         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3629 -       archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
3630 -         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
3631 +       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3632 +         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
3633        else
3634 +       wlarc=''
3635         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3636 -       archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
3637 -       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
3638 +       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3639 +       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3640        fi
3641        hardcode_libdir_flag_spec='-R$libdir'
3642        hardcode_shlibpath_var=no
3643        case $host_os in
3644        solaris2.[0-5] | solaris2.[0-5].*) ;;
3645 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3646 -       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3647 +      *)
3648 +       # The compiler driver will combine and reorder linker options,
3649 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
3650 +       # but is careful enough not to reorder.
3651 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
3652 +       if test "$GCC" = yes; then
3653 +         whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3654 +       else
3655 +         whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
3656 +       fi
3657 +       ;;
3658        esac
3659        link_all_deplibs=yes
3660        ;;
3661 @@ -8351,36 +8667,45 @@
3662        fi
3663        ;;
3664  
3665 -    sysv4.2uw2*)
3666 -      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3667 -      hardcode_direct=yes
3668 -      hardcode_minus_L=no
3669 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
3670 +      no_undefined_flag='${wl}-z,text'
3671 +      archive_cmds_need_lc=no
3672        hardcode_shlibpath_var=no
3673 -      hardcode_runpath_var=yes
3674 -      runpath_var=LD_RUN_PATH
3675 -      ;;
3676 +      runpath_var='LD_RUN_PATH'
3677  
3678 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
3679 -      no_undefined_flag='${wl}-z ${wl}text'
3680        if test "$GCC" = yes; then
3681 -       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3682 +       archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3683 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3684        else
3685 -       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3686 +       archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3687 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3688        fi
3689 -      runpath_var='LD_RUN_PATH'
3690 -      hardcode_shlibpath_var=no
3691        ;;
3692  
3693 -    sysv5*)
3694 -      no_undefined_flag=' -z text'
3695 -      # $CC -shared without GNU ld will not create a library from C++
3696 -      # object files and a static libstdc++, better avoid it by now
3697 -      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3698 -      archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
3699 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
3700 -      hardcode_libdir_flag_spec=
3701 +    sysv5* | sco3.2v5* | sco5v6*)
3702 +      # Note: We can NOT use -z defs as we might desire, because we do not
3703 +      # link with -lc, and that would cause any symbols used from libc to
3704 +      # always be unresolved, which means just about no library would
3705 +      # ever link correctly.  If we're not using GNU ld we use -z text
3706 +      # though, which does catch some bad symbols but isn't as heavy-handed
3707 +      # as -z defs.
3708 +      no_undefined_flag='${wl}-z,text'
3709 +      allow_undefined_flag='${wl}-z,nodefs'
3710 +      archive_cmds_need_lc=no
3711        hardcode_shlibpath_var=no
3712 +      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3713 +      hardcode_libdir_separator=':'
3714 +      link_all_deplibs=yes
3715 +      export_dynamic_flag_spec='${wl}-Bexport'
3716        runpath_var='LD_RUN_PATH'
3717 +
3718 +      if test "$GCC" = yes; then
3719 +       archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3720 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3721 +      else
3722 +       archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3723 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3724 +      fi
3725        ;;
3726  
3727      uts4*)
3728 @@ -8399,11 +8724,6 @@
3729  echo "${ECHO_T}$ld_shlibs" >&6; }
3730  test "$ld_shlibs" = no && can_build_shared=no
3731  
3732 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3733 -if test "$GCC" = yes; then
3734 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3735 -fi
3736 -
3737  #
3738  # Do we need to explicitly link libc?
3739  #
3740 @@ -8414,7 +8734,7 @@
3741  
3742    if test "$enable_shared" = yes && test "$GCC" = yes; then
3743      case $archive_cmds in
3744 -    *"$_S_"*)
3745 +    *'~'*)
3746        # FIXME: we may have to deal with multi-command sequences.
3747        ;;
3748      '$CC '*)
3749 @@ -8424,7 +8744,7 @@
3750        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
3751  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
3752        $rm conftest*
3753 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3754 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3755  
3756        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757    (eval $ac_compile) 2>&5
3758 @@ -8436,6 +8756,7 @@
3759          libobjs=conftest.$ac_objext
3760          deplibs=
3761          wl=$lt_prog_compiler_wl
3762 +       pic_flag=$lt_prog_compiler_pic
3763          compiler_flags=-v
3764          linker_flags=-v
3765          verstring=
3766 @@ -8466,78 +8787,12 @@
3767    ;;
3768  esac
3769  
3770 -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
3771 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
3772 -hardcode_action=
3773 -if test -n "$hardcode_libdir_flag_spec" || \
3774 -   test -n "$runpath_var " || \
3775 -   test "X$hardcode_automatic"="Xyes" ; then
3776 -
3777 -  # We can hardcode non-existant directories.
3778 -  if test "$hardcode_direct" != no &&
3779 -     # If the only mechanism to avoid hardcoding is shlibpath_var, we
3780 -     # have to relink, otherwise we might link with an installed library
3781 -     # when we should be linking with a yet-to-be-installed one
3782 -     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
3783 -     test "$hardcode_minus_L" != no; then
3784 -    # Linking always hardcodes the temporary library directory.
3785 -    hardcode_action=relink
3786 -  else
3787 -    # We can link without hardcoding, and we can hardcode nonexisting dirs.
3788 -    hardcode_action=immediate
3789 -  fi
3790 -else
3791 -  # We cannot hardcode anything, or else we can only hardcode existing
3792 -  # directories.
3793 -  hardcode_action=unsupported
3794 -fi
3795 -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
3796 -echo "${ECHO_T}$hardcode_action" >&6; }
3797 -
3798 -if test "$hardcode_action" = relink; then
3799 -  # Fast installation is not supported
3800 -  enable_fast_install=no
3801 -elif test "$shlibpath_overrides_runpath" = yes ||
3802 -     test "$enable_shared" = no; then
3803 -  # Fast installation is not necessary
3804 -  enable_fast_install=needless
3805 -fi
3806 -
3807 -striplib=
3808 -old_striplib=
3809 -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3810 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
3811 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3812 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3813 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3814 -  { echo "$as_me:$LINENO: result: yes" >&5
3815 -echo "${ECHO_T}yes" >&6; }
3816 -else
3817 -# FIXME - insert some real tests, host_os isn't really good enough
3818 -  case $host_os in
3819 -   NOT-darwin*)
3820 -       if test -n "$STRIP" ; then
3821 -         striplib="$STRIP -x"
3822 -         { echo "$as_me:$LINENO: result: yes" >&5
3823 -echo "${ECHO_T}yes" >&6; }
3824 -       else
3825 -  { echo "$as_me:$LINENO: result: no" >&5
3826 -echo "${ECHO_T}no" >&6; }
3827 -fi
3828 -       ;;
3829 -   *)
3830 -  { echo "$as_me:$LINENO: result: no" >&5
3831 -echo "${ECHO_T}no" >&6; }
3832 -    ;;
3833 -  esac
3834 -fi
3835 -
3836  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3837  echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
3838  library_names_spec=
3839  libname_spec='lib$name'
3840  soname_spec=
3841 -shrext=".so"
3842 +shrext_cmds=".so"
3843  postinstall_cmds=
3844  postuninstall_cmds=
3845  finish_cmds=
3846 @@ -8547,17 +8802,55 @@
3847  version_type=none
3848  dynamic_linker="$host_os ld.so"
3849  sys_lib_dlsearch_path_spec="/lib /usr/lib"
3850 +
3851  if test "$GCC" = yes; then
3852 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3853 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
3854 +  case $host_os in
3855 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3856 +    *) lt_awk_arg="/^libraries:/" ;;
3857 +  esac
3858 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3859 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
3860      # if the path contains ";" then we assume it to be the separator
3861      # otherwise default to the standard path separator (i.e. ":") - it is
3862      # assumed that no part of a normal pathname contains ";" but that should
3863      # okay in the real world where ";" in dirpaths is itself problematic.
3864 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3865 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3866    else
3867 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3868 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3869    fi
3870 +  # Ok, now we have the path, separated by spaces, we can step through it
3871 +  # and add multilib dir if necessary.
3872 +  lt_tmp_lt_search_path_spec=
3873 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3874 +  for lt_sys_path in $lt_search_path_spec; do
3875 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3876 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3877 +    else
3878 +      test -d "$lt_sys_path" && \
3879 +       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3880 +    fi
3881 +  done
3882 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
3883 +BEGIN {RS=" "; FS="/|\n";} {
3884 +  lt_foo="";
3885 +  lt_count=0;
3886 +  for (lt_i = NF; lt_i > 0; lt_i--) {
3887 +    if ($lt_i != "" && $lt_i != ".") {
3888 +      if ($lt_i == "..") {
3889 +        lt_count++;
3890 +      } else {
3891 +        if (lt_count == 0) {
3892 +          lt_foo="/" $lt_i lt_foo;
3893 +        } else {
3894 +          lt_count--;
3895 +        }
3896 +      }
3897 +    }
3898 +  }
3899 +  if (lt_foo != "") { lt_freq[lt_foo]++; }
3900 +  if (lt_freq[lt_foo] == 1) { print lt_foo; }
3901 +}'`
3902 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
3903  else
3904    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3905  fi
3906 @@ -8578,7 +8871,7 @@
3907    soname_spec='${libname}${release}${shared_ext}$major'
3908    ;;
3909  
3910 -aix4* | aix5*)
3911 +aix[4-9]*)
3912    version_type=linux
3913    need_lib_prefix=no
3914    need_version=no
3915 @@ -8625,7 +8918,7 @@
3916  amigaos*)
3917    library_names_spec='$libname.ixlibrary $libname.a'
3918    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3919 -  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'
3920 +  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'
3921    ;;
3922  
3923  beos*)
3924 @@ -8634,7 +8927,7 @@
3925    shlibpath_var=LIBRARY_PATH
3926    ;;
3927  
3928 -bsdi4*)
3929 +bsdi[45]*)
3930    version_type=linux
3931    need_version=no
3932    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3933 @@ -8650,7 +8943,7 @@
3934  
3935  cygwin* | mingw* | pw32*)
3936    version_type=windows
3937 -  shrext=".dll"
3938 +  shrext_cmds=".dll"
3939    need_version=no
3940    need_lib_prefix=no
3941  
3942 @@ -8658,13 +8951,14 @@
3943    yes,cygwin* | yes,mingw* | yes,pw32*)
3944      library_names_spec='$libname.dll.a'
3945      # DLL is installed to $(libdir)/../bin by postinstall_cmds
3946 -    postinstall_cmds='base_file=`basename \${file}`${_S_}
3947 -      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
3948 -      dldir=$destdir/`dirname \$dlpath`${_S_}
3949 -      test -d \$dldir || mkdir -p \$dldir${_S_}
3950 -      $install_prog $dir/$dlname \$dldir/$dlname'
3951 -    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
3952 -      dlpath=$dir/\$dldll${_S_}
3953 +    postinstall_cmds='base_file=`basename \${file}`~
3954 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
3955 +      dldir=$destdir/`dirname \$dlpath`~
3956 +      test -d \$dldir || mkdir -p \$dldir~
3957 +      $install_prog $dir/$dlname \$dldir/$dlname~
3958 +      chmod a+x \$dldir/$dlname'
3959 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3960 +      dlpath=$dir/\$dldll~
3961         $rm \$dlpath'
3962      shlibpath_overrides_runpath=yes
3963  
3964 @@ -8672,7 +8966,7 @@
3965      cygwin*)
3966        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3967        soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3968 -      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
3969 +      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3970        ;;
3971      mingw*)
3972        # MinGW DLLs use traditional 'lib' prefix
3973 @@ -8692,7 +8986,7 @@
3974        ;;
3975      pw32*)
3976        # pw32 DLLs use 'pw' prefix rather than 'lib'
3977 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
3978 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3979        ;;
3980      esac
3981      ;;
3982 @@ -8711,18 +9005,13 @@
3983    version_type=darwin
3984    need_lib_prefix=no
3985    need_version=no
3986 -  # FIXME: Relying on posixy $() will cause problems for
3987 -  #        cross-compilation, but unfortunately the echo tests do not
3988 -  #        yet detect zsh echo's removal of \ escapes.
3989 -  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
3990 +  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3991    soname_spec='${libname}${release}${major}$shared_ext'
3992    shlibpath_overrides_runpath=yes
3993    shlibpath_var=DYLD_LIBRARY_PATH
3994 -  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
3995 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
3996 -  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
3997 -  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"`
3998 -  fi
3999 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4000 +
4001 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
4002    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4003    ;;
4004  
4005 @@ -8739,8 +9028,17 @@
4006    dynamic_linker=no
4007    ;;
4008  
4009 -freebsd*)
4010 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4011 +freebsd* | dragonfly*)
4012 +  # DragonFly does not have aout.  When/if they implement a new
4013 +  # versioning mechanism, adjust this.
4014 +  if test -x /usr/bin/objformat; then
4015 +    objformat=`/usr/bin/objformat`
4016 +  else
4017 +    case $host_os in
4018 +    freebsd[123]*) objformat=aout ;;
4019 +    *) objformat=elf ;;
4020 +    esac
4021 +  fi
4022    version_type=freebsd-$objformat
4023    case $version_type in
4024      freebsd-elf*)
4025 @@ -8758,14 +9056,19 @@
4026    freebsd2*)
4027      shlibpath_overrides_runpath=yes
4028      ;;
4029 -  freebsd3.01* | freebsdelf3.01*)
4030 +  freebsd3.[01]* | freebsdelf3.[01]*)
4031      shlibpath_overrides_runpath=yes
4032      hardcode_into_libs=yes
4033      ;;
4034 -  *) # from 3.2 on
4035 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
4036 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
4037      shlibpath_overrides_runpath=no
4038      hardcode_into_libs=yes
4039      ;;
4040 +  *) # from 4.6 on, and DragonFly
4041 +    shlibpath_overrides_runpath=yes
4042 +    hardcode_into_libs=yes
4043 +    ;;
4044    esac
4045    ;;
4046  
4047 @@ -8785,9 +9088,9 @@
4048    version_type=sunos
4049    need_lib_prefix=no
4050    need_version=no
4051 -  case "$host_cpu" in
4052 +  case $host_cpu in
4053    ia64*)
4054 -    shrext='.so'
4055 +    shrext_cmds='.so'
4056      hardcode_into_libs=yes
4057      dynamic_linker="$host_os dld.so"
4058      shlibpath_var=LD_LIBRARY_PATH
4059 @@ -8802,7 +9105,7 @@
4060      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4061      ;;
4062     hppa*64*)
4063 -     shrext='.sl'
4064 +     shrext_cmds='.sl'
4065       hardcode_into_libs=yes
4066       dynamic_linker="$host_os dld.sl"
4067       shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4068 @@ -8813,7 +9116,7 @@
4069       sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4070       ;;
4071     *)
4072 -    shrext='.sl'
4073 +    shrext_cmds='.sl'
4074      dynamic_linker="$host_os dld.sl"
4075      shlibpath_var=SHLIB_PATH
4076      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4077 @@ -8825,6 +9128,18 @@
4078    postinstall_cmds='chmod 555 $lib'
4079    ;;
4080  
4081 +interix[3-9]*)
4082 +  version_type=linux
4083 +  need_lib_prefix=no
4084 +  need_version=no
4085 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4086 +  soname_spec='${libname}${release}${shared_ext}$major'
4087 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4088 +  shlibpath_var=LD_LIBRARY_PATH
4089 +  shlibpath_overrides_runpath=no
4090 +  hardcode_into_libs=yes
4091 +  ;;
4092 +
4093  irix5* | irix6* | nonstopux*)
4094    case $host_os in
4095      nonstopux*) version_type=nonstopux ;;
4096 @@ -8868,7 +9183,7 @@
4097    ;;
4098  
4099  # This must be Linux ELF.
4100 -linux*)
4101 +linux* | k*bsd*-gnu)
4102    version_type=linux
4103    need_lib_prefix=no
4104    need_version=no
4105 @@ -8882,6 +9197,12 @@
4106    # before this can be enabled.
4107    hardcode_into_libs=yes
4108  
4109 +  # Append ld.so.conf contents to the search path
4110 +  if test -f /etc/ld.so.conf; then
4111 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[     ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
4112 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4113 +  fi
4114 +
4115    # We used to test for /lib/ld.so.1 and disable shared libraries on
4116    # powerpc, because MkLinux only supported shared libraries with the
4117    # GNU dynamic linker.  Since this was broken with cross compilers,
4118 @@ -8891,6 +9212,18 @@
4119    dynamic_linker='GNU/Linux ld.so'
4120    ;;
4121  
4122 +netbsdelf*-gnu)
4123 +  version_type=linux
4124 +  need_lib_prefix=no
4125 +  need_version=no
4126 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4127 +  soname_spec='${libname}${release}${shared_ext}$major'
4128 +  shlibpath_var=LD_LIBRARY_PATH
4129 +  shlibpath_overrides_runpath=no
4130 +  hardcode_into_libs=yes
4131 +  dynamic_linker='NetBSD ld.elf_so'
4132 +  ;;
4133 +
4134  netbsd*)
4135    version_type=sunos
4136    need_lib_prefix=no
4137 @@ -8900,7 +9233,7 @@
4138      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4139      dynamic_linker='NetBSD (a.out) ld.so'
4140    else
4141 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4142 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4143      soname_spec='${libname}${release}${shared_ext}$major'
4144      dynamic_linker='NetBSD ld.elf_so'
4145    fi
4146 @@ -8916,7 +9249,7 @@
4147    shlibpath_overrides_runpath=yes
4148    ;;
4149  
4150 -nto-qnx)
4151 +nto-qnx*)
4152    version_type=linux
4153    need_lib_prefix=no
4154    need_version=no
4155 @@ -8928,8 +9261,13 @@
4156  
4157  openbsd*)
4158    version_type=sunos
4159 +  sys_lib_dlsearch_path_spec="/usr/lib"
4160    need_lib_prefix=no
4161 -  need_version=no
4162 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4163 +  case $host_os in
4164 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4165 +    *)                         need_version=no  ;;
4166 +  esac
4167    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4168    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4169    shlibpath_var=LD_LIBRARY_PATH
4170 @@ -8949,7 +9287,7 @@
4171  
4172  os2*)
4173    libname_spec='$name'
4174 -  shrext=".dll"
4175 +  shrext_cmds=".dll"
4176    need_lib_prefix=no
4177    library_names_spec='$libname${shared_ext} $libname.a'
4178    dynamic_linker='OS/2 ld.exe'
4179 @@ -8967,11 +9305,8 @@
4180    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4181    ;;
4182  
4183 -sco3.2v5*)
4184 -  version_type=osf
4185 -  soname_spec='${libname}${release}${shared_ext}$major'
4186 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4187 -  shlibpath_var=LD_LIBRARY_PATH
4188 +rdos*)
4189 +  dynamic_linker=no
4190    ;;
4191  
4192  solaris*)
4193 @@ -8999,7 +9334,7 @@
4194    need_version=yes
4195    ;;
4196  
4197 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4198 +sysv4 | sysv4.3*)
4199    version_type=linux
4200    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4201    soname_spec='${libname}${release}${shared_ext}$major'
4202 @@ -9032,6 +9367,29 @@
4203    fi
4204    ;;
4205  
4206 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4207 +  version_type=freebsd-elf
4208 +  need_lib_prefix=no
4209 +  need_version=no
4210 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4211 +  soname_spec='${libname}${release}${shared_ext}$major'
4212 +  shlibpath_var=LD_LIBRARY_PATH
4213 +  hardcode_into_libs=yes
4214 +  if test "$with_gnu_ld" = yes; then
4215 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4216 +    shlibpath_overrides_runpath=no
4217 +  else
4218 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4219 +    shlibpath_overrides_runpath=yes
4220 +    case $host_os in
4221 +      sco3.2v5*)
4222 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4223 +       ;;
4224 +    esac
4225 +  fi
4226 +  sys_lib_dlsearch_path_spec='/usr/lib'
4227 +  ;;
4228 +
4229  uts4*)
4230    version_type=linux
4231    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4232 @@ -9047,6 +9405,93 @@
4233  echo "${ECHO_T}$dynamic_linker" >&6; }
4234  test "$dynamic_linker" = no && can_build_shared=no
4235  
4236 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
4237 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4238 +else
4239 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
4240 +fi
4241 +
4242 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4243 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
4244 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4245 +else
4246 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
4247 +fi
4248 +
4249 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
4250</