e110616d5aba4ab7f9c078c84bdf33362562db20
[manu/libnss-mysql-bg.git] / debian / patches / 01_libtool.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 01_libtool.dpatch by  <elacour@home-dn.net>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Libtool update
6
7 @DPATCH@
8 --- ./aclocal.m4
9 +++ ./aclocal.m4
10 @@ -1,7 +1,7 @@
11 -# generated automatically by aclocal 1.9.2 -*- Autoconf -*-
12 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
13  
14 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
15 -# Free Software Foundation, Inc.
16 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
17 +# 2005  Free Software Foundation, Inc.
18  # This file is free software; the Free Software Foundation
19  # gives unlimited permission to copy and/or distribute it,
20  # with or without modifications, as long as this notice is preserved.
21 @@ -13,7 +13,7 @@
22  
23  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
24  
25 -# serial 47 AC_PROG_LIBTOOL
26 +# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
27  
28  
29  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
30 @@ -101,7 +101,6 @@ AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
31  AC_REQUIRE([AC_OBJEXT])dnl
32  AC_REQUIRE([AC_EXEEXT])dnl
33  dnl
34 -
35  AC_LIBTOOL_SYS_MAX_CMD_LEN
36  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
37  AC_LIBTOOL_OBJDIR
38 @@ -123,7 +122,7 @@ esac
39  
40  # Sed substitution that helps us do robust quoting.  It backslashifies
41  # metacharacters that are still active within double-quoted strings.
42 -Xsed='sed -e s/^X//'
43 +Xsed='sed -e 1s/^X//'
44  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
45  
46  # Same as above, but do not quote variable references.
47 @@ -143,7 +142,7 @@ rm="rm -f"
48  default_ofile=libtool
49  can_build_shared=yes
50  
51 -# All known linkers require a `.a' archive for static linking (except M$VC,
52 +# All known linkers require a `.a' archive for static linking (except MSVC,
53  # which needs '.lib').
54  libext=a
55  ltmain="$ac_aux_dir/ltmain.sh"
56 @@ -163,6 +162,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
57  test -z "$AS" && AS=as
58  test -z "$CC" && CC=cc
59  test -z "$LTCC" && LTCC=$CC
60 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
61  test -z "$DLLTOOL" && DLLTOOL=dlltool
62  test -z "$LD" && LD=ld
63  test -z "$LN_S" && LN_S="ln -s"
64 @@ -175,22 +175,24 @@ test -z "$STRIP" && STRIP=:
65  test -z "$ac_objext" && ac_objext=o
66  
67  # Determine commands to create old-style static archives.
68 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
69 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
70  old_postinstall_cmds='chmod 644 $oldlib'
71  old_postuninstall_cmds=
72  
73  if test -n "$RANLIB"; then
74    case $host_os in
75    openbsd*)
76 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
77 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
78      ;;
79    *)
80 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
81 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
82      ;;
83    esac
84    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
85  fi
86  
87 +_LT_CC_BASENAME([$compiler])
88 +
89  # Only perform the check for file, if the check method requires it
90  case $deplibs_check_method in
91  file_magic*)
92 @@ -200,6 +202,8 @@ file_magic*)
93    ;;
94  esac
95  
96 +_LT_REQUIRED_DARWIN_CHECKS
97 +
98  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
99  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
100  enable_win32_dll=yes, enable_win32_dll=no)
101 @@ -231,11 +235,129 @@ AC_DEFUN([_LT_AC_SYS_COMPILER],
102  # If no C compiler was specified, use CC.
103  LTCC=${LTCC-"$CC"}
104  
105 +# If no C compiler flags were specified, use CFLAGS.
106 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
107 +
108  # Allow CC to be a program name with arguments.
109  compiler=$CC
110  ])# _LT_AC_SYS_COMPILER
111  
112  
113 +# _LT_CC_BASENAME(CC)
114 +# -------------------
115 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
116 +AC_DEFUN([_LT_CC_BASENAME],
117 +[for cc_temp in $1""; do
118 +  case $cc_temp in
119 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 +    \-*) ;;
122 +    *) break;;
123 +  esac
124 +done
125 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
126 +])
127 +
128 +
129 +# _LT_COMPILER_BOILERPLATE
130 +# ------------------------
131 +# Check for compiler boilerplate output or warnings with
132 +# the simple compiler test code.
133 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
134 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
135 +ac_outfile=conftest.$ac_objext
136 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
137 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
138 +_lt_compiler_boilerplate=`cat conftest.err`
139 +$rm conftest*
140 +])# _LT_COMPILER_BOILERPLATE
141 +
142 +
143 +# _LT_LINKER_BOILERPLATE
144 +# ----------------------
145 +# Check for linker boilerplate output or warnings with
146 +# the simple link test code.
147 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
148 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
149 +ac_outfile=conftest.$ac_objext
150 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
151 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
152 +_lt_linker_boilerplate=`cat conftest.err`
153 +$rm -r conftest*
154 +])# _LT_LINKER_BOILERPLATE
155 +
156 +# _LT_REQUIRED_DARWIN_CHECKS
157 +# --------------------------
158 +# Check for some things on darwin
159 +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
160 +  case $host_os in
161 +    rhapsody* | darwin*)
162 +    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
163 +    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
164 +
165 +    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
166 +      [lt_cv_apple_cc_single_mod=no
167 +      if test -z "${LT_MULTI_MODULE}"; then
168 +   # By default we will add the -single_module flag. You can override
169 +   # by either setting the environment variable LT_MULTI_MODULE
170 +   # non-empty at configure time, or by adding -multi_module to the
171 +   # link flags.
172 +   echo "int foo(void){return 1;}" > conftest.c
173 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
174 +     -dynamiclib ${wl}-single_module conftest.c
175 +   if test -f libconftest.dylib; then
176 +     lt_cv_apple_cc_single_mod=yes
177 +     rm -rf libconftest.dylib*
178 +   fi
179 +   rm conftest.c
180 +      fi])
181 +    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
182 +      [lt_cv_ld_exported_symbols_list],
183 +      [lt_cv_ld_exported_symbols_list=no
184 +      save_LDFLAGS=$LDFLAGS
185 +      echo "_main" > conftest.sym
186 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
187 +      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
188 +   [lt_cv_ld_exported_symbols_list=yes],
189 +   [lt_cv_ld_exported_symbols_list=no])
190 +   LDFLAGS="$save_LDFLAGS"
191 +    ])
192 +    case $host_os in
193 +    rhapsody* | darwin1.[[0123]])
194 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
195 +    darwin1.*)
196 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
197 +    darwin*)
198 +      # if running on 10.5 or later, the deployment target defaults
199 +      # to the OS version, if on x86, and 10.4, the deployment
200 +      # target defaults to 10.4. Don't you love it?
201 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
202 +   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
203 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
204 +   10.[[012]]*)
205 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
206 +   10.*)
207 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
208 +      esac
209 +    ;;
210 +  esac
211 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
212 +      _lt_dar_single_mod='$single_module'
213 +    fi
214 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
215 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
216 +    else
217 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
218 +    fi
219 +    if test "$DSYMUTIL" != ":"; then
220 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
221 +    else
222 +      _lt_dsymutil=
223 +    fi
224 +    ;;
225 +  esac
226 +])
227 +
228  # _LT_AC_SYS_LIBPATH_AIX
229  # ----------------------
230  # Links a minimal program and checks the executable
231 @@ -245,12 +367,20 @@ compiler=$CC
232  # If we don't find anything, use the default library path according
233  # to the aix ld manual.
234  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
235 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
236 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
237 -}'`
238 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
239 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
240 +lt_aix_libpath_sed='
241 +    /Import File Strings/,/^$/ {
242 +       /^0/ {
243 +           s/^0  *\(.*\)$/\1/
244 +           p
245 +       }
246 +    }'
247 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
248  # Check for a 64-bit object if we didn't find anything.
249 -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; }
250 -}'`; fi],[])
251 +if test -z "$aix_libpath"; then
252 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
253 +fi],[])
254  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
255  ])# _LT_AC_SYS_LIBPATH_AIX
256  
257 @@ -308,15 +438,15 @@ fi
258  
259  # The HP-UX ksh and POSIX shell print the target directory to stdout
260  # if CDPATH is set.
261 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
262 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
263  
264  if test -z "$ECHO"; then
265  if test "X${echo_test_string+set}" != Xset; then
266  # find a string as large as possible, as long as the shell can cope with it
267    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
268      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
269 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
270 -       echo_test_string="`eval $cmd`" &&
271 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
272 +       echo_test_string=`eval $cmd` &&
273         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
274      then
275        break
276 @@ -481,13 +611,17 @@ ia64-*-hpux*)
277    rm -rf conftest*
278    ;;
279  
280 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
281 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
282 +s390*-*linux*|sparc*-*linux*)
283    # Find out which ABI we are using.
284    echo 'int i;' > conftest.$ac_ext
285    if AC_TRY_EVAL(ac_compile); then
286 -    case "`/usr/bin/file conftest.o`" in
287 +    case `/usr/bin/file conftest.o` in
288      *32-bit*)
289        case $host in
290 +        x86_64-*kfreebsd*-gnu)
291 +          LD="${LD-ld} -m elf_i386_fbsd"
292 +          ;;
293          x86_64-*linux*)
294            LD="${LD-ld} -m elf_i386"
295            ;;
296 @@ -504,6 +638,9 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
297        ;;
298      *64-bit*)
299        case $host in
300 +        x86_64-*kfreebsd*-gnu)
301 +          LD="${LD-ld} -m elf_x86_64_fbsd"
302 +          ;;
303          x86_64-*linux*)
304            LD="${LD-ld} -m elf_x86_64"
305            ;;
306 @@ -536,6 +673,26 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
307      CFLAGS="$SAVE_CFLAGS"
308    fi
309    ;;
310 +sparc*-*solaris*)
311 +  # Find out which ABI we are using.
312 +  echo 'int i;' > conftest.$ac_ext
313 +  if AC_TRY_EVAL(ac_compile); then
314 +    case `/usr/bin/file conftest.o` in
315 +    *64-bit*)
316 +      case $lt_cv_prog_gnu_ld in
317 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
318 +      *)
319 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
320 +         LD="${LD-ld} -64"
321 +       fi
322 +       ;;
323 +      esac
324 +      ;;
325 +    esac
326 +  fi
327 +  rm -rf conftest*
328 +  ;;
329 +
330  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
331  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
332    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
333 @@ -559,7 +716,7 @@ AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
334  AC_CACHE_CHECK([$1], [$2],
335    [$2=no
336    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
337 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
338 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
339     lt_compiler_flag="$3"
340     # Insert the option either (1) after the last *FLAGS variable, or
341     # (2) before a word containing "conftest.", or (3) at the end.
342 @@ -567,7 +724,7 @@ AC_CACHE_CHECK([$1], [$2],
343     # with a dollar sign (not a hyphen), so the echo should work correctly.
344     # The option is referenced via a variable to avoid confusing sed.
345     lt_compile=`echo "$ac_compile" | $SED \
346 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
347 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
348     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
349     -e 's:$: $lt_compiler_flag:'`
350     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
351 @@ -577,8 +734,10 @@ AC_CACHE_CHECK([$1], [$2],
352     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
353     if (exit $ac_status) && test -s "$ac_outfile"; then
354       # The compiler can only warn and ignore the option if not recognized
355 -     # So say no if there are warnings
356 -     if test ! -s conftest.err; then
357 +     # So say no if there are warnings other than the usual output.
358 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
359 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
360 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
361         $2=yes
362       fi
363     fi
364 @@ -598,22 +757,28 @@ fi
365  # ------------------------------------------------------------
366  # Check whether the given compiler option works
367  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
368 -[AC_CACHE_CHECK([$1], [$2],
369 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
370 +AC_CACHE_CHECK([$1], [$2],
371    [$2=no
372     save_LDFLAGS="$LDFLAGS"
373     LDFLAGS="$LDFLAGS $3"
374 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
375 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
376     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
377 -     # The compiler can only warn and ignore the option if not recognized
378 +     # The linker can only warn and ignore the option if not recognized
379       # So say no if there are warnings
380       if test -s conftest.err; then
381         # Append any errors to the config.log.
382         cat conftest.err 1>&AS_MESSAGE_LOG_FD
383 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
384 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
385 +       if diff conftest.exp conftest.er2 >/dev/null; then
386 +         $2=yes
387 +       fi
388       else
389         $2=yes
390       fi
391     fi
392 -   $rm conftest*
393 +   $rm -r conftest*
394     LDFLAGS="$save_LDFLAGS"
395  ])
396  
397 @@ -667,24 +832,71 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
398      lt_cv_sys_max_cmd_len=8192;
399      ;;
400  
401 - *)
402 -    # If test is not a shell built-in, we'll probably end up computing a
403 -    # maximum length that is only half of the actual maximum length, but
404 -    # we can't tell.
405 -    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
406 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
407 +    # This has been around since 386BSD, at least.  Likely further.
408 +    if test -x /sbin/sysctl; then
409 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
410 +    elif test -x /usr/sbin/sysctl; then
411 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
412 +    else
413 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
414 +    fi
415 +    # And add a safety zone
416 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
417 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
418 +    ;;
419 +
420 +  interix*)
421 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
422 +    lt_cv_sys_max_cmd_len=196608
423 +    ;;
424 +
425 +  osf*)
426 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
427 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
428 +    # nice to cause kernel panics so lets avoid the loop below.
429 +    # First set a reasonable default.
430 +    lt_cv_sys_max_cmd_len=16384
431 +    #
432 +    if test -x /sbin/sysconfig; then
433 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
434 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
435 +      esac
436 +    fi
437 +    ;;
438 +  sco3.2v5*)
439 +    lt_cv_sys_max_cmd_len=102400
440 +    ;;
441 +  sysv5* | sco5v6* | sysv4.2uw2*)
442 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
443 +    if test -n "$kargmax"; then
444 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[       ]]//'`
445 +    else
446 +      lt_cv_sys_max_cmd_len=32768
447 +    fi
448 +    ;;
449 +  *)
450 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
451 +    if test -n "$lt_cv_sys_max_cmd_len"; then
452 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
453 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
454 +    else
455 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
456 +      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
457                = "XX$teststring") >/dev/null 2>&1 &&
458 -           new_result=`expr "X$teststring" : ".*" 2>&1` &&
459 -           lt_cv_sys_max_cmd_len=$new_result &&
460 -           test $i != 17 # 1/2 MB should be enough
461 -    do
462 -      i=`expr $i + 1`
463 -      teststring=$teststring$teststring
464 -    done
465 -    teststring=
466 -    # Add a significant safety factor because C++ compilers can tack on massive
467 -    # amounts of additional arguments before passing them to the linker.
468 -    # It appears as though 1/2 is a usable value.
469 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
470 +             new_result=`expr "X$teststring" : ".*" 2>&1` &&
471 +             lt_cv_sys_max_cmd_len=$new_result &&
472 +             test $i != 17 # 1/2 MB should be enough
473 +      do
474 +        i=`expr $i + 1`
475 +        teststring=$teststring$teststring
476 +      done
477 +      teststring=
478 +      # Add a significant safety factor because C++ compilers can tack on massive
479 +      # amounts of additional arguments before passing them to the linker.
480 +      # It appears as though 1/2 is a usable value.
481 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
482 +    fi
483      ;;
484    esac
485  ])
486 @@ -697,7 +909,7 @@ fi
487  
488  
489  # _LT_AC_CHECK_DLFCN
490 -# --------------------
491 +# ------------------
492  AC_DEFUN([_LT_AC_CHECK_DLFCN],
493  [AC_CHECK_HEADERS(dlfcn.h)dnl
494  ])# _LT_AC_CHECK_DLFCN
495 @@ -705,7 +917,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN],
496  
497  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
498  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
499 -# ------------------------------------------------------------------
500 +# ---------------------------------------------------------------------
501  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
502  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
503  if test "$cross_compiling" = yes; then :
504 @@ -771,17 +983,19 @@ int main ()
505        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
506        /* dlclose (self); */
507      }
508 +  else
509 +    puts (dlerror ());
510  
511      exit (status);
512  }]
513  EOF
514    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
515 -    (./conftest; exit; ) 2>/dev/null
516 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
517      lt_status=$?
518      case x$lt_status in
519        x$lt_dlno_uscore) $1 ;;
520        x$lt_dlneed_uscore) $2 ;;
521 -      x$lt_unknown|x*) $3 ;;
522 +      x$lt_dlunknown|x*) $3 ;;
523      esac
524    else :
525      # compilation failed
526 @@ -793,7 +1007,7 @@ rm -fr conftest*
527  
528  
529  # AC_LIBTOOL_DLOPEN_SELF
530 -# -------------------
531 +# ----------------------
532  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
533  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
534  if test "x$enable_dlopen" != xyes; then
535 @@ -835,7 +1049,7 @@ else
536      AC_CHECK_FUNC([shl_load],
537           [lt_cv_dlopen="shl_load"],
538        [AC_CHECK_LIB([dld], [shl_load],
539 -           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
540 +           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
541         [AC_CHECK_FUNC([dlopen],
542               [lt_cv_dlopen="dlopen"],
543           [AC_CHECK_LIB([dl], [dlopen],
544 @@ -843,7 +1057,7 @@ else
545             [AC_CHECK_LIB([svld], [dlopen],
546                   [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
547               [AC_CHECK_LIB([dld], [dld_link],
548 -                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
549 +                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
550               ])
551             ])
552           ])
553 @@ -864,7 +1078,7 @@ else
554      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
555  
556      save_LDFLAGS="$LDFLAGS"
557 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
558 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
559  
560      save_LIBS="$LIBS"
561      LIBS="$lt_cv_dlopen_libs $LIBS"
562 @@ -877,7 +1091,7 @@ else
563      ])
564  
565      if test "x$lt_cv_dlopen_self" = xyes; then
566 -      LDFLAGS="$LDFLAGS $link_static_flag"
567 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
568        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
569           lt_cv_dlopen_self_static, [dnl
570           _LT_AC_TRY_DLOPEN_SELF(
571 @@ -909,7 +1123,8 @@ fi
572  # ---------------------------------
573  # Check to see if options -c and -o are simultaneously supported by compiler
574  AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
575 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
576 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
577 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
578  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
579    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
580    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
581 @@ -917,7 +1132,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
582     mkdir conftest
583     cd conftest
584     mkdir out
585 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
586 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
587  
588     lt_compiler_flag="-o out/conftest2.$ac_objext"
589     # Insert the option either (1) after the last *FLAGS variable, or
590 @@ -925,7 +1140,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
591     # Note that $ac_compile itself does not contain backslashes and begins
592     # with a dollar sign (not a hyphen), so the echo should work correctly.
593     lt_compile=`echo "$ac_compile" | $SED \
594 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
595 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
596     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
597     -e 's:$: $lt_compiler_flag:'`
598     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
599 @@ -937,11 +1152,13 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
600     then
601       # The compiler can only warn and ignore the option if not recognized
602       # So say no if there are warnings
603 -     if test ! -s out/conftest.err; then
604 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
605 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
606 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
607         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
608       fi
609     fi
610 -   chmod u+w .
611 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
612     $rm conftest*
613     # SGI C++ compiler will create directory out/ii_files/ for
614     # template instantiation
615 @@ -1005,8 +1222,8 @@ AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
616  [AC_MSG_CHECKING([how to hardcode library paths into programs])
617  _LT_AC_TAGVAR(hardcode_action, $1)=
618  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
619 -   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
620 -   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
621 +   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
622 +   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
623  
624    # We can hardcode non-existant directories.
625    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
626 @@ -1055,6 +1272,7 @@ else
627     darwin*)
628         if test -n "$STRIP" ; then
629           striplib="$STRIP -x"
630 +         old_striplib="$STRIP -S"
631           AC_MSG_RESULT([yes])
632         else
633    AC_MSG_RESULT([no])
634 @@ -1072,7 +1290,8 @@ fi
635  # -----------------------------
636  # PORTME Fill in your ld.so characteristics
637  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
638 -[AC_MSG_CHECKING([dynamic linker characteristics])
639 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
640 +AC_MSG_CHECKING([dynamic linker characteristics])
641  library_names_spec=
642  libname_spec='lib$name'
643  soname_spec=
644 @@ -1086,20 +1305,58 @@ shlibpath_overrides_runpath=unknown
645  version_type=none
646  dynamic_linker="$host_os ld.so"
647  sys_lib_dlsearch_path_spec="/lib /usr/lib"
648 +m4_if($1,[],[
649  if test "$GCC" = yes; then
650 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
651 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
652 +  case $host_os in
653 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
654 +    *) lt_awk_arg="/^libraries:/" ;;
655 +  esac
656 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
657 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
658      # if the path contains ";" then we assume it to be the separator
659      # otherwise default to the standard path separator (i.e. ":") - it is
660      # assumed that no part of a normal pathname contains ";" but that should
661      # okay in the real world where ";" in dirpaths is itself problematic.
662 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
663 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
664    else
665 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
666 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
667    fi
668 +  # Ok, now we have the path, separated by spaces, we can step through it
669 +  # and add multilib dir if necessary.
670 +  lt_tmp_lt_search_path_spec=
671 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
672 +  for lt_sys_path in $lt_search_path_spec; do
673 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
674 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
675 +    else
676 +      test -d "$lt_sys_path" && \
677 +       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
678 +    fi
679 +  done
680 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
681 +BEGIN {RS=" "; FS="/|\n";} {
682 +  lt_foo="";
683 +  lt_count=0;
684 +  for (lt_i = NF; lt_i > 0; lt_i--) {
685 +    if ($lt_i != "" && $lt_i != ".") {
686 +      if ($lt_i == "..") {
687 +        lt_count++;
688 +      } else {
689 +        if (lt_count == 0) {
690 +          lt_foo="/" $lt_i lt_foo;
691 +        } else {
692 +          lt_count--;
693 +        }
694 +      }
695 +    }
696 +  }
697 +  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
698 +  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
699 +}'`
700 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
701  else
702    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
703 -fi
704 +fi])
705  need_lib_prefix=unknown
706  hardcode_into_libs=no
707  
708 @@ -1117,7 +1374,7 @@ aix3*)
709    soname_spec='${libname}${release}${shared_ext}$major'
710    ;;
711  
712 -aix4* | aix5*)
713 +aix[[4-9]]*)
714    version_type=linux
715    need_lib_prefix=no
716    need_version=no
717 @@ -1173,7 +1430,7 @@ beos*)
718    shlibpath_var=LIBRARY_PATH
719    ;;
720  
721 -bsdi4*)
722 +bsdi[[45]]*)
723    version_type=linux
724    need_version=no
725    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
726 @@ -1201,7 +1458,8 @@ cygwin* | mingw* | pw32*)
727        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
728        dldir=$destdir/`dirname \$dlpath`~
729        test -d \$dldir || mkdir -p \$dldir~
730 -      $install_prog $dir/$dlname \$dldir/$dlname'
731 +      $install_prog $dir/$dlname \$dldir/$dlname~
732 +      chmod a+x \$dldir/$dlname'
733      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
734        dlpath=$dir/\$dldll~
735         $rm \$dlpath'
736 @@ -1231,7 +1489,7 @@ cygwin* | mingw* | pw32*)
737        ;;
738      pw32*)
739        # pw32 DLLs use 'pw' prefix rather than 'lib'
740 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
741 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
742        ;;
743      esac
744      ;;
745 @@ -1254,13 +1512,9 @@ darwin* | rhapsody*)
746    soname_spec='${libname}${release}${major}$shared_ext'
747    shlibpath_overrides_runpath=yes
748    shlibpath_var=DYLD_LIBRARY_PATH
749 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
750 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
751 -  if test "$GCC" = yes; then
752 -    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"`
753 -  else
754 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
755 -  fi
756 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
757 +  m4_if([$1], [],[
758 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
759    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
760    ;;
761  
762 @@ -1277,20 +1531,17 @@ freebsd1*)
763    dynamic_linker=no
764    ;;
765  
766 -kfreebsd*-gnu)
767 -  version_type=linux
768 -  need_lib_prefix=no
769 -  need_version=no
770 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
771 -  soname_spec='${libname}${release}${shared_ext}$major'
772 -  shlibpath_var=LD_LIBRARY_PATH
773 -  shlibpath_overrides_runpath=no
774 -  hardcode_into_libs=yes
775 -  dynamic_linker='GNU ld.so'
776 -  ;;
777 -
778 -freebsd*)
779 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
780 +freebsd* | dragonfly*)
781 +  # DragonFly does not have aout.  When/if they implement a new
782 +  # versioning mechanism, adjust this.
783 +  if test -x /usr/bin/objformat; then
784 +    objformat=`/usr/bin/objformat`
785 +  else
786 +    case $host_os in
787 +    freebsd[[123]]*) objformat=aout ;;
788 +    *) objformat=elf ;;
789 +    esac
790 +  fi
791    version_type=freebsd-$objformat
792    case $version_type in
793      freebsd-elf*)
794 @@ -1308,14 +1559,19 @@ freebsd*)
795    freebsd2*)
796      shlibpath_overrides_runpath=yes
797      ;;
798 -  freebsd3.[01]* | freebsdelf3.[01]*)
799 +  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
800      shlibpath_overrides_runpath=yes
801      hardcode_into_libs=yes
802      ;;
803 -  *) # from 3.2 on
804 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
805 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
806      shlibpath_overrides_runpath=no
807      hardcode_into_libs=yes
808      ;;
809 +  *) # from 4.6 on, and DragonFly
810 +    shlibpath_overrides_runpath=yes
811 +    hardcode_into_libs=yes
812 +    ;;
813    esac
814    ;;
815  
816 @@ -1335,7 +1591,7 @@ hpux9* | hpux10* | hpux11*)
817    version_type=sunos
818    need_lib_prefix=no
819    need_version=no
820 -  case "$host_cpu" in
821 +  case $host_cpu in
822    ia64*)
823      shrext_cmds='.so'
824      hardcode_into_libs=yes
825 @@ -1375,6 +1631,18 @@ hpux9* | hpux10* | hpux11*)
826    postinstall_cmds='chmod 555 $lib'
827    ;;
828  
829 +interix[[3-9]]*)
830 +  version_type=linux
831 +  need_lib_prefix=no
832 +  need_version=no
833 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
834 +  soname_spec='${libname}${release}${shared_ext}$major'
835 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
836 +  shlibpath_var=LD_LIBRARY_PATH
837 +  shlibpath_overrides_runpath=no
838 +  hardcode_into_libs=yes
839 +  ;;
840 +
841  irix5* | irix6* | nonstopux*)
842    case $host_os in
843      nonstopux*) version_type=nonstopux ;;
844 @@ -1418,7 +1686,7 @@ linux*oldld* | linux*aout* | linux*coff*)
845    ;;
846  
847  # This must be Linux ELF.
848 -linux*)
849 +linux* | k*bsd*-gnu)
850    version_type=linux
851    need_lib_prefix=no
852    need_version=no
853 @@ -1432,27 +1700,10 @@ linux*)
854    # before this can be enabled.
855    hardcode_into_libs=yes
856  
857 -  # find out which ABI we are using
858 -  libsuff=
859 -  case "$host_cpu" in
860 -  x86_64*|s390x*|powerpc64*)
861 -    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
862 -    if AC_TRY_EVAL(ac_compile); then
863 -      case `/usr/bin/file conftest.$ac_objext` in
864 -      *64-bit*)
865 -        libsuff=64
866 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
867 -        ;;
868 -      esac
869 -    fi
870 -    rm -rf conftest*
871 -    ;;
872 -  esac
873 -
874    # Append ld.so.conf contents to the search path
875    if test -f /etc/ld.so.conf; then
876 -    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
877 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
878 +    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' ' '`
879 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
880    fi
881  
882    # We used to test for /lib/ld.so.1 and disable shared libraries on
883 @@ -1464,7 +1715,7 @@ linux*)
884    dynamic_linker='GNU/Linux ld.so'
885    ;;
886  
887 -knetbsd*-gnu)
888 +netbsdelf*-gnu)
889    version_type=linux
890    need_lib_prefix=no
891    need_version=no
892 @@ -1473,7 +1724,7 @@ knetbsd*-gnu)
893    shlibpath_var=LD_LIBRARY_PATH
894    shlibpath_overrides_runpath=no
895    hardcode_into_libs=yes
896 -  dynamic_linker='GNU ld.so'
897 +  dynamic_linker='NetBSD ld.elf_so'
898    ;;
899  
900  netbsd*)
901 @@ -1513,8 +1764,13 @@ nto-qnx*)
902  
903  openbsd*)
904    version_type=sunos
905 +  sys_lib_dlsearch_path_spec="/usr/lib"
906    need_lib_prefix=no
907 -  need_version=yes
908 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
909 +  case $host_os in
910 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
911 +    *)                         need_version=no  ;;
912 +  esac
913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
914    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
915    shlibpath_var=LD_LIBRARY_PATH
916 @@ -1552,11 +1808,8 @@ osf3* | osf4* | osf5*)
917    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
918    ;;
919  
920 -sco3.2v5*)
921 -  version_type=osf
922 -  soname_spec='${libname}${release}${shared_ext}$major'
923 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
924 -  shlibpath_var=LD_LIBRARY_PATH
925 +rdos*)
926 +  dynamic_linker=no
927    ;;
928  
929  solaris*)
930 @@ -1584,7 +1837,7 @@ sunos4*)
931    need_version=yes
932    ;;
933  
934 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
935 +sysv4 | sysv4.3*)
936    version_type=linux
937    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
938    soname_spec='${libname}${release}${shared_ext}$major'
939 @@ -1617,6 +1870,29 @@ sysv4*MP*)
940    fi
941    ;;
942  
943 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
944 +  version_type=freebsd-elf
945 +  need_lib_prefix=no
946 +  need_version=no
947 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
948 +  soname_spec='${libname}${release}${shared_ext}$major'
949 +  shlibpath_var=LD_LIBRARY_PATH
950 +  hardcode_into_libs=yes
951 +  if test "$with_gnu_ld" = yes; then
952 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
953 +    shlibpath_overrides_runpath=no
954 +  else
955 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
956 +    shlibpath_overrides_runpath=yes
957 +    case $host_os in
958 +      sco3.2v5*)
959 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
960 +       ;;
961 +    esac
962 +  fi
963 +  sys_lib_dlsearch_path_spec='/usr/lib'
964 +  ;;
965 +
966  uts4*)
967    version_type=linux
968    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
969 @@ -1630,13 +1906,26 @@ uts4*)
970  esac
971  AC_MSG_RESULT([$dynamic_linker])
972  test "$dynamic_linker" = no && can_build_shared=no
973 +
974 +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
975 +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
976 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
977 +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
978 +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
979 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
980 +
981 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
982 +if test "$GCC" = yes; then
983 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
984 +fi
985  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
986  
987  
988  # _LT_AC_TAGCONFIG
989  # ----------------
990  AC_DEFUN([_LT_AC_TAGCONFIG],
991 -[AC_ARG_WITH([tags],
992 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
993 +AC_ARG_WITH([tags],
994      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
995          [include additional configurations @<:@automatic@:>@])],
996      [tagnames="$withval"])
997 @@ -1654,6 +1943,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
998        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
999      fi
1000    fi
1001 +  if test -z "$LTCFLAGS"; then
1002 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1003 +  fi
1004  
1005    # Extract list of available tagged configurations in $ofile.
1006    # Note that this assumes the entire list is on one line.
1007 @@ -1680,7 +1972,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1008  
1009        case $tagname in
1010        CXX)
1011 -       if test -n "$CXX" && test "X$CXX" != "Xno"; then
1012 +       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1013 +           ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1014 +           (test "X$CXX" != "Xg++"))) ; then
1015           AC_LIBTOOL_LANG_CXX_CONFIG
1016         else
1017           tagname=""
1018 @@ -1742,7 +2036,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN],
1019  
1020  # AC_LIBTOOL_WIN32_DLL
1021  # --------------------
1022 -# declare package support for building win32 dll's
1023 +# declare package support for building win32 DLLs
1024  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1025  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1026  ])# AC_LIBTOOL_WIN32_DLL
1027 @@ -1780,7 +2074,7 @@ AC_ARG_ENABLE([shared],
1028  
1029  # AC_DISABLE_SHARED
1030  # -----------------
1031 -#- set the default shared flag to --disable-shared
1032 +# set the default shared flag to --disable-shared
1033  AC_DEFUN([AC_DISABLE_SHARED],
1034  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1035  AC_ENABLE_SHARED(no)
1036 @@ -1892,7 +2186,7 @@ m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1037  
1038  # AC_PATH_TOOL_PREFIX
1039  # -------------------
1040 -# find a file program which can recognise shared library
1041 +# find a file program which can recognize shared library
1042  AC_DEFUN([AC_PATH_TOOL_PREFIX],
1043  [AC_REQUIRE([AC_PROG_EGREP])dnl
1044  AC_MSG_CHECKING([for $1])
1045 @@ -1916,7 +2210,7 @@ dnl not every word.  This closes a longstanding sh security hole.
1046        if test -n "$file_magic_test_file"; then
1047         case $deplibs_check_method in
1048         "file_magic "*)
1049 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1050 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1051           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1052           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1053             $EGREP "$file_magic_regex" > /dev/null; then
1054 @@ -1955,7 +2249,7 @@ fi
1055  
1056  # AC_PATH_MAGIC
1057  # -------------
1058 -# find a file program which can recognise a shared library
1059 +# find a file program which can recognize a shared library
1060  AC_DEFUN([AC_PATH_MAGIC],
1061  [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1062  if test -z "$lt_cv_path_MAGIC_CMD"; then
1063 @@ -2026,7 +2320,7 @@ AC_CACHE_VAL(lt_cv_path_LD,
1064      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1065        lt_cv_path_LD="$ac_dir/$ac_prog"
1066        # Check to see if the program is GNU ld.  I'd rather use --version,
1067 -      # but apparently some GNU ld's only accept -v.
1068 +      # but apparently some variants of GNU ld only accept -v.
1069        # Break only if it was the GNU/non-GNU ld that we prefer.
1070        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1071        *GNU* | *'with BFD'*)
1072 @@ -2058,7 +2352,7 @@ AC_PROG_LD_GNU
1073  AC_DEFUN([AC_PROG_LD_GNU],
1074  [AC_REQUIRE([AC_PROG_EGREP])dnl
1075  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1076 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1077 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
1078  case `$LD -v 2>&1 </dev/null` in
1079  *GNU* | *'with BFD'*)
1080    lt_cv_prog_gnu_ld=yes
1081 @@ -2085,6 +2379,15 @@ case $reload_flag in
1082  *) reload_flag=" $reload_flag" ;;
1083  esac
1084  reload_cmds='$LD$reload_flag -o $output$reload_objs'
1085 +case $host_os in
1086 +  darwin*)
1087 +    if test "$GCC" = yes; then
1088 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1089 +    else
1090 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
1091 +    fi
1092 +    ;;
1093 +esac
1094  ])# AC_PROG_LD_RELOAD_FLAG
1095  
1096  
1097 @@ -2093,7 +2396,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs'
1098  # how to check for library dependencies
1099  #  -- PORTME fill in with the dynamic library characteristics
1100  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
1101 -[AC_CACHE_CHECK([how to recognise dependent libraries],
1102 +[AC_CACHE_CHECK([how to recognize dependent libraries],
1103  lt_cv_deplibs_check_method,
1104  [lt_cv_file_magic_cmd='$MAGIC_CMD'
1105  lt_cv_file_magic_test_file=
1106 @@ -2110,7 +2413,7 @@ lt_cv_deplibs_check_method='unknown'
1107  # whether `pass_all' will *always* work, you probably want this one.
1108  
1109  case $host_os in
1110 -aix4* | aix5*)
1111 +aix[[4-9]]*)
1112    lt_cv_deplibs_check_method=pass_all
1113    ;;
1114  
1115 @@ -2118,7 +2421,7 @@ beos*)
1116    lt_cv_deplibs_check_method=pass_all
1117    ;;
1118  
1119 -bsdi4*)
1120 +bsdi[[45]]*)
1121    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1122    lt_cv_file_magic_cmd='/usr/bin/file -L'
1123    lt_cv_file_magic_test_file=/shlib/libc.so
1124 @@ -2132,22 +2435,28 @@ cygwin*)
1125  
1126  mingw* | pw32*)
1127    # Base MSYS/MinGW do not provide the 'file' command needed by
1128 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
1129 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1130 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
1131 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
1132 +  # unless we find 'file', for example because we are cross-compiling.
1133 +  if ( file / ) >/dev/null 2>&1; then
1134 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1135 +    lt_cv_file_magic_cmd='func_win32_libid'
1136 +  else
1137 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1138 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
1139 +  fi
1140    ;;
1141  
1142  darwin* | rhapsody*)
1143    lt_cv_deplibs_check_method=pass_all
1144    ;;
1145  
1146 -freebsd* | kfreebsd*-gnu)
1147 +freebsd* | dragonfly*)
1148    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1149      case $host_cpu in
1150      i*86 )
1151        # Not sure whether the presence of OpenBSD here was a mistake.
1152        # Let's accept both of them until this is cleared up.
1153 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
1154 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1155        lt_cv_file_magic_cmd=/usr/bin/file
1156        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1157        ;;
1158 @@ -2163,7 +2472,7 @@ gnu*)
1159  
1160  hpux10.20* | hpux11*)
1161    lt_cv_file_magic_cmd=/usr/bin/file
1162 -  case "$host_cpu" in
1163 +  case $host_cpu in
1164    ia64*)
1165      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
1166      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1167 @@ -2179,6 +2488,11 @@ hpux10.20* | hpux11*)
1168    esac
1169    ;;
1170  
1171 +interix[[3-9]]*)
1172 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1173 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
1174 +  ;;
1175 +
1176  irix5* | irix6* | nonstopux*)
1177    case $LD in
1178    *-32|*"-32 ") libmagic=32-bit;;
1179 @@ -2190,20 +2504,11 @@ irix5* | irix6* | nonstopux*)
1180    ;;
1181  
1182  # This must be Linux ELF.
1183 -linux*)
1184 -  case $host_cpu in
1185 -  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
1186 -    lt_cv_deplibs_check_method=pass_all ;;
1187 -  *)
1188 -    # glibc up to 2.1.1 does not perform some relocations on ARM
1189 -    # this will be overridden with pass_all, but let us keep it just in case
1190 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
1191 -  esac
1192 -  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1193 +linux* | k*bsd*-gnu)
1194    lt_cv_deplibs_check_method=pass_all
1195    ;;
1196  
1197 -netbsd*)
1198 +netbsd* | netbsdelf*-gnu)
1199    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1200      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1201    else
1202 @@ -2222,12 +2527,10 @@ nto-qnx*)
1203    ;;
1204  
1205  openbsd*)
1206 -  lt_cv_file_magic_cmd=/usr/bin/file
1207 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1208    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1209 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
1210 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
1211    else
1212 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1213 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1214    fi
1215    ;;
1216  
1217 @@ -2235,7 +2538,7 @@ osf3* | osf4* | osf5*)
1218    lt_cv_deplibs_check_method=pass_all
1219    ;;
1220  
1221 -sco3.2v5*)
1222 +rdos*)
1223    lt_cv_deplibs_check_method=pass_all
1224    ;;
1225  
1226 @@ -2243,7 +2546,7 @@ solaris*)
1227    lt_cv_deplibs_check_method=pass_all
1228    ;;
1229  
1230 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1231 +sysv4 | sysv4.3*)
1232    case $host_vendor in
1233    motorola)
1234      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]]'
1235 @@ -2264,10 +2567,13 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1236    siemens)
1237      lt_cv_deplibs_check_method=pass_all
1238      ;;
1239 +  pc)
1240 +    lt_cv_deplibs_check_method=pass_all
1241 +    ;;
1242    esac
1243    ;;
1244  
1245 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
1246 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1247    lt_cv_deplibs_check_method=pass_all
1248    ;;
1249  esac
1250 @@ -2287,36 +2593,43 @@ AC_DEFUN([AC_PROG_NM],
1251    # Let the user override the test.
1252    lt_cv_path_NM="$NM"
1253  else
1254 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1255 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1256 -    IFS="$lt_save_ifs"
1257 -    test -z "$ac_dir" && ac_dir=.
1258 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
1259 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1260 -      # Check to see if the nm accepts a BSD-compat flag.
1261 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1262 -      #   nm: unknown option "B" ignored
1263 -      # Tru64's nm complains that /dev/null is an invalid object file
1264 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1265 -      */dev/null* | *'Invalid file or object type'*)
1266 -       lt_cv_path_NM="$tmp_nm -B"
1267 -       break
1268 -        ;;
1269 -      *)
1270 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1271 -       */dev/null*)
1272 -         lt_cv_path_NM="$tmp_nm -p"
1273 +  lt_nm_to_check="${ac_tool_prefix}nm"
1274 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1275 +    lt_nm_to_check="$lt_nm_to_check nm"
1276 +  fi
1277 +  for lt_tmp_nm in $lt_nm_to_check; do
1278 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1279 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1280 +      IFS="$lt_save_ifs"
1281 +      test -z "$ac_dir" && ac_dir=.
1282 +      tmp_nm="$ac_dir/$lt_tmp_nm"
1283 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1284 +       # Check to see if the nm accepts a BSD-compat flag.
1285 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1286 +       #   nm: unknown option "B" ignored
1287 +       # Tru64's nm complains that /dev/null is an invalid object file
1288 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1289 +       */dev/null* | *'Invalid file or object type'*)
1290 +         lt_cv_path_NM="$tmp_nm -B"
1291           break
1292           ;;
1293         *)
1294 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1295 -         continue # so that we can try to find one that supports BSD flags
1296 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1297 +         */dev/null*)
1298 +           lt_cv_path_NM="$tmp_nm -p"
1299 +           break
1300 +           ;;
1301 +         *)
1302 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1303 +           continue # so that we can try to find one that supports BSD flags
1304 +           ;;
1305 +         esac
1306           ;;
1307         esac
1308 -      esac
1309 -    fi
1310 +      fi
1311 +    done
1312 +    IFS="$lt_save_ifs"
1313    done
1314 -  IFS="$lt_save_ifs"
1315    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1316  fi])
1317  NM="$lt_cv_path_NM"
1318 @@ -2348,13 +2661,13 @@ esac
1319  # -----------------------------------
1320  # sets LIBLTDL to the link flags for the libltdl convenience library and
1321  # LTDLINCL to the include flags for the libltdl header and adds
1322 -# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
1323 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
1324 -# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
1325 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
1326 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
1327 -# flat and you're not using automake, define top_builddir and
1328 -# top_srcdir appropriately in the Makefiles.
1329 +# --enable-ltdl-convenience to the configure arguments.  Note that
1330 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1331 +# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
1332 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1333 +# (note the single quotes!).  If your package is not flat and you're not
1334 +# using automake, define top_builddir and top_srcdir appropriately in
1335 +# the Makefiles.
1336  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1337  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1338    case $enable_ltdl_convenience in
1339 @@ -2373,13 +2686,13 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1340  # -----------------------------------
1341  # sets LIBLTDL to the link flags for the libltdl installable library and
1342  # LTDLINCL to the include flags for the libltdl header and adds
1343 -# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
1344 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
1345 -# DIRECTORY is not provided and an installed libltdl is not found, it is
1346 -# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
1347 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
1348 -# quotes!).  If your package is not flat and you're not using automake,
1349 -# define top_builddir and top_srcdir appropriately in the Makefiles.
1350 +# --enable-ltdl-install to the configure arguments.  Note that
1351 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1352 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
1353 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1354 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
1355 +# flat and you're not using automake, define top_builddir and top_srcdir
1356 +# appropriately in the Makefiles.
1357  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1358  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
1359  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1360 @@ -2417,10 +2730,21 @@ AC_DEFUN([AC_LIBTOOL_CXX],
1361  # ---------------
1362  AC_DEFUN([_LT_AC_LANG_CXX],
1363  [AC_REQUIRE([AC_PROG_CXX])
1364 -AC_REQUIRE([AC_PROG_CXXCPP])
1365 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1366  _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
1367  ])# _LT_AC_LANG_CXX
1368  
1369 +# _LT_AC_PROG_CXXCPP
1370 +# ------------------
1371 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
1372 +[
1373 +AC_REQUIRE([AC_PROG_CXX])
1374 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1375 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1376 +    (test "X$CXX" != "Xg++"))) ; then
1377 +  AC_PROG_CXXCPP
1378 +fi
1379 +])# _LT_AC_PROG_CXXCPP
1380  
1381  # AC_LIBTOOL_F77
1382  # --------------
1383 @@ -2460,7 +2784,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
1384  
1385  
1386  # AC_LIBTOOL_RC
1387 -# --------------
1388 +# -------------
1389  # enable support for Windows resource files
1390  AC_DEFUN([AC_LIBTOOL_RC],
1391  [AC_REQUIRE([LT_AC_PROG_RC])
1392 @@ -2486,43 +2810,16 @@ objext=o
1393  _LT_AC_TAGVAR(objext, $1)=$objext
1394  
1395  # Code to be used in simple compile tests
1396 -lt_simple_compile_test_code="int some_variable = 0;\n"
1397 +lt_simple_compile_test_code="int some_variable = 0;"
1398  
1399  # Code to be used in simple link tests
1400 -lt_simple_link_test_code='int main(){return(0);}\n'
1401 +lt_simple_link_test_code='int main(){return(0);}'
1402  
1403  _LT_AC_SYS_COMPILER
1404  
1405 -#
1406 -# Check for any special shared library compilation flags.
1407 -#
1408 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
1409 -if test "$GCC" = no; then
1410 -  case $host_os in
1411 -  sco3.2v5*)
1412 -    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
1413 -    ;;
1414 -  esac
1415 -fi
1416 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
1417 -  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
1418 -  if echo "$old_CC $old_CFLAGS " | grep "[[    ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
1419 -  else
1420 -    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
1421 -    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
1422 -  fi
1423 -fi
1424 -
1425 -
1426 -#
1427 -# Check to make sure the static flag actually works.
1428 -#
1429 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
1430 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1431 -  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
1432 -  [],
1433 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1434 -
1435 +# save warnings/boilerplate of simple test code
1436 +_LT_COMPILER_BOILERPLATE
1437 +_LT_LINKER_BOILERPLATE
1438  
1439  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1440  AC_LIBTOOL_PROG_COMPILER_PIC($1)
1441 @@ -2532,9 +2829,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1)
1442  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1443  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1444  AC_LIBTOOL_SYS_LIB_STRIP
1445 -AC_LIBTOOL_DLOPEN_SELF($1)
1446 +AC_LIBTOOL_DLOPEN_SELF
1447  
1448 -# Report which librarie types wil actually be built
1449 +# Report which library types will actually be built
1450  AC_MSG_CHECKING([if libtool supports shared libraries])
1451  AC_MSG_RESULT([$can_build_shared])
1452  
1453 @@ -2543,7 +2840,7 @@ test "$can_build_shared" = "no" && enable_shared=no
1454  
1455  # On AIX, shared libraries and static libraries use the same namespace, and
1456  # are all built from PIC.
1457 -case "$host_os" in
1458 +case $host_os in
1459  aix3*)
1460    test "$enable_shared" = yes && enable_static=no
1461    if test -n "$RANLIB"; then
1462 @@ -2552,47 +2849,10 @@ aix3*)
1463    fi
1464    ;;
1465  
1466 -aix4* | aix5*)
1467 +aix[[4-9]]*)
1468    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1469      test "$enable_shared" = yes && enable_static=no
1470    fi
1471 -  ;;
1472 -  darwin* | rhapsody*)
1473 -  if test "$GCC" = yes; then
1474 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1475 -    case "$host_os" in
1476 -    rhapsody* | darwin1.[[012]])
1477 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1478 -      ;;
1479 -    *) # Darwin 1.3 on
1480 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1481 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1482 -      else
1483 -        case ${MACOSX_DEPLOYMENT_TARGET} in
1484 -          10.[[012]])
1485 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1486 -            ;;
1487 -          10.*)
1488 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1489 -            ;;
1490 -        esac
1491 -      fi
1492 -      ;;
1493 -    esac
1494 -    output_verbose_link_cmd='echo'
1495 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
1496 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1497 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1498 -    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1499 -    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1500 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1501 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1502 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1503 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1504 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1505 -  else
1506 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
1507 -  fi
1508      ;;
1509  esac
1510  AC_MSG_RESULT([$enable_shared])
1511 @@ -2618,7 +2878,7 @@ AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
1512  AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
1513  [AC_LANG_PUSH(C++)
1514  AC_REQUIRE([AC_PROG_CXX])
1515 -AC_REQUIRE([AC_PROG_CXXCPP])
1516 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1517  
1518  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1519  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
1520 @@ -2630,6 +2890,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1521  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1522  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1523  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1524 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1525  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
1526  _LT_AC_TAGVAR(module_cmds, $1)=
1527  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
1528 @@ -2645,23 +2906,28 @@ _LT_AC_TAGVAR(postdep_objects, $1)=
1529  _LT_AC_TAGVAR(predeps, $1)=
1530  _LT_AC_TAGVAR(postdeps, $1)=
1531  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
1532 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
1533  
1534  # Source file extension for C++ test sources.
1535 -ac_ext=cc
1536 +ac_ext=cpp
1537  
1538  # Object file extension for compiled C++ test sources.
1539  objext=o
1540  _LT_AC_TAGVAR(objext, $1)=$objext
1541  
1542  # Code to be used in simple compile tests
1543 -lt_simple_compile_test_code="int some_variable = 0;\n"
1544 +lt_simple_compile_test_code="int some_variable = 0;"
1545  
1546  # Code to be used in simple link tests
1547 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
1548 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
1549  
1550  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1551  _LT_AC_SYS_COMPILER
1552  
1553 +# save warnings/boilerplate of simple test code
1554 +_LT_COMPILER_BOILERPLATE
1555 +_LT_LINKER_BOILERPLATE
1556 +
1557  # Allow CC to be a program name with arguments.
1558  lt_save_CC=$CC
1559  lt_save_LD=$LD
1560 @@ -2672,18 +2938,18 @@ lt_save_path_LD=$lt_cv_path_LD
1561  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1562    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1563  else
1564 -  unset lt_cv_prog_gnu_ld
1565 +  $as_unset lt_cv_prog_gnu_ld
1566  fi
1567  if test -n "${lt_cv_path_LDCXX+set}"; then
1568    lt_cv_path_LD=$lt_cv_path_LDCXX
1569  else
1570 -  unset lt_cv_path_LD
1571 +  $as_unset lt_cv_path_LD
1572  fi
1573  test -z "${LDCXX+set}" || LD=$LDCXX
1574  CC=${CXX-"c++"}
1575  compiler=$CC
1576  _LT_AC_TAGVAR(compiler, $1)=$CC
1577 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1578 +_LT_CC_BASENAME([$compiler])
1579  
1580  # We don't want -fno-exception wen compiling C++ code, so set the
1581  # no_builtin_flag separately
1582 @@ -2750,7 +3016,7 @@ case $host_os in
1583      # FIXME: insert proper C++ library support
1584      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1585      ;;
1586 -  aix4* | aix5*)
1587 +  aix[[4-9]]*)
1588      if test "$host_cpu" = ia64; then
1589        # On IA64, the linker does run time linking by default, so we don't
1590        # have to do anything special.
1591 @@ -2763,7 +3029,7 @@ case $host_os in
1592        # Test if we are trying to use run time linking or normal
1593        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1594        # need to do runtime linking.
1595 -      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1596 +      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
1597         for ld_flag in $LDFLAGS; do
1598           case $ld_flag in
1599           *-brtl*)
1600 @@ -2772,6 +3038,7 @@ case $host_os in
1601             ;;
1602           esac
1603         done
1604 +       ;;
1605        esac
1606  
1607        exp_sym_flag='-bexport'
1608 @@ -2790,7 +3057,7 @@ case $host_os in
1609      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1610  
1611      if test "$GXX" = yes; then
1612 -      case $host_os in aix4.[012]|aix4.[012].*)
1613 +      case $host_os in aix4.[[012]]|aix4.[[012]].*)
1614        # We only want to do this on AIX 4.2 and lower, the check
1615        # below for broken collect2 doesn't work under 4.3+
1616         collect2name=`${CC} -print-prog-name=collect2`
1617 @@ -2798,7 +3065,7 @@ case $host_os in
1618            strings "$collect2name" | grep resolve_lib_name >/dev/null
1619         then
1620           # We have reworked collect2
1621 -         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1622 +         :
1623         else
1624           # We have old collect2
1625           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1626 @@ -2809,8 +3076,12 @@ case $host_os in
1627           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1628           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1629         fi
1630 +       ;;
1631        esac
1632        shared_flag='-shared'
1633 +      if test "$aix_use_runtimelinking" = yes; then
1634 +       shared_flag="$shared_flag "'${wl}-G'
1635 +      fi
1636      else
1637        # not using gcc
1638        if test "$host_cpu" = ia64; then
1639 @@ -2837,12 +3108,12 @@ case $host_os in
1640        _LT_AC_SYS_LIBPATH_AIX
1641        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1642  
1643 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1644 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1645       else
1646        if test "$host_cpu" = ia64; then
1647         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1648         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1649 -       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1650 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1651        else
1652         # Determine the default libpath from the value encoded in an empty executable.
1653         _LT_AC_SYS_LIBPATH_AIX
1654 @@ -2851,16 +3122,26 @@ case $host_os in
1655         # -berok will link without error, but may produce a broken library.
1656         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1657         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1658 -       # -bexpall does not export symbols beginning with underscore (_)
1659 -       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1660         # Exported symbols can be pulled into shared objects from archives
1661 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1662 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1663         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1664 -       # This is similar to how AIX traditionally builds it's shared libraries.
1665 -       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1666 +       # This is similar to how AIX traditionally builds its shared libraries.
1667 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1668        fi
1669      fi
1670      ;;
1671 +
1672 +  beos*)
1673 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1674 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1675 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1676 +      # support --undefined.  This deserves some investigation.  FIXME
1677 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1678 +    else
1679 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1680 +    fi
1681 +    ;;
1682 +
1683    chorus*)
1684      case $cc_basename in
1685        *)
1686 @@ -2879,7 +3160,7 @@ case $host_os in
1687      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1688  
1689      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1690 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1691 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1692        # If the export-symbols file already is a .def file (1st line
1693        # is EXPORTS), use it as is; otherwise, prepend...
1694        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1695 @@ -2888,70 +3169,53 @@ case $host_os in
1696         echo EXPORTS > $output_objdir/$soname.def;
1697         cat $export_symbols >> $output_objdir/$soname.def;
1698        fi~
1699 -      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1700 +      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1701      else
1702        _LT_AC_TAGVAR(ld_shlibs, $1)=no
1703      fi
1704    ;;
1705 -
1706 -  darwin* | rhapsody*)
1707 -  if test "$GXX" = yes; then
1708 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1709 -    case "$host_os" in
1710 -    rhapsody* | darwin1.[[012]])
1711 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1712 -      ;;
1713 -    *) # Darwin 1.3 on
1714 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1715 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1716 +      darwin* | rhapsody*)
1717 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1718 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1719 +      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1720 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1721 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1722 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1723 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1724 +      if test "$GXX" = yes ; then
1725 +      output_verbose_link_cmd='echo'
1726 +      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1727 +      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1728 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1729 +      _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}"
1730 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1731 +        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1732 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1733 +      fi
1734        else
1735 -        case ${MACOSX_DEPLOYMENT_TARGET} in
1736 -          10.[[012]])
1737 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1738 -            ;;
1739 -          10.*)
1740 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1741 -            ;;
1742 -        esac
1743 +      case $cc_basename in
1744 +        xlc*)
1745 +         output_verbose_link_cmd='echo'
1746 +          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1747 +          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1748 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1749 +          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1750 +          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1751 +          ;;
1752 +       *)
1753 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1754 +          ;;
1755 +      esac
1756        fi
1757 -      ;;
1758 -    esac
1759 -    lt_int_apple_cc_single_mod=no
1760 -    output_verbose_link_cmd='echo'
1761 -    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
1762 -      lt_int_apple_cc_single_mod=yes
1763 -    fi
1764 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1765 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1766 -    else
1767 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1768 -    fi
1769 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1770 -
1771 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1772 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1773 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1774 -    else
1775 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1776 -    fi
1777 -    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1778 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1779 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1780 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1781 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1782 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1783 -  else
1784 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
1785 -  fi
1786 -    ;;
1787 +        ;;
1788  
1789    dgux*)
1790      case $cc_basename in
1791 -      ec++)
1792 +      ec++*)
1793         # FIXME: insert proper C++ library support
1794         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1795         ;;
1796 -      ghcx)
1797 +      ghcx*)
1798         # Green Hills C++ Compiler
1799         # FIXME: insert proper C++ library support
1800         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1801 @@ -2962,14 +3226,14 @@ case $host_os in
1802         ;;
1803      esac
1804      ;;
1805 -  freebsd[12]*)
1806 +  freebsd[[12]]*)
1807      # C++ shared libraries reported to be fairly broken before switch to ELF
1808      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1809      ;;
1810    freebsd-elf*)
1811      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1812      ;;
1813 -  freebsd* | kfreebsd*-gnu)
1814 +  freebsd* | dragonfly*)
1815      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1816      # conventions
1817      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1818 @@ -2986,11 +3250,11 @@ case $host_os in
1819                                 # location of the library.
1820  
1821      case $cc_basename in
1822 -    CC)
1823 +    CC*)
1824        # FIXME: insert proper C++ library support
1825        _LT_AC_TAGVAR(ld_shlibs, $1)=no
1826        ;;
1827 -    aCC)
1828 +    aCC*)
1829        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1830        # Commands to make compiler produce verbose output that lists
1831        # what "hidden" libraries, object files and flags are used when
1832 @@ -3000,7 +3264,7 @@ case $host_os in
1833        # explicitly linking system object files so we need to strip them
1834        # from the output so that they don't get included in the library
1835        # dependencies.
1836 -      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1837 +      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1838        ;;
1839      *)
1840        if test "$GXX" = yes; then
1841 @@ -3014,33 +3278,20 @@ case $host_os in
1842      ;;
1843    hpux10*|hpux11*)
1844      if test $with_gnu_ld = no; then
1845 -      case "$host_cpu" in
1846 -      hppa*64*)
1847 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1848 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1849 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1850 -        ;;
1851 -      ia64*)
1852 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1853 -        ;;
1854 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1855 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1856 +
1857 +      case $host_cpu in
1858 +      hppa*64*|ia64*) ;;
1859        *)
1860 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1861 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1862         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1863          ;;
1864        esac
1865      fi
1866 -    case "$host_cpu" in
1867 -    hppa*64*)
1868 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1869 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1870 -      ;;
1871 -    ia64*)
1872 +    case $host_cpu in
1873 +    hppa*64*|ia64*)
1874        _LT_AC_TAGVAR(hardcode_direct, $1)=no
1875        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1876 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
1877 -                                             # but as the default
1878 -                                             # location of the library.
1879        ;;
1880      *)
1881        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1882 @@ -3051,14 +3302,17 @@ case $host_os in
1883      esac
1884  
1885      case $cc_basename in
1886 -      CC)
1887 +      CC*)
1888         # FIXME: insert proper C++ library support
1889         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1890         ;;
1891 -      aCC)
1892 -       case "$host_cpu" in
1893 -       hppa*64*|ia64*)
1894 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1895 +      aCC*)
1896 +       case $host_cpu in
1897 +       hppa*64*)
1898 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1899 +         ;;
1900 +       ia64*)
1901 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1902           ;;
1903         *)
1904           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1905 @@ -3077,9 +3331,12 @@ case $host_os in
1906        *)
1907         if test "$GXX" = yes; then
1908           if test $with_gnu_ld = no; then
1909 -           case "$host_cpu" in
1910 -           ia64*|hppa*64*)
1911 -             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1912 +           case $host_cpu in
1913 +           hppa*64*)
1914 +             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1915 +             ;;
1916 +           ia64*)
1917 +             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1918               ;;
1919             *)
1920               _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1921 @@ -3093,11 +3350,25 @@ case $host_os in
1922         ;;
1923      esac
1924      ;;
1925 +  interix[[3-9]]*)
1926 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1927 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1928 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1929 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1930 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1931 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
1932 +    # default) and relocated if they conflict, which is a slow very memory
1933 +    # consuming and fragmenting process.  To avoid this, we pick a random,
1934 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1935 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1936 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1937 +    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1938 +    ;;
1939    irix5* | irix6*)
1940      case $cc_basename in
1941 -      CC)
1942 +      CC*)
1943         # SGI C++
1944 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
1945 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1946  
1947         # Archives containing C++ object files must be created using
1948         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
1949 @@ -3108,7 +3379,7 @@ case $host_os in
1950        *)
1951         if test "$GXX" = yes; then
1952           if test "$with_gnu_ld" = no; then
1953 -           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
1954 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1955           else
1956             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
1957           fi
1958 @@ -3119,9 +3390,9 @@ case $host_os in
1959      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1960      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1961      ;;
1962 -  linux*)
1963 +  linux* | k*bsd*-gnu)
1964      case $cc_basename in
1965 -      KCC)
1966 +      KCC*)
1967         # Kuck and Associates, Inc. (KAI) C++ Compiler
1968  
1969         # KCC will only create a shared library if the output file
1970 @@ -3146,17 +3417,41 @@ case $host_os in
1971         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1972         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
1973         ;;
1974 -      icpc)
1975 +      icpc*)
1976         # Intel C++
1977         with_gnu_ld=yes
1978 +       # version 8.0 and above of icpc choke on multiply defined symbols
1979 +       # if we add $predep_objects and $postdep_objects, however 7.1 and
1980 +       # earlier do not add the objects themselves.
1981 +       case `$CC -V 2>&1` in
1982 +       *"Version 7."*)
1983 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1984 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1985 +         ;;
1986 +       *)  # Version 8.0 or newer
1987 +         tmp_idyn=
1988 +         case $host_cpu in
1989 +           ia64*) tmp_idyn=' -i_dynamic';;
1990 +         esac
1991 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1992 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1993 +         ;;
1994 +       esac
1995         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1996 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1997 -       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1998         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1999         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2000         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
2001         ;;
2002 -      cxx)
2003 +      pgCC* | pgcpp*)
2004 +        # Portland Group C++ compiler
2005 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2006 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
2007 +
2008 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2009 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2010 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2011 +        ;;
2012 +      cxx*)
2013         # Compaq C++
2014         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2015         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
2016 @@ -3175,6 +3470,29 @@ case $host_os in
2017         # dependencies.
2018         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2019         ;;
2020 +      *)
2021 +       case `$CC -V 2>&1 | sed 5q` in
2022 +       *Sun\ C*)
2023 +         # Sun C++ 5.9
2024 +         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2025 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2026 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
2027 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2028 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2029 +
2030 +         # Not sure whether something based on
2031 +         # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
2032 +         # would be better.
2033 +         output_verbose_link_cmd='echo'
2034 +
2035 +         # Archives containing C++ object files must be created using
2036 +         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
2037 +         # necessary to make sure instantiated templates are included
2038 +         # in the archive.
2039 +         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2040 +         ;;
2041 +       esac
2042 +       ;;
2043      esac
2044      ;;
2045    lynxos*)
2046 @@ -3187,7 +3505,7 @@ case $host_os in
2047      ;;
2048    mvs*)
2049      case $cc_basename in
2050 -      cxx)
2051 +      cxx*)
2052         # FIXME: insert proper C++ library support
2053         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2054         ;;
2055 @@ -3197,7 +3515,7 @@ case $host_os in
2056         ;;
2057      esac
2058      ;;
2059 -  netbsd*)
2060 +  netbsd* | netbsdelf*-gnu)
2061      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2062        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
2063        wlarc=
2064 @@ -3208,9 +3526,29 @@ case $host_os in
2065      # Workaround some broken pre-1.5 toolchains
2066      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
2067      ;;
2068 +  openbsd2*)
2069 +    # C++ shared libraries are fairly broken
2070 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2071 +    ;;
2072 +  openbsd*)
2073 +    if test -f /usr/libexec/ld.so; then
2074 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2075 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2076 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2077 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2078 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2079 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
2080 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2081 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2082 +      fi
2083 +      output_verbose_link_cmd='echo'
2084 +    else
2085 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2086 +    fi
2087 +    ;;
2088    osf3*)
2089      case $cc_basename in
2090 -      KCC)
2091 +      KCC*)
2092         # Kuck and Associates, Inc. (KAI) C++ Compiler
2093  
2094         # KCC will only create a shared library if the output file
2095 @@ -3226,14 +3564,14 @@ case $host_os in
2096         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2097  
2098         ;;
2099 -      RCC)
2100 +      RCC*)
2101         # Rational C++ 2.4.1
2102         # FIXME: insert proper C++ library support
2103         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2104         ;;
2105 -      cxx)
2106 +      cxx*)
2107         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2108 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
2109 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2110  
2111         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2112         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2113 @@ -3251,7 +3589,7 @@ case $host_os in
2114        *)
2115         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2116           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2117 -         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
2118 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2119  
2120           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2121           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2122 @@ -3270,7 +3608,7 @@ case $host_os in
2123      ;;
2124    osf4* | osf5*)
2125      case $cc_basename in
2126 -      KCC)
2127 +      KCC*)
2128         # Kuck and Associates, Inc. (KAI) C++ Compiler
2129  
2130         # KCC will only create a shared library if the output file
2131 @@ -3285,17 +3623,17 @@ case $host_os in
2132         # the KAI C++ compiler.
2133         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
2134         ;;
2135 -      RCC)
2136 +      RCC*)
2137         # Rational C++ 2.4.1
2138         # FIXME: insert proper C++ library support
2139         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2140         ;;
2141 -      cxx)
2142 +      cxx*)
2143         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2144 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
2145 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2146         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
2147           echo "-hidden">> $lib.exp~
2148 -         $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
2149 +         $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
2150           $rm $lib.exp'
2151  
2152         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2153 @@ -3314,7 +3652,7 @@ case $host_os in
2154        *)
2155         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2156           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2157 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
2158 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2159  
2160           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2161           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2162 @@ -3335,27 +3673,14 @@ case $host_os in
2163      # FIXME: insert proper C++ library support
2164      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2165      ;;
2166 -  sco*)
2167 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2168 -    case $cc_basename in
2169 -      CC)
2170 -       # FIXME: insert proper C++ library support
2171 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2172 -       ;;
2173 -      *)
2174 -       # FIXME: insert proper C++ library support
2175 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2176 -       ;;
2177 -    esac
2178 -    ;;
2179    sunos4*)
2180      case $cc_basename in
2181 -      CC)
2182 +      CC*)
2183         # Sun C++ 4.x
2184         # FIXME: insert proper C++ library support
2185         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2186         ;;
2187 -      lcc)
2188 +      lcc*)
2189         # Lucid
2190         # FIXME: insert proper C++ library support
2191         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2192 @@ -3368,36 +3693,28 @@ case $host_os in
2193      ;;
2194    solaris*)
2195      case $cc_basename in
2196 -      CC)
2197 +      CC*)
2198         # Sun C++ 4.2, 5.x and Centerline C++
2199 +        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
2200         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2201 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2202 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2203         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2204 -       $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
2205 +       $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
2206  
2207         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2208         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2209         case $host_os in
2210 -         solaris2.[0-5] | solaris2.[0-5].*) ;;
2211 +         solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2212           *)
2213 -           # The C++ compiler is used as linker so we must use $wl
2214 -           # flag to pass the commands to the underlying system
2215 -           # linker.
2216 +           # The compiler driver will combine and reorder linker options,
2217 +           # but understands `-z linker_flag'.
2218             # Supported since Solaris 2.6 (maybe 2.5.1?)
2219 -           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2220 +           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
2221             ;;
2222         esac
2223         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2224  
2225 -       # Commands to make compiler produce verbose output that lists
2226 -       # what "hidden" libraries, object files and flags are used when
2227 -       # linking a shared library.
2228 -       #
2229 -       # There doesn't appear to be a way to prevent this compiler from
2230 -       # explicitly linking system object files so we need to strip them
2231 -       # from the output so that they don't get included in the library
2232 -       # dependencies.
2233 -       output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2234 +       output_verbose_link_cmd='echo'
2235  
2236         # Archives containing C++ object files must be created using
2237         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
2238 @@ -3405,7 +3722,7 @@ case $host_os in
2239         # in the archive.
2240         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2241         ;;
2242 -      gcx)
2243 +      gcx*)
2244         # Green Hills C++ Compiler
2245         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2246  
2247 @@ -3439,16 +3756,73 @@ case $host_os in
2248           fi
2249  
2250           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
2251 +         case $host_os in
2252 +         solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2253 +         *)
2254 +           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2255 +           ;;
2256 +         esac
2257         fi
2258         ;;
2259      esac
2260      ;;
2261 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
2262 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
2263 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2264 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2265 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2266 +    runpath_var='LD_RUN_PATH'
2267 +
2268 +    case $cc_basename in
2269 +      CC*)
2270 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2271 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2272 +       ;;
2273 +      *)
2274 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2275 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2276 +       ;;
2277 +    esac
2278 +    ;;
2279 +  sysv5* | sco3.2v5* | sco5v6*)
2280 +    # Note: We can NOT use -z defs as we might desire, because we do not
2281 +    # link with -lc, and that would cause any symbols used from libc to
2282 +    # always be unresolved, which means just about no library would
2283 +    # ever link correctly.  If we're not using GNU ld we use -z text
2284 +    # though, which does catch some bad symbols but isn't as heavy-handed
2285 +    # as -z defs.
2286 +    # For security reasons, it is highly recommended that you always
2287 +    # use absolute paths for naming shared libraries, and exclude the
2288 +    # DT_RUNPATH tag from executables and libraries.  But doing so
2289 +    # requires that you compile everything twice, which is a pain.
2290 +    # So that behaviour is only enabled if SCOABSPATH is set to a
2291 +    # non-empty value in the environment.  Most likely only useful for
2292 +    # creating official distributions of packages.
2293 +    # This is a hack until libtool officially supports absolute path
2294 +    # names for shared libraries.
2295 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2296 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2297      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2298 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2299 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2300 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2301 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2302 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2303 +    runpath_var='LD_RUN_PATH'
2304 +
2305 +    case $cc_basename in
2306 +      CC*)
2307 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2308 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2309 +       ;;
2310 +      *)
2311 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2312 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2313 +       ;;
2314 +    esac
2315      ;;
2316    tandem*)
2317      case $cc_basename in
2318 -      NCC)
2319 +      NCC*)
2320         # NonStop-UX NCC 3.20
2321         # FIXME: insert proper C++ library support
2322         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2323 @@ -3481,8 +3855,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2324  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2325  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2326  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2327 -AC_LIBTOOL_SYS_LIB_STRIP
2328 -AC_LIBTOOL_DLOPEN_SELF($1)
2329  
2330  AC_LIBTOOL_CONFIG($1)
2331  
2332 @@ -3500,12 +3872,13 @@ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
2333  ])# AC_LIBTOOL_LANG_CXX_CONFIG
2334  
2335  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
2336 -# ------------------------
2337 +# ------------------------------------
2338  # Figure out "hidden" library dependencies from verbose
2339  # compiler output when linking a shared library.
2340  # Parse the compiler output and extract the necessary
2341  # objects, libraries and library flags.
2342 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
2343 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
2344 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
2345  dnl we can't use the lt_simple_compile_test_code here,
2346  dnl because it contains code intended for an executable,
2347  dnl not a library.  It's possible we should let each
2348 @@ -3554,7 +3927,7 @@ if AC_TRY_EVAL(ac_compile); then
2349    # The `*' in the case matches for architectures that use `case' in
2350    # $output_verbose_cmd can trigger glob expansion during the loop
2351    # eval without this substitution.
2352 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
2353 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
2354  
2355    for p in `eval $output_verbose_link_cmd`; do
2356      case $p in
2357 @@ -3630,13 +4003,74 @@ fi
2358  
2359  $rm -f confest.$objext
2360  
2361 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2362 +if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
2363 +  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
2364 +fi
2365 +
2366 +# PORTME: override above test on systems where it is broken
2367 +ifelse([$1],[CXX],
2368 +[case $host_os in
2369 +interix[[3-9]]*)
2370 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
2371 +  # hack all around it, let's just trust "g++" to DTRT.
2372 +  _LT_AC_TAGVAR(predep_objects,$1)=
2373 +  _LT_AC_TAGVAR(postdep_objects,$1)=
2374 +  _LT_AC_TAGVAR(postdeps,$1)=
2375 +  ;;
2376 +
2377 +linux*)
2378 +  case `$CC -V 2>&1 | sed 5q` in
2379 +  *Sun\ C*)
2380 +    # Sun C++ 5.9
2381 +    #
2382 +    # The more standards-conforming stlport4 library is
2383 +    # incompatible with the Cstd library. Avoid specifying
2384 +    # it if it's in CXXFLAGS. Ignore libCrun as
2385 +    # -library=stlport4 depends on it.
2386 +    case " $CXX $CXXFLAGS " in
2387 +    *" -library=stlport4 "*)
2388 +      solaris_use_stlport4=yes
2389 +      ;;
2390 +    esac
2391 +    if test "$solaris_use_stlport4" != yes; then
2392 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
2393 +    fi
2394 +    ;;
2395 +  esac
2396 +  ;;
2397 +
2398 +solaris*)
2399 +  case $cc_basename in
2400 +  CC*)
2401 +    # The more standards-conforming stlport4 library is
2402 +    # incompatible with the Cstd library. Avoid specifying
2403 +    # it if it's in CXXFLAGS. Ignore libCrun as
2404 +    # -library=stlport4 depends on it.
2405 +    case " $CXX $CXXFLAGS " in
2406 +    *" -library=stlport4 "*)
2407 +      solaris_use_stlport4=yes
2408 +      ;;
2409 +    esac
2410 +
2411 +    # Adding this requires a known-good setup of shared libraries for
2412 +    # Sun compiler versions before 5.6, else PIC objects from an old
2413 +    # archive will be linked into the output, leading to subtle bugs.
2414 +    if test "$solaris_use_stlport4" != yes; then
2415 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
2416 +    fi
2417 +    ;;
2418 +  esac
2419 +  ;;
2420 +esac
2421 +])
2422  case " $_LT_AC_TAGVAR(postdeps, $1) " in
2423  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
2424  esac
2425  ])# AC_LIBTOOL_POSTDEP_PREDEP
2426  
2427  # AC_LIBTOOL_LANG_F77_CONFIG
2428 -# ------------------------
2429 +# --------------------------
2430  # Ensure that the configuration vars for the C compiler are
2431  # suitably defined.  Those variables are subsequently used by
2432  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2433 @@ -3672,20 +4106,31 @@ objext=o
2434  _LT_AC_TAGVAR(objext, $1)=$objext
2435  
2436  # Code to be used in simple compile tests
2437 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
2438 +lt_simple_compile_test_code="\
2439 +      subroutine t
2440 +      return
2441 +      end
2442 +"
2443  
2444  # Code to be used in simple link tests
2445 -lt_simple_link_test_code="      program t\n      end\n"
2446 +lt_simple_link_test_code="\
2447 +      program t
2448 +      end
2449 +"
2450  
2451  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2452  _LT_AC_SYS_COMPILER
2453  
2454 +# save warnings/boilerplate of simple test code
2455 +_LT_COMPILER_BOILERPLATE
2456 +_LT_LINKER_BOILERPLATE
2457 +
2458  # Allow CC to be a program name with arguments.
2459  lt_save_CC="$CC"
2460  CC=${F77-"f77"}
2461  compiler=$CC
2462  _LT_AC_TAGVAR(compiler, $1)=$CC
2463 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2464 +_LT_CC_BASENAME([$compiler])
2465  
2466  AC_MSG_CHECKING([if libtool supports shared libraries])
2467  AC_MSG_RESULT([$can_build_shared])
2468 @@ -3695,7 +4140,7 @@ test "$can_build_shared" = "no" && enable_shared=no
2469  
2470  # On AIX, shared libraries and static libraries use the same namespace, and
2471  # are all built from PIC.
2472 -case "$host_os" in
2473 +case $host_os in
2474  aix3*)
2475    test "$enable_shared" = yes && enable_static=no
2476    if test -n "$RANLIB"; then
2477 @@ -3703,8 +4148,10 @@ aix3*)
2478      postinstall_cmds='$RANLIB $lib'
2479    fi
2480    ;;
2481 -aix4* | aix5*)
2482 -  test "$enable_shared" = yes && enable_static=no
2483 +aix[[4-9]]*)
2484 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2485 +    test "$enable_shared" = yes && enable_static=no
2486 +  fi
2487    ;;
2488  esac
2489  AC_MSG_RESULT([$enable_shared])
2490 @@ -3714,8 +4161,6 @@ AC_MSG_CHECKING([whether to build static libraries])
2491  test "$enable_shared" = yes || enable_static=yes
2492  AC_MSG_RESULT([$enable_static])
2493  
2494 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2495 -
2496  _LT_AC_TAGVAR(GCC, $1)="$G77"
2497  _LT_AC_TAGVAR(LD, $1)="$LD"
2498  
2499 @@ -3725,8 +4170,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2500  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2501  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2502  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2503 -AC_LIBTOOL_SYS_LIB_STRIP
2504 -
2505  
2506  AC_LIBTOOL_CONFIG($1)
2507  
2508 @@ -3752,23 +4195,30 @@ objext=o
2509  _LT_AC_TAGVAR(objext, $1)=$objext
2510  
2511  # Code to be used in simple compile tests
2512 -lt_simple_compile_test_code="class foo {}\n"
2513 +lt_simple_compile_test_code="class foo {}"
2514  
2515  # Code to be used in simple link tests
2516 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
2517 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
2518  
2519  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2520  _LT_AC_SYS_COMPILER
2521  
2522 +# save warnings/boilerplate of simple test code
2523 +_LT_COMPILER_BOILERPLATE
2524 +_LT_LINKER_BOILERPLATE
2525 +
2526  # Allow CC to be a program name with arguments.
2527  lt_save_CC="$CC"
2528  CC=${GCJ-"gcj"}
2529  compiler=$CC
2530  _LT_AC_TAGVAR(compiler, $1)=$CC
2531 +_LT_CC_BASENAME([$compiler])
2532  
2533  # GCJ did not exist at the time GCC didn't implicitly link libc in.
2534  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2535  
2536 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2537 +
2538  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2539  AC_LIBTOOL_PROG_COMPILER_PIC($1)
2540  AC_LIBTOOL_PROG_CC_C_O($1)
2541 @@ -3776,8 +4226,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2542  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2543  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2544  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2545 -AC_LIBTOOL_SYS_LIB_STRIP
2546 -AC_LIBTOOL_DLOPEN_SELF($1)
2547  
2548  AC_LIBTOOL_CONFIG($1)
2549  
2550 @@ -3787,7 +4235,7 @@ CC="$lt_save_CC"
2551  
2552  
2553  # AC_LIBTOOL_LANG_RC_CONFIG
2554 -# --------------------------
2555 +# -------------------------
2556  # Ensure that the configuration vars for the Windows resource compiler are
2557  # suitably defined.  Those variables are subsequently used by
2558  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2559 @@ -3803,7 +4251,7 @@ objext=o
2560  _LT_AC_TAGVAR(objext, $1)=$objext
2561  
2562  # Code to be used in simple compile tests
2563 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
2564 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
2565  
2566  # Code to be used in simple link tests
2567  lt_simple_link_test_code="$lt_simple_compile_test_code"
2568 @@ -3811,11 +4259,16 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
2569  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2570  _LT_AC_SYS_COMPILER
2571  
2572 +# save warnings/boilerplate of simple test code
2573 +_LT_COMPILER_BOILERPLATE
2574 +_LT_LINKER_BOILERPLATE
2575 +
2576  # Allow CC to be a program name with arguments.
2577  lt_save_CC="$CC"
2578  CC=${RC-"windres"}
2579  compiler=$CC
2580  _LT_AC_TAGVAR(compiler, $1)=$CC
2581 +_LT_CC_BASENAME([$compiler])
2582  _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2583  
2584  AC_LIBTOOL_CONFIG($1)
2585 @@ -3845,7 +4298,7 @@ if test -f "$ltmain"; then
2586    # Now quote all the things that may contain metacharacters while being
2587    # careful not to overquote the AC_SUBSTed values.  We take copies of the
2588    # variables and quote the copies for generation of the libtool script.
2589 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
2590 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
2591      SED SHELL STRIP \
2592      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
2593      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
2594 @@ -3872,6 +4325,7 @@ if test -f "$ltmain"; then
2595      _LT_AC_TAGVAR(predeps, $1) \
2596      _LT_AC_TAGVAR(postdeps, $1) \
2597      _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
2598 +    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
2599      _LT_AC_TAGVAR(archive_cmds, $1) \
2600      _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
2601      _LT_AC_TAGVAR(postinstall_cmds, $1) \
2602 @@ -3887,6 +4341,7 @@ if test -f "$ltmain"; then
2603      _LT_AC_TAGVAR(module_cmds, $1) \
2604      _LT_AC_TAGVAR(module_expsym_cmds, $1) \
2605      _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
2606 +    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
2607      _LT_AC_TAGVAR(exclude_expsyms, $1) \
2608      _LT_AC_TAGVAR(include_expsyms, $1); do
2609  
2610 @@ -3933,7 +4388,7 @@ ifelse([$1], [],
2611  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2612  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
2613  #
2614 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
2615 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
2616  # Free Software Foundation, Inc.
2617  #
2618  # This file is part of GNU Libtool:
2619 @@ -3951,7 +4406,7 @@ ifelse([$1], [],
2620  #
2621  # You should have received a copy of the GNU General Public License
2622  # along with this program; if not, write to the Free Software
2623 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2624 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2625  #
2626  # As a special exception to the GNU General Public License, if you
2627  # distribute this file as part of a program that contains a
2628 @@ -3962,11 +4417,11 @@ ifelse([$1], [],
2629  SED=$lt_SED
2630  
2631  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
2632 -Xsed="$SED -e s/^X//"
2633 +Xsed="$SED -e 1s/^X//"
2634  
2635  # The HP-UX ksh and POSIX shell print the target directory to stdout
2636  # if CDPATH is set.
2637 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2638 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2639  
2640  # The names of the tagged configurations supported by this script.
2641  available_tags=
2642 @@ -3997,6 +4452,12 @@ fast_install=$enable_fast_install
2643  # The host system.
2644  host_alias=$host_alias
2645  host=$host
2646 +host_os=$host_os
2647 +
2648 +# The build system.
2649 +build_alias=$build_alias
2650 +build=$build
2651 +build_os=$build_os
2652  
2653  # An echo program that does not interpret backslashes.
2654  echo=$lt_echo
2655 @@ -4008,6 +4469,9 @@ AR_FLAGS=$lt_AR_FLAGS
2656  # A C compiler.
2657  LTCC=$lt_LTCC
2658  
2659 +# LTCC compiler flags.
2660 +LTCFLAGS=$lt_LTCFLAGS
2661 +
2662  # A language-specific compiler.
2663  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
2664  
2665 @@ -4073,7 +4537,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
2666  # Does compiler simultaneously support -c and -o options?
2667  compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
2668  
2669 -# Must we lock files when doing compilation ?
2670 +# Must we lock files when doing compilation?
2671  need_locks=$lt_need_locks
2672  
2673  # Do we need the lib prefix for modules?
2674 @@ -4161,6 +4625,10 @@ predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
2675  # shared library.
2676  postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
2677  
2678 +# The directories searched by this compiler when creating a shared
2679 +# library
2680 +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
2681 +
2682  # The library search path used internally by the compiler when linking
2683  # a shared library.
2684  compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
2685 @@ -4249,7 +4717,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
2686  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
2687  
2688  # Fix the shell variable \$srcfile for the compiler.
2689 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
2690 +fix_srcfile_path=$lt_fix_srcfile_path
2691  
2692  # Set to yes if exported symbols are required.
2693  always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
2694 @@ -4332,6 +4800,7 @@ fi
2695  # ---------------------------------
2696  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
2697  [AC_REQUIRE([AC_CANONICAL_HOST])
2698 +AC_REQUIRE([LT_AC_PROG_SED])
2699  AC_REQUIRE([AC_PROG_NM])
2700  AC_REQUIRE([AC_OBJEXT])
2701  # Check for command to grab the raw symbol name followed by C symbol from nm.
2702 @@ -4347,9 +4816,6 @@ symcode='[[BCDEGRST]]'
2703  # Regexp to match symbols that can be accessed directly from C.
2704  sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
2705  
2706 -# Transform the above into a raw symbol and a C symbol.
2707 -symxfrm='\1 \2\3 \3'
2708 -
2709  # Transform an extracted symbol line into a proper C declaration
2710  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
2711  
2712 @@ -4371,15 +4837,31 @@ hpux*) # Its linker distinguishes data from code symbols
2713    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2714    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'"
2715    ;;
2716 +linux* | k*bsd*-gnu)
2717 +  if test "$host_cpu" = ia64; then
2718 +    symcode='[[ABCDGIRSTW]]'
2719 +    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2720 +    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'"
2721 +  fi
2722 +  ;;
2723  irix* | nonstopux*)
2724    symcode='[[BCDEGRST]]'
2725    ;;
2726  osf*)
2727    symcode='[[BCDEGQRST]]'
2728    ;;
2729 -solaris* | sysv5*)
2730 +solaris*)
2731    symcode='[[BDRT]]'
2732    ;;
2733 +sco3.2v5*)
2734 +  symcode='[[DT]]'
2735 +  ;;
2736 +sysv4.2uw2*)
2737 +  symcode='[[DT]]'
2738 +  ;;
2739 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
2740 +  symcode='[[ABDT]]'
2741 +  ;;
2742  sysv4)
2743    symcode='[[DFNSTU]]'
2744    ;;
2745 @@ -4402,8 +4884,11 @@ esac
2746  # Try without a prefix undercore, then with it.
2747  for ac_symprfx in "" "_"; do
2748  
2749 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
2750 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
2751 +
2752    # Write the raw and C identifiers.
2753 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2754 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
2755  
2756    # Check to see that the pipe works correctly.
2757    pipe_works=no
2758 @@ -4493,7 +4978,7 @@ EOF
2759      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
2760      cat conftest.$ac_ext >&5
2761    fi
2762 -  rm -f conftest* conftst*
2763 +  rm -rf conftest* conftst*
2764  
2765    # Do not use the global_symbol_pipe unless it works.
2766    if test "$pipe_works" = yes; then
2767 @@ -4542,13 +5027,16 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2768        # like `-m68040'.
2769        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
2770        ;;
2771 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2772 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2773        # PIC is the default for these OSes.
2774        ;;
2775 -    mingw* | os2* | pw32*)
2776 +    mingw* | cygwin* | os2* | pw32*)
2777        # This hack is so that the source file can tell whether it is being
2778        # built for inclusion in a dll (and should export symbols for example).
2779 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
2780 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
2781 +      # (--disable-auto-import) libraries
2782 +      m4_if([$1], [GCJ], [],
2783 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
2784        ;;
2785      darwin* | rhapsody*)
2786        # PIC is the default on this platform
2787 @@ -4559,6 +5047,10 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2788        # DJGPP does not support shared libraries at all
2789        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2790        ;;
2791 +    interix[[3-9]]*)
2792 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2793 +      # Instead, we relocate shared libraries at runtime.
2794 +      ;;
2795      sysv4*MP*)
2796        if test -d /usr/nec; then
2797         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
2798 @@ -4567,7 +5059,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2799      hpux*)
2800        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2801        # not for PA HP-UX.
2802 -      case "$host_cpu" in
2803 +      case $host_cpu in
2804        hppa*64*|ia64*)
2805         ;;
2806        *)
2807 @@ -4581,7 +5073,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2808      esac
2809    else
2810      case $host_os in
2811 -      aix4* | aix5*)
2812 +      aix[[4-9]]*)
2813         # All AIX code is PIC.
2814         if test "$host_cpu" = ia64; then
2815           # AIX 5 now supports IA64 processor
2816 @@ -4592,18 +5084,28 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2817         ;;
2818        chorus*)
2819         case $cc_basename in
2820 -       cxch68)
2821 +       cxch68*)
2822           # Green Hills C++ Compiler
2823           # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
2824           ;;
2825         esac
2826         ;;
2827 +       darwin*)
2828 +         # PIC is the default on this platform
2829 +         # Common symbols not allowed in MH_DYLIB files
2830 +         case $cc_basename in
2831 +           xlc*)
2832 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
2833 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2834 +           ;;
2835 +         esac
2836 +       ;;
2837        dgux*)
2838         case $cc_basename in
2839 -         ec++)
2840 +         ec++*)
2841             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2842             ;;
2843 -         ghcx)
2844 +         ghcx*)
2845             # Green Hills C++ Compiler
2846             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2847             ;;
2848 @@ -4611,22 +5113,22 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2849             ;;
2850         esac
2851         ;;
2852 -      freebsd* | kfreebsd*-gnu)
2853 +      freebsd* | dragonfly*)
2854         # FreeBSD uses GNU C++
2855         ;;
2856        hpux9* | hpux10* | hpux11*)
2857         case $cc_basename in
2858 -         CC)
2859 +         CC*)
2860             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2861 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
2862 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
2863             if test "$host_cpu" != ia64; then
2864               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
2865             fi
2866             ;;
2867 -         aCC)
2868 +         aCC*)
2869             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2870 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
2871 -           case "$host_cpu" in
2872 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
2873 +           case $host_cpu in
2874             hppa*64*|ia64*)
2875               # +Z the default
2876               ;;
2877 @@ -4639,9 +5141,13 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2878             ;;
2879         esac
2880         ;;
2881 +      interix*)
2882 +       # This is c89, which is MS Visual C++ (no shared libs)
2883 +       # Anyone wants to do a port?
2884 +       ;;
2885        irix5* | irix6* | nonstopux*)
2886         case $cc_basename in
2887 -         CC)
2888 +         CC*)
2889             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2890             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2891             # CC pic flag -KPIC is the default.
2892 @@ -4650,20 +5156,26 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2893             ;;
2894         esac
2895         ;;
2896 -      linux*)
2897 +      linux* | k*bsd*-gnu)
2898         case $cc_basename in
2899 -         KCC)
2900 +         KCC*)
2901             # KAI C++ Compiler
2902             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
2903             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2904             ;;
2905 -         icpc)
2906 +         icpc* | ecpc*)
2907             # Intel C++
2908             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2909             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2910             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
2911             ;;
2912 -         cxx)
2913 +         pgCC* | pgcpp*)
2914 +           # Portland Group C++ compiler.
2915 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2916 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
2917 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2918 +           ;;
2919 +         cxx*)
2920             # Compaq C++
2921             # Make sure the PIC flag is empty.  It appears that all Alpha
2922             # Linux and Compaq Tru64 Unix objects are PIC.
2923 @@ -4671,6 +5183,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2924             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2925             ;;
2926           *)
2927 +           case `$CC -V 2>&1 | sed 5q` in
2928 +           *Sun\ C*)
2929 +             # Sun C++ 5.9
2930 +             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2931 +             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2932 +             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
2933 +             ;;
2934 +           esac
2935             ;;
2936         esac
2937         ;;
2938 @@ -4680,25 +5200,25 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2939         ;;
2940        mvs*)
2941         case $cc_basename in
2942 -         cxx)
2943 +         cxx*)
2944             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
2945             ;;
2946           *)
2947             ;;
2948         esac
2949         ;;
2950 -      netbsd*)
2951 +      netbsd* | netbsdelf*-gnu)
2952         ;;
2953        osf3* | osf4* | osf5*)
2954         case $cc_basename in
2955 -         KCC)
2956 +         KCC*)
2957             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
2958             ;;
2959 -         RCC)
2960 +         RCC*)
2961             # Rational C++ 2.4.1
2962             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2963             ;;
2964 -         cxx)
2965 +         cxx*)
2966             # Digital/Compaq C++
2967             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2968             # Make sure the PIC flag is empty.  It appears that all Alpha
2969 @@ -4712,24 +5232,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2970         ;;
2971        psos*)
2972         ;;
2973 -      sco*)
2974 -       case $cc_basename in
2975 -         CC)
2976 -           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2977 -           ;;
2978 -         *)
2979 -           ;;
2980 -       esac
2981 -       ;;
2982        solaris*)
2983         case $cc_basename in
2984 -         CC)
2985 +         CC*)
2986             # Sun C++ 4.2, 5.x and Centerline C++
2987             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2988             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2989             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
2990             ;;
2991 -         gcx)
2992 +         gcx*)
2993             # Green Hills C++ Compiler
2994             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
2995             ;;
2996 @@ -4739,12 +5250,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2997         ;;
2998        sunos4*)
2999         case $cc_basename in
3000 -         CC)
3001 +         CC*)
3002             # Sun C++ 4.x
3003             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3004             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3005             ;;
3006 -         lcc)
3007 +         lcc*)
3008             # Lucid
3009             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3010             ;;
3011 @@ -4754,7 +5265,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3012         ;;
3013        tandem*)
3014         case $cc_basename in
3015 -         NCC)
3016 +         NCC*)
3017             # NonStop-UX NCC 3.20
3018             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3019             ;;
3020 @@ -4762,7 +5273,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3021             ;;
3022         esac
3023         ;;
3024 -      unixware*)
3025 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3026 +       case $cc_basename in
3027 +         CC*)
3028 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3029 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3030 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3031 +           ;;
3032 +       esac
3033         ;;
3034        vxworks*)
3035         ;;
3036 @@ -4793,14 +5311,17 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3037        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3038        ;;
3039  
3040 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3041 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3042        # PIC is the default for these OSes.
3043        ;;
3044  
3045 -    mingw* | pw32* | os2*)
3046 +    mingw* | cygwin* | pw32* | os2*)
3047        # This hack is so that the source file can tell whether it is being
3048        # built for inclusion in a dll (and should export symbols for example).
3049 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3050 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3051 +      # (--disable-auto-import) libraries
3052 +      m4_if([$1], [GCJ], [],
3053 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3054        ;;
3055  
3056      darwin* | rhapsody*)
3057 @@ -4809,6 +5330,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3058        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3059        ;;
3060  
3061 +    interix[[3-9]]*)
3062 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3063 +      # Instead, we relocate shared libraries at runtime.
3064 +      ;;
3065 +
3066      msdosdjgpp*)
3067        # Just because we use GCC doesn't mean we suddenly get shared libraries
3068        # on systems that don't support them.
3069 @@ -4825,7 +5351,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3070      hpux*)
3071        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3072        # not for PA HP-UX.
3073 -      case "$host_cpu" in
3074 +      case $host_cpu in
3075        hppa*64*|ia64*)
3076         # +Z the default
3077         ;;
3078 @@ -4851,18 +5377,29 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3079         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3080        fi
3081        ;;
3082 +      darwin*)
3083 +        # PIC is the default on this platform
3084 +        # Common symbols not allowed in MH_DYLIB files
3085 +       case $cc_basename in
3086 +         xlc*)
3087 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3088 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3089 +         ;;
3090 +       esac
3091 +       ;;
3092  
3093 -    mingw* | pw32* | os2*)
3094 +    mingw* | cygwin* | pw32* | os2*)
3095        # This hack is so that the source file can tell whether it is being
3096        # built for inclusion in a dll (and should export symbols for example).
3097 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3098 +      m4_if([$1], [GCJ], [],
3099 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3100        ;;
3101  
3102      hpux9* | hpux10* | hpux11*)
3103        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3104        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3105        # not for PA HP-UX.
3106 -      case "$host_cpu" in
3107 +      case $host_cpu in
3108        hppa*64*|ia64*)
3109         # +Z the default
3110         ;;
3111 @@ -4885,18 +5422,41 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3112        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3113        ;;
3114  
3115 -    linux*)
3116 -      case $CC in
3117 +    linux* | k*bsd*-gnu)
3118 +      case $cc_basename in
3119        icc* | ecc*)
3120         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3121         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3122         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3123          ;;
3124 +      pgcc* | pgf77* | pgf90* | pgf95*)
3125 +        # Portland Group compilers (*not* the Pentium gcc compiler,
3126 +       # which looks to be a dead project)
3127 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3128 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3129 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3130 +        ;;
3131        ccc*)
3132          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3133          # All Alpha code is PIC.
3134          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3135          ;;
3136 +      *)
3137 +        case `$CC -V 2>&1 | sed 5q` in
3138 +       *Sun\ C*)
3139 +         # Sun C 5.9
3140 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3141 +         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3142 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3143 +         ;;
3144 +       *Sun\ F*)
3145 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
3146 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3147 +         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3148 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
3149 +         ;;
3150 +       esac
3151 +       ;;
3152        esac
3153        ;;
3154  
3155 @@ -4906,15 +5466,19 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3156        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3157        ;;
3158  
3159 -    sco3.2v5*)
3160 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
3161 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
3162 +    rdos*)
3163 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3164        ;;
3165  
3166      solaris*)
3167 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3168        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3169        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3170 +      case $cc_basename in
3171 +      f77* | f90* | f95*)
3172 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
3173 +      *)
3174 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
3175 +      esac
3176        ;;
3177  
3178      sunos4*)
3179 @@ -4923,7 +5487,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3180        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3181        ;;
3182  
3183 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3184 +    sysv4 | sysv4.2uw2* | sysv4.3*)
3185        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3186        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3187        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3188 @@ -4936,6 +5500,17 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3189        fi
3190        ;;
3191  
3192 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3193 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3194 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3195 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3196 +      ;;
3197 +
3198 +    unicos*)
3199 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3200 +      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3201 +      ;;
3202 +
3203      uts4*)
3204        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3205        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3206 @@ -4954,7 +5529,7 @@ AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
3207  #
3208  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
3209    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
3210 -    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
3211 +    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
3212      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
3213      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
3214       "" | " "*) ;;
3215 @@ -4963,7 +5538,7 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
3216      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3217       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
3218  fi
3219 -case "$host_os" in
3220 +case $host_os in
3221    # For platforms which do not support PIC, -DPIC is meaningless:
3222    *djgpp*)
3223      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3224 @@ -4972,6 +5547,16 @@ case "$host_os" in
3225      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
3226      ;;
3227  esac
3228 +
3229 +#
3230 +# Check to make sure the static flag actually works.
3231 +#
3232 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
3233 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
3234 +  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
3235 +  $lt_tmp_static_flag,
3236 +  [],
3237 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3238  ])
3239  
3240  
3241 @@ -4979,11 +5564,12 @@ esac
3242  # ------------------------------------
3243  # See if the linker supports building shared libraries.
3244  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
3245 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3246 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
3247 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3248  ifelse([$1],[CXX],[
3249    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3250    case $host_os in
3251 -  aix4* | aix5*)
3252 +  aix[[4-9]]*)
3253      # If we're using GNU nm, then we don't want the "-C" option.
3254      # -C means demangle to AIX nm, but means don't demangle with GNU nm
3255      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
3256 @@ -4996,12 +5582,16 @@ ifelse([$1],[CXX],[
3257      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
3258    ;;
3259    cygwin* | mingw*)
3260 -    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3261 +    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
3262 +  ;;
3263 +  linux* | k*bsd*-gnu)
3264 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3265    ;;
3266    *)
3267      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3268    ;;
3269    esac
3270 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
3271  ],[
3272    runpath_var=
3273    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3274 @@ -5032,14 +5622,17 @@ ifelse([$1],[CXX],[
3275    # it will be wrapped by ` (' and `)$', so one must not match beginning or
3276    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3277    # as well as any symbol that contains `d'.
3278 -  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
3279 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
3280    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3281    # platforms (ab)use it in PIC code, but their linkers get confused if
3282    # the symbol is explicitly referenced.  Since portable code cannot
3283    # rely on this symbol name, it's probably fine to never include it in
3284    # preloaded symbol tables.
3285 +  # Exclude shared library initialization/finalization symbols.
3286 +dnl Note also adjust exclude_expsyms for C++ above.
3287    extract_expsyms_cmds=
3288 -
3289 +  # Just being paranoid about ensuring that cc_basename is set.
3290 +  _LT_CC_BASENAME([$compiler])
3291    case $host_os in
3292    cygwin* | mingw* | pw32*)
3293      # FIXME: the MSVC++ port hasn't been tested in a loooong time
3294 @@ -5049,6 +5642,10 @@ ifelse([$1],[CXX],[
3295        with_gnu_ld=no
3296      fi
3297      ;;
3298 +  interix*)
3299 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
3300 +    with_gnu_ld=yes
3301 +    ;;
3302    openbsd*)
3303      with_gnu_ld=no
3304      ;;
3305 @@ -5059,9 +5656,30 @@ ifelse([$1],[CXX],[
3306      # If archive_cmds runs LD, not CC, wlarc should be empty
3307      wlarc='${wl}'
3308  
3309 +    # Set some defaults for GNU ld with shared library support. These
3310 +    # are reset later if shared libraries are not supported. Putting them
3311 +    # here allows them to be overridden if necessary.
3312 +    runpath_var=LD_RUN_PATH
3313 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3314 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3315 +    # ancient GNU ld didn't support --whole-archive et. al.
3316 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3317 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3318 +      else
3319 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3320 +    fi
3321 +    supports_anon_versioning=no
3322 +    case `$LD -v 2>/dev/null` in
3323 +      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3324 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3325 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3326 +      *\ 2.11.*) ;; # other 2.11 versions
3327 +      *) supports_anon_versioning=yes ;;
3328 +    esac
3329 +
3330      # See if GNU ld supports shared libraries.
3331      case $host_os in
3332 -    aix3* | aix4* | aix5*)
3333 +    aix[[3-9]]*)
3334        # On AIX/PPC, the GNU linker is very broken
3335        if test "$host_cpu" != ia64; then
3336         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3337 @@ -5109,10 +5727,10 @@ EOF
3338        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3339        _LT_AC_TAGVAR(always_export_symbols, $1)=no
3340        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3341 -      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3342 +      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
3343  
3344        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3345 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3346 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3347         # If the export-symbols file already is a .def file (1st line
3348         # is EXPORTS), use it as is; otherwise, prepend...
3349         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3350 @@ -5121,13 +5739,69 @@ EOF
3351           echo EXPORTS > $output_objdir/$soname.def;
3352           cat $export_symbols >> $output_objdir/$soname.def;
3353         fi~
3354 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
3355 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3356        else
3357 -       ld_shlibs=no
3358 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3359        fi
3360        ;;
3361  
3362 -    netbsd*)
3363 +    interix[[3-9]]*)
3364 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3365 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3366 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3367 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3368 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3369 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
3370 +      # default) and relocated if they conflict, which is a slow very memory
3371 +      # consuming and fragmenting process.  To avoid this, we pick a random,
3372 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3373 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3374 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3375 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3376 +      ;;
3377 +
3378 +    gnu* | linux* | k*bsd*-gnu)
3379 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3380 +       tmp_addflag=
3381 +       case $cc_basename,$host_cpu in
3382 +       pgcc*)                          # Portland Group C compiler
3383 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3384 +         tmp_addflag=' $pic_flag'
3385 +         ;;
3386 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
3387 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3388 +         tmp_addflag=' $pic_flag -Mnomain' ;;
3389 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
3390 +         tmp_addflag=' -i_dynamic' ;;
3391 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
3392 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
3393 +       ifc* | ifort*)                  # Intel Fortran compiler
3394 +         tmp_addflag=' -nofor_main' ;;
3395 +       esac
3396 +       case `$CC -V 2>&1 | sed 5q` in
3397 +       *Sun\ C*)                       # Sun C 5.9
3398 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3399 +         tmp_sharedflag='-G' ;;
3400 +       *Sun\ F*)                       # Sun Fortran 8.3
3401 +         tmp_sharedflag='-G' ;;
3402 +       *)
3403 +         tmp_sharedflag='-shared' ;;
3404 +       esac
3405 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3406 +
3407 +       if test $supports_anon_versioning = yes; then
3408 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3409 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3410 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
3411 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3412 +       fi
3413 +       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3414 +      else
3415 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3416 +      fi
3417 +      ;;
3418 +
3419 +    netbsd* | netbsdelf*-gnu)
3420        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3421         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3422         wlarc=
3423 @@ -5137,7 +5811,7 @@ EOF
3424        fi
3425        ;;
3426  
3427 -    solaris* | sysv5*)
3428 +    solaris*)
3429        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
3430         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3431         cat <<EOF 1>&2
3432 @@ -5158,6 +5832,33 @@ EOF
3433        fi
3434        ;;
3435  
3436 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
3437 +      case `$LD -v 2>&1` in
3438 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
3439 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3440 +       cat <<_LT_EOF 1>&2
3441 +
3442 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
3443 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
3444 +*** is disabling shared libraries support.  We urge you to upgrade GNU
3445 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
3446 +*** your PATH or compiler configuration so that the native linker is
3447 +*** used, and then restart.
3448 +
3449 +_LT_EOF
3450 +       ;;
3451 +       *)
3452 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3453 +           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
3454 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
3455 +           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
3456 +         else
3457 +           _LT_AC_TAGVAR(ld_shlibs, $1)=no
3458 +         fi
3459 +       ;;
3460 +      esac
3461 +      ;;
3462 +
3463      sunos4*)
3464        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3465        wlarc=
3466 @@ -5165,31 +5866,6 @@ EOF
3467        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3468        ;;
3469  
3470 -  linux*)
3471 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3472 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3473 -       _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
3474 -      supports_anon_versioning=no
3475 -      case `$LD -v 2>/dev/null` in
3476 -        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3477 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3478 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3479 -        *\ 2.11.*) ;; # other 2.11 versions
3480 -        *) supports_anon_versioning=yes ;;
3481 -      esac
3482 -      if test $supports_anon_versioning = yes; then
3483 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3484 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3485 -$echo "local: *; };" >> $output_objdir/$libname.ver~
3486 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3487 -      else
3488 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
3489 -      fi
3490 -    else
3491 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3492 -    fi
3493 -    ;;
3494 -
3495      *)
3496        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3497         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3498 @@ -5200,16 +5876,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3499        ;;
3500      esac
3501  
3502 -    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
3503 -      runpath_var=LD_RUN_PATH
3504 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3505 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3506 -      # ancient GNU ld didn't support --whole-archive et. al.
3507 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3508 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3509 -      else
3510 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3511 -      fi
3512 +    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
3513 +      runpath_var=
3514 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3515 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3516 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3517      fi
3518    else
3519      # PORTME fill in a description of your system's linker (not GNU ld)
3520 @@ -5221,14 +5892,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3521        # Note: this linker hardcodes the directories in LIBPATH if there
3522        # are no directories specified by -L.
3523        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3524 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
3525 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
3526         # Neither direct hardcoding nor static linking is supported with a
3527         # broken collect2.
3528         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3529        fi
3530        ;;
3531  
3532 -    aix4* | aix5*)
3533 +    aix[[4-9]]*)
3534        if test "$host_cpu" = ia64; then
3535         # On IA64, the linker does run time linking by default, so we don't
3536         # have to do anything special.
3537 @@ -5248,13 +5919,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3538         # Test if we are trying to use run time linking or normal
3539         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3540         # need to do runtime linking.
3541 -       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3542 +       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3543           for ld_flag in $LDFLAGS; do
3544           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3545             aix_use_runtimelinking=yes
3546             break
3547           fi
3548           done
3549 +         ;;
3550         esac
3551  
3552         exp_sym_flag='-bexport'
3553 @@ -5273,7 +5945,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3554        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3555  
3556        if test "$GCC" = yes; then
3557 -       case $host_os in aix4.[012]|aix4.[012].*)
3558 +       case $host_os in aix4.[[012]]|aix4.[[012]].*)
3559         # We only want to do this on AIX 4.2 and lower, the check
3560         # below for broken collect2 doesn't work under 4.3+
3561           collect2name=`${CC} -print-prog-name=collect2`
3562 @@ -5281,7 +5953,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3563            strings "$collect2name" | grep resolve_lib_name >/dev/null
3564           then
3565           # We have reworked collect2
3566 -         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3567 +         :
3568           else
3569           # We have old collect2
3570           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3571 @@ -5292,8 +5964,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3572           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3573           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3574           fi
3575 +         ;;
3576         esac
3577         shared_flag='-shared'
3578 +       if test "$aix_use_runtimelinking" = yes; then
3579 +         shared_flag="$shared_flag "'${wl}-G'
3580 +       fi
3581        else
3582         # not using gcc
3583         if test "$host_cpu" = ia64; then
3584 @@ -5301,11 +5977,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3585         # chokes on -Wl,-G. The following line is correct:
3586           shared_flag='-G'
3587         else
3588 -       if test "$aix_use_runtimelinking" = yes; then
3589 +         if test "$aix_use_runtimelinking" = yes; then
3590             shared_flag='${wl}-G'
3591           else
3592             shared_flag='${wl}-bM:SRE'
3593 -       fi
3594 +         fi
3595         fi
3596        fi
3597  
3598 @@ -5319,12 +5995,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3599         # Determine the default libpath from the value encoded in an empty executable.
3600         _LT_AC_SYS_LIBPATH_AIX
3601         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3602 -       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3603 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3604         else
3605         if test "$host_cpu" = ia64; then
3606           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3607           _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3608 -         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3609 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3610         else
3611          # Determine the default libpath from the value encoded in an empty executable.
3612          _LT_AC_SYS_LIBPATH_AIX
3613 @@ -5333,13 +6009,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3614           # -berok will link without error, but may produce a broken library.
3615           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3616           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3617 -         # -bexpall does not export symbols beginning with underscore (_)
3618 -         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3619           # Exported symbols can be pulled into shared objects from archives
3620 -         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3621 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3622           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3623 -         # This is similar to how AIX traditionally builds it's shared libraries.
3624 -         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3625 +         # This is similar to how AIX traditionally builds its shared libraries.
3626 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3627         fi
3628        fi
3629        ;;
3630 @@ -5352,7 +6026,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3631        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3632        ;;
3633  
3634 -    bsdi4*)
3635 +    bsdi[[45]]*)
3636        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
3637        ;;
3638  
3639 @@ -5372,58 +6046,57 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3640        # The linker will automatically build a .lib file if we build a DLL.
3641        _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
3642        # FIXME: Should let the user specify the lib program.
3643 -      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
3644 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
3645 +      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
3646 +      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
3647        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3648        ;;
3649  
3650      darwin* | rhapsody*)
3651 -    if test "$GXX" = yes ; then
3652 -      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3653 -      case "$host_os" in
3654 -      rhapsody* | darwin1.[[012]])
3655 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3656 -       ;;
3657 -      *) # Darwin 1.3 on
3658 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3659 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3660 -      else
3661 -        case ${MACOSX_DEPLOYMENT_TARGET} in
3662 -          10.[[012]])
3663 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3664 -            ;;
3665 -          10.*)
3666 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3667 -            ;;
3668 -        esac
3669 -      fi
3670 -       ;;
3671 +      case $host_os in
3672 +        rhapsody* | darwin1.[[012]])
3673 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3674 +         ;;
3675 +       *) # Darwin 1.3 on
3676 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3677 +           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3678 +         else
3679 +           case ${MACOSX_DEPLOYMENT_TARGET} in
3680 +             10.[[012]])
3681 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3682 +               ;;
3683 +             10.*)
3684 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3685 +               ;;
3686 +           esac
3687 +         fi
3688 +         ;;
3689        esac
3690 -       lt_int_apple_cc_single_mod=no
3691 -       output_verbose_link_cmd='echo'
3692 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3693 -         lt_int_apple_cc_single_mod=yes
3694 -       fi
3695 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3696 -         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3697 -       else
3698 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3699 -      fi
3700 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3701 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3702 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3703 -          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3704 -        else
3705 -          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3706 -        fi
3707 -          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3708 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3709        _LT_AC_TAGVAR(hardcode_direct, $1)=no
3710        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3711        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3712 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3713 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3714        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3715 +    if test "$GCC" = yes ; then
3716 +       output_verbose_link_cmd='echo'
3717 +        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3718 +        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3719 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3720 +        _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}"
3721      else
3722 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3723 +      case $cc_basename in
3724 +        xlc*)
3725 +         output_verbose_link_cmd='echo'
3726 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3727 +         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3728 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3729 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3730 +          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3731 +          ;;
3732 +       *)
3733 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3734 +          ;;
3735 +      esac
3736      fi
3737        ;;
3738  
3739 @@ -5457,7 +6130,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3740        ;;
3741  
3742      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3743 -    freebsd* | kfreebsd*-gnu)
3744 +    freebsd* | dragonfly*)
3745        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3746        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3747        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3748 @@ -5480,47 +6153,62 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3749        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3750        ;;
3751  
3752 -    hpux10* | hpux11*)
3753 +    hpux10*)
3754        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3755 -       case "$host_cpu" in
3756 -       hppa*64*|ia64*)
3757 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3758 +      else
3759 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3760 +      fi
3761 +      if test "$with_gnu_ld" = no; then
3762 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3763 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3764 +
3765 +       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3766 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3767 +
3768 +       # hardcode_minus_L: Not really in the search PATH,
3769 +       # but as the default location of the library.
3770 +       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3771 +      fi
3772 +      ;;
3773 +
3774 +    hpux11*)
3775 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3776 +       case $host_cpu in
3777 +       hppa*64*)
3778           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3779           ;;
3780 +       ia64*)
3781 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3782 +         ;;
3783         *)
3784           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3785           ;;
3786         esac
3787        else
3788 -       case "$host_cpu" in
3789 -       hppa*64*|ia64*)
3790 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
3791 +       case $host_cpu in
3792 +       hppa*64*)
3793 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3794 +         ;;
3795 +       ia64*)
3796 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3797           ;;
3798         *)
3799 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3800 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3801           ;;
3802         esac
3803        fi
3804        if test "$with_gnu_ld" = no; then
3805 -       case "$host_cpu" in
3806 -       hppa*64*)
3807 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3808 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3809 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3810 +
3811 +       case $host_cpu in
3812 +       hppa*64*|ia64*)
3813           _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3814 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3815 -         _LT_AC_TAGVAR(hardcode_direct, $1)=no
3816 -         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3817 -         ;;
3818 -       ia64*)
3819 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3820           _LT_AC_TAGVAR(hardcode_direct, $1)=no
3821           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3822 -
3823 -         # hardcode_minus_L: Not really in the search PATH,
3824 -         # but as the default location of the library.
3825 -         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3826           ;;
3827         *)
3828 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3829 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3830           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3831           _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3832  
3833 @@ -5544,7 +6232,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3834        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3835        ;;
3836  
3837 -    netbsd*)
3838 +    netbsd* | netbsdelf*-gnu)
3839        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3840         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3841        else
3842 @@ -5564,23 +6252,28 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3843        ;;
3844  
3845      openbsd*)
3846 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3847 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3848 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3849 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3850 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3851 -       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3852 +      if test -f /usr/libexec/ld.so; then
3853 +       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3854 +       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3855 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3856 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3857 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
3858 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3859 +         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3860 +       else
3861 +         case $host_os in
3862 +          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
3863 +            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3864 +            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3865 +            ;;
3866 +          *)
3867 +            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3868 +            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3869 +            ;;
3870 +         esac
3871 +        fi
3872        else
3873 -       case $host_os in
3874 -        openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
3875 -          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3876 -          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3877 -          ;;
3878 -        *)
3879 -          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3880 -          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3881 -          ;;
3882 -       esac
3883 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3884        fi
3885        ;;
3886  
3887 @@ -5613,7 +6306,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3888         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3889         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3890         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3891 -       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
3892 +       $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'
3893  
3894         # Both c and cxx compiler support -rpath directly
3895         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3896 @@ -5621,21 +6314,15 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3897        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3898        ;;
3899  
3900 -    sco3.2v5*)
3901 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3902 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3903 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3904 -      runpath_var=LD_RUN_PATH
3905 -      hardcode_runpath_var=yes
3906 -      ;;
3907 -
3908      solaris*)
3909        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
3910        if test "$GCC" = yes; then
3911 +       wlarc='${wl}'
3912         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3913         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3914           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
3915        else
3916 +       wlarc=''
3917         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3918         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3919         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3920 @@ -5644,8 +6331,17 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3921        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3922        case $host_os in
3923        solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3924 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3925 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
3926 +      *)
3927 +       # The compiler driver will combine and reorder linker options,
3928 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
3929 +       # but is careful enough not to reorder.
3930 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
3931 +       if test "$GCC" = yes; then
3932 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3933 +       else
3934 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3935 +       fi
3936 +       ;;
3937        esac
3938        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3939        ;;
3940 @@ -5702,36 +6398,45 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3941        fi
3942        ;;
3943  
3944 -    sysv4.2uw2*)
3945 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3946 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3947 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3948 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3949 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3950 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3951        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3952 -      hardcode_runpath_var=yes
3953 -      runpath_var=LD_RUN_PATH
3954 -      ;;
3955 +      runpath_var='LD_RUN_PATH'
3956  
3957 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
3958 -      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
3959        if test "$GCC" = yes; then
3960 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3961 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3962 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3963        else
3964 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3965 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3966 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3967        fi
3968 -      runpath_var='LD_RUN_PATH'
3969 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3970        ;;
3971  
3972 -    sysv5*)
3973 -      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
3974 -      # $CC -shared without GNU ld will not create a library from C++
3975 -      # object files and a static libstdc++, better avoid it by now
3976 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3977 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3978 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3979 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3980 +    sysv5* | sco3.2v5* | sco5v6*)
3981 +      # Note: We can NOT use -z defs as we might desire, because we do not
3982 +      # link with -lc, and that would cause any symbols used from libc to
3983 +      # always be unresolved, which means just about no library would
3984 +      # ever link correctly.  If we're not using GNU ld we use -z text
3985 +      # though, which does catch some bad symbols but isn't as heavy-handed
3986 +      # as -z defs.
3987 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3988 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3989 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3990        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3991 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3992 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3993 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3994 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3995        runpath_var='LD_RUN_PATH'
3996 +
3997 +      if test "$GCC" = yes; then
3998 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3999 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4000 +      else
4001 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4002 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4003 +      fi
4004        ;;
4005  
4006      uts4*)
4007 @@ -5749,11 +6454,6 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
4008  AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4009  test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4010  
4011 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4012 -if test "$GCC" = yes; then
4013 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4014 -fi
4015 -
4016  #
4017  # Do we need to explicitly link libc?
4018  #
4019 @@ -5773,7 +6473,7 @@ x|xyes)
4020        # to ld, don't add -lc before -lgcc.
4021        AC_MSG_CHECKING([whether -lc should be explicitly linked in])
4022        $rm conftest*
4023 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4024 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4025  
4026        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
4027          soname=conftest
4028 @@ -5781,6 +6481,7 @@ x|xyes)
4029          libobjs=conftest.$ac_objext
4030          deplibs=
4031          wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4032 +       pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4033          compiler_flags=-v
4034          linker_flags=-v
4035          verstring=
4036 @@ -5875,6 +6576,30 @@ AC_DEFUN([LT_AC_PROG_RC],
4037  [AC_CHECK_TOOL(RC, windres, no)
4038  ])
4039  
4040 +
4041 +# Cheap backport of AS_EXECUTABLE_P and required macros
4042 +# from Autoconf 2.59; we should not use $as_executable_p directly.
4043 +
4044 +# _AS_TEST_PREPARE
4045 +# ----------------
4046 +m4_ifndef([_AS_TEST_PREPARE],
4047 +[m4_defun([_AS_TEST_PREPARE],
4048 +[if test -x / >/dev/null 2>&1; then
4049 +  as_executable_p='test -x'
4050 +else
4051 +  as_executable_p='test -f'
4052 +fi
4053 +])])# _AS_TEST_PREPARE
4054 +
4055 +# AS_EXECUTABLE_P
4056 +# ---------------
4057 +# Check whether a file is executable.
4058 +m4_ifndef([AS_EXECUTABLE_P],
4059 +[m4_defun([AS_EXECUTABLE_P],
4060 +[AS_REQUIRE([_AS_TEST_PREPARE])dnl
4061 +$as_executable_p $1[]dnl
4062 +])])# AS_EXECUTABLE_P
4063 +
4064  # NOTE: This macro has been submitted for inclusion into   #
4065  #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
4066  #  a released version of Autoconf we should remove this    #
4067 @@ -5895,18 +6620,19 @@ do
4068    test -z "$as_dir" && as_dir=.
4069    for lt_ac_prog in sed gsed; do
4070      for ac_exec_ext in '' $ac_executable_extensions; do
4071 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4072 +      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
4073          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4074        fi
4075      done
4076    done
4077  done
4078 +IFS=$as_save_IFS
4079  lt_ac_max=0
4080  lt_ac_count=0
4081  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4082  # along with /bin/sed that truncates output.
4083  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4084 -  test ! -f $lt_ac_sed && break
4085 +  test ! -f $lt_ac_sed && continue
4086    cat /dev/null > conftest.in
4087    lt_ac_count=0
4088    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4089 @@ -5931,28 +6657,17 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4090      fi
4091    done
4092  done
4093 -SED=$lt_cv_path_SED
4094  ])
4095 +SED=$lt_cv_path_SED
4096 +AC_SUBST([SED])
4097  AC_MSG_RESULT([$SED])
4098  ])
4099  
4100 -#                                                        -*- Autoconf -*-
4101 -# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
4102 -# Generated from amversion.in; do not edit by hand.
4103 -
4104 -# This program is free software; you can redistribute it and/or modify
4105 -# it under the terms of the GNU General Public License as published by
4106 -# the Free Software Foundation; either version 2, or (at your option)
4107 -# any later version.
4108 -
4109 -# This program is distributed in the hope that it will be useful,
4110 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4111 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4112 -# GNU General Public License for more details.
4113 -
4114 -# You should have received a copy of the GNU General Public License
4115 -# along with this program; if not, write to the Free Software
4116 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4117 +# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
4118 +#
4119 +# This file is free software; the Free Software Foundation
4120 +# gives unlimited permission to copy and/or distribute it,
4121 +# with or without modifications, as long as this notice is preserved.
4122  
4123  # AM_AUTOMAKE_VERSION(VERSION)
4124  # ----------------------------
4125 @@ -5965,26 +6680,15 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
4126  # Call AM_AUTOMAKE_VERSION so it can be traced.
4127  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
4128  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
4129 -        [AM_AUTOMAKE_VERSION([1.9.2])])
4130 -
4131 -# AM_AUX_DIR_EXPAND
4132 +        [AM_AUTOMAKE_VERSION([1.9.6])])
4133  
4134 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4135 +# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
4136  
4137 -# This program is free software; you can redistribute it and/or modify
4138 -# it under the terms of the GNU General Public License as published by
4139 -# the Free Software Foundation; either version 2, or (at your option)
4140 -# any later version.
4141 -
4142 -# This program is distributed in the hope that it will be useful,
4143 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4144 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4145 -# GNU General Public License for more details.
4146 -
4147 -# You should have received a copy of the GNU General Public License
4148 -# along with this program; if not, write to the Free Software
4149 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4150 -# 02111-1307, USA.
4151 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4152 +#
4153 +# This file is free software; the Free Software Foundation
4154 +# gives unlimited permission to copy and/or distribute it,
4155 +# with or without modifications, as long as this notice is preserved.
4156  
4157  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
4158  # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
4159 @@ -6031,26 +6735,16 @@ AC_PREREQ([2.50])dnl
4160  am_aux_dir=`cd $ac_aux_dir && pwd`
4161  ])
4162  
4163 -# AM_CONDITIONAL                                              -*- Autoconf -*-
4164 -
4165 -# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
4166 -
4167 -# This program is free software; you can redistribute it and/or modify
4168 -# it under the terms of the GNU General Public License as published by
4169 -# the Free Software Foundation; either version 2, or (at your option)
4170 -# any later version.
4171 +# AM_CONDITIONAL                                            -*- Autoconf -*-
4172  
4173 -# This program is distributed in the hope that it will be useful,
4174 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4175 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4176 -# GNU General Public License for more details.
4177 -
4178 -# You should have received a copy of the GNU General Public License
4179 -# along with this program; if not, write to the Free Software
4180 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4181 -# 02111-1307, USA.
4182 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
4183 +# Free Software Foundation, Inc.
4184 +#
4185 +# This file is free software; the Free Software Foundation
4186 +# gives unlimited permission to copy and/or distribute it,
4187 +# with or without modifications, as long as this notice is preserved.
4188  
4189 -# serial 6
4190 +# serial 7
4191  
4192  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
4193  # -------------------------------------
4194 @@ -6074,26 +6768,15 @@ AC_CONFIG_COMMANDS_PRE(
4195  Usually this means the macro was only invoked conditionally.]])
4196  fi])])
4197  
4198 -# serial 7                                             -*- Autoconf -*-
4199  
4200 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
4201 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4202  # Free Software Foundation, Inc.
4203 +#
4204 +# This file is free software; the Free Software Foundation
4205 +# gives unlimited permission to copy and/or distribute it,
4206 +# with or without modifications, as long as this notice is preserved.
4207  
4208 -# This program is free software; you can redistribute it and/or modify
4209 -# it under the terms of the GNU General Public License as published by
4210 -# the Free Software Foundation; either version 2, or (at your option)
4211 -# any later version.
4212 -
4213 -# This program is distributed in the hope that it will be useful,
4214 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4215 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4216 -# GNU General Public License for more details.
4217 -
4218 -# You should have received a copy of the GNU General Public License
4219 -# along with this program; if not, write to the Free Software
4220 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4221 -# 02111-1307, USA.
4222 -
4223 +# serial 8
4224  
4225  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
4226  # written in clear, in which case automake, when reading aclocal.m4,
4227 @@ -6102,7 +6785,6 @@ fi])])
4228  # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
4229  
4230  
4231 -
4232  # _AM_DEPENDENCIES(NAME)
4233  # ----------------------
4234  # See how the compiler implements dependency checking.
4235 @@ -6242,27 +6924,16 @@ AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
4236  AC_SUBST([AMDEPBACKSLASH])
4237  ])
4238  
4239 -# Generate code to set up dependency tracking.   -*- Autoconf -*-
4240 -
4241 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
4242 -#   Free Software Foundation, Inc.
4243 -
4244 -# This program is free software; you can redistribute it and/or modify
4245 -# it under the terms of the GNU General Public License as published by
4246 -# the Free Software Foundation; either version 2, or (at your option)
4247 -# any later version.
4248 -
4249 -# This program is distributed in the hope that it will be useful,
4250 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4251 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4252 -# GNU General Public License for more details.
4253 +# Generate code to set up dependency tracking.              -*- Autoconf -*-
4254  
4255 -# You should have received a copy of the GNU General Public License
4256 -# along with this program; if not, write to the Free Software
4257 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4258 -# 02111-1307, USA.
4259 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4260 +# Free Software Foundation, Inc.
4261 +#
4262 +# This file is free software; the Free Software Foundation
4263 +# gives unlimited permission to copy and/or distribute it,
4264 +# with or without modifications, as long as this notice is preserved.
4265  
4266 -#serial 2
4267 +#serial 3
4268  
4269  # _AM_OUTPUT_DEPENDENCY_COMMANDS
4270  # ------------------------------
4271 @@ -6321,54 +6992,31 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
4272       [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
4273  ])
4274  
4275 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
4276 -
4277 -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
4278 -
4279 -# This program is free software; you can redistribute it and/or modify
4280 -# it under the terms of the GNU General Public License as published by
4281 -# the Free Software Foundation; either version 2, or (at your option)
4282 -# any later version.
4283 -
4284 -# This program is distributed in the hope that it will be useful,
4285 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4286 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4287 -# GNU General Public License for more details.
4288 -
4289 -# You should have received a copy of the GNU General Public License
4290 -# along with this program; if not, write to the Free Software
4291 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4292 -# 02111-1307, USA.
4293 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
4294 +# Free Software Foundation, Inc.
4295 +#
4296 +# This file is free software; the Free Software Foundation
4297 +# gives unlimited permission to copy and/or distribute it,
4298 +# with or without modifications, as long as this notice is preserved.
4299  
4300 -# serial 7
4301 +# serial 8
4302  
4303  # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
4304  AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
4305  
4306 -# Do all the work for Automake.                            -*- Autoconf -*-
4307 -
4308 -# This macro actually does too much some checks are only needed if
4309 -# your package does certain things.  But this isn't really a big deal.
4310 +# Do all the work for Automake.                             -*- Autoconf -*-
4311  
4312 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4313 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4314  # Free Software Foundation, Inc.
4315 +#
4316 +# This file is free software; the Free Software Foundation
4317 +# gives unlimited permission to copy and/or distribute it,
4318 +# with or without modifications, as long as this notice is preserved.
4319  
4320 -# This program is free software; you can redistribute it and/or modify
4321 -# it under the terms of the GNU General Public License as published by
4322 -# the Free Software Foundation; either version 2, or (at your option)
4323 -# any later version.
4324 -
4325 -# This program is distributed in the hope that it will be useful,
4326 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4327 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4328 -# GNU General Public License for more details.
4329 -
4330 -# You should have received a copy of the GNU General Public License
4331 -# along with this program; if not, write to the Free Software
4332 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4333 -# 02111-1307, USA.
4334 +# serial 12
4335  
4336 -# serial 11
4337 +# This macro actually does too much.  Some checks are only needed if
4338 +# your package does certain things.  But this isn't really a big deal.
4339  
4340  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
4341  # AM_INIT_AUTOMAKE([OPTIONS])
4342 @@ -6470,51 +7118,27 @@ for _am_header in $config_headers :; do
4343  done
4344  echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
4345  
4346 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4347 +#
4348 +# This file is free software; the Free Software Foundation
4349 +# gives unlimited permission to copy and/or distribute it,
4350 +# with or without modifications, as long as this notice is preserved.
4351 +
4352  # AM_PROG_INSTALL_SH
4353  # ------------------
4354  # Define $install_sh.
4355 -
4356 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4357 -
4358 -# This program is free software; you can redistribute it and/or modify
4359 -# it under the terms of the GNU General Public License as published by
4360 -# the Free Software Foundation; either version 2, or (at your option)
4361 -# any later version.
4362 -
4363 -# This program is distributed in the hope that it will be useful,
4364 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4365 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4366 -# GNU General Public License for more details.
4367 -
4368 -# You should have received a copy of the GNU General Public License
4369 -# along with this program; if not, write to the Free Software
4370 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4371 -# 02111-1307, USA.
4372 -
4373  AC_DEFUN([AM_PROG_INSTALL_SH],
4374  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
4375  install_sh=${install_sh-"$am_aux_dir/install-sh"}
4376  AC_SUBST(install_sh)])
4377  
4378 -#                                                          -*- Autoconf -*-
4379 -# Copyright (C) 2003  Free Software Foundation, Inc.
4380 -
4381 -# This program is free software; you can redistribute it and/or modify
4382 -# it under the terms of the GNU General Public License as published by
4383 -# the Free Software Foundation; either version 2, or (at your option)
4384 -# any later version.
4385 -
4386 -# This program is distributed in the hope that it will be useful,
4387 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4388 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4389 -# GNU General Public License for more details.
4390 -
4391 -# You should have received a copy of the GNU General Public License
4392 -# along with this program; if not, write to the Free Software
4393 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4394 -# 02111-1307, USA.
4395 +# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
4396 +#
4397 +# This file is free software; the Free Software Foundation
4398 +# gives unlimited permission to copy and/or distribute it,
4399 +# with or without modifications, as long as this notice is preserved.
4400  
4401 -# serial 1
4402 +# serial 2
4403  
4404  # Check whether the underlying file-system supports filenames
4405  # with a leading dot.  For instance MS-DOS doesn't.
4406 @@ -6529,28 +7153,17 @@ fi
4407  rmdir .tst 2>/dev/null
4408  AC_SUBST([am__leading_dot])])
4409  
4410 -# Add --enable-maintainer-mode option to configure.
4411 +# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
4412  # From Jim Meyering
4413  
4414 -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
4415 +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
4416  # Free Software Foundation, Inc.
4417 +#
4418 +# This file is free software; the Free Software Foundation
4419 +# gives unlimited permission to copy and/or distribute it,
4420 +# with or without modifications, as long as this notice is preserved.
4421  
4422 -# This program is free software; you can redistribute it and/or modify
4423 -# it under the terms of the GNU General Public License as published by
4424 -# the Free Software Foundation; either version 2, or (at your option)
4425 -# any later version.
4426 -
4427 -# This program is distributed in the hope that it will be useful,
4428 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4429 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4430 -# GNU General Public License for more details.
4431 -
4432 -# You should have received a copy of the GNU General Public License
4433 -# along with this program; if not, write to the Free Software
4434 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4435 -# 02111-1307, USA.
4436 -
4437 -# serial 3
4438 +# serial 4
4439  
4440  AC_DEFUN([AM_MAINTAINER_MODE],
4441  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4442 @@ -6569,26 +7182,15 @@ AC_DEFUN([AM_MAINTAINER_MODE],
4443  
4444  AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
4445  
4446 -# Check to see how 'make' treats includes.     -*- Autoconf -*-
4447 -
4448 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4449 -
4450 -# This program is free software; you can redistribute it and/or modify
4451 -# it under the terms of the GNU General Public License as published by
4452 -# the Free Software Foundation; either version 2, or (at your option)
4453 -# any later version.
4454 -
4455 -# This program is distributed in the hope that it will be useful,
4456 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4457 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4458 -# GNU General Public License for more details.
4459 +# Check to see how 'make' treats includes.                 -*- Autoconf -*-
4460  
4461 -# You should have received a copy of the GNU General Public License
4462 -# along with this program; if not, write to the Free Software
4463 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4464 -# 02111-1307, USA.
4465 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
4466 +#
4467 +# This file is free software; the Free Software Foundation
4468 +# gives unlimited permission to copy and/or distribute it,
4469 +# with or without modifications, as long as this notice is preserved.
4470  
4471 -# serial 2
4472 +# serial 3
4473  
4474  # AM_MAKE_INCLUDE()
4475  # -----------------
4476 @@ -6632,27 +7234,16 @@ AC_MSG_RESULT([$_am_result])
4477  rm -f confinc confmf
4478  ])
4479  
4480 -#  -*- Autoconf -*-
4481 -
4482 -
4483 -# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
4484 -
4485 -# This program is free software; you can redistribute it and/or modify
4486 -# it under the terms of the GNU General Public License as published by
4487 -# the Free Software Foundation; either version 2, or (at your option)
4488 -# any later version.
4489 -
4490 -# This program is distributed in the hope that it will be useful,
4491 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4492 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4493 -# GNU General Public License for more details.
4494 +# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
4495  
4496 -# You should have received a copy of the GNU General Public License
4497 -# along with this program; if not, write to the Free Software
4498 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4499 -# 02111-1307, USA.
4500 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
4501 +# Free Software Foundation, Inc.
4502 +#
4503 +# This file is free software; the Free Software Foundation
4504 +# gives unlimited permission to copy and/or distribute it,
4505 +# with or without modifications, as long as this notice is preserved.
4506  
4507 -# serial 3
4508 +# serial 4
4509  
4510  # AM_MISSING_PROG(NAME, PROGRAM)
4511  # ------------------------------
4512 @@ -6678,27 +7269,16 @@ else
4513  fi
4514  ])
4515  
4516 +# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
4517 +#
4518 +# This file is free software; the Free Software Foundation
4519 +# gives unlimited permission to copy and/or distribute it,
4520 +# with or without modifications, as long as this notice is preserved.
4521 +
4522  # AM_PROG_MKDIR_P
4523  # ---------------
4524  # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
4525 -
4526 -# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
4527 -
4528 -# This program is free software; you can redistribute it and/or modify
4529 -# it under the terms of the GNU General Public License as published by
4530 -# the Free Software Foundation; either version 2, or (at your option)
4531 -# any later version.
4532 -
4533 -# This program is distributed in the hope that it will be useful,
4534 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4535 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4536 -# GNU General Public License for more details.
4537 -
4538 -# You should have received a copy of the GNU General Public License
4539 -# along with this program; if not, write to the Free Software
4540 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4541 -# 02111-1307, USA.
4542 -
4543 +#
4544  # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
4545  # created by `make install' are always world readable, even if the
4546  # installer happens to have an overly restrictive umask (e.g. 077).
4547 @@ -6752,26 +7332,15 @@ else
4548  fi
4549  AC_SUBST([mkdir_p])])
4550  
4551 -# Helper functions for option handling.                    -*- Autoconf -*-
4552 -
4553 -# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
4554 -
4555 -# This program is free software; you can redistribute it and/or modify
4556 -# it under the terms of the GNU General Public License as published by
4557 -# the Free Software Foundation; either version 2, or (at your option)
4558 -# any later version.
4559 -
4560 -# This program is distributed in the hope that it will be useful,
4561 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4562 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4563 -# GNU General Public License for more details.
4564 +# Helper functions for option handling.                     -*- Autoconf -*-
4565  
4566 -# You should have received a copy of the GNU General Public License
4567 -# along with this program; if not, write to the Free Software
4568 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4569 -# 02111-1307, USA.
4570 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
4571 +#
4572 +# This file is free software; the Free Software Foundation
4573 +# gives unlimited permission to copy and/or distribute it,
4574 +# with or without modifications, as long as this notice is preserved.
4575  
4576 -# serial 2
4577 +# serial 3
4578  
4579  # _AM_MANGLE_OPTION(NAME)
4580  # -----------------------
4581 @@ -6796,28 +7365,16 @@ AC_DEFUN([_AM_SET_OPTIONS],
4582  AC_DEFUN([_AM_IF_OPTION],
4583  [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
4584  
4585 -#
4586 -# Check to make sure that the build environment is sane.
4587 -#
4588 -
4589 -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
4590 +# Check to make sure that the build environment is sane.    -*- Autoconf -*-
4591  
4592 -# This program is free software; you can redistribute it and/or modify
4593 -# it under the terms of the GNU General Public License as published by
4594 -# the Free Software Foundation; either version 2, or (at your option)
4595 -# any later version.
4596 -
4597 -# This program is distributed in the hope that it will be useful,
4598 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4599 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4600 -# GNU General Public License for more details.
4601 -
4602 -# You should have received a copy of the GNU General Public License
4603 -# along with this program; if not, write to the Free Software
4604 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4605 -# 02111-1307, USA.
4606 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
4607 +# Free Software Foundation, Inc.
4608 +#
4609 +# This file is free software; the Free Software Foundation
4610 +# gives unlimited permission to copy and/or distribute it,
4611 +# with or without modifications, as long as this notice is preserved.
4612  
4613 -# serial 3
4614 +# serial 4
4615  
4616  # AM_SANITY_CHECK
4617  # ---------------
4618 @@ -6860,25 +7417,14 @@ Check your system clock])
4619  fi
4620  AC_MSG_RESULT(yes)])
4621  
4622 -# AM_PROG_INSTALL_STRIP
4623 -
4624 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4625 -
4626 -# This program is free software; you can redistribute it and/or modify
4627 -# it under the terms of the GNU General Public License as published by
4628 -# the Free Software Foundation; either version 2, or (at your option)
4629 -# any later version.
4630 -
4631 -# This program is distributed in the hope that it will be useful,
4632 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4633 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4634 -# GNU General Public License for more details.
4635 -
4636 -# You should have received a copy of the GNU General Public License
4637 -# along with this program; if not, write to the Free Software
4638 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4639 -# 02111-1307, USA.
4640 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4641 +#
4642 +# This file is free software; the Free Software Foundation
4643 +# gives unlimited permission to copy and/or distribute it,
4644 +# with or without modifications, as long as this notice is preserved.
4645  
4646 +# AM_PROG_INSTALL_STRIP
4647 +# ---------------------
4648  # One issue with vendor `install' (even GNU) is that you can't
4649  # specify the program used to strip binaries.  This is especially
4650  # annoying in cross-compiling environments, where the build's strip
4651 @@ -6901,25 +7447,13 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
4652  
4653  # Check how to create a tarball.                            -*- Autoconf -*-
4654  
4655 -# Copyright (C) 2004  Free Software Foundation, Inc.
4656 -
4657 -# This program is free software; you can redistribute it and/or modify
4658 -# it under the terms of the GNU General Public License as published by
4659 -# the Free Software Foundation; either version 2, or (at your option)
4660 -# any later version.
4661 -
4662 -# This program is distributed in the hope that it will be useful,
4663 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4664 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4665 -# GNU General Public License for more details.
4666 -
4667 -# You should have received a copy of the GNU General Public License
4668 -# along with this program; if not, write to the Free Software
4669 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4670 -# 02111-1307, USA.
4671 -
4672 -# serial 1
4673 +# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
4674 +#
4675 +# This file is free software; the Free Software Foundation
4676 +# gives unlimited permission to copy and/or distribute it,
4677 +# with or without modifications, as long as this notice is preserved.
4678  
4679 +# serial 2
4680  
4681  # _AM_PROG_TAR(FORMAT)
4682  # --------------------
4683 --- ./aux/config.guess
4684 +++ ./aux/config.guess
4685 @@ -1,9 +1,10 @@
4686  #! /bin/sh
4687  # Attempt to guess a canonical system name.
4688  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4689 -#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4690 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4691 +#   Free Software Foundation, Inc.
4692  
4693 -timestamp='2003-06-17'
4694 +timestamp='2008-01-23'
4695  
4696  # This file is free software; you can redistribute it and/or modify it
4697  # under the terms of the GNU General Public License as published by
4698 @@ -17,13 +18,15 @@ timestamp='2003-06-17'
4699  #
4700  # You should have received a copy of the GNU General Public License
4701  # along with this program; if not, write to the Free Software
4702 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4703 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
4704 +# 02110-1301, USA.
4705  #
4706  # As a special exception to the GNU General Public License, if you
4707  # distribute this file as part of a program that contains a
4708  # configuration script generated by Autoconf, you may include it under
4709  # the same distribution terms that you use for the rest of that program.
4710  
4711 +
4712  # Originally written by Per Bothner <per@bothner.com>.
4713  # Please send patches to <config-patches@gnu.org>.  Submit a context
4714  # diff and a properly formatted ChangeLog entry.
4715 @@ -53,8 +56,8 @@ version="\
4716  GNU config.guess ($timestamp)
4717  
4718  Originally written by Per Bothner.
4719 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4720 -Free Software Foundation, Inc.
4721 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
4722 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4723  
4724  This is free software; see the source for copying conditions.  There is NO
4725  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4726 @@ -66,11 +69,11 @@ Try \`$me --help' for more information."
4727  while test $# -gt 0 ; do
4728    case $1 in
4729      --time-stamp | --time* | -t )
4730 -       echo "$timestamp" ; exit 0 ;;
4731 +       echo "$timestamp" ; exit ;;
4732      --version | -v )
4733 -       echo "$version" ; exit 0 ;;
4734 +       echo "$version" ; exit ;;
4735      --help | --h* | -h )
4736 -       echo "$usage"; exit 0 ;;
4737 +       echo "$usage"; exit ;;
4738      -- )     # Stop option processing
4739         shift; break ;;
4740      - )        # Use stdin as input.
4741 @@ -104,7 +107,7 @@ set_cc_for_build='
4742  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
4743  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
4744  : ${TMPDIR=/tmp} ;
4745 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4746 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4747   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
4748   { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
4749   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
4750 @@ -123,7 +126,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
4751         ;;
4752   ,,*)   CC_FOR_BUILD=$CC ;;
4753   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
4754 -esac ;'
4755 +esac ; set_cc_for_build= ;'
4756  
4757  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
4758  # (ghazi@noc.rutgers.edu 1994-08-24)
4759 @@ -136,13 +139,6 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
4760  UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
4761  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
4762  
4763 -## for Red Hat Linux
4764 -if test -f /etc/redhat-release ; then
4765 -    VENDOR=redhat ;
4766 -else
4767 -    VENDOR= ;
4768 -fi
4769 -
4770  # Note: order is significant - the case branches are not exclusive.
4771  
4772  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4773 @@ -165,6 +161,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4774             arm*) machine=arm-unknown ;;
4775             sh3el) machine=shl-unknown ;;
4776             sh3eb) machine=sh-unknown ;;
4777 +           sh5el) machine=sh5le-unknown ;;
4778             *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
4779         esac
4780         # The Operating System including object format, if it has switched
4781 @@ -203,50 +200,32 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4782         # contains redundant information, the shorter form:
4783         # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
4784         echo "${machine}-${os}${release}"
4785 -       exit 0 ;;
4786 -    amiga:OpenBSD:*:*)
4787 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4788 -       exit 0 ;;
4789 -    arc:OpenBSD:*:*)
4790 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4791 -       exit 0 ;;
4792 -    hp300:OpenBSD:*:*)
4793 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4794 -       exit 0 ;;
4795 -    mac68k:OpenBSD:*:*)
4796 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4797 -       exit 0 ;;
4798 -    macppc:OpenBSD:*:*)
4799 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
4800 -       exit 0 ;;
4801 -    mvme68k:OpenBSD:*:*)
4802 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4803 -       exit 0 ;;
4804 -    mvme88k:OpenBSD:*:*)
4805 -       echo m88k-unknown-openbsd${UNAME_RELEASE}
4806 -       exit 0 ;;
4807 -    mvmeppc:OpenBSD:*:*)
4808 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
4809 -       exit 0 ;;
4810 -    pmax:OpenBSD:*:*)
4811 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4812 -       exit 0 ;;
4813 -    sgi:OpenBSD:*:*)
4814 -       echo mipseb-unknown-openbsd${UNAME_RELEASE}
4815 -       exit 0 ;;
4816 -    sun3:OpenBSD:*:*)
4817 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4818 -       exit 0 ;;
4819 -    wgrisc:OpenBSD:*:*)
4820 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4821 -       exit 0 ;;
4822 +       exit ;;
4823      *:OpenBSD:*:*)
4824 -       echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
4825 -       exit 0 ;;
4826 +       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
4827 +       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
4828 +       exit ;;
4829 +    *:ekkoBSD:*:*)
4830 +       echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
4831 +       exit ;;
4832 +    *:SolidBSD:*:*)
4833 +       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
4834 +       exit ;;
4835 +    macppc:MirBSD:*:*)
4836 +       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
4837 +       exit ;;
4838 +    *:MirBSD:*:*)
4839 +       echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
4840 +       exit ;;
4841      alpha:OSF1:*:*)
4842 -       if test $UNAME_RELEASE = "V4.0"; then
4843 +       case $UNAME_RELEASE in
4844 +       *4.0)
4845                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
4846 -       fi
4847 +               ;;
4848 +       *5.*)
4849 +               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
4850 +               ;;
4851 +       esac
4852         # According to Compaq, /usr/sbin/psrinfo has been available on
4853         # OSF/1 and Tru64 systems produced since 1995.  I hope that
4854         # covers most systems running today.  This code pipes the CPU
4855 @@ -284,42 +263,49 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4856             "EV7.9 (21364A)")
4857                 UNAME_MACHINE="alphaev79" ;;
4858         esac
4859 +       # A Pn.n version is a patched version.
4860         # A Vn.n version is a released version.
4861         # A Tn.n version is a released field test version.
4862         # A Xn.n version is an unreleased experimental baselevel.
4863         # 1.2 uses "1.2" for uname -r.
4864 -       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4865 -       exit 0 ;;
4866 -    Alpha*:OpenVMS:*:*)
4867 -       echo alpha-hp-vms
4868 -       exit 0 ;;
4869 +       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4870 +       exit ;;
4871      Alpha\ *:Windows_NT*:*)
4872         # How do we know it's Interix rather than the generic POSIX subsystem?
4873         # Should we change UNAME_MACHINE based on the output of uname instead
4874         # of the specific Alpha model?
4875         echo alpha-pc-interix
4876 -       exit 0 ;;
4877 +       exit ;;
4878      21064:Windows_NT:50:3)
4879         echo alpha-dec-winnt3.5
4880 -       exit 0 ;;
4881 +       exit ;;
4882      Amiga*:UNIX_System_V:4.0:*)
4883         echo m68k-unknown-sysv4
4884 -       exit 0;;
4885 +       exit ;;
4886      *:[Aa]miga[Oo][Ss]:*:*)
4887         echo ${UNAME_MACHINE}-unknown-amigaos
4888 -       exit 0 ;;
4889 +       exit ;;
4890      *:[Mm]orph[Oo][Ss]:*:*)
4891         echo ${UNAME_MACHINE}-unknown-morphos
4892 -       exit 0 ;;
4893 +       exit ;;
4894      *:OS/390:*:*)
4895         echo i370-ibm-openedition
4896 -       exit 0 ;;
4897 +       exit ;;
4898 +    *:z/VM:*:*)
4899 +       echo s390-ibm-zvmoe
4900 +       exit ;;
4901 +    *:OS400:*:*)
4902 +        echo powerpc-ibm-os400
4903 +       exit ;;
4904      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
4905         echo arm-acorn-riscix${UNAME_RELEASE}
4906 -       exit 0;;
4907 +       exit ;;
4908 +    arm:riscos:*:*|arm:RISCOS:*:*)
4909 +       echo arm-unknown-riscos
4910 +       exit ;;
4911      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
4912         echo hppa1.1-hitachi-hiuxmpp
4913 -       exit 0;;
4914 +       exit ;;
4915      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
4916         # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
4917         if test "`(/bin/universe) 2>/dev/null`" = att ; then
4918 @@ -327,32 +313,32 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4919         else
4920                 echo pyramid-pyramid-bsd
4921         fi
4922 -       exit 0 ;;
4923 +       exit ;;
4924      NILE*:*:*:dcosx)
4925         echo pyramid-pyramid-svr4
4926 -       exit 0 ;;
4927 +       exit ;;
4928      DRS?6000:unix:4.0:6*)
4929         echo sparc-icl-nx6
4930 -       exit 0 ;;
4931 -    DRS?6000:UNIX_SV:4.2*:7*)
4932 +       exit ;;
4933 +    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
4934         case `/usr/bin/uname -p` in
4935 -           sparc) echo sparc-icl-nx7 && exit 0 ;;
4936 +           sparc) echo sparc-icl-nx7; exit ;;
4937         esac ;;
4938      sun4H:SunOS:5.*:*)
4939         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4940 -       exit 0 ;;
4941 +       exit ;;
4942      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
4943         echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4944 -       exit 0 ;;
4945 -    i86pc:SunOS:5.*:*)
4946 +       exit ;;
4947 +    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
4948         echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4949 -       exit 0 ;;
4950 +       exit ;;
4951      sun4*:SunOS:6*:*)
4952         # According to config.sub, this is the proper way to canonicalize
4953         # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
4954         # it's likely to be more like Solaris than SunOS4.
4955         echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4956 -       exit 0 ;;
4957 +       exit ;;
4958      sun4*:SunOS:*:*)
4959         case "`/usr/bin/arch -k`" in
4960             Series*|S4*)
4961 @@ -361,10 +347,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4962         esac
4963         # Japanese Language versions have a version number like `4.1.3-JL'.
4964         echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
4965 -       exit 0 ;;
4966 +       exit ;;
4967      sun3*:SunOS:*:*)
4968         echo m68k-sun-sunos${UNAME_RELEASE}
4969 -       exit 0 ;;
4970 +       exit ;;
4971      sun*:*:4.2BSD:*)
4972         UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4973         test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
4974 @@ -376,10 +362,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4975                 echo sparc-sun-sunos${UNAME_RELEASE}
4976                 ;;
4977         esac
4978 -       exit 0 ;;
4979 +       exit ;;
4980      aushp:SunOS:*:*)
4981         echo sparc-auspex-sunos${UNAME_RELEASE}
4982 -       exit 0 ;;
4983 +       exit ;;
4984      # The situation for MiNT is a little confusing.  The machine name
4985      # can be virtually everything (everything which is not
4986      # "atarist" or "atariste" at least should have a processor
4987 @@ -390,37 +376,40 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4988      # be no problem.
4989      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
4990          echo m68k-atari-mint${UNAME_RELEASE}
4991 -       exit 0 ;;
4992 +       exit ;;
4993      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
4994         echo m68k-atari-mint${UNAME_RELEASE}
4995 -        exit 0 ;;
4996 +        exit ;;
4997      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
4998          echo m68k-atari-mint${UNAME_RELEASE}
4999 -       exit 0 ;;
5000 +       exit ;;
5001      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
5002          echo m68k-milan-mint${UNAME_RELEASE}
5003 -        exit 0 ;;
5004 +        exit ;;
5005      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
5006          echo m68k-hades-mint${UNAME_RELEASE}
5007 -        exit 0 ;;
5008 +        exit ;;
5009      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
5010          echo m68k-unknown-mint${UNAME_RELEASE}
5011 -        exit 0 ;;
5012 +        exit ;;
5013 +    m68k:machten:*:*)
5014 +       echo m68k-apple-machten${UNAME_RELEASE}
5015 +       exit ;;
5016      powerpc:machten:*:*)
5017         echo powerpc-apple-machten${UNAME_RELEASE}
5018 -       exit 0 ;;
5019 +       exit ;;
5020      RISC*:Mach:*:*)
5021         echo mips-dec-mach_bsd4.3
5022 -       exit 0 ;;
5023 +       exit ;;
5024      RISC*:ULTRIX:*:*)
5025         echo mips-dec-ultrix${UNAME_RELEASE}
5026 -       exit 0 ;;
5027 +       exit ;;
5028      VAX*:ULTRIX*:*:*)
5029         echo vax-dec-ultrix${UNAME_RELEASE}
5030 -       exit 0 ;;
5031 +       exit ;;
5032      2020:CLIX:*:* | 2430:CLIX:*:*)
5033         echo clipper-intergraph-clix${UNAME_RELEASE}
5034 -       exit 0 ;;
5035 +       exit ;;
5036      mips:*:*:UMIPS | mips:*:*:RISCos)
5037         eval $set_cc_for_build
5038         sed 's/^        //' << EOF >$dummy.c
5039 @@ -444,32 +433,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5040           exit (-1);
5041         }
5042  EOF
5043 -       $CC_FOR_BUILD -o $dummy $dummy.c \
5044 -         && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
5045 -         && exit 0
5046 +       $CC_FOR_BUILD -o $dummy $dummy.c &&
5047 +         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
5048 +         SYSTEM_NAME=`$dummy $dummyarg` &&
5049 +           { echo "$SYSTEM_NAME"; exit; }
5050         echo mips-mips-riscos${UNAME_RELEASE}
5051 -       exit 0 ;;
5052 +       exit ;;
5053      Motorola:PowerMAX_OS:*:*)
5054         echo powerpc-motorola-powermax
5055 -       exit 0 ;;
5056 +       exit ;;
5057      Motorola:*:4.3:PL8-*)
5058         echo powerpc-harris-powermax
5059 -       exit 0 ;;
5060 +       exit ;;
5061      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
5062         echo powerpc-harris-powermax
5063 -       exit 0 ;;
5064 +       exit ;;
5065      Night_Hawk:Power_UNIX:*:*)
5066         echo powerpc-harris-powerunix
5067 -       exit 0 ;;
5068 +       exit ;;
5069      m88k:CX/UX:7*:*)
5070         echo m88k-harris-cxux7
5071 -       exit 0 ;;
5072 +       exit ;;
5073      m88k:*:4*:R4*)
5074         echo m88k-motorola-sysv4
5075 -       exit 0 ;;
5076 +       exit ;;
5077      m88k:*:3*:R3*)
5078         echo m88k-motorola-sysv3
5079 -       exit 0 ;;
5080 +       exit ;;
5081      AViiON:dgux:*:*)
5082          # DG/UX returns AViiON for all architectures
5083          UNAME_PROCESSOR=`/usr/bin/uname -p`
5084 @@ -485,29 +475,29 @@ EOF
5085         else
5086             echo i586-dg-dgux${UNAME_RELEASE}
5087         fi
5088 -       exit 0 ;;
5089 +       exit ;;
5090      M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
5091         echo m88k-dolphin-sysv3
5092 -       exit 0 ;;
5093 +       exit ;;
5094      M88*:*:R3*:*)
5095         # Delta 88k system running SVR3
5096         echo m88k-motorola-sysv3
5097 -       exit 0 ;;
5098 +       exit ;;
5099      XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
5100         echo m88k-tektronix-sysv3
5101 -       exit 0 ;;
5102 +       exit ;;
5103      Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
5104         echo m68k-tektronix-bsd
5105 -       exit 0 ;;
5106 +       exit ;;
5107      *:IRIX*:*:*)
5108         echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
5109 -       exit 0 ;;
5110 +       exit ;;
5111      ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
5112 -       echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
5113 -       exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
5114 +       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
5115 +       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
5116      i*86:AIX:*:*)
5117         echo i386-ibm-aix
5118 -       exit 0 ;;
5119 +       exit ;;
5120      ia64:AIX:*:*)
5121         if [ -x /usr/bin/oslevel ] ; then
5122                 IBM_REV=`/usr/bin/oslevel`
5123 @@ -515,7 +505,7 @@ EOF
5124                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5125         fi
5126         echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
5127 -       exit 0 ;;
5128 +       exit ;;
5129      *:AIX:2:3)
5130         if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
5131                 eval $set_cc_for_build
5132 @@ -530,15 +520,19 @@ EOF
5133                         exit(0);
5134                         }
5135  EOF
5136 -               $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
5137 -               echo rs6000-ibm-aix3.2.5
5138 +               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
5139 +               then
5140 +                       echo "$SYSTEM_NAME"
5141 +               else
5142 +                       echo rs6000-ibm-aix3.2.5
5143 +               fi
5144         elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
5145                 echo rs6000-ibm-aix3.2.4
5146         else
5147                 echo rs6000-ibm-aix3.2
5148         fi
5149 -       exit 0 ;;
5150 -    *:AIX:*:[45])
5151 +       exit ;;
5152 +    *:AIX:*:[456])
5153         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
5154         if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
5155                 IBM_ARCH=rs6000
5156 @@ -551,28 +545,28 @@ EOF
5157                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5158         fi
5159         echo ${IBM_ARCH}-ibm-aix${IBM_REV}
5160 -       exit 0 ;;
5161 +       exit ;;
5162      *:AIX:*:*)
5163         echo rs6000-ibm-aix
5164 -       exit 0 ;;
5165 +       exit ;;
5166      ibmrt:4.4BSD:*|romp-ibm:BSD:*)
5167         echo romp-ibm-bsd4.4
5168 -       exit 0 ;;
5169 +       exit ;;
5170      ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
5171         echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
5172 -       exit 0 ;;                           # report: romp-ibm BSD 4.3
5173 +       exit ;;                             # report: romp-ibm BSD 4.3
5174      *:BOSX:*:*)
5175         echo rs6000-bull-bosx
5176 -       exit 0 ;;
5177 +       exit ;;
5178      DPX/2?00:B.O.S.:*:*)
5179         echo m68k-bull-sysv3
5180 -       exit 0 ;;
5181 +       exit ;;
5182      9000/[34]??:4.3bsd:1.*:*)
5183         echo m68k-hp-bsd
5184 -       exit 0 ;;
5185 +       exit ;;
5186      hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
5187         echo m68k-hp-bsd4.4
5188 -       exit 0 ;;
5189 +       exit ;;
5190      9000/[34678]??:HP-UX:*:*)
5191         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5192         case "${UNAME_MACHINE}" in
5193 @@ -634,9 +628,19 @@ EOF
5194         esac
5195         if [ ${HP_ARCH} = "hppa2.0w" ]
5196         then
5197 -           # avoid double evaluation of $set_cc_for_build
5198 -           test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
5199 -           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
5200 +           eval $set_cc_for_build
5201 +
5202 +           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
5203 +           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
5204 +           # generating 64-bit code.  GNU and HP use different nomenclature:
5205 +           #
5206 +           # $ CC_FOR_BUILD=cc ./config.guess
5207 +           # => hppa2.0w-hp-hpux11.23
5208 +           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
5209 +           # => hppa64-hp-hpux11.23
5210 +
5211 +           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
5212 +               grep __LP64__ >/dev/null
5213             then
5214                 HP_ARCH="hppa2.0w"
5215             else
5216 @@ -644,11 +648,11 @@ EOF
5217             fi
5218         fi
5219         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
5220 -       exit 0 ;;
5221 +       exit ;;
5222      ia64:HP-UX:*:*)
5223         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5224         echo ia64-hp-hpux${HPUX_REV}
5225 -       exit 0 ;;
5226 +       exit ;;
5227      3050*:HI-UX:*:*)
5228         eval $set_cc_for_build
5229         sed 's/^        //' << EOF >$dummy.c
5230 @@ -676,150 +680,192 @@ EOF
5231           exit (0);
5232         }
5233  EOF
5234 -       $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
5235 +       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
5236 +               { echo "$SYSTEM_NAME"; exit; }
5237         echo unknown-hitachi-hiuxwe2
5238 -       exit 0 ;;
5239 +       exit ;;
5240      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
5241         echo hppa1.1-hp-bsd
5242 -       exit 0 ;;
5243 +       exit ;;
5244      9000/8??:4.3bsd:*:*)
5245         echo hppa1.0-hp-bsd
5246 -       exit 0 ;;
5247 +       exit ;;
5248      *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
5249         echo hppa1.0-hp-mpeix
5250 -       exit 0 ;;
5251 +       exit ;;
5252      hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
5253         echo hppa1.1-hp-osf
5254 -       exit 0 ;;
5255 +       exit ;;
5256      hp8??:OSF1:*:*)
5257         echo hppa1.0-hp-osf
5258 -       exit 0 ;;
5259 +       exit ;;
5260      i*86:OSF1:*:*)
5261         if [ -x /usr/sbin/sysversion ] ; then
5262             echo ${UNAME_MACHINE}-unknown-osf1mk
5263         else
5264             echo ${UNAME_MACHINE}-unknown-osf1
5265         fi
5266 -       exit 0 ;;
5267 +       exit ;;
5268      parisc*:Lites*:*:*)
5269         echo hppa1.1-hp-lites
5270 -       exit 0 ;;
5271 +       exit ;;
5272      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
5273         echo c1-convex-bsd
5274 -        exit 0 ;;
5275 +        exit ;;
5276      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
5277         if getsysinfo -f scalar_acc
5278         then echo c32-convex-bsd
5279         else echo c2-convex-bsd
5280         fi
5281 -        exit 0 ;;
5282 +        exit ;;
5283      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
5284         echo c34-convex-bsd
5285 -        exit 0 ;;
5286 +        exit ;;
5287      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
5288         echo c38-convex-bsd
5289 -        exit 0 ;;
5290 +        exit ;;
5291      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
5292         echo c4-convex-bsd
5293 -        exit 0 ;;
5294 +        exit ;;
5295      CRAY*Y-MP:*:*:*)
5296         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5297 -       exit 0 ;;
5298 +       exit ;;
5299      CRAY*[A-Z]90:*:*:*)
5300         echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
5301         | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
5302               -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
5303               -e 's/\.[^.]*$/.X/'
5304 -       exit 0 ;;
5305 +       exit ;;
5306      CRAY*TS:*:*:*)
5307         echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5308 -       exit 0 ;;
5309 +       exit ;;
5310      CRAY*T3E:*:*:*)
5311         echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5312 -       exit 0 ;;
5313 +       exit ;;
5314      CRAY*SV1:*:*:*)
5315         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5316 -       exit 0 ;;
5317 +       exit ;;
5318      *:UNICOS/mp:*:*)
5319 -       echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
5320 -       exit 0 ;;
5321 +       echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5322 +       exit ;;
5323      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
5324         FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
5325          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5326          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
5327          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5328 -        exit 0 ;;
5329 +        exit ;;
5330 +    5000:UNIX_System_V:4.*:*)
5331 +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5332 +        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
5333 +        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5334 +       exit ;;
5335      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
5336         echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
5337 -       exit 0 ;;
5338 +       exit ;;
5339      sparc*:BSD/OS:*:*)
5340         echo sparc-unknown-bsdi${UNAME_RELEASE}
5341 -       exit 0 ;;
5342 +       exit ;;
5343      *:BSD/OS:*:*)
5344         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
5345 -       exit 0 ;;
5346 -    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
5347 -       # Determine whether the default compiler uses glibc.
5348 -       eval $set_cc_for_build
5349 -       sed 's/^        //' << EOF >$dummy.c
5350 -       #include <features.h>
5351 -       #if __GLIBC__ >= 2
5352 -       LIBC=gnu
5353 -       #else
5354 -       LIBC=
5355 -       #endif
5356 -EOF
5357 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5358 -       echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
5359 -       exit 0 ;;
5360 +       exit ;;
5361 +    *:FreeBSD:*:*)
5362 +       case ${UNAME_MACHINE} in
5363 +           pc98)
5364 +               echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5365 +           amd64)
5366 +               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5367 +           *)
5368 +               echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5369 +       esac
5370 +       exit ;;
5371      i*:CYGWIN*:*)
5372         echo ${UNAME_MACHINE}-pc-cygwin
5373 -       exit 0 ;;
5374 -    i*:MINGW*:*)
5375 +       exit ;;
5376 +    *:MINGW*:*)
5377         echo ${UNAME_MACHINE}-pc-mingw32
5378 -       exit 0 ;;
5379 +       exit ;;
5380 +    i*:windows32*:*)
5381 +       # uname -m includes "-pc" on this system.
5382 +       echo ${UNAME_MACHINE}-mingw32
5383 +       exit ;;
5384      i*:PW*:*)
5385         echo ${UNAME_MACHINE}-pc-pw32
5386 -       exit 0 ;;
5387 -    x86:Interix*:[34]*)
5388 -       echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
5389 -       exit 0 ;;
5390 +       exit ;;
5391 +    *:Interix*:[3456]*)
5392 +       case ${UNAME_MACHINE} in
5393 +           x86)
5394 +               echo i586-pc-interix${UNAME_RELEASE}
5395 +               exit ;;
5396 +           EM64T | authenticamd)
5397 +               echo x86_64-unknown-interix${UNAME_RELEASE}
5398 +               exit ;;
5399 +           IA64)
5400 +               echo ia64-unknown-interix${UNAME_RELEASE}
5401 +               exit ;;
5402 +       esac ;;
5403      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
5404         echo i${UNAME_MACHINE}-pc-mks
5405 -       exit 0 ;;
5406 +       exit ;;
5407      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
5408         # How do we know it's Interix rather than the generic POSIX subsystem?
5409         # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
5410         # UNAME_MACHINE based on the output of uname instead of i386?
5411         echo i586-pc-interix
5412 -       exit 0 ;;
5413 +       exit ;;
5414      i*:UWIN*:*)
5415         echo ${UNAME_MACHINE}-pc-uwin
5416 -       exit 0 ;;
5417 +       exit ;;
5418 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
5419 +       echo x86_64-unknown-cygwin
5420 +       exit ;;
5421      p*:CYGWIN*:*)
5422         echo powerpcle-unknown-cygwin
5423 -       exit 0 ;;
5424 +       exit ;;
5425      prep*:SunOS:5.*:*)
5426         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5427 -       exit 0 ;;
5428 +       exit ;;
5429      *:GNU:*:*)
5430 +       # the GNU system
5431         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
5432 -       exit 0 ;;
5433 +       exit ;;
5434 +    *:GNU/*:*:*)
5435 +       # other systems with GNU libc and userland
5436 +       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
5437 +       exit ;;
5438      i*86:Minix:*:*)
5439         echo ${UNAME_MACHINE}-pc-minix
5440 -       exit 0 ;;
5441 +       exit ;;
5442      arm*:Linux:*:*)
5443 +       eval $set_cc_for_build
5444 +       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
5445 +           | grep -q __ARM_EABI__
5446 +       then
5447 +           echo ${UNAME_MACHINE}-unknown-linux-gnu
5448 +       else
5449 +           echo ${UNAME_MACHINE}-unknown-linux-gnueabi
5450 +       fi
5451 +       exit ;;
5452 +    avr32*:Linux:*:*)
5453         echo ${UNAME_MACHINE}-unknown-linux-gnu
5454 -       exit 0 ;;
5455 +       exit ;;
5456      cris:Linux:*:*)
5457         echo cris-axis-linux-gnu
5458 -       exit 0 ;;
5459 +       exit ;;
5460 +    crisv32:Linux:*:*)
5461 +       echo crisv32-axis-linux-gnu
5462 +       exit ;;
5463 +    frv:Linux:*:*)
5464 +       echo frv-unknown-linux-gnu
5465 +       exit ;;
5466      ia64:Linux:*:*)
5467 -       echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
5468 -       exit 0 ;;
5469 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5470 +       exit ;;
5471 +    m32r*:Linux:*:*)
5472 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5473 +       exit ;;
5474      m68*:Linux:*:*)
5475         echo ${UNAME_MACHINE}-unknown-linux-gnu
5476 -       exit 0 ;;
5477 +       exit ;;
5478      mips:Linux:*:*)
5479         eval $set_cc_for_build
5480         sed 's/^        //' << EOF >$dummy.c
5481 @@ -836,8 +882,12 @@ EOF
5482         #endif
5483         #endif
5484  EOF
5485 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5486 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5487 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5488 +           /^CPU/{
5489 +               s: ::g
5490 +               p
5491 +           }'`"
5492 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
5493         ;;
5494      mips64:Linux:*:*)
5495         eval $set_cc_for_build
5496 @@ -855,15 +905,22 @@ EOF
5497         #endif
5498         #endif
5499  EOF
5500 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5501 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5502 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5503 +           /^CPU/{
5504 +               s: ::g
5505 +               p
5506 +           }'`"
5507 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
5508         ;;
5509 +    or32:Linux:*:*)
5510 +       echo or32-unknown-linux-gnu
5511 +       exit ;;
5512      ppc:Linux:*:*)
5513 -       echo powerpc-${VENDOR:-unknown}-linux-gnu
5514 -       exit 0 ;;
5515 +       echo powerpc-unknown-linux-gnu
5516 +       exit ;;
5517      ppc64:Linux:*:*)
5518 -       echo powerpc64-${VENDOR:-unknown}-linux-gnu
5519 -       exit 0 ;;
5520 +       echo powerpc64-unknown-linux-gnu
5521 +       exit ;;
5522      alpha:Linux:*:*)
5523         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
5524           EV5)   UNAME_MACHINE=alphaev5 ;;
5525 @@ -877,7 +934,7 @@ EOF
5526         objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
5527         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
5528         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
5529 -       exit 0 ;;
5530 +       exit ;;
5531      parisc:Linux:*:* | hppa:Linux:*:*)
5532         # Look for CPU level
5533         case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
5534 @@ -885,25 +942,31 @@ EOF
5535           PA8*) echo hppa2.0-unknown-linux-gnu ;;
5536           *)    echo hppa-unknown-linux-gnu ;;
5537         esac
5538 -       exit 0 ;;
5539 +       exit ;;
5540      parisc64:Linux:*:* | hppa64:Linux:*:*)
5541         echo hppa64-unknown-linux-gnu
5542 -       exit 0 ;;
5543 +       exit ;;
5544      s390:Linux:*:* | s390x:Linux:*:*)
5545 -       echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
5546 -       exit 0 ;;
5547 +       echo ${UNAME_MACHINE}-ibm-linux
5548 +       exit ;;
5549      sh64*:Linux:*:*)
5550         echo ${UNAME_MACHINE}-unknown-linux-gnu
5551 -       exit 0 ;;
5552 +       exit ;;
5553      sh*:Linux:*:*)
5554         echo ${UNAME_MACHINE}-unknown-linux-gnu
5555 -       exit 0 ;;
5556 +       exit ;;
5557      sparc:Linux:*:* | sparc64:Linux:*:*)
5558         echo ${UNAME_MACHINE}-unknown-linux-gnu
5559 -       exit 0 ;;
5560 +       exit ;;
5561 +    vax:Linux:*:*)
5562 +       echo ${UNAME_MACHINE}-dec-linux-gnu
5563 +       exit ;;
5564      x86_64:Linux:*:*)
5565 -       echo x86_64-${VENDOR:-unknown}-linux-gnu
5566 -       exit 0 ;;
5567 +       echo x86_64-unknown-linux-gnu
5568 +       exit ;;
5569 +    xtensa*:Linux:*:*)
5570 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5571 +       exit ;;
5572      i*86:Linux:*:*)
5573         # The BFD linker knows what the default object file format is, so
5574         # first see if it will tell us. cd to the root directory to prevent
5575 @@ -921,15 +984,15 @@ EOF
5576                 ;;
5577           a.out-i386-linux)
5578                 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
5579 -               exit 0 ;;
5580 +               exit ;;
5581           coff-i386)
5582                 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
5583 -               exit 0 ;;
5584 +               exit ;;
5585           "")
5586                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
5587                 # one that does not give us useful --help.
5588                 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
5589 -               exit 0 ;;
5590 +               exit ;;
5591         esac
5592         # Determine whether the default compiler is a.out or elf
5593         eval $set_cc_for_build
5594 @@ -946,23 +1009,33 @@ EOF
5595         LIBC=gnulibc1
5596         # endif
5597         #else
5598 -       #ifdef __INTEL_COMPILER
5599 +       #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
5600         LIBC=gnu
5601         #else
5602         LIBC=gnuaout
5603         #endif
5604         #endif
5605 +       #ifdef __dietlibc__
5606 +       LIBC=dietlibc
5607 +       #endif
5608  EOF
5609 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5610 -       test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
5611 -       test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
5612 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5613 +           /^LIBC/{
5614 +               s: ::g
5615 +               p
5616 +           }'`"
5617 +       test x"${LIBC}" != x && {
5618 +               echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
5619 +               exit
5620 +       }
5621 +       test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
5622         ;;
5623      i*86:DYNIX/ptx:4*:*)
5624         # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
5625         # earlier versions are messed up and put the nodename in both
5626         # sysname and nodename.
5627         echo i386-sequent-sysv4
5628 -       exit 0 ;;
5629 +       exit ;;
5630      i*86:UNIX_SV:4.2MP:2.*)
5631          # Unixware is an offshoot of SVR4, but it has its own version
5632          # number series starting with 2...
5633 @@ -970,24 +1043,27 @@ EOF
5634         # I just have to hope.  -- rms.
5635          # Use sysv4.2uw... so that sysv4* matches it.
5636         echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
5637 -       exit 0 ;;
5638 +       exit ;;
5639      i*86:OS/2:*:*)
5640         # If we were able to find `uname', then EMX Unix compatibility
5641         # is probably installed.
5642         echo ${UNAME_MACHINE}-pc-os2-emx
5643 -       exit 0 ;;
5644 +       exit ;;
5645      i*86:XTS-300:*:STOP)
5646         echo ${UNAME_MACHINE}-unknown-stop
5647 -       exit 0 ;;
5648 +       exit ;;
5649      i*86:atheos:*:*)
5650         echo ${UNAME_MACHINE}-unknown-atheos
5651 -       exit 0 ;;
5652 +       exit ;;
5653 +    i*86:syllable:*:*)
5654 +       echo ${UNAME_MACHINE}-pc-syllable
5655 +       exit ;;
5656      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
5657         echo i386-unknown-lynxos${UNAME_RELEASE}
5658 -       exit 0 ;;
5659 +       exit ;;
5660      i*86:*DOS:*:*)
5661         echo ${UNAME_MACHINE}-pc-msdosdjgpp
5662 -       exit 0 ;;
5663 +       exit ;;
5664      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
5665         UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
5666         if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
5667 @@ -995,15 +1071,16 @@ EOF
5668         else
5669                 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
5670         fi
5671 -       exit 0 ;;
5672 -    i*86:*:5:[78]*)
5673 +       exit ;;
5674 +    i*86:*:5:[678]*)
5675 +       # UnixWare 7.x, OpenUNIX and OpenServer 6.
5676         case `/bin/uname -X | grep "^Machine"` in
5677             *486*)           UNAME_MACHINE=i486 ;;
5678             *Pentium)        UNAME_MACHINE=i586 ;;
5679             *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
5680         esac
5681         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
5682 -       exit 0 ;;
5683 +       exit ;;
5684      i*86:*:3.2:*)
5685         if test -f /usr/options/cb.name; then
5686                 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
5687 @@ -1021,73 +1098,73 @@ EOF
5688         else
5689                 echo ${UNAME_MACHINE}-pc-sysv32
5690         fi
5691 -       exit 0 ;;
5692 +       exit ;;
5693      pc:*:*:*)
5694         # Left here for compatibility:
5695          # uname -m prints for DJGPP always 'pc', but it prints nothing about
5696          # the processor, so we play safe by assuming i386.
5697         echo i386-pc-msdosdjgpp
5698 -        exit 0 ;;
5699 +        exit ;;
5700      Intel:Mach:3*:*)
5701         echo i386-pc-mach3
5702 -       exit 0 ;;
5703 +       exit ;;
5704      paragon:*:*:*)
5705         echo i860-intel-osf1
5706 -       exit 0 ;;
5707 +       exit ;;
5708      i860:*:4.*:*) # i860-SVR4
5709         if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
5710           echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
5711         else # Add other i860-SVR4 vendors below as they are discovered.
5712           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
5713         fi
5714 -       exit 0 ;;
5715 +       exit ;;
5716      mini*:CTIX:SYS*5:*)
5717         # "miniframe"
5718         echo m68010-convergent-sysv
5719 -       exit 0 ;;
5720 +       exit ;;
5721      mc68k:UNIX:SYSTEM5:3.51m)
5722         echo m68k-convergent-sysv
5723 -       exit 0 ;;
5724 +       exit ;;
5725      M680?0:D-NIX:5.3:*)
5726         echo m68k-diab-dnix
5727 -       exit 0 ;;
5728 -    M68*:*:R3V[567]*:*)
5729 -       test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
5730 -    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
5731 +       exit ;;
5732 +    M68*:*:R3V[5678]*:*)
5733 +       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
5734 +    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
5735         OS_REL=''
5736         test -r /etc/.relid \
5737         && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
5738         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5739 -         && echo i486-ncr-sysv4.3${OS_REL} && exit 0
5740 +         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
5741         /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
5742 -         && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
5743 +         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
5744      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
5745          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5746 -          && echo i486-ncr-sysv4 && exit 0 ;;
5747 +          && { echo i486-ncr-sysv4; exit; } ;;
5748      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
5749         echo m68k-unknown-lynxos${UNAME_RELEASE}
5750 -       exit 0 ;;
5751 +       exit ;;
5752      mc68030:UNIX_System_V:4.*:*)
5753         echo m68k-atari-sysv4
5754 -       exit 0 ;;
5755 +       exit ;;
5756      TSUNAMI:LynxOS:2.*:*)
5757         echo sparc-unknown-lynxos${UNAME_RELEASE}
5758 -       exit 0 ;;
5759 +       exit ;;
5760      rs6000:LynxOS:2.*:*)
5761         echo rs6000-unknown-lynxos${UNAME_RELEASE}
5762 -       exit 0 ;;
5763 +       exit ;;
5764      PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
5765         echo powerpc-unknown-lynxos${UNAME_RELEASE}
5766 -       exit 0 ;;
5767 +       exit ;;
5768      SM[BE]S:UNIX_SV:*:*)
5769         echo mips-dde-sysv${UNAME_RELEASE}
5770 -       exit 0 ;;
5771 +       exit ;;
5772      RM*:ReliantUNIX-*:*:*)
5773         echo mips-sni-sysv4
5774 -       exit 0 ;;
5775 +       exit ;;
5776      RM*:SINIX-*:*:*)
5777         echo mips-sni-sysv4
5778 -       exit 0 ;;
5779 +       exit ;;
5780      *:SINIX-*:*:*)
5781         if uname -p 2>/dev/null >/dev/null ; then
5782                 UNAME_MACHINE=`(uname -p) 2>/dev/null`
5783 @@ -1095,68 +1172,81 @@ EOF
5784         else
5785                 echo ns32k-sni-sysv
5786         fi
5787 -       exit 0 ;;
5788 +       exit ;;
5789      PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
5790                        # says <Richard.M.Bartel@ccMail.Census.GOV>
5791          echo i586-unisys-sysv4
5792 -        exit 0 ;;
5793 +        exit ;;
5794      *:UNIX_System_V:4*:FTX*)
5795         # From Gerald Hewes <hewes@openmarket.com>.
5796         # How about differentiating between stratus architectures? -djm
5797         echo hppa1.1-stratus-sysv4
5798 -       exit 0 ;;
5799 +       exit ;;
5800      *:*:*:FTX*)
5801         # From seanf@swdc.stratus.com.
5802         echo i860-stratus-sysv4
5803 -       exit 0 ;;
5804 +       exit ;;
5805 +    i*86:VOS:*:*)
5806 +       # From Paul.Green@stratus.com.
5807 +       echo ${UNAME_MACHINE}-stratus-vos
5808 +       exit ;;
5809      *:VOS:*:*)
5810         # From Paul.Green@stratus.com.
5811         echo hppa1.1-stratus-vos
5812 -       exit 0 ;;
5813 +       exit ;;
5814      mc68*:A/UX:*:*)
5815         echo m68k-apple-aux${UNAME_RELEASE}
5816 -       exit 0 ;;
5817 +       exit ;;
5818      news*:NEWS-OS:6*:*)
5819         echo mips-sony-newsos6
5820 -       exit 0 ;;
5821 +       exit ;;
5822      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
5823         if [ -d /usr/nec ]; then
5824                 echo mips-nec-sysv${UNAME_RELEASE}
5825         else
5826                 echo mips-unknown-sysv${UNAME_RELEASE}
5827         fi
5828 -        exit 0 ;;
5829 +        exit ;;
5830      BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
5831         echo powerpc-be-beos
5832 -       exit 0 ;;
5833 +       exit ;;
5834      BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
5835         echo powerpc-apple-beos
5836 -       exit 0 ;;
5837 +       exit ;;
5838      BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
5839         echo i586-pc-beos
5840 -       exit 0 ;;
5841 +       exit ;;
5842      SX-4:SUPER-UX:*:*)
5843         echo sx4-nec-superux${UNAME_RELEASE}
5844 -       exit 0 ;;
5845 +       exit ;;
5846      SX-5:SUPER-UX:*:*)
5847         echo sx5-nec-superux${UNAME_RELEASE}
5848 -       exit 0 ;;
5849 +       exit ;;
5850      SX-6:SUPER-UX:*:*)
5851         echo sx6-nec-superux${UNAME_RELEASE}
5852 -       exit 0 ;;
5853 +       exit ;;
5854 +    SX-7:SUPER-UX:*:*)
5855 +       echo sx7-nec-superux${UNAME_RELEASE}
5856 +       exit ;;
5857 +    SX-8:SUPER-UX:*:*)
5858 +       echo sx8-nec-superux${UNAME_RELEASE}
5859 +       exit ;;
5860 +    SX-8R:SUPER-UX:*:*)
5861 +       echo sx8r-nec-superux${UNAME_RELEASE}
5862 +       exit ;;
5863      Power*:Rhapsody:*:*)
5864         echo powerpc-apple-rhapsody${UNAME_RELEASE}
5865 -       exit 0 ;;
5866 +       exit ;;
5867      *:Rhapsody:*:*)
5868         echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
5869 -       exit 0 ;;
5870 +       exit ;;
5871      *:Darwin:*:*)
5872 -       case `uname -p` in
5873 -           *86) UNAME_PROCESSOR=i686 ;;
5874 -           powerpc) UNAME_PROCESSOR=powerpc ;;
5875 +       UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
5876 +       case $UNAME_PROCESSOR in
5877 +           unknown) UNAME_PROCESSOR=powerpc ;;
5878         esac
5879         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
5880 -       exit 0 ;;
5881 +       exit ;;
5882      *:procnto*:*:* | *:QNX:[0123456789]*:*)
5883         UNAME_PROCESSOR=`uname -p`
5884         if test "$UNAME_PROCESSOR" = "x86"; then
5885 @@ -1164,22 +1254,25 @@ EOF
5886                 UNAME_MACHINE=pc
5887         fi
5888         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
5889 -       exit 0 ;;
5890 +       exit ;;
5891      *:QNX:*:4*)
5892         echo i386-pc-qnx
5893 -       exit 0 ;;
5894 -    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
5895 +       exit ;;
5896 +    NSE-?:NONSTOP_KERNEL:*:*)
5897 +       echo nse-tandem-nsk${UNAME_RELEASE}
5898 +       exit ;;
5899 +    NSR-?:NONSTOP_KERNEL:*:*)
5900         echo nsr-tandem-nsk${UNAME_RELEASE}
5901 -       exit 0 ;;
5902 +       exit ;;
5903      *:NonStop-UX:*:*)
5904         echo mips-compaq-nonstopux
5905 -       exit 0 ;;
5906 +       exit ;;
5907      BS2000:POSIX*:*:*)
5908         echo bs2000-siemens-sysv
5909 -       exit 0 ;;
5910 +       exit ;;
5911      DS/*:UNIX_System_V:*:*)
5912         echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
5913 -       exit 0 ;;
5914 +       exit ;;
5915      *:Plan9:*:*)
5916         # "uname -m" is not consistent, so use $cputype instead. 386
5917         # is converted to i386 for consistency with other x86
5918 @@ -1190,28 +1283,47 @@ EOF
5919             UNAME_MACHINE="$cputype"
5920         fi
5921         echo ${UNAME_MACHINE}-unknown-plan9
5922 -       exit 0 ;;
5923 +       exit ;;
5924      *:TOPS-10:*:*)
5925         echo pdp10-unknown-tops10
5926 -       exit 0 ;;
5927 +       exit ;;
5928      *:TENEX:*:*)
5929         echo pdp10-unknown-tenex
5930 -       exit 0 ;;
5931 +       exit ;;
5932      KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
5933         echo pdp10-dec-tops20
5934 -       exit 0 ;;
5935 +       exit ;;
5936      XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
5937         echo pdp10-xkl-tops20
5938 -       exit 0 ;;
5939 +       exit ;;
5940      *:TOPS-20:*:*)
5941         echo pdp10-unknown-tops20
5942 -       exit 0 ;;
5943 +       exit ;;
5944      *:ITS:*:*)
5945         echo pdp10-unknown-its
5946 -       exit 0 ;;
5947 +       exit ;;
5948      SEI:*:*:SEIUX)
5949          echo mips-sei-seiux${UNAME_RELEASE}
5950 -       exit 0 ;;
5951 +       exit ;;
5952 +    *:DragonFly:*:*)
5953 +       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
5954 +       exit ;;
5955 +    *:*VMS:*:*)
5956 +       UNAME_MACHINE=`(uname -p) 2>/dev/null`
5957 +       case "${UNAME_MACHINE}" in
5958 +           A*) echo alpha-dec-vms ; exit ;;
5959 +           I*) echo ia64-dec-vms ; exit ;;
5960 +           V*) echo vax-dec-vms ; exit ;;
5961 +       esac ;;
5962 +    *:XENIX:*:SysV)
5963 +       echo i386-pc-xenix
5964 +       exit ;;
5965 +    i*86:skyos:*:*)
5966 +       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
5967 +       exit ;;
5968 +    i*86:rdos:*:*)
5969 +       echo ${UNAME_MACHINE}-pc-rdos
5970 +       exit ;;
5971  esac
5972  
5973  #echo '(No uname command or uname output not recognized.)' 1>&2
5974 @@ -1243,7 +1355,7 @@ main ()
5975  #endif
5976  
5977  #if defined (__arm) && defined (__acorn) && defined (__unix)
5978 -  printf ("arm-acorn-riscix"); exit (0);
5979 +  printf ("arm-acorn-riscix\n"); exit (0);
5980  #endif
5981  
5982  #if defined (hp300) && !defined (hpux)
5983 @@ -1332,11 +1444,12 @@ main ()
5984  }
5985  EOF
5986  
5987 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
5988 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
5989 +       { echo "$SYSTEM_NAME"; exit; }
5990  
5991  # Apollos put the system type in the environment.
5992  
5993 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
5994 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
5995  
5996  # Convex versions that predate uname can use getsysinfo(1)
5997  
5998 @@ -1345,22 +1458,22 @@ then
5999      case `getsysinfo -f cpu_type` in
6000      c1*)
6001         echo c1-convex-bsd
6002 -       exit 0 ;;
6003 +       exit ;;
6004      c2*)
6005         if getsysinfo -f scalar_acc
6006         then echo c32-convex-bsd
6007         else echo c2-convex-bsd
6008         fi
6009 -       exit 0 ;;
6010 +       exit ;;
6011      c34*)
6012         echo c34-convex-bsd
6013 -       exit 0 ;;
6014 +       exit ;;
6015      c38*)
6016         echo c38-convex-bsd
6017 -       exit 0 ;;
6018 +       exit ;;
6019      c4*)
6020         echo c4-convex-bsd
6021 -       exit 0 ;;
6022 +       exit ;;
6023      esac
6024  fi
6025  
6026 @@ -1371,7 +1484,9 @@ This script, last modified $timestamp, has failed to recognize
6027  the operating system you are using. It is advised that you
6028  download the most up to date version of the config scripts from
6029  
6030 -    ftp://ftp.gnu.org/pub/gnu/config/
6031 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
6032 +and
6033 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
6034  
6035  If the version you run ($0) is already up to date, please
6036  send the following data and any information you think might be
6037 --- ./aux/config.sub
6038 +++ ./aux/config.sub
6039 @@ -1,9 +1,10 @@
6040  #! /bin/sh
6041  # Configuration validation subroutine script.
6042  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6043 -#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
6044 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
6045 +#   Free Software Foundation, Inc.
6046  
6047 -timestamp='2003-06-18'
6048 +timestamp='2008-01-16'
6049  
6050  # This file is (in principle) common to ALL GNU software.
6051  # The presence of a machine in this file suggests that SOME GNU software
6052 @@ -21,14 +22,15 @@ timestamp='2003-06-18'
6053  #
6054  # You should have received a copy of the GNU General Public License
6055  # along with this program; if not, write to the Free Software
6056 -# Foundation, Inc., 59 Temple Place - Suite 330,
6057 -# Boston, MA 02111-1307, USA.
6058 -
6059 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
6060 +# 02110-1301, USA.
6061 +#
6062  # As a special exception to the GNU General Public License, if you
6063  # distribute this file as part of a program that contains a
6064  # configuration script generated by Autoconf, you may include it under
6065  # the same distribution terms that you use for the rest of that program.
6066  
6067 +
6068  # Please send patches to <config-patches@gnu.org>.  Submit a context
6069  # diff and a properly formatted ChangeLog entry.
6070  #
6071 @@ -70,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>."
6072  version="\
6073  GNU config.sub ($timestamp)
6074  
6075 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
6076 -Free Software Foundation, Inc.
6077 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
6078 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6079  
6080  This is free software; see the source for copying conditions.  There is NO
6081  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
6082 @@ -83,11 +85,11 @@ Try \`$me --help' for more information."
6083  while test $# -gt 0 ; do
6084    case $1 in
6085      --time-stamp | --time* | -t )
6086 -       echo "$timestamp" ; exit 0 ;;
6087 +       echo "$timestamp" ; exit ;;
6088      --version | -v )
6089 -       echo "$version" ; exit 0 ;;
6090 +       echo "$version" ; exit ;;
6091      --help | --h* | -h )
6092 -       echo "$usage"; exit 0 ;;
6093 +       echo "$usage"; exit ;;
6094      -- )     # Stop option processing
6095         shift; break ;;
6096      - )        # Use stdin as input.
6097 @@ -99,7 +101,7 @@ while test $# -gt 0 ; do
6098      *local*)
6099         # First pass through any local machine types.
6100         echo $1
6101 -       exit 0;;
6102 +       exit ;;
6103  
6104      * )
6105         break ;;
6106 @@ -118,7 +120,9 @@ esac
6107  # Here we must recognize all the valid KERNEL-OS combinations.
6108  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
6109  case $maybe_os in
6110 -  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
6111 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
6112 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
6113 +  storm-chaos* | os2-emx* | rtmk-nova*)
6114      os=-$maybe_os
6115      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
6116      ;;
6117 @@ -144,7 +148,7 @@ case $os in
6118         -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
6119         -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
6120         -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
6121 -       -apple | -axis)
6122 +       -apple | -axis | -knuth | -cray)
6123                 os=
6124                 basic_machine=$1
6125                 ;;
6126 @@ -169,6 +173,10 @@ case $os in
6127         -hiux*)
6128                 os=-hiuxwe2
6129                 ;;
6130 +       -sco6)
6131 +               os=-sco5v6
6132 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6133 +               ;;
6134         -sco5)
6135                 os=-sco3.2v5
6136                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6137 @@ -185,6 +193,10 @@ case $os in
6138                 # Don't forget version if it is 3.2v4 or newer.
6139                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6140                 ;;
6141 +       -sco5v6*)
6142 +               # Don't forget version if it is 3.2v4 or newer.
6143 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6144 +               ;;
6145         -sco*)
6146                 os=-sco3.2v2
6147                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6148 @@ -228,14 +240,17 @@ case $basic_machine in
6149         | a29k \
6150         | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
6151         | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
6152 -       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
6153 +       | am33_2.0 \
6154 +       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
6155 +       | bfin \
6156         | c4x | clipper \
6157         | d10v | d30v | dlx | dsp16xx \
6158 -       | fr30 | frv \
6159 +       | fido | fr30 | frv \
6160         | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
6161         | i370 | i860 | i960 | ia64 \
6162 -       | ip2k \
6163 -       | m32r | m68000 | m68k | m88k | mcore \
6164 +       | ip2k | iq2000 \
6165 +       | m32c | m32r | m32rle | m68000 | m68k | m88k \
6166 +       | maxq | mb | microblaze | mcore | mep \
6167         | mips | mipsbe | mipseb | mipsel | mipsle \
6168         | mips16 \
6169         | mips64 | mips64el \
6170 @@ -244,28 +259,33 @@ case $basic_machine in
6171         | mips64vr4100 | mips64vr4100el \
6172         | mips64vr4300 | mips64vr4300el \
6173         | mips64vr5000 | mips64vr5000el \
6174 +       | mips64vr5900 | mips64vr5900el \
6175         | mipsisa32 | mipsisa32el \
6176         | mipsisa32r2 | mipsisa32r2el \
6177         | mipsisa64 | mipsisa64el \
6178 +       | mipsisa64r2 | mipsisa64r2el \
6179         | mipsisa64sb1 | mipsisa64sb1el \
6180         | mipsisa64sr71k | mipsisa64sr71kel \
6181         | mipstx39 | mipstx39el \
6182         | mn10200 | mn10300 \
6183 +       | mt \
6184         | msp430 \
6185 +       | nios | nios2 \
6186         | ns16k | ns32k \
6187 -       | openrisc | or32 \
6188 +       | or32 \
6189         | pdp10 | pdp11 | pj | pjl \
6190         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
6191         | pyramid \
6192 -       | s390 | s390x \
6193 -       | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
6194 +       | score \
6195 +       | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
6196         | sh64 | sh64le \
6197 -       | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
6198 -       | strongarm \
6199 +       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
6200 +       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
6201 +       | spu | strongarm \
6202         | tahoe | thumb | tic4x | tic80 | tron \
6203         | v850 | v850e \
6204         | we32k \
6205 -       | x86 | xscale | xstormy16 | xtensa \
6206 +       | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
6207         | z8k)
6208                 basic_machine=$basic_machine-unknown
6209                 ;;
6210 @@ -276,6 +296,9 @@ case $basic_machine in
6211                 ;;
6212         m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
6213                 ;;
6214 +       ms1)
6215 +               basic_machine=mt-unknown
6216 +               ;;
6217  
6218         # We use `pc' rather than `unknown'
6219         # because (1) that's what they normally are, and
6220 @@ -295,20 +318,20 @@ case $basic_machine in
6221         | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
6222         | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
6223         | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
6224 -       | avr-* \
6225 -       | bs2000-* \
6226 +       | avr-* | avr32-* \
6227 +       | bfin-* | bs2000-* \
6228         | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
6229 -       | clipper-* | cydra-* \
6230 +       | clipper-* | craynv-* | cydra-* \
6231         | d10v-* | d30v-* | dlx-* \
6232         | elxsi-* \
6233 -       | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
6234 +       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
6235         | h8300-* | h8500-* \
6236         | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
6237         | i*86-* | i860-* | i960-* | ia64-* \
6238 -       | ip2k-* \
6239 -       | m32r-* \
6240 +       | ip2k-* | iq2000-* \
6241 +       | m32c-* | m32r-* | m32rle-* \
6242         | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
6243 -       | m88110-* | m88k-* | mcore-* \
6244 +       | m88110-* | m88k-* | maxq-* | mcore-* \
6245         | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
6246         | mips16-* \
6247         | mips64-* | mips64el-* \
6248 @@ -317,34 +340,43 @@ case $basic_machine in
6249         | mips64vr4100-* | mips64vr4100el-* \
6250         | mips64vr4300-* | mips64vr4300el-* \
6251         | mips64vr5000-* | mips64vr5000el-* \
6252 +       | mips64vr5900-* | mips64vr5900el-* \
6253         | mipsisa32-* | mipsisa32el-* \
6254         | mipsisa32r2-* | mipsisa32r2el-* \
6255         | mipsisa64-* | mipsisa64el-* \
6256 +       | mipsisa64r2-* | mipsisa64r2el-* \
6257         | mipsisa64sb1-* | mipsisa64sb1el-* \
6258         | mipsisa64sr71k-* | mipsisa64sr71kel-* \
6259         | mipstx39-* | mipstx39el-* \
6260 +       | mmix-* \
6261 +       | mt-* \
6262         | msp430-* \
6263 -       | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
6264 +       | nios-* | nios2-* \
6265 +       | none-* | np1-* | ns16k-* | ns32k-* \
6266         | orion-* \
6267         | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
6268         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
6269         | pyramid-* \
6270         | romp-* | rs6000-* \
6271 -       | s390-* | s390x-* \
6272 -       | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
6273 +       | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
6274         | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
6275 -       | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
6276 -       | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
6277 +       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
6278 +       | sparclite-* \
6279 +       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
6280         | tahoe-* | thumb-* \
6281         | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
6282         | tron-* \
6283         | v850-* | v850e-* | vax-* \
6284         | we32k-* \
6285 -       | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
6286 -       | xtensa-* \
6287 +       | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
6288 +       | xstormy16-* | xtensa*-* \
6289         | ymp-* \
6290         | z8k-*)
6291                 ;;
6292 +       # Recognize the basic CPU types without company name, with glob match.
6293 +       xtensa*)
6294 +               basic_machine=$basic_machine-unknown
6295 +               ;;
6296         # Recognize the various machine names and aliases which stand
6297         # for a CPU type and a company and sometimes even an OS.
6298         386bsd)
6299 @@ -361,6 +393,9 @@ case $basic_machine in
6300                 basic_machine=a29k-amd
6301                 os=-udi
6302                 ;;
6303 +       abacus)
6304 +               basic_machine=abacus-unknown
6305 +               ;;
6306         adobe68k)
6307                 basic_machine=m68010-adobe
6308                 os=-scout
6309 @@ -378,6 +413,9 @@ case $basic_machine in
6310         amd64)
6311                 basic_machine=x86_64-pc
6312                 ;;
6313 +       amd64-*)
6314 +               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
6315 +               ;;
6316         amdahl)
6317                 basic_machine=580-amdahl
6318                 os=-sysv
6319 @@ -409,6 +447,14 @@ case $basic_machine in
6320                 basic_machine=ns32k-sequent
6321                 os=-dynix
6322                 ;;
6323 +       blackfin)
6324 +               basic_machine=bfin-unknown
6325 +               os=-linux
6326 +               ;;
6327 +       blackfin-*)
6328 +               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
6329 +               os=-linux
6330 +               ;;
6331         c90)
6332                 basic_machine=c90-cray
6333                 os=-unicos
6334 @@ -437,12 +483,27 @@ case $basic_machine in
6335                 basic_machine=j90-cray
6336                 os=-unicos
6337                 ;;
6338 +       craynv)
6339 +               basic_machine=craynv-cray
6340 +               os=-unicosmp
6341 +               ;;
6342 +       cr16)
6343 +               basic_machine=cr16-unknown
6344 +               os=-elf
6345 +               ;;
6346         crds | unos)
6347                 basic_machine=m68k-crds
6348                 ;;
6349 +       crisv32 | crisv32-* | etraxfs*)
6350 +               basic_machine=crisv32-axis
6351 +               ;;
6352         cris | cris-* | etrax*)
6353                 basic_machine=cris-axis
6354                 ;;
6355 +       crx)
6356 +               basic_machine=crx-unknown
6357 +               os=-elf
6358 +               ;;
6359         da30 | da30-*)
6360                 basic_machine=m68k-da30
6361                 ;;
6362 @@ -465,6 +526,10 @@ case $basic_machine in
6363                 basic_machine=m88k-motorola
6364                 os=-sysv3
6365                 ;;
6366 +       djgpp)
6367 +               basic_machine=i586-pc
6368 +               os=-msdosdjgpp
6369 +               ;;
6370         dpx20 | dpx20-*)
6371                 basic_machine=rs6000-bull
6372                 os=-bosx
6373 @@ -615,6 +680,14 @@ case $basic_machine in
6374                 basic_machine=m68k-isi
6375                 os=-sysv
6376                 ;;
6377 +       m68knommu)
6378 +               basic_machine=m68k-unknown
6379 +               os=-linux
6380 +               ;;
6381 +       m68knommu-*)
6382 +               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
6383 +               os=-linux
6384 +               ;;
6385         m88k-omron*)
6386                 basic_machine=m88k-omron
6387                 ;;
6388 @@ -630,6 +703,10 @@ case $basic_machine in
6389                 basic_machine=i386-pc
6390                 os=-mingw32
6391                 ;;
6392 +       mingw32ce)
6393 +               basic_machine=arm-unknown
6394 +               os=-mingw32ce
6395 +               ;;
6396         miniframe)
6397                 basic_machine=m68000-convergent
6398                 ;;
6399 @@ -643,10 +720,6 @@ case $basic_machine in
6400         mips3*)
6401                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
6402                 ;;
6403 -       mmix*)
6404 -               basic_machine=mmix-knuth
6405 -               os=-mmixware
6406 -               ;;
6407         monitor)
6408                 basic_machine=m68k-rom68k
6409                 os=-coff
6410 @@ -659,6 +732,9 @@ case $basic_machine in
6411                 basic_machine=i386-pc
6412                 os=-msdos
6413                 ;;
6414 +       ms1-*)
6415 +               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
6416 +               ;;
6417         mvs)
6418                 basic_machine=i370-ibm
6419                 os=-mvs
6420 @@ -727,10 +803,6 @@ case $basic_machine in
6421         np1)
6422                 basic_machine=np1-gould
6423                 ;;
6424 -       nv1)
6425 -               basic_machine=nv1-cray
6426 -               os=-unicosmp
6427 -               ;;
6428         nsr-tandem)
6429                 basic_machine=nsr-tandem
6430                 ;;
6431 @@ -738,9 +810,12 @@ case $basic_machine in
6432                 basic_machine=hppa1.1-oki
6433                 os=-proelf
6434                 ;;
6435 -       or32 | or32-*)
6436 +       openrisc | openrisc-*)
6437                 basic_machine=or32-unknown
6438 -               os=-coff
6439 +               ;;
6440 +       os400)
6441 +               basic_machine=powerpc-ibm
6442 +               os=-os400
6443                 ;;
6444         OSE68000 | ose68000)
6445                 basic_machine=m68000-ericsson
6446 @@ -758,6 +833,14 @@ case $basic_machine in
6447                 basic_machine=i860-intel
6448                 os=-osf
6449                 ;;
6450 +       parisc)
6451 +               basic_machine=hppa-unknown
6452 +               os=-linux
6453 +               ;;
6454 +       parisc-*)
6455 +               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
6456 +               os=-linux
6457 +               ;;
6458         pbd)
6459                 basic_machine=sparc-tti
6460                 ;;
6461 @@ -767,6 +850,12 @@ case $basic_machine in
6462         pc532 | pc532-*)
6463                 basic_machine=ns32k-pc532
6464                 ;;
6465 +       pc98)
6466 +               basic_machine=i386-pc
6467 +               ;;
6468 +       pc98-*)
6469 +               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
6470 +               ;;
6471         pentium | p5 | k5 | k6 | nexgen | viac3)
6472                 basic_machine=i586-pc
6473                 ;;
6474 @@ -823,6 +912,10 @@ case $basic_machine in
6475                 basic_machine=i586-unknown
6476                 os=-pw32
6477                 ;;
6478 +       rdos)
6479 +               basic_machine=i386-pc
6480 +               os=-rdos
6481 +               ;;
6482         rom68k)
6483                 basic_machine=m68k-rom68k
6484                 os=-coff
6485 @@ -833,6 +926,12 @@ case $basic_machine in
6486         rtpc | rtpc-*)
6487                 basic_machine=romp-ibm
6488                 ;;
6489 +       s390 | s390-*)
6490 +               basic_machine=s390-ibm
6491 +               ;;
6492 +       s390x | s390x-*)
6493 +               basic_machine=s390x-ibm
6494 +               ;;
6495         sa29200)
6496                 basic_machine=a29k-amd
6497                 os=-udi
6498 @@ -843,6 +942,10 @@ case $basic_machine in
6499         sb1el)
6500                 basic_machine=mipsisa64sb1el-unknown
6501                 ;;
6502 +       sde)
6503 +               basic_machine=mipsisa32-sde
6504 +               os=-elf
6505 +               ;;
6506         sei)
6507                 basic_machine=mips-sei
6508                 os=-seiux
6509 @@ -854,6 +957,9 @@ case $basic_machine in
6510                 basic_machine=sh-hitachi
6511                 os=-hms
6512                 ;;
6513 +       sh5el)
6514 +               basic_machine=sh5le-unknown
6515 +               ;;
6516         sh64)
6517                 basic_machine=sh64-unknown
6518                 ;;
6519 @@ -943,6 +1049,10 @@ case $basic_machine in
6520                 basic_machine=tic6x-unknown
6521                 os=-coff
6522                 ;;
6523 +       tile*)
6524 +               basic_machine=tile-unknown
6525 +               os=-linux-gnu
6526 +               ;;
6527         tx39)
6528                 basic_machine=mipstx39-unknown
6529                 ;;
6530 @@ -956,6 +1066,10 @@ case $basic_machine in
6531         tower | tower-32)
6532                 basic_machine=m68k-ncr
6533                 ;;
6534 +       tpf)
6535 +               basic_machine=s390x-ibm
6536 +               os=-tpf
6537 +               ;;
6538         udi29k)
6539                 basic_machine=a29k-amd
6540                 os=-udi
6541 @@ -999,6 +1113,10 @@ case $basic_machine in
6542                 basic_machine=hppa1.1-winbond
6543                 os=-proelf
6544                 ;;
6545 +       xbox)
6546 +               basic_machine=i686-pc
6547 +               os=-mingw32
6548 +               ;;
6549         xps | xps100)
6550                 basic_machine=xps100-honeywell
6551                 ;;
6552 @@ -1029,6 +1147,9 @@ case $basic_machine in
6553         romp)
6554                 basic_machine=romp-ibm
6555                 ;;
6556 +       mmix)
6557 +               basic_machine=mmix-knuth
6558 +               ;;
6559         rs6000)
6560                 basic_machine=rs6000-ibm
6561                 ;;
6562 @@ -1045,13 +1166,10 @@ case $basic_machine in
6563         we32k)
6564                 basic_machine=we32k-att
6565                 ;;
6566 -       sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
6567 +       sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
6568                 basic_machine=sh-unknown
6569                 ;;
6570 -       sh64)
6571 -               basic_machine=sh64-unknown
6572 -               ;;
6573 -       sparc | sparcv9 | sparcv9b)
6574 +       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
6575                 basic_machine=sparc-sun
6576                 ;;
6577         cydra)
6578 @@ -1124,19 +1242,23 @@ case $os in
6579               | -aos* \
6580               | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
6581               | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
6582 -             | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
6583 -             | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6584 +             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
6585 +             | -openbsd* | -solidbsd* \
6586 +             | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
6587 +             | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6588               | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
6589               | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
6590               | -chorusos* | -chorusrdb* \
6591               | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
6592 -             | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
6593 +             | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
6594 +             | -uxpv* | -beos* | -mpeix* | -udk* \
6595               | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
6596               | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
6597               | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
6598               | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
6599               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
6600 -             | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
6601 +             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
6602 +             | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
6603         # Remember, each alternative MUST END IN *, to match a version number.
6604                 ;;
6605         -qnx*)
6606 @@ -1154,12 +1276,15 @@ case $os in
6607                 os=`echo $os | sed -e 's|nto|nto-qnx|'`
6608                 ;;
6609         -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
6610 -             | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
6611 +             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
6612               | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
6613                 ;;
6614         -mac*)
6615                 os=`echo $os | sed -e 's|mac|macos|'`
6616                 ;;
6617 +       -linux-dietlibc)
6618 +               os=-linux-dietlibc
6619 +               ;;
6620         -linux*)
6621                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
6622                 ;;
6623 @@ -1172,6 +1297,9 @@ case $os in
6624         -opened*)
6625                 os=-openedition
6626                 ;;
6627 +        -os400*)
6628 +               os=-os400
6629 +               ;;
6630         -wince*)
6631                 os=-wince
6632                 ;;
6633 @@ -1193,6 +1321,9 @@ case $os in
6634         -atheos*)
6635                 os=-atheos
6636                 ;;
6637 +       -syllable*)
6638 +               os=-syllable
6639 +               ;;
6640         -386bsd)
6641                 os=-bsd
6642                 ;;
6643 @@ -1215,6 +1346,9 @@ case $os in
6644         -sinix*)
6645                 os=-sysv4
6646                 ;;
6647 +        -tpf*)
6648 +               os=-tpf
6649 +               ;;
6650         -triton*)
6651                 os=-sysv3
6652                 ;;
6653 @@ -1251,6 +1385,9 @@ case $os in
6654         -kaos*)
6655                 os=-kaos
6656                 ;;
6657 +       -zvmoe)
6658 +               os=-zvmoe
6659 +               ;;
6660         -none)
6661                 ;;
6662         *)
6663 @@ -1273,6 +1410,12 @@ else
6664  # system, and we'll never get to this point.
6665  
6666  case $basic_machine in
6667 +        score-*)
6668 +               os=-elf
6669 +               ;;
6670 +        spu-*)
6671 +               os=-elf
6672 +               ;;
6673         *-acorn)
6674                 os=-riscix1.2
6675                 ;;
6676 @@ -1282,8 +1425,8 @@ case $basic_machine in
6677         arm*-semi)
6678                 os=-aout
6679                 ;;
6680 -       c4x-* | tic4x-*)
6681 -               os=-coff
6682 +        c4x-* | tic4x-*)
6683 +               os=-coff
6684                 ;;
6685         # This must come before the *-dec entry.
6686         pdp10-*)
6687 @@ -1310,6 +1453,9 @@ case $basic_machine in
6688         m68*-cisco)
6689                 os=-aout
6690                 ;;
6691 +        mep-*)
6692 +               os=-elf
6693 +               ;;
6694         mips*-cisco)
6695                 os=-elf
6696                 ;;
6697 @@ -1328,9 +1474,15 @@ case $basic_machine in
6698         *-be)
6699                 os=-beos
6700                 ;;
6701 +       *-haiku)
6702 +               os=-haiku
6703 +               ;;
6704         *-ibm)
6705                 os=-aix
6706                 ;;
6707 +       *-knuth)
6708 +               os=-mmixware
6709 +               ;;
6710         *-wec)
6711                 os=-proelf
6712                 ;;
6713 @@ -1463,9 +1615,15 @@ case $basic_machine in
6714                         -mvs* | -opened*)
6715                                 vendor=ibm
6716                                 ;;
6717 +                       -os400*)
6718 +                               vendor=ibm
6719 +                               ;;
6720                         -ptx*)
6721                                 vendor=sequent
6722                                 ;;
6723 +                       -tpf*)
6724 +                               vendor=ibm
6725 +                               ;;
6726                         -vxsim* | -vxworks* | -windiss*)
6727                                 vendor=wrs
6728                                 ;;
6729 @@ -1490,7 +1648,7 @@ case $basic_machine in
6730  esac
6731  
6732  echo $basic_machine$os
6733 -exit 0
6734 +exit
6735  
6736  # Local variables:
6737  # eval: (add-hook 'write-file-hooks 'time-stamp)
6738 --- ./aux/ltmain.sh
6739 +++ ./aux/ltmain.sh
6740 @@ -1,8 +1,8 @@
6741  # ltmain.sh - Provide generalized library-building support services.
6742  # NOTE: Changing this file will not affect anything until you rerun configure.
6743  #
6744 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
6745 -# Free Software Foundation, Inc.
6746 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6747 +# 2007, 2008  Free Software Foundation, Inc.
6748  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6749  #
6750  # This program is free software; you can redistribute it and/or modify
6751 @@ -17,7 +17,7 @@
6752  #
6753  # You should have received a copy of the GNU General Public License
6754  # along with this program; if not, write to the Free Software
6755 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6756 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6757  #
6758  # As a special exception to the GNU General Public License, if you
6759  # distribute this file as part of a program that contains a
6760 @@ -33,9 +33,6 @@ basename="s,^.*/,,g"
6761  # function.
6762  progpath="$0"
6763  
6764 -# RH: define SED for historic ltconfig's generated by Libtool 1.3
6765 -[ -z "$SED" ] && SED=sed
6766 -
6767  # The name of this program:
6768  progname=`echo "$progpath" | $SED $basename`
6769  modename="$progname"
6770 @@ -46,9 +43,22 @@ EXIT_FAILURE=1
6771  
6772  PROGRAM=ltmain.sh
6773  PACKAGE=libtool
6774 -VERSION=1.5.6
6775 -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
6776 -
6777 +VERSION="1.5.26 Debian 1.5.26-4"
6778 +TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
6779 +
6780 +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
6781 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6782 +  emulate sh
6783 +  NULLCMD=:
6784 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6785 +  # is contrary to our usage.  Disable this feature.
6786 +  alias -g '${1+"$@"}'='"$@"'
6787 +  setopt NO_GLOB_SUBST
6788 +else
6789 +  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6790 +fi
6791 +BIN_SH=xpg4; export BIN_SH # for Tru64
6792 +DUALCASE=1; export DUALCASE # for MKS sh
6793  
6794  # Check that we have a working $echo.
6795  if test "X$1" = X--no-reexec; then
6796 @@ -86,14 +96,15 @@ rm="rm -f"
6797  Xsed="${SED}"' -e 1s/^X//'
6798  sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
6799  # test EBCDIC or ASCII
6800 -case `echo A|tr A '\301'` in
6801 - A) # EBCDIC based system
6802 -  SP2NL="tr '\100' '\n'"
6803 -  NL2SP="tr '\r\n' '\100\100'"
6804 +case `echo X|tr X '\101'` in
6805 + A) # ASCII based system
6806 +    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6807 +  SP2NL='tr \040 \012'
6808 +  NL2SP='tr \015\012 \040\040'
6809    ;;
6810 - *) # Assume ASCII based system
6811 -  SP2NL="tr '\040' '\012'"
6812 -  NL2SP="tr '\015\012' '\040\040'"
6813 + *) # EBCDIC based system
6814 +  SP2NL='tr \100 \n'
6815 +  NL2SP='tr \r\n \100\100'
6816    ;;
6817  esac
6818  
6819 @@ -102,16 +113,25 @@ esac
6820  # These must not be set unconditionally because not all systems understand
6821  # e.g. LANG=C (notably SCO).
6822  # We save the old values to restore during execute mode.
6823 -if test "${LC_ALL+set}" = set; then
6824 -  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
6825 -fi
6826 -if test "${LANG+set}" = set; then
6827 -  save_LANG="$LANG"; LANG=C; export LANG
6828 +lt_env=
6829 +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6830 +do
6831 +  eval "if test \"\${$lt_var+set}\" = set; then
6832 +         save_$lt_var=\$$lt_var
6833 +         lt_env=\"$lt_var=\$$lt_var \$lt_env\"
6834 +         $lt_var=C
6835 +         export $lt_var
6836 +       fi"
6837 +done
6838 +
6839 +if test -n "$lt_env"; then
6840 +  lt_env="env $lt_env"
6841  fi
6842  
6843  # Make sure IFS has a sensible default
6844 -: ${IFS="      
6845 -"}
6846 +lt_nl='
6847 +'
6848 +IFS="  $lt_nl"
6849  
6850  if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
6851    $echo "$modename: not configured to build any kind of library" 1>&2
6852 @@ -128,20 +148,62 @@ run=
6853  show="$echo"
6854  show_help=
6855  execute_dlfiles=
6856 +duplicate_deps=no
6857 +preserve_args=
6858  lo2o="s/\\.lo\$/.${objext}/"
6859  o2lo="s/\\.${objext}\$/.lo/"
6860 +extracted_archives=
6861 +extracted_serial=0
6862  
6863  #####################################
6864  # Shell function definitions:
6865  # This seems to be the best place for them
6866  
6867 +# func_mktempdir [string]
6868 +# Make a temporary directory that won't clash with other running
6869 +# libtool processes, and avoids race conditions if possible.  If
6870 +# given, STRING is the basename for that directory.
6871 +func_mktempdir ()
6872 +{
6873 +    my_template="${TMPDIR-/tmp}/${1-$progname}"
6874 +
6875 +    if test "$run" = ":"; then
6876 +      # Return a directory name, but don't create it in dry-run mode
6877 +      my_tmpdir="${my_template}-$$"
6878 +    else
6879 +
6880 +      # If mktemp works, use that first and foremost
6881 +      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
6882 +
6883 +      if test ! -d "$my_tmpdir"; then
6884 +       # Failing that, at least try and use $RANDOM to avoid a race
6885 +       my_tmpdir="${my_template}-${RANDOM-0}$$"
6886 +
6887 +       save_mktempdir_umask=`umask`
6888 +       umask 0077
6889 +       $mkdir "$my_tmpdir"
6890 +       umask $save_mktempdir_umask
6891 +      fi
6892 +
6893 +      # If we're not in dry-run mode, bomb out on failure
6894 +      test -d "$my_tmpdir" || {
6895 +        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
6896 +       exit $EXIT_FAILURE
6897 +      }
6898 +    fi
6899 +
6900 +    $echo "X$my_tmpdir" | $Xsed
6901 +}
6902 +
6903 +
6904  # func_win32_libid arg
6905  # return the library type of file 'arg'
6906  #
6907  # Need a lot of goo to handle *both* DLLs and import libs
6908  # Has to be a shell function in order to 'eat' the argument
6909  # that is supplied when $file_magic_command is called.
6910 -func_win32_libid () {
6911 +func_win32_libid ()
6912 +{
6913    win32_libid_type="unknown"
6914    win32_fileres=`file -L $1 2>/dev/null`
6915    case $win32_fileres in
6916 @@ -152,12 +214,17 @@ func_win32_libid () {
6917      if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
6918        $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
6919        win32_nmres=`eval $NM -f posix -A $1 | \
6920 -       sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
6921 -      if test "X$win32_nmres" = "Ximport" ; then
6922 -        win32_libid_type="x86 archive import"
6923 -      else
6924 -        win32_libid_type="x86 archive static"
6925 -      fi
6926 +       $SED -n -e '1,100{
6927 +               / I /{
6928 +                       s,.*,import,
6929 +                       p
6930 +                       q
6931 +                       }
6932 +               }'`
6933 +      case $win32_nmres in
6934 +      import*)  win32_libid_type="x86 archive import";;
6935 +      *)        win32_libid_type="x86 archive static";;
6936 +      esac
6937      fi
6938      ;;
6939    *DLL*)
6940 @@ -181,7 +248,8 @@ func_win32_libid () {
6941  # Only attempt this if the compiler in the base compile
6942  # command doesn't match the default compiler.
6943  # arg is usually of the form 'gcc ...'
6944 -func_infer_tag () {
6945 +func_infer_tag ()
6946 +{
6947      if test -n "$available_tags" && test -z "$tagname"; then
6948        CC_quoted=
6949        for arg in $CC; do
6950 @@ -238,12 +306,126 @@ func_infer_tag () {
6951        esac
6952      fi
6953  }
6954 +
6955 +
6956 +# func_extract_an_archive dir oldlib
6957 +func_extract_an_archive ()
6958 +{
6959 +    f_ex_an_ar_dir="$1"; shift
6960 +    f_ex_an_ar_oldlib="$1"
6961 +
6962 +    $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
6963 +    $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
6964 +    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
6965 +     :
6966 +    else
6967 +      $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
6968 +      exit $EXIT_FAILURE
6969 +    fi
6970 +}
6971 +
6972 +# func_extract_archives gentop oldlib ...
6973 +func_extract_archives ()
6974 +{
6975 +    my_gentop="$1"; shift
6976 +    my_oldlibs=${1+"$@"}
6977 +    my_oldobjs=""
6978 +    my_xlib=""
6979 +    my_xabs=""
6980 +    my_xdir=""
6981 +    my_status=""
6982 +
6983 +    $show "${rm}r $my_gentop"
6984 +    $run ${rm}r "$my_gentop"
6985 +    $show "$mkdir $my_gentop"
6986 +    $run $mkdir "$my_gentop"
6987 +    my_status=$?
6988 +    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
6989 +      exit $my_status
6990 +    fi
6991 +
6992 +    for my_xlib in $my_oldlibs; do
6993 +      # Extract the objects.
6994 +      case $my_xlib in
6995 +       [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
6996 +       *) my_xabs=`pwd`"/$my_xlib" ;;
6997 +      esac
6998 +      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
6999 +      my_xlib_u=$my_xlib
7000 +      while :; do
7001 +        case " $extracted_archives " in
7002 +       *" $my_xlib_u "*)
7003 +         extracted_serial=`expr $extracted_serial + 1`
7004 +         my_xlib_u=lt$extracted_serial-$my_xlib ;;
7005 +       *) break ;;
7006 +       esac
7007 +      done
7008 +      extracted_archives="$extracted_archives $my_xlib_u"
7009 +      my_xdir="$my_gentop/$my_xlib_u"
7010 +
7011 +      $show "${rm}r $my_xdir"
7012 +      $run ${rm}r "$my_xdir"
7013 +      $show "$mkdir $my_xdir"
7014 +      $run $mkdir "$my_xdir"
7015 +      exit_status=$?
7016 +      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
7017 +       exit $exit_status
7018 +      fi
7019 +      case $host in
7020 +      *-darwin*)
7021 +       $show "Extracting $my_xabs"
7022 +       # Do not bother doing anything if just a dry run
7023 +       if test -z "$run"; then
7024 +         darwin_orig_dir=`pwd`
7025 +         cd $my_xdir || exit $?
7026 +         darwin_archive=$my_xabs
7027 +         darwin_curdir=`pwd`
7028 +         darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
7029 +         darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
7030 +         if test -n "$darwin_arches"; then 
7031 +           darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
7032 +           darwin_arch=
7033 +           $show "$darwin_base_archive has multiple architectures $darwin_arches"
7034 +           for darwin_arch in  $darwin_arches ; do
7035 +             mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
7036 +             lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
7037 +             cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
7038 +             func_extract_an_archive "`pwd`" "${darwin_base_archive}"
7039 +             cd "$darwin_curdir"
7040 +             $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
7041 +           done # $darwin_arches
7042 +      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
7043 +           darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
7044 +           darwin_file=
7045 +           darwin_files=
7046 +           for darwin_file in $darwin_filelist; do
7047 +             darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
7048 +             lipo -create -output "$darwin_file" $darwin_files
7049 +           done # $darwin_filelist
7050 +           ${rm}r unfat-$$
7051 +           cd "$darwin_orig_dir"
7052 +         else
7053 +           cd "$darwin_orig_dir"
7054 +           func_extract_an_archive "$my_xdir" "$my_xabs"
7055 +         fi # $darwin_arches
7056 +       fi # $run
7057 +       ;;
7058 +      *)
7059 +        func_extract_an_archive "$my_xdir" "$my_xabs"
7060 +        ;;
7061 +      esac
7062 +      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
7063 +    done
7064 +    func_extract_archives_result="$my_oldobjs"
7065 +}
7066  # End of Shell function definitions
7067  #####################################
7068  
7069  # Darwin sucks
7070  eval std_shrext=\"$shrext_cmds\"
7071  
7072 +disable_libs=no
7073 +
7074  # Parse our command line options once, thoroughly.
7075  while test "$#" -gt 0
7076  do
7077 @@ -306,12 +488,13 @@ do
7078      ;;
7079  
7080    --version)
7081 -    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
7082 -    $echo
7083 -    $echo "Copyright (C) 2003  Free Software Foundation, Inc."
7084 -    $echo "This is free software; see the source for copying conditions.  There is NO"
7085 -    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7086 -    exit $EXIT_SUCCESS
7087 +    echo "\
7088 +$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
7089 +
7090 +Copyright (C) 2008  Free Software Foundation, Inc.
7091 +This is free software; see the source for copying conditions.  There is NO
7092 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7093 +    exit $?
7094      ;;
7095  
7096    --config)
7097 @@ -320,7 +503,7 @@ do
7098      for tagname in $taglist; do
7099        ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
7100      done
7101 -    exit $EXIT_SUCCESS
7102 +    exit $?
7103      ;;
7104  
7105    --debug)
7106 @@ -345,7 +528,7 @@ do
7107      else
7108        $echo "disable static libraries"
7109      fi
7110 -    exit $EXIT_SUCCESS
7111 +    exit $?
7112      ;;
7113  
7114    --finish) mode="finish" ;;
7115 @@ -360,7 +543,11 @@ do
7116      preserve_args="$preserve_args $arg"
7117      ;;
7118  
7119 -  --tag) prevopt="--tag" prev=tag ;;
7120 +  --tag)
7121 +    prevopt="--tag"
7122 +    prev=tag
7123 +    preserve_args="$preserve_args --tag"
7124 +    ;;
7125    --tag=*)
7126      set tag "$optarg" ${1+"$@"}
7127      shift
7128 @@ -392,6 +579,18 @@ if test -n "$prevopt"; then
7129    exit $EXIT_FAILURE
7130  fi
7131  
7132 +case $disable_libs in
7133 +no) 
7134 +  ;;
7135 +shared)
7136 +  build_libtool_libs=no
7137 +  build_old_libs=yes
7138 +  ;;
7139 +static)
7140 +  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
7141 +  ;;
7142 +esac
7143 +
7144  # If this variable is set in any of the actions, the command in it
7145  # will be execed at the end.  This prevents here-documents from being
7146  # left over by shells.
7147 @@ -402,7 +601,7 @@ if test -z "$show_help"; then
7148    # Infer the operation mode.
7149    if test -z "$mode"; then
7150      $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
7151 -    $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
7152 +    $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
7153      case $nonopt in
7154      *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
7155        mode=link
7156 @@ -468,7 +667,7 @@ if test -z "$show_help"; then
7157  
7158      for arg
7159      do
7160 -      case "$arg_mode" in
7161 +      case $arg_mode in
7162        arg  )
7163         # do not "continue".  Instead, add this to base_compile
7164         lastarg="$arg"
7165 @@ -550,7 +749,10 @@ if test -z "$show_help"; then
7166        case $lastarg in
7167        # Double-quote args containing other shell metacharacters.
7168        # Many Bourne shells cannot handle close brackets correctly
7169 -      # in scan sets, so we specify it separately.
7170 +      # in scan sets, and some SunOS ksh mistreat backslash-escaping
7171 +      # in scan sets (worked around with variable expansion),
7172 +      # and furthermore cannot handle '|' '&' '(' ')' in scan sets 
7173 +      # at all, so we specify them separately.
7174        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7175         lastarg="\"$lastarg\""
7176         ;;
7177 @@ -588,9 +790,11 @@ if test -z "$show_help"; then
7178      *.class) xform=class ;;
7179      *.cpp) xform=cpp ;;
7180      *.cxx) xform=cxx ;;
7181 -    *.f90) xform=f90 ;;
7182 +    *.[fF][09]?) xform=[fF][09]. ;;
7183      *.for) xform=for ;;
7184      *.java) xform=java ;;
7185 +    *.obj) xform=obj ;;
7186 +    *.sx) xform=sx ;;
7187      esac
7188  
7189      libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
7190 @@ -624,6 +828,14 @@ if test -z "$show_help"; then
7191        esac
7192      done
7193  
7194 +    qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
7195 +    case $qlibobj in
7196 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7197 +       qlibobj="\"$qlibobj\"" ;;
7198 +    esac
7199 +    test "X$libobj" != "X$qlibobj" \
7200 +       && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
7201 +       && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
7202      objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
7203      xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
7204      if test "X$xdir" = "X$obj"; then
7205 @@ -696,12 +908,17 @@ compiler."
7206         $run $rm $removelist
7207         exit $EXIT_FAILURE
7208        fi
7209 -      $echo $srcfile > "$lockfile"
7210 +      $echo "$srcfile" > "$lockfile"
7211      fi
7212  
7213      if test -n "$fix_srcfile_path"; then
7214        eval srcfile=\"$fix_srcfile_path\"
7215      fi
7216 +    qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
7217 +    case $qsrcfile in
7218 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7219 +      qsrcfile="\"$qsrcfile\"" ;;
7220 +    esac
7221  
7222      $run $rm "$libobj" "${libobj}T"
7223  
7224 @@ -723,18 +940,18 @@ EOF
7225        fbsd_hideous_sh_bug=$base_compile
7226  
7227        if test "$pic_mode" != no; then
7228 -       command="$base_compile $srcfile $pic_flag"
7229 +       command="$base_compile $qsrcfile $pic_flag"
7230        else
7231         # Don't build PIC code
7232 -       command="$base_compile $srcfile"
7233 +       command="$base_compile $qsrcfile"
7234        fi
7235  
7236        if test ! -d "${xdir}$objdir"; then
7237         $show "$mkdir ${xdir}$objdir"
7238         $run $mkdir ${xdir}$objdir
7239 -       status=$?
7240 -       if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
7241 -         exit $status
7242 +       exit_status=$?
7243 +       if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
7244 +         exit $exit_status
7245         fi
7246        fi
7247  
7248 @@ -746,7 +963,7 @@ EOF
7249        $run $rm "$lobj" "$output_obj"
7250  
7251        $show "$command"
7252 -      if $run eval "$command"; then :
7253 +      if $run eval $lt_env "$command"; then :
7254        else
7255         test -n "$output_obj" && $run $rm $removelist
7256         exit $EXIT_FAILURE
7257 @@ -806,9 +1023,9 @@ EOF
7258      if test "$build_old_libs" = yes; then
7259        if test "$pic_mode" != yes; then
7260         # Don't build PIC code
7261 -       command="$base_compile $srcfile"
7262 +       command="$base_compile $qsrcfile"
7263        else
7264 -       command="$base_compile $srcfile $pic_flag"
7265 +       command="$base_compile $qsrcfile $pic_flag"
7266        fi
7267        if test "$compiler_c_o" = yes; then
7268         command="$command -o $obj"
7269 @@ -818,7 +1035,7 @@ EOF
7270        command="$command$suppress_output"
7271        $run $rm "$obj" "$output_obj"
7272        $show "$command"
7273 -      if $run eval "$command"; then :
7274 +      if $run eval $lt_env "$command"; then :
7275        else
7276         $run $rm $removelist
7277         exit $EXIT_FAILURE
7278 @@ -937,6 +1154,7 @@ EOF
7279      no_install=no
7280      objs=
7281      non_pic_objects=
7282 +    notinst_path= # paths that contain not-installed libtool libraries
7283      precious_files_regex=
7284      prefer_static_libs=no
7285      preload=no
7286 @@ -950,6 +1168,7 @@ EOF
7287      thread_safe=no
7288      vinfo=
7289      vinfo_number=no
7290 +    single_module="${wl}-single_module"
7291  
7292      func_infer_tag $base_compile
7293  
7294 @@ -957,22 +1176,32 @@ EOF
7295      for arg
7296      do
7297        case $arg in
7298 -      -all-static | -static)
7299 -       if test "X$arg" = "X-all-static"; then
7300 +      -all-static | -static | -static-libtool-libs)
7301 +       case $arg in
7302 +       -all-static)
7303           if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
7304             $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
7305           fi
7306           if test -n "$link_static_flag"; then
7307             dlopen_self=$dlopen_self_static
7308           fi
7309 -       else
7310 +         prefer_static_libs=yes
7311 +         ;;
7312 +       -static)
7313           if test -z "$pic_flag" && test -n "$link_static_flag"; then
7314             dlopen_self=$dlopen_self_static
7315           fi
7316 -       fi
7317 +         prefer_static_libs=built
7318 +         ;;
7319 +       -static-libtool-libs)
7320 +         if test -z "$pic_flag" && test -n "$link_static_flag"; then
7321 +           dlopen_self=$dlopen_self_static
7322 +         fi
7323 +         prefer_static_libs=yes
7324 +         ;;
7325 +       esac
7326         build_libtool_libs=no
7327         build_old_libs=yes
7328 -       prefer_static_libs=yes
7329         break
7330         ;;
7331        esac
7332 @@ -1147,6 +1376,11 @@ EOF
7333                   if test -z "$pic_object" || test "$pic_object" = none ; then
7334                     arg="$non_pic_object"
7335                   fi
7336 +               else
7337 +                 # If the PIC object exists, use it instead.
7338 +                 # $xdir was prepended to $pic_object above.
7339 +                 non_pic_object="$pic_object"
7340 +                 non_pic_objects="$non_pic_objects $non_pic_object"
7341                 fi
7342               else
7343                 # Only an error if not doing a dry-run.
7344 @@ -1230,6 +1464,13 @@ EOF
7345           prev=
7346           continue
7347           ;;
7348 +       darwin_framework|darwin_framework_skip)
7349 +         test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
7350 +         compile_command="$compile_command $arg"
7351 +         finalize_command="$finalize_command $arg"
7352 +         prev=
7353 +         continue
7354 +         ;;
7355         *)
7356           eval "$prev=\"\$arg\""
7357           prev=
7358 @@ -1288,6 +1529,18 @@ EOF
7359         continue
7360         ;;
7361  
7362 +      -framework|-arch|-isysroot)
7363 +       case " $CC " in
7364 +         *" ${arg} ${1} "* | *" ${arg} ${1} "*) 
7365 +               prev=darwin_framework_skip ;;
7366 +         *) compiler_flags="$compiler_flags $arg"
7367 +            prev=darwin_framework ;;
7368 +       esac
7369 +       compile_command="$compile_command $arg"
7370 +       finalize_command="$finalize_command $arg"
7371 +       continue
7372 +       ;;
7373 +
7374        -inst-prefix-dir)
7375         prev=inst_prefix
7376         continue
7377 @@ -1314,7 +1567,8 @@ EOF
7378           absdir=`cd "$dir" && pwd`
7379           if test -z "$absdir"; then
7380             $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
7381 -           exit $EXIT_FAILURE
7382 +           absdir="$dir"
7383 +           notinst_path="$notinst_path $dir"
7384           fi
7385           dir="$absdir"
7386           ;;
7387 @@ -1328,10 +1582,15 @@ EOF
7388         esac
7389         case $host in
7390         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7391 +         testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
7392           case :$dllsearchpath: in
7393           *":$dir:"*) ;;
7394           *) dllsearchpath="$dllsearchpath:$dir";;
7395           esac
7396 +         case :$dllsearchpath: in
7397 +         *":$testbindir:"*) ;;
7398 +         *) dllsearchpath="$dllsearchpath:$testbindir";;
7399 +         esac
7400           ;;
7401         esac
7402         continue
7403 @@ -1340,15 +1599,15 @@ EOF
7404        -l*)
7405         if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7406           case $host in
7407 -         *-*-cygwin* | *-*-pw32* | *-*-beos*)
7408 +         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
7409             # These systems don't actually have a C or math library (as such)
7410             continue
7411             ;;
7412 -         *-*-mingw* | *-*-os2*)
7413 +         *-*-os2*)
7414             # These systems don't actually have a C library (as such)
7415             test "X$arg" = "X-lc" && continue
7416             ;;
7417 -         *-*-openbsd* | *-*-freebsd*)
7418 +         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7419             # Do not include libc due to us having libc/libc_r.
7420             test "X$arg" = "X-lc" && continue
7421             ;;
7422 @@ -1356,10 +1615,19 @@ EOF
7423             # Rhapsody C and math libraries are in the System framework
7424             deplibs="$deplibs -framework System"
7425             continue
7426 +           ;;
7427 +         *-*-sco3.2v5* | *-*-sco5v6*)
7428 +           # Causes problems with __ctype
7429 +           test "X$arg" = "X-lc" && continue
7430 +           ;;
7431 +         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7432 +           # Compiler inserts libc in the correct place for threads to work
7433 +           test "X$arg" = "X-lc" && continue
7434 +           ;;
7435           esac
7436         elif test "X$arg" = "X-lc_r"; then
7437          case $host in
7438 -        *-*-openbsd* | *-*-freebsd*)
7439 +        *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7440            # Do not include libc_r directly, use -pthread flag.
7441            continue
7442            ;;
7443 @@ -1369,8 +1637,25 @@ EOF
7444         continue
7445         ;;
7446  
7447 -     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
7448 -       deplibs="$deplibs $arg"
7449 +      # Tru64 UNIX uses -model [arg] to determine the layout of C++
7450 +      # classes, name mangling, and exception handling.
7451 +      -model)
7452 +       compile_command="$compile_command $arg"
7453 +       compiler_flags="$compiler_flags $arg"
7454 +       finalize_command="$finalize_command $arg"
7455 +       prev=xcompiler
7456 +       continue
7457 +       ;;
7458 +
7459 +     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
7460 +       compiler_flags="$compiler_flags $arg"
7461 +       compile_command="$compile_command $arg"
7462 +       finalize_command="$finalize_command $arg"
7463 +       continue
7464 +       ;;
7465 +
7466 +      -multi_module)
7467 +       single_module="${wl}-multi_module"
7468         continue
7469         ;;
7470  
7471 @@ -1379,13 +1664,20 @@ EOF
7472         continue
7473         ;;
7474  
7475 -      # gcc -m* arguments should be passed to the linker via $compiler_flags
7476 -      # in order to pass architecture information to the linker
7477 -      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
7478 -      # but this is not reliable with gcc because gcc may use -mfoo to
7479 -      # select a different linker, different libraries, etc, while
7480 -      # -Wl,-mfoo simply passes -mfoo to the linker.
7481 -      -m*)
7482 +      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
7483 +      # -r[0-9][0-9]* specifies the processor on the SGI compiler
7484 +      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
7485 +      # +DA*, +DD* enable 64-bit mode on the HP compiler
7486 +      # -q* pass through compiler args for the IBM compiler
7487 +      # -m* pass through architecture-specific compiler args for GCC
7488 +      # -m*, -t[45]*, -txscale* pass through architecture-specific
7489 +      # compiler args for GCC
7490 +      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
7491 +      # -F/path gives path to uninstalled frameworks, gcc on darwin
7492 +      # @file GCC response files
7493 +      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7494 +      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
7495 +
7496         # Unknown arguments in both finalize_command and compile_command need
7497         # to be aesthetically quoted because they are evaled later.
7498         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
7499 @@ -1396,9 +1688,7 @@ EOF
7500         esac
7501          compile_command="$compile_command $arg"
7502          finalize_command="$finalize_command $arg"
7503 -        if test "$with_gcc" = "yes" ; then
7504 -          compiler_flags="$compiler_flags $arg"
7505 -        fi
7506 +        compiler_flags="$compiler_flags $arg"
7507          continue
7508          ;;
7509  
7510 @@ -1414,9 +1704,9 @@ EOF
7511  
7512        -no-install)
7513         case $host in
7514 -       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7515 +       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
7516           # The PATH hackery in wrapper scripts is required on Windows
7517 -         # in order for the loader to find any dlls it needs.
7518 +         # and Darwin in order for the loader to find any dlls it needs.
7519           $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
7520           $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
7521           fast_install=no
7522 @@ -1475,7 +1765,7 @@ EOF
7523         continue
7524         ;;
7525  
7526 -      -static)
7527 +      -static | -static-libtool-libs)
7528         # The effects of -static are defined in a previous loop.
7529         # We used to do the same as -all-static on platforms that
7530         # didn't have a PIC flag, but the assumption that the effects
7531 @@ -1636,6 +1926,11 @@ EOF
7532             if test -z "$pic_object" || test "$pic_object" = none ; then
7533               arg="$non_pic_object"
7534             fi
7535 +         else
7536 +           # If the PIC object exists, use it instead.
7537 +           # $xdir was prepended to $pic_object above.
7538 +           non_pic_object="$pic_object"
7539 +           non_pic_objects="$non_pic_objects $non_pic_object"
7540           fi
7541         else
7542           # Only an error if not doing a dry-run.
7543 @@ -1741,9 +2036,9 @@ EOF
7544      if test ! -d "$output_objdir"; then
7545        $show "$mkdir $output_objdir"
7546        $run $mkdir $output_objdir
7547 -      status=$?
7548 -      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
7549 -       exit $status
7550 +      exit_status=$?
7551 +      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
7552 +       exit $exit_status
7553        fi
7554      fi
7555  
7556 @@ -1806,7 +2101,6 @@ EOF
7557      newlib_search_path=
7558      need_relink=no # whether we're linking any uninstalled libtool libraries
7559      notinst_deplibs= # not-installed libtool libraries
7560 -    notinst_path= # paths that contain not-installed libtool libraries
7561      case $linkmode in
7562      lib)
7563         passes="conv link"
7564 @@ -1841,7 +2135,10 @@ EOF
7565         case $pass in
7566         dlopen) libs="$dlfiles" ;;
7567         dlpreopen) libs="$dlprefiles" ;;
7568 -       link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
7569 +       link)
7570 +         libs="$deplibs %DEPLIBS%"
7571 +         test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7572 +         ;;
7573         esac
7574        fi
7575        if test "$pass" = dlopen; then
7576 @@ -1853,12 +2150,12 @@ EOF
7577         lib=
7578         found=no
7579         case $deplib in
7580 -       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
7581 +       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
7582           if test "$linkmode,$pass" = "prog,link"; then
7583             compile_deplibs="$deplib $compile_deplibs"
7584             finalize_deplibs="$deplib $finalize_deplibs"
7585           else
7586 -           deplibs="$deplib $deplibs"
7587 +           compiler_flags="$compiler_flags $deplib"
7588           fi
7589           continue
7590           ;;
7591 @@ -1867,12 +2164,13 @@ EOF
7592             $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
7593             continue
7594           fi
7595 -         if test "$pass" = conv; then
7596 -           deplibs="$deplib $deplibs"
7597 -           continue
7598 -         fi
7599           name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
7600 -         for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
7601 +         if test "$linkmode" = lib; then
7602 +           searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
7603 +         else
7604 +           searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
7605 +         fi
7606 +         for searchdir in $searchdirs; do
7607             for search_ext in .la $std_shrext .so .a; do
7608               # Search the libtool library
7609               lib="$searchdir/lib${name}${search_ext}"
7610 @@ -1981,7 +2279,22 @@ EOF
7611           fi
7612           case $linkmode in
7613           lib)
7614 -           if test "$deplibs_check_method" != pass_all; then
7615 +           valid_a_lib=no
7616 +           case $deplibs_check_method in
7617 +             match_pattern*)
7618 +               set dummy $deplibs_check_method
7619 +               match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7620 +               if eval $echo \"$deplib\" 2>/dev/null \
7621 +                   | $SED 10q \
7622 +                   | $EGREP "$match_pattern_regex" > /dev/null; then
7623 +                 valid_a_lib=yes
7624 +               fi
7625 +               ;;
7626 +             pass_all)
7627 +               valid_a_lib=yes
7628 +               ;;
7629 +            esac
7630 +           if test "$valid_a_lib" != yes; then
7631               $echo
7632               $echo "*** Warning: Trying to link with static lib archive $deplib."
7633               $echo "*** I have the capability to make that library automatically link in when"
7634 @@ -2031,7 +2344,7 @@ EOF
7635         esac # case $deplib
7636         if test "$found" = yes || test -f "$lib"; then :
7637         else
7638 -         $echo "$modename: cannot find the library \`$lib'" 1>&2
7639 +         $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
7640           exit $EXIT_FAILURE
7641         fi
7642  
7643 @@ -2055,6 +2368,8 @@ EOF
7644         # it will not redefine variables installed, or shouldnotlink
7645         installed=yes
7646         shouldnotlink=no
7647 +       avoidtemprpath=
7648 +
7649  
7650         # Read the .la file
7651         case $lib in
7652 @@ -2153,11 +2468,19 @@ EOF
7653             dir="$libdir"
7654             absdir="$libdir"
7655           fi
7656 +         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
7657         else
7658 -         dir="$ladir/$objdir"
7659 -         absdir="$abs_ladir/$objdir"
7660 -         # Remove this search path later
7661 -         notinst_path="$notinst_path $abs_ladir"
7662 +         if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
7663 +           dir="$ladir"
7664 +           absdir="$abs_ladir"
7665 +           # Remove this search path later
7666 +           notinst_path="$notinst_path $abs_ladir"
7667 +         else
7668 +           dir="$ladir/$objdir"
7669 +           absdir="$abs_ladir/$objdir"
7670 +           # Remove this search path later
7671 +           notinst_path="$notinst_path $abs_ladir"
7672 +         fi
7673         fi # $installed = yes
7674         name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
7675  
7676 @@ -2228,14 +2551,16 @@ EOF
7677  
7678         if test "$linkmode,$pass" = "prog,link"; then
7679           if test -n "$library_names" &&
7680 -            { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
7681 +            { { test "$prefer_static_libs" = no ||
7682 +                test "$prefer_static_libs,$installed" = "built,yes"; } ||
7683 +              test -z "$old_library"; }; then
7684             # We need to hardcode the library path
7685 -           if test -n "$shlibpath_var"; then
7686 +           if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
7687               # Make sure the rpath contains only unique directories.
7688               case "$temp_rpath " in
7689               *" $dir "*) ;;
7690               *" $absdir "*) ;;
7691 -             *) temp_rpath="$temp_rpath $dir" ;;
7692 +             *) temp_rpath="$temp_rpath $absdir" ;;
7693               esac
7694             fi
7695  
7696 @@ -2272,8 +2597,12 @@ EOF
7697         fi
7698  
7699         link_static=no # Whether the deplib will be linked statically
7700 +       use_static_libs=$prefer_static_libs
7701 +       if test "$use_static_libs" = built && test "$installed" = yes ; then
7702 +         use_static_libs=no
7703 +       fi
7704         if test -n "$library_names" &&
7705 -          { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
7706 +          { test "$use_static_libs" = no || test -z "$old_library"; }; then
7707           if test "$installed" = no; then
7708             notinst_deplibs="$notinst_deplibs $lib"
7709             need_relink=yes
7710 @@ -2386,11 +2715,15 @@ EOF
7711               if test "$hardcode_direct" = no; then
7712                 add="$dir/$linklib"
7713                 case $host in
7714 -                 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
7715 +                 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
7716 +                 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
7717 +                 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
7718 +                   *-*-unixware7*) add_dir="-L$dir" ;;
7719                   *-*-darwin* )
7720                     # if the lib is a module then we can not link against
7721                     # it, someone is ignoring the new warnings I added
7722 -                   if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
7723 +                   if /usr/bin/file -L $add 2> /dev/null |
7724 +                      $EGREP ": [^:]* bundle" >/dev/null ; then
7725                       $echo "** Warning, lib $linklib is a module, not a shared library"
7726                       if test -z "$old_library" ; then
7727                         $echo
7728 @@ -2421,7 +2754,7 @@ EOF
7729                 add_dir="-L$dir"
7730                 # Try looking first in the location we're being installed to.
7731                 if test -n "$inst_prefix_dir"; then
7732 -                 case "$libdir" in
7733 +                 case $libdir in
7734                     [\\/]*)
7735                       add_dir="$add_dir -L$inst_prefix_dir$libdir"
7736                       ;;
7737 @@ -2494,7 +2827,7 @@ EOF
7738               add_dir="-L$libdir"
7739               # Try looking first in the location we're being installed to.
7740               if test -n "$inst_prefix_dir"; then
7741 -               case "$libdir" in
7742 +               case $libdir in
7743                   [\\/]*)
7744                     add_dir="$add_dir -L$inst_prefix_dir$libdir"
7745                     ;;
7746 @@ -2555,8 +2888,6 @@ EOF
7747               fi
7748             fi
7749           else
7750 -           convenience="$convenience $dir/$old_library"
7751 -           old_convenience="$old_convenience $dir/$old_library"
7752             deplibs="$dir/$old_library $deplibs"
7753             link_static=yes
7754           fi
7755 @@ -2635,12 +2966,18 @@ EOF
7756                   # we do not want to link against static libs,
7757                   # but need to link against shared
7758                   eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7759 +                 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7760                   if test -n "$deplibrary_names" ; then
7761                     for tmp in $deplibrary_names ; do
7762                       depdepl=$tmp
7763                     done
7764 -                   if test -f "$path/$depdepl" ; then
7765 +                   if test -f "$deplibdir/$depdepl" ; then
7766 +                     depdepl="$deplibdir/$depdepl"
7767 +                   elif test -f "$path/$depdepl" ; then
7768                       depdepl="$path/$depdepl"
7769 +                   else
7770 +                     # Can't find it, oh well...
7771 +                     depdepl=
7772                     fi
7773                     # do not add paths which are already there
7774                     case " $newlib_search_path " in
7775 @@ -2674,12 +3011,12 @@ EOF
7776               *) continue ;;
7777               esac
7778               case " $deplibs " in
7779 -             *" $depdepl "*) ;;
7780 -             *) deplibs="$depdepl $deplibs" ;;
7781 +             *" $path "*) ;;
7782 +             *) deplibs="$path $deplibs" ;;
7783               esac
7784               case " $deplibs " in
7785 -             *" $path "*) ;;
7786 -             *) deplibs="$deplibs $path" ;;
7787 +             *" $depdepl "*) ;;
7788 +             *) deplibs="$depdepl $deplibs" ;;
7789               esac
7790             done
7791           fi # link_all_deplibs != no
7792 @@ -2788,9 +3125,10 @@ EOF
7793  
7794      case $linkmode in
7795      oldlib)
7796 -      if test -n "$deplibs"; then
7797 -       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
7798 -      fi
7799 +      case " $deplibs" in
7800 +      *\ -l* | *\ -L*)
7801 +       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
7802 +      esac
7803  
7804        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7805         $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
7806 @@ -2918,7 +3256,7 @@ EOF
7807           # which has an extra 1 added just for fun
7808           #
7809           case $version_type in
7810 -         darwin|linux|osf|windows)
7811 +         darwin|linux|osf|windows|none)
7812             current=`expr $number_major + $number_minor`
7813             age="$number_minor"
7814             revision="$number_revision"
7815 @@ -2929,9 +3267,15 @@ EOF
7816             age="0"
7817             ;;
7818           irix|nonstopux)
7819 -           current=`expr $number_major + $number_minor - 1`
7820 +           current=`expr $number_major + $number_minor`
7821             age="$number_minor"
7822             revision="$number_minor"
7823 +           lt_irix_increment=no
7824 +           ;;
7825 +         *)
7826 +           $echo "$modename: unknown library version type \`$version_type'" 1>&2
7827 +           $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
7828 +           exit $EXIT_FAILURE
7829             ;;
7830           esac
7831           ;;
7832 @@ -2944,27 +3288,27 @@ EOF
7833  
7834         # Check that each of the things are valid numbers.
7835         case $current in
7836 -       [0-9]*) ;;
7837 +       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7838         *)
7839 -         $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
7840 +         $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
7841           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7842           exit $EXIT_FAILURE
7843           ;;
7844         esac
7845  
7846         case $revision in
7847 -       [0-9]*) ;;
7848 +       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7849         *)
7850 -         $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
7851 +         $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
7852           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7853           exit $EXIT_FAILURE
7854           ;;
7855         esac
7856  
7857         case $age in
7858 -       [0-9]*) ;;
7859 +       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7860         *)
7861 -         $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
7862 +         $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
7863           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7864           exit $EXIT_FAILURE
7865           ;;
7866 @@ -2990,6 +3334,7 @@ EOF
7867           versuffix="$major.$age.$revision"
7868           # Darwin ld doesn't like 0 for these options...
7869           minor_current=`expr $current + 1`
7870 +         xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
7871           verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7872           ;;
7873  
7874 @@ -3004,8 +3349,11 @@ EOF
7875           ;;
7876  
7877         irix | nonstopux)
7878 -         major=`expr $current - $age + 1`
7879 -
7880 +         if test "X$lt_irix_increment" = "Xno"; then
7881 +           major=`expr $current - $age`
7882 +         else
7883 +           major=`expr $current - $age + 1`
7884 +         fi
7885           case $version_type in
7886             nonstopux) verstring_prefix=nonstopux ;;
7887             *)         verstring_prefix=sgi ;;
7888 @@ -3142,11 +3490,11 @@ EOF
7889        fi
7890  
7891        # Eliminate all temporary directories.
7892 -      for path in $notinst_path; do
7893 -       lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
7894 -       deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
7895 -       dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
7896 -      done
7897 +      #for path in $notinst_path; do
7898 +      #        lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
7899 +      #        deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
7900 +      #        dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
7901 +      #done
7902  
7903        if test -n "$xrpath"; then
7904         # If the user specified any rpath flags, then add them.
7905 @@ -3196,9 +3544,14 @@ EOF
7906           *-*-netbsd*)
7907             # Don't link with libc until the a.out ld.so is fixed.
7908             ;;
7909 -         *-*-openbsd* | *-*-freebsd*)
7910 +         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7911             # Do not include libc due to us having libc/libc_r.
7912 -           test "X$arg" = "X-lc" && continue
7913 +           ;;
7914 +         *-*-sco3.2v5* | *-*-sco5v6*)
7915 +           # Causes problems with __ctype
7916 +           ;;
7917 +         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7918 +           # Compiler inserts libc in the correct place for threads to work
7919             ;;
7920           *)
7921             # Add libc to deplibs on all other systems if necessary.
7922 @@ -3242,13 +3595,12 @@ EOF
7923           int main() { return 0; }
7924  EOF
7925           $rm conftest
7926 -         $LTCC -o conftest conftest.c $deplibs
7927 -         if test "$?" -eq 0 ; then
7928 +         if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7929             ldd_output=`ldd conftest`
7930             for i in $deplibs; do
7931 -             name="`expr $i : '-l\(.*\)'`"
7932 +             name=`expr $i : '-l\(.*\)'`
7933               # If $name is empty we are operating on a -L argument.
7934 -              if test "$name" != "" && test "$name" -ne "0"; then
7935 +              if test "$name" != "" && test "$name" != "0"; then
7936                 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7937                   case " $predeps $postdeps " in
7938                   *" $i "*)
7939 @@ -3283,13 +3635,11 @@ EOF
7940             # Error occurred in the first compile.  Let's try to salvage
7941             # the situation: Compile a separate program for each library.
7942             for i in $deplibs; do
7943 -             name="`expr $i : '-l\(.*\)'`"
7944 +             name=`expr $i : '-l\(.*\)'`
7945               # If $name is empty we are operating on a -L argument.
7946                if test "$name" != "" && test "$name" != "0"; then
7947                 $rm conftest
7948 -               $LTCC -o conftest conftest.c $i
7949 -               # Did it work?
7950 -               if test "$?" -eq 0 ; then
7951 +               if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7952                   ldd_output=`ldd conftest`
7953                   if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7954                     case " $predeps $postdeps " in
7955 @@ -3321,7 +3671,7 @@ EOF
7956                   droppeddeps=yes
7957                   $echo
7958                   $echo "*** Warning!  Library $i is needed by this library but I was not able to"
7959 -                 $echo "***  make it link in!  You will probably need to install it or some"
7960 +                 $echo "*** make it link in!  You will probably need to install it or some"
7961                   $echo "*** library that it depends on before this library will be fully"
7962                   $echo "*** functional.  Installing it before continuing would be even better."
7963                 fi
7964 @@ -3335,7 +3685,7 @@ EOF
7965           set dummy $deplibs_check_method
7966           file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7967           for a_deplib in $deplibs; do
7968 -           name="`expr $a_deplib : '-l\(.*\)'`"
7969 +           name=`expr $a_deplib : '-l\(.*\)'`
7970             # If $name is empty we are operating on a -L argument.
7971              if test "$name" != "" && test  "$name" != "0"; then
7972               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7973 @@ -3404,7 +3754,7 @@ EOF
7974           set dummy $deplibs_check_method
7975           match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7976           for a_deplib in $deplibs; do
7977 -           name="`expr $a_deplib : '-l\(.*\)'`"
7978 +           name=`expr $a_deplib : '-l\(.*\)'`
7979             # If $name is empty we are operating on a -L argument.
7980             if test -n "$name" && test "$name" != "0"; then
7981               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7982 @@ -3534,6 +3884,35 @@ EOF
7983         deplibs=$newdeplibs
7984        fi
7985  
7986 +
7987 +      # move library search paths that coincide with paths to not yet
7988 +      # installed libraries to the beginning of the library search list
7989 +      new_libs=
7990 +      for path in $notinst_path; do
7991 +       case " $new_libs " in
7992 +       *" -L$path/$objdir "*) ;;
7993 +       *)
7994 +         case " $deplibs " in
7995 +         *" -L$path/$objdir "*)
7996 +           new_libs="$new_libs -L$path/$objdir" ;;
7997 +         esac
7998 +         ;;
7999 +       esac
8000 +      done
8001 +      for deplib in $deplibs; do
8002 +       case $deplib in
8003 +       -L*)
8004 +         case " $new_libs " in
8005 +         *" $deplib "*) ;;
8006 +         *) new_libs="$new_libs $deplib" ;;
8007 +         esac
8008 +         ;;
8009 +       *) new_libs="$new_libs $deplib" ;;
8010 +       esac
8011 +      done
8012 +      deplibs="$new_libs"
8013 +
8014 +
8015        # All the library-specific variables (install_libdir is set above).
8016        library_names=
8017        old_library=
8018 @@ -3578,7 +3957,10 @@ EOF
8019              test -n "$hardcode_libdirs"; then
8020             libdir="$hardcode_libdirs"
8021             if test -n "$hardcode_libdir_flag_spec_ld"; then
8022 -             eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
8023 +             case $archive_cmds in
8024 +             *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
8025 +             *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
8026 +             esac
8027             else
8028               eval dep_rpath=\"$hardcode_libdir_flag_spec\"
8029             fi
8030 @@ -3617,6 +3999,7 @@ EOF
8031         fi
8032  
8033         lib="$output_objdir/$realname"
8034 +       linknames=
8035         for link
8036         do
8037           linknames="$linknames $link"
8038 @@ -3645,6 +4028,9 @@ EOF
8039                 # The command line is too long to execute in one step.
8040                 $show "using reloadable object file for export list..."
8041                 skipped_export=:
8042 +               # Break out early, otherwise skipped_export may be
8043 +               # set to false by a later but shorter cmd.
8044 +               break
8045               fi
8046             done
8047             IFS="$save_ifs"
8048 @@ -3678,67 +4064,13 @@ EOF
8049             eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8050           else
8051             gentop="$output_objdir/${outputname}x"
8052 -           $show "${rm}r $gentop"
8053 -           $run ${rm}r "$gentop"
8054 -           $show "$mkdir $gentop"
8055 -           $run $mkdir "$gentop"
8056 -           status=$?
8057 -           if test "$status" -ne 0 && test ! -d "$gentop"; then
8058 -             exit $status
8059 -           fi
8060             generated="$generated $gentop"
8061  
8062 -           for xlib in $convenience; do
8063 -             # Extract the objects.
8064 -             case $xlib in
8065 -             [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8066 -             *) xabs=`pwd`"/$xlib" ;;
8067 -             esac
8068 -             xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8069 -             xdir="$gentop/$xlib"
8070 -
8071 -             $show "${rm}r $xdir"
8072 -             $run ${rm}r "$xdir"
8073 -             $show "$mkdir $xdir"
8074 -             $run $mkdir "$xdir"
8075 -             status=$?
8076 -             if test "$status" -ne 0 && test ! -d "$xdir"; then
8077 -               exit $status
8078 -             fi
8079 -             # We will extract separately just the conflicting names and we will no
8080 -             # longer touch any unique names. It is faster to leave these extract
8081 -             # automatically by $AR in one run.
8082 -             $show "(cd $xdir && $AR x $xabs)"
8083 -             $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8084 -             if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
8085 -               :
8086 -             else
8087 -               $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
8088 -               $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
8089 -               $AR t "$xabs" | sort | uniq -cd | while read -r count name
8090 -               do
8091 -                 i=1
8092 -                 while test "$i" -le "$count"
8093 -                 do
8094 -                  # Put our $i before any first dot (extension)
8095 -                  # Never overwrite any file
8096 -                  name_to="$name"
8097 -                  while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
8098 -                  do
8099 -                    name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
8100 -                  done
8101 -                  $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
8102 -                  $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
8103 -                  i=`expr $i + 1`
8104 -                 done
8105 -               done
8106 -             fi
8107 -
8108 -             libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
8109 -           done
8110 +           func_extract_archives $gentop $convenience
8111 +           libobjs="$libobjs $func_extract_archives_result"
8112           fi
8113         fi
8114 -
8115 +       
8116         if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8117           eval flag=\"$thread_safe_flag_spec\"
8118           linker_flags="$linker_flags $flag"
8119 @@ -3768,7 +4100,8 @@ EOF
8120           fi
8121         fi
8122  
8123 -       if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
8124 +       if test "X$skipped_export" != "X:" &&
8125 +          len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
8126            test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8127           :
8128         else
8129 @@ -3787,6 +4120,7 @@ EOF
8130             save_libobjs=$libobjs
8131           fi
8132           save_output=$output
8133 +         output_la=`$echo "X$output" | $Xsed -e "$basename"`
8134  
8135           # Clear the reloadable object creation command queue and
8136           # initialize k to one.
8137 @@ -3796,13 +4130,13 @@ EOF
8138           delfiles=
8139           last_robj=
8140           k=1
8141 -         output=$output_objdir/$save_output-${k}.$objext
8142 +         output=$output_objdir/$output_la-${k}.$objext
8143           # Loop over the list of objects to be linked.
8144           for obj in $save_libobjs
8145           do
8146             eval test_cmds=\"$reload_cmds $objlist $last_robj\"
8147             if test "X$objlist" = X ||
8148 -              { len=`expr "X$test_cmds" : ".*"` &&
8149 +              { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
8150                  test "$len" -le "$max_cmd_len"; }; then
8151               objlist="$objlist $obj"
8152             else
8153 @@ -3816,9 +4150,9 @@ EOF
8154                 # the last one created.
8155                 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
8156               fi
8157 -             last_robj=$output_objdir/$save_output-${k}.$objext
8158 +             last_robj=$output_objdir/$output_la-${k}.$objext
8159               k=`expr $k + 1`
8160 -             output=$output_objdir/$save_output-${k}.$objext
8161 +             output=$output_objdir/$output_la-${k}.$objext
8162               objlist=$obj
8163               len=1
8164             fi
8165 @@ -3838,13 +4172,13 @@ EOF
8166             eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
8167            fi
8168  
8169 -         # Set up a command to remove the reloadale object files
8170 +         # Set up a command to remove the reloadable object files
8171           # after they are used.
8172           i=0
8173           while test "$i" -lt "$k"
8174           do
8175             i=`expr $i + 1`
8176 -           delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
8177 +           delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
8178           done
8179  
8180           $echo "creating a temporary reloadable object file: $output"
8181 @@ -3892,13 +4226,30 @@ EOF
8182           IFS="$save_ifs"
8183           eval cmd=\"$cmd\"
8184           $show "$cmd"
8185 -         $run eval "$cmd" || exit $?
8186 +         $run eval "$cmd" || {
8187 +           lt_exit=$?
8188 +
8189 +           # Restore the uninstalled library and exit
8190 +           if test "$mode" = relink; then
8191 +             $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
8192 +           fi
8193 +
8194 +           exit $lt_exit
8195 +         }
8196         done
8197         IFS="$save_ifs"
8198  
8199         # Restore the uninstalled library and exit
8200         if test "$mode" = relink; then
8201           $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
8202 +
8203 +         if test -n "$convenience"; then
8204 +           if test -z "$whole_archive_flag_spec"; then
8205 +             $show "${rm}r $gentop"
8206 +             $run ${rm}r "$gentop"
8207 +           fi
8208 +         fi
8209 +
8210           exit $EXIT_SUCCESS
8211         fi
8212  
8213 @@ -3919,9 +4270,10 @@ EOF
8214        ;;
8215  
8216      obj)
8217 -      if test -n "$deplibs"; then
8218 -       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
8219 -      fi
8220 +      case " $deplibs" in
8221 +      *\ -l* | *\ -L*)
8222 +       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
8223 +      esac
8224  
8225        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8226         $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
8227 @@ -3968,72 +4320,20 @@ EOF
8228        reload_conv_objs=
8229        gentop=
8230        # reload_cmds runs $LD directly, so let us get rid of
8231 -      # -Wl from whole_archive_flag_spec
8232 +      # -Wl from whole_archive_flag_spec and hope we can get by with
8233 +      # turning comma into space..
8234        wl=
8235  
8236        if test -n "$convenience"; then
8237         if test -n "$whole_archive_flag_spec"; then
8238 -         eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
8239 +         eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8240 +         reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
8241         else
8242           gentop="$output_objdir/${obj}x"
8243 -         $show "${rm}r $gentop"
8244 -         $run ${rm}r "$gentop"
8245 -         $show "$mkdir $gentop"
8246 -         $run $mkdir "$gentop"
8247 -         status=$?
8248 -         if test "$status" -ne 0 && test ! -d "$gentop"; then
8249 -           exit $status
8250 -         fi
8251           generated="$generated $gentop"
8252  
8253 -         for xlib in $convenience; do
8254 -           # Extract the objects.
8255 -           case $xlib in
8256 -           [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8257 -           *) xabs=`pwd`"/$xlib" ;;
8258 -           esac
8259 -           xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8260 -           xdir="$gentop/$xlib"
8261 -
8262 -           $show "${rm}r $xdir"
8263 -           $run ${rm}r "$xdir"
8264 -           $show "$mkdir $xdir"
8265 -           $run $mkdir "$xdir"
8266 -           status=$?
8267 -           if test "$status" -ne 0 && test ! -d "$xdir"; then
8268 -             exit $status
8269 -           fi
8270 -           # We will extract separately just the conflicting names and we will no
8271 -           # longer touch any unique names. It is faster to leave these extract
8272 -           # automatically by $AR in one run.
8273 -           $show "(cd $xdir && $AR x $xabs)"
8274 -           $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8275 -           if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
8276 -             :
8277 -           else
8278 -             $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
8279 -             $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
8280 -             $AR t "$xabs" | sort | uniq -cd | while read -r count name
8281 -             do
8282 -               i=1
8283 -               while test "$i" -le "$count"
8284 -               do
8285 -                # Put our $i before any first dot (extension)
8286 -                # Never overwrite any file
8287 -                name_to="$name"
8288 -                while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
8289 -                do
8290 -                  name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
8291 -                done
8292 -                $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
8293 -                $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
8294 -                i=`expr $i + 1`
8295 -               done
8296 -             done
8297 -           fi
8298 -
8299 -           reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
8300 -         done
8301 +         func_extract_archives $gentop $convenience
8302 +         reload_conv_objs="$reload_objs $func_extract_archives_result"
8303         fi
8304        fi
8305  
8306 @@ -4134,6 +4434,35 @@ EOF
8307          ;;
8308        esac
8309  
8310 +
8311 +      # move library search paths that coincide with paths to not yet
8312 +      # installed libraries to the beginning of the library search list
8313 +      new_libs=
8314 +      for path in $notinst_path; do
8315 +       case " $new_libs " in
8316 +       *" -L$path/$objdir "*) ;;
8317 +       *)
8318 +         case " $compile_deplibs " in
8319 +         *" -L$path/$objdir "*)
8320 +           new_libs="$new_libs -L$path/$objdir" ;;
8321 +         esac
8322 +         ;;
8323 +       esac
8324 +      done
8325 +      for deplib in $compile_deplibs; do
8326 +       case $deplib in
8327 +       -L*)
8328 +         case " $new_libs " in
8329 +         *" $deplib "*) ;;
8330 +         *) new_libs="$new_libs $deplib" ;;
8331 +         esac
8332 +         ;;
8333 +       *) new_libs="$new_libs $deplib" ;;
8334 +       esac
8335 +      done
8336 +      compile_deplibs="$new_libs"
8337 +
8338 +
8339        compile_command="$compile_command $compile_deplibs"
8340        finalize_command="$finalize_command $finalize_deplibs"
8341  
8342 @@ -4178,10 +4507,15 @@ EOF
8343         fi
8344         case $host in
8345         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
8346 +         testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
8347           case :$dllsearchpath: in
8348           *":$libdir:"*) ;;
8349           *) dllsearchpath="$dllsearchpath:$libdir";;
8350           esac
8351 +         case :$dllsearchpath: in
8352 +         *":$testbindir:"*) ;;
8353 +         *) dllsearchpath="$dllsearchpath:$testbindir";;
8354 +         esac
8355           ;;
8356         esac
8357        done
8358 @@ -4295,13 +4629,25 @@ extern \"C\" {
8359  
8360             # Prepare the list of exported symbols
8361             if test -z "$export_symbols"; then
8362 -             export_symbols="$output_objdir/$output.exp"
8363 +             export_symbols="$output_objdir/$outputname.exp"
8364               $run $rm $export_symbols
8365 -             $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
8366 +             $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
8367 +              case $host in
8368 +              *cygwin* | *mingw* )
8369 +               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
8370 +               $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
8371 +                ;;
8372 +              esac
8373             else
8374 -             $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
8375 -             $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
8376 +             $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
8377 +             $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
8378               $run eval 'mv "$nlist"T "$nlist"'
8379 +              case $host in
8380 +              *cygwin* | *mingw* )
8381 +               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
8382 +               $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
8383 +                ;;
8384 +              esac
8385             fi
8386           fi
8387  
8388 @@ -4352,7 +4698,26 @@ extern \"C\" {
8389  #endif
8390  
8391  /* The mapping between symbol names and symbols. */
8392 +"
8393 +
8394 +           case $host in
8395 +           *cygwin* | *mingw* )
8396 +         $echo >> "$output_objdir/$dlsyms" "\
8397 +/* DATA imports from DLLs on WIN32 can't be const, because
8398 +   runtime relocations are performed -- see ld's documentation
8399 +   on pseudo-relocs */
8400 +struct {
8401 +"
8402 +             ;;
8403 +           * )
8404 +         $echo >> "$output_objdir/$dlsyms" "\
8405  const struct {
8406 +"
8407 +             ;;
8408 +           esac
8409 +
8410 +
8411 +         $echo >> "$output_objdir/$dlsyms" "\
8412    const char *name;
8413    lt_ptr address;
8414  }
8415 @@ -4399,16 +4764,29 @@ static const void *lt_preloaded_setup() {
8416           esac
8417  
8418           # Now compile the dynamic symbol file.
8419 -         $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
8420 -         $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
8421 +         $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
8422 +         $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
8423  
8424           # Clean up the generated files.
8425           $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
8426           $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
8427  
8428           # Transform the symbol file into the correct name.
8429 -         compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
8430 -         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
8431 +          case $host in
8432 +          *cygwin* | *mingw* )
8433 +            if test -f "$output_objdir/${outputname}.def" ; then
8434 +              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
8435 +              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
8436 +            else
8437 +              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8438 +              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8439 +             fi
8440 +            ;;
8441 +          * )
8442 +            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8443 +            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8444 +            ;;
8445 +          esac
8446           ;;
8447         *)
8448           $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
8449 @@ -4421,19 +4799,19 @@ static const void *lt_preloaded_setup() {
8450         # really was required.
8451  
8452         # Nullify the symbol file.
8453 -       compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
8454 -       finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
8455 +       compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
8456 +       finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
8457        fi
8458  
8459        if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8460         # Replace the output file specification.
8461 -       compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8462 +       compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
8463         link_command="$compile_command$compile_rpath"
8464  
8465         # We have no uninstalled library dependencies, so finalize right now.
8466         $show "$link_command"
8467         $run eval "$link_command"
8468 -       status=$?
8469 +       exit_status=$?
8470  
8471         # Delete the generated files.
8472         if test -n "$dlsyms"; then
8473 @@ -4441,7 +4819,7 @@ static const void *lt_preloaded_setup() {
8474           $run $rm "$output_objdir/${outputname}S.${objext}"
8475         fi
8476  
8477 -       exit $status
8478 +       exit $exit_status
8479        fi
8480  
8481        if test -n "$shlibpath_var"; then
8482 @@ -4514,7 +4892,7 @@ static const void *lt_preloaded_setup() {
8483         if test "$fast_install" != no; then
8484           link_command="$finalize_var$compile_command$finalize_rpath"
8485           if test "$fast_install" = yes; then
8486 -           relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
8487 +           relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
8488           else
8489             # fast_install is set to needless
8490             relink_command=
8491 @@ -4551,7 +4929,7 @@ static const void *lt_preloaded_setup() {
8492           fi
8493         done
8494         relink_command="(cd `pwd`; $relink_command)"
8495 -       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
8496 +       relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
8497        fi
8498  
8499        # Quote $echo for shipping.
8500 @@ -4581,10 +4959,12 @@ static const void *lt_preloaded_setup() {
8501         esac
8502         case $host in
8503           *cygwin* | *mingw* )
8504 -           cwrappersource=`$echo ${objdir}/lt-${output}.c`
8505 -           cwrapper=`$echo ${output}.exe`
8506 -           $rm $cwrappersource $cwrapper
8507 -           trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
8508 +            output_name=`basename $output`
8509 +            output_path=`dirname $output`
8510 +            cwrappersource="$output_path/$objdir/lt-$output_name.c"
8511 +            cwrapper="$output_path/$output_name.exe"
8512 +            $rm $cwrappersource $cwrapper
8513 +            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
8514  
8515             cat > $cwrappersource <<EOF
8516  
8517 @@ -4609,6 +4989,9 @@ EOF
8518  #include <malloc.h>
8519  #include <stdarg.h>
8520  #include <assert.h>
8521 +#include <string.h>
8522 +#include <ctype.h>
8523 +#include <sys/stat.h>
8524  
8525  #if defined(PATH_MAX)
8526  # define LT_PATHMAX PATH_MAX
8527 @@ -4619,15 +5002,19 @@ EOF
8528  #endif
8529  
8530  #ifndef DIR_SEPARATOR
8531 -#define DIR_SEPARATOR '/'
8532 +# define DIR_SEPARATOR '/'
8533 +# define PATH_SEPARATOR ':'
8534  #endif
8535  
8536  #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
8537    defined (__OS2__)
8538 -#define HAVE_DOS_BASED_FILE_SYSTEM
8539 -#ifndef DIR_SEPARATOR_2
8540 -#define DIR_SEPARATOR_2 '\\'
8541 -#endif
8542 +# define HAVE_DOS_BASED_FILE_SYSTEM
8543 +# ifndef DIR_SEPARATOR_2
8544 +#  define DIR_SEPARATOR_2 '\\'
8545 +# endif
8546 +# ifndef PATH_SEPARATOR_2
8547 +#  define PATH_SEPARATOR_2 ';'
8548 +# endif
8549  #endif
8550  
8551  #ifndef DIR_SEPARATOR_2
8552 @@ -4637,17 +5024,32 @@ EOF
8553          (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
8554  #endif /* DIR_SEPARATOR_2 */
8555  
8556 +#ifndef PATH_SEPARATOR_2
8557 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
8558 +#else /* PATH_SEPARATOR_2 */
8559 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
8560 +#endif /* PATH_SEPARATOR_2 */
8561 +
8562  #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
8563  #define XFREE(stale) do { \
8564    if (stale) { free ((void *) stale); stale = 0; } \
8565  } while (0)
8566  
8567 +/* -DDEBUG is fairly common in CFLAGS.  */
8568 +#undef DEBUG
8569 +#if defined DEBUGWRAPPER
8570 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
8571 +#else
8572 +# define DEBUG(format, ...)
8573 +#endif
8574 +
8575  const char *program_name = NULL;
8576  
8577  void * xmalloc (size_t num);
8578  char * xstrdup (const char *string);
8579 -char * basename (const char *name);
8580 -char * fnqualify(const char *path);
8581 +const char * base_name (const char *name);
8582 +char * find_executable(const char *wrapper);
8583 +int    check_executable(const char *path);
8584  char * strendzap(char *str, const char *pat);
8585  void lt_fatal (const char *message, ...);
8586  
8587 @@ -4657,29 +5059,51 @@ main (int argc, char *argv[])
8588    char **newargz;
8589    int i;
8590  
8591 -  program_name = (char *) xstrdup ((char *) basename (argv[0]));
8592 +  program_name = (char *) xstrdup (base_name (argv[0]));
8593 +  DEBUG("(main) argv[0]      : %s\n",argv[0]);
8594 +  DEBUG("(main) program_name : %s\n",program_name);
8595    newargz = XMALLOC(char *, argc+2);
8596  EOF
8597  
8598 -           cat >> $cwrappersource <<EOF
8599 -  newargz[0] = "$SHELL";
8600 +            cat >> $cwrappersource <<EOF
8601 +  newargz[0] = (char *) xstrdup("$SHELL");
8602  EOF
8603  
8604 -           cat >> $cwrappersource <<"EOF"
8605 -  newargz[1] = fnqualify(argv[0]);
8606 +            cat >> $cwrappersource <<"EOF"
8607 +  newargz[1] = find_executable(argv[0]);
8608 +  if (newargz[1] == NULL)
8609 +    lt_fatal("Couldn't find %s", argv[0]);
8610 +  DEBUG("(main) found exe at : %s\n",newargz[1]);
8611    /* we know the script has the same name, without the .exe */
8612    /* so make sure newargz[1] doesn't end in .exe */
8613    strendzap(newargz[1],".exe");
8614    for (i = 1; i < argc; i++)
8615      newargz[i+1] = xstrdup(argv[i]);
8616    newargz[argc+1] = NULL;
8617 +
8618 +  for (i=0; i<argc+1; i++)
8619 +  {
8620 +    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
8621 +    ;
8622 +  }
8623 +
8624  EOF
8625  
8626 -           cat >> $cwrappersource <<EOF
8627 +            case $host_os in
8628 +              mingw*)
8629 +                cat >> $cwrappersource <<EOF
8630 +  execv("$SHELL",(char const **)newargz);
8631 +EOF
8632 +              ;;
8633 +              *)
8634 +                cat >> $cwrappersource <<EOF
8635    execv("$SHELL",newargz);
8636  EOF
8637 +              ;;
8638 +            esac
8639  
8640 -           cat >> $cwrappersource <<"EOF"
8641 +            cat >> $cwrappersource <<"EOF"
8642 +  return 127;
8643  }
8644  
8645  void *
8646 @@ -4699,48 +5123,148 @@ xstrdup (const char *string)
8647  ;
8648  }
8649  
8650 -char *
8651 -basename (const char *name)
8652 +const char *
8653 +base_name (const char *name)
8654  {
8655    const char *base;
8656  
8657  #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8658    /* Skip over the disk name in MSDOS pathnames. */
8659 -  if (isalpha (name[0]) && name[1] == ':')
8660 +  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
8661      name += 2;
8662  #endif
8663  
8664    for (base = name; *name; name++)
8665      if (IS_DIR_SEPARATOR (*name))
8666        base = name + 1;
8667 -  return (char *) base;
8668 +  return base;
8669  }
8670  
8671 +int
8672 +check_executable(const char * path)
8673 +{
8674 +  struct stat st;
8675 +
8676 +  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
8677 +  if ((!path) || (!*path))
8678 +    return 0;
8679 +
8680 +  if ((stat (path, &st) >= 0) &&
8681 +      (
8682 +        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
8683 +#if defined (S_IXOTH)
8684 +       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
8685 +#endif
8686 +#if defined (S_IXGRP)
8687 +       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
8688 +#endif
8689 +       ((st.st_mode & S_IXUSR) == S_IXUSR))
8690 +      )
8691 +    return 1;
8692 +  else
8693 +    return 0;
8694 +}
8695 +
8696 +/* Searches for the full path of the wrapper.  Returns
8697 +   newly allocated full path name if found, NULL otherwise */
8698  char *
8699 -fnqualify(const char *path)
8700 +find_executable (const char* wrapper)
8701  {
8702 -  size_t size;
8703 -  char *p;
8704 +  int has_slash = 0;
8705 +  const char* p;
8706 +  const char* p_next;
8707 +  /* static buffer for getcwd */
8708    char tmp[LT_PATHMAX + 1];
8709 +  int tmp_len;
8710 +  char* concat_name;
8711 +
8712 +  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
8713  
8714 -  assert(path != NULL);
8715 +  if ((wrapper == NULL) || (*wrapper == '\0'))
8716 +    return NULL;
8717  
8718 -  /* Is it qualified already? */
8719 +  /* Absolute path? */
8720 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8721 +  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
8722 +  {
8723 +    concat_name = xstrdup (wrapper);
8724 +    if (check_executable(concat_name))
8725 +      return concat_name;
8726 +    XFREE(concat_name);
8727 +  }
8728 +  else
8729 +  {
8730 +#endif
8731 +    if (IS_DIR_SEPARATOR (wrapper[0]))
8732 +    {
8733 +      concat_name = xstrdup (wrapper);
8734 +      if (check_executable(concat_name))
8735 +        return concat_name;
8736 +      XFREE(concat_name);
8737 +    }
8738  #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8739 -  if (isalpha (path[0]) && path[1] == ':')
8740 -    return xstrdup (path);
8741 +  }
8742  #endif
8743 -  if (IS_DIR_SEPARATOR (path[0]))
8744 -    return xstrdup (path);
8745  
8746 -  /* prepend the current directory */
8747 -  /* doesn't handle '~' */
8748 +  for (p = wrapper; *p; p++)
8749 +    if (*p == '/')
8750 +    {
8751 +      has_slash = 1;
8752 +      break;
8753 +    }
8754 +  if (!has_slash)
8755 +  {
8756 +    /* no slashes; search PATH */
8757 +    const char* path = getenv ("PATH");
8758 +    if (path != NULL)
8759 +    {
8760 +      for (p = path; *p; p = p_next)
8761 +      {
8762 +        const char* q;
8763 +        size_t p_len;
8764 +        for (q = p; *q; q++)
8765 +          if (IS_PATH_SEPARATOR(*q))
8766 +            break;
8767 +        p_len = q - p;
8768 +        p_next = (*q == '\0' ? q : q + 1);
8769 +        if (p_len == 0)
8770 +        {
8771 +          /* empty path: current directory */
8772 +          if (getcwd (tmp, LT_PATHMAX) == NULL)
8773 +            lt_fatal ("getcwd failed");
8774 +          tmp_len = strlen(tmp);
8775 +          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
8776 +          memcpy (concat_name, tmp, tmp_len);
8777 +          concat_name[tmp_len] = '/';
8778 +          strcpy (concat_name + tmp_len + 1, wrapper);
8779 +        }
8780 +        else
8781 +        {
8782 +          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
8783 +          memcpy (concat_name, p, p_len);
8784 +          concat_name[p_len] = '/';
8785 +          strcpy (concat_name + p_len + 1, wrapper);
8786 +        }
8787 +        if (check_executable(concat_name))
8788 +          return concat_name;
8789 +        XFREE(concat_name);
8790 +      }
8791 +    }
8792 +    /* not found in PATH; assume curdir */
8793 +  }
8794 +  /* Relative path | not found in path: prepend cwd */
8795    if (getcwd (tmp, LT_PATHMAX) == NULL)
8796      lt_fatal ("getcwd failed");
8797 -  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
8798 -  p = XMALLOC(char, size);
8799 -  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
8800 -  return p;
8801 +  tmp_len = strlen(tmp);
8802 +  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
8803 +  memcpy (concat_name, tmp, tmp_len);
8804 +  concat_name[tmp_len] = '/';
8805 +  strcpy (concat_name + tmp_len + 1, wrapper);
8806 +
8807 +  if (check_executable(concat_name))
8808 +    return concat_name;
8809 +  XFREE(concat_name);
8810 +  return NULL;
8811  }
8812  
8813  char *
8814 @@ -4784,16 +5308,16 @@ lt_fatal (const char *message, ...)
8815    va_end (ap);
8816  }
8817  EOF
8818 -         # we should really use a build-platform specific compiler
8819 -         # here, but OTOH, the wrappers (shell script and this C one)
8820 -         # are only useful if you want to execute the "real" binary.
8821 -         # Since the "real" binary is built for $host, then this
8822 -         # wrapper might as well be built for $host, too.
8823 -         $run $LTCC -s -o $cwrapper $cwrappersource
8824 -         ;;
8825 -       esac
8826 -       $rm $output
8827 -       trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
8828 +          # we should really use a build-platform specific compiler
8829 +          # here, but OTOH, the wrappers (shell script and this C one)
8830 +          # are only useful if you want to execute the "real" binary.
8831 +          # Since the "real" binary is built for $host, then this
8832 +          # wrapper might as well be built for $host, too.
8833 +          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
8834 +          ;;
8835 +        esac
8836 +        $rm $output
8837 +        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
8838  
8839         $echo > $output "\
8840  #! $SHELL
8841 @@ -4812,9 +5336,23 @@ EOF
8842  Xsed='${SED} -e 1s/^X//'
8843  sed_quote_subst='$sed_quote_subst'
8844  
8845 +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
8846 +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
8847 +  emulate sh
8848 +  NULLCMD=:
8849 +  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
8850 +  # is contrary to our usage.  Disable this feature.
8851 +  alias -g '\${1+\"\$@\"}'='\"\$@\"'
8852 +  setopt NO_GLOB_SUBST
8853 +else
8854 +  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
8855 +fi
8856 +BIN_SH=xpg4; export BIN_SH # for Tru64
8857 +DUALCASE=1; export DUALCASE # for MKS sh
8858 +
8859  # The HP-UX ksh and POSIX shell print the target directory to stdout
8860  # if CDPATH is set.
8861 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
8862 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8863  
8864  relink_command=\"$relink_command\"
8865  
8866 @@ -4943,23 +5481,23 @@ else
8867         # Backslashes separate directories on plain windows
8868         *-*-mingw | *-*-os2*)
8869           $echo >> $output "\
8870 -      exec \$progdir\\\\\$program \${1+\"\$@\"}
8871 +      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
8872  "
8873           ;;
8874  
8875         *)
8876           $echo >> $output "\
8877 -      exec \$progdir/\$program \${1+\"\$@\"}
8878 +      exec \"\$progdir/\$program\" \${1+\"\$@\"}
8879  "
8880           ;;
8881         esac
8882         $echo >> $output "\
8883 -      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
8884 +      \$echo \"\$0: cannot exec \$program \$*\"
8885        exit $EXIT_FAILURE
8886      fi
8887    else
8888      # The program doesn't exist.
8889 -    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
8890 +    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
8891      \$echo \"This script is just a wrapper for \$program.\" 1>&2
8892      $echo \"See the $PACKAGE documentation for more information.\" 1>&2
8893      exit $EXIT_FAILURE
8894 @@ -4991,71 +5529,73 @@ fi\
8895  
8896        if test -n "$addlibs"; then
8897         gentop="$output_objdir/${outputname}x"
8898 -       $show "${rm}r $gentop"
8899 -       $run ${rm}r "$gentop"
8900 -       $show "$mkdir $gentop"
8901 -       $run $mkdir "$gentop"
8902 -       status=$?
8903 -       if test "$status" -ne 0 && test ! -d "$gentop"; then
8904 -         exit $status
8905 -       fi
8906         generated="$generated $gentop"
8907  
8908 -       # Add in members from convenience archives.
8909 -       for xlib in $addlibs; do
8910 -         # Extract the objects.
8911 -         case $xlib in
8912 -         [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8913 -         *) xabs=`pwd`"/$xlib" ;;
8914 -         esac
8915 -         xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8916 -         xdir="$gentop/$xlib"
8917 -
8918 -         $show "${rm}r $xdir"
8919 -         $run ${rm}r "$xdir"
8920 -         $show "$mkdir $xdir"
8921 -         $run $mkdir "$xdir"
8922 -         status=$?
8923 -         if test "$status" -ne 0 && test ! -d "$xdir"; then
8924 -           exit $status
8925 -         fi
8926 -         # We will extract separately just the conflicting names and we will no
8927 -         # longer touch any unique names. It is faster to leave these extract
8928 -         # automatically by $AR in one run.
8929 -         $show "(cd $xdir && $AR x $xabs)"
8930 -         $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8931 -         if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
8932 -           :
8933 -         else
8934 -           $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
8935 -           $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
8936 -           $AR t "$xabs" | sort | uniq -cd | while read -r count name
8937 -           do
8938 -             i=1
8939 -             while test "$i" -le "$count"
8940 -             do
8941 -              # Put our $i before any first dot (extension)
8942 -              # Never overwrite any file
8943 -              name_to="$name"
8944 -              while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
8945 -              do
8946 -                name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
8947 -              done
8948 -              $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
8949 -              $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
8950 -              i=`expr $i + 1`
8951 -             done
8952 -           done
8953 -         fi
8954 -
8955 -         oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
8956 -       done
8957 +       func_extract_archives $gentop $addlibs
8958 +       oldobjs="$oldobjs $func_extract_archives_result"
8959        fi
8960  
8961        # Do each command in the archive commands.
8962        if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
8963         cmds=$old_archive_from_new_cmds
8964        else
8965 +       # POSIX demands no paths to be encoded in archives.  We have
8966 +       # to avoid creating archives with duplicate basenames if we
8967 +       # might have to extract them afterwards, e.g., when creating a
8968 +       # static archive out of a convenience library, or when linking
8969 +       # the entirety of a libtool archive into another (currently
8970 +       # not supported by libtool).
8971 +       if (for obj in $oldobjs
8972 +           do
8973 +             $echo "X$obj" | $Xsed -e 's%^.*/%%'
8974 +           done | sort | sort -uc >/dev/null 2>&1); then
8975 +         :
8976 +       else
8977 +         $echo "copying selected object files to avoid basename conflicts..."
8978 +
8979 +         if test -z "$gentop"; then
8980 +           gentop="$output_objdir/${outputname}x"
8981 +           generated="$generated $gentop"
8982 +
8983 +           $show "${rm}r $gentop"
8984 +           $run ${rm}r "$gentop"
8985 +           $show "$mkdir $gentop"
8986 +           $run $mkdir "$gentop"
8987 +           exit_status=$?
8988 +           if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
8989 +             exit $exit_status
8990 +           fi
8991 +         fi
8992 +
8993 +         save_oldobjs=$oldobjs
8994 +         oldobjs=
8995 +         counter=1
8996 +         for obj in $save_oldobjs
8997 +         do
8998 +           objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
8999 +           case " $oldobjs " in
9000 +           " ") oldobjs=$obj ;;
9001 +           *[\ /]"$objbase "*)
9002 +             while :; do
9003 +               # Make sure we don't pick an alternate name that also
9004 +               # overlaps.
9005 +               newobj=lt$counter-$objbase
9006 +               counter=`expr $counter + 1`
9007 +               case " $oldobjs " in
9008 +               *[\ /]"$newobj "*) ;;
9009 +               *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9010 +               esac
9011 +             done
9012 +             $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9013 +             $run ln "$obj" "$gentop/$newobj" ||
9014 +             $run cp "$obj" "$gentop/$newobj"
9015 +             oldobjs="$oldobjs $gentop/$newobj"
9016 +             ;;
9017 +           *) oldobjs="$oldobjs $obj" ;;
9018 +           esac
9019 +         done
9020 +       fi
9021 +
9022         eval cmds=\"$old_archive_cmds\"
9023  
9024         if len=`expr "X$cmds" : ".*"` &&
9025 @@ -5069,20 +5609,7 @@ fi\
9026           objlist=
9027           concat_cmds=
9028           save_oldobjs=$oldobjs
9029 -         # GNU ar 2.10+ was changed to match POSIX; thus no paths are
9030 -         # encoded into archives.  This makes 'ar r' malfunction in
9031 -         # this piecewise linking case whenever conflicting object
9032 -         # names appear in distinct ar calls; check, warn and compensate.
9033 -           if (for obj in $save_oldobjs
9034 -           do
9035 -             $echo "X$obj" | $Xsed -e 's%^.*/%%'
9036 -           done | sort | sort -uc >/dev/null 2>&1); then
9037 -           :
9038 -         else
9039 -           $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
9040 -           $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
9041 -           AR_FLAGS=cq
9042 -         fi
9043 +
9044           # Is there a better way of finding the last object in the list?
9045           for obj in $save_oldobjs
9046           do
9047 @@ -5093,7 +5620,7 @@ fi\
9048             oldobjs="$objlist $obj"
9049             objlist="$objlist $obj"
9050             eval test_cmds=\"$old_archive_cmds\"
9051 -           if len=`expr "X$test_cmds" : ".*"` &&
9052 +           if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
9053                test "$len" -le "$max_cmd_len"; then
9054               :
9055             else
9056 @@ -5151,7 +5678,7 @@ fi\
9057        done
9058        # Quote the link command for shipping.
9059        relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9060 -      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9061 +      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
9062        if test "$hardcode_automatic" = yes ; then
9063         relink_command=
9064        fi
9065 @@ -5290,11 +5817,11 @@ relink_command=\"$relink_command\""
9066      # install_prog (especially on Windows NT).
9067      if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
9068         # Allow the use of GNU shtool's install command.
9069 -       $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
9070 +       $echo "X$nonopt" | grep shtool > /dev/null; then
9071        # Aesthetically quote it.
9072        arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
9073        case $arg in
9074 -      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
9075 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
9076         arg="\"$arg\""
9077         ;;
9078        esac
9079 @@ -5303,14 +5830,14 @@ relink_command=\"$relink_command\""
9080        shift
9081      else
9082        install_prog=
9083 -      arg="$nonopt"
9084 +      arg=$nonopt
9085      fi
9086  
9087      # The real first argument should be the name of the installation program.
9088      # Aesthetically quote it.
9089      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9090      case $arg in
9091 -    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*)
9092 +    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*|"")
9093        arg="\"$arg\""
9094        ;;
9095      esac
9096 @@ -5328,28 +5855,31 @@ relink_command=\"$relink_command\""
9097      do
9098        if test -n "$dest"; then
9099         files="$files $dest"
9100 -       dest="$arg"
9101 +       dest=$arg
9102         continue
9103        fi
9104  
9105        case $arg in
9106        -d) isdir=yes ;;
9107 -      -f) prev="-f" ;;
9108 -      -g) prev="-g" ;;
9109 -      -m) prev="-m" ;;
9110 -      -o) prev="-o" ;;
9111 +      -f) 
9112 +       case " $install_prog " in
9113 +       *[\\\ /]cp\ *) ;;
9114 +       *) prev=$arg ;;
9115 +       esac
9116 +       ;;
9117 +      -g | -m | -o) prev=$arg ;;
9118        -s)
9119         stripme=" -s"
9120         continue
9121         ;;
9122 -      -*) ;;
9123 -
9124 +      -*)
9125 +       ;;
9126        *)
9127         # If the previous option needed an argument, then skip it.
9128         if test -n "$prev"; then
9129           prev=
9130         else
9131 -         dest="$arg"
9132 +         dest=$arg
9133           continue
9134         fi
9135         ;;
9136 @@ -5358,7 +5888,7 @@ relink_command=\"$relink_command\""
9137        # Aesthetically quote the argument.
9138        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9139        case $arg in
9140 -      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
9141 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
9142         arg="\"$arg\""
9143         ;;
9144        esac
9145 @@ -5493,9 +6023,9 @@ relink_command=\"$relink_command\""
9146  
9147           if test -n "$inst_prefix_dir"; then
9148             # Stick the inst_prefix_dir data into the link command.
9149 -           relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
9150 +           relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
9151           else
9152 -           relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
9153 +           relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
9154           fi
9155  
9156           $echo "$modename: warning: relinking \`$file'" 1>&2
9157 @@ -5527,11 +6057,14 @@ relink_command=\"$relink_command\""
9158  
9159           if test "$#" -gt 0; then
9160             # Delete the old symlinks, and create new ones.
9161 +           # Try `ln -sf' first, because the `ln' binary might depend on
9162 +           # the symlink we replace!  Solaris /bin/ln does not understand -f,
9163 +           # so we also need to try rm && ln -s.
9164             for linkname
9165             do
9166               if test "$linkname" != "$realname"; then
9167 -               $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
9168 -               $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
9169 +                $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
9170 +                $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
9171               fi
9172             done
9173           fi
9174 @@ -5544,7 +6077,16 @@ relink_command=\"$relink_command\""
9175             IFS="$save_ifs"
9176             eval cmd=\"$cmd\"
9177             $show "$cmd"
9178 -           $run eval "$cmd" || exit $?
9179 +           $run eval "$cmd" || {
9180 +             lt_exit=$?
9181 +
9182 +             # Restore the uninstalled library and exit
9183 +             if test "$mode" = relink; then
9184 +               $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
9185 +             fi
9186 +
9187 +             exit $lt_exit
9188 +           }
9189           done
9190           IFS="$save_ifs"
9191         fi
9192 @@ -5638,17 +6180,15 @@ relink_command=\"$relink_command\""
9193           notinst_deplibs=
9194           relink_command=
9195  
9196 -         # To insure that "foo" is sourced, and not "foo.exe",
9197 -         # finese the cygwin/MSYS system by explicitly sourcing "foo."
9198 -         # which disallows the automatic-append-.exe behavior.
9199 -         case $build in
9200 -         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
9201 -         *) wrapperdot=${wrapper} ;;
9202 -         esac
9203 +         # Note that it is not necessary on cygwin/mingw to append a dot to
9204 +         # foo even if both foo and FILE.exe exist: automatic-append-.exe
9205 +         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
9206 +         # `FILE.' does not work on cygwin managed mounts.
9207 +         #
9208           # If there is no directory component, then add one.
9209 -         case $file in
9210 -         */* | *\\*) . ${wrapperdot} ;;
9211 -         *) . ./${wrapperdot} ;;
9212 +         case $wrapper in
9213 +         */* | *\\*) . ${wrapper} ;;
9214 +         *) . ./${wrapper} ;;
9215           esac
9216  
9217           # Check the variables that should have been set.
9218 @@ -5676,38 +6216,25 @@ relink_command=\"$relink_command\""
9219           done
9220  
9221           relink_command=
9222 -         # To insure that "foo" is sourced, and not "foo.exe",
9223 -         # finese the cygwin/MSYS system by explicitly sourcing "foo."
9224 -         # which disallows the automatic-append-.exe behavior.
9225 -         case $build in
9226 -         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
9227 -         *) wrapperdot=${wrapper} ;;
9228 -         esac
9229 +         # Note that it is not necessary on cygwin/mingw to append a dot to
9230 +         # foo even if both foo and FILE.exe exist: automatic-append-.exe
9231 +         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
9232 +         # `FILE.' does not work on cygwin managed mounts.
9233 +         #
9234           # If there is no directory component, then add one.
9235 -         case $file in
9236 -         */* | *\\*) . ${wrapperdot} ;;
9237 -         *) . ./${wrapperdot} ;;
9238 +         case $wrapper in
9239 +         */* | *\\*) . ${wrapper} ;;
9240 +         *) . ./${wrapper} ;;
9241           esac
9242  
9243           outputname=
9244           if test "$fast_install" = no && test -n "$relink_command"; then
9245             if test "$finalize" = yes && test -z "$run"; then
9246 -             tmpdir="/tmp"
9247 -             test -n "$TMPDIR" && tmpdir="$TMPDIR"
9248 -             tmpdir="$tmpdir/libtool-$$"
9249 -             save_umask=`umask`
9250 -             umask 0077
9251 -             if $mkdir "$tmpdir"; then
9252 -               umask $save_umask
9253 -             else
9254 -               umask $save_umask
9255 -               $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
9256 -               continue
9257 -             fi
9258 +             tmpdir=`func_mktempdir`
9259               file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
9260               outputname="$tmpdir/$file"
9261               # Replace the output file specification.
9262 -             relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
9263 +             relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
9264  
9265               $show "$relink_command"
9266               if $run eval "$relink_command"; then :
9267 @@ -5727,7 +6254,7 @@ relink_command=\"$relink_command\""
9268         fi
9269  
9270         # remove .exe since cygwin /usr/bin/install will append another
9271 -       # one anyways
9272 +       # one anyway 
9273         case $install_prog,$host in
9274         */usr/bin/install*,*cygwin*)
9275           case $file:$destfile in
9276 @@ -5827,7 +6354,7 @@ relink_command=\"$relink_command\""
9277      # Exit here if they wanted silent mode.
9278      test "$show" = : && exit $EXIT_SUCCESS
9279  
9280 -    $echo "----------------------------------------------------------------------"
9281 +    $echo "X----------------------------------------------------------------------" | $Xsed
9282      $echo "Libraries have been installed in:"
9283      for libdir in $libdirs; do
9284        $echo "   $libdir"
9285 @@ -5860,7 +6387,7 @@ relink_command=\"$relink_command\""
9286      $echo
9287      $echo "See any operating system documentation about shared libraries for"
9288      $echo "more information, such as the ld(1) and ld.so(8) manual pages."
9289 -    $echo "----------------------------------------------------------------------"
9290 +    $echo "X----------------------------------------------------------------------" | $Xsed
9291      exit $EXIT_SUCCESS
9292      ;;
9293  
9294 @@ -5918,8 +6445,10 @@ relink_command=\"$relink_command\""
9295         if test -f "$dir/$objdir/$dlname"; then
9296           dir="$dir/$objdir"
9297         else
9298 -         $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
9299 -         exit $EXIT_FAILURE
9300 +         if test ! -f "$dir/$dlname"; then
9301 +           $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
9302 +           exit $EXIT_FAILURE
9303 +         fi
9304         fi
9305         ;;
9306  
9307 @@ -5983,12 +6512,12 @@ relink_command=\"$relink_command\""
9308        fi
9309  
9310        # Restore saved environment variables
9311 -      if test "${save_LC_ALL+set}" = set; then
9312 -       LC_ALL="$save_LC_ALL"; export LC_ALL
9313 -      fi
9314 -      if test "${save_LANG+set}" = set; then
9315 -       LANG="$save_LANG"; export LANG
9316 -      fi
9317 +      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
9318 +      do
9319 +       eval "if test \"\${save_$lt_var+set}\" = set; then
9320 +               $lt_var=\$save_$lt_var; export $lt_var
9321 +             fi"
9322 +      done
9323  
9324        # Now prepare to actually exec the command.
9325        exec_cmd="\$cmd$args"
9326 @@ -6077,9 +6606,17 @@ relink_command=\"$relink_command\""
9327             rmfiles="$rmfiles $objdir/$n"
9328           done
9329           test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
9330 -         test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9331  
9332 -         if test "$mode" = uninstall; then
9333 +         case "$mode" in
9334 +         clean)
9335 +           case "  $library_names " in
9336 +           # "  " in the beginning catches empty $dlname
9337 +           *" $dlname "*) ;;
9338 +           *) rmfiles="$rmfiles $objdir/$dlname" ;;
9339 +           esac
9340 +            test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9341 +           ;;
9342 +         uninstall)
9343             if test -n "$library_names"; then
9344               # Do each command in the postuninstall commands.
9345               cmds=$postuninstall_cmds
9346 @@ -6112,7 +6649,8 @@ relink_command=\"$relink_command\""
9347               IFS="$save_ifs"
9348             fi
9349             # FIXME: should reinstall the best remaining shared library.
9350 -         fi
9351 +           ;;
9352 +         esac
9353         fi
9354         ;;
9355  
9356 @@ -6336,9 +6874,9 @@ The following components of LINK-COMMAND are treated specially:
9357    -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
9358    -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
9359    -export-symbols SYMFILE
9360 -                   try to export only the symbols listed in SYMFILE
9361 +                    try to export only the symbols listed in SYMFILE
9362    -export-symbols-regex REGEX
9363 -                   try to export only the symbols matching REGEX
9364 +                    try to export only the symbols matching REGEX
9365    -LLIBDIR          search LIBDIR for required installed libraries
9366    -lNAME            OUTPUT-FILE requires the installed library libNAME
9367    -module           build a library that can dlopened
9368 @@ -6352,9 +6890,11 @@ The following components of LINK-COMMAND are treated specially:
9369    -release RELEASE  specify package release information
9370    -rpath LIBDIR     the created library will eventually be installed in LIBDIR
9371    -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
9372 -  -static           do not do any dynamic linking of libtool libraries
9373 +  -static           do not do any dynamic linking of uninstalled libtool libraries
9374 +  -static-libtool-libs
9375 +                    do not do any dynamic linking of libtool libraries
9376    -version-info CURRENT[:REVISION[:AGE]]
9377 -                   specify library version info [each variable defaults to 0]
9378 +                    specify library version info [each variable defaults to 0]
9379  
9380  All other options (arguments beginning with \`-') are ignored.
9381  
9382 @@ -6397,7 +6937,7 @@ esac
9383  $echo
9384  $echo "Try \`$modename --help' for more information about other modes."
9385  
9386 -exit $EXIT_SUCCESS
9387 +exit $?
9388  
9389  # The TAGs below are defined such that we never get into a situation
9390  # in which we disable both kinds of libraries.  Given conflicting
9391 @@ -6411,12 +6951,11 @@ exit $EXIT_SUCCESS
9392  # configuration.  But we'll never go from static-only to shared-only.
9393  
9394  # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9395 -build_libtool_libs=no
9396 -build_old_libs=yes
9397 +disable_libs=shared
9398  # ### END LIBTOOL TAG CONFIG: disable-shared
9399  
9400  # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9401 -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
9402 +disable_libs=static
9403  # ### END LIBTOOL TAG CONFIG: disable-static
9404  
9405  # Local Variables:
9406 --- ./configure
9407 +++ ./configure
9408 @@ -1,26 +1,83 @@
9409  #! /bin/sh
9410  # From configure.in Revision: 1.56 .
9411  # Guess values for system-dependent variables and create Makefiles.
9412 -# Generated by GNU Autoconf 2.59.
9413 +# Generated by GNU Autoconf 2.63.
9414  #
9415 -# Copyright (C) 2003 Free Software Foundation, Inc.
9416 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9417 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9418  # This configure script is free software; the Free Software Foundation
9419  # gives unlimited permission to copy, distribute and modify it.
9420  ## --------------------- ##
9421  ## M4sh Initialization.  ##
9422  ## --------------------- ##
9423  
9424 -# Be Bourne compatible
9425 +# Be more Bourne compatible
9426 +DUALCASE=1; export DUALCASE # for MKS sh
9427  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9428    emulate sh
9429    NULLCMD=:
9430 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9431 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9432    # is contrary to our usage.  Disable this feature.
9433    alias -g '${1+"$@"}'='"$@"'
9434 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9435 -  set -o posix
9436 +  setopt NO_GLOB_SUBST
9437 +else
9438 +  case `(set -o) 2>/dev/null` in
9439 +  *posix*) set -o posix ;;
9440 +esac
9441 +
9442 +fi
9443 +
9444 +
9445 +
9446 +
9447 +# PATH needs CR
9448 +# Avoid depending upon Character Ranges.
9449 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9450 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9451 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9452 +as_cr_digits='0123456789'
9453 +as_cr_alnum=$as_cr_Letters$as_cr_digits
9454 +
9455 +as_nl='
9456 +'
9457 +export as_nl
9458 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
9459 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9460 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9461 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9462 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9463 +  as_echo='printf %s\n'
9464 +  as_echo_n='printf %s'
9465 +else
9466 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9467 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9468 +    as_echo_n='/usr/ucb/echo -n'
9469 +  else
9470 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9471 +    as_echo_n_body='eval
9472 +      arg=$1;
9473 +      case $arg in
9474 +      *"$as_nl"*)
9475 +       expr "X$arg" : "X\\(.*\\)$as_nl";
9476 +       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9477 +      esac;
9478 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9479 +    '
9480 +    export as_echo_n_body
9481 +    as_echo_n='sh -c $as_echo_n_body as_echo'
9482 +  fi
9483 +  export as_echo_body
9484 +  as_echo='sh -c $as_echo_body as_echo'
9485 +fi
9486 +
9487 +# The user is always right.
9488 +if test "${PATH_SEPARATOR+set}" != set; then
9489 +  PATH_SEPARATOR=:
9490 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9491 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9492 +      PATH_SEPARATOR=';'
9493 +  }
9494  fi
9495 -DUALCASE=1; export DUALCASE # for MKS sh
9496  
9497  # Support unset when possible.
9498  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9499 @@ -30,33 +87,60 @@ else
9500  fi
9501  
9502  
9503 +# IFS
9504 +# We need space, tab and new line, in precisely that order.  Quoting is
9505 +# there to prevent editors from complaining about space-tab.
9506 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9507 +# splitting by setting IFS to empty value.)
9508 +IFS=" ""       $as_nl"
9509 +
9510 +# Find who we are.  Look in the path if we contain no directory separator.
9511 +case $0 in
9512 +  *[\\/]* ) as_myself=$0 ;;
9513 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 +for as_dir in $PATH
9515 +do
9516 +  IFS=$as_save_IFS
9517 +  test -z "$as_dir" && as_dir=.
9518 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9519 +done
9520 +IFS=$as_save_IFS
9521 +
9522 +     ;;
9523 +esac
9524 +# We did not find ourselves, most probably we were run as `sh COMMAND'
9525 +# in which case we are not to be found in the path.
9526 +if test "x$as_myself" = x; then
9527 +  as_myself=$0
9528 +fi
9529 +if test ! -f "$as_myself"; then
9530 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9531 +  { (exit 1); exit 1; }
9532 +fi
9533 +
9534  # Work around bugs in pre-3.0 UWIN ksh.
9535 -$as_unset ENV MAIL MAILPATH
9536 +for as_var in ENV MAIL MAILPATH
9537 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9538 +done
9539  PS1='$ '
9540  PS2='> '
9541  PS4='+ '
9542  
9543  # NLS nuisances.
9544 -for as_var in \
9545 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9546 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9547 -  LC_TELEPHONE LC_TIME
9548 -do
9549 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9550 -    eval $as_var=C; export $as_var
9551 -  else
9552 -    $as_unset $as_var
9553 -  fi
9554 -done
9555 +LC_ALL=C
9556 +export LC_ALL
9557 +LANGUAGE=C
9558 +export LANGUAGE
9559  
9560  # Required to use basename.
9561 -if expr a : '\(a\)' >/dev/null 2>&1; then
9562 +if expr a : '\(a\)' >/dev/null 2>&1 &&
9563 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9564    as_expr=expr
9565  else
9566    as_expr=false
9567  fi
9568  
9569 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9570 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9571    as_basename=basename
9572  else
9573    as_basename=false
9574 @@ -64,157 +148,391 @@ fi
9575  
9576  
9577  # Name of the executable.
9578 -as_me=`$as_basename "$0" ||
9579 +as_me=`$as_basename -- "$0" ||
9580  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9581          X"$0" : 'X\(//\)$' \| \
9582 -        X"$0" : 'X\(/\)$' \| \
9583 -        .     : '\(.\)' 2>/dev/null ||
9584 -echo X/"$0" |
9585 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9586 -         /^X\/\(\/\/\)$/{ s//\1/; q; }
9587 -         /^X\/\(\/\).*/{ s//\1/; q; }
9588 -         s/.*/./; q'`
9589 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9590 +$as_echo X/"$0" |
9591 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
9592 +           s//\1/
9593 +           q
9594 +         }
9595 +         /^X\/\(\/\/\)$/{
9596 +           s//\1/
9597 +           q
9598 +         }
9599 +         /^X\/\(\/\).*/{
9600 +           s//\1/
9601 +           q
9602 +         }
9603 +         s/.*/./; q'`
9604  
9605 +# CDPATH.
9606 +$as_unset CDPATH
9607  
9608 -# PATH needs CR, and LINENO needs CR and PATH.
9609 -# Avoid depending upon Character Ranges.
9610 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9611 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9612 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9613 -as_cr_digits='0123456789'
9614 -as_cr_alnum=$as_cr_Letters$as_cr_digits
9615  
9616 -# The user is always right.
9617 -if test "${PATH_SEPARATOR+set}" != set; then
9618 -  echo "#! /bin/sh" >conf$$.sh
9619 -  echo  "exit 0"   >>conf$$.sh
9620 -  chmod +x conf$$.sh
9621 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9622 -    PATH_SEPARATOR=';'
9623 -  else
9624 -    PATH_SEPARATOR=:
9625 -  fi
9626 -  rm -f conf$$.sh
9627 +if test "x$CONFIG_SHELL" = x; then
9628 +  if (eval ":") 2>/dev/null; then
9629 +  as_have_required=yes
9630 +else
9631 +  as_have_required=no
9632  fi
9633  
9634 +  if test $as_have_required = yes &&    (eval ":
9635 +(as_func_return () {
9636 +  (exit \$1)
9637 +}
9638 +as_func_success () {
9639 +  as_func_return 0
9640 +}
9641 +as_func_failure () {
9642 +  as_func_return 1
9643 +}
9644 +as_func_ret_success () {
9645 +  return 0
9646 +}
9647 +as_func_ret_failure () {
9648 +  return 1
9649 +}
9650  
9651 -  as_lineno_1=$LINENO
9652 -  as_lineno_2=$LINENO
9653 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9654 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
9655 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9656 -  # Find who we are.  Look in the path if we contain no path at all
9657 -  # relative or not.
9658 -  case $0 in
9659 -    *[\\/]* ) as_myself=$0 ;;
9660 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 -for as_dir in $PATH
9662 -do
9663 -  IFS=$as_save_IFS
9664 -  test -z "$as_dir" && as_dir=.
9665 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9666 -done
9667 +exitcode=0
9668 +if as_func_success; then
9669 +  :
9670 +else
9671 +  exitcode=1
9672 +  echo as_func_success failed.
9673 +fi
9674  
9675 -       ;;
9676 -  esac
9677 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
9678 -  # in which case we are not to be found in the path.
9679 -  if test "x$as_myself" = x; then
9680 -    as_myself=$0
9681 -  fi
9682 -  if test ! -f "$as_myself"; then
9683 -    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
9684 -   { (exit 1); exit 1; }; }
9685 -  fi
9686 -  case $CONFIG_SHELL in
9687 -  '')
9688 +if as_func_failure; then
9689 +  exitcode=1
9690 +  echo as_func_failure succeeded.
9691 +fi
9692 +
9693 +if as_func_ret_success; then
9694 +  :
9695 +else
9696 +  exitcode=1
9697 +  echo as_func_ret_success failed.
9698 +fi
9699 +
9700 +if as_func_ret_failure; then
9701 +  exitcode=1
9702 +  echo as_func_ret_failure succeeded.
9703 +fi
9704 +
9705 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
9706 +  :
9707 +else
9708 +  exitcode=1
9709 +  echo positional parameters were not saved.
9710 +fi
9711 +
9712 +test \$exitcode = 0) || { (exit 1); exit 1; }
9713 +
9714 +(
9715 +  as_lineno_1=\$LINENO
9716 +  as_lineno_2=\$LINENO
9717 +  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
9718 +  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
9719 +") 2> /dev/null; then
9720 +  :
9721 +else
9722 +  as_candidate_shells=
9723      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724  for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9725  do
9726    IFS=$as_save_IFS
9727    test -z "$as_dir" && as_dir=.
9728 -  for as_base in sh bash ksh sh5; do
9729 -        case $as_dir in
9730 +  case $as_dir in
9731          /*)
9732 -          if ("$as_dir/$as_base" -c '
9733 +          for as_base in sh bash ksh sh5; do
9734 +            as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
9735 +          done;;
9736 +       esac
9737 +done
9738 +IFS=$as_save_IFS
9739 +
9740 +
9741 +      for as_shell in $as_candidate_shells $SHELL; do
9742 +        # Try only shells that exist, to save several forks.
9743 +        if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
9744 +               { ("$as_shell") 2> /dev/null <<\_ASEOF
9745 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9746 +  emulate sh
9747 +  NULLCMD=:
9748 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9749 +  # is contrary to our usage.  Disable this feature.
9750 +  alias -g '${1+"$@"}'='"$@"'
9751 +  setopt NO_GLOB_SUBST
9752 +else
9753 +  case `(set -o) 2>/dev/null` in
9754 +  *posix*) set -o posix ;;
9755 +esac
9756 +
9757 +fi
9758 +
9759 +
9760 +:
9761 +_ASEOF
9762 +}; then
9763 +  CONFIG_SHELL=$as_shell
9764 +              as_have_required=yes
9765 +              if { "$as_shell" 2> /dev/null <<\_ASEOF
9766 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9767 +  emulate sh
9768 +  NULLCMD=:
9769 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9770 +  # is contrary to our usage.  Disable this feature.
9771 +  alias -g '${1+"$@"}'='"$@"'
9772 +  setopt NO_GLOB_SUBST
9773 +else
9774 +  case `(set -o) 2>/dev/null` in
9775 +  *posix*) set -o posix ;;
9776 +esac
9777 +
9778 +fi
9779 +
9780 +
9781 +:
9782 +(as_func_return () {
9783 +  (exit $1)
9784 +}
9785 +as_func_success () {
9786 +  as_func_return 0
9787 +}
9788 +as_func_failure () {
9789 +  as_func_return 1
9790 +}
9791 +as_func_ret_success () {
9792 +  return 0
9793 +}
9794 +as_func_ret_failure () {
9795 +  return 1
9796 +}
9797 +
9798 +exitcode=0
9799 +if as_func_success; then
9800 +  :
9801 +else
9802 +  exitcode=1
9803 +  echo as_func_success failed.
9804 +fi
9805 +
9806 +if as_func_failure; then
9807 +  exitcode=1
9808 +  echo as_func_failure succeeded.
9809 +fi
9810 +
9811 +if as_func_ret_success; then
9812 +  :
9813 +else
9814 +  exitcode=1
9815 +  echo as_func_ret_success failed.
9816 +fi
9817 +
9818 +if as_func_ret_failure; then
9819 +  exitcode=1
9820 +  echo as_func_ret_failure succeeded.
9821 +fi
9822 +
9823 +if ( set x; as_func_ret_success y && test x = "$1" ); then
9824 +  :
9825 +else
9826 +  exitcode=1
9827 +  echo positional parameters were not saved.
9828 +fi
9829 +
9830 +test $exitcode = 0) || { (exit 1); exit 1; }
9831 +
9832 +(
9833    as_lineno_1=$LINENO
9834    as_lineno_2=$LINENO
9835 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9836    test "x$as_lineno_1" != "x$as_lineno_2" &&
9837 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9838 -            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9839 -            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9840 -            CONFIG_SHELL=$as_dir/$as_base
9841 -            export CONFIG_SHELL
9842 -            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9843 -          fi;;
9844 -        esac
9845 -       done
9846 -done
9847 -;;
9848 -  esac
9849 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
9850 +
9851 +_ASEOF
9852 +}; then
9853 +  break
9854 +fi
9855 +
9856 +fi
9857 +
9858 +      done
9859 +
9860 +      if test "x$CONFIG_SHELL" != x; then
9861 +  for as_var in BASH_ENV ENV
9862 +       do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9863 +       done
9864 +       export CONFIG_SHELL
9865 +       exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
9866 +fi
9867 +
9868 +
9869 +    if test $as_have_required = no; then
9870 +  echo This script requires a shell more modern than all the
9871 +      echo shells that I found on your system.  Please install a
9872 +      echo modern shell, or manually run the script under such a
9873 +      echo shell if you do have one.
9874 +      { (exit 1); exit 1; }
9875 +fi
9876 +
9877 +
9878 +fi
9879 +
9880 +fi
9881 +
9882 +
9883 +
9884 +(eval "as_func_return () {
9885 +  (exit \$1)
9886 +}
9887 +as_func_success () {
9888 +  as_func_return 0
9889 +}
9890 +as_func_failure () {
9891 +  as_func_return 1
9892 +}
9893 +as_func_ret_success () {
9894 +  return 0
9895 +}
9896 +as_func_ret_failure () {
9897 +  return 1
9898 +}
9899 +
9900 +exitcode=0
9901 +if as_func_success; then
9902 +  :
9903 +else
9904 +  exitcode=1
9905 +  echo as_func_success failed.
9906 +fi
9907 +
9908 +if as_func_failure; then
9909 +  exitcode=1
9910 +  echo as_func_failure succeeded.
9911 +fi
9912 +
9913 +if as_func_ret_success; then
9914 +  :
9915 +else
9916 +  exitcode=1
9917 +  echo as_func_ret_success failed.
9918 +fi
9919 +
9920 +if as_func_ret_failure; then
9921 +  exitcode=1
9922 +  echo as_func_ret_failure succeeded.
9923 +fi
9924 +
9925 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
9926 +  :
9927 +else
9928 +  exitcode=1
9929 +  echo positional parameters were not saved.
9930 +fi
9931 +
9932 +test \$exitcode = 0") || {
9933 +  echo No shell found that supports shell functions.
9934 +  echo Please tell bug-autoconf@gnu.org about your system,
9935 +  echo including any error possibly output before this message.
9936 +  echo This can help us improve future autoconf versions.
9937 +  echo Configuration will now proceed without shell functions.
9938 +}
9939 +
9940 +
9941 +
9942 +  as_lineno_1=$LINENO
9943 +  as_lineno_2=$LINENO
9944 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
9945 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9946  
9947    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9948    # uniformly replaced by the line number.  The first 'sed' inserts a
9949 -  # line-number line before each line; the second 'sed' does the real
9950 -  # work.  The second script uses 'N' to pair each line-number line
9951 -  # with the numbered line, and appends trailing '-' during
9952 -  # substitution so that $LINENO is not a special case at line end.
9953 +  # line-number line after each line using $LINENO; the second 'sed'
9954 +  # does the real work.  The second script uses 'N' to pair each
9955 +  # line-number line with the line containing $LINENO, and appends
9956 +  # trailing '-' during substitution so that $LINENO is not a special
9957 +  # case at line end.
9958    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9959 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9960 -  sed '=' <$as_myself |
9961 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
9962 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
9963 +  sed -n '
9964 +    p
9965 +    /[$]LINENO/=
9966 +  ' <$as_myself |
9967      sed '
9968 +      s/[$]LINENO.*/&-/
9969 +      t lineno
9970 +      b
9971 +      :lineno
9972        N
9973 -      s,$,-,
9974 -      : loop
9975 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9976 +      :loop
9977 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9978        t loop
9979 -      s,-$,,
9980 -      s,^['$as_cr_digits']*\n,,
9981 +      s/-\n.*//
9982      ' >$as_me.lineno &&
9983 -  chmod +x $as_me.lineno ||
9984 -    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9985 +  chmod +x "$as_me.lineno" ||
9986 +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9987     { (exit 1); exit 1; }; }
9988  
9989    # Don't try to exec as it changes $[0], causing all sort of problems
9990    # (the dirname of $[0] is not the place where we might find the
9991 -  # original and so on.  Autoconf is especially sensible to this).
9992 -  . ./$as_me.lineno
9993 +  # original and so on.  Autoconf is especially sensitive to this).
9994 +  . "./$as_me.lineno"
9995    # Exit status is that of the last command.
9996    exit
9997  }
9998  
9999  
10000 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10001 -  *c*,-n*) ECHO_N= ECHO_C='
10002 -' ECHO_T='     ' ;;
10003 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10004 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10005 -esac
10006 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10007 +  as_dirname=dirname
10008 +else
10009 +  as_dirname=false
10010 +fi
10011  
10012 -if expr a : '\(a\)' >/dev/null 2>&1; then
10013 +ECHO_C= ECHO_N= ECHO_T=
10014 +case `echo -n x` in
10015 +-n*)
10016 +  case `echo 'x\c'` in
10017 +  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
10018 +  *)   ECHO_C='\c';;
10019 +  esac;;
10020 +*)
10021 +  ECHO_N='-n';;
10022 +esac
10023 +if expr a : '\(a\)' >/dev/null 2>&1 &&
10024 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10025    as_expr=expr
10026  else
10027    as_expr=false
10028  fi
10029  
10030  rm -f conf$$ conf$$.exe conf$$.file
10031 -echo >conf$$.file
10032 -if ln -s conf$$.file conf$$ 2>/dev/null; then
10033 -  # We could just check for DJGPP; but this test a) works b) is more generic
10034 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10035 -  if test -f conf$$.exe; then
10036 -    # Don't use ln at all; we don't have any links
10037 -    as_ln_s='cp -p'
10038 -  else
10039 +if test -d conf$$.dir; then
10040 +  rm -f conf$$.dir/conf$$.file
10041 +else
10042 +  rm -f conf$$.dir
10043 +  mkdir conf$$.dir 2>/dev/null
10044 +fi
10045 +if (echo >conf$$.file) 2>/dev/null; then
10046 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
10047      as_ln_s='ln -s'
10048 +    # ... but there are two gotchas:
10049 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10050 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10051 +    # In both cases, we have to default to `cp -p'.
10052 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10053 +      as_ln_s='cp -p'
10054 +  elif ln conf$$.file conf$$ 2>/dev/null; then
10055 +    as_ln_s=ln
10056 +  else
10057 +    as_ln_s='cp -p'
10058    fi
10059 -elif ln conf$$.file conf$$ 2>/dev/null; then
10060 -  as_ln_s=ln
10061  else
10062    as_ln_s='cp -p'
10063  fi
10064 -rm -f conf$$ conf$$.exe conf$$.file
10065 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10066 +rmdir conf$$.dir 2>/dev/null
10067  
10068  if mkdir -p . 2>/dev/null; then
10069    as_mkdir_p=:
10070 @@ -223,7 +541,28 @@ else
10071    as_mkdir_p=false
10072  fi
10073  
10074 -as_executable_p="test -f"
10075 +if test -x / >/dev/null 2>&1; then
10076 +  as_test_x='test -x'
10077 +else
10078 +  if ls -dL / >/dev/null 2>&1; then
10079 +    as_ls_L_option=L
10080 +  else
10081 +    as_ls_L_option=
10082 +  fi
10083 +  as_test_x='
10084 +    eval sh -c '\''
10085 +      if test -d "$1"; then
10086 +       test -d "$1/.";
10087 +      else
10088 +       case $1 in
10089 +       -*)set "./$1";;
10090 +       esac;
10091 +       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10092 +       ???[sx]*):;;*)false;;esac;fi
10093 +    '\'' sh
10094 +  '
10095 +fi
10096 +as_executable_p=$as_test_x
10097  
10098  # Sed expression to map a string onto a valid CPP name.
10099  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10100 @@ -232,15 +571,6 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10101  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10102  
10103  
10104 -# IFS
10105 -# We need space, tab and new line, in precisely that order.
10106 -as_nl='
10107 -'
10108 -IFS="  $as_nl"
10109 -
10110 -# CDPATH.
10111 -$as_unset CDPATH
10112 -
10113  
10114  
10115  # Check that we are running under the correct shell.
10116 @@ -279,15 +609,15 @@ fi
10117  
10118  # The HP-UX ksh and POSIX shell print the target directory to stdout
10119  # if CDPATH is set.
10120 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10121 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10122  
10123  if test -z "$ECHO"; then
10124  if test "X${echo_test_string+set}" != Xset; then
10125  # find a string as large as possible, as long as the shell can cope with it
10126    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
10127      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
10128 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
10129 -       echo_test_string="`eval $cmd`" &&
10130 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
10131 +       echo_test_string=`eval $cmd` &&
10132         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
10133      then
10134        break
10135 @@ -396,29 +726,26 @@ tagnames=${tagnames+${tagnames},}CXX
10136  
10137  tagnames=${tagnames+${tagnames},}F77
10138  
10139 +exec 7<&0 </dev/null 6>&1
10140 +
10141  # Name of the host.
10142  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
10143  # so uname gets run too.
10144  ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
10145  
10146 -exec 6>&1
10147 -
10148  #
10149  # Initializations.
10150  #
10151  ac_default_prefix=/usr/local
10152 +ac_clean_files=
10153  ac_config_libobj_dir=.
10154 +LIBOBJS=
10155  cross_compiling=no
10156  subdirs=
10157  MFLAGS=
10158  MAKEFLAGS=
10159  SHELL=${CONFIG_SHELL-/bin/sh}
10160  
10161 -# Maximum number of lines to put in a shell here document.
10162 -# This variable seems obsolete.  It should probably be removed, and
10163 -# only ac_max_sed_lines should be used.
10164 -: ${ac_max_here_lines=38}
10165 -
10166  # Identity of this package.
10167  PACKAGE_NAME=
10168  PACKAGE_TARNAME=
10169 @@ -431,46 +758,192 @@ ac_default_prefix=
10170  # Factoring default headers for most tests.
10171  ac_includes_default="\
10172  #include <stdio.h>
10173 -#if HAVE_SYS_TYPES_H
10174 +#ifdef HAVE_SYS_TYPES_H
10175  # include <sys/types.h>
10176  #endif
10177 -#if HAVE_SYS_STAT_H
10178 +#ifdef HAVE_SYS_STAT_H
10179  # include <sys/stat.h>
10180  #endif
10181 -#if STDC_HEADERS
10182 +#ifdef STDC_HEADERS
10183  # include <stdlib.h>
10184  # include <stddef.h>
10185  #else
10186 -# if HAVE_STDLIB_H
10187 +# ifdef HAVE_STDLIB_H
10188  #  include <stdlib.h>
10189  # endif
10190  #endif
10191 -#if HAVE_STRING_H
10192 -# if !STDC_HEADERS && HAVE_MEMORY_H
10193 +#ifdef HAVE_STRING_H
10194 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
10195  #  include <memory.h>
10196  # endif
10197  # include <string.h>
10198  #endif
10199 -#if HAVE_STRINGS_H
10200 +#ifdef HAVE_STRINGS_H
10201  # include <strings.h>
10202  #endif
10203 -#if HAVE_INTTYPES_H
10204 +#ifdef HAVE_INTTYPES_H
10205  # include <inttypes.h>
10206 -#else
10207 -# if HAVE_STDINT_H
10208 -#  include <stdint.h>
10209 -# endif
10210  #endif
10211 -#if HAVE_UNISTD_H
10212 +#ifdef HAVE_STDINT_H
10213 +# include <stdint.h>
10214 +#endif
10215 +#ifdef HAVE_UNISTD_H
10216  # include <unistd.h>
10217  #endif"
10218  
10219 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RENAME_TRUE RENAME_FALSE LIBVER OS LIBOBJS LTLIBOBJS'
10220 +ac_subst_vars='LTLIBOBJS
10221 +LIBOBJS
10222 +OS
10223 +LIBVER
10224 +RENAME_FALSE
10225 +RENAME_TRUE
10226 +LIBTOOL
10227 +ac_ct_F77
10228 +FFLAGS
10229 +F77
10230 +CXXCPP
10231 +am__fastdepCXX_FALSE
10232 +am__fastdepCXX_TRUE
10233 +CXXDEPMODE
10234 +ac_ct_CXX
10235 +CXXFLAGS
10236 +CXX
10237 +CPP
10238 +NMEDIT
10239 +DSYMUTIL
10240 +RANLIB
10241 +AR
10242 +ECHO
10243 +LN_S
10244 +EGREP
10245 +GREP
10246 +SED
10247 +am__fastdepCC_FALSE
10248 +am__fastdepCC_TRUE
10249 +CCDEPMODE
10250 +AMDEPBACKSLASH
10251 +AMDEP_FALSE
10252 +AMDEP_TRUE
10253 +am__quote
10254 +am__include
10255 +DEPDIR
10256 +OBJEXT
10257 +EXEEXT
10258 +ac_ct_CC
10259 +CPPFLAGS
10260 +LDFLAGS
10261 +CFLAGS
10262 +CC
10263 +MAINT
10264 +MAINTAINER_MODE_FALSE
10265 +MAINTAINER_MODE_TRUE
10266 +am__untar
10267 +am__tar
10268 +AMTAR
10269 +am__leading_dot
10270 +SET_MAKE
10271 +AWK
10272 +mkdir_p
10273 +INSTALL_STRIP_PROGRAM
10274 +STRIP
10275 +install_sh
10276 +MAKEINFO
10277 +AUTOHEADER
10278 +AUTOMAKE
10279 +AUTOCONF
10280 +ACLOCAL
10281 +VERSION
10282 +PACKAGE
10283 +CYGPATH_W
10284 +INSTALL_DATA
10285 +INSTALL_SCRIPT
10286 +INSTALL_PROGRAM
10287 +target_os
10288 +target_vendor
10289 +target_cpu
10290 +target
10291 +host_os
10292 +host_vendor
10293 +host_cpu
10294 +host
10295 +build_os
10296 +build_vendor
10297 +build_cpu
10298 +build
10299 +target_alias
10300 +host_alias
10301 +build_alias
10302 +LIBS
10303 +ECHO_T
10304 +ECHO_N
10305 +ECHO_C
10306 +DEFS
10307 +mandir
10308 +localedir
10309 +libdir
10310 +psdir
10311 +pdfdir
10312 +dvidir
10313 +htmldir
10314 +infodir
10315 +docdir
10316 +oldincludedir
10317 +includedir
10318 +localstatedir
10319 +sharedstatedir
10320 +sysconfdir
10321 +datadir
10322 +datarootdir
10323 +libexecdir
10324 +sbindir
10325 +bindir
10326 +program_transform_name
10327 +prefix
10328 +exec_prefix
10329 +PACKAGE_BUGREPORT
10330 +PACKAGE_STRING
10331 +PACKAGE_VERSION
10332 +PACKAGE_TARNAME
10333 +PACKAGE_NAME
10334 +PATH_SEPARATOR
10335 +SHELL'
10336  ac_subst_files=''
10337 +ac_user_opts='
10338 +enable_option_checking
10339 +enable_maintainer_mode
10340 +enable_dependency_tracking
10341 +enable_static
10342 +enable_shared
10343 +enable_fast_install
10344 +with_gnu_ld
10345 +enable_libtool_lock
10346 +with_pic
10347 +with_tags
10348 +with_mysql
10349 +enable_debug
10350 +'
10351 +      ac_precious_vars='build_alias
10352 +host_alias
10353 +target_alias
10354 +CC
10355 +CFLAGS
10356 +LDFLAGS
10357 +LIBS
10358 +CPPFLAGS
10359 +CPP
10360 +CXX
10361 +CXXFLAGS
10362 +CCC
10363 +CXXCPP
10364 +F77
10365 +FFLAGS'
10366 +
10367  
10368  # Initialize some variables set by options.
10369  ac_init_help=
10370  ac_init_version=false
10371 +ac_unrecognized_opts=
10372 +ac_unrecognized_sep=
10373  # The variables have the same names as the options, with
10374  # dashes changed to underlines.
10375  cache_file=/dev/null
10376 @@ -493,34 +966,48 @@ x_libraries=NONE
10377  # and all the variables that are supposed to be based on exec_prefix
10378  # by default will actually change.
10379  # Use braces instead of parens because sh, perl, etc. also accept them.
10380 +# (The list follows the same order as the GNU Coding Standards.)
10381  bindir='${exec_prefix}/bin'
10382  sbindir='${exec_prefix}/sbin'
10383  libexecdir='${exec_prefix}/libexec'
10384 -datadir='${prefix}/share'
10385 +datarootdir='${prefix}/share'
10386 +datadir='${datarootdir}'
10387  sysconfdir='${prefix}/etc'
10388  sharedstatedir='${prefix}/com'
10389  localstatedir='${prefix}/var'
10390 -libdir='${exec_prefix}/lib'
10391  includedir='${prefix}/include'
10392  oldincludedir='/usr/include'
10393 -infodir='${prefix}/info'
10394 -mandir='${prefix}/man'
10395 +docdir='${datarootdir}/doc/${PACKAGE}'
10396 +infodir='${datarootdir}/info'
10397 +htmldir='${docdir}'
10398 +dvidir='${docdir}'
10399 +pdfdir='${docdir}'
10400 +psdir='${docdir}'
10401 +libdir='${exec_prefix}/lib'
10402 +localedir='${datarootdir}/locale'
10403 +mandir='${datarootdir}/man'
10404  
10405  ac_prev=
10406 +ac_dashdash=
10407  for ac_option
10408  do
10409    # If the previous option needs an argument, assign it.
10410    if test -n "$ac_prev"; then
10411 -    eval "$ac_prev=\$ac_option"
10412 +    eval $ac_prev=\$ac_option
10413      ac_prev=
10414      continue
10415    fi
10416  
10417 -  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10418 +  case $ac_option in
10419 +  *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
10420 +  *)   ac_optarg=yes ;;
10421 +  esac
10422  
10423    # Accept the important Cygnus configure options, so we can diagnose typos.
10424  
10425 -  case $ac_option in
10426 +  case $ac_dashdash$ac_option in
10427 +  --)
10428 +    ac_dashdash=yes ;;
10429  
10430    -bindir | --bindir | --bindi | --bind | --bin | --bi)
10431      ac_prev=bindir ;;
10432 @@ -542,33 +1029,61 @@ do
10433    --config-cache | -C)
10434      cache_file=config.cache ;;
10435  
10436 -  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
10437 +  -datadir | --datadir | --datadi | --datad)
10438      ac_prev=datadir ;;
10439 -  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
10440 -  | --da=*)
10441 +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
10442      datadir=$ac_optarg ;;
10443  
10444 +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
10445 +  | --dataroo | --dataro | --datar)
10446 +    ac_prev=datarootdir ;;
10447 +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
10448 +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
10449 +    datarootdir=$ac_optarg ;;
10450 +
10451    -disable-* | --disable-*)
10452 -    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10453 +    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10454      # Reject names that are not valid shell variable names.
10455 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10456 -      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
10457 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10458 +      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
10459     { (exit 1); exit 1; }; }
10460 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
10461 -    eval "enable_$ac_feature=no" ;;
10462 +    ac_useropt_orig=$ac_useropt
10463 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10464 +    case $ac_user_opts in
10465 +      *"
10466 +"enable_$ac_useropt"
10467 +"*) ;;
10468 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
10469 +        ac_unrecognized_sep=', ';;
10470 +    esac
10471 +    eval enable_$ac_useropt=no ;;
10472 +
10473 +  -docdir | --docdir | --docdi | --doc | --do)
10474 +    ac_prev=docdir ;;
10475 +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
10476 +    docdir=$ac_optarg ;;
10477 +
10478 +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
10479 +    ac_prev=dvidir ;;
10480 +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
10481 +    dvidir=$ac_optarg ;;
10482  
10483    -enable-* | --enable-*)
10484 -    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10485 +    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10486      # Reject names that are not valid shell variable names.
10487 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10488 -      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
10489 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10490 +      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
10491     { (exit 1); exit 1; }; }
10492 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
10493 -    case $ac_option in
10494 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10495 -      *) ac_optarg=yes ;;
10496 +    ac_useropt_orig=$ac_useropt
10497 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10498 +    case $ac_user_opts in
10499 +      *"
10500 +"enable_$ac_useropt"
10501 +"*) ;;
10502 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
10503 +        ac_unrecognized_sep=', ';;
10504      esac
10505 -    eval "enable_$ac_feature='$ac_optarg'" ;;
10506 +    eval enable_$ac_useropt=\$ac_optarg ;;
10507  
10508    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
10509    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
10510 @@ -595,6 +1110,12 @@ do
10511    -host=* | --host=* | --hos=* | --ho=*)
10512      host_alias=$ac_optarg ;;
10513  
10514 +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
10515 +    ac_prev=htmldir ;;
10516 +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
10517 +  | --ht=*)
10518 +    htmldir=$ac_optarg ;;
10519 +
10520    -includedir | --includedir | --includedi | --included | --include \
10521    | --includ | --inclu | --incl | --inc)
10522      ac_prev=includedir ;;
10523 @@ -619,13 +1140,16 @@ do
10524    | --libexe=* | --libex=* | --libe=*)
10525      libexecdir=$ac_optarg ;;
10526  
10527 +  -localedir | --localedir | --localedi | --localed | --locale)
10528 +    ac_prev=localedir ;;
10529 +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
10530 +    localedir=$ac_optarg ;;
10531 +
10532    -localstatedir | --localstatedir | --localstatedi | --localstated \
10533 -  | --localstate | --localstat | --localsta | --localst \
10534 -  | --locals | --local | --loca | --loc | --lo)
10535 +  | --localstate | --localstat | --localsta | --localst | --locals)
10536      ac_prev=localstatedir ;;
10537    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
10538 -  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
10539 -  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
10540 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10541      localstatedir=$ac_optarg ;;
10542  
10543    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10544 @@ -690,6 +1214,16 @@ do
10545    | --progr-tra=* | --program-tr=* | --program-t=*)
10546      program_transform_name=$ac_optarg ;;
10547  
10548 +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10549 +    ac_prev=pdfdir ;;
10550 +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10551 +    pdfdir=$ac_optarg ;;
10552 +
10553 +  -psdir | --psdir | --psdi | --psd | --ps)
10554 +    ac_prev=psdir ;;
10555 +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10556 +    psdir=$ac_optarg ;;
10557 +
10558    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10559    | -silent | --silent | --silen | --sile | --sil)
10560      silent=yes ;;
10561 @@ -740,26 +1274,38 @@ do
10562      ac_init_version=: ;;
10563  
10564    -with-* | --with-*)
10565 -    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10566 +    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10567      # Reject names that are not valid shell variable names.
10568 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10569 -      { echo "$as_me: error: invalid package name: $ac_package" >&2
10570 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10571 +      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
10572     { (exit 1); exit 1; }; }
10573 -    ac_package=`echo $ac_package| sed 's/-/_/g'`
10574 -    case $ac_option in
10575 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10576 -      *) ac_optarg=yes ;;
10577 +    ac_useropt_orig=$ac_useropt
10578 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10579 +    case $ac_user_opts in
10580 +      *"
10581 +"with_$ac_useropt"
10582 +"*) ;;
10583 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10584 +        ac_unrecognized_sep=', ';;
10585      esac
10586 -    eval "with_$ac_package='$ac_optarg'" ;;
10587 +    eval with_$ac_useropt=\$ac_optarg ;;
10588  
10589    -without-* | --without-*)
10590 -    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10591 +    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10592      # Reject names that are not valid shell variable names.
10593 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10594 -      { echo "$as_me: error: invalid package name: $ac_package" >&2
10595 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10596 +      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
10597     { (exit 1); exit 1; }; }
10598 -    ac_package=`echo $ac_package | sed 's/-/_/g'`
10599 -    eval "with_$ac_package=no" ;;
10600 +    ac_useropt_orig=$ac_useropt
10601 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10602 +    case $ac_user_opts in
10603 +      *"
10604 +"with_$ac_useropt"
10605 +"*) ;;
10606 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
10607 +        ac_unrecognized_sep=', ';;
10608 +    esac
10609 +    eval with_$ac_useropt=no ;;
10610  
10611    --x)
10612      # Obsolete; use --with-x.
10613 @@ -779,7 +1325,7 @@ do
10614    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10615      x_libraries=$ac_optarg ;;
10616  
10617 -  -*) { echo "$as_me: error: unrecognized option: $ac_option
10618 +  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
10619  Try \`$0 --help' for more information." >&2
10620     { (exit 1); exit 1; }; }
10621      ;;
10622 @@ -788,17 +1334,16 @@ Try \`$0 --help' for more information." >&2
10623      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
10624      # Reject names that are not valid shell variable names.
10625      expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
10626 -      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
10627 +      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
10628     { (exit 1); exit 1; }; }
10629 -    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
10630 -    eval "$ac_envvar='$ac_optarg'"
10631 +    eval $ac_envvar=\$ac_optarg
10632      export $ac_envvar ;;
10633  
10634    *)
10635      # FIXME: should be removed in autoconf 3.0.
10636 -    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10637 +    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10638      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
10639 -      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10640 +      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10641      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10642      ;;
10643  
10644 @@ -807,31 +1352,39 @@ done
10645  
10646  if test -n "$ac_prev"; then
10647    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
10648 -  { echo "$as_me: error: missing argument to $ac_option" >&2
10649 +  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
10650     { (exit 1); exit 1; }; }
10651  fi
10652  
10653 -# Be sure to have absolute paths.
10654 -for ac_var in exec_prefix prefix
10655 -do
10656 -  eval ac_val=$`echo $ac_var`
10657 -  case $ac_val in
10658 -    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
10659 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10660 -   { (exit 1); exit 1; }; };;
10661 +if test -n "$ac_unrecognized_opts"; then
10662 +  case $enable_option_checking in
10663 +    no) ;;
10664 +    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
10665 +   { (exit 1); exit 1; }; } ;;
10666 +    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
10667    esac
10668 -done
10669 +fi
10670  
10671 -# Be sure to have absolute paths.
10672 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
10673 -             localstatedir libdir includedir oldincludedir infodir mandir
10674 +# Check all directory arguments for consistency.
10675 +for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
10676 +               datadir sysconfdir sharedstatedir localstatedir includedir \
10677 +               oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
10678 +               libdir localedir mandir
10679  do
10680 -  eval ac_val=$`echo $ac_var`
10681 +  eval ac_val=\$$ac_var
10682 +  # Remove trailing slashes.
10683    case $ac_val in
10684 -    [\\/$]* | ?:[\\/]* ) ;;
10685 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10686 -   { (exit 1); exit 1; }; };;
10687 +    */ )
10688 +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
10689 +      eval $ac_var=\$ac_val;;
10690 +  esac
10691 +  # Be sure to have absolute directory names.
10692 +  case $ac_val in
10693 +    [\\/$]* | ?:[\\/]* )  continue;;
10694 +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
10695    esac
10696 +  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10697 +   { (exit 1); exit 1; }; }
10698  done
10699  
10700  # There might be people who depend on the old broken behavior: `$host'
10701 @@ -845,7 +1398,7 @@ target=$target_alias
10702  if test "x$host_alias" != x; then
10703    if test "x$build_alias" = x; then
10704      cross_compiling=maybe
10705 -    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
10706 +    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
10707      If a cross compiler is detected then cross compile mode will be used." >&2
10708    elif test "x$build_alias" != "x$host_alias"; then
10709      cross_compiling=yes
10710 @@ -858,94 +1411,76 @@ test -n "$host_alias" && ac_tool_prefix=$host_alias-
10711  test "$silent" = yes && exec 6>/dev/null
10712  
10713  
10714 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
10715 +ac_ls_di=`ls -di .` &&
10716 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
10717 +  { $as_echo "$as_me: error: working directory cannot be determined" >&2
10718 +   { (exit 1); exit 1; }; }
10719 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
10720 +  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
10721 +   { (exit 1); exit 1; }; }
10722 +
10723 +
10724  # Find the source files, if location was not specified.
10725  if test -z "$srcdir"; then
10726    ac_srcdir_defaulted=yes
10727 -  # Try the directory containing this script, then its parent.
10728 -  ac_confdir=`(dirname "$0") 2>/dev/null ||
10729 -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10730 -        X"$0" : 'X\(//\)[^/]' \| \
10731 -        X"$0" : 'X\(//\)$' \| \
10732 -        X"$0" : 'X\(/\)' \| \
10733 -        .     : '\(.\)' 2>/dev/null ||
10734 -echo X"$0" |
10735 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10736 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10737 -         /^X\(\/\/\)$/{ s//\1/; q; }
10738 -         /^X\(\/\).*/{ s//\1/; q; }
10739 -         s/.*/./; q'`
10740 +  # Try the directory containing this script, then the parent directory.
10741 +  ac_confdir=`$as_dirname -- "$as_myself" ||
10742 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10743 +        X"$as_myself" : 'X\(//\)[^/]' \| \
10744 +        X"$as_myself" : 'X\(//\)$' \| \
10745 +        X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
10746 +$as_echo X"$as_myself" |
10747 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10748 +           s//\1/
10749 +           q
10750 +         }
10751 +         /^X\(\/\/\)[^/].*/{
10752 +           s//\1/
10753 +           q
10754 +         }
10755 +         /^X\(\/\/\)$/{
10756 +           s//\1/
10757 +           q
10758 +         }
10759 +         /^X\(\/\).*/{
10760 +           s//\1/
10761 +           q
10762 +         }
10763 +         s/.*/./; q'`
10764    srcdir=$ac_confdir
10765 -  if test ! -r $srcdir/$ac_unique_file; then
10766 +  if test ! -r "$srcdir/$ac_unique_file"; then
10767      srcdir=..
10768    fi
10769  else
10770    ac_srcdir_defaulted=no
10771  fi
10772 -if test ! -r $srcdir/$ac_unique_file; then
10773 -  if test "$ac_srcdir_defaulted" = yes; then
10774 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
10775 -   { (exit 1); exit 1; }; }
10776 -  else
10777 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
10778 +if test ! -r "$srcdir/$ac_unique_file"; then
10779 +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
10780 +  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
10781     { (exit 1); exit 1; }; }
10782 -  fi
10783  fi
10784 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
10785 -  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
10786 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
10787 +ac_abs_confdir=`(
10788 +       cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
10789     { (exit 1); exit 1; }; }
10790 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
10791 -ac_env_build_alias_set=${build_alias+set}
10792 -ac_env_build_alias_value=$build_alias
10793 -ac_cv_env_build_alias_set=${build_alias+set}
10794 -ac_cv_env_build_alias_value=$build_alias
10795 -ac_env_host_alias_set=${host_alias+set}
10796 -ac_env_host_alias_value=$host_alias
10797 -ac_cv_env_host_alias_set=${host_alias+set}
10798 -ac_cv_env_host_alias_value=$host_alias
10799 -ac_env_target_alias_set=${target_alias+set}
10800 -ac_env_target_alias_value=$target_alias
10801 -ac_cv_env_target_alias_set=${target_alias+set}
10802 -ac_cv_env_target_alias_value=$target_alias
10803 -ac_env_CC_set=${CC+set}
10804 -ac_env_CC_value=$CC
10805 -ac_cv_env_CC_set=${CC+set}
10806 -ac_cv_env_CC_value=$CC
10807 -ac_env_CFLAGS_set=${CFLAGS+set}
10808 -ac_env_CFLAGS_value=$CFLAGS
10809 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
10810 -ac_cv_env_CFLAGS_value=$CFLAGS
10811 -ac_env_LDFLAGS_set=${LDFLAGS+set}
10812 -ac_env_LDFLAGS_value=$LDFLAGS
10813 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
10814 -ac_cv_env_LDFLAGS_value=$LDFLAGS
10815 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
10816 -ac_env_CPPFLAGS_value=$CPPFLAGS
10817 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
10818 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
10819 -ac_env_CPP_set=${CPP+set}
10820 -ac_env_CPP_value=$CPP
10821 -ac_cv_env_CPP_set=${CPP+set}
10822 -ac_cv_env_CPP_value=$CPP
10823 -ac_env_CXX_set=${CXX+set}
10824 -ac_env_CXX_value=$CXX
10825 -ac_cv_env_CXX_set=${CXX+set}
10826 -ac_cv_env_CXX_value=$CXX
10827 -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
10828 -ac_env_CXXFLAGS_value=$CXXFLAGS
10829 -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
10830 -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
10831 -ac_env_CXXCPP_set=${CXXCPP+set}
10832 -ac_env_CXXCPP_value=$CXXCPP
10833 -ac_cv_env_CXXCPP_set=${CXXCPP+set}
10834 -ac_cv_env_CXXCPP_value=$CXXCPP
10835 -ac_env_F77_set=${F77+set}
10836 -ac_env_F77_value=$F77
10837 -ac_cv_env_F77_set=${F77+set}
10838 -ac_cv_env_F77_value=$F77
10839 -ac_env_FFLAGS_set=${FFLAGS+set}
10840 -ac_env_FFLAGS_value=$FFLAGS
10841 -ac_cv_env_FFLAGS_set=${FFLAGS+set}
10842 -ac_cv_env_FFLAGS_value=$FFLAGS
10843 +       pwd)`
10844 +# When building in place, set srcdir=.
10845 +if test "$ac_abs_confdir" = "$ac_pwd"; then
10846 +  srcdir=.
10847 +fi
10848 +# Remove unnecessary trailing slashes from srcdir.
10849 +# Double slashes in file names in object file debugging info
10850 +# mess up M-x gdb in Emacs.
10851 +case $srcdir in
10852 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
10853 +esac
10854 +for ac_var in $ac_precious_vars; do
10855 +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
10856 +  eval ac_env_${ac_var}_value=\$${ac_var}
10857 +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
10858 +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
10859 +done
10860  
10861  #
10862  # Report the --help message.
10863 @@ -974,14 +1509,11 @@ Configuration:
10864    -n, --no-create         do not create output files
10865        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
10866  
10867 -_ACEOF
10868 -
10869 -  cat <<_ACEOF
10870  Installation directories:
10871    --prefix=PREFIX         install architecture-independent files in PREFIX
10872 -                         [$ac_default_prefix]
10873 +                          [$ac_default_prefix]
10874    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
10875 -                         [PREFIX]
10876 +                          [PREFIX]
10877  
10878  By default, \`make install' will install all the files in
10879  \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
10880 @@ -991,18 +1523,25 @@ for instance \`--prefix=\$HOME'.
10881  For better control, use the options below.
10882  
10883  Fine tuning of the installation directories:
10884 -  --bindir=DIR           user executables [EPREFIX/bin]
10885 -  --sbindir=DIR          system admin executables [EPREFIX/sbin]
10886 -  --libexecdir=DIR       program executables [EPREFIX/libexec]
10887 -  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
10888 -  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
10889 -  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
10890 -  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
10891 -  --libdir=DIR           object code libraries [EPREFIX/lib]
10892 -  --includedir=DIR       C header files [PREFIX/include]
10893 -  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
10894 -  --infodir=DIR          info documentation [PREFIX/info]
10895 -  --mandir=DIR           man documentation [PREFIX/man]
10896 +  --bindir=DIR            user executables [EPREFIX/bin]
10897 +  --sbindir=DIR           system admin executables [EPREFIX/sbin]
10898 +  --libexecdir=DIR        program executables [EPREFIX/libexec]
10899 +  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
10900 +  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
10901 +  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
10902 +  --libdir=DIR            object code libraries [EPREFIX/lib]
10903 +  --includedir=DIR        C header files [PREFIX/include]
10904 +  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
10905 +  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
10906 +  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
10907 +  --infodir=DIR           info documentation [DATAROOTDIR/info]
10908 +  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
10909 +  --mandir=DIR            man documentation [DATAROOTDIR/man]
10910 +  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
10911 +  --htmldir=DIR           html documentation [DOCDIR]
10912 +  --dvidir=DIR            dvi documentation [DOCDIR]
10913 +  --pdfdir=DIR            pdf documentation [DOCDIR]
10914 +  --psdir=DIR             ps documentation [DOCDIR]
10915  _ACEOF
10916  
10917    cat <<\_ACEOF
10918 @@ -1024,16 +1563,15 @@ if test -n "$ac_init_help"; then
10919    cat <<\_ACEOF
10920  
10921  Optional Features:
10922 +  --disable-option-checking  ignore unrecognized --enable/--with options
10923    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
10924    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
10925    --enable-maintainer-mode  enable make rules and dependencies not useful
10926                           (and sometimes confusing) to the casual installer
10927    --disable-dependency-tracking  speeds up one-time build
10928    --enable-dependency-tracking   do not reject slow dependency extractors
10929 -  --enable-static[=PKGS]
10930 -                          build static libraries [default=no]
10931 -  --enable-shared[=PKGS]
10932 -                          build shared libraries [default=yes]
10933 +  --enable-static[=PKGS]  build static libraries [default=no]
10934 +  --enable-shared[=PKGS]  build shared libraries [default=yes]
10935    --enable-fast-install[=PKGS]
10936                            optimize for fast installation [default=yes]
10937    --disable-libtool-lock  avoid locking (might break parallel builds)
10938 @@ -1045,8 +1583,7 @@ Optional Packages:
10939    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
10940    --with-pic              try to use only PIC/non-PIC objects [default=use
10941                            both]
10942 -  --with-tags[=TAGS]
10943 -                          include additional configurations [automatic]
10944 +  --with-tags[=TAGS]      include additional configurations [automatic]
10945    --with-mysql=DIR        Location of your MySQL installation
10946  
10947  Some influential environment variables:
10948 @@ -1054,8 +1591,9 @@ Some influential environment variables:
10949    CFLAGS      C compiler flags
10950    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
10951                nonstandard directory <lib dir>
10952 -  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
10953 -              headers in a nonstandard directory <include dir>
10954 +  LIBS        libraries to pass to the linker, e.g. -l<library>
10955 +  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
10956 +              you have headers in a nonstandard directory <include dir>
10957    CPP         C preprocessor
10958    CXX         C++ compiler command
10959    CXXFLAGS    C++ compiler flags
10960 @@ -1067,118 +1605,88 @@ Use these variables to override the choices made by `configure' or to help
10961  it to find libraries and programs with nonstandard names/locations.
10962  
10963  _ACEOF
10964 +ac_status=$?
10965  fi
10966  
10967  if test "$ac_init_help" = "recursive"; then
10968    # If there are subdirs, report their specific --help.
10969 -  ac_popdir=`pwd`
10970    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
10971 -    test -d $ac_dir || continue
10972 +    test -d "$ac_dir" ||
10973 +      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
10974 +      continue
10975      ac_builddir=.
10976  
10977 -if test "$ac_dir" != .; then
10978 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10979 -  # A "../" for each directory in $ac_dir_suffix.
10980 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10981 -else
10982 -  ac_dir_suffix= ac_top_builddir=
10983 -fi
10984 +case "$ac_dir" in
10985 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10986 +*)
10987 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10988 +  # A ".." for each directory in $ac_dir_suffix.
10989 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10990 +  case $ac_top_builddir_sub in
10991 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10992 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10993 +  esac ;;
10994 +esac
10995 +ac_abs_top_builddir=$ac_pwd
10996 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
10997 +# for backward compatibility:
10998 +ac_top_builddir=$ac_top_build_prefix
10999  
11000  case $srcdir in
11001 -  .)  # No --srcdir option.  We are building in place.
11002 +  .)  # We are building in place.
11003      ac_srcdir=.
11004 -    if test -z "$ac_top_builddir"; then
11005 -       ac_top_srcdir=.
11006 -    else
11007 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11008 -    fi ;;
11009 -  [\\/]* | ?:[\\/]* )  # Absolute path.
11010 +    ac_top_srcdir=$ac_top_builddir_sub
11011 +    ac_abs_top_srcdir=$ac_pwd ;;
11012 +  [\\/]* | ?:[\\/]* )  # Absolute name.
11013      ac_srcdir=$srcdir$ac_dir_suffix;
11014 -    ac_top_srcdir=$srcdir ;;
11015 -  *) # Relative path.
11016 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11017 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11018 +    ac_top_srcdir=$srcdir
11019 +    ac_abs_top_srcdir=$srcdir ;;
11020 +  *) # Relative name.
11021 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11022 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
11023 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11024  esac
11025 -
11026 -# Do not use `cd foo && pwd` to compute absolute paths, because
11027 -# the directories may not exist.
11028 -case `pwd` in
11029 -.) ac_abs_builddir="$ac_dir";;
11030 -*)
11031 -  case "$ac_dir" in
11032 -  .) ac_abs_builddir=`pwd`;;
11033 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11034 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11035 -  esac;;
11036 -esac
11037 -case $ac_abs_builddir in
11038 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
11039 -*)
11040 -  case ${ac_top_builddir}. in
11041 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
11042 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11043 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11044 -  esac;;
11045 -esac
11046 -case $ac_abs_builddir in
11047 -.) ac_abs_srcdir=$ac_srcdir;;
11048 -*)
11049 -  case $ac_srcdir in
11050 -  .) ac_abs_srcdir=$ac_abs_builddir;;
11051 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11052 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11053 -  esac;;
11054 -esac
11055 -case $ac_abs_builddir in
11056 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
11057 -*)
11058 -  case $ac_top_srcdir in
11059 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11060 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11061 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11062 -  esac;;
11063 -esac
11064 -
11065 -    cd $ac_dir
11066 -    # Check for guested configure; otherwise get Cygnus style configure.
11067 -    if test -f $ac_srcdir/configure.gnu; then
11068 -      echo
11069 -      $SHELL $ac_srcdir/configure.gnu  --help=recursive
11070 -    elif test -f $ac_srcdir/configure; then
11071 -      echo
11072 -      $SHELL $ac_srcdir/configure  --help=recursive
11073 -    elif test -f $ac_srcdir/configure.ac ||
11074 -          test -f $ac_srcdir/configure.in; then
11075 -      echo
11076 -      $ac_configure --help
11077 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11078 +
11079 +    cd "$ac_dir" || { ac_status=$?; continue; }
11080 +    # Check for guested configure.
11081 +    if test -f "$ac_srcdir/configure.gnu"; then
11082 +      echo &&
11083 +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
11084 +    elif test -f "$ac_srcdir/configure"; then
11085 +      echo &&
11086 +      $SHELL "$ac_srcdir/configure" --help=recursive
11087      else
11088 -      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11089 -    fi
11090 -    cd $ac_popdir
11091 +      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11092 +    fi || ac_status=$?
11093 +    cd "$ac_pwd" || { ac_status=$?; break; }
11094    done
11095  fi
11096  
11097 -test -n "$ac_init_help" && exit 0
11098 +test -n "$ac_init_help" && exit $ac_status
11099  if $ac_init_version; then
11100    cat <<\_ACEOF
11101 +configure
11102 +generated by GNU Autoconf 2.63
11103  
11104 -Copyright (C) 2003 Free Software Foundation, Inc.
11105 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11106 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
11107  This configure script is free software; the Free Software Foundation
11108  gives unlimited permission to copy, distribute and modify it.
11109  _ACEOF
11110 -  exit 0
11111 +  exit
11112  fi
11113 -exec 5>config.log
11114 -cat >&5 <<_ACEOF
11115 +cat >config.log <<_ACEOF
11116  This file contains any messages produced by compilers while
11117  running configure, to aid debugging if configure makes a mistake.
11118  
11119  It was created by $as_me, which was
11120 -generated by GNU Autoconf 2.59.  Invocation command line was
11121 +generated by GNU Autoconf 2.63.  Invocation command line was
11122  
11123    $ $0 $@
11124  
11125  _ACEOF
11126 +exec 5>>config.log
11127  {
11128  cat <<_ASUNAME
11129  ## --------- ##
11130 @@ -1197,7 +1705,7 @@ uname -v = `(uname -v) 2>/dev/null || echo unknown`
11131  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
11132  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
11133  /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
11134 -hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
11135 +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
11136  /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
11137  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
11138  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
11139 @@ -1209,8 +1717,9 @@ for as_dir in $PATH
11140  do
11141    IFS=$as_save_IFS
11142    test -z "$as_dir" && as_dir=.
11143 -  echo "PATH: $as_dir"
11144 +  $as_echo "PATH: $as_dir"
11145  done
11146 +IFS=$as_save_IFS
11147  
11148  } >&5
11149  
11150 @@ -1232,7 +1741,6 @@ _ACEOF
11151  ac_configure_args=
11152  ac_configure_args0=
11153  ac_configure_args1=
11154 -ac_sep=
11155  ac_must_keep_next=false
11156  for ac_pass in 1 2
11157  do
11158 @@ -1243,8 +1751,8 @@ do
11159      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11160      | -silent | --silent | --silen | --sile | --sil)
11161        continue ;;
11162 -    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
11163 -      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11164 +    *\'*)
11165 +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11166      esac
11167      case $ac_pass in
11168      1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
11169 @@ -1265,9 +1773,7 @@ do
11170           -* ) ac_must_keep_next=true ;;
11171         esac
11172        fi
11173 -      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
11174 -      # Get rid of the leading space.
11175 -      ac_sep=" "
11176 +      ac_configure_args="$ac_configure_args '$ac_arg'"
11177        ;;
11178      esac
11179    done
11180 @@ -1278,8 +1784,8 @@ $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_
11181  # When interrupted or exit'd, cleanup temporary files, and complete
11182  # config.log.  We remove comments because anyway the quotes in there
11183  # would cause problems or look ugly.
11184 -# WARNING: Be sure not to use single quotes in there, as some shells,
11185 -# such as our DU 5.0 friend, will then `close' the trap.
11186 +# WARNING: Use '\'' to represent an apostrophe within the trap.
11187 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
11188  trap 'exit_status=$?
11189    # Save into config.log some information that might help in debugging.
11190    {
11191 @@ -1292,20 +1798,35 @@ trap 'exit_status=$?
11192  _ASBOX
11193      echo
11194      # The following way of writing the cache mishandles newlines in values,
11195 -{
11196 +(
11197 +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
11198 +    eval ac_val=\$$ac_var
11199 +    case $ac_val in #(
11200 +    *${as_nl}*)
11201 +      case $ac_var in #(
11202 +      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11203 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11204 +      esac
11205 +      case $ac_var in #(
11206 +      _ | IFS | as_nl) ;; #(
11207 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11208 +      *) $as_unset $ac_var ;;
11209 +      esac ;;
11210 +    esac
11211 +  done
11212    (set) 2>&1 |
11213 -    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
11214 -    *ac_space=\ *)
11215 +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
11216 +    *${as_nl}ac_space=\ *)
11217        sed -n \
11218 -       "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
11219 -         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
11220 -      ;;
11221 +       "s/'\''/'\''\\\\'\'''\''/g;
11222 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
11223 +      ;; #(
11224      *)
11225 -      sed -n \
11226 -       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11227 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11228        ;;
11229 -    esac;
11230 -}
11231 +    esac |
11232 +    sort
11233 +)
11234      echo
11235  
11236      cat <<\_ASBOX
11237 @@ -1316,22 +1837,28 @@ _ASBOX
11238      echo
11239      for ac_var in $ac_subst_vars
11240      do
11241 -      eval ac_val=$`echo $ac_var`
11242 -      echo "$ac_var='"'"'$ac_val'"'"'"
11243 +      eval ac_val=\$$ac_var
11244 +      case $ac_val in
11245 +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
11246 +      esac
11247 +      $as_echo "$ac_var='\''$ac_val'\''"
11248      done | sort
11249      echo
11250  
11251      if test -n "$ac_subst_files"; then
11252        cat <<\_ASBOX
11253 -## ------------- ##
11254 -## Output files. ##
11255 -## ------------- ##
11256 +## ------------------- ##
11257 +## File substitutions. ##
11258 +## ------------------- ##
11259  _ASBOX
11260        echo
11261        for ac_var in $ac_subst_files
11262        do
11263 -       eval ac_val=$`echo $ac_var`
11264 -       echo "$ac_var='"'"'$ac_val'"'"'"
11265 +       eval ac_val=\$$ac_var
11266 +       case $ac_val in
11267 +       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
11268 +       esac
11269 +       $as_echo "$ac_var='\''$ac_val'\''"
11270        done | sort
11271        echo
11272      fi
11273 @@ -1343,26 +1870,24 @@ _ASBOX
11274  ## ----------- ##
11275  _ASBOX
11276        echo
11277 -      sed "/^$/d" confdefs.h | sort
11278 +      cat confdefs.h
11279        echo
11280      fi
11281      test "$ac_signal" != 0 &&
11282 -      echo "$as_me: caught signal $ac_signal"
11283 -    echo "$as_me: exit $exit_status"
11284 +      $as_echo "$as_me: caught signal $ac_signal"
11285 +    $as_echo "$as_me: exit $exit_status"
11286    } >&5
11287 -  rm -f core *.core &&
11288 -  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
11289 +  rm -f core *.core core.conftest.* &&
11290 +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
11291      exit $exit_status
11292 -     ' 0
11293 +' 0
11294  for ac_signal in 1 2 13 15; do
11295    trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
11296  done
11297  ac_signal=0
11298  
11299  # confdefs.h avoids OS command line length limits that DEFS can exceed.
11300 -rm -rf conftest* confdefs.h
11301 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
11302 -echo >confdefs.h
11303 +rm -f -r conftest* confdefs.h
11304  
11305  # Predefined preprocessor variables.
11306  
11307 @@ -1392,18 +1917,24 @@ _ACEOF
11308  
11309  
11310  # Let the site file select an alternate cache file if it wants to.
11311 -# Prefer explicitly selected file to automatically selected ones.
11312 -if test -z "$CONFIG_SITE"; then
11313 -  if test "x$prefix" != xNONE; then
11314 -    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
11315 -  else
11316 -    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
11317 -  fi
11318 -fi
11319 -for ac_site_file in $CONFIG_SITE; do
11320 +# Prefer an explicitly selected file to automatically selected ones.
11321 +ac_site_file1=NONE
11322 +ac_site_file2=NONE
11323 +if test -n "$CONFIG_SITE"; then
11324 +  ac_site_file1=$CONFIG_SITE
11325 +elif test "x$prefix" != xNONE; then
11326 +  ac_site_file1=$prefix/share/config.site
11327 +  ac_site_file2=$prefix/etc/config.site
11328 +else
11329 +  ac_site_file1=$ac_default_prefix/share/config.site
11330 +  ac_site_file2=$ac_default_prefix/etc/config.site
11331 +fi
11332 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
11333 +do
11334 +  test "x$ac_site_file" = xNONE && continue
11335    if test -r "$ac_site_file"; then
11336 -    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11337 -echo "$as_me: loading site script $ac_site_file" >&6;}
11338 +    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11339 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
11340      sed 's/^/| /' "$ac_site_file" >&5
11341      . "$ac_site_file"
11342    fi
11343 @@ -1413,54 +1944,61 @@ if test -r "$cache_file"; then
11344    # Some versions of bash will fail to source /dev/null (special
11345    # files actually), so we avoid doing that.
11346    if test -f "$cache_file"; then
11347 -    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
11348 -echo "$as_me: loading cache $cache_file" >&6;}
11349 +    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
11350 +$as_echo "$as_me: loading cache $cache_file" >&6;}
11351      case $cache_file in
11352 -      [\\/]* | ?:[\\/]* ) . $cache_file;;
11353 -      *)                      . ./$cache_file;;
11354 +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
11355 +      *)                      . "./$cache_file";;
11356      esac
11357    fi
11358  else
11359 -  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
11360 -echo "$as_me: creating cache $cache_file" >&6;}
11361 +  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
11362 +$as_echo "$as_me: creating cache $cache_file" >&6;}
11363    >$cache_file
11364  fi
11365  
11366  # Check that the precious variables saved in the cache have kept the same
11367  # value.
11368  ac_cache_corrupted=false
11369 -for ac_var in `(set) 2>&1 |
11370 -              sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
11371 +for ac_var in $ac_precious_vars; do
11372    eval ac_old_set=\$ac_cv_env_${ac_var}_set
11373    eval ac_new_set=\$ac_env_${ac_var}_set
11374 -  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
11375 -  eval ac_new_val="\$ac_env_${ac_var}_value"
11376 +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
11377 +  eval ac_new_val=\$ac_env_${ac_var}_value
11378    case $ac_old_set,$ac_new_set in
11379      set,)
11380 -      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11381 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
11382 +      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11383 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
11384        ac_cache_corrupted=: ;;
11385      ,set)
11386 -      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
11387 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
11388 +      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
11389 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
11390        ac_cache_corrupted=: ;;
11391      ,);;
11392      *)
11393        if test "x$ac_old_val" != "x$ac_new_val"; then
11394 -       { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
11395 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
11396 -       { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
11397 -echo "$as_me:   former value:  $ac_old_val" >&2;}
11398 -       { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
11399 -echo "$as_me:   current value: $ac_new_val" >&2;}
11400 -       ac_cache_corrupted=:
11401 +       # differences in whitespace do not lead to failure.
11402 +       ac_old_val_w=`echo x $ac_old_val`
11403 +       ac_new_val_w=`echo x $ac_new_val`
11404 +       if test "$ac_old_val_w" != "$ac_new_val_w"; then
11405 +         { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
11406 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
11407 +         ac_cache_corrupted=:
11408 +       else
11409 +         { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
11410 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
11411 +         eval $ac_var=\$ac_old_val
11412 +       fi
11413 +       { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
11414 +$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
11415 +       { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
11416 +$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
11417        fi;;
11418    esac
11419    # Pass precious variables to config.status.
11420    if test "$ac_new_set" = set; then
11421      case $ac_new_val in
11422 -    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
11423 -      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
11424 +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
11425      *) ac_arg=$ac_var=$ac_new_val ;;
11426      esac
11427      case " $ac_configure_args " in
11428 @@ -1470,19 +2008,15 @@ echo "$as_me:   current value: $ac_new_val" >&2;}
11429    fi
11430  done
11431  if $ac_cache_corrupted; then
11432 -  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
11433 -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
11434 -  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
11435 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
11436 +  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11437 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11438 +  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
11439 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
11440 +  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
11441 +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
11442     { (exit 1); exit 1; }; }
11443  fi
11444  
11445 -ac_ext=c
11446 -ac_cpp='$CPP $CPPFLAGS'
11447 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11448 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11449 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11450 -
11451  
11452  
11453  
11454 @@ -1499,109 +2033,164 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
11455  
11456  
11457  
11458 +ac_ext=c
11459 +ac_cpp='$CPP $CPPFLAGS'
11460 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11461 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11462 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
11463  
11464  
11465  ac_aux_dir=
11466 -for ac_dir in aux $srcdir/aux; do
11467 -  if test -f $ac_dir/install-sh; then
11468 +for ac_dir in aux "$srcdir"/aux; do
11469 +  if test -f "$ac_dir/install-sh"; then
11470      ac_aux_dir=$ac_dir
11471      ac_install_sh="$ac_aux_dir/install-sh -c"
11472      break
11473 -  elif test -f $ac_dir/install.sh; then
11474 +  elif test -f "$ac_dir/install.sh"; then
11475      ac_aux_dir=$ac_dir
11476      ac_install_sh="$ac_aux_dir/install.sh -c"
11477      break
11478 -  elif test -f $ac_dir/shtool; then
11479 +  elif test -f "$ac_dir/shtool"; then
11480      ac_aux_dir=$ac_dir
11481      ac_install_sh="$ac_aux_dir/shtool install -c"
11482      break
11483    fi
11484  done
11485  if test -z "$ac_aux_dir"; then
11486 -  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
11487 -echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
11488 +  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux \"$srcdir\"/aux" >&5
11489 +$as_echo "$as_me: error: cannot find install-sh or install.sh in aux \"$srcdir\"/aux" >&2;}
11490     { (exit 1); exit 1; }; }
11491  fi
11492 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
11493 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
11494 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
11495 +
11496 +# These three variables are undocumented and unsupported,
11497 +# and are intended to be withdrawn in a future Autoconf release.
11498 +# They can cause serious problems if a builder's source tree is in a directory
11499 +# whose full name contains unusual characters.
11500 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
11501 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
11502 +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
11503 +
11504  
11505  
11506  
11507  # Make sure we can run config.sub.
11508 -$ac_config_sub sun4 >/dev/null 2>&1 ||
11509 -  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
11510 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
11511 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11512 +  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11513 +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11514     { (exit 1); exit 1; }; }
11515  
11516 -echo "$as_me:$LINENO: checking build system type" >&5
11517 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
11518 +{ $as_echo "$as_me:$LINENO: checking build system type" >&5
11519 +$as_echo_n "checking build system type... " >&6; }
11520  if test "${ac_cv_build+set}" = set; then
11521 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11522 -else
11523 -  ac_cv_build_alias=$build_alias
11524 -test -z "$ac_cv_build_alias" &&
11525 -  ac_cv_build_alias=`$ac_config_guess`
11526 -test -z "$ac_cv_build_alias" &&
11527 -  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11528 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11529 +  $as_echo_n "(cached) " >&6
11530 +else
11531 +  ac_build_alias=$build_alias
11532 +test "x$ac_build_alias" = x &&
11533 +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11534 +test "x$ac_build_alias" = x &&
11535 +  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11536 +$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11537     { (exit 1); exit 1; }; }
11538 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
11539 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
11540 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
11541 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11542 +  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11543 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11544     { (exit 1); exit 1; }; }
11545  
11546  fi
11547 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11548 -echo "${ECHO_T}$ac_cv_build" >&6
11549 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11550 +$as_echo "$ac_cv_build" >&6; }
11551 +case $ac_cv_build in
11552 +*-*-*) ;;
11553 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11554 +$as_echo "$as_me: error: invalid value of canonical build" >&2;}
11555 +   { (exit 1); exit 1; }; };;
11556 +esac
11557  build=$ac_cv_build
11558 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11559 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11560 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11561 -
11562 -
11563 -echo "$as_me:$LINENO: checking host system type" >&5
11564 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
11565 +ac_save_IFS=$IFS; IFS='-'
11566 +set x $ac_cv_build
11567 +shift
11568 +build_cpu=$1
11569 +build_vendor=$2
11570 +shift; shift
11571 +# Remember, the first character of IFS is used to create $*,
11572 +# except with old shells:
11573 +build_os=$*
11574 +IFS=$ac_save_IFS
11575 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11576 +
11577 +
11578 +{ $as_echo "$as_me:$LINENO: checking host system type" >&5
11579 +$as_echo_n "checking host system type... " >&6; }
11580  if test "${ac_cv_host+set}" = set; then
11581 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11582 -else
11583 -  ac_cv_host_alias=$host_alias
11584 -test -z "$ac_cv_host_alias" &&
11585 -  ac_cv_host_alias=$ac_cv_build_alias
11586 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
11587 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
11588 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
11589 +  $as_echo_n "(cached) " >&6
11590 +else
11591 +  if test "x$host_alias" = x; then
11592 +  ac_cv_host=$ac_cv_build
11593 +else
11594 +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11595 +    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11596 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11597     { (exit 1); exit 1; }; }
11598 +fi
11599  
11600  fi
11601 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11602 -echo "${ECHO_T}$ac_cv_host" >&6
11603 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11604 +$as_echo "$ac_cv_host" >&6; }
11605 +case $ac_cv_host in
11606 +*-*-*) ;;
11607 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11608 +$as_echo "$as_me: error: invalid value of canonical host" >&2;}
11609 +   { (exit 1); exit 1; }; };;
11610 +esac
11611  host=$ac_cv_host
11612 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11613 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11614 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11615 -
11616 -
11617 -echo "$as_me:$LINENO: checking target system type" >&5
11618 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
11619 +ac_save_IFS=$IFS; IFS='-'
11620 +set x $ac_cv_host
11621 +shift
11622 +host_cpu=$1
11623 +host_vendor=$2
11624 +shift; shift
11625 +# Remember, the first character of IFS is used to create $*,
11626 +# except with old shells:
11627 +host_os=$*
11628 +IFS=$ac_save_IFS
11629 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11630 +
11631 +
11632 +{ $as_echo "$as_me:$LINENO: checking target system type" >&5
11633 +$as_echo_n "checking target system type... " >&6; }
11634  if test "${ac_cv_target+set}" = set; then
11635 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11636 -else
11637 -  ac_cv_target_alias=$target_alias
11638 -test "x$ac_cv_target_alias" = "x" &&
11639 -  ac_cv_target_alias=$ac_cv_host_alias
11640 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
11641 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
11642 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
11643 +  $as_echo_n "(cached) " >&6
11644 +else
11645 +  if test "x$target_alias" = x; then
11646 +  ac_cv_target=$ac_cv_host
11647 +else
11648 +  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
11649 +    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
11650 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
11651     { (exit 1); exit 1; }; }
11652 +fi
11653  
11654  fi
11655 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
11656 -echo "${ECHO_T}$ac_cv_target" >&6
11657 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
11658 +$as_echo "$ac_cv_target" >&6; }
11659 +case $ac_cv_target in
11660 +*-*-*) ;;
11661 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
11662 +$as_echo "$as_me: error: invalid value of canonical target" >&2;}
11663 +   { (exit 1); exit 1; }; };;
11664 +esac
11665  target=$ac_cv_target
11666 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11667 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11668 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11669 +ac_save_IFS=$IFS; IFS='-'
11670 +set x $ac_cv_target
11671 +shift
11672 +target_cpu=$1
11673 +target_vendor=$2
11674 +shift; shift
11675 +# Remember, the first character of IFS is used to create $*,
11676 +# except with old shells:
11677 +target_os=$*
11678 +IFS=$ac_save_IFS
11679 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
11680  
11681  
11682  # The aliases save the names the user supplied, while $host etc.
11683 @@ -1625,11 +2214,12 @@ am__api_version="1.9"
11684  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11685  # OS/2's system install, which has a completely different semantic
11686  # ./install, which can be erroneously created by make from ./install.sh.
11687 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11688 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11689 +# Reject install programs that cannot install multiple files.
11690 +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11691 +$as_echo_n "checking for a BSD-compatible install... " >&6; }
11692  if test -z "$INSTALL"; then
11693  if test "${ac_cv_path_install+set}" = set; then
11694 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11695 +  $as_echo_n "(cached) " >&6
11696  else
11697    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698  for as_dir in $PATH
11699 @@ -1648,7 +2238,7 @@ case $as_dir/ in
11700      # by default.
11701      for ac_prog in ginstall scoinst install; do
11702        for ac_exec_ext in '' $ac_executable_extensions; do
11703 -       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11704 +       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11705           if test $ac_prog = install &&
11706             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11707             # AIX install.  It has an incompatible calling convention.
11708 @@ -1658,30 +2248,43 @@ case $as_dir/ in
11709             # program-specific install script used by HP pwplus--don't use.
11710             :
11711           else
11712 -           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11713 -           break 3
11714 +           rm -rf conftest.one conftest.two conftest.dir
11715 +           echo one > conftest.one
11716 +           echo two > conftest.two
11717 +           mkdir conftest.dir
11718 +           if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11719 +             test -s conftest.one && test -s conftest.two &&
11720 +             test -s conftest.dir/conftest.one &&
11721 +             test -s conftest.dir/conftest.two
11722 +           then
11723 +             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11724 +             break 3
11725 +           fi
11726           fi
11727         fi
11728        done
11729      done
11730      ;;
11731  esac
11732 +
11733  done
11734 +IFS=$as_save_IFS
11735  
11736 +rm -rf conftest.one conftest.two conftest.dir
11737  
11738  fi
11739    if test "${ac_cv_path_install+set}" = set; then
11740      INSTALL=$ac_cv_path_install
11741    else
11742 -    # As a last resort, use the slow shell script.  We don't cache a
11743 -    # path for INSTALL within a source directory, because that will
11744 +    # As a last resort, use the slow shell script.  Don't cache a
11745 +    # value for INSTALL within a source directory, because that will
11746      # break other packages using the cache if that directory is
11747 -    # removed, or if the path is relative.
11748 +    # removed, or if the value is a relative name.
11749      INSTALL=$ac_install_sh
11750    fi
11751  fi
11752 -echo "$as_me:$LINENO: result: $INSTALL" >&5
11753 -echo "${ECHO_T}$INSTALL" >&6
11754 +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11755 +$as_echo "$INSTALL" >&6; }
11756  
11757  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11758  # It thinks the first close brace ends the variable substitution.
11759 @@ -1691,8 +2294,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11760  
11761  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11762  
11763 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
11764 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
11765 +{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
11766 +$as_echo_n "checking whether build environment is sane... " >&6; }
11767  # Just in case
11768  sleep 1
11769  echo timestamp > conftest.file
11770 @@ -1715,9 +2318,9 @@ if (
11771        # if, for instance, CONFIG_SHELL is bash and it inherits a
11772        # broken ls alias from the environment.  This has actually
11773        # happened.  Such a system could not be considered "sane".
11774 -      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
11775 +      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
11776  alias in your environment" >&5
11777 -echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
11778 +$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
11779  alias in your environment" >&2;}
11780     { (exit 1); exit 1; }; }
11781     fi
11782 @@ -1728,26 +2331,23 @@ then
11783     # Ok.
11784     :
11785  else
11786 -   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
11787 +   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
11788  Check your system clock" >&5
11789 -echo "$as_me: error: newly created file is older than distributed files!
11790 +$as_echo "$as_me: error: newly created file is older than distributed files!
11791  Check your system clock" >&2;}
11792     { (exit 1); exit 1; }; }
11793  fi
11794 -echo "$as_me:$LINENO: result: yes" >&5
11795 -echo "${ECHO_T}yes" >&6
11796 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
11797 +$as_echo "yes" >&6; }
11798  test "$program_prefix" != NONE &&
11799 -  program_transform_name="s,^,$program_prefix,;$program_transform_name"
11800 +  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11801  # Use a double $ so make ignores it.
11802  test "$program_suffix" != NONE &&
11803 -  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
11804 -# Double any \ or $.  echo might interpret backslashes.
11805 +  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11806 +# Double any \ or $.
11807  # By default was `s,x,x', remove it if useless.
11808 -cat <<\_ACEOF >conftest.sed
11809 -s/[\\$]/&&/g;s/;s,x,x,$//
11810 -_ACEOF
11811 -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
11812 -rm conftest.sed
11813 +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11814 +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11815  
11816  # expand $ac_aux_dir to an absolute path
11817  am_aux_dir=`cd $ac_aux_dir && pwd`
11818 @@ -1758,8 +2358,8 @@ if eval "$MISSING --run true"; then
11819    am_missing_run="$MISSING --run "
11820  else
11821    am_missing_run=
11822 -  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
11823 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11824 +  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
11825 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11826  fi
11827  
11828  if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
11829 @@ -1799,10 +2399,10 @@ for ac_prog in gawk mawk nawk awk
11830  do
11831    # Extract the first word of "$ac_prog", so it can be a program name with args.
11832  set dummy $ac_prog; ac_word=$2
11833 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11834 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11835 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11836 +$as_echo_n "checking for $ac_word... " >&6; }
11837  if test "${ac_cv_prog_AWK+set}" = set; then
11838 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11839 +  $as_echo_n "(cached) " >&6
11840  else
11841    if test -n "$AWK"; then
11842    ac_cv_prog_AWK="$AWK" # Let the user override the test.
11843 @@ -1813,54 +2413,58 @@ do
11844    IFS=$as_save_IFS
11845    test -z "$as_dir" && as_dir=.
11846    for ac_exec_ext in '' $ac_executable_extensions; do
11847 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849      ac_cv_prog_AWK="$ac_prog"
11850 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11852      break 2
11853    fi
11854  done
11855  done
11856 +IFS=$as_save_IFS
11857  
11858  fi
11859  fi
11860  AWK=$ac_cv_prog_AWK
11861  if test -n "$AWK"; then
11862 -  echo "$as_me:$LINENO: result: $AWK" >&5
11863 -echo "${ECHO_T}$AWK" >&6
11864 +  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11865 +$as_echo "$AWK" >&6; }
11866  else
11867 -  echo "$as_me:$LINENO: result: no" >&5
11868 -echo "${ECHO_T}no" >&6
11869 +  { $as_echo "$as_me:$LINENO: result: no" >&5
11870 +$as_echo "no" >&6; }
11871  fi
11872  
11873 +
11874    test -n "$AWK" && break
11875  done
11876  
11877 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11878 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
11879 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
11880 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
11881 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11882 +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11883 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11884 +set x ${MAKE-make}
11885 +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11886 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11887 +  $as_echo_n "(cached) " >&6
11888  else
11889    cat >conftest.make <<\_ACEOF
11890 +SHELL = /bin/sh
11891  all:
11892 -       @echo 'ac_maketemp="$(MAKE)"'
11893 +       @echo '@@@%%%=$(MAKE)=@@@%%%'
11894  _ACEOF
11895  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11896 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
11897 -if test -n "$ac_maketemp"; then
11898 -  eval ac_cv_prog_make_${ac_make}_set=yes
11899 -else
11900 -  eval ac_cv_prog_make_${ac_make}_set=no
11901 -fi
11902 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
11903 +  *@@@%%%=?*=@@@%%%*)
11904 +    eval ac_cv_prog_make_${ac_make}_set=yes;;
11905 +  *)
11906 +    eval ac_cv_prog_make_${ac_make}_set=no;;
11907 +esac
11908  rm -f conftest.make
11909  fi
11910 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11911 -  echo "$as_me:$LINENO: result: yes" >&5
11912 -echo "${ECHO_T}yes" >&6
11913 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11914 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
11915 +$as_echo "yes" >&6; }
11916    SET_MAKE=
11917  else
11918 -  echo "$as_me:$LINENO: result: no" >&5
11919 -echo "${ECHO_T}no" >&6
11920 +  { $as_echo "$as_me:$LINENO: result: no" >&5
11921 +$as_echo "no" >&6; }
11922    SET_MAKE="MAKE=${MAKE-make}"
11923  fi
11924  
11925 @@ -1876,8 +2480,8 @@ rmdir .tst 2>/dev/null
11926  # test to see if srcdir already configured
11927  if test "`cd $srcdir && pwd`" != "`pwd`" &&
11928     test -f $srcdir/config.status; then
11929 -  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11930 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11931 +  { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11932 +$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11933     { (exit 1); exit 1; }; }
11934  fi
11935  
11936 @@ -1931,10 +2535,10 @@ if test "$cross_compiling" != no; then
11937    if test -n "$ac_tool_prefix"; then
11938    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11939  set dummy ${ac_tool_prefix}strip; ac_word=$2
11940 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11941 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11942 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11943 +$as_echo_n "checking for $ac_word... " >&6; }
11944  if test "${ac_cv_prog_STRIP+set}" = set; then
11945 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11946 +  $as_echo_n "(cached) " >&6
11947  else
11948    if test -n "$STRIP"; then
11949    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11950 @@ -1945,34 +2549,36 @@ do
11951    IFS=$as_save_IFS
11952    test -z "$as_dir" && as_dir=.
11953    for ac_exec_ext in '' $ac_executable_extensions; do
11954 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11955 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11957 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11959      break 2
11960    fi
11961  done
11962  done
11963 +IFS=$as_save_IFS
11964  
11965  fi
11966  fi
11967  STRIP=$ac_cv_prog_STRIP
11968  if test -n "$STRIP"; then
11969 -  echo "$as_me:$LINENO: result: $STRIP" >&5
11970 -echo "${ECHO_T}$STRIP" >&6
11971 +  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11972 +$as_echo "$STRIP" >&6; }
11973  else
11974 -  echo "$as_me:$LINENO: result: no" >&5
11975 -echo "${ECHO_T}no" >&6
11976 +  { $as_echo "$as_me:$LINENO: result: no" >&5
11977 +$as_echo "no" >&6; }
11978  fi
11979  
11980 +
11981  fi
11982  if test -z "$ac_cv_prog_STRIP"; then
11983    ac_ct_STRIP=$STRIP
11984    # Extract the first word of "strip", so it can be a program name with args.
11985  set dummy strip; ac_word=$2
11986 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11987 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11988 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11989 +$as_echo_n "checking for $ac_word... " >&6; }
11990  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11991 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11992 +  $as_echo_n "(cached) " >&6
11993  else
11994    if test -n "$ac_ct_STRIP"; then
11995    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11996 @@ -1983,27 +2589,37 @@ do
11997    IFS=$as_save_IFS
11998    test -z "$as_dir" && as_dir=.
11999    for ac_exec_ext in '' $ac_executable_extensions; do
12000 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12002      ac_cv_prog_ac_ct_STRIP="strip"
12003 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12005      break 2
12006    fi
12007  done
12008  done
12009 +IFS=$as_save_IFS
12010  
12011 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12012  fi
12013  fi
12014  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12015  if test -n "$ac_ct_STRIP"; then
12016 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12017 -echo "${ECHO_T}$ac_ct_STRIP" >&6
12018 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12019 +$as_echo "$ac_ct_STRIP" >&6; }
12020  else
12021 -  echo "$as_me:$LINENO: result: no" >&5
12022 -echo "${ECHO_T}no" >&6
12023 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12024 +$as_echo "no" >&6; }
12025  fi
12026  
12027 -  STRIP=$ac_ct_STRIP
12028 +  if test "x$ac_ct_STRIP" = x; then
12029 +    STRIP=":"
12030 +  else
12031 +    case $cross_compiling:$ac_tool_warned in
12032 +yes:)
12033 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12034 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12035 +ac_tool_warned=yes ;;
12036 +esac
12037 +    STRIP=$ac_ct_STRIP
12038 +  fi
12039  else
12040    STRIP="$ac_cv_prog_STRIP"
12041  fi
12042 @@ -2023,19 +2639,19 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
12043  
12044  
12045  
12046 -          ac_config_headers="$ac_config_headers config.h"
12047 +ac_config_headers="$ac_config_headers config.h"
12048  
12049 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12050 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12051 -    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12052 +{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12053 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12054 +    # Check whether --enable-maintainer-mode was given.
12055  if test "${enable_maintainer_mode+set}" = set; then
12056 -  enableval="$enable_maintainer_mode"
12057 -  USE_MAINTAINER_MODE=$enableval
12058 +  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12059  else
12060    USE_MAINTAINER_MODE=no
12061 -fi;
12062 -  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12063 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12064 +fi
12065 +
12066 +  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12067 +$as_echo "$USE_MAINTAINER_MODE" >&6; }
12068  
12069  
12070  if test $USE_MAINTAINER_MODE = yes; then
12071 @@ -2058,10 +2674,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
12072  if test -n "$ac_tool_prefix"; then
12073    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12074  set dummy ${ac_tool_prefix}gcc; ac_word=$2
12075 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12076 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12077 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12078 +$as_echo_n "checking for $ac_word... " >&6; }
12079  if test "${ac_cv_prog_CC+set}" = set; then
12080 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12081 +  $as_echo_n "(cached) " >&6
12082  else
12083    if test -n "$CC"; then
12084    ac_cv_prog_CC="$CC" # Let the user override the test.
12085 @@ -2072,34 +2688,36 @@ do
12086    IFS=$as_save_IFS
12087    test -z "$as_dir" && as_dir=.
12088    for ac_exec_ext in '' $ac_executable_extensions; do
12089 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12091      ac_cv_prog_CC="${ac_tool_prefix}gcc"
12092 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12094      break 2
12095    fi
12096  done
12097  done
12098 +IFS=$as_save_IFS
12099  
12100  fi
12101  fi
12102  CC=$ac_cv_prog_CC
12103  if test -n "$CC"; then
12104 -  echo "$as_me:$LINENO: result: $CC" >&5
12105 -echo "${ECHO_T}$CC" >&6
12106 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12107 +$as_echo "$CC" >&6; }
12108  else
12109 -  echo "$as_me:$LINENO: result: no" >&5
12110 -echo "${ECHO_T}no" >&6
12111 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12112 +$as_echo "no" >&6; }
12113  fi
12114  
12115 +
12116  fi
12117  if test -z "$ac_cv_prog_CC"; then
12118    ac_ct_CC=$CC
12119    # Extract the first word of "gcc", so it can be a program name with args.
12120  set dummy gcc; ac_word=$2
12121 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12122 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12123 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12124 +$as_echo_n "checking for $ac_word... " >&6; }
12125  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12126 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12127 +  $as_echo_n "(cached) " >&6
12128  else
12129    if test -n "$ac_ct_CC"; then
12130    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12131 @@ -2110,38 +2728,49 @@ do
12132    IFS=$as_save_IFS
12133    test -z "$as_dir" && as_dir=.
12134    for ac_exec_ext in '' $ac_executable_extensions; do
12135 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12137      ac_cv_prog_ac_ct_CC="gcc"
12138 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12140      break 2
12141    fi
12142  done
12143  done
12144 +IFS=$as_save_IFS
12145  
12146  fi
12147  fi
12148  ac_ct_CC=$ac_cv_prog_ac_ct_CC
12149  if test -n "$ac_ct_CC"; then
12150 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12151 -echo "${ECHO_T}$ac_ct_CC" >&6
12152 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12153 +$as_echo "$ac_ct_CC" >&6; }
12154  else
12155 -  echo "$as_me:$LINENO: result: no" >&5
12156 -echo "${ECHO_T}no" >&6
12157 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12158 +$as_echo "no" >&6; }
12159  fi
12160  
12161 -  CC=$ac_ct_CC
12162 +  if test "x$ac_ct_CC" = x; then
12163 +    CC=""
12164 +  else
12165 +    case $cross_compiling:$ac_tool_warned in
12166 +yes:)
12167 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12168 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12169 +ac_tool_warned=yes ;;
12170 +esac
12171 +    CC=$ac_ct_CC
12172 +  fi
12173  else
12174    CC="$ac_cv_prog_CC"
12175  fi
12176  
12177  if test -z "$CC"; then
12178 -  if test -n "$ac_tool_prefix"; then
12179 -  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12180 +          if test -n "$ac_tool_prefix"; then
12181 +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12182  set dummy ${ac_tool_prefix}cc; ac_word=$2
12183 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12184 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12185 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12186 +$as_echo_n "checking for $ac_word... " >&6; }
12187  if test "${ac_cv_prog_CC+set}" = set; then
12188 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12189 +  $as_echo_n "(cached) " >&6
12190  else
12191    if test -n "$CC"; then
12192    ac_cv_prog_CC="$CC" # Let the user override the test.
12193 @@ -2152,76 +2781,36 @@ do
12194    IFS=$as_save_IFS
12195    test -z "$as_dir" && as_dir=.
12196    for ac_exec_ext in '' $ac_executable_extensions; do
12197 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199      ac_cv_prog_CC="${ac_tool_prefix}cc"
12200 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12202      break 2
12203    fi
12204  done
12205  done
12206 +IFS=$as_save_IFS
12207  
12208  fi
12209  fi
12210  CC=$ac_cv_prog_CC
12211  if test -n "$CC"; then
12212 -  echo "$as_me:$LINENO: result: $CC" >&5
12213 -echo "${ECHO_T}$CC" >&6
12214 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12215 +$as_echo "$CC" >&6; }
12216  else
12217 -  echo "$as_me:$LINENO: result: no" >&5
12218 -echo "${ECHO_T}no" >&6
12219 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12220 +$as_echo "no" >&6; }
12221  fi
12222  
12223 -fi
12224 -if test -z "$ac_cv_prog_CC"; then
12225 -  ac_ct_CC=$CC
12226 -  # Extract the first word of "cc", so it can be a program name with args.
12227 -set dummy cc; ac_word=$2
12228 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12231 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12232 -else
12233 -  if test -n "$ac_ct_CC"; then
12234 -  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12235 -else
12236 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 -for as_dir in $PATH
12238 -do
12239 -  IFS=$as_save_IFS
12240 -  test -z "$as_dir" && as_dir=.
12241 -  for ac_exec_ext in '' $ac_executable_extensions; do
12242 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 -    ac_cv_prog_ac_ct_CC="cc"
12244 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 -    break 2
12246 -  fi
12247 -done
12248 -done
12249 -
12250 -fi
12251 -fi
12252 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
12253 -if test -n "$ac_ct_CC"; then
12254 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12255 -echo "${ECHO_T}$ac_ct_CC" >&6
12256 -else
12257 -  echo "$as_me:$LINENO: result: no" >&5
12258 -echo "${ECHO_T}no" >&6
12259 -fi
12260 -
12261 -  CC=$ac_ct_CC
12262 -else
12263 -  CC="$ac_cv_prog_CC"
12264 -fi
12265  
12266 +  fi
12267  fi
12268  if test -z "$CC"; then
12269    # Extract the first word of "cc", so it can be a program name with args.
12270  set dummy cc; ac_word=$2
12271 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12272 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12273 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12274 +$as_echo_n "checking for $ac_word... " >&6; }
12275  if test "${ac_cv_prog_CC+set}" = set; then
12276 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12277 +  $as_echo_n "(cached) " >&6
12278  else
12279    if test -n "$CC"; then
12280    ac_cv_prog_CC="$CC" # Let the user override the test.
12281 @@ -2233,17 +2822,18 @@ do
12282    IFS=$as_save_IFS
12283    test -z "$as_dir" && as_dir=.
12284    for ac_exec_ext in '' $ac_executable_extensions; do
12285 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12286 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12288         ac_prog_rejected=yes
12289         continue
12290       fi
12291      ac_cv_prog_CC="cc"
12292 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12294      break 2
12295    fi
12296  done
12297  done
12298 +IFS=$as_save_IFS
12299  
12300  if test $ac_prog_rejected = yes; then
12301    # We found a bogon in the path, so make sure we never use it.
12302 @@ -2261,24 +2851,25 @@ fi
12303  fi
12304  CC=$ac_cv_prog_CC
12305  if test -n "$CC"; then
12306 -  echo "$as_me:$LINENO: result: $CC" >&5
12307 -echo "${ECHO_T}$CC" >&6
12308 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12309 +$as_echo "$CC" >&6; }
12310  else
12311 -  echo "$as_me:$LINENO: result: no" >&5
12312 -echo "${ECHO_T}no" >&6
12313 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12314 +$as_echo "no" >&6; }
12315  fi
12316  
12317 +
12318  fi
12319  if test -z "$CC"; then
12320    if test -n "$ac_tool_prefix"; then
12321 -  for ac_prog in cl
12322 +  for ac_prog in cl.exe
12323    do
12324      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12325  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12326 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12327 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12328 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12329 +$as_echo_n "checking for $ac_word... " >&6; }
12330  if test "${ac_cv_prog_CC+set}" = set; then
12331 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12332 +  $as_echo_n "(cached) " >&6
12333  else
12334    if test -n "$CC"; then
12335    ac_cv_prog_CC="$CC" # Let the user override the test.
12336 @@ -2289,38 +2880,40 @@ do
12337    IFS=$as_save_IFS
12338    test -z "$as_dir" && as_dir=.
12339    for ac_exec_ext in '' $ac_executable_extensions; do
12340 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12342      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12343 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12345      break 2
12346    fi
12347  done
12348  done
12349 +IFS=$as_save_IFS
12350  
12351  fi
12352  fi
12353  CC=$ac_cv_prog_CC
12354  if test -n "$CC"; then
12355 -  echo "$as_me:$LINENO: result: $CC" >&5
12356 -echo "${ECHO_T}$CC" >&6
12357 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12358 +$as_echo "$CC" >&6; }
12359  else
12360 -  echo "$as_me:$LINENO: result: no" >&5
12361 -echo "${ECHO_T}no" >&6
12362 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12363 +$as_echo "no" >&6; }
12364  fi
12365  
12366 +
12367      test -n "$CC" && break
12368    done
12369  fi
12370  if test -z "$CC"; then
12371    ac_ct_CC=$CC
12372 -  for ac_prog in cl
12373 +  for ac_prog in cl.exe
12374  do
12375    # Extract the first word of "$ac_prog", so it can be a program name with args.
12376  set dummy $ac_prog; ac_word=$2
12377 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12378 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12379 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12380 +$as_echo_n "checking for $ac_word... " >&6; }
12381  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12382 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12383 +  $as_echo_n "(cached) " >&6
12384  else
12385    if test -n "$ac_ct_CC"; then
12386    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12387 @@ -2331,58 +2924,90 @@ do
12388    IFS=$as_save_IFS
12389    test -z "$as_dir" && as_dir=.
12390    for ac_exec_ext in '' $ac_executable_extensions; do
12391 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12393      ac_cv_prog_ac_ct_CC="$ac_prog"
12394 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12395 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12396      break 2
12397    fi
12398  done
12399  done
12400 +IFS=$as_save_IFS
12401  
12402  fi
12403  fi
12404  ac_ct_CC=$ac_cv_prog_ac_ct_CC
12405  if test -n "$ac_ct_CC"; then
12406 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12407 -echo "${ECHO_T}$ac_ct_CC" >&6
12408 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12409 +$as_echo "$ac_ct_CC" >&6; }
12410  else
12411 -  echo "$as_me:$LINENO: result: no" >&5
12412 -echo "${ECHO_T}no" >&6
12413 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12414 +$as_echo "no" >&6; }
12415  fi
12416  
12417 +
12418    test -n "$ac_ct_CC" && break
12419  done
12420  
12421 -  CC=$ac_ct_CC
12422 +  if test "x$ac_ct_CC" = x; then
12423 +    CC=""
12424 +  else
12425 +    case $cross_compiling:$ac_tool_warned in
12426 +yes:)
12427 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12428 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12429 +ac_tool_warned=yes ;;
12430 +esac
12431 +    CC=$ac_ct_CC
12432 +  fi
12433  fi
12434  
12435  fi
12436  
12437  
12438 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12439 +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12440 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12441 +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12442  See \`config.log' for more details." >&5
12443 -echo "$as_me: error: no acceptable C compiler found in \$PATH
12444 +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
12445  See \`config.log' for more details." >&2;}
12446 -   { (exit 1); exit 1; }; }
12447 +   { (exit 1); exit 1; }; }; }
12448  
12449  # Provide some information about the compiler.
12450 -echo "$as_me:$LINENO:" \
12451 -     "checking for C compiler version" >&5
12452 -ac_compiler=`set X $ac_compile; echo $2`
12453 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12454 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
12455 +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
12456 +set X $ac_compile
12457 +ac_compiler=$2
12458 +{ (ac_try="$ac_compiler --version >&5"
12459 +case "(($ac_try" in
12460 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 +  *) ac_try_echo=$ac_try;;
12462 +esac
12463 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12464 +$as_echo "$ac_try_echo") >&5
12465 +  (eval "$ac_compiler --version >&5") 2>&5
12466    ac_status=$?
12467 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469    (exit $ac_status); }
12470 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12471 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
12472 +{ (ac_try="$ac_compiler -v >&5"
12473 +case "(($ac_try" in
12474 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 +  *) ac_try_echo=$ac_try;;
12476 +esac
12477 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12478 +$as_echo "$ac_try_echo") >&5
12479 +  (eval "$ac_compiler -v >&5") 2>&5
12480    ac_status=$?
12481 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483    (exit $ac_status); }
12484 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12485 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
12486 +{ (ac_try="$ac_compiler -V >&5"
12487 +case "(($ac_try" in
12488 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 +  *) ac_try_echo=$ac_try;;
12490 +esac
12491 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12492 +$as_echo "$ac_try_echo") >&5
12493 +  (eval "$ac_compiler -V >&5") 2>&5
12494    ac_status=$?
12495 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497    (exit $ac_status); }
12498  
12499  cat >conftest.$ac_ext <<_ACEOF
12500 @@ -2401,111 +3026,150 @@ main ()
12501  }
12502  _ACEOF
12503  ac_clean_files_save=$ac_clean_files
12504 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
12505 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
12506  # Try to create an executable without -o first, disregard a.out.
12507  # It will help us diagnose broken compilers, and finding out an intuition
12508  # of exeext.
12509 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12510 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12511 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12512 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12513 -  (eval $ac_link_default) 2>&5
12514 +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12515 +$as_echo_n "checking for C compiler default output file name... " >&6; }
12516 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12517 +
12518 +# The possible output files:
12519 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
12520 +
12521 +ac_rmfiles=
12522 +for ac_file in $ac_files
12523 +do
12524 +  case $ac_file in
12525 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
12526 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
12527 +  esac
12528 +done
12529 +rm -f $ac_rmfiles
12530 +
12531 +if { (ac_try="$ac_link_default"
12532 +case "(($ac_try" in
12533 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 +  *) ac_try_echo=$ac_try;;
12535 +esac
12536 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12537 +$as_echo "$ac_try_echo") >&5
12538 +  (eval "$ac_link_default") 2>&5
12539    ac_status=$?
12540 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542    (exit $ac_status); }; then
12543 -  # Find the output, starting from the most likely.  This scheme is
12544 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12545 -# resort.
12546 -
12547 -# Be careful to initialize this variable, since it used to be cached.
12548 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12549 -ac_cv_exeext=
12550 -# b.out is created by i960 compilers.
12551 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12552 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
12553 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
12554 +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
12555 +# so that the user can short-circuit this test for compilers unknown to
12556 +# Autoconf.
12557 +for ac_file in $ac_files ''
12558  do
12559    test -f "$ac_file" || continue
12560    case $ac_file in
12561 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12562 -       ;;
12563 -    conftest.$ac_ext )
12564 -       # This is the source file.
12565 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
12566         ;;
12567      [ab].out )
12568         # We found the default executable, but exeext='' is most
12569         # certainly right.
12570         break;;
12571      *.* )
12572 -       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12573 -       # FIXME: I believe we export ac_cv_exeext for Libtool,
12574 -       # but it would be cool to find out if it's true.  Does anybody
12575 -       # maintain Libtool? --akim.
12576 -       export ac_cv_exeext
12577 +        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
12578 +       then :; else
12579 +          ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12580 +       fi
12581 +       # We set ac_cv_exeext here because the later test for it is not
12582 +       # safe: cross compilers may not add the suffix if given an `-o'
12583 +       # argument, so we may need to know it at that point already.
12584 +       # Even if this section looks crufty: it has the advantage of
12585 +       # actually working.
12586         break;;
12587      * )
12588         break;;
12589    esac
12590  done
12591 +test "$ac_cv_exeext" = no && ac_cv_exeext=
12592 +
12593  else
12594 -  echo "$as_me: failed program was:" >&5
12595 +  ac_file=''
12596 +fi
12597 +
12598 +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
12599 +$as_echo "$ac_file" >&6; }
12600 +if test -z "$ac_file"; then
12601 +  $as_echo "$as_me: failed program was:" >&5
12602  sed 's/^/| /' conftest.$ac_ext >&5
12603  
12604 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12605 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12606 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12607 +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
12608  See \`config.log' for more details." >&5
12609 -echo "$as_me: error: C compiler cannot create executables
12610 +$as_echo "$as_me: error: C compiler cannot create executables
12611  See \`config.log' for more details." >&2;}
12612 -   { (exit 77); exit 77; }; }
12613 +   { (exit 77); exit 77; }; }; }
12614  fi
12615  
12616  ac_exeext=$ac_cv_exeext
12617 -echo "$as_me:$LINENO: result: $ac_file" >&5
12618 -echo "${ECHO_T}$ac_file" >&6
12619  
12620 -# Check the compiler produces executables we can run.  If not, either
12621 +# Check that the compiler produces executables we can run.  If not, either
12622  # the compiler is broken, or we cross compile.
12623 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12624 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12625 +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12626 +$as_echo_n "checking whether the C compiler works... " >&6; }
12627  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12628  # If not cross compiling, check that we can run a simple program.
12629  if test "$cross_compiling" != yes; then
12630    if { ac_try='./$ac_file'
12631 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 -  (eval $ac_try) 2>&5
12633 +  { (case "(($ac_try" in
12634 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 +  *) ac_try_echo=$ac_try;;
12636 +esac
12637 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12638 +$as_echo "$ac_try_echo") >&5
12639 +  (eval "$ac_try") 2>&5
12640    ac_status=$?
12641 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643    (exit $ac_status); }; }; then
12644      cross_compiling=no
12645    else
12646      if test "$cross_compiling" = maybe; then
12647         cross_compiling=yes
12648      else
12649 -       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12650 +       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12651 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12652 +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
12653  If you meant to cross compile, use \`--host'.
12654  See \`config.log' for more details." >&5
12655 -echo "$as_me: error: cannot run C compiled programs.
12656 +$as_echo "$as_me: error: cannot run C compiled programs.
12657  If you meant to cross compile, use \`--host'.
12658  See \`config.log' for more details." >&2;}
12659 -   { (exit 1); exit 1; }; }
12660 +   { (exit 1); exit 1; }; }; }
12661      fi
12662    fi
12663  fi
12664 -echo "$as_me:$LINENO: result: yes" >&5
12665 -echo "${ECHO_T}yes" >&6
12666 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
12667 +$as_echo "yes" >&6; }
12668  
12669 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
12670 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
12671  ac_clean_files=$ac_clean_files_save
12672 -# Check the compiler produces executables we can run.  If not, either
12673 +# Check that the compiler produces executables we can run.  If not, either
12674  # the compiler is broken, or we cross compile.
12675 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12676 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12677 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
12678 -echo "${ECHO_T}$cross_compiling" >&6
12679 -
12680 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
12681 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12682 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12683 -  (eval $ac_link) 2>&5
12684 +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12685 +$as_echo_n "checking whether we are cross compiling... " >&6; }
12686 +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
12687 +$as_echo "$cross_compiling" >&6; }
12688 +
12689 +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
12690 +$as_echo_n "checking for suffix of executables... " >&6; }
12691 +if { (ac_try="$ac_link"
12692 +case "(($ac_try" in
12693 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 +  *) ac_try_echo=$ac_try;;
12695 +esac
12696 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12697 +$as_echo "$ac_try_echo") >&5
12698 +  (eval "$ac_link") 2>&5
12699    ac_status=$?
12700 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702    (exit $ac_status); }; then
12703    # If both `conftest.exe' and `conftest' are `present' (well, observable)
12704  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12705 @@ -2514,32 +3178,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706  for ac_file in conftest.exe conftest conftest.*; do
12707    test -f "$ac_file" || continue
12708    case $ac_file in
12709 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12710 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
12711      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12712 -         export ac_cv_exeext
12713           break;;
12714      * ) break;;
12715    esac
12716  done
12717  else
12718 -  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12719 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12720 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12721 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12722  See \`config.log' for more details." >&5
12723 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12724 +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12725  See \`config.log' for more details." >&2;}
12726 -   { (exit 1); exit 1; }; }
12727 +   { (exit 1); exit 1; }; }; }
12728  fi
12729  
12730  rm -f conftest$ac_cv_exeext
12731 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12732 -echo "${ECHO_T}$ac_cv_exeext" >&6
12733 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12734 +$as_echo "$ac_cv_exeext" >&6; }
12735  
12736  rm -f conftest.$ac_ext
12737  EXEEXT=$ac_cv_exeext
12738  ac_exeext=$EXEEXT
12739 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
12740 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12741 +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
12742 +$as_echo_n "checking for suffix of object files... " >&6; }
12743  if test "${ac_cv_objext+set}" = set; then
12744 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12745 +  $as_echo_n "(cached) " >&6
12746  else
12747    cat >conftest.$ac_ext <<_ACEOF
12748  /* confdefs.h.  */
12749 @@ -2557,39 +3222,48 @@ main ()
12750  }
12751  _ACEOF
12752  rm -f conftest.o conftest.obj
12753 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12754 -  (eval $ac_compile) 2>&5
12755 +if { (ac_try="$ac_compile"
12756 +case "(($ac_try" in
12757 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 +  *) ac_try_echo=$ac_try;;
12759 +esac
12760 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12761 +$as_echo "$ac_try_echo") >&5
12762 +  (eval "$ac_compile") 2>&5
12763    ac_status=$?
12764 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766    (exit $ac_status); }; then
12767 -  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12768 +  for ac_file in conftest.o conftest.obj conftest.*; do
12769 +  test -f "$ac_file" || continue;
12770    case $ac_file in
12771 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12772 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
12773      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12774         break;;
12775    esac
12776  done
12777  else
12778 -  echo "$as_me: failed program was:" >&5
12779 +  $as_echo "$as_me: failed program was:" >&5
12780  sed 's/^/| /' conftest.$ac_ext >&5
12781  
12782 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12783 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12784 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12785 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12786  See \`config.log' for more details." >&5
12787 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
12788 +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
12789  See \`config.log' for more details." >&2;}
12790 -   { (exit 1); exit 1; }; }
12791 +   { (exit 1); exit 1; }; }; }
12792  fi
12793  
12794  rm -f conftest.$ac_cv_objext conftest.$ac_ext
12795  fi
12796 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12797 -echo "${ECHO_T}$ac_cv_objext" >&6
12798 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12799 +$as_echo "$ac_cv_objext" >&6; }
12800  OBJEXT=$ac_cv_objext
12801  ac_objext=$OBJEXT
12802 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12803 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12804 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12805 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12806  if test "${ac_cv_c_compiler_gnu+set}" = set; then
12807 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12808 +  $as_echo_n "(cached) " >&6
12809  else
12810    cat >conftest.$ac_ext <<_ACEOF
12811  /* confdefs.h.  */
12812 @@ -2610,50 +3284,54 @@ main ()
12813  }
12814  _ACEOF
12815  rm -f conftest.$ac_objext
12816 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817 -  (eval $ac_compile) 2>conftest.er1
12818 +if { (ac_try="$ac_compile"
12819 +case "(($ac_try" in
12820 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 +  *) ac_try_echo=$ac_try;;
12822 +esac
12823 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12824 +$as_echo "$ac_try_echo") >&5
12825 +  (eval "$ac_compile") 2>conftest.er1
12826    ac_status=$?
12827    grep -v '^ *+' conftest.er1 >conftest.err
12828    rm -f conftest.er1
12829    cat conftest.err >&5
12830 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 -  (exit $ac_status); } &&
12832 -        { ac_try='test -z "$ac_c_werror_flag"
12833 -                        || test ! -s conftest.err'
12834 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 -  (eval $ac_try) 2>&5
12836 -  ac_status=$?
12837 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 -  (exit $ac_status); }; } &&
12839 -        { ac_try='test -s conftest.$ac_objext'
12840 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 -  (eval $ac_try) 2>&5
12842 -  ac_status=$?
12843 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 -  (exit $ac_status); }; }; then
12845 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 +  (exit $ac_status); } && {
12847 +        test -z "$ac_c_werror_flag" ||
12848 +        test ! -s conftest.err
12849 +       } && test -s conftest.$ac_objext; then
12850    ac_compiler_gnu=yes
12851  else
12852 -  echo "$as_me: failed program was:" >&5
12853 +  $as_echo "$as_me: failed program was:" >&5
12854  sed 's/^/| /' conftest.$ac_ext >&5
12855  
12856 -ac_compiler_gnu=no
12857 +       ac_compiler_gnu=no
12858  fi
12859 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12860 +
12861 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862  ac_cv_c_compiler_gnu=$ac_compiler_gnu
12863  
12864  fi
12865 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12866 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12867 -GCC=`test $ac_compiler_gnu = yes && echo yes`
12868 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12869 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12870 +if test $ac_compiler_gnu = yes; then
12871 +  GCC=yes
12872 +else
12873 +  GCC=
12874 +fi
12875  ac_test_CFLAGS=${CFLAGS+set}
12876  ac_save_CFLAGS=$CFLAGS
12877 -CFLAGS="-g"
12878 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12879 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12880 +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12881 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
12882  if test "${ac_cv_prog_cc_g+set}" = set; then
12883 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12884 +  $as_echo_n "(cached) " >&6
12885  else
12886 -  cat >conftest.$ac_ext <<_ACEOF
12887 +  ac_save_c_werror_flag=$ac_c_werror_flag
12888 +   ac_c_werror_flag=yes
12889 +   ac_cv_prog_cc_g=no
12890 +   CFLAGS="-g"
12891 +   cat >conftest.$ac_ext <<_ACEOF
12892  /* confdefs.h.  */
12893  _ACEOF
12894  cat confdefs.h >>conftest.$ac_ext
12895 @@ -2669,38 +3347,121 @@ main ()
12896  }
12897  _ACEOF
12898  rm -f conftest.$ac_objext
12899 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 -  (eval $ac_compile) 2>conftest.er1
12901 +if { (ac_try="$ac_compile"
12902 +case "(($ac_try" in
12903 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 +  *) ac_try_echo=$ac_try;;
12905 +esac
12906 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12907 +$as_echo "$ac_try_echo") >&5
12908 +  (eval "$ac_compile") 2>conftest.er1
12909    ac_status=$?
12910    grep -v '^ *+' conftest.er1 >conftest.err
12911    rm -f conftest.er1
12912    cat conftest.err >&5
12913 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 -  (exit $ac_status); } &&
12915 -        { ac_try='test -z "$ac_c_werror_flag"
12916 -                        || test ! -s conftest.err'
12917 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 -  (eval $ac_try) 2>&5
12919 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 +  (exit $ac_status); } && {
12921 +        test -z "$ac_c_werror_flag" ||
12922 +        test ! -s conftest.err
12923 +       } && test -s conftest.$ac_objext; then
12924 +  ac_cv_prog_cc_g=yes
12925 +else
12926 +  $as_echo "$as_me: failed program was:" >&5
12927 +sed 's/^/| /' conftest.$ac_ext >&5
12928 +
12929 +       CFLAGS=""
12930 +      cat >conftest.$ac_ext <<_ACEOF
12931 +/* confdefs.h.  */
12932 +_ACEOF
12933 +cat confdefs.h >>conftest.$ac_ext
12934 +cat >>conftest.$ac_ext <<_ACEOF
12935 +/* end confdefs.h.  */
12936 +
12937 +int
12938 +main ()
12939 +{
12940 +
12941 +  ;
12942 +  return 0;
12943 +}
12944 +_ACEOF
12945 +rm -f conftest.$ac_objext
12946 +if { (ac_try="$ac_compile"
12947 +case "(($ac_try" in
12948 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 +  *) ac_try_echo=$ac_try;;
12950 +esac
12951 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12952 +$as_echo "$ac_try_echo") >&5
12953 +  (eval "$ac_compile") 2>conftest.er1
12954    ac_status=$?
12955 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 -  (exit $ac_status); }; } &&
12957 -        { ac_try='test -s conftest.$ac_objext'
12958 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 -  (eval $ac_try) 2>&5
12960 +  grep -v '^ *+' conftest.er1 >conftest.err
12961 +  rm -f conftest.er1
12962 +  cat conftest.err >&5
12963 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 +  (exit $ac_status); } && {
12965 +        test -z "$ac_c_werror_flag" ||
12966 +        test ! -s conftest.err
12967 +       } && test -s conftest.$ac_objext; then
12968 +  :
12969 +else
12970 +  $as_echo "$as_me: failed program was:" >&5
12971 +sed 's/^/| /' conftest.$ac_ext >&5
12972 +
12973 +       ac_c_werror_flag=$ac_save_c_werror_flag
12974 +        CFLAGS="-g"
12975 +        cat >conftest.$ac_ext <<_ACEOF
12976 +/* confdefs.h.  */
12977 +_ACEOF
12978 +cat confdefs.h >>conftest.$ac_ext
12979 +cat >>conftest.$ac_ext <<_ACEOF
12980 +/* end confdefs.h.  */
12981 +
12982 +int
12983 +main ()
12984 +{
12985 +
12986 +  ;
12987 +  return 0;
12988 +}
12989 +_ACEOF
12990 +rm -f conftest.$ac_objext
12991 +if { (ac_try="$ac_compile"
12992 +case "(($ac_try" in
12993 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 +  *) ac_try_echo=$ac_try;;
12995 +esac
12996 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12997 +$as_echo "$ac_try_echo") >&5
12998 +  (eval "$ac_compile") 2>conftest.er1
12999    ac_status=$?
13000 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 -  (exit $ac_status); }; }; then
13002 +  grep -v '^ *+' conftest.er1 >conftest.err
13003 +  rm -f conftest.er1
13004 +  cat conftest.err >&5
13005 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 +  (exit $ac_status); } && {
13007 +        test -z "$ac_c_werror_flag" ||
13008 +        test ! -s conftest.err
13009 +       } && test -s conftest.$ac_objext; then
13010    ac_cv_prog_cc_g=yes
13011  else
13012 -  echo "$as_me: failed program was:" >&5
13013 +  $as_echo "$as_me: failed program was:" >&5
13014  sed 's/^/| /' conftest.$ac_ext >&5
13015  
13016 -ac_cv_prog_cc_g=no
13017 +
13018 +fi
13019 +
13020 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021 +fi
13022 +
13023 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024  fi
13025 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13026 +
13027 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028 +   ac_c_werror_flag=$ac_save_c_werror_flag
13029  fi
13030 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13031 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13032 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13033 +$as_echo "$ac_cv_prog_cc_g" >&6; }
13034  if test "$ac_test_CFLAGS" = set; then
13035    CFLAGS=$ac_save_CFLAGS
13036  elif test $ac_cv_prog_cc_g = yes; then
13037 @@ -2716,12 +3477,12 @@ else
13038      CFLAGS=
13039    fi
13040  fi
13041 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
13042 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13043 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
13044 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13045 +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13046 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13047 +if test "${ac_cv_prog_cc_c89+set}" = set; then
13048 +  $as_echo_n "(cached) " >&6
13049  else
13050 -  ac_cv_prog_cc_stdc=no
13051 +  ac_cv_prog_cc_c89=no
13052  ac_save_CC=$CC
13053  cat >conftest.$ac_ext <<_ACEOF
13054  /* confdefs.h.  */
13055 @@ -2755,12 +3516,17 @@ static char *f (char * (*g) (char **, int), char **p, ...)
13056  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13057     function prototypes and stuff, but not '\xHH' hex character constants.
13058     These don't provoke an error unfortunately, instead are silently treated
13059 -   as 'x'.  The following induces an error, until -std1 is added to get
13060 +   as 'x'.  The following induces an error, until -std is added to get
13061     proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13062     array size at least.  It's necessary to write '\x00'==0 to get something
13063 -   that's true only with -std1.  */
13064 +   that's true only with -std.  */
13065  int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13066  
13067 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13068 +   inside strings and character constants.  */
13069 +#define FOO(x) 'x'
13070 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13071 +
13072  int test (int i, double x);
13073  struct s1 {int (*f) (int a);};
13074  struct s2 {int (*f) (double a);};
13075 @@ -2775,205 +3541,58 @@ return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13076    return 0;
13077  }
13078  _ACEOF
13079 -# Don't try gcc -ansi; that turns off useful extensions and
13080 -# breaks some systems' header files.
13081 -# AIX                  -qlanglvl=ansi
13082 -# Ultrix and OSF/1     -std1
13083 -# HP-UX 10.20 and later        -Ae
13084 -# HP-UX older versions -Aa -D_HPUX_SOURCE
13085 -# SVR4                 -Xc -D__EXTENSIONS__
13086 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13087 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13088 +       -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13089  do
13090    CC="$ac_save_CC $ac_arg"
13091    rm -f conftest.$ac_objext
13092 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 -  (eval $ac_compile) 2>conftest.er1
13094 +if { (ac_try="$ac_compile"
13095 +case "(($ac_try" in
13096 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 +  *) ac_try_echo=$ac_try;;
13098 +esac
13099 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13100 +$as_echo "$ac_try_echo") >&5
13101 +  (eval "$ac_compile") 2>conftest.er1
13102    ac_status=$?
13103    grep -v '^ *+' conftest.er1 >conftest.err
13104    rm -f conftest.er1
13105    cat conftest.err >&5
13106 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 -  (exit $ac_status); } &&
13108 -        { ac_try='test -z "$ac_c_werror_flag"
13109 -                        || test ! -s conftest.err'
13110 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 -  (eval $ac_try) 2>&5
13112 -  ac_status=$?
13113 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 -  (exit $ac_status); }; } &&
13115 -        { ac_try='test -s conftest.$ac_objext'
13116 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 -  (eval $ac_try) 2>&5
13118 -  ac_status=$?
13119 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 -  (exit $ac_status); }; }; then
13121 -  ac_cv_prog_cc_stdc=$ac_arg
13122 -break
13123 -else
13124 -  echo "$as_me: failed program was:" >&5
13125 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 +  (exit $ac_status); } && {
13127 +        test -z "$ac_c_werror_flag" ||
13128 +        test ! -s conftest.err
13129 +       } && test -s conftest.$ac_objext; then
13130 +  ac_cv_prog_cc_c89=$ac_arg
13131 +else
13132 +  $as_echo "$as_me: failed program was:" >&5
13133  sed 's/^/| /' conftest.$ac_ext >&5
13134  
13135 +
13136  fi
13137 -rm -f conftest.err conftest.$ac_objext
13138 +
13139 +rm -f core conftest.err conftest.$ac_objext
13140 +  test "x$ac_cv_prog_cc_c89" != "xno" && break
13141  done
13142 -rm -f conftest.$ac_ext conftest.$ac_objext
13143 +rm -f conftest.$ac_ext
13144  CC=$ac_save_CC
13145  
13146  fi
13147 -
13148 -case "x$ac_cv_prog_cc_stdc" in
13149 -  x|xno)
13150 -    echo "$as_me:$LINENO: result: none needed" >&5
13151 -echo "${ECHO_T}none needed" >&6 ;;
13152 +# AC_CACHE_VAL
13153 +case "x$ac_cv_prog_cc_c89" in
13154 +  x)
13155 +    { $as_echo "$as_me:$LINENO: result: none needed" >&5
13156 +$as_echo "none needed" >&6; } ;;
13157 +  xno)
13158 +    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
13159 +$as_echo "unsupported" >&6; } ;;
13160    *)
13161 -    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13162 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13163 -    CC="$CC $ac_cv_prog_cc_stdc" ;;
13164 +    CC="$CC $ac_cv_prog_cc_c89"
13165 +    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13166 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13167  esac
13168  
13169 -# Some people use a C++ compiler to compile C.  Since we use `exit',
13170 -# in C++ we need to declare it.  In case someone uses the same compiler
13171 -# for both compiling C and C++ we need to have the C++ compiler decide
13172 -# the declaration of exit, since it's the most demanding environment.
13173 -cat >conftest.$ac_ext <<_ACEOF
13174 -#ifndef __cplusplus
13175 -  choke me
13176 -#endif
13177 -_ACEOF
13178 -rm -f conftest.$ac_objext
13179 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 -  (eval $ac_compile) 2>conftest.er1
13181 -  ac_status=$?
13182 -  grep -v '^ *+' conftest.er1 >conftest.err
13183 -  rm -f conftest.er1
13184 -  cat conftest.err >&5
13185 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 -  (exit $ac_status); } &&
13187 -        { ac_try='test -z "$ac_c_werror_flag"
13188 -                        || test ! -s conftest.err'
13189 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 -  (eval $ac_try) 2>&5
13191 -  ac_status=$?
13192 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 -  (exit $ac_status); }; } &&
13194 -        { ac_try='test -s conftest.$ac_objext'
13195 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 -  (eval $ac_try) 2>&5
13197 -  ac_status=$?
13198 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 -  (exit $ac_status); }; }; then
13200 -  for ac_declaration in \
13201 -   '' \
13202 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
13203 -   'extern "C" void std::exit (int); using std::exit;' \
13204 -   'extern "C" void exit (int) throw ();' \
13205 -   'extern "C" void exit (int);' \
13206 -   'void exit (int);'
13207 -do
13208 -  cat >conftest.$ac_ext <<_ACEOF
13209 -/* confdefs.h.  */
13210 -_ACEOF
13211 -cat confdefs.h >>conftest.$ac_ext
13212 -cat >>conftest.$ac_ext <<_ACEOF
13213 -/* end confdefs.h.  */
13214 -$ac_declaration
13215 -#include <stdlib.h>
13216 -int
13217 -main ()
13218 -{
13219 -exit (42);
13220 -  ;
13221 -  return 0;
13222 -}
13223 -_ACEOF
13224 -rm -f conftest.$ac_objext
13225 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13226 -  (eval $ac_compile) 2>conftest.er1
13227 -  ac_status=$?
13228 -  grep -v '^ *+' conftest.er1 >conftest.err
13229 -  rm -f conftest.er1
13230 -  cat conftest.err >&5
13231 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 -  (exit $ac_status); } &&
13233 -        { ac_try='test -z "$ac_c_werror_flag"
13234 -                        || test ! -s conftest.err'
13235 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 -  (eval $ac_try) 2>&5
13237 -  ac_status=$?
13238 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 -  (exit $ac_status); }; } &&
13240 -        { ac_try='test -s conftest.$ac_objext'
13241 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 -  (eval $ac_try) 2>&5
13243 -  ac_status=$?
13244 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 -  (exit $ac_status); }; }; then
13246 -  :
13247 -else
13248 -  echo "$as_me: failed program was:" >&5
13249 -sed 's/^/| /' conftest.$ac_ext >&5
13250 -
13251 -continue
13252 -fi
13253 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13254 -  cat >conftest.$ac_ext <<_ACEOF
13255 -/* confdefs.h.  */
13256 -_ACEOF
13257 -cat confdefs.h >>conftest.$ac_ext
13258 -cat >>conftest.$ac_ext <<_ACEOF
13259 -/* end confdefs.h.  */
13260 -$ac_declaration
13261 -int
13262 -main ()
13263 -{
13264 -exit (42);
13265 -  ;
13266 -  return 0;
13267 -}
13268 -_ACEOF
13269 -rm -f conftest.$ac_objext
13270 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13271 -  (eval $ac_compile) 2>conftest.er1
13272 -  ac_status=$?
13273 -  grep -v '^ *+' conftest.er1 >conftest.err
13274 -  rm -f conftest.er1
13275 -  cat conftest.err >&5
13276 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 -  (exit $ac_status); } &&
13278 -        { ac_try='test -z "$ac_c_werror_flag"
13279 -                        || test ! -s conftest.err'
13280 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 -  (eval $ac_try) 2>&5
13282 -  ac_status=$?
13283 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 -  (exit $ac_status); }; } &&
13285 -        { ac_try='test -s conftest.$ac_objext'
13286 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 -  (eval $ac_try) 2>&5
13288 -  ac_status=$?
13289 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 -  (exit $ac_status); }; }; then
13291 -  break
13292 -else
13293 -  echo "$as_me: failed program was:" >&5
13294 -sed 's/^/| /' conftest.$ac_ext >&5
13295 -
13296 -fi
13297 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13298 -done
13299 -rm -f conftest*
13300 -if test -n "$ac_declaration"; then
13301 -  echo '#ifdef __cplusplus' >>confdefs.h
13302 -  echo $ac_declaration      >>confdefs.h
13303 -  echo '#endif'             >>confdefs.h
13304 -fi
13305  
13306 -else
13307 -  echo "$as_me: failed program was:" >&5
13308 -sed 's/^/| /' conftest.$ac_ext >&5
13309 -
13310 -fi
13311 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13312  ac_ext=c
13313  ac_cpp='$CPP $CPPFLAGS'
13314  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 @@ -2981,7 +3600,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
13316  ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317  DEPDIR="${am__leading_dot}deps"
13318  
13319 -          ac_config_commands="$ac_config_commands depfiles"
13320 +ac_config_commands="$ac_config_commands depfiles"
13321  
13322  
13323  am_make=${MAKE-make}
13324 @@ -2991,8 +3610,8 @@ am__doit:
13325  .PHONY: am__doit
13326  END
13327  # If we don't find an include directive, just comment out the code.
13328 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
13329 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
13330 +{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
13331 +$as_echo_n "checking for style of include used by $am_make... " >&6; }
13332  am__include="#"
13333  am__quote=
13334  _am_result=none
13335 @@ -3019,15 +3638,15 @@ if test "$am__include" = "#"; then
13336  fi
13337  
13338  
13339 -echo "$as_me:$LINENO: result: $_am_result" >&5
13340 -echo "${ECHO_T}$_am_result" >&6
13341 +{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
13342 +$as_echo "$_am_result" >&6; }
13343  rm -f confinc confmf
13344  
13345 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
13346 +# Check whether --enable-dependency-tracking was given.
13347  if test "${enable_dependency_tracking+set}" = set; then
13348 -  enableval="$enable_dependency_tracking"
13349 +  enableval=$enable_dependency_tracking;
13350 +fi
13351  
13352 -fi;
13353  if test "x$enable_dependency_tracking" != xno; then
13354    am_depcomp="$ac_aux_dir/depcomp"
13355    AMDEPBACKSLASH='\'
13356 @@ -3047,10 +3666,10 @@ fi
13357  
13358  depcc="$CC"   am_compiler_list=
13359  
13360 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13361 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13362 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13363 +$as_echo_n "checking dependency style of $depcc... " >&6; }
13364  if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13365 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13366 +  $as_echo_n "(cached) " >&6
13367  else
13368    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13369    # We make a subdir and do the tests there.  Otherwise we can end up
13370 @@ -3137,8 +3756,8 @@ else
13371  fi
13372  
13373  fi
13374 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13375 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
13376 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13377 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13378  CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13379  
13380  
13381 @@ -3155,10 +3774,9 @@ fi
13382  
13383  
13384  
13385 -# Check whether --enable-static or --disable-static was given.
13386 +# Check whether --enable-static was given.
13387  if test "${enable_static+set}" = set; then
13388 -  enableval="$enable_static"
13389 -  p=${PACKAGE-default}
13390 +  enableval=$enable_static; p=${PACKAGE-default}
13391      case $enableval in
13392      yes) enable_static=yes ;;
13393      no) enable_static=no ;;
13394 @@ -3177,13 +3795,13 @@ if test "${enable_static+set}" = set; then
13395      esac
13396  else
13397    enable_static=no
13398 -fi;
13399 +fi
13400  
13401  
13402 -# Check whether --enable-shared or --disable-shared was given.
13403 +
13404 +# Check whether --enable-shared was given.
13405  if test "${enable_shared+set}" = set; then
13406 -  enableval="$enable_shared"
13407 -  p=${PACKAGE-default}
13408 +  enableval=$enable_shared; p=${PACKAGE-default}
13409      case $enableval in
13410      yes) enable_shared=yes ;;
13411      no) enable_shared=no ;;
13412 @@ -3202,12 +3820,12 @@ if test "${enable_shared+set}" = set; then
13413      esac
13414  else
13415    enable_shared=yes
13416 -fi;
13417 +fi
13418  
13419 -# Check whether --enable-fast-install or --disable-fast-install was given.
13420 +
13421 +# Check whether --enable-fast-install was given.
13422  if test "${enable_fast_install+set}" = set; then
13423 -  enableval="$enable_fast_install"
13424 -  p=${PACKAGE-default}
13425 +  enableval=$enable_fast_install; p=${PACKAGE-default}
13426      case $enableval in
13427      yes) enable_fast_install=yes ;;
13428      no) enable_fast_install=no ;;
13429 @@ -3226,12 +3844,13 @@ if test "${enable_fast_install+set}" = set; then
13430      esac
13431  else
13432    enable_fast_install=yes
13433 -fi;
13434 +fi
13435  
13436 -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13437 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13438 +
13439 +{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13440 +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13441  if test "${lt_cv_path_SED+set}" = set; then
13442 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13443 +  $as_echo_n "(cached) " >&6
13444  else
13445    # Loop through the user's path and test for sed and gsed.
13446  # Then use that list of sed's as ones to test for truncation.
13447 @@ -3242,18 +3861,19 @@ do
13448    test -z "$as_dir" && as_dir=.
13449    for lt_ac_prog in sed gsed; do
13450      for ac_exec_ext in '' $ac_executable_extensions; do
13451 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13452 +      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
13453          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13454        fi
13455      done
13456    done
13457  done
13458 +IFS=$as_save_IFS
13459  lt_ac_max=0
13460  lt_ac_count=0
13461  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
13462  # along with /bin/sed that truncates output.
13463  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13464 -  test ! -f $lt_ac_sed && break
13465 +  test ! -f $lt_ac_sed && continue
13466    cat /dev/null > conftest.in
13467    lt_ac_count=0
13468    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13469 @@ -3278,41 +3898,161 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13470      fi
13471    done
13472  done
13473 +
13474 +fi
13475 +
13476  SED=$lt_cv_path_SED
13477  
13478 +{ $as_echo "$as_me:$LINENO: result: $SED" >&5
13479 +$as_echo "$SED" >&6; }
13480 +
13481 +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
13482 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13483 +if test "${ac_cv_path_GREP+set}" = set; then
13484 +  $as_echo_n "(cached) " >&6
13485 +else
13486 +  if test -z "$GREP"; then
13487 +  ac_path_GREP_found=false
13488 +  # Loop through the user's path and test for each of PROGNAME-LIST
13489 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13491 +do
13492 +  IFS=$as_save_IFS
13493 +  test -z "$as_dir" && as_dir=.
13494 +  for ac_prog in grep ggrep; do
13495 +    for ac_exec_ext in '' $ac_executable_extensions; do
13496 +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13497 +      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
13498 +# Check for GNU ac_path_GREP and select it if it is found.
13499 +  # Check for GNU $ac_path_GREP
13500 +case `"$ac_path_GREP" --version 2>&1` in
13501 +*GNU*)
13502 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13503 +*)
13504 +  ac_count=0
13505 +  $as_echo_n 0123456789 >"conftest.in"
13506 +  while :
13507 +  do
13508 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
13509 +    mv "conftest.tmp" "conftest.in"
13510 +    cp "conftest.in" "conftest.nl"
13511 +    $as_echo 'GREP' >> "conftest.nl"
13512 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13513 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13514 +    ac_count=`expr $ac_count + 1`
13515 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
13516 +      # Best one so far, save it but keep looking for a better one
13517 +      ac_cv_path_GREP="$ac_path_GREP"
13518 +      ac_path_GREP_max=$ac_count
13519 +    fi
13520 +    # 10*(2^10) chars as input seems more than enough
13521 +    test $ac_count -gt 10 && break
13522 +  done
13523 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13524 +esac
13525 +
13526 +      $ac_path_GREP_found && break 3
13527 +    done
13528 +  done
13529 +done
13530 +IFS=$as_save_IFS
13531 +  if test -z "$ac_cv_path_GREP"; then
13532 +    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
13533 +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
13534 +   { (exit 1); exit 1; }; }
13535 +  fi
13536 +else
13537 +  ac_cv_path_GREP=$GREP
13538  fi
13539  
13540 -echo "$as_me:$LINENO: result: $SED" >&5
13541 -echo "${ECHO_T}$SED" >&6
13542 +fi
13543 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
13544 +$as_echo "$ac_cv_path_GREP" >&6; }
13545 + GREP="$ac_cv_path_GREP"
13546  
13547 -echo "$as_me:$LINENO: checking for egrep" >&5
13548 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13549 -if test "${ac_cv_prog_egrep+set}" = set; then
13550 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13551 +
13552 +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
13553 +$as_echo_n "checking for egrep... " >&6; }
13554 +if test "${ac_cv_path_EGREP+set}" = set; then
13555 +  $as_echo_n "(cached) " >&6
13556  else
13557 -  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13558 -    then ac_cv_prog_egrep='grep -E'
13559 -    else ac_cv_prog_egrep='egrep'
13560 +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13561 +   then ac_cv_path_EGREP="$GREP -E"
13562 +   else
13563 +     if test -z "$EGREP"; then
13564 +  ac_path_EGREP_found=false
13565 +  # Loop through the user's path and test for each of PROGNAME-LIST
13566 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13568 +do
13569 +  IFS=$as_save_IFS
13570 +  test -z "$as_dir" && as_dir=.
13571 +  for ac_prog in egrep; do
13572 +    for ac_exec_ext in '' $ac_executable_extensions; do
13573 +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13574 +      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
13575 +# Check for GNU ac_path_EGREP and select it if it is found.
13576 +  # Check for GNU $ac_path_EGREP
13577 +case `"$ac_path_EGREP" --version 2>&1` in
13578 +*GNU*)
13579 +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13580 +*)
13581 +  ac_count=0
13582 +  $as_echo_n 0123456789 >"conftest.in"
13583 +  while :
13584 +  do
13585 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
13586 +    mv "conftest.tmp" "conftest.in"
13587 +    cp "conftest.in" "conftest.nl"
13588 +    $as_echo 'EGREP' >> "conftest.nl"
13589 +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13590 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13591 +    ac_count=`expr $ac_count + 1`
13592 +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13593 +      # Best one so far, save it but keep looking for a better one
13594 +      ac_cv_path_EGREP="$ac_path_EGREP"
13595 +      ac_path_EGREP_max=$ac_count
13596      fi
13597 +    # 10*(2^10) chars as input seems more than enough
13598 +    test $ac_count -gt 10 && break
13599 +  done
13600 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13601 +esac
13602 +
13603 +      $ac_path_EGREP_found && break 3
13604 +    done
13605 +  done
13606 +done
13607 +IFS=$as_save_IFS
13608 +  if test -z "$ac_cv_path_EGREP"; then
13609 +    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
13610 +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
13611 +   { (exit 1); exit 1; }; }
13612 +  fi
13613 +else
13614 +  ac_cv_path_EGREP=$EGREP
13615  fi
13616 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13617 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13618 - EGREP=$ac_cv_prog_egrep
13619 +
13620 +   fi
13621 +fi
13622 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
13623 +$as_echo "$ac_cv_path_EGREP" >&6; }
13624 + EGREP="$ac_cv_path_EGREP"
13625  
13626  
13627  
13628 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
13629 +# Check whether --with-gnu-ld was given.
13630  if test "${with_gnu_ld+set}" = set; then
13631 -  withval="$with_gnu_ld"
13632 -  test "$withval" = no || with_gnu_ld=yes
13633 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13634  else
13635    with_gnu_ld=no
13636 -fi;
13637 +fi
13638 +
13639  ac_prog=ld
13640  if test "$GCC" = yes; then
13641    # Check if gcc -print-prog-name=ld gives a path.
13642 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13643 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13644 +  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13645 +$as_echo_n "checking for ld used by $CC... " >&6; }
13646    case $host in
13647    *-*-mingw*)
13648      # gcc leaves a trailing carriage return which upsets mingw
13649 @@ -3341,14 +4081,14 @@ echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13650      ;;
13651    esac
13652  elif test "$with_gnu_ld" = yes; then
13653 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
13654 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13655 +  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13656 +$as_echo_n "checking for GNU ld... " >&6; }
13657  else
13658 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13659 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13660 +  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13661 +$as_echo_n "checking for non-GNU ld... " >&6; }
13662  fi
13663  if test "${lt_cv_path_LD+set}" = set; then
13664 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13665 +  $as_echo_n "(cached) " >&6
13666  else
13667    if test -z "$LD"; then
13668    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13669 @@ -3358,7 +4098,7 @@ else
13670      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13671        lt_cv_path_LD="$ac_dir/$ac_prog"
13672        # Check to see if the program is GNU ld.  I'd rather use --version,
13673 -      # but apparently some GNU ld's only accept -v.
13674 +      # but apparently some variants of GNU ld only accept -v.
13675        # Break only if it was the GNU/non-GNU ld that we prefer.
13676        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13677        *GNU* | *'with BFD'*)
13678 @@ -3378,21 +4118,21 @@ fi
13679  
13680  LD="$lt_cv_path_LD"
13681  if test -n "$LD"; then
13682 -  echo "$as_me:$LINENO: result: $LD" >&5
13683 -echo "${ECHO_T}$LD" >&6
13684 +  { $as_echo "$as_me:$LINENO: result: $LD" >&5
13685 +$as_echo "$LD" >&6; }
13686  else
13687 -  echo "$as_me:$LINENO: result: no" >&5
13688 -echo "${ECHO_T}no" >&6
13689 +  { $as_echo "$as_me:$LINENO: result: no" >&5
13690 +$as_echo "no" >&6; }
13691  fi
13692 -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13693 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13694 +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13695 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13696     { (exit 1); exit 1; }; }
13697 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13698 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13699 +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13700 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13701  if test "${lt_cv_prog_gnu_ld+set}" = set; then
13702 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13703 +  $as_echo_n "(cached) " >&6
13704  else
13705 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13706 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13707  case `$LD -v 2>&1 </dev/null` in
13708  *GNU* | *'with BFD'*)
13709    lt_cv_prog_gnu_ld=yes
13710 @@ -3402,88 +4142,104 @@ case `$LD -v 2>&1 </dev/null` in
13711    ;;
13712  esac
13713  fi
13714 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13715 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13716 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13717 +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13718  with_gnu_ld=$lt_cv_prog_gnu_ld
13719  
13720  
13721 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13722 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
13723 +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13724 +$as_echo_n "checking for $LD option to reload object files... " >&6; }
13725  if test "${lt_cv_ld_reload_flag+set}" = set; then
13726 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13727 +  $as_echo_n "(cached) " >&6
13728  else
13729    lt_cv_ld_reload_flag='-r'
13730  fi
13731 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13732 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
13733 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13734 +$as_echo "$lt_cv_ld_reload_flag" >&6; }
13735  reload_flag=$lt_cv_ld_reload_flag
13736  case $reload_flag in
13737  "" | " "*) ;;
13738  *) reload_flag=" $reload_flag" ;;
13739  esac
13740  reload_cmds='$LD$reload_flag -o $output$reload_objs'
13741 +case $host_os in
13742 +  darwin*)
13743 +    if test "$GCC" = yes; then
13744 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13745 +    else
13746 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13747 +    fi
13748 +    ;;
13749 +esac
13750  
13751 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13752 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
13753 +{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13754 +$as_echo_n "checking for BSD-compatible nm... " >&6; }
13755  if test "${lt_cv_path_NM+set}" = set; then
13756 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13757 +  $as_echo_n "(cached) " >&6
13758  else
13759    if test -n "$NM"; then
13760    # Let the user override the test.
13761    lt_cv_path_NM="$NM"
13762  else
13763 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13764 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
13765 -    IFS="$lt_save_ifs"
13766 -    test -z "$ac_dir" && ac_dir=.
13767 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
13768 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13769 -      # Check to see if the nm accepts a BSD-compat flag.
13770 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13771 -      #   nm: unknown option "B" ignored
13772 -      # Tru64's nm complains that /dev/null is an invalid object file
13773 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13774 -      */dev/null* | *'Invalid file or object type'*)
13775 -       lt_cv_path_NM="$tmp_nm -B"
13776 -       break
13777 -        ;;
13778 -      *)
13779 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13780 -       */dev/null*)
13781 -         lt_cv_path_NM="$tmp_nm -p"
13782 +  lt_nm_to_check="${ac_tool_prefix}nm"
13783 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13784 +    lt_nm_to_check="$lt_nm_to_check nm"
13785 +  fi
13786 +  for lt_tmp_nm in $lt_nm_to_check; do
13787 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13788 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13789 +      IFS="$lt_save_ifs"
13790 +      test -z "$ac_dir" && ac_dir=.
13791 +      tmp_nm="$ac_dir/$lt_tmp_nm"
13792 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13793 +       # Check to see if the nm accepts a BSD-compat flag.
13794 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13795 +       #   nm: unknown option "B" ignored
13796 +       # Tru64's nm complains that /dev/null is an invalid object file
13797 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13798 +       */dev/null* | *'Invalid file or object type'*)
13799 +         lt_cv_path_NM="$tmp_nm -B"
13800           break
13801           ;;
13802         *)
13803 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13804 -         continue # so that we can try to find one that supports BSD flags
13805 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13806 +         */dev/null*)
13807 +           lt_cv_path_NM="$tmp_nm -p"
13808 +           break
13809 +           ;;
13810 +         *)
13811 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13812 +           continue # so that we can try to find one that supports BSD flags
13813 +           ;;
13814 +         esac
13815           ;;
13816         esac
13817 -      esac
13818 -    fi
13819 +      fi
13820 +    done
13821 +    IFS="$lt_save_ifs"
13822    done
13823 -  IFS="$lt_save_ifs"
13824    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
13825  fi
13826  fi
13827 -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13828 -echo "${ECHO_T}$lt_cv_path_NM" >&6
13829 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13830 +$as_echo "$lt_cv_path_NM" >&6; }
13831  NM="$lt_cv_path_NM"
13832  
13833 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
13834 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13835 +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
13836 +$as_echo_n "checking whether ln -s works... " >&6; }
13837  LN_S=$as_ln_s
13838  if test "$LN_S" = "ln -s"; then
13839 -  echo "$as_me:$LINENO: result: yes" >&5
13840 -echo "${ECHO_T}yes" >&6
13841 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
13842 +$as_echo "yes" >&6; }
13843  else
13844 -  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13845 -echo "${ECHO_T}no, using $LN_S" >&6
13846 +  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13847 +$as_echo "no, using $LN_S" >&6; }
13848  fi
13849  
13850 -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13851 -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
13852 +{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
13853 +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
13854  if test "${lt_cv_deplibs_check_method+set}" = set; then
13855 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13856 +  $as_echo_n "(cached) " >&6
13857  else
13858    lt_cv_file_magic_cmd='$MAGIC_CMD'
13859  lt_cv_file_magic_test_file=
13860 @@ -3500,7 +4256,7 @@ lt_cv_deplibs_check_method='unknown'
13861  # whether `pass_all' will *always* work, you probably want this one.
13862  
13863  case $host_os in
13864 -aix4* | aix5*)
13865 +aix[4-9]*)
13866    lt_cv_deplibs_check_method=pass_all
13867    ;;
13868  
13869 @@ -3508,7 +4264,7 @@ beos*)
13870    lt_cv_deplibs_check_method=pass_all
13871    ;;
13872  
13873 -bsdi4*)
13874 +bsdi[45]*)
13875    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13876    lt_cv_file_magic_cmd='/usr/bin/file -L'
13877    lt_cv_file_magic_test_file=/shlib/libc.so
13878 @@ -3522,22 +4278,28 @@ cygwin*)
13879  
13880  mingw* | pw32*)
13881    # Base MSYS/MinGW do not provide the 'file' command needed by
13882 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13883 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13884 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
13885 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13886 +  # unless we find 'file', for example because we are cross-compiling.
13887 +  if ( file / ) >/dev/null 2>&1; then
13888 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13889 +    lt_cv_file_magic_cmd='func_win32_libid'
13890 +  else
13891 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13892 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
13893 +  fi
13894    ;;
13895  
13896  darwin* | rhapsody*)
13897    lt_cv_deplibs_check_method=pass_all
13898    ;;
13899  
13900 -freebsd* | kfreebsd*-gnu)
13901 +freebsd* | dragonfly*)
13902    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13903      case $host_cpu in
13904      i*86 )
13905        # Not sure whether the presence of OpenBSD here was a mistake.
13906        # Let's accept both of them until this is cleared up.
13907 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
13908 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13909        lt_cv_file_magic_cmd=/usr/bin/file
13910        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13911        ;;
13912 @@ -3553,7 +4315,7 @@ gnu*)
13913  
13914  hpux10.20* | hpux11*)
13915    lt_cv_file_magic_cmd=/usr/bin/file
13916 -  case "$host_cpu" in
13917 +  case $host_cpu in
13918    ia64*)
13919      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13920      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13921 @@ -3569,6 +4331,11 @@ hpux10.20* | hpux11*)
13922    esac
13923    ;;
13924  
13925 +interix[3-9]*)
13926 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13927 +  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13928 +  ;;
13929 +
13930  irix5* | irix6* | nonstopux*)
13931    case $LD in
13932    *-32|*"-32 ") libmagic=32-bit;;
13933 @@ -3580,20 +4347,11 @@ irix5* | irix6* | nonstopux*)
13934    ;;
13935  
13936  # This must be Linux ELF.
13937 -linux*)
13938 -  case $host_cpu in
13939 -  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
13940 -    lt_cv_deplibs_check_method=pass_all ;;
13941 -  *)
13942 -    # glibc up to 2.1.1 does not perform some relocations on ARM
13943 -    # this will be overridden with pass_all, but let us keep it just in case
13944 -    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
13945 -  esac
13946 -  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
13947 +linux* | k*bsd*-gnu)
13948    lt_cv_deplibs_check_method=pass_all
13949    ;;
13950  
13951 -netbsd*)
13952 +netbsd* | netbsdelf*-gnu)
13953    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13954      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13955    else
13956 @@ -3612,12 +4370,10 @@ nto-qnx*)
13957    ;;
13958  
13959  openbsd*)
13960 -  lt_cv_file_magic_cmd=/usr/bin/file
13961 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13962    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13963 -    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
13964 +    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13965    else
13966 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
13967 +    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13968    fi
13969    ;;
13970  
13971 @@ -3625,7 +4381,7 @@ osf3* | osf4* | osf5*)
13972    lt_cv_deplibs_check_method=pass_all
13973    ;;
13974  
13975 -sco3.2v5*)
13976 +rdos*)
13977    lt_cv_deplibs_check_method=pass_all
13978    ;;
13979  
13980 @@ -3633,7 +4389,7 @@ solaris*)
13981    lt_cv_deplibs_check_method=pass_all
13982    ;;
13983  
13984 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13985 +sysv4 | sysv4.3*)
13986    case $host_vendor in
13987    motorola)
13988      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]'
13989 @@ -3654,17 +4410,20 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13990    siemens)
13991      lt_cv_deplibs_check_method=pass_all
13992      ;;
13993 +  pc)
13994 +    lt_cv_deplibs_check_method=pass_all
13995 +    ;;
13996    esac
13997    ;;
13998  
13999 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
14000 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14001    lt_cv_deplibs_check_method=pass_all
14002    ;;
14003  esac
14004  
14005  fi
14006 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14007 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14008 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14009 +$as_echo "$lt_cv_deplibs_check_method" >&6; }
14010  file_magic_cmd=$lt_cv_file_magic_cmd
14011  deplibs_check_method=$lt_cv_deplibs_check_method
14012  test -z "$deplibs_check_method" && deplibs_check_method=unknown
14013 @@ -3675,15 +4434,18 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
14014  # If no C compiler was specified, use CC.
14015  LTCC=${LTCC-"$CC"}
14016  
14017 +# If no C compiler flags were specified, use CFLAGS.
14018 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14019 +
14020  # Allow CC to be a program name with arguments.
14021  compiler=$CC
14022  
14023  
14024 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14025 +# Check whether --enable-libtool-lock was given.
14026  if test "${enable_libtool_lock+set}" = set; then
14027 -  enableval="$enable_libtool_lock"
14028 +  enableval=$enable_libtool_lock;
14029 +fi
14030  
14031 -fi;
14032  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14033  
14034  # Some flags need to be propagated to the compiler or linker for good
14035 @@ -3695,7 +4457,7 @@ ia64-*-hpux*)
14036    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037    (eval $ac_compile) 2>&5
14038    ac_status=$?
14039 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041    (exit $ac_status); }; then
14042      case `/usr/bin/file conftest.$ac_objext` in
14043      *ELF-32*)
14044 @@ -3710,11 +4472,11 @@ ia64-*-hpux*)
14045    ;;
14046  *-*-irix6*)
14047    # Find out which ABI we are using.
14048 -  echo '#line 3713 "configure"' > conftest.$ac_ext
14049 +  echo '#line 4475 "configure"' > conftest.$ac_ext
14050    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14051    (eval $ac_compile) 2>&5
14052    ac_status=$?
14053 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055    (exit $ac_status); }; then
14056     if test "$lt_cv_prog_gnu_ld" = yes; then
14057      case `/usr/bin/file conftest.$ac_objext` in
14058 @@ -3745,17 +4507,21 @@ ia64-*-hpux*)
14059    rm -rf conftest*
14060    ;;
14061  
14062 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14063 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
14064 +s390*-*linux*|sparc*-*linux*)
14065    # Find out which ABI we are using.
14066    echo 'int i;' > conftest.$ac_ext
14067    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068    (eval $ac_compile) 2>&5
14069    ac_status=$?
14070 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072    (exit $ac_status); }; then
14073 -    case "`/usr/bin/file conftest.o`" in
14074 +    case `/usr/bin/file conftest.o` in
14075      *32-bit*)
14076        case $host in
14077 +        x86_64-*kfreebsd*-gnu)
14078 +          LD="${LD-ld} -m elf_i386_fbsd"
14079 +          ;;
14080          x86_64-*linux*)
14081            LD="${LD-ld} -m elf_i386"
14082            ;;
14083 @@ -3772,6 +4538,9 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14084        ;;
14085      *64-bit*)
14086        case $host in
14087 +        x86_64-*kfreebsd*-gnu)
14088 +          LD="${LD-ld} -m elf_x86_64_fbsd"
14089 +          ;;
14090          x86_64-*linux*)
14091            LD="${LD-ld} -m elf_x86_64"
14092            ;;
14093 @@ -3795,10 +4564,10 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14094    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14095    SAVE_CFLAGS="$CFLAGS"
14096    CFLAGS="$CFLAGS -belf"
14097 -  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14098 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
14099 +  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14100 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14101  if test "${lt_cv_cc_needs_belf+set}" = set; then
14102 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14103 +  $as_echo_n "(cached) " >&6
14104  else
14105    ac_ext=c
14106  ac_cpp='$CPP $CPPFLAGS'
14107 @@ -3822,35 +4591,36 @@ main ()
14108  }
14109  _ACEOF
14110  rm -f conftest.$ac_objext conftest$ac_exeext
14111 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 -  (eval $ac_link) 2>conftest.er1
14113 +if { (ac_try="$ac_link"
14114 +case "(($ac_try" in
14115 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 +  *) ac_try_echo=$ac_try;;
14117 +esac
14118 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14119 +$as_echo "$ac_try_echo") >&5
14120 +  (eval "$ac_link") 2>conftest.er1
14121    ac_status=$?
14122    grep -v '^ *+' conftest.er1 >conftest.err
14123    rm -f conftest.er1
14124    cat conftest.err >&5
14125 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 -  (exit $ac_status); } &&
14127 -        { ac_try='test -z "$ac_c_werror_flag"
14128 -                        || test ! -s conftest.err'
14129 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 -  (eval $ac_try) 2>&5
14131 -  ac_status=$?
14132 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 -  (exit $ac_status); }; } &&
14134 -        { ac_try='test -s conftest$ac_exeext'
14135 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 -  (eval $ac_try) 2>&5
14137 -  ac_status=$?
14138 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 -  (exit $ac_status); }; }; then
14140 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 +  (exit $ac_status); } && {
14142 +        test -z "$ac_c_werror_flag" ||
14143 +        test ! -s conftest.err
14144 +       } && test -s conftest$ac_exeext && {
14145 +        test "$cross_compiling" = yes ||
14146 +        $as_test_x conftest$ac_exeext
14147 +       }; then
14148    lt_cv_cc_needs_belf=yes
14149  else
14150 -  echo "$as_me: failed program was:" >&5
14151 +  $as_echo "$as_me: failed program was:" >&5
14152  sed 's/^/| /' conftest.$ac_ext >&5
14153  
14154 -lt_cv_cc_needs_belf=no
14155 +       lt_cv_cc_needs_belf=no
14156  fi
14157 -rm -f conftest.err conftest.$ac_objext \
14158 +
14159 +rm -rf conftest.dSYM
14160 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14161        conftest$ac_exeext conftest.$ac_ext
14162       ac_ext=c
14163  ac_cpp='$CPP $CPPFLAGS'
14164 @@ -3859,13 +4629,37 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
14165  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14166  
14167  fi
14168 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14169 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
14170 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14171 +$as_echo "$lt_cv_cc_needs_belf" >&6; }
14172    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14173      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14174      CFLAGS="$SAVE_CFLAGS"
14175    fi
14176    ;;
14177 +sparc*-*solaris*)
14178 +  # Find out which ABI we are using.
14179 +  echo 'int i;' > conftest.$ac_ext
14180 +  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181 +  (eval $ac_compile) 2>&5
14182 +  ac_status=$?
14183 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 +  (exit $ac_status); }; then
14185 +    case `/usr/bin/file conftest.o` in
14186 +    *64-bit*)
14187 +      case $lt_cv_prog_gnu_ld in
14188 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
14189 +      *)
14190 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14191 +         LD="${LD-ld} -64"
14192 +       fi
14193 +       ;;
14194 +      esac
14195 +      ;;
14196 +    esac
14197 +  fi
14198 +  rm -rf conftest*
14199 +  ;;
14200 +
14201  
14202  esac
14203  
14204 @@ -3877,15 +4671,15 @@ ac_cpp='$CPP $CPPFLAGS'
14205  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14206  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14207  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14208 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14209 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
14210 +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14211 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
14212  # On Suns, sometimes $CPP names a directory.
14213  if test -n "$CPP" && test -d "$CPP"; then
14214    CPP=
14215  fi
14216  if test -z "$CPP"; then
14217    if test "${ac_cv_prog_CPP+set}" = set; then
14218 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14219 +  $as_echo_n "(cached) " >&6
14220  else
14221        # Double quotes because CPP needs to be expanded
14222      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14223 @@ -3912,35 +4706,35 @@ cat >>conftest.$ac_ext <<_ACEOF
14224  #endif
14225                      Syntax error
14226  _ACEOF
14227 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14228 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14229 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14230 +case "(($ac_try" in
14231 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 +  *) ac_try_echo=$ac_try;;
14233 +esac
14234 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14235 +$as_echo "$ac_try_echo") >&5
14236 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14237    ac_status=$?
14238    grep -v '^ *+' conftest.er1 >conftest.err
14239    rm -f conftest.er1
14240    cat conftest.err >&5
14241 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 -  (exit $ac_status); } >/dev/null; then
14243 -  if test -s conftest.err; then
14244 -    ac_cpp_err=$ac_c_preproc_warn_flag
14245 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14246 -  else
14247 -    ac_cpp_err=
14248 -  fi
14249 -else
14250 -  ac_cpp_err=yes
14251 -fi
14252 -if test -z "$ac_cpp_err"; then
14253 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 +  (exit $ac_status); } >/dev/null && {
14255 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14256 +        test ! -s conftest.err
14257 +       }; then
14258    :
14259  else
14260 -  echo "$as_me: failed program was:" >&5
14261 +  $as_echo "$as_me: failed program was:" >&5
14262  sed 's/^/| /' conftest.$ac_ext >&5
14263  
14264    # Broken: fails on valid input.
14265  continue
14266  fi
14267 +
14268  rm -f conftest.err conftest.$ac_ext
14269  
14270 -  # OK, works on sane cases.  Now check whether non-existent headers
14271 +  # OK, works on sane cases.  Now check whether nonexistent headers
14272    # can be detected and how.
14273    cat >conftest.$ac_ext <<_ACEOF
14274  /* confdefs.h.  */
14275 @@ -3950,34 +4744,34 @@ cat >>conftest.$ac_ext <<_ACEOF
14276  /* end confdefs.h.  */
14277  #include <ac_nonexistent.h>
14278  _ACEOF
14279 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14280 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14281 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14282 +case "(($ac_try" in
14283 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 +  *) ac_try_echo=$ac_try;;
14285 +esac
14286 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 +$as_echo "$ac_try_echo") >&5
14288 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14289    ac_status=$?
14290    grep -v '^ *+' conftest.er1 >conftest.err
14291    rm -f conftest.er1
14292    cat conftest.err >&5
14293 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 -  (exit $ac_status); } >/dev/null; then
14295 -  if test -s conftest.err; then
14296 -    ac_cpp_err=$ac_c_preproc_warn_flag
14297 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14298 -  else
14299 -    ac_cpp_err=
14300 -  fi
14301 -else
14302 -  ac_cpp_err=yes
14303 -fi
14304 -if test -z "$ac_cpp_err"; then
14305 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 +  (exit $ac_status); } >/dev/null && {
14307 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14308 +        test ! -s conftest.err
14309 +       }; then
14310    # Broken: success on invalid input.
14311  continue
14312  else
14313 -  echo "$as_me: failed program was:" >&5
14314 +  $as_echo "$as_me: failed program was:" >&5
14315  sed 's/^/| /' conftest.$ac_ext >&5
14316  
14317    # Passes both tests.
14318  ac_preproc_ok=:
14319  break
14320  fi
14321 +
14322  rm -f conftest.err conftest.$ac_ext
14323  
14324  done
14325 @@ -3995,8 +4789,8 @@ fi
14326  else
14327    ac_cv_prog_CPP=$CPP
14328  fi
14329 -echo "$as_me:$LINENO: result: $CPP" >&5
14330 -echo "${ECHO_T}$CPP" >&6
14331 +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
14332 +$as_echo "$CPP" >&6; }
14333  ac_preproc_ok=false
14334  for ac_c_preproc_warn_flag in '' yes
14335  do
14336 @@ -4019,35 +4813,35 @@ cat >>conftest.$ac_ext <<_ACEOF
14337  #endif
14338                      Syntax error
14339  _ACEOF
14340 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14341 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14342 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14343 +case "(($ac_try" in
14344 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 +  *) ac_try_echo=$ac_try;;
14346 +esac
14347 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14348 +$as_echo "$ac_try_echo") >&5
14349 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14350    ac_status=$?
14351    grep -v '^ *+' conftest.er1 >conftest.err
14352    rm -f conftest.er1
14353    cat conftest.err >&5
14354 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 -  (exit $ac_status); } >/dev/null; then
14356 -  if test -s conftest.err; then
14357 -    ac_cpp_err=$ac_c_preproc_warn_flag
14358 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14359 -  else
14360 -    ac_cpp_err=
14361 -  fi
14362 -else
14363 -  ac_cpp_err=yes
14364 -fi
14365 -if test -z "$ac_cpp_err"; then
14366 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 +  (exit $ac_status); } >/dev/null && {
14368 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14369 +        test ! -s conftest.err
14370 +       }; then
14371    :
14372  else
14373 -  echo "$as_me: failed program was:" >&5
14374 +  $as_echo "$as_me: failed program was:" >&5
14375  sed 's/^/| /' conftest.$ac_ext >&5
14376  
14377    # Broken: fails on valid input.
14378  continue
14379  fi
14380 +
14381  rm -f conftest.err conftest.$ac_ext
14382  
14383 -  # OK, works on sane cases.  Now check whether non-existent headers
14384 +  # OK, works on sane cases.  Now check whether nonexistent headers
14385    # can be detected and how.
14386    cat >conftest.$ac_ext <<_ACEOF
14387  /* confdefs.h.  */
14388 @@ -4057,34 +4851,34 @@ cat >>conftest.$ac_ext <<_ACEOF
14389  /* end confdefs.h.  */
14390  #include <ac_nonexistent.h>
14391  _ACEOF
14392 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14393 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14394 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14395 +case "(($ac_try" in
14396 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 +  *) ac_try_echo=$ac_try;;
14398 +esac
14399 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14400 +$as_echo "$ac_try_echo") >&5
14401 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14402    ac_status=$?
14403    grep -v '^ *+' conftest.er1 >conftest.err
14404    rm -f conftest.er1
14405    cat conftest.err >&5
14406 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 -  (exit $ac_status); } >/dev/null; then
14408 -  if test -s conftest.err; then
14409 -    ac_cpp_err=$ac_c_preproc_warn_flag
14410 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14411 -  else
14412 -    ac_cpp_err=
14413 -  fi
14414 -else
14415 -  ac_cpp_err=yes
14416 -fi
14417 -if test -z "$ac_cpp_err"; then
14418 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 +  (exit $ac_status); } >/dev/null && {
14420 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14421 +        test ! -s conftest.err
14422 +       }; then
14423    # Broken: success on invalid input.
14424  continue
14425  else
14426 -  echo "$as_me: failed program was:" >&5
14427 +  $as_echo "$as_me: failed program was:" >&5
14428  sed 's/^/| /' conftest.$ac_ext >&5
14429  
14430    # Passes both tests.
14431  ac_preproc_ok=:
14432  break
14433  fi
14434 +
14435  rm -f conftest.err conftest.$ac_ext
14436  
14437  done
14438 @@ -4093,11 +4887,13 @@ rm -f conftest.err conftest.$ac_ext
14439  if $ac_preproc_ok; then
14440    :
14441  else
14442 -  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14443 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14444 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14445 +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14446  See \`config.log' for more details." >&5
14447 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14448 +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14449  See \`config.log' for more details." >&2;}
14450 -   { (exit 1); exit 1; }; }
14451 +   { (exit 1); exit 1; }; }; }
14452  fi
14453  
14454  ac_ext=c
14455 @@ -4107,10 +4903,10 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
14456  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14457  
14458  
14459 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14460 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14461 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14462 +$as_echo_n "checking for ANSI C header files... " >&6; }
14463  if test "${ac_cv_header_stdc+set}" = set; then
14464 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14465 +  $as_echo_n "(cached) " >&6
14466  else
14467    cat >conftest.$ac_ext <<_ACEOF
14468  /* confdefs.h.  */
14469 @@ -4132,35 +4928,32 @@ main ()
14470  }
14471  _ACEOF
14472  rm -f conftest.$ac_objext
14473 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474 -  (eval $ac_compile) 2>conftest.er1
14475 +if { (ac_try="$ac_compile"
14476 +case "(($ac_try" in
14477 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 +  *) ac_try_echo=$ac_try;;
14479 +esac
14480 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14481 +$as_echo "$ac_try_echo") >&5
14482 +  (eval "$ac_compile") 2>conftest.er1
14483    ac_status=$?
14484    grep -v '^ *+' conftest.er1 >conftest.err
14485    rm -f conftest.er1
14486    cat conftest.err >&5
14487 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 -  (exit $ac_status); } &&
14489 -        { ac_try='test -z "$ac_c_werror_flag"
14490 -                        || test ! -s conftest.err'
14491 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 -  (eval $ac_try) 2>&5
14493 -  ac_status=$?
14494 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 -  (exit $ac_status); }; } &&
14496 -        { ac_try='test -s conftest.$ac_objext'
14497 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 -  (eval $ac_try) 2>&5
14499 -  ac_status=$?
14500 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 -  (exit $ac_status); }; }; then
14502 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 +  (exit $ac_status); } && {
14504 +        test -z "$ac_c_werror_flag" ||
14505 +        test ! -s conftest.err
14506 +       } && test -s conftest.$ac_objext; then
14507    ac_cv_header_stdc=yes
14508  else
14509 -  echo "$as_me: failed program was:" >&5
14510 +  $as_echo "$as_me: failed program was:" >&5
14511  sed 's/^/| /' conftest.$ac_ext >&5
14512  
14513 -ac_cv_header_stdc=no
14514 +       ac_cv_header_stdc=no
14515  fi
14516 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14517 +
14518 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519  
14520  if test $ac_cv_header_stdc = yes; then
14521    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14522 @@ -4216,6 +5009,7 @@ cat confdefs.h >>conftest.$ac_ext
14523  cat >>conftest.$ac_ext <<_ACEOF
14524  /* end confdefs.h.  */
14525  #include <ctype.h>
14526 +#include <stdlib.h>
14527  #if ((' ' & 0x0FF) == 0x020)
14528  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14529  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14530 @@ -4235,36 +5029,50 @@ main ()
14531    for (i = 0; i < 256; i++)
14532      if (XOR (islower (i), ISLOWER (i))
14533         || toupper (i) != TOUPPER (i))
14534 -      exit(2);
14535 -  exit (0);
14536 +      return 2;
14537 +  return 0;
14538  }
14539  _ACEOF
14540  rm -f conftest$ac_exeext
14541 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542 -  (eval $ac_link) 2>&5
14543 +if { (ac_try="$ac_link"
14544 +case "(($ac_try" in
14545 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 +  *) ac_try_echo=$ac_try;;
14547 +esac
14548 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 +$as_echo "$ac_try_echo") >&5
14550 +  (eval "$ac_link") 2>&5
14551    ac_status=$?
14552 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14555 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 -  (eval $ac_try) 2>&5
14557 +  { (case "(($ac_try" in
14558 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 +  *) ac_try_echo=$ac_try;;
14560 +esac
14561 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14562 +$as_echo "$ac_try_echo") >&5
14563 +  (eval "$ac_try") 2>&5
14564    ac_status=$?
14565 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567    (exit $ac_status); }; }; then
14568    :
14569  else
14570 -  echo "$as_me: program exited with status $ac_status" >&5
14571 -echo "$as_me: failed program was:" >&5
14572 +  $as_echo "$as_me: program exited with status $ac_status" >&5
14573 +$as_echo "$as_me: failed program was:" >&5
14574  sed 's/^/| /' conftest.$ac_ext >&5
14575  
14576  ( exit $ac_status )
14577  ac_cv_header_stdc=no
14578  fi
14579 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14580 +rm -rf conftest.dSYM
14581 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14582  fi
14583 +
14584 +
14585  fi
14586  fi
14587 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14588 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
14589 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14590 +$as_echo "$ac_cv_header_stdc" >&6; }
14591  if test $ac_cv_header_stdc = yes; then
14592  
14593  cat >>confdefs.h <<\_ACEOF
14594 @@ -4286,11 +5094,11 @@ fi
14595  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14596                   inttypes.h stdint.h unistd.h
14597  do
14598 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14599 -echo "$as_me:$LINENO: checking for $ac_header" >&5
14600 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14601 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14602 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14603 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14604 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14605 +$as_echo_n "checking for $ac_header... " >&6; }
14606 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14607 +  $as_echo_n "(cached) " >&6
14608  else
14609    cat >conftest.$ac_ext <<_ACEOF
14610  /* confdefs.h.  */
14611 @@ -4303,41 +5111,42 @@ $ac_includes_default
14612  #include <$ac_header>
14613  _ACEOF
14614  rm -f conftest.$ac_objext
14615 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 -  (eval $ac_compile) 2>conftest.er1
14617 +if { (ac_try="$ac_compile"
14618 +case "(($ac_try" in
14619 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 +  *) ac_try_echo=$ac_try;;
14621 +esac
14622 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14623 +$as_echo "$ac_try_echo") >&5
14624 +  (eval "$ac_compile") 2>conftest.er1
14625    ac_status=$?
14626    grep -v '^ *+' conftest.er1 >conftest.err
14627    rm -f conftest.er1
14628    cat conftest.err >&5
14629 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 -  (exit $ac_status); } &&
14631 -        { ac_try='test -z "$ac_c_werror_flag"
14632 -                        || test ! -s conftest.err'
14633 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 -  (eval $ac_try) 2>&5
14635 -  ac_status=$?
14636 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 -  (exit $ac_status); }; } &&
14638 -        { ac_try='test -s conftest.$ac_objext'
14639 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 -  (eval $ac_try) 2>&5
14641 -  ac_status=$?
14642 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 -  (exit $ac_status); }; }; then
14644 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 +  (exit $ac_status); } && {
14646 +        test -z "$ac_c_werror_flag" ||
14647 +        test ! -s conftest.err
14648 +       } && test -s conftest.$ac_objext; then
14649    eval "$as_ac_Header=yes"
14650  else
14651 -  echo "$as_me: failed program was:" >&5
14652 +  $as_echo "$as_me: failed program was:" >&5
14653  sed 's/^/| /' conftest.$ac_ext >&5
14654  
14655 -eval "$as_ac_Header=no"
14656 +       eval "$as_ac_Header=no"
14657  fi
14658 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659 +
14660 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661  fi
14662 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14663 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14664 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
14665 +ac_res=`eval 'as_val=${'$as_ac_Header'}
14666 +                $as_echo "$as_val"'`
14667 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14668 +$as_echo "$ac_res" >&6; }
14669 +as_val=`eval 'as_val=${'$as_ac_Header'}
14670 +                $as_echo "$as_val"'`
14671 +   if test "x$as_val" = x""yes; then
14672    cat >>confdefs.h <<_ACEOF
14673 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14674 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14675  _ACEOF
14676  
14677  fi
14678 @@ -4348,19 +5157,21 @@ done
14679  
14680  for ac_header in dlfcn.h
14681  do
14682 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14683 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14684 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
14685 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14686 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14687 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14688 -fi
14689 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14690 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14691 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14692 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693 +  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 +$as_echo_n "checking for $ac_header... " >&6; }
14695 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 +  $as_echo_n "(cached) " >&6
14697 +fi
14698 +ac_res=`eval 'as_val=${'$as_ac_Header'}
14699 +                $as_echo "$as_val"'`
14700 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14701 +$as_echo "$ac_res" >&6; }
14702  else
14703    # Is the header compilable?
14704 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14706 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14707 +$as_echo_n "checking $ac_header usability... " >&6; }
14708  cat >conftest.$ac_ext <<_ACEOF
14709  /* confdefs.h.  */
14710  _ACEOF
14711 @@ -4371,41 +5182,38 @@ $ac_includes_default
14712  #include <$ac_header>
14713  _ACEOF
14714  rm -f conftest.$ac_objext
14715 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 -  (eval $ac_compile) 2>conftest.er1
14717 +if { (ac_try="$ac_compile"
14718 +case "(($ac_try" in
14719 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 +  *) ac_try_echo=$ac_try;;
14721 +esac
14722 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723 +$as_echo "$ac_try_echo") >&5
14724 +  (eval "$ac_compile") 2>conftest.er1
14725    ac_status=$?
14726    grep -v '^ *+' conftest.er1 >conftest.err
14727    rm -f conftest.er1
14728    cat conftest.err >&5
14729 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 -  (exit $ac_status); } &&
14731 -        { ac_try='test -z "$ac_c_werror_flag"
14732 -                        || test ! -s conftest.err'
14733 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 -  (eval $ac_try) 2>&5
14735 -  ac_status=$?
14736 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 -  (exit $ac_status); }; } &&
14738 -        { ac_try='test -s conftest.$ac_objext'
14739 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 -  (eval $ac_try) 2>&5
14741 -  ac_status=$?
14742 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 -  (exit $ac_status); }; }; then
14744 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 +  (exit $ac_status); } && {
14746 +        test -z "$ac_c_werror_flag" ||
14747 +        test ! -s conftest.err
14748 +       } && test -s conftest.$ac_objext; then
14749    ac_header_compiler=yes
14750  else
14751 -  echo "$as_me: failed program was:" >&5
14752 +  $as_echo "$as_me: failed program was:" >&5
14753  sed 's/^/| /' conftest.$ac_ext >&5
14754  
14755 -ac_header_compiler=no
14756 +       ac_header_compiler=no
14757  fi
14758 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14759 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760 -echo "${ECHO_T}$ac_header_compiler" >&6
14761 +
14762 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14764 +$as_echo "$ac_header_compiler" >&6; }
14765  
14766  # Is the header present?
14767 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
14768 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14769 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14770 +$as_echo_n "checking $ac_header presence... " >&6; }
14771  cat >conftest.$ac_ext <<_ACEOF
14772  /* confdefs.h.  */
14773  _ACEOF
14774 @@ -4414,101 +5222,102 @@ cat >>conftest.$ac_ext <<_ACEOF
14775  /* end confdefs.h.  */
14776  #include <$ac_header>
14777  _ACEOF
14778 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14779 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14780 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14781 +case "(($ac_try" in
14782 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 +  *) ac_try_echo=$ac_try;;
14784 +esac
14785 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14786 +$as_echo "$ac_try_echo") >&5
14787 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14788    ac_status=$?
14789    grep -v '^ *+' conftest.er1 >conftest.err
14790    rm -f conftest.er1
14791    cat conftest.err >&5
14792 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 -  (exit $ac_status); } >/dev/null; then
14794 -  if test -s conftest.err; then
14795 -    ac_cpp_err=$ac_c_preproc_warn_flag
14796 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14797 -  else
14798 -    ac_cpp_err=
14799 -  fi
14800 -else
14801 -  ac_cpp_err=yes
14802 -fi
14803 -if test -z "$ac_cpp_err"; then
14804 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 +  (exit $ac_status); } >/dev/null && {
14806 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14807 +        test ! -s conftest.err
14808 +       }; then
14809    ac_header_preproc=yes
14810  else
14811 -  echo "$as_me: failed program was:" >&5
14812 +  $as_echo "$as_me: failed program was:" >&5
14813  sed 's/^/| /' conftest.$ac_ext >&5
14814  
14815    ac_header_preproc=no
14816  fi
14817 +
14818  rm -f conftest.err conftest.$ac_ext
14819 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 -echo "${ECHO_T}$ac_header_preproc" >&6
14821 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14822 +$as_echo "$ac_header_preproc" >&6; }
14823  
14824  # So?  What about this header?
14825  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14826    yes:no: )
14827 -    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14828 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14829 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14830 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14831 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14832 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14833 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14834 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14835      ac_header_preproc=yes
14836      ;;
14837    no:yes:* )
14838 -    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14839 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14840 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14841 -echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14842 -    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14843 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14844 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14845 -echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14846 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14847 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14848 -    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14849 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14850 -    (
14851 -      cat <<\_ASBOX
14852 -## ------------------------------------------ ##
14853 -## Report this to the AC_PACKAGE_NAME lists.  ##
14854 -## ------------------------------------------ ##
14855 -_ASBOX
14856 -    ) |
14857 -      sed "s/^/$as_me: WARNING:     /" >&2
14858 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14859 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14860 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14861 +$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14862 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14863 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14864 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14865 +$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14866 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14867 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14868 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14869 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14870 +
14871      ;;
14872  esac
14873 -echo "$as_me:$LINENO: checking for $ac_header" >&5
14874 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14875 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14876 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14877 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14878 +$as_echo_n "checking for $ac_header... " >&6; }
14879 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880 +  $as_echo_n "(cached) " >&6
14881  else
14882    eval "$as_ac_Header=\$ac_header_preproc"
14883  fi
14884 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14885 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14886 +ac_res=`eval 'as_val=${'$as_ac_Header'}
14887 +                $as_echo "$as_val"'`
14888 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14889 +$as_echo "$ac_res" >&6; }
14890  
14891  fi
14892 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
14893 +as_val=`eval 'as_val=${'$as_ac_Header'}
14894 +                $as_echo "$as_val"'`
14895 +   if test "x$as_val" = x""yes; then
14896    cat >>confdefs.h <<_ACEOF
14897 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14898 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14899  _ACEOF
14900  
14901  fi
14902  
14903  done
14904  
14905 -ac_ext=cc
14906 +ac_ext=cpp
14907  ac_cpp='$CXXCPP $CPPFLAGS'
14908  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14909  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14910  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14911 -if test -n "$ac_tool_prefix"; then
14912 -  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14913 +if test -z "$CXX"; then
14914 +  if test -n "$CCC"; then
14915 +    CXX=$CCC
14916 +  else
14917 +    if test -n "$ac_tool_prefix"; then
14918 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14919    do
14920      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14921  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14922 -echo "$as_me:$LINENO: checking for $ac_word" >&5
14923 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14924 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14925 +$as_echo_n "checking for $ac_word... " >&6; }
14926  if test "${ac_cv_prog_CXX+set}" = set; then
14927 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14928 +  $as_echo_n "(cached) " >&6
14929  else
14930    if test -n "$CXX"; then
14931    ac_cv_prog_CXX="$CXX" # Let the user override the test.
14932 @@ -4519,38 +5328,40 @@ do
14933    IFS=$as_save_IFS
14934    test -z "$as_dir" && as_dir=.
14935    for ac_exec_ext in '' $ac_executable_extensions; do
14936 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14937 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14938      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14939 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14940 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14941      break 2
14942    fi
14943  done
14944  done
14945 +IFS=$as_save_IFS
14946  
14947  fi
14948  fi
14949  CXX=$ac_cv_prog_CXX
14950  if test -n "$CXX"; then
14951 -  echo "$as_me:$LINENO: result: $CXX" >&5
14952 -echo "${ECHO_T}$CXX" >&6
14953 +  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
14954 +$as_echo "$CXX" >&6; }
14955  else
14956 -  echo "$as_me:$LINENO: result: no" >&5
14957 -echo "${ECHO_T}no" >&6
14958 +  { $as_echo "$as_me:$LINENO: result: no" >&5
14959 +$as_echo "no" >&6; }
14960  fi
14961  
14962 +
14963      test -n "$CXX" && break
14964    done
14965  fi
14966  if test -z "$CXX"; then
14967    ac_ct_CXX=$CXX
14968 -  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14969 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14970  do
14971    # Extract the first word of "$ac_prog", so it can be a program name with args.
14972  set dummy $ac_prog; ac_word=$2
14973 -echo "$as_me:$LINENO: checking for $ac_word" >&5
14974 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14975 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14976 +$as_echo_n "checking for $ac_word... " >&6; }
14977  if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14978 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14979 +  $as_echo_n "(cached) " >&6
14980  else
14981    if test -n "$ac_ct_CXX"; then
14982    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14983 @@ -4561,57 +5372,87 @@ do
14984    IFS=$as_save_IFS
14985    test -z "$as_dir" && as_dir=.
14986    for ac_exec_ext in '' $ac_executable_extensions; do
14987 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14988 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14989      ac_cv_prog_ac_ct_CXX="$ac_prog"
14990 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14991 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14992      break 2
14993    fi
14994  done
14995  done
14996 +IFS=$as_save_IFS
14997  
14998  fi
14999  fi
15000  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15001  if test -n "$ac_ct_CXX"; then
15002 -  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15003 -echo "${ECHO_T}$ac_ct_CXX" >&6
15004 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15005 +$as_echo "$ac_ct_CXX" >&6; }
15006  else
15007 -  echo "$as_me:$LINENO: result: no" >&5
15008 -echo "${ECHO_T}no" >&6
15009 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15010 +$as_echo "no" >&6; }
15011  fi
15012  
15013 +
15014    test -n "$ac_ct_CXX" && break
15015  done
15016 -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15017  
15018 -  CXX=$ac_ct_CXX
15019 +  if test "x$ac_ct_CXX" = x; then
15020 +    CXX="g++"
15021 +  else
15022 +    case $cross_compiling:$ac_tool_warned in
15023 +yes:)
15024 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15025 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15026 +ac_tool_warned=yes ;;
15027 +esac
15028 +    CXX=$ac_ct_CXX
15029 +  fi
15030  fi
15031  
15032 -
15033 +  fi
15034 +fi
15035  # Provide some information about the compiler.
15036 -echo "$as_me:$LINENO:" \
15037 -     "checking for C++ compiler version" >&5
15038 -ac_compiler=`set X $ac_compile; echo $2`
15039 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15040 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
15041 +$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
15042 +set X $ac_compile
15043 +ac_compiler=$2
15044 +{ (ac_try="$ac_compiler --version >&5"
15045 +case "(($ac_try" in
15046 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 +  *) ac_try_echo=$ac_try;;
15048 +esac
15049 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15050 +$as_echo "$ac_try_echo") >&5
15051 +  (eval "$ac_compiler --version >&5") 2>&5
15052    ac_status=$?
15053 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055    (exit $ac_status); }
15056 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15057 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
15058 +{ (ac_try="$ac_compiler -v >&5"
15059 +case "(($ac_try" in
15060 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 +  *) ac_try_echo=$ac_try;;
15062 +esac
15063 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15064 +$as_echo "$ac_try_echo") >&5
15065 +  (eval "$ac_compiler -v >&5") 2>&5
15066    ac_status=$?
15067 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069    (exit $ac_status); }
15070 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15071 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
15072 +{ (ac_try="$ac_compiler -V >&5"
15073 +case "(($ac_try" in
15074 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 +  *) ac_try_echo=$ac_try;;
15076 +esac
15077 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15078 +$as_echo "$ac_try_echo") >&5
15079 +  (eval "$ac_compiler -V >&5") 2>&5
15080    ac_status=$?
15081 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083    (exit $ac_status); }
15084  
15085 -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15086 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15087 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15088 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15089  if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15090 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15091 +  $as_echo_n "(cached) " >&6
15092  else
15093    cat >conftest.$ac_ext <<_ACEOF
15094  /* confdefs.h.  */
15095 @@ -4632,50 +5473,54 @@ main ()
15096  }
15097  _ACEOF
15098  rm -f conftest.$ac_objext
15099 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100 -  (eval $ac_compile) 2>conftest.er1
15101 +if { (ac_try="$ac_compile"
15102 +case "(($ac_try" in
15103 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 +  *) ac_try_echo=$ac_try;;
15105 +esac
15106 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15107 +$as_echo "$ac_try_echo") >&5
15108 +  (eval "$ac_compile") 2>conftest.er1
15109    ac_status=$?
15110    grep -v '^ *+' conftest.er1 >conftest.err
15111    rm -f conftest.er1
15112    cat conftest.err >&5
15113 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 -  (exit $ac_status); } &&
15115 -        { ac_try='test -z "$ac_cxx_werror_flag"
15116 -                        || test ! -s conftest.err'
15117 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 -  (eval $ac_try) 2>&5
15119 -  ac_status=$?
15120 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 -  (exit $ac_status); }; } &&
15122 -        { ac_try='test -s conftest.$ac_objext'
15123 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 -  (eval $ac_try) 2>&5
15125 -  ac_status=$?
15126 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 -  (exit $ac_status); }; }; then
15128 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 +  (exit $ac_status); } && {
15130 +        test -z "$ac_cxx_werror_flag" ||
15131 +        test ! -s conftest.err
15132 +       } && test -s conftest.$ac_objext; then
15133    ac_compiler_gnu=yes
15134  else
15135 -  echo "$as_me: failed program was:" >&5
15136 +  $as_echo "$as_me: failed program was:" >&5
15137  sed 's/^/| /' conftest.$ac_ext >&5
15138  
15139 -ac_compiler_gnu=no
15140 +       ac_compiler_gnu=no
15141  fi
15142 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15143 +
15144 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145  ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15146  
15147  fi
15148 -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15149 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15150 -GXX=`test $ac_compiler_gnu = yes && echo yes`
15151 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15152 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15153 +if test $ac_compiler_gnu = yes; then
15154 +  GXX=yes
15155 +else
15156 +  GXX=
15157 +fi
15158  ac_test_CXXFLAGS=${CXXFLAGS+set}
15159  ac_save_CXXFLAGS=$CXXFLAGS
15160 -CXXFLAGS="-g"
15161 -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15162 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15163 +{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15164 +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
15165  if test "${ac_cv_prog_cxx_g+set}" = set; then
15166 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15167 +  $as_echo_n "(cached) " >&6
15168  else
15169 -  cat >conftest.$ac_ext <<_ACEOF
15170 +  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15171 +   ac_cxx_werror_flag=yes
15172 +   ac_cv_prog_cxx_g=no
15173 +   CXXFLAGS="-g"
15174 +   cat >conftest.$ac_ext <<_ACEOF
15175  /* confdefs.h.  */
15176  _ACEOF
15177  cat confdefs.h >>conftest.$ac_ext
15178 @@ -4691,160 +5536,137 @@ main ()
15179  }
15180  _ACEOF
15181  rm -f conftest.$ac_objext
15182 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 -  (eval $ac_compile) 2>conftest.er1
15184 +if { (ac_try="$ac_compile"
15185 +case "(($ac_try" in
15186 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 +  *) ac_try_echo=$ac_try;;
15188 +esac
15189 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15190 +$as_echo "$ac_try_echo") >&5
15191 +  (eval "$ac_compile") 2>conftest.er1
15192    ac_status=$?
15193    grep -v '^ *+' conftest.er1 >conftest.err
15194    rm -f conftest.er1
15195    cat conftest.err >&5
15196 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 -  (exit $ac_status); } &&
15198 -        { ac_try='test -z "$ac_cxx_werror_flag"
15199 -                        || test ! -s conftest.err'
15200 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 -  (eval $ac_try) 2>&5
15202 -  ac_status=$?
15203 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 -  (exit $ac_status); }; } &&
15205 -        { ac_try='test -s conftest.$ac_objext'
15206 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 -  (eval $ac_try) 2>&5
15208 -  ac_status=$?
15209 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 -  (exit $ac_status); }; }; then
15211 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 +  (exit $ac_status); } && {
15213 +        test -z "$ac_cxx_werror_flag" ||
15214 +        test ! -s conftest.err
15215 +       } && test -s conftest.$ac_objext; then
15216    ac_cv_prog_cxx_g=yes
15217  else
15218 -  echo "$as_me: failed program was:" >&5
15219 +  $as_echo "$as_me: failed program was:" >&5
15220  sed 's/^/| /' conftest.$ac_ext >&5
15221  
15222 -ac_cv_prog_cxx_g=no
15223 -fi
15224 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15225 -fi
15226 -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15227 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15228 -if test "$ac_test_CXXFLAGS" = set; then
15229 -  CXXFLAGS=$ac_save_CXXFLAGS
15230 -elif test $ac_cv_prog_cxx_g = yes; then
15231 -  if test "$GXX" = yes; then
15232 -    CXXFLAGS="-g -O2"
15233 -  else
15234 -    CXXFLAGS="-g"
15235 -  fi
15236 -else
15237 -  if test "$GXX" = yes; then
15238 -    CXXFLAGS="-O2"
15239 -  else
15240 -    CXXFLAGS=
15241 -  fi
15242 -fi
15243 -for ac_declaration in \
15244 -   '' \
15245 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
15246 -   'extern "C" void std::exit (int); using std::exit;' \
15247 -   'extern "C" void exit (int) throw ();' \
15248 -   'extern "C" void exit (int);' \
15249 -   'void exit (int);'
15250 -do
15251 -  cat >conftest.$ac_ext <<_ACEOF
15252 +       CXXFLAGS=""
15253 +      cat >conftest.$ac_ext <<_ACEOF
15254  /* confdefs.h.  */
15255  _ACEOF
15256  cat confdefs.h >>conftest.$ac_ext
15257  cat >>conftest.$ac_ext <<_ACEOF
15258  /* end confdefs.h.  */
15259 -$ac_declaration
15260 -#include <stdlib.h>
15261 +
15262  int
15263  main ()
15264  {
15265 -exit (42);
15266 +
15267    ;
15268    return 0;
15269  }
15270  _ACEOF
15271  rm -f conftest.$ac_objext
15272 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15273 -  (eval $ac_compile) 2>conftest.er1
15274 +if { (ac_try="$ac_compile"
15275 +case "(($ac_try" in
15276 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 +  *) ac_try_echo=$ac_try;;
15278 +esac
15279 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15280 +$as_echo "$ac_try_echo") >&5
15281 +  (eval "$ac_compile") 2>conftest.er1
15282    ac_status=$?
15283    grep -v '^ *+' conftest.er1 >conftest.err
15284    rm -f conftest.er1
15285    cat conftest.err >&5
15286 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 -  (exit $ac_status); } &&
15288 -        { ac_try='test -z "$ac_cxx_werror_flag"
15289 -                        || test ! -s conftest.err'
15290 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 -  (eval $ac_try) 2>&5
15292 -  ac_status=$?
15293 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 -  (exit $ac_status); }; } &&
15295 -        { ac_try='test -s conftest.$ac_objext'
15296 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 -  (eval $ac_try) 2>&5
15298 -  ac_status=$?
15299 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 -  (exit $ac_status); }; }; then
15301 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 +  (exit $ac_status); } && {
15303 +        test -z "$ac_cxx_werror_flag" ||
15304 +        test ! -s conftest.err
15305 +       } && test -s conftest.$ac_objext; then
15306    :
15307  else
15308 -  echo "$as_me: failed program was:" >&5
15309 +  $as_echo "$as_me: failed program was:" >&5
15310  sed 's/^/| /' conftest.$ac_ext >&5
15311  
15312 -continue
15313 -fi
15314 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15315 -  cat >conftest.$ac_ext <<_ACEOF
15316 +       ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15317 +        CXXFLAGS="-g"
15318 +        cat >conftest.$ac_ext <<_ACEOF
15319  /* confdefs.h.  */
15320  _ACEOF
15321  cat confdefs.h >>conftest.$ac_ext
15322  cat >>conftest.$ac_ext <<_ACEOF
15323  /* end confdefs.h.  */
15324 -$ac_declaration
15325 +
15326  int
15327  main ()
15328  {
15329 -exit (42);
15330 +
15331    ;
15332    return 0;
15333  }
15334  _ACEOF
15335  rm -f conftest.$ac_objext
15336 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15337 -  (eval $ac_compile) 2>conftest.er1
15338 +if { (ac_try="$ac_compile"
15339 +case "(($ac_try" in
15340 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 +  *) ac_try_echo=$ac_try;;
15342 +esac
15343 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15344 +$as_echo "$ac_try_echo") >&5
15345 +  (eval "$ac_compile") 2>conftest.er1
15346    ac_status=$?
15347    grep -v '^ *+' conftest.er1 >conftest.err
15348    rm -f conftest.er1
15349    cat conftest.err >&5
15350 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 -  (exit $ac_status); } &&
15352 -        { ac_try='test -z "$ac_cxx_werror_flag"
15353 -                        || test ! -s conftest.err'
15354 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 -  (eval $ac_try) 2>&5
15356 -  ac_status=$?
15357 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 -  (exit $ac_status); }; } &&
15359 -        { ac_try='test -s conftest.$ac_objext'
15360 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 -  (eval $ac_try) 2>&5
15362 -  ac_status=$?
15363 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 -  (exit $ac_status); }; }; then
15365 -  break
15366 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 +  (exit $ac_status); } && {
15368 +        test -z "$ac_cxx_werror_flag" ||
15369 +        test ! -s conftest.err
15370 +       } && test -s conftest.$ac_objext; then
15371 +  ac_cv_prog_cxx_g=yes
15372  else
15373 -  echo "$as_me: failed program was:" >&5
15374 +  $as_echo "$as_me: failed program was:" >&5
15375  sed 's/^/| /' conftest.$ac_ext >&5
15376  
15377 +
15378  fi
15379 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15380 -done
15381 -rm -f conftest*
15382 -if test -n "$ac_declaration"; then
15383 -  echo '#ifdef __cplusplus' >>confdefs.h
15384 -  echo $ac_declaration      >>confdefs.h
15385 -  echo '#endif'             >>confdefs.h
15386 +
15387 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388  fi
15389  
15390 -ac_ext=cc
15391 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392 +fi
15393 +
15394 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395 +   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15396 +fi
15397 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15398 +$as_echo "$ac_cv_prog_cxx_g" >&6; }
15399 +if test "$ac_test_CXXFLAGS" = set; then
15400 +  CXXFLAGS=$ac_save_CXXFLAGS
15401 +elif test $ac_cv_prog_cxx_g = yes; then
15402 +  if test "$GXX" = yes; then
15403 +    CXXFLAGS="-g -O2"
15404 +  else
15405 +    CXXFLAGS="-g"
15406 +  fi
15407 +else
15408 +  if test "$GXX" = yes; then
15409 +    CXXFLAGS="-O2"
15410 +  else
15411 +    CXXFLAGS=
15412 +  fi
15413 +fi
15414 +ac_ext=cpp
15415  ac_cpp='$CXXCPP $CPPFLAGS'
15416  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15417  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15418 @@ -4852,10 +5674,10 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15419  
15420  depcc="$CXX"  am_compiler_list=
15421  
15422 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15423 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15424 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15425 +$as_echo_n "checking dependency style of $depcc... " >&6; }
15426  if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15427 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15428 +  $as_echo_n "(cached) " >&6
15429  else
15430    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15431    # We make a subdir and do the tests there.  Otherwise we can end up
15432 @@ -4942,8 +5764,8 @@ else
15433  fi
15434  
15435  fi
15436 -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15437 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15438 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15439 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15440  CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15441  
15442  
15443 @@ -4959,16 +5781,21 @@ else
15444  fi
15445  
15446  
15447 -ac_ext=cc
15448 +
15449 +
15450 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15451 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15452 +    (test "X$CXX" != "Xg++"))) ; then
15453 +  ac_ext=cpp
15454  ac_cpp='$CXXCPP $CPPFLAGS'
15455  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15456  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15457  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15458 -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15459 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15460 +{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15461 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15462  if test -z "$CXXCPP"; then
15463    if test "${ac_cv_prog_CXXCPP+set}" = set; then
15464 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15465 +  $as_echo_n "(cached) " >&6
15466  else
15467        # Double quotes because CXXCPP needs to be expanded
15468      for CXXCPP in "$CXX -E" "/lib/cpp"
15469 @@ -4995,35 +5822,35 @@ cat >>conftest.$ac_ext <<_ACEOF
15470  #endif
15471                      Syntax error
15472  _ACEOF
15473 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15474 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15475 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15476 +case "(($ac_try" in
15477 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 +  *) ac_try_echo=$ac_try;;
15479 +esac
15480 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15481 +$as_echo "$ac_try_echo") >&5
15482 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15483    ac_status=$?
15484    grep -v '^ *+' conftest.er1 >conftest.err
15485    rm -f conftest.er1
15486    cat conftest.err >&5
15487 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 -  (exit $ac_status); } >/dev/null; then
15489 -  if test -s conftest.err; then
15490 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15491 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15492 -  else
15493 -    ac_cpp_err=
15494 -  fi
15495 -else
15496 -  ac_cpp_err=yes
15497 -fi
15498 -if test -z "$ac_cpp_err"; then
15499 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 +  (exit $ac_status); } >/dev/null && {
15501 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15502 +        test ! -s conftest.err
15503 +       }; then
15504    :
15505  else
15506 -  echo "$as_me: failed program was:" >&5
15507 +  $as_echo "$as_me: failed program was:" >&5
15508  sed 's/^/| /' conftest.$ac_ext >&5
15509  
15510    # Broken: fails on valid input.
15511  continue
15512  fi
15513 +
15514  rm -f conftest.err conftest.$ac_ext
15515  
15516 -  # OK, works on sane cases.  Now check whether non-existent headers
15517 +  # OK, works on sane cases.  Now check whether nonexistent headers
15518    # can be detected and how.
15519    cat >conftest.$ac_ext <<_ACEOF
15520  /* confdefs.h.  */
15521 @@ -5033,34 +5860,34 @@ cat >>conftest.$ac_ext <<_ACEOF
15522  /* end confdefs.h.  */
15523  #include <ac_nonexistent.h>
15524  _ACEOF
15525 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15526 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15527 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15528 +case "(($ac_try" in
15529 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 +  *) ac_try_echo=$ac_try;;
15531 +esac
15532 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15533 +$as_echo "$ac_try_echo") >&5
15534 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15535    ac_status=$?
15536    grep -v '^ *+' conftest.er1 >conftest.err
15537    rm -f conftest.er1
15538    cat conftest.err >&5
15539 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 -  (exit $ac_status); } >/dev/null; then
15541 -  if test -s conftest.err; then
15542 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15543 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15544 -  else
15545 -    ac_cpp_err=
15546 -  fi
15547 -else
15548 -  ac_cpp_err=yes
15549 -fi
15550 -if test -z "$ac_cpp_err"; then
15551 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 +  (exit $ac_status); } >/dev/null && {
15553 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15554 +        test ! -s conftest.err
15555 +       }; then
15556    # Broken: success on invalid input.
15557  continue
15558  else
15559 -  echo "$as_me: failed program was:" >&5
15560 +  $as_echo "$as_me: failed program was:" >&5
15561  sed 's/^/| /' conftest.$ac_ext >&5
15562  
15563    # Passes both tests.
15564  ac_preproc_ok=:
15565  break
15566  fi
15567 +
15568  rm -f conftest.err conftest.$ac_ext
15569  
15570  done
15571 @@ -5078,8 +5905,8 @@ fi
15572  else
15573    ac_cv_prog_CXXCPP=$CXXCPP
15574  fi
15575 -echo "$as_me:$LINENO: result: $CXXCPP" >&5
15576 -echo "${ECHO_T}$CXXCPP" >&6
15577 +{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
15578 +$as_echo "$CXXCPP" >&6; }
15579  ac_preproc_ok=false
15580  for ac_cxx_preproc_warn_flag in '' yes
15581  do
15582 @@ -5102,35 +5929,35 @@ cat >>conftest.$ac_ext <<_ACEOF
15583  #endif
15584                      Syntax error
15585  _ACEOF
15586 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15587 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15588 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15589 +case "(($ac_try" in
15590 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 +  *) ac_try_echo=$ac_try;;
15592 +esac
15593 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15594 +$as_echo "$ac_try_echo") >&5
15595 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15596    ac_status=$?
15597    grep -v '^ *+' conftest.er1 >conftest.err
15598    rm -f conftest.er1
15599    cat conftest.err >&5
15600 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 -  (exit $ac_status); } >/dev/null; then
15602 -  if test -s conftest.err; then
15603 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15604 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15605 -  else
15606 -    ac_cpp_err=
15607 -  fi
15608 -else
15609 -  ac_cpp_err=yes
15610 -fi
15611 -if test -z "$ac_cpp_err"; then
15612 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 +  (exit $ac_status); } >/dev/null && {
15614 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15615 +        test ! -s conftest.err
15616 +       }; then
15617    :
15618  else
15619 -  echo "$as_me: failed program was:" >&5
15620 +  $as_echo "$as_me: failed program was:" >&5
15621  sed 's/^/| /' conftest.$ac_ext >&5
15622  
15623    # Broken: fails on valid input.
15624  continue
15625  fi
15626 +
15627  rm -f conftest.err conftest.$ac_ext
15628  
15629 -  # OK, works on sane cases.  Now check whether non-existent headers
15630 +  # OK, works on sane cases.  Now check whether nonexistent headers
15631    # can be detected and how.
15632    cat >conftest.$ac_ext <<_ACEOF
15633  /* confdefs.h.  */
15634 @@ -5140,34 +5967,34 @@ cat >>conftest.$ac_ext <<_ACEOF
15635  /* end confdefs.h.  */
15636  #include <ac_nonexistent.h>
15637  _ACEOF
15638 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15639 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15640 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15641 +case "(($ac_try" in
15642 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 +  *) ac_try_echo=$ac_try;;
15644 +esac
15645 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15646 +$as_echo "$ac_try_echo") >&5
15647 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15648    ac_status=$?
15649    grep -v '^ *+' conftest.er1 >conftest.err
15650    rm -f conftest.er1
15651    cat conftest.err >&5
15652 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 -  (exit $ac_status); } >/dev/null; then
15654 -  if test -s conftest.err; then
15655 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15656 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15657 -  else
15658 -    ac_cpp_err=
15659 -  fi
15660 -else
15661 -  ac_cpp_err=yes
15662 -fi
15663 -if test -z "$ac_cpp_err"; then
15664 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 +  (exit $ac_status); } >/dev/null && {
15666 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15667 +        test ! -s conftest.err
15668 +       }; then
15669    # Broken: success on invalid input.
15670  continue
15671  else
15672 -  echo "$as_me: failed program was:" >&5
15673 +  $as_echo "$as_me: failed program was:" >&5
15674  sed 's/^/| /' conftest.$ac_ext >&5
15675  
15676    # Passes both tests.
15677  ac_preproc_ok=:
15678  break
15679  fi
15680 +
15681  rm -f conftest.err conftest.$ac_ext
15682  
15683  done
15684 @@ -5176,33 +6003,37 @@ rm -f conftest.err conftest.$ac_ext
15685  if $ac_preproc_ok; then
15686    :
15687  else
15688 -  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15689 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15690 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15691 +{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15692  See \`config.log' for more details." >&5
15693 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15694 +$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15695  See \`config.log' for more details." >&2;}
15696 -   { (exit 1); exit 1; }; }
15697 +   { (exit 1); exit 1; }; }; }
15698  fi
15699  
15700 -ac_ext=cc
15701 +ac_ext=cpp
15702  ac_cpp='$CXXCPP $CPPFLAGS'
15703  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15704  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15705  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15706  
15707 +fi
15708 +
15709  
15710  ac_ext=f
15711  ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15712  ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15713  ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15714  if test -n "$ac_tool_prefix"; then
15715 -  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15716 +  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
15717    do
15718      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15719  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15720 -echo "$as_me:$LINENO: checking for $ac_word" >&5
15721 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15722 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15723 +$as_echo_n "checking for $ac_word... " >&6; }
15724  if test "${ac_cv_prog_F77+set}" = set; then
15725 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15726 +  $as_echo_n "(cached) " >&6
15727  else
15728    if test -n "$F77"; then
15729    ac_cv_prog_F77="$F77" # Let the user override the test.
15730 @@ -5213,38 +6044,40 @@ do
15731    IFS=$as_save_IFS
15732    test -z "$as_dir" && as_dir=.
15733    for ac_exec_ext in '' $ac_executable_extensions; do
15734 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15735 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15736      ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
15737 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15738 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15739      break 2
15740    fi
15741  done
15742  done
15743 +IFS=$as_save_IFS
15744  
15745  fi
15746  fi
15747  F77=$ac_cv_prog_F77
15748  if test -n "$F77"; then
15749 -  echo "$as_me:$LINENO: result: $F77" >&5
15750 -echo "${ECHO_T}$F77" >&6
15751 +  { $as_echo "$as_me:$LINENO: result: $F77" >&5
15752 +$as_echo "$F77" >&6; }
15753  else
15754 -  echo "$as_me:$LINENO: result: no" >&5
15755 -echo "${ECHO_T}no" >&6
15756 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15757 +$as_echo "no" >&6; }
15758  fi
15759  
15760 +
15761      test -n "$F77" && break
15762    done
15763  fi
15764  if test -z "$F77"; then
15765    ac_ct_F77=$F77
15766 -  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15767 +  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
15768  do
15769    # Extract the first word of "$ac_prog", so it can be a program name with args.
15770  set dummy $ac_prog; ac_word=$2
15771 -echo "$as_me:$LINENO: checking for $ac_word" >&5
15772 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15773 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15774 +$as_echo_n "checking for $ac_word... " >&6; }
15775  if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
15776 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15777 +  $as_echo_n "(cached) " >&6
15778  else
15779    if test -n "$ac_ct_F77"; then
15780    ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
15781 @@ -5255,50 +6088,80 @@ do
15782    IFS=$as_save_IFS
15783    test -z "$as_dir" && as_dir=.
15784    for ac_exec_ext in '' $ac_executable_extensions; do
15785 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15786 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15787      ac_cv_prog_ac_ct_F77="$ac_prog"
15788 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15789 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15790      break 2
15791    fi
15792  done
15793  done
15794 +IFS=$as_save_IFS
15795  
15796  fi
15797  fi
15798  ac_ct_F77=$ac_cv_prog_ac_ct_F77
15799  if test -n "$ac_ct_F77"; then
15800 -  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
15801 -echo "${ECHO_T}$ac_ct_F77" >&6
15802 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
15803 +$as_echo "$ac_ct_F77" >&6; }
15804  else
15805 -  echo "$as_me:$LINENO: result: no" >&5
15806 -echo "${ECHO_T}no" >&6
15807 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15808 +$as_echo "no" >&6; }
15809  fi
15810  
15811 +
15812    test -n "$ac_ct_F77" && break
15813  done
15814  
15815 -  F77=$ac_ct_F77
15816 +  if test "x$ac_ct_F77" = x; then
15817 +    F77=""
15818 +  else
15819 +    case $cross_compiling:$ac_tool_warned in
15820 +yes:)
15821 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15822 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15823 +ac_tool_warned=yes ;;
15824 +esac
15825 +    F77=$ac_ct_F77
15826 +  fi
15827  fi
15828  
15829  
15830  # Provide some information about the compiler.
15831 -echo "$as_me:5285:" \
15832 -     "checking for Fortran 77 compiler version" >&5
15833 -ac_compiler=`set X $ac_compile; echo $2`
15834 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15835 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
15836 +$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
15837 +set X $ac_compile
15838 +ac_compiler=$2
15839 +{ (ac_try="$ac_compiler --version >&5"
15840 +case "(($ac_try" in
15841 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 +  *) ac_try_echo=$ac_try;;
15843 +esac
15844 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15845 +$as_echo "$ac_try_echo") >&5
15846 +  (eval "$ac_compiler --version >&5") 2>&5
15847    ac_status=$?
15848 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850    (exit $ac_status); }
15851 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15852 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
15853 +{ (ac_try="$ac_compiler -v >&5"
15854 +case "(($ac_try" in
15855 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 +  *) ac_try_echo=$ac_try;;
15857 +esac
15858 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15859 +$as_echo "$ac_try_echo") >&5
15860 +  (eval "$ac_compiler -v >&5") 2>&5
15861    ac_status=$?
15862 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864    (exit $ac_status); }
15865 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15866 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
15867 +{ (ac_try="$ac_compiler -V >&5"
15868 +case "(($ac_try" in
15869 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 +  *) ac_try_echo=$ac_try;;
15871 +esac
15872 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15873 +$as_echo "$ac_try_echo") >&5
15874 +  (eval "$ac_compiler -V >&5") 2>&5
15875    ac_status=$?
15876 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878    (exit $ac_status); }
15879  rm -f a.out
15880  
15881 @@ -5306,10 +6169,10 @@ rm -f a.out
15882  # input file.  (Note that this only needs to work for GNU compilers.)
15883  ac_save_ext=$ac_ext
15884  ac_ext=F
15885 -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
15886 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
15887 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
15888 +$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
15889  if test "${ac_cv_f77_compiler_gnu+set}" = set; then
15890 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15891 +  $as_echo_n "(cached) " >&6
15892  else
15893    cat >conftest.$ac_ext <<_ACEOF
15894        program main
15895 @@ -5320,48 +6183,45 @@ else
15896        end
15897  _ACEOF
15898  rm -f conftest.$ac_objext
15899 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15900 -  (eval $ac_compile) 2>conftest.er1
15901 +if { (ac_try="$ac_compile"
15902 +case "(($ac_try" in
15903 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 +  *) ac_try_echo=$ac_try;;
15905 +esac
15906 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15907 +$as_echo "$ac_try_echo") >&5
15908 +  (eval "$ac_compile") 2>conftest.er1
15909    ac_status=$?
15910    grep -v '^ *+' conftest.er1 >conftest.err
15911    rm -f conftest.er1
15912    cat conftest.err >&5
15913 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 -  (exit $ac_status); } &&
15915 -        { ac_try='test -z "$ac_f77_werror_flag"
15916 -                        || test ! -s conftest.err'
15917 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 -  (eval $ac_try) 2>&5
15919 -  ac_status=$?
15920 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 -  (exit $ac_status); }; } &&
15922 -        { ac_try='test -s conftest.$ac_objext'
15923 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 -  (eval $ac_try) 2>&5
15925 -  ac_status=$?
15926 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 -  (exit $ac_status); }; }; then
15928 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 +  (exit $ac_status); } && {
15930 +        test -z "$ac_f77_werror_flag" ||
15931 +        test ! -s conftest.err
15932 +       } && test -s conftest.$ac_objext; then
15933    ac_compiler_gnu=yes
15934  else
15935 -  echo "$as_me: failed program was:" >&5
15936 +  $as_echo "$as_me: failed program was:" >&5
15937  sed 's/^/| /' conftest.$ac_ext >&5
15938  
15939 -ac_compiler_gnu=no
15940 +       ac_compiler_gnu=no
15941  fi
15942 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15943 +
15944 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945  ac_cv_f77_compiler_gnu=$ac_compiler_gnu
15946  
15947  fi
15948 -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
15949 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
15950 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
15951 +$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
15952  ac_ext=$ac_save_ext
15953  ac_test_FFLAGS=${FFLAGS+set}
15954  ac_save_FFLAGS=$FFLAGS
15955  FFLAGS=
15956 -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
15957 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
15958 +{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
15959 +$as_echo_n "checking whether $F77 accepts -g... " >&6; }
15960  if test "${ac_cv_prog_f77_g+set}" = set; then
15961 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15962 +  $as_echo_n "(cached) " >&6
15963  else
15964    FFLAGS=-g
15965  cat >conftest.$ac_ext <<_ACEOF
15966 @@ -5370,39 +6230,36 @@ cat >conftest.$ac_ext <<_ACEOF
15967        end
15968  _ACEOF
15969  rm -f conftest.$ac_objext
15970 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 -  (eval $ac_compile) 2>conftest.er1
15972 +if { (ac_try="$ac_compile"
15973 +case "(($ac_try" in
15974 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 +  *) ac_try_echo=$ac_try;;
15976 +esac
15977 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978 +$as_echo "$ac_try_echo") >&5
15979 +  (eval "$ac_compile") 2>conftest.er1
15980    ac_status=$?
15981    grep -v '^ *+' conftest.er1 >conftest.err
15982    rm -f conftest.er1
15983    cat conftest.err >&5
15984 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 -  (exit $ac_status); } &&
15986 -        { ac_try='test -z "$ac_f77_werror_flag"
15987 -                        || test ! -s conftest.err'
15988 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 -  (eval $ac_try) 2>&5
15990 -  ac_status=$?
15991 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 -  (exit $ac_status); }; } &&
15993 -        { ac_try='test -s conftest.$ac_objext'
15994 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 -  (eval $ac_try) 2>&5
15996 -  ac_status=$?
15997 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 -  (exit $ac_status); }; }; then
15999 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 +  (exit $ac_status); } && {
16001 +        test -z "$ac_f77_werror_flag" ||
16002 +        test ! -s conftest.err
16003 +       } && test -s conftest.$ac_objext; then
16004    ac_cv_prog_f77_g=yes
16005  else
16006 -  echo "$as_me: failed program was:" >&5
16007 +  $as_echo "$as_me: failed program was:" >&5
16008  sed 's/^/| /' conftest.$ac_ext >&5
16009  
16010 -ac_cv_prog_f77_g=no
16011 +       ac_cv_prog_f77_g=no
16012  fi
16013 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16014 +
16015 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016  
16017  fi
16018 -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16019 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
16020 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16021 +$as_echo "$ac_cv_prog_f77_g" >&6; }
16022  if test "$ac_test_FFLAGS" = set; then
16023    FFLAGS=$ac_save_FFLAGS
16024  elif test $ac_cv_prog_f77_g = yes; then
16025 @@ -5419,7 +6276,11 @@ else
16026    fi
16027  fi
16028  
16029 -G77=`test $ac_compiler_gnu = yes && echo yes`
16030 +if test $ac_compiler_gnu = yes; then
16031 +  G77=yes
16032 +else
16033 +  G77=
16034 +fi
16035  ac_ext=c
16036  ac_cpp='$CPP $CPPFLAGS'
16037  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16038 @@ -5429,12 +6290,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
16039  
16040  
16041  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
16042 -
16043  # find the maximum length of command line arguments
16044 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16045 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
16046 +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16047 +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
16048  if test "${lt_cv_sys_max_cmd_len+set}" = set; then
16049 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16050 +  $as_echo_n "(cached) " >&6
16051  else
16052      i=0
16053    teststring="ABCD"
16054 @@ -5472,45 +6332,93 @@ else
16055      lt_cv_sys_max_cmd_len=8192;
16056      ;;
16057  
16058 - *)
16059 -    # If test is not a shell built-in, we'll probably end up computing a
16060 -    # maximum length that is only half of the actual maximum length, but
16061 -    # we can't tell.
16062 -    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16063 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16064 +    # This has been around since 386BSD, at least.  Likely further.
16065 +    if test -x /sbin/sysctl; then
16066 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16067 +    elif test -x /usr/sbin/sysctl; then
16068 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16069 +    else
16070 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
16071 +    fi
16072 +    # And add a safety zone
16073 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16074 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16075 +    ;;
16076 +
16077 +  interix*)
16078 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
16079 +    lt_cv_sys_max_cmd_len=196608
16080 +    ;;
16081 +
16082 +  osf*)
16083 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16084 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16085 +    # nice to cause kernel panics so lets avoid the loop below.
16086 +    # First set a reasonable default.
16087 +    lt_cv_sys_max_cmd_len=16384
16088 +    #
16089 +    if test -x /sbin/sysconfig; then
16090 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16091 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
16092 +      esac
16093 +    fi
16094 +    ;;
16095 +  sco3.2v5*)
16096 +    lt_cv_sys_max_cmd_len=102400
16097 +    ;;
16098 +  sysv5* | sco5v6* | sysv4.2uw2*)
16099 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16100 +    if test -n "$kargmax"; then
16101 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
16102 +    else
16103 +      lt_cv_sys_max_cmd_len=32768
16104 +    fi
16105 +    ;;
16106 +  *)
16107 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16108 +    if test -n "$lt_cv_sys_max_cmd_len"; then
16109 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16110 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16111 +    else
16112 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16113 +      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16114                = "XX$teststring") >/dev/null 2>&1 &&
16115 -           new_result=`expr "X$teststring" : ".*" 2>&1` &&
16116 -           lt_cv_sys_max_cmd_len=$new_result &&
16117 -           test $i != 17 # 1/2 MB should be enough
16118 -    do
16119 -      i=`expr $i + 1`
16120 -      teststring=$teststring$teststring
16121 -    done
16122 -    teststring=
16123 -    # Add a significant safety factor because C++ compilers can tack on massive
16124 -    # amounts of additional arguments before passing them to the linker.
16125 -    # It appears as though 1/2 is a usable value.
16126 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16127 +             new_result=`expr "X$teststring" : ".*" 2>&1` &&
16128 +             lt_cv_sys_max_cmd_len=$new_result &&
16129 +             test $i != 17 # 1/2 MB should be enough
16130 +      do
16131 +        i=`expr $i + 1`
16132 +        teststring=$teststring$teststring
16133 +      done
16134 +      teststring=
16135 +      # Add a significant safety factor because C++ compilers can tack on massive
16136 +      # amounts of additional arguments before passing them to the linker.
16137 +      # It appears as though 1/2 is a usable value.
16138 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16139 +    fi
16140      ;;
16141    esac
16142  
16143  fi
16144  
16145  if test -n $lt_cv_sys_max_cmd_len ; then
16146 -  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16147 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16148 +  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16149 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16150  else
16151 -  echo "$as_me:$LINENO: result: none" >&5
16152 -echo "${ECHO_T}none" >&6
16153 +  { $as_echo "$as_me:$LINENO: result: none" >&5
16154 +$as_echo "none" >&6; }
16155  fi
16156  
16157  
16158  
16159  
16160 +
16161  # Check for command to grab the raw symbol name followed by C symbol from nm.
16162 -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16163 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16164 +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16165 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16166  if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16167 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16168 +  $as_echo_n "(cached) " >&6
16169  else
16170  
16171  # These are sane defaults that work on at least a few old systems.
16172 @@ -5522,9 +6430,6 @@ symcode='[BCDEGRST]'
16173  # Regexp to match symbols that can be accessed directly from C.
16174  sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16175  
16176 -# Transform the above into a raw symbol and a C symbol.
16177 -symxfrm='\1 \2\3 \3'
16178 -
16179  # Transform an extracted symbol line into a proper C declaration
16180  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16181  
16182 @@ -5546,15 +6451,31 @@ hpux*) # Its linker distinguishes data from code symbols
16183    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16184    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'"
16185    ;;
16186 +linux* | k*bsd*-gnu)
16187 +  if test "$host_cpu" = ia64; then
16188 +    symcode='[ABCDGIRSTW]'
16189 +    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16190 +    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'"
16191 +  fi
16192 +  ;;
16193  irix* | nonstopux*)
16194    symcode='[BCDEGRST]'
16195    ;;
16196  osf*)
16197    symcode='[BCDEGQRST]'
16198    ;;
16199 -solaris* | sysv5*)
16200 +solaris*)
16201    symcode='[BDRT]'
16202    ;;
16203 +sco3.2v5*)
16204 +  symcode='[DT]'
16205 +  ;;
16206 +sysv4.2uw2*)
16207 +  symcode='[DT]'
16208 +  ;;
16209 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
16210 +  symcode='[ABDT]'
16211 +  ;;
16212  sysv4)
16213    symcode='[DFNSTU]'
16214    ;;
16215 @@ -5577,8 +6498,11 @@ esac
16216  # Try without a prefix undercore, then with it.
16217  for ac_symprfx in "" "_"; do
16218  
16219 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16220 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
16221 +
16222    # Write the raw and C identifiers.
16223 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
16224 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16225  
16226    # Check to see that the pipe works correctly.
16227    pipe_works=no
16228 @@ -5599,14 +6523,14 @@ EOF
16229    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16230    (eval $ac_compile) 2>&5
16231    ac_status=$?
16232 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234    (exit $ac_status); }; then
16235      # Now try to grab the symbols.
16236      nlist=conftest.nm
16237      if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16238    (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16239    ac_status=$?
16240 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242    (exit $ac_status); } && test -s "$nlist"; then
16243        # Try sorting and uniquifying the output.
16244        if sort "$nlist" | uniq > "$nlist"T; then
16245 @@ -5661,7 +6585,7 @@ EOF
16246           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16247    (eval $ac_link) 2>&5
16248    ac_status=$?
16249 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251    (exit $ac_status); } && test -s conftest${ac_exeext}; then
16252             pipe_works=yes
16253           fi
16254 @@ -5680,7 +6604,7 @@ EOF
16255      echo "$progname: failed program was:" >&5
16256      cat conftest.$ac_ext >&5
16257    fi
16258 -  rm -f conftest* conftst*
16259 +  rm -rf conftest* conftst*
16260  
16261    # Do not use the global_symbol_pipe unless it works.
16262    if test "$pipe_works" = yes; then
16263 @@ -5696,17 +6620,17 @@ if test -z "$lt_cv_sys_global_symbol_pipe"; then
16264    lt_cv_sys_global_symbol_to_cdecl=
16265  fi
16266  if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16267 -  echo "$as_me:$LINENO: result: failed" >&5
16268 -echo "${ECHO_T}failed" >&6
16269 +  { $as_echo "$as_me:$LINENO: result: failed" >&5
16270 +$as_echo "failed" >&6; }
16271  else
16272 -  echo "$as_me:$LINENO: result: ok" >&5
16273 -echo "${ECHO_T}ok" >&6
16274 +  { $as_echo "$as_me:$LINENO: result: ok" >&5
16275 +$as_echo "ok" >&6; }
16276  fi
16277  
16278 -echo "$as_me:$LINENO: checking for objdir" >&5
16279 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16280 +{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
16281 +$as_echo_n "checking for objdir... " >&6; }
16282  if test "${lt_cv_objdir+set}" = set; then
16283 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16284 +  $as_echo_n "(cached) " >&6
16285  else
16286    rm -f .libs 2>/dev/null
16287  mkdir .libs 2>/dev/null
16288 @@ -5718,8 +6642,8 @@ else
16289  fi
16290  rmdir .libs 2>/dev/null
16291  fi
16292 -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16293 -echo "${ECHO_T}$lt_cv_objdir" >&6
16294 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16295 +$as_echo "$lt_cv_objdir" >&6; }
16296  objdir=$lt_cv_objdir
16297  
16298  
16299 @@ -5740,7 +6664,7 @@ esac
16300  
16301  # Sed substitution that helps us do robust quoting.  It backslashifies
16302  # metacharacters that are still active within double-quoted strings.
16303 -Xsed='sed -e s/^X//'
16304 +Xsed='sed -e 1s/^X//'
16305  sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16306  
16307  # Same as above, but do not quote variable references.
16308 @@ -5760,7 +6684,7 @@ rm="rm -f"
16309  default_ofile=libtool
16310  can_build_shared=yes
16311  
16312 -# All known linkers require a `.a' archive for static linking (except M$VC,
16313 +# All known linkers require a `.a' archive for static linking (except MSVC,
16314  # which needs '.lib').
16315  libext=a
16316  ltmain="$ac_aux_dir/ltmain.sh"
16317 @@ -5770,10 +6694,10 @@ with_gnu_ld="$lt_cv_prog_gnu_ld"
16318  if test -n "$ac_tool_prefix"; then
16319    # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16320  set dummy ${ac_tool_prefix}ar; ac_word=$2
16321 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16322 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16323 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16324 +$as_echo_n "checking for $ac_word... " >&6; }
16325  if test "${ac_cv_prog_AR+set}" = set; then
16326 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16327 +  $as_echo_n "(cached) " >&6
16328  else
16329    if test -n "$AR"; then
16330    ac_cv_prog_AR="$AR" # Let the user override the test.
16331 @@ -5784,34 +6708,36 @@ do
16332    IFS=$as_save_IFS
16333    test -z "$as_dir" && as_dir=.
16334    for ac_exec_ext in '' $ac_executable_extensions; do
16335 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16336 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16337      ac_cv_prog_AR="${ac_tool_prefix}ar"
16338 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16339 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16340      break 2
16341    fi
16342  done
16343  done
16344 +IFS=$as_save_IFS
16345  
16346  fi
16347  fi
16348  AR=$ac_cv_prog_AR
16349  if test -n "$AR"; then
16350 -  echo "$as_me:$LINENO: result: $AR" >&5
16351 -echo "${ECHO_T}$AR" >&6
16352 +  { $as_echo "$as_me:$LINENO: result: $AR" >&5
16353 +$as_echo "$AR" >&6; }
16354  else
16355 -  echo "$as_me:$LINENO: result: no" >&5
16356 -echo "${ECHO_T}no" >&6
16357 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16358 +$as_echo "no" >&6; }
16359  fi
16360  
16361 +
16362  fi
16363  if test -z "$ac_cv_prog_AR"; then
16364    ac_ct_AR=$AR
16365    # Extract the first word of "ar", so it can be a program name with args.
16366  set dummy ar; ac_word=$2
16367 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16368 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16369 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16370 +$as_echo_n "checking for $ac_word... " >&6; }
16371  if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16372 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16373 +  $as_echo_n "(cached) " >&6
16374  else
16375    if test -n "$ac_ct_AR"; then
16376    ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16377 @@ -5822,27 +6748,37 @@ do
16378    IFS=$as_save_IFS
16379    test -z "$as_dir" && as_dir=.
16380    for ac_exec_ext in '' $ac_executable_extensions; do
16381 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16382 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16383      ac_cv_prog_ac_ct_AR="ar"
16384 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16385 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16386      break 2
16387    fi
16388  done
16389  done
16390 +IFS=$as_save_IFS
16391  
16392 -  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16393  fi
16394  fi
16395  ac_ct_AR=$ac_cv_prog_ac_ct_AR
16396  if test -n "$ac_ct_AR"; then
16397 -  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16398 -echo "${ECHO_T}$ac_ct_AR" >&6
16399 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16400 +$as_echo "$ac_ct_AR" >&6; }
16401  else
16402 -  echo "$as_me:$LINENO: result: no" >&5
16403 -echo "${ECHO_T}no" >&6
16404 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16405 +$as_echo "no" >&6; }
16406  fi
16407  
16408 -  AR=$ac_ct_AR
16409 +  if test "x$ac_ct_AR" = x; then
16410 +    AR="false"
16411 +  else
16412 +    case $cross_compiling:$ac_tool_warned in
16413 +yes:)
16414 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16415 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16416 +ac_tool_warned=yes ;;
16417 +esac
16418 +    AR=$ac_ct_AR
16419 +  fi
16420  else
16421    AR="$ac_cv_prog_AR"
16422  fi
16423 @@ -5850,10 +6786,10 @@ fi
16424  if test -n "$ac_tool_prefix"; then
16425    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16426  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16427 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16428 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16429 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16430 +$as_echo_n "checking for $ac_word... " >&6; }
16431  if test "${ac_cv_prog_RANLIB+set}" = set; then
16432 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16433 +  $as_echo_n "(cached) " >&6
16434  else
16435    if test -n "$RANLIB"; then
16436    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16437 @@ -5864,34 +6800,36 @@ do
16438    IFS=$as_save_IFS
16439    test -z "$as_dir" && as_dir=.
16440    for ac_exec_ext in '' $ac_executable_extensions; do
16441 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16442 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16443      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16444 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16445 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16446      break 2
16447    fi
16448  done
16449  done
16450 +IFS=$as_save_IFS
16451  
16452  fi
16453  fi
16454  RANLIB=$ac_cv_prog_RANLIB
16455  if test -n "$RANLIB"; then
16456 -  echo "$as_me:$LINENO: result: $RANLIB" >&5
16457 -echo "${ECHO_T}$RANLIB" >&6
16458 +  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
16459 +$as_echo "$RANLIB" >&6; }
16460  else
16461 -  echo "$as_me:$LINENO: result: no" >&5
16462 -echo "${ECHO_T}no" >&6
16463 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16464 +$as_echo "no" >&6; }
16465  fi
16466  
16467 +
16468  fi
16469  if test -z "$ac_cv_prog_RANLIB"; then
16470    ac_ct_RANLIB=$RANLIB
16471    # Extract the first word of "ranlib", so it can be a program name with args.
16472  set dummy ranlib; ac_word=$2
16473 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16474 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16475 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16476 +$as_echo_n "checking for $ac_word... " >&6; }
16477  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16478 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16479 +  $as_echo_n "(cached) " >&6
16480  else
16481    if test -n "$ac_ct_RANLIB"; then
16482    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16483 @@ -5902,27 +6840,37 @@ do
16484    IFS=$as_save_IFS
16485    test -z "$as_dir" && as_dir=.
16486    for ac_exec_ext in '' $ac_executable_extensions; do
16487 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16488 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16489      ac_cv_prog_ac_ct_RANLIB="ranlib"
16490 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16491 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16492      break 2
16493    fi
16494  done
16495  done
16496 +IFS=$as_save_IFS
16497  
16498 -  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16499  fi
16500  fi
16501  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16502  if test -n "$ac_ct_RANLIB"; then
16503 -  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16504 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
16505 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16506 +$as_echo "$ac_ct_RANLIB" >&6; }
16507  else
16508 -  echo "$as_me:$LINENO: result: no" >&5
16509 -echo "${ECHO_T}no" >&6
16510 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16511 +$as_echo "no" >&6; }
16512  fi
16513  
16514 -  RANLIB=$ac_ct_RANLIB
16515 +  if test "x$ac_ct_RANLIB" = x; then
16516 +    RANLIB=":"
16517 +  else
16518 +    case $cross_compiling:$ac_tool_warned in
16519 +yes:)
16520 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16521 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16522 +ac_tool_warned=yes ;;
16523 +esac
16524 +    RANLIB=$ac_ct_RANLIB
16525 +  fi
16526  else
16527    RANLIB="$ac_cv_prog_RANLIB"
16528  fi
16529 @@ -5930,10 +6878,10 @@ fi
16530  if test -n "$ac_tool_prefix"; then
16531    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16532  set dummy ${ac_tool_prefix}strip; ac_word=$2
16533 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16534 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16535 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16536 +$as_echo_n "checking for $ac_word... " >&6; }
16537  if test "${ac_cv_prog_STRIP+set}" = set; then
16538 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16539 +  $as_echo_n "(cached) " >&6
16540  else
16541    if test -n "$STRIP"; then
16542    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16543 @@ -5944,34 +6892,36 @@ do
16544    IFS=$as_save_IFS
16545    test -z "$as_dir" && as_dir=.
16546    for ac_exec_ext in '' $ac_executable_extensions; do
16547 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16548 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16549      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16550 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16551 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16552      break 2
16553    fi
16554  done
16555  done
16556 +IFS=$as_save_IFS
16557  
16558  fi
16559  fi
16560  STRIP=$ac_cv_prog_STRIP
16561  if test -n "$STRIP"; then
16562 -  echo "$as_me:$LINENO: result: $STRIP" >&5
16563 -echo "${ECHO_T}$STRIP" >&6
16564 +  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
16565 +$as_echo "$STRIP" >&6; }
16566  else
16567 -  echo "$as_me:$LINENO: result: no" >&5
16568 -echo "${ECHO_T}no" >&6
16569 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16570 +$as_echo "no" >&6; }
16571  fi
16572  
16573 +
16574  fi
16575  if test -z "$ac_cv_prog_STRIP"; then
16576    ac_ct_STRIP=$STRIP
16577    # Extract the first word of "strip", so it can be a program name with args.
16578  set dummy strip; ac_word=$2
16579 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16580 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16581 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16582 +$as_echo_n "checking for $ac_word... " >&6; }
16583  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16584 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16585 +  $as_echo_n "(cached) " >&6
16586  else
16587    if test -n "$ac_ct_STRIP"; then
16588    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16589 @@ -5982,27 +6932,37 @@ do
16590    IFS=$as_save_IFS
16591    test -z "$as_dir" && as_dir=.
16592    for ac_exec_ext in '' $ac_executable_extensions; do
16593 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16594 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16595      ac_cv_prog_ac_ct_STRIP="strip"
16596 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16597 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16598      break 2
16599    fi
16600  done
16601  done
16602 +IFS=$as_save_IFS
16603  
16604 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16605  fi
16606  fi
16607  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16608  if test -n "$ac_ct_STRIP"; then
16609 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16610 -echo "${ECHO_T}$ac_ct_STRIP" >&6
16611 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16612 +$as_echo "$ac_ct_STRIP" >&6; }
16613  else
16614 -  echo "$as_me:$LINENO: result: no" >&5
16615 -echo "${ECHO_T}no" >&6
16616 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16617 +$as_echo "no" >&6; }
16618  fi
16619  
16620 -  STRIP=$ac_ct_STRIP
16621 +  if test "x$ac_ct_STRIP" = x; then
16622 +    STRIP=":"
16623 +  else
16624 +    case $cross_compiling:$ac_tool_warned in
16625 +yes:)
16626 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16627 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16628 +ac_tool_warned=yes ;;
16629 +esac
16630 +    STRIP=$ac_ct_STRIP
16631 +  fi
16632  else
16633    STRIP="$ac_cv_prog_STRIP"
16634  fi
16635 @@ -6017,6 +6977,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
16636  test -z "$AS" && AS=as
16637  test -z "$CC" && CC=cc
16638  test -z "$LTCC" && LTCC=$CC
16639 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16640  test -z "$DLLTOOL" && DLLTOOL=dlltool
16641  test -z "$LD" && LD=ld
16642  test -z "$LN_S" && LN_S="ln -s"
16643 @@ -6029,30 +6990,41 @@ test -z "$STRIP" && STRIP=:
16644  test -z "$ac_objext" && ac_objext=o
16645  
16646  # Determine commands to create old-style static archives.
16647 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16648 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16649  old_postinstall_cmds='chmod 644 $oldlib'
16650  old_postuninstall_cmds=
16651  
16652  if test -n "$RANLIB"; then
16653    case $host_os in
16654    openbsd*)
16655 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
16656 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16657      ;;
16658    *)
16659 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
16660 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16661      ;;
16662    esac
16663    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16664  fi
16665  
16666 +for cc_temp in $compiler""; do
16667 +  case $cc_temp in
16668 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16669 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16670 +    \-*) ;;
16671 +    *) break;;
16672 +  esac
16673 +done
16674 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16675 +
16676 +
16677  # Only perform the check for file, if the check method requires it
16678  case $deplibs_check_method in
16679  file_magic*)
16680    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16681 -    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16682 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16683 +    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16684 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16685  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16686 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16687 +  $as_echo_n "(cached) " >&6
16688  else
16689    case $MAGIC_CMD in
16690  [\\/*] |  ?:[\\/]*)
16691 @@ -6070,7 +7042,7 @@ else
16692        if test -n "$file_magic_test_file"; then
16693         case $deplibs_check_method in
16694         "file_magic "*)
16695 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
16696 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16697           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16698           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16699             $EGREP "$file_magic_regex" > /dev/null; then
16700 @@ -6102,19 +7074,19 @@ fi
16701  
16702  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16703  if test -n "$MAGIC_CMD"; then
16704 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16705 -echo "${ECHO_T}$MAGIC_CMD" >&6
16706 +  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16707 +$as_echo "$MAGIC_CMD" >&6; }
16708  else
16709 -  echo "$as_me:$LINENO: result: no" >&5
16710 -echo "${ECHO_T}no" >&6
16711 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16712 +$as_echo "no" >&6; }
16713  fi
16714  
16715  if test -z "$lt_cv_path_MAGIC_CMD"; then
16716    if test -n "$ac_tool_prefix"; then
16717 -    echo "$as_me:$LINENO: checking for file" >&5
16718 -echo $ECHO_N "checking for file... $ECHO_C" >&6
16719 +    { $as_echo "$as_me:$LINENO: checking for file" >&5
16720 +$as_echo_n "checking for file... " >&6; }
16721  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16722 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16723 +  $as_echo_n "(cached) " >&6
16724  else
16725    case $MAGIC_CMD in
16726  [\\/*] |  ?:[\\/]*)
16727 @@ -6132,7 +7104,7 @@ else
16728        if test -n "$file_magic_test_file"; then
16729         case $deplibs_check_method in
16730         "file_magic "*)
16731 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
16732 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16733           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16734           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16735             $EGREP "$file_magic_regex" > /dev/null; then
16736 @@ -6164,11 +7136,11 @@ fi
16737  
16738  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16739  if test -n "$MAGIC_CMD"; then
16740 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16741 -echo "${ECHO_T}$MAGIC_CMD" >&6
16742 +  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16743 +$as_echo "$MAGIC_CMD" >&6; }
16744  else
16745 -  echo "$as_me:$LINENO: result: no" >&5
16746 -echo "${ECHO_T}no" >&6
16747 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16748 +$as_echo "no" >&6; }
16749  fi
16750  
16751    else
16752 @@ -6180,24 +7152,332 @@ fi
16753    ;;
16754  esac
16755  
16756 +
16757 +  case $host_os in
16758 +    rhapsody* | darwin*)
16759 +    if test -n "$ac_tool_prefix"; then
16760 +  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
16761 +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
16762 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16763 +$as_echo_n "checking for $ac_word... " >&6; }
16764 +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
16765 +  $as_echo_n "(cached) " >&6
16766 +else
16767 +  if test -n "$DSYMUTIL"; then
16768 +  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
16769 +else
16770 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16771 +for as_dir in $PATH
16772 +do
16773 +  IFS=$as_save_IFS
16774 +  test -z "$as_dir" && as_dir=.
16775 +  for ac_exec_ext in '' $ac_executable_extensions; do
16776 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16777 +    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
16778 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16779 +    break 2
16780 +  fi
16781 +done
16782 +done
16783 +IFS=$as_save_IFS
16784 +
16785 +fi
16786 +fi
16787 +DSYMUTIL=$ac_cv_prog_DSYMUTIL
16788 +if test -n "$DSYMUTIL"; then
16789 +  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
16790 +$as_echo "$DSYMUTIL" >&6; }
16791 +else
16792 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16793 +$as_echo "no" >&6; }
16794 +fi
16795 +
16796 +
16797 +fi
16798 +if test -z "$ac_cv_prog_DSYMUTIL"; then
16799 +  ac_ct_DSYMUTIL=$DSYMUTIL
16800 +  # Extract the first word of "dsymutil", so it can be a program name with args.
16801 +set dummy dsymutil; ac_word=$2
16802 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16803 +$as_echo_n "checking for $ac_word... " >&6; }
16804 +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
16805 +  $as_echo_n "(cached) " >&6
16806 +else
16807 +  if test -n "$ac_ct_DSYMUTIL"; then
16808 +  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
16809 +else
16810 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16811 +for as_dir in $PATH
16812 +do
16813 +  IFS=$as_save_IFS
16814 +  test -z "$as_dir" && as_dir=.
16815 +  for ac_exec_ext in '' $ac_executable_extensions; do
16816 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16817 +    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
16818 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16819 +    break 2
16820 +  fi
16821 +done
16822 +done
16823 +IFS=$as_save_IFS
16824 +
16825 +fi
16826 +fi
16827 +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
16828 +if test -n "$ac_ct_DSYMUTIL"; then
16829 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
16830 +$as_echo "$ac_ct_DSYMUTIL" >&6; }
16831 +else
16832 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16833 +$as_echo "no" >&6; }
16834 +fi
16835 +
16836 +  if test "x$ac_ct_DSYMUTIL" = x; then
16837 +    DSYMUTIL=":"
16838 +  else
16839 +    case $cross_compiling:$ac_tool_warned in
16840 +yes:)
16841 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16842 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16843 +ac_tool_warned=yes ;;
16844 +esac
16845 +    DSYMUTIL=$ac_ct_DSYMUTIL
16846 +  fi
16847 +else
16848 +  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16849 +fi
16850 +
16851 +    if test -n "$ac_tool_prefix"; then
16852 +  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16853 +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16854 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16855 +$as_echo_n "checking for $ac_word... " >&6; }
16856 +if test "${ac_cv_prog_NMEDIT+set}" = set; then
16857 +  $as_echo_n "(cached) " >&6
16858 +else
16859 +  if test -n "$NMEDIT"; then
16860 +  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16861 +else
16862 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16863 +for as_dir in $PATH
16864 +do
16865 +  IFS=$as_save_IFS
16866 +  test -z "$as_dir" && as_dir=.
16867 +  for ac_exec_ext in '' $ac_executable_extensions; do
16868 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16869 +    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16870 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16871 +    break 2
16872 +  fi
16873 +done
16874 +done
16875 +IFS=$as_save_IFS
16876 +
16877 +fi
16878 +fi
16879 +NMEDIT=$ac_cv_prog_NMEDIT
16880 +if test -n "$NMEDIT"; then
16881 +  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
16882 +$as_echo "$NMEDIT" >&6; }
16883 +else
16884 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16885 +$as_echo "no" >&6; }
16886 +fi
16887 +
16888 +
16889 +fi
16890 +if test -z "$ac_cv_prog_NMEDIT"; then
16891 +  ac_ct_NMEDIT=$NMEDIT
16892 +  # Extract the first word of "nmedit", so it can be a program name with args.
16893 +set dummy nmedit; ac_word=$2
16894 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16895 +$as_echo_n "checking for $ac_word... " >&6; }
16896 +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
16897 +  $as_echo_n "(cached) " >&6
16898 +else
16899 +  if test -n "$ac_ct_NMEDIT"; then
16900 +  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16901 +else
16902 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16903 +for as_dir in $PATH
16904 +do
16905 +  IFS=$as_save_IFS
16906 +  test -z "$as_dir" && as_dir=.
16907 +  for ac_exec_ext in '' $ac_executable_extensions; do
16908 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16909 +    ac_cv_prog_ac_ct_NMEDIT="nmedit"
16910 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16911 +    break 2
16912 +  fi
16913 +done
16914 +done
16915 +IFS=$as_save_IFS
16916 +
16917 +fi
16918 +fi
16919 +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16920 +if test -n "$ac_ct_NMEDIT"; then
16921 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
16922 +$as_echo "$ac_ct_NMEDIT" >&6; }
16923 +else
16924 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16925 +$as_echo "no" >&6; }
16926 +fi
16927 +
16928 +  if test "x$ac_ct_NMEDIT" = x; then
16929 +    NMEDIT=":"
16930 +  else
16931 +    case $cross_compiling:$ac_tool_warned in
16932 +yes:)
16933 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16934 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16935 +ac_tool_warned=yes ;;
16936 +esac
16937 +    NMEDIT=$ac_ct_NMEDIT
16938 +  fi
16939 +else
16940 +  NMEDIT="$ac_cv_prog_NMEDIT"
16941 +fi
16942 +
16943 +
16944 +    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16945 +$as_echo_n "checking for -single_module linker flag... " >&6; }
16946 +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16947 +  $as_echo_n "(cached) " >&6
16948 +else
16949 +  lt_cv_apple_cc_single_mod=no
16950 +      if test -z "${LT_MULTI_MODULE}"; then
16951 +   # By default we will add the -single_module flag. You can override
16952 +   # by either setting the environment variable LT_MULTI_MODULE
16953 +   # non-empty at configure time, or by adding -multi_module to the
16954 +   # link flags.
16955 +   echo "int foo(void){return 1;}" > conftest.c
16956 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16957 +     -dynamiclib ${wl}-single_module conftest.c
16958 +   if test -f libconftest.dylib; then
16959 +     lt_cv_apple_cc_single_mod=yes
16960 +     rm -rf libconftest.dylib*
16961 +   fi
16962 +   rm conftest.c
16963 +      fi
16964 +fi
16965 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16966 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16967 +    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16968 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16969 +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16970 +  $as_echo_n "(cached) " >&6
16971 +else
16972 +  lt_cv_ld_exported_symbols_list=no
16973 +      save_LDFLAGS=$LDFLAGS
16974 +      echo "_main" > conftest.sym
16975 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16976 +      cat >conftest.$ac_ext <<_ACEOF
16977 +/* confdefs.h.  */
16978 +_ACEOF
16979 +cat confdefs.h >>conftest.$ac_ext
16980 +cat >>conftest.$ac_ext <<_ACEOF
16981 +/* end confdefs.h.  */
16982 +
16983 +int
16984 +main ()
16985 +{
16986 +
16987 +  ;
16988 +  return 0;
16989 +}
16990 +_ACEOF
16991 +rm -f conftest.$ac_objext conftest$ac_exeext
16992 +if { (ac_try="$ac_link"
16993 +case "(($ac_try" in
16994 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 +  *) ac_try_echo=$ac_try;;
16996 +esac
16997 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16998 +$as_echo "$ac_try_echo") >&5
16999 +  (eval "$ac_link") 2>conftest.er1
17000 +  ac_status=$?
17001 +  grep -v '^ *+' conftest.er1 >conftest.err
17002 +  rm -f conftest.er1
17003 +  cat conftest.err >&5
17004 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 +  (exit $ac_status); } && {
17006 +        test -z "$ac_c_werror_flag" ||
17007 +        test ! -s conftest.err
17008 +       } && test -s conftest$ac_exeext && {
17009 +        test "$cross_compiling" = yes ||
17010 +        $as_test_x conftest$ac_exeext
17011 +       }; then
17012 +  lt_cv_ld_exported_symbols_list=yes
17013 +else
17014 +  $as_echo "$as_me: failed program was:" >&5
17015 +sed 's/^/| /' conftest.$ac_ext >&5
17016 +
17017 +       lt_cv_ld_exported_symbols_list=no
17018 +fi
17019 +
17020 +rm -rf conftest.dSYM
17021 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17022 +      conftest$ac_exeext conftest.$ac_ext
17023 +   LDFLAGS="$save_LDFLAGS"
17024 +
17025 +fi
17026 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
17027 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17028 +    case $host_os in
17029 +    rhapsody* | darwin1.[0123])
17030 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17031 +    darwin1.*)
17032 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17033 +    darwin*)
17034 +      # if running on 10.5 or later, the deployment target defaults
17035 +      # to the OS version, if on x86, and 10.4, the deployment
17036 +      # target defaults to 10.4. Don't you love it?
17037 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17038 +   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
17039 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17040 +   10.[012]*)
17041 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17042 +   10.*)
17043 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17044 +      esac
17045 +    ;;
17046 +  esac
17047 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17048 +      _lt_dar_single_mod='$single_module'
17049 +    fi
17050 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17051 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17052 +    else
17053 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
17054 +    fi
17055 +    if test "$DSYMUTIL" != ":"; then
17056 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
17057 +    else
17058 +      _lt_dsymutil=
17059 +    fi
17060 +    ;;
17061 +  esac
17062 +
17063 +
17064  enable_dlopen=no
17065  enable_win32_dll=no
17066  
17067 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
17068 +# Check whether --enable-libtool-lock was given.
17069  if test "${enable_libtool_lock+set}" = set; then
17070 -  enableval="$enable_libtool_lock"
17071 +  enableval=$enable_libtool_lock;
17072 +fi
17073  
17074 -fi;
17075  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17076  
17077  
17078 -# Check whether --with-pic or --without-pic was given.
17079 +# Check whether --with-pic was given.
17080  if test "${with_pic+set}" = set; then
17081 -  withval="$with_pic"
17082 -  pic_mode="$withval"
17083 +  withval=$with_pic; pic_mode="$withval"
17084  else
17085    pic_mode=default
17086 -fi;
17087 +fi
17088 +
17089  test -z "$pic_mode" && pic_mode=default
17090  
17091  # Use C for the default configuration in the libtool script
17092 @@ -6218,77 +7498,34 @@ objext=o
17093  objext=$objext
17094  
17095  # Code to be used in simple compile tests
17096 -lt_simple_compile_test_code="int some_variable = 0;\n"
17097 +lt_simple_compile_test_code="int some_variable = 0;"
17098  
17099  # Code to be used in simple link tests
17100 -lt_simple_link_test_code='int main(){return(0);}\n'
17101 +lt_simple_link_test_code='int main(){return(0);}'
17102  
17103  
17104  # If no C compiler was specified, use CC.
17105  LTCC=${LTCC-"$CC"}
17106  
17107 +# If no C compiler flags were specified, use CFLAGS.
17108 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17109 +
17110  # Allow CC to be a program name with arguments.
17111  compiler=$CC
17112  
17113  
17114 -#
17115 -# Check for any special shared library compilation flags.
17116 -#
17117 -lt_prog_cc_shlib=
17118 -if test "$GCC" = no; then
17119 -  case $host_os in
17120 -  sco3.2v5*)
17121 -    lt_prog_cc_shlib='-belf'
17122 -    ;;
17123 -  esac
17124 -fi
17125 -if test -n "$lt_prog_cc_shlib"; then
17126 -  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
17127 -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
17128 -  if echo "$old_CC $old_CFLAGS " | grep "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
17129 -  else
17130 -    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
17131 -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
17132 -    lt_cv_prog_cc_can_build_shared=no
17133 -  fi
17134 -fi
17135 -
17136 -
17137 -#
17138 -# Check to make sure the static flag actually works.
17139 -#
17140 -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
17141 -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
17142 -if test "${lt_prog_compiler_static_works+set}" = set; then
17143 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17144 -else
17145 -  lt_prog_compiler_static_works=no
17146 -   save_LDFLAGS="$LDFLAGS"
17147 -   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
17148 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17149 -   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17150 -     # The compiler can only warn and ignore the option if not recognized
17151 -     # So say no if there are warnings
17152 -     if test -s conftest.err; then
17153 -       # Append any errors to the config.log.
17154 -       cat conftest.err 1>&5
17155 -     else
17156 -       lt_prog_compiler_static_works=yes
17157 -     fi
17158 -   fi
17159 -   $rm conftest*
17160 -   LDFLAGS="$save_LDFLAGS"
17161 -
17162 -fi
17163 -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17164 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17165 -
17166 -if test x"$lt_prog_compiler_static_works" = xyes; then
17167 -    :
17168 -else
17169 -    lt_prog_compiler_static=
17170 -fi
17171 +# save warnings/boilerplate of simple test code
17172 +ac_outfile=conftest.$ac_objext
17173 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17174 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17175 +_lt_compiler_boilerplate=`cat conftest.err`
17176 +$rm conftest*
17177  
17178 +ac_outfile=conftest.$ac_objext
17179 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
17180 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17181 +_lt_linker_boilerplate=`cat conftest.err`
17182 +$rm -r conftest*
17183  
17184  
17185  
17186 @@ -6298,14 +7535,14 @@ if test "$GCC" = yes; then
17187    lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17188  
17189  
17190 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17191 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17192 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17193 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17194  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17195 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17196 +  $as_echo_n "(cached) " >&6
17197  else
17198    lt_cv_prog_compiler_rtti_exceptions=no
17199    ac_outfile=conftest.$ac_objext
17200 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17201 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17202     lt_compiler_flag="-fno-rtti -fno-exceptions"
17203     # Insert the option either (1) after the last *FLAGS variable, or
17204     # (2) before a word containing "conftest.", or (3) at the end.
17205 @@ -6313,26 +7550,28 @@ else
17206     # with a dollar sign (not a hyphen), so the echo should work correctly.
17207     # The option is referenced via a variable to avoid confusing sed.
17208     lt_compile=`echo "$ac_compile" | $SED \
17209 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17210 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17211     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17212     -e 's:$: $lt_compiler_flag:'`
17213 -   (eval echo "\"\$as_me:6319: $lt_compile\"" >&5)
17214 +   (eval echo "\"\$as_me:7556: $lt_compile\"" >&5)
17215     (eval "$lt_compile" 2>conftest.err)
17216     ac_status=$?
17217     cat conftest.err >&5
17218 -   echo "$as_me:6323: \$? = $ac_status" >&5
17219 +   echo "$as_me:7560: \$? = $ac_status" >&5
17220     if (exit $ac_status) && test -s "$ac_outfile"; then
17221       # The compiler can only warn and ignore the option if not recognized
17222 -     # So say no if there are warnings
17223 -     if test ! -s conftest.err; then
17224 +     # So say no if there are warnings other than the usual output.
17225 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17226 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17227 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17228         lt_cv_prog_compiler_rtti_exceptions=yes
17229       fi
17230     fi
17231     $rm conftest*
17232  
17233  fi
17234 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17235 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17236 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17237 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17238  
17239  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17240      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17241 @@ -6346,8 +7585,8 @@ lt_prog_compiler_wl=
17242  lt_prog_compiler_pic=
17243  lt_prog_compiler_static=
17244  
17245 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17246 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17247 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17248 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17249  
17250    if test "$GCC" = yes; then
17251      lt_prog_compiler_wl='-Wl,'
17252 @@ -6369,13 +7608,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17253        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17254        ;;
17255  
17256 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17257 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17258        # PIC is the default for these OSes.
17259        ;;
17260  
17261 -    mingw* | pw32* | os2*)
17262 +    mingw* | cygwin* | pw32* | os2*)
17263        # This hack is so that the source file can tell whether it is being
17264        # built for inclusion in a dll (and should export symbols for example).
17265 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17266 +      # (--disable-auto-import) libraries
17267        lt_prog_compiler_pic='-DDLL_EXPORT'
17268        ;;
17269  
17270 @@ -6385,6 +7626,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17271        lt_prog_compiler_pic='-fno-common'
17272        ;;
17273  
17274 +    interix[3-9]*)
17275 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17276 +      # Instead, we relocate shared libraries at runtime.
17277 +      ;;
17278 +
17279      msdosdjgpp*)
17280        # Just because we use GCC doesn't mean we suddenly get shared libraries
17281        # on systems that don't support them.
17282 @@ -6401,7 +7647,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17283      hpux*)
17284        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17285        # not for PA HP-UX.
17286 -      case "$host_cpu" in
17287 +      case $host_cpu in
17288        hppa*64*|ia64*)
17289         # +Z the default
17290         ;;
17291 @@ -6427,8 +7673,18 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17292         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17293        fi
17294        ;;
17295 +      darwin*)
17296 +        # PIC is the default on this platform
17297 +        # Common symbols not allowed in MH_DYLIB files
17298 +       case $cc_basename in
17299 +         xlc*)
17300 +         lt_prog_compiler_pic='-qnocommon'
17301 +         lt_prog_compiler_wl='-Wl,'
17302 +         ;;
17303 +       esac
17304 +       ;;
17305  
17306 -    mingw* | pw32* | os2*)
17307 +    mingw* | cygwin* | pw32* | os2*)
17308        # This hack is so that the source file can tell whether it is being
17309        # built for inclusion in a dll (and should export symbols for example).
17310        lt_prog_compiler_pic='-DDLL_EXPORT'
17311 @@ -6438,7 +7694,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17312        lt_prog_compiler_wl='-Wl,'
17313        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17314        # not for PA HP-UX.
17315 -      case "$host_cpu" in
17316 +      case $host_cpu in
17317        hppa*64*|ia64*)
17318         # +Z the default
17319         ;;
17320 @@ -6461,18 +7717,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17321        lt_prog_compiler_static='-Bstatic'
17322        ;;
17323  
17324 -    linux*)
17325 -      case $CC in
17326 +    linux* | k*bsd*-gnu)
17327 +      case $cc_basename in
17328        icc* | ecc*)
17329         lt_prog_compiler_wl='-Wl,'
17330         lt_prog_compiler_pic='-KPIC'
17331         lt_prog_compiler_static='-static'
17332          ;;
17333 +      pgcc* | pgf77* | pgf90* | pgf95*)
17334 +        # Portland Group compilers (*not* the Pentium gcc compiler,
17335 +       # which looks to be a dead project)
17336 +       lt_prog_compiler_wl='-Wl,'
17337 +       lt_prog_compiler_pic='-fpic'
17338 +       lt_prog_compiler_static='-Bstatic'
17339 +        ;;
17340        ccc*)
17341          lt_prog_compiler_wl='-Wl,'
17342          # All Alpha code is PIC.
17343          lt_prog_compiler_static='-non_shared'
17344          ;;
17345 +      *)
17346 +        case `$CC -V 2>&1 | sed 5q` in
17347 +       *Sun\ C*)
17348 +         # Sun C 5.9
17349 +         lt_prog_compiler_pic='-KPIC'
17350 +         lt_prog_compiler_static='-Bstatic'
17351 +         lt_prog_compiler_wl='-Wl,'
17352 +         ;;
17353 +       *Sun\ F*)
17354 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
17355 +         lt_prog_compiler_pic='-KPIC'
17356 +         lt_prog_compiler_static='-Bstatic'
17357 +         lt_prog_compiler_wl=''
17358 +         ;;
17359 +       esac
17360 +       ;;
17361        esac
17362        ;;
17363  
17364 @@ -6482,15 +7761,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17365        lt_prog_compiler_static='-non_shared'
17366        ;;
17367  
17368 -    sco3.2v5*)
17369 -      lt_prog_compiler_pic='-Kpic'
17370 -      lt_prog_compiler_static='-dn'
17371 +    rdos*)
17372 +      lt_prog_compiler_static='-non_shared'
17373        ;;
17374  
17375      solaris*)
17376 -      lt_prog_compiler_wl='-Wl,'
17377        lt_prog_compiler_pic='-KPIC'
17378        lt_prog_compiler_static='-Bstatic'
17379 +      case $cc_basename in
17380 +      f77* | f90* | f95*)
17381 +       lt_prog_compiler_wl='-Qoption ld ';;
17382 +      *)
17383 +       lt_prog_compiler_wl='-Wl,';;
17384 +      esac
17385        ;;
17386  
17387      sunos4*)
17388 @@ -6499,7 +7782,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17389        lt_prog_compiler_static='-Bstatic'
17390        ;;
17391  
17392 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17393 +    sysv4 | sysv4.2uw2* | sysv4.3*)
17394        lt_prog_compiler_wl='-Wl,'
17395        lt_prog_compiler_pic='-KPIC'
17396        lt_prog_compiler_static='-Bstatic'
17397 @@ -6512,6 +7795,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17398        fi
17399        ;;
17400  
17401 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17402 +      lt_prog_compiler_wl='-Wl,'
17403 +      lt_prog_compiler_pic='-KPIC'
17404 +      lt_prog_compiler_static='-Bstatic'
17405 +      ;;
17406 +
17407 +    unicos*)
17408 +      lt_prog_compiler_wl='-Wl,'
17409 +      lt_prog_compiler_can_build_shared=no
17410 +      ;;
17411 +
17412      uts4*)
17413        lt_prog_compiler_pic='-pic'
17414        lt_prog_compiler_static='-Bstatic'
17415 @@ -6523,22 +7817,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17416      esac
17417    fi
17418  
17419 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17420 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17421 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17422 +$as_echo "$lt_prog_compiler_pic" >&6; }
17423  
17424  #
17425  # Check to make sure the PIC flag actually works.
17426  #
17427  if test -n "$lt_prog_compiler_pic"; then
17428  
17429 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17430 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17431 -if test "${lt_prog_compiler_pic_works+set}" = set; then
17432 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17433 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17434 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17435 +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17436 +  $as_echo_n "(cached) " >&6
17437  else
17438 -  lt_prog_compiler_pic_works=no
17439 +  lt_cv_prog_compiler_pic_works=no
17440    ac_outfile=conftest.$ac_objext
17441 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17442 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17443     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17444     # Insert the option either (1) after the last *FLAGS variable, or
17445     # (2) before a word containing "conftest.", or (3) at the end.
17446 @@ -6546,28 +7840,30 @@ else
17447     # with a dollar sign (not a hyphen), so the echo should work correctly.
17448     # The option is referenced via a variable to avoid confusing sed.
17449     lt_compile=`echo "$ac_compile" | $SED \
17450 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17451 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17452     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17453     -e 's:$: $lt_compiler_flag:'`
17454 -   (eval echo "\"\$as_me:6552: $lt_compile\"" >&5)
17455 +   (eval echo "\"\$as_me:7846: $lt_compile\"" >&5)
17456     (eval "$lt_compile" 2>conftest.err)
17457     ac_status=$?
17458     cat conftest.err >&5
17459 -   echo "$as_me:6556: \$? = $ac_status" >&5
17460 +   echo "$as_me:7850: \$? = $ac_status" >&5
17461     if (exit $ac_status) && test -s "$ac_outfile"; then
17462       # The compiler can only warn and ignore the option if not recognized
17463 -     # So say no if there are warnings
17464 -     if test ! -s conftest.err; then
17465 -       lt_prog_compiler_pic_works=yes
17466 +     # So say no if there are warnings other than the usual output.
17467 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17468 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17469 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17470 +       lt_cv_prog_compiler_pic_works=yes
17471       fi
17472     fi
17473     $rm conftest*
17474  
17475  fi
17476 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17477 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17478 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17479 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17480  
17481 -if test x"$lt_prog_compiler_pic_works" = xyes; then
17482 +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17483      case $lt_prog_compiler_pic in
17484       "" | " "*) ;;
17485       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17486 @@ -6578,7 +7874,7 @@ else
17487  fi
17488  
17489  fi
17490 -case "$host_os" in
17491 +case $host_os in
17492    # For platforms which do not support PIC, -DPIC is meaningless:
17493    *djgpp*)
17494      lt_prog_compiler_pic=
17495 @@ -6588,17 +7884,59 @@ case "$host_os" in
17496      ;;
17497  esac
17498  
17499 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17500 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17501 +#
17502 +# Check to make sure the static flag actually works.
17503 +#
17504 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17505 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17506 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17507 +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17508 +  $as_echo_n "(cached) " >&6
17509 +else
17510 +  lt_cv_prog_compiler_static_works=no
17511 +   save_LDFLAGS="$LDFLAGS"
17512 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17513 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17514 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17515 +     # The linker can only warn and ignore the option if not recognized
17516 +     # So say no if there are warnings
17517 +     if test -s conftest.err; then
17518 +       # Append any errors to the config.log.
17519 +       cat conftest.err 1>&5
17520 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17521 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17522 +       if diff conftest.exp conftest.er2 >/dev/null; then
17523 +         lt_cv_prog_compiler_static_works=yes
17524 +       fi
17525 +     else
17526 +       lt_cv_prog_compiler_static_works=yes
17527 +     fi
17528 +   fi
17529 +   $rm -r conftest*
17530 +   LDFLAGS="$save_LDFLAGS"
17531 +
17532 +fi
17533 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17534 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17535 +
17536 +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17537 +    :
17538 +else
17539 +    lt_prog_compiler_static=
17540 +fi
17541 +
17542 +
17543 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17544 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17545  if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17546 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17547 +  $as_echo_n "(cached) " >&6
17548  else
17549    lt_cv_prog_compiler_c_o=no
17550     $rm -r conftest 2>/dev/null
17551     mkdir conftest
17552     cd conftest
17553     mkdir out
17554 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17555 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17556  
17557     lt_compiler_flag="-o out/conftest2.$ac_objext"
17558     # Insert the option either (1) after the last *FLAGS variable, or
17559 @@ -6606,23 +7944,25 @@ else
17560     # Note that $ac_compile itself does not contain backslashes and begins
17561     # with a dollar sign (not a hyphen), so the echo should work correctly.
17562     lt_compile=`echo "$ac_compile" | $SED \
17563 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17564 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17565     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17566     -e 's:$: $lt_compiler_flag:'`
17567 -   (eval echo "\"\$as_me:6612: $lt_compile\"" >&5)
17568 +   (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
17569     (eval "$lt_compile" 2>out/conftest.err)
17570     ac_status=$?
17571     cat out/conftest.err >&5
17572 -   echo "$as_me:6616: \$? = $ac_status" >&5
17573 +   echo "$as_me:7954: \$? = $ac_status" >&5
17574     if (exit $ac_status) && test -s out/conftest2.$ac_objext
17575     then
17576       # The compiler can only warn and ignore the option if not recognized
17577       # So say no if there are warnings
17578 -     if test ! -s out/conftest.err; then
17579 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17580 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17581 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17582         lt_cv_prog_compiler_c_o=yes
17583       fi
17584     fi
17585 -   chmod u+w .
17586 +   chmod u+w . 2>&5
17587     $rm conftest*
17588     # SGI C++ compiler will create directory out/ii_files/ for
17589     # template instantiation
17590 @@ -6633,34 +7973,34 @@ else
17591     $rm conftest*
17592  
17593  fi
17594 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17595 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17596 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17597 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17598  
17599  
17600  hard_links="nottested"
17601  if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17602    # do not overwrite the value of need_locks provided by the user
17603 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17604 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17605 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17606 +$as_echo_n "checking if we can lock with hard links... " >&6; }
17607    hard_links=yes
17608    $rm conftest*
17609    ln conftest.a conftest.b 2>/dev/null && hard_links=no
17610    touch conftest.a
17611    ln conftest.a conftest.b 2>&5 || hard_links=no
17612    ln conftest.a conftest.b 2>/dev/null && hard_links=no
17613 -  echo "$as_me:$LINENO: result: $hard_links" >&5
17614 -echo "${ECHO_T}$hard_links" >&6
17615 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17616 +$as_echo "$hard_links" >&6; }
17617    if test "$hard_links" = no; then
17618 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17619 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17620 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17621 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17622      need_locks=warn
17623    fi
17624  else
17625    need_locks=no
17626  fi
17627  
17628 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17629 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17630 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17631 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17632  
17633    runpath_var=
17634    allow_undefined_flag=
17635 @@ -6691,13 +8031,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17636    # it will be wrapped by ` (' and `)$', so one must not match beginning or
17637    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17638    # as well as any symbol that contains `d'.
17639 -  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17640 +  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17641    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17642    # platforms (ab)use it in PIC code, but their linkers get confused if
17643    # the symbol is explicitly referenced.  Since portable code cannot
17644    # rely on this symbol name, it's probably fine to never include it in
17645    # preloaded symbol tables.
17646 +  # Exclude shared library initialization/finalization symbols.
17647    extract_expsyms_cmds=
17648 +  # Just being paranoid about ensuring that cc_basename is set.
17649 +  for cc_temp in $compiler""; do
17650 +  case $cc_temp in
17651 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17652 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17653 +    \-*) ;;
17654 +    *) break;;
17655 +  esac
17656 +done
17657 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17658  
17659    case $host_os in
17660    cygwin* | mingw* | pw32*)
17661 @@ -6708,6 +8059,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17662        with_gnu_ld=no
17663      fi
17664      ;;
17665 +  interix*)
17666 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
17667 +    with_gnu_ld=yes
17668 +    ;;
17669    openbsd*)
17670      with_gnu_ld=no
17671      ;;
17672 @@ -6718,9 +8073,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17673      # If archive_cmds runs LD, not CC, wlarc should be empty
17674      wlarc='${wl}'
17675  
17676 +    # Set some defaults for GNU ld with shared library support. These
17677 +    # are reset later if shared libraries are not supported. Putting them
17678 +    # here allows them to be overridden if necessary.
17679 +    runpath_var=LD_RUN_PATH
17680 +    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17681 +    export_dynamic_flag_spec='${wl}--export-dynamic'
17682 +    # ancient GNU ld didn't support --whole-archive et. al.
17683 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17684 +       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17685 +      else
17686 +       whole_archive_flag_spec=
17687 +    fi
17688 +    supports_anon_versioning=no
17689 +    case `$LD -v 2>/dev/null` in
17690 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17691 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17692 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17693 +      *\ 2.11.*) ;; # other 2.11 versions
17694 +      *) supports_anon_versioning=yes ;;
17695 +    esac
17696 +
17697      # See if GNU ld supports shared libraries.
17698      case $host_os in
17699 -    aix3* | aix4* | aix5*)
17700 +    aix[3-9]*)
17701        # On AIX/PPC, the GNU linker is very broken
17702        if test "$host_cpu" != ia64; then
17703         ld_shlibs=no
17704 @@ -6768,10 +8144,10 @@ EOF
17705        allow_undefined_flag=unsupported
17706        always_export_symbols=no
17707        enable_shared_with_static_runtimes=yes
17708 -      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17709 +      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17710  
17711        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17712 -        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17713 +        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17714         # If the export-symbols file already is a .def file (1st line
17715         # is EXPORTS), use it as is; otherwise, prepend...
17716         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17717 @@ -6780,13 +8156,69 @@ EOF
17718           echo EXPORTS > $output_objdir/$soname.def;
17719           cat $export_symbols >> $output_objdir/$soname.def;
17720         fi~
17721 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17722 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17723 +      else
17724 +       ld_shlibs=no
17725 +      fi
17726 +      ;;
17727 +
17728 +    interix[3-9]*)
17729 +      hardcode_direct=no
17730 +      hardcode_shlibpath_var=no
17731 +      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17732 +      export_dynamic_flag_spec='${wl}-E'
17733 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17734 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
17735 +      # default) and relocated if they conflict, which is a slow very memory
17736 +      # consuming and fragmenting process.  To avoid this, we pick a random,
17737 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17738 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17739 +      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17740 +      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'
17741 +      ;;
17742 +
17743 +    gnu* | linux* | k*bsd*-gnu)
17744 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17745 +       tmp_addflag=
17746 +       case $cc_basename,$host_cpu in
17747 +       pgcc*)                          # Portland Group C compiler
17748 +         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'
17749 +         tmp_addflag=' $pic_flag'
17750 +         ;;
17751 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17752 +         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'
17753 +         tmp_addflag=' $pic_flag -Mnomain' ;;
17754 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17755 +         tmp_addflag=' -i_dynamic' ;;
17756 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17757 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
17758 +       ifc* | ifort*)                  # Intel Fortran compiler
17759 +         tmp_addflag=' -nofor_main' ;;
17760 +       esac
17761 +       case `$CC -V 2>&1 | sed 5q` in
17762 +       *Sun\ C*)                       # Sun C 5.9
17763 +         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'
17764 +         tmp_sharedflag='-G' ;;
17765 +       *Sun\ F*)                       # Sun Fortran 8.3
17766 +         tmp_sharedflag='-G' ;;
17767 +       *)
17768 +         tmp_sharedflag='-shared' ;;
17769 +       esac
17770 +       archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17771 +
17772 +       if test $supports_anon_versioning = yes; then
17773 +         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17774 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17775 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
17776 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17777 +       fi
17778 +       link_all_deplibs=no
17779        else
17780         ld_shlibs=no
17781        fi
17782        ;;
17783  
17784 -    netbsd*)
17785 +    netbsd* | netbsdelf*-gnu)
17786        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17787         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17788         wlarc=
17789 @@ -6796,7 +8228,7 @@ EOF
17790        fi
17791        ;;
17792  
17793 -    solaris* | sysv5*)
17794 +    solaris*)
17795        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17796         ld_shlibs=no
17797         cat <<EOF 1>&2
17798 @@ -6817,6 +8249,33 @@ EOF
17799        fi
17800        ;;
17801  
17802 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17803 +      case `$LD -v 2>&1` in
17804 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17805 +       ld_shlibs=no
17806 +       cat <<_LT_EOF 1>&2
17807 +
17808 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17809 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
17810 +*** is disabling shared libraries support.  We urge you to upgrade GNU
17811 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17812 +*** your PATH or compiler configuration so that the native linker is
17813 +*** used, and then restart.
17814 +
17815 +_LT_EOF
17816 +       ;;
17817 +       *)
17818 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17819 +           hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17820 +           archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17821 +           archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17822 +         else
17823 +           ld_shlibs=no
17824 +         fi
17825 +       ;;
17826 +      esac
17827 +      ;;
17828 +
17829      sunos4*)
17830        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17831        wlarc=
17832 @@ -6824,31 +8283,6 @@ EOF
17833        hardcode_shlibpath_var=no
17834        ;;
17835  
17836 -  linux*)
17837 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17838 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17839 -       archive_cmds="$tmp_archive_cmds"
17840 -      supports_anon_versioning=no
17841 -      case `$LD -v 2>/dev/null` in
17842 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17843 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17844 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17845 -        *\ 2.11.*) ;; # other 2.11 versions
17846 -        *) supports_anon_versioning=yes ;;
17847 -      esac
17848 -      if test $supports_anon_versioning = yes; then
17849 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17850 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17851 -$echo "local: *; };" >> $output_objdir/$libname.ver~
17852 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17853 -      else
17854 -        archive_expsym_cmds="$tmp_archive_cmds"
17855 -      fi
17856 -    else
17857 -      ld_shlibs=no
17858 -    fi
17859 -    ;;
17860 -
17861      *)
17862        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17863         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17864 @@ -6859,16 +8293,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17865        ;;
17866      esac
17867  
17868 -    if test "$ld_shlibs" = yes; then
17869 -      runpath_var=LD_RUN_PATH
17870 -      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17871 -      export_dynamic_flag_spec='${wl}--export-dynamic'
17872 -      # ancient GNU ld didn't support --whole-archive et. al.
17873 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17874 -       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17875 -      else
17876 -       whole_archive_flag_spec=
17877 -      fi
17878 +    if test "$ld_shlibs" = no; then
17879 +      runpath_var=
17880 +      hardcode_libdir_flag_spec=
17881 +      export_dynamic_flag_spec=
17882 +      whole_archive_flag_spec=
17883      fi
17884    else
17885      # PORTME fill in a description of your system's linker (not GNU ld)
17886 @@ -6880,14 +8309,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17887        # Note: this linker hardcodes the directories in LIBPATH if there
17888        # are no directories specified by -L.
17889        hardcode_minus_L=yes
17890 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
17891 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17892         # Neither direct hardcoding nor static linking is supported with a
17893         # broken collect2.
17894         hardcode_direct=unsupported
17895        fi
17896        ;;
17897  
17898 -    aix4* | aix5*)
17899 +    aix[4-9]*)
17900        if test "$host_cpu" = ia64; then
17901         # On IA64, the linker does run time linking by default, so we don't
17902         # have to do anything special.
17903 @@ -6907,13 +8336,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17904         # Test if we are trying to use run time linking or normal
17905         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17906         # need to do runtime linking.
17907 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17908 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17909           for ld_flag in $LDFLAGS; do
17910           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17911             aix_use_runtimelinking=yes
17912             break
17913           fi
17914           done
17915 +         ;;
17916         esac
17917  
17918         exp_sym_flag='-bexport'
17919 @@ -6932,7 +8362,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17920        link_all_deplibs=yes
17921  
17922        if test "$GCC" = yes; then
17923 -       case $host_os in aix4.012|aix4.012.*)
17924 +       case $host_os in aix4.[012]|aix4.[012].*)
17925         # We only want to do this on AIX 4.2 and lower, the check
17926         # below for broken collect2 doesn't work under 4.3+
17927           collect2name=`${CC} -print-prog-name=collect2`
17928 @@ -6940,7 +8370,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17929            strings "$collect2name" | grep resolve_lib_name >/dev/null
17930           then
17931           # We have reworked collect2
17932 -         hardcode_direct=yes
17933 +         :
17934           else
17935           # We have old collect2
17936           hardcode_direct=unsupported
17937 @@ -6951,8 +8381,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17938           hardcode_libdir_flag_spec='-L$libdir'
17939           hardcode_libdir_separator=
17940           fi
17941 +         ;;
17942         esac
17943         shared_flag='-shared'
17944 +       if test "$aix_use_runtimelinking" = yes; then
17945 +         shared_flag="$shared_flag "'${wl}-G'
17946 +       fi
17947        else
17948         # not using gcc
17949         if test "$host_cpu" = ia64; then
17950 @@ -6960,11 +8394,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17951         # chokes on -Wl,-G. The following line is correct:
17952           shared_flag='-G'
17953         else
17954 -       if test "$aix_use_runtimelinking" = yes; then
17955 +         if test "$aix_use_runtimelinking" = yes; then
17956             shared_flag='${wl}-G'
17957           else
17958             shared_flag='${wl}-bM:SRE'
17959 -       fi
17960 +         fi
17961         fi
17962        fi
17963  
17964 @@ -6992,49 +8426,58 @@ main ()
17965  }
17966  _ACEOF
17967  rm -f conftest.$ac_objext conftest$ac_exeext
17968 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17969 -  (eval $ac_link) 2>conftest.er1
17970 +if { (ac_try="$ac_link"
17971 +case "(($ac_try" in
17972 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 +  *) ac_try_echo=$ac_try;;
17974 +esac
17975 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17976 +$as_echo "$ac_try_echo") >&5
17977 +  (eval "$ac_link") 2>conftest.er1
17978    ac_status=$?
17979    grep -v '^ *+' conftest.er1 >conftest.err
17980    rm -f conftest.er1
17981    cat conftest.err >&5
17982 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 -  (exit $ac_status); } &&
17984 -        { ac_try='test -z "$ac_c_werror_flag"
17985 -                        || test ! -s conftest.err'
17986 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 -  (eval $ac_try) 2>&5
17988 -  ac_status=$?
17989 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 -  (exit $ac_status); }; } &&
17991 -        { ac_try='test -s conftest$ac_exeext'
17992 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 -  (eval $ac_try) 2>&5
17994 -  ac_status=$?
17995 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 -  (exit $ac_status); }; }; then
17997 -
17998 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17999 -}'`
18000 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 +  (exit $ac_status); } && {
18002 +        test -z "$ac_c_werror_flag" ||
18003 +        test ! -s conftest.err
18004 +       } && test -s conftest$ac_exeext && {
18005 +        test "$cross_compiling" = yes ||
18006 +        $as_test_x conftest$ac_exeext
18007 +       }; then
18008 +
18009 +lt_aix_libpath_sed='
18010 +    /Import File Strings/,/^$/ {
18011 +       /^0/ {
18012 +           s/^0  *\(.*\)$/\1/
18013 +           p
18014 +       }
18015 +    }'
18016 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18017  # Check for a 64-bit object if we didn't find anything.
18018 -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; }
18019 -}'`; fi
18020 +if test -z "$aix_libpath"; then
18021 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18022 +fi
18023  else
18024 -  echo "$as_me: failed program was:" >&5
18025 +  $as_echo "$as_me: failed program was:" >&5
18026  sed 's/^/| /' conftest.$ac_ext >&5
18027  
18028 +
18029  fi
18030 -rm -f conftest.err conftest.$ac_objext \
18031 +
18032 +rm -rf conftest.dSYM
18033 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18034        conftest$ac_exeext conftest.$ac_ext
18035  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18036  
18037         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18038 -       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"
18039 +       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"
18040         else
18041         if test "$host_cpu" = ia64; then
18042           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18043           allow_undefined_flag="-z nodefs"
18044 -         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"
18045 +         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"
18046         else
18047          # Determine the default libpath from the value encoded in an empty executable.
18048          cat >conftest.$ac_ext <<_ACEOF
18049 @@ -7053,39 +8496,48 @@ main ()
18050  }
18051  _ACEOF
18052  rm -f conftest.$ac_objext conftest$ac_exeext
18053 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18054 -  (eval $ac_link) 2>conftest.er1
18055 +if { (ac_try="$ac_link"
18056 +case "(($ac_try" in
18057 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 +  *) ac_try_echo=$ac_try;;
18059 +esac
18060 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18061 +$as_echo "$ac_try_echo") >&5
18062 +  (eval "$ac_link") 2>conftest.er1
18063    ac_status=$?
18064    grep -v '^ *+' conftest.er1 >conftest.err
18065    rm -f conftest.er1
18066    cat conftest.err >&5
18067 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 -  (exit $ac_status); } &&
18069 -        { ac_try='test -z "$ac_c_werror_flag"
18070 -                        || test ! -s conftest.err'
18071 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 -  (eval $ac_try) 2>&5
18073 -  ac_status=$?
18074 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 -  (exit $ac_status); }; } &&
18076 -        { ac_try='test -s conftest$ac_exeext'
18077 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 -  (eval $ac_try) 2>&5
18079 -  ac_status=$?
18080 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 -  (exit $ac_status); }; }; then
18082 -
18083 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18084 -}'`
18085 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 +  (exit $ac_status); } && {
18087 +        test -z "$ac_c_werror_flag" ||
18088 +        test ! -s conftest.err
18089 +       } && test -s conftest$ac_exeext && {
18090 +        test "$cross_compiling" = yes ||
18091 +        $as_test_x conftest$ac_exeext
18092 +       }; then
18093 +
18094 +lt_aix_libpath_sed='
18095 +    /Import File Strings/,/^$/ {
18096 +       /^0/ {
18097 +           s/^0  *\(.*\)$/\1/
18098 +           p
18099 +       }
18100 +    }'
18101 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18102  # Check for a 64-bit object if we didn't find anything.
18103 -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; }
18104 -}'`; fi
18105 +if test -z "$aix_libpath"; then
18106 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18107 +fi
18108  else
18109 -  echo "$as_me: failed program was:" >&5
18110 +  $as_echo "$as_me: failed program was:" >&5
18111  sed 's/^/| /' conftest.$ac_ext >&5
18112  
18113 +
18114  fi
18115 -rm -f conftest.err conftest.$ac_objext \
18116 +
18117 +rm -rf conftest.dSYM
18118 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119        conftest$ac_exeext conftest.$ac_ext
18120  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18121  
18122 @@ -7094,13 +8546,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18123           # -berok will link without error, but may produce a broken library.
18124           no_undefined_flag=' ${wl}-bernotok'
18125           allow_undefined_flag=' ${wl}-berok'
18126 -         # -bexpall does not export symbols beginning with underscore (_)
18127 -         always_export_symbols=yes
18128           # Exported symbols can be pulled into shared objects from archives
18129 -         whole_archive_flag_spec=' '
18130 +         whole_archive_flag_spec='$convenience'
18131           archive_cmds_need_lc=yes
18132 -         # This is similar to how AIX traditionally builds it's shared libraries.
18133 -         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18134 +         # This is similar to how AIX traditionally builds its shared libraries.
18135 +         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'
18136         fi
18137        fi
18138        ;;
18139 @@ -7113,7 +8563,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18140        ld_shlibs=no
18141        ;;
18142  
18143 -    bsdi4*)
18144 +    bsdi[45]*)
18145        export_dynamic_flag_spec=-rdynamic
18146        ;;
18147  
18148 @@ -7133,58 +8583,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18149        # The linker will automatically build a .lib file if we build a DLL.
18150        old_archive_From_new_cmds='true'
18151        # FIXME: Should let the user specify the lib program.
18152 -      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
18153 +      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18154        fix_srcfile_path='`cygpath -w "$srcfile"`'
18155        enable_shared_with_static_runtimes=yes
18156        ;;
18157  
18158      darwin* | rhapsody*)
18159 -    if test "$GXX" = yes ; then
18160 -      archive_cmds_need_lc=no
18161 -      case "$host_os" in
18162 -      rhapsody* | darwin1.[012])
18163 -       allow_undefined_flag='-undefined suppress'
18164 -       ;;
18165 -      *) # Darwin 1.3 on
18166 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18167 -       allow_undefined_flag='-flat_namespace -undefined suppress'
18168 -      else
18169 -        case ${MACOSX_DEPLOYMENT_TARGET} in
18170 -          10.[012])
18171 -            allow_undefined_flag='-flat_namespace -undefined suppress'
18172 -            ;;
18173 -          10.*)
18174 -            allow_undefined_flag='-undefined dynamic_lookup'
18175 -            ;;
18176 -        esac
18177 -      fi
18178 -       ;;
18179 +      case $host_os in
18180 +        rhapsody* | darwin1.[012])
18181 +         allow_undefined_flag='${wl}-undefined ${wl}suppress'
18182 +         ;;
18183 +       *) # Darwin 1.3 on
18184 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18185 +           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18186 +         else
18187 +           case ${MACOSX_DEPLOYMENT_TARGET} in
18188 +             10.[012])
18189 +               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18190 +               ;;
18191 +             10.*)
18192 +               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
18193 +               ;;
18194 +           esac
18195 +         fi
18196 +         ;;
18197        esac
18198 -       lt_int_apple_cc_single_mod=no
18199 -       output_verbose_link_cmd='echo'
18200 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18201 -         lt_int_apple_cc_single_mod=yes
18202 -       fi
18203 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18204 -         archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18205 -       else
18206 -        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18207 -      fi
18208 -      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18209 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18210 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18211 -          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18212 -        else
18213 -          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18214 -        fi
18215 -          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}'
18216 +      archive_cmds_need_lc=no
18217        hardcode_direct=no
18218        hardcode_automatic=yes
18219        hardcode_shlibpath_var=unsupported
18220 -      whole_archive_flag_spec='-all_load $convenience'
18221 +      whole_archive_flag_spec=''
18222        link_all_deplibs=yes
18223 +    if test "$GCC" = yes ; then
18224 +       output_verbose_link_cmd='echo'
18225 +        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18226 +        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18227 +        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}"
18228 +        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}"
18229      else
18230 -      ld_shlibs=no
18231 +      case $cc_basename in
18232 +        xlc*)
18233 +         output_verbose_link_cmd='echo'
18234 +         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18235 +         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18236 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18237 +         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}'
18238 +          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}'
18239 +          ;;
18240 +       *)
18241 +         ld_shlibs=no
18242 +          ;;
18243 +      esac
18244      fi
18245        ;;
18246  
18247 @@ -7218,7 +8667,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18248        ;;
18249  
18250      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18251 -    freebsd* | kfreebsd*-gnu)
18252 +    freebsd* | dragonfly*)
18253        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18254        hardcode_libdir_flag_spec='-R$libdir'
18255        hardcode_direct=yes
18256 @@ -7241,47 +8690,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18257        export_dynamic_flag_spec='${wl}-E'
18258        ;;
18259  
18260 -    hpux10* | hpux11*)
18261 +    hpux10*)
18262        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18263 -       case "$host_cpu" in
18264 -       hppa*64*|ia64*)
18265 +       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18266 +      else
18267 +       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18268 +      fi
18269 +      if test "$with_gnu_ld" = no; then
18270 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18271 +       hardcode_libdir_separator=:
18272 +
18273 +       hardcode_direct=yes
18274 +       export_dynamic_flag_spec='${wl}-E'
18275 +
18276 +       # hardcode_minus_L: Not really in the search PATH,
18277 +       # but as the default location of the library.
18278 +       hardcode_minus_L=yes
18279 +      fi
18280 +      ;;
18281 +
18282 +    hpux11*)
18283 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18284 +       case $host_cpu in
18285 +       hppa*64*)
18286           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18287           ;;
18288 +       ia64*)
18289 +         archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18290 +         ;;
18291         *)
18292           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18293           ;;
18294         esac
18295        else
18296 -       case "$host_cpu" in
18297 -       hppa*64*|ia64*)
18298 -         archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18299 +       case $host_cpu in
18300 +       hppa*64*)
18301 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302 +         ;;
18303 +       ia64*)
18304 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18305           ;;
18306         *)
18307 -         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18308 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18309           ;;
18310         esac
18311        fi
18312        if test "$with_gnu_ld" = no; then
18313 -       case "$host_cpu" in
18314 -       hppa*64*)
18315 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18316 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18317 +       hardcode_libdir_separator=:
18318 +
18319 +       case $host_cpu in
18320 +       hppa*64*|ia64*)
18321           hardcode_libdir_flag_spec_ld='+b $libdir'
18322 -         hardcode_libdir_separator=:
18323 -         hardcode_direct=no
18324 -         hardcode_shlibpath_var=no
18325 -         ;;
18326 -       ia64*)
18327 -         hardcode_libdir_flag_spec='-L$libdir'
18328           hardcode_direct=no
18329           hardcode_shlibpath_var=no
18330 -
18331 -         # hardcode_minus_L: Not really in the search PATH,
18332 -         # but as the default location of the library.
18333 -         hardcode_minus_L=yes
18334           ;;
18335         *)
18336 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18337 -         hardcode_libdir_separator=:
18338           hardcode_direct=yes
18339           export_dynamic_flag_spec='${wl}-E'
18340  
18341 @@ -7305,7 +8769,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18342        link_all_deplibs=yes
18343        ;;
18344  
18345 -    netbsd*)
18346 +    netbsd* | netbsdelf*-gnu)
18347        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18348         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18349        else
18350 @@ -7325,23 +8789,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18351        ;;
18352  
18353      openbsd*)
18354 -      hardcode_direct=yes
18355 -      hardcode_shlibpath_var=no
18356 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18357 -       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18358 -       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18359 -       export_dynamic_flag_spec='${wl}-E'
18360 +      if test -f /usr/libexec/ld.so; then
18361 +       hardcode_direct=yes
18362 +       hardcode_shlibpath_var=no
18363 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18364 +         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18365 +         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18366 +         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18367 +         export_dynamic_flag_spec='${wl}-E'
18368 +       else
18369 +         case $host_os in
18370 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18371 +            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18372 +            hardcode_libdir_flag_spec='-R$libdir'
18373 +            ;;
18374 +          *)
18375 +            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18376 +            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18377 +            ;;
18378 +         esac
18379 +        fi
18380        else
18381 -       case $host_os in
18382 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18383 -          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18384 -          hardcode_libdir_flag_spec='-R$libdir'
18385 -          ;;
18386 -        *)
18387 -          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18388 -          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18389 -          ;;
18390 -       esac
18391 +       ld_shlibs=no
18392        fi
18393        ;;
18394  
18395 @@ -7374,7 +8843,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18396         allow_undefined_flag=' -expect_unresolved \*'
18397         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'
18398         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18399 -       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18400 +       $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'
18401  
18402         # Both c and cxx compiler support -rpath directly
18403         hardcode_libdir_flag_spec='-rpath $libdir'
18404 @@ -7382,21 +8851,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18405        hardcode_libdir_separator=:
18406        ;;
18407  
18408 -    sco3.2v5*)
18409 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18410 -      hardcode_shlibpath_var=no
18411 -      export_dynamic_flag_spec='${wl}-Bexport'
18412 -      runpath_var=LD_RUN_PATH
18413 -      hardcode_runpath_var=yes
18414 -      ;;
18415 -
18416      solaris*)
18417        no_undefined_flag=' -z text'
18418        if test "$GCC" = yes; then
18419 +       wlarc='${wl}'
18420         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18421         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18422           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18423        else
18424 +       wlarc=''
18425         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18426         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18427         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18428 @@ -7405,8 +8868,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18429        hardcode_shlibpath_var=no
18430        case $host_os in
18431        solaris2.[0-5] | solaris2.[0-5].*) ;;
18432 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18433 -       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18434 +      *)
18435 +       # The compiler driver will combine and reorder linker options,
18436 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
18437 +       # but is careful enough not to reorder.
18438 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
18439 +       if test "$GCC" = yes; then
18440 +         whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18441 +       else
18442 +         whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18443 +       fi
18444 +       ;;
18445        esac
18446        link_all_deplibs=yes
18447        ;;
18448 @@ -7463,36 +8935,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18449        fi
18450        ;;
18451  
18452 -    sysv4.2uw2*)
18453 -      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18454 -      hardcode_direct=yes
18455 -      hardcode_minus_L=no
18456 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18457 +      no_undefined_flag='${wl}-z,text'
18458 +      archive_cmds_need_lc=no
18459        hardcode_shlibpath_var=no
18460 -      hardcode_runpath_var=yes
18461 -      runpath_var=LD_RUN_PATH
18462 -      ;;
18463 +      runpath_var='LD_RUN_PATH'
18464  
18465 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18466 -      no_undefined_flag='${wl}-z ${wl}text'
18467        if test "$GCC" = yes; then
18468 -       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18469 +       archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18470 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18471        else
18472 -       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18473 +       archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18474 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18475        fi
18476 -      runpath_var='LD_RUN_PATH'
18477 -      hardcode_shlibpath_var=no
18478        ;;
18479  
18480 -    sysv5*)
18481 -      no_undefined_flag=' -z text'
18482 -      # $CC -shared without GNU ld will not create a library from C++
18483 -      # object files and a static libstdc++, better avoid it by now
18484 -      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18485 -      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18486 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18487 -      hardcode_libdir_flag_spec=
18488 +    sysv5* | sco3.2v5* | sco5v6*)
18489 +      # Note: We can NOT use -z defs as we might desire, because we do not
18490 +      # link with -lc, and that would cause any symbols used from libc to
18491 +      # always be unresolved, which means just about no library would
18492 +      # ever link correctly.  If we're not using GNU ld we use -z text
18493 +      # though, which does catch some bad symbols but isn't as heavy-handed
18494 +      # as -z defs.
18495 +      no_undefined_flag='${wl}-z,text'
18496 +      allow_undefined_flag='${wl}-z,nodefs'
18497 +      archive_cmds_need_lc=no
18498        hardcode_shlibpath_var=no
18499 +      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18500 +      hardcode_libdir_separator=':'
18501 +      link_all_deplibs=yes
18502 +      export_dynamic_flag_spec='${wl}-Bexport'
18503        runpath_var='LD_RUN_PATH'
18504 +
18505 +      if test "$GCC" = yes; then
18506 +       archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18507 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18508 +      else
18509 +       archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 +      fi
18512        ;;
18513  
18514      uts4*)
18515 @@ -7507,15 +8988,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18516      esac
18517    fi
18518  
18519 -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18520 -echo "${ECHO_T}$ld_shlibs" >&6
18521 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18522 +$as_echo "$ld_shlibs" >&6; }
18523  test "$ld_shlibs" = no && can_build_shared=no
18524  
18525 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18526 -if test "$GCC" = yes; then
18527 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18528 -fi
18529 -
18530  #
18531  # Do we need to explicitly link libc?
18532  #
18533 @@ -7533,21 +9009,22 @@ x|xyes)
18534        # Test whether the compiler implicitly links with -lc since on some
18535        # systems, -lgcc has to come before -lc. If gcc already passes -lc
18536        # to ld, don't add -lc before -lgcc.
18537 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18538 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18539 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18540 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18541        $rm conftest*
18542 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18543 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18544  
18545        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18546    (eval $ac_compile) 2>&5
18547    ac_status=$?
18548 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550    (exit $ac_status); } 2>conftest.err; then
18551          soname=conftest
18552          lib=conftest
18553          libobjs=conftest.$ac_objext
18554          deplibs=
18555          wl=$lt_prog_compiler_wl
18556 +       pic_flag=$lt_prog_compiler_pic
18557          compiler_flags=-v
18558          linker_flags=-v
18559          verstring=
18560 @@ -7558,7 +9035,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
18561          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18562    (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18563    ac_status=$?
18564 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566    (exit $ac_status); }
18567          then
18568           archive_cmds_need_lc=no
18569 @@ -7570,16 +9047,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
18570          cat conftest.err 1>&5
18571        fi
18572        $rm conftest*
18573 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18574 -echo "${ECHO_T}$archive_cmds_need_lc" >&6
18575 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18576 +$as_echo "$archive_cmds_need_lc" >&6; }
18577        ;;
18578      esac
18579    fi
18580    ;;
18581  esac
18582  
18583 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18584 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18585 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18586 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
18587  library_names_spec=
18588  libname_spec='lib$name'
18589  soname_spec=
18590 @@ -7593,17 +9070,55 @@ shlibpath_overrides_runpath=unknown
18591  version_type=none
18592  dynamic_linker="$host_os ld.so"
18593  sys_lib_dlsearch_path_spec="/lib /usr/lib"
18594 +
18595  if test "$GCC" = yes; then
18596 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18597 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18598 +  case $host_os in
18599 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18600 +    *) lt_awk_arg="/^libraries:/" ;;
18601 +  esac
18602 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18603 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
18604      # if the path contains ";" then we assume it to be the separator
18605      # otherwise default to the standard path separator (i.e. ":") - it is
18606      # assumed that no part of a normal pathname contains ";" but that should
18607      # okay in the real world where ";" in dirpaths is itself problematic.
18608 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18609 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18610    else
18611 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18612 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18613    fi
18614 +  # Ok, now we have the path, separated by spaces, we can step through it
18615 +  # and add multilib dir if necessary.
18616 +  lt_tmp_lt_search_path_spec=
18617 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18618 +  for lt_sys_path in $lt_search_path_spec; do
18619 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18620 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18621 +    else
18622 +      test -d "$lt_sys_path" && \
18623 +       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18624 +    fi
18625 +  done
18626 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
18627 +BEGIN {RS=" "; FS="/|\n";} {
18628 +  lt_foo="";
18629 +  lt_count=0;
18630 +  for (lt_i = NF; lt_i > 0; lt_i--) {
18631 +    if ($lt_i != "" && $lt_i != ".") {
18632 +      if ($lt_i == "..") {
18633 +        lt_count++;
18634 +      } else {
18635 +        if (lt_count == 0) {
18636 +          lt_foo="/" $lt_i lt_foo;
18637 +        } else {
18638 +          lt_count--;
18639 +        }
18640 +      }
18641 +    }
18642 +  }
18643 +  if (lt_foo != "") { lt_freq[lt_foo]++; }
18644 +  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18645 +}'`
18646 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
18647  else
18648    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18649  fi
18650 @@ -7624,7 +9139,7 @@ aix3*)
18651    soname_spec='${libname}${release}${shared_ext}$major'
18652    ;;
18653  
18654 -aix4* | aix5*)
18655 +aix[4-9]*)
18656    version_type=linux
18657    need_lib_prefix=no
18658    need_version=no
18659 @@ -7680,7 +9195,7 @@ beos*)
18660    shlibpath_var=LIBRARY_PATH
18661    ;;
18662  
18663 -bsdi4*)
18664 +bsdi[45]*)
18665    version_type=linux
18666    need_version=no
18667    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668 @@ -7708,7 +9223,8 @@ cygwin* | mingw* | pw32*)
18669        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18670        dldir=$destdir/`dirname \$dlpath`~
18671        test -d \$dldir || mkdir -p \$dldir~
18672 -      $install_prog $dir/$dlname \$dldir/$dlname'
18673 +      $install_prog $dir/$dlname \$dldir/$dlname~
18674 +      chmod a+x \$dldir/$dlname'
18675      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18676        dlpath=$dir/\$dldll~
18677         $rm \$dlpath'
18678 @@ -7738,7 +9254,7 @@ cygwin* | mingw* | pw32*)
18679        ;;
18680      pw32*)
18681        # pw32 DLLs use 'pw' prefix rather than 'lib'
18682 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18683 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18684        ;;
18685      esac
18686      ;;
18687 @@ -7761,13 +9277,9 @@ darwin* | rhapsody*)
18688    soname_spec='${libname}${release}${major}$shared_ext'
18689    shlibpath_overrides_runpath=yes
18690    shlibpath_var=DYLD_LIBRARY_PATH
18691 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18692 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18693 -  if test "$GCC" = yes; then
18694 -    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"`
18695 -  else
18696 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18697 -  fi
18698 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18699 +
18700 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18701    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18702    ;;
18703  
18704 @@ -7784,20 +9296,17 @@ freebsd1*)
18705    dynamic_linker=no
18706    ;;
18707  
18708 -kfreebsd*-gnu)
18709 -  version_type=linux
18710 -  need_lib_prefix=no
18711 -  need_version=no
18712 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18713 -  soname_spec='${libname}${release}${shared_ext}$major'
18714 -  shlibpath_var=LD_LIBRARY_PATH
18715 -  shlibpath_overrides_runpath=no
18716 -  hardcode_into_libs=yes
18717 -  dynamic_linker='GNU ld.so'
18718 -  ;;
18719 -
18720 -freebsd*)
18721 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18722 +freebsd* | dragonfly*)
18723 +  # DragonFly does not have aout.  When/if they implement a new
18724 +  # versioning mechanism, adjust this.
18725 +  if test -x /usr/bin/objformat; then
18726 +    objformat=`/usr/bin/objformat`
18727 +  else
18728 +    case $host_os in
18729 +    freebsd[123]*) objformat=aout ;;
18730 +    *) objformat=elf ;;
18731 +    esac
18732 +  fi
18733    version_type=freebsd-$objformat
18734    case $version_type in
18735      freebsd-elf*)
18736 @@ -7815,14 +9324,19 @@ freebsd*)
18737    freebsd2*)
18738      shlibpath_overrides_runpath=yes
18739      ;;
18740 -  freebsd3.01* | freebsdelf3.01*)
18741 +  freebsd3.[01]* | freebsdelf3.[01]*)
18742      shlibpath_overrides_runpath=yes
18743      hardcode_into_libs=yes
18744      ;;
18745 -  *) # from 3.2 on
18746 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18747 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18748      shlibpath_overrides_runpath=no
18749      hardcode_into_libs=yes
18750      ;;
18751 +  *) # from 4.6 on, and DragonFly
18752 +    shlibpath_overrides_runpath=yes
18753 +    hardcode_into_libs=yes
18754 +    ;;
18755    esac
18756    ;;
18757  
18758 @@ -7842,7 +9356,7 @@ hpux9* | hpux10* | hpux11*)
18759    version_type=sunos
18760    need_lib_prefix=no
18761    need_version=no
18762 -  case "$host_cpu" in
18763 +  case $host_cpu in
18764    ia64*)
18765      shrext_cmds='.so'
18766      hardcode_into_libs=yes
18767 @@ -7882,6 +9396,18 @@ hpux9* | hpux10* | hpux11*)
18768    postinstall_cmds='chmod 555 $lib'
18769    ;;
18770  
18771 +interix[3-9]*)
18772 +  version_type=linux
18773 +  need_lib_prefix=no
18774 +  need_version=no
18775 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18776 +  soname_spec='${libname}${release}${shared_ext}$major'
18777 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18778 +  shlibpath_var=LD_LIBRARY_PATH
18779 +  shlibpath_overrides_runpath=no
18780 +  hardcode_into_libs=yes
18781 +  ;;
18782 +
18783  irix5* | irix6* | nonstopux*)
18784    case $host_os in
18785      nonstopux*) version_type=nonstopux ;;
18786 @@ -7925,7 +9451,7 @@ linux*oldld* | linux*aout* | linux*coff*)
18787    ;;
18788  
18789  # This must be Linux ELF.
18790 -linux*)
18791 +linux* | k*bsd*-gnu)
18792    version_type=linux
18793    need_lib_prefix=no
18794    need_version=no
18795 @@ -7939,31 +9465,10 @@ linux*)
18796    # before this can be enabled.
18797    hardcode_into_libs=yes
18798  
18799 -  # find out which ABI we are using
18800 -  libsuff=
18801 -  case "$host_cpu" in
18802 -  x86_64*|s390x*|powerpc64*)
18803 -    echo '#line 7946 "configure"' > conftest.$ac_ext
18804 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18805 -  (eval $ac_compile) 2>&5
18806 -  ac_status=$?
18807 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 -  (exit $ac_status); }; then
18809 -      case `/usr/bin/file conftest.$ac_objext` in
18810 -      *64-bit*)
18811 -        libsuff=64
18812 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18813 -        ;;
18814 -      esac
18815 -    fi
18816 -    rm -rf conftest*
18817 -    ;;
18818 -  esac
18819 -
18820    # Append ld.so.conf contents to the search path
18821    if test -f /etc/ld.so.conf; then
18822 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18823 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18824 +    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' ' '`
18825 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18826    fi
18827  
18828    # We used to test for /lib/ld.so.1 and disable shared libraries on
18829 @@ -7975,7 +9480,7 @@ linux*)
18830    dynamic_linker='GNU/Linux ld.so'
18831    ;;
18832  
18833 -knetbsd*-gnu)
18834 +netbsdelf*-gnu)
18835    version_type=linux
18836    need_lib_prefix=no
18837    need_version=no
18838 @@ -7984,7 +9489,7 @@ knetbsd*-gnu)
18839    shlibpath_var=LD_LIBRARY_PATH
18840    shlibpath_overrides_runpath=no
18841    hardcode_into_libs=yes
18842 -  dynamic_linker='GNU ld.so'
18843 +  dynamic_linker='NetBSD ld.elf_so'
18844    ;;
18845  
18846  netbsd*)
18847 @@ -8024,8 +9529,13 @@ nto-qnx*)
18848  
18849  openbsd*)
18850    version_type=sunos
18851 +  sys_lib_dlsearch_path_spec="/usr/lib"
18852    need_lib_prefix=no
18853 -  need_version=yes
18854 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18855 +  case $host_os in
18856 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18857 +    *)                         need_version=no  ;;
18858 +  esac
18859    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18860    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18861    shlibpath_var=LD_LIBRARY_PATH
18862 @@ -8063,11 +9573,8 @@ osf3* | osf4* | osf5*)
18863    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18864    ;;
18865  
18866 -sco3.2v5*)
18867 -  version_type=osf
18868 -  soname_spec='${libname}${release}${shared_ext}$major'
18869 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870 -  shlibpath_var=LD_LIBRARY_PATH
18871 +rdos*)
18872 +  dynamic_linker=no
18873    ;;
18874  
18875  solaris*)
18876 @@ -8095,7 +9602,7 @@ sunos4*)
18877    need_version=yes
18878    ;;
18879  
18880 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18881 +sysv4 | sysv4.3*)
18882    version_type=linux
18883    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884    soname_spec='${libname}${release}${shared_ext}$major'
18885 @@ -8128,6 +9635,29 @@ sysv4*MP*)
18886    fi
18887    ;;
18888  
18889 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18890 +  version_type=freebsd-elf
18891 +  need_lib_prefix=no
18892 +  need_version=no
18893 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18894 +  soname_spec='${libname}${release}${shared_ext}$major'
18895 +  shlibpath_var=LD_LIBRARY_PATH
18896 +  hardcode_into_libs=yes
18897 +  if test "$with_gnu_ld" = yes; then
18898 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18899 +    shlibpath_overrides_runpath=no
18900 +  else
18901 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18902 +    shlibpath_overrides_runpath=yes
18903 +    case $host_os in
18904 +      sco3.2v5*)
18905 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18906 +       ;;
18907 +    esac
18908 +  fi
18909 +  sys_lib_dlsearch_path_spec='/usr/lib'
18910 +  ;;
18911 +
18912  uts4*)
18913    version_type=linux
18914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915 @@ -8139,16 +9669,36 @@ uts4*)
18916    dynamic_linker=no
18917    ;;
18918  esac
18919 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18920 -echo "${ECHO_T}$dynamic_linker" >&6
18921 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18922 +$as_echo "$dynamic_linker" >&6; }
18923  test "$dynamic_linker" = no && can_build_shared=no
18924  
18925 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18926 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18927 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18928 +  $as_echo_n "(cached) " >&6
18929 +else
18930 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18931 +fi
18932 +
18933 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18934 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18935 +  $as_echo_n "(cached) " >&6
18936 +else
18937 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18938 +fi
18939 +
18940 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18941 +
18942 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18943 +if test "$GCC" = yes; then
18944 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18945 +fi
18946 +
18947 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18948 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18949  hardcode_action=
18950  if test -n "$hardcode_libdir_flag_spec" || \
18951 -   test -n "$runpath_var " || \
18952 -   test "X$hardcode_automatic"="Xyes" ; then
18953 +   test -n "$runpath_var" || \
18954 +   test "X$hardcode_automatic" = "Xyes" ; then
18955  
18956    # We can hardcode non-existant directories.
18957    if test "$hardcode_direct" != no &&
18958 @@ -8168,8 +9718,8 @@ else
18959    # directories.
18960    hardcode_action=unsupported
18961  fi
18962 -echo "$as_me:$LINENO: result: $hardcode_action" >&5
18963 -echo "${ECHO_T}$hardcode_action" >&6
18964 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
18965 +$as_echo "$hardcode_action" >&6; }
18966  
18967  if test "$hardcode_action" = relink; then
18968    # Fast installation is not supported
18969 @@ -8182,29 +9732,30 @@ fi
18970  
18971  striplib=
18972  old_striplib=
18973 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18974 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18975 +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18976 +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18977  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18978    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18979    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18980 -  echo "$as_me:$LINENO: result: yes" >&5
18981 -echo "${ECHO_T}yes" >&6
18982 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
18983 +$as_echo "yes" >&6; }
18984  else
18985  # FIXME - insert some real tests, host_os isn't really good enough
18986    case $host_os in
18987     darwin*)
18988         if test -n "$STRIP" ; then
18989           striplib="$STRIP -x"
18990 -         echo "$as_me:$LINENO: result: yes" >&5
18991 -echo "${ECHO_T}yes" >&6
18992 +         old_striplib="$STRIP -S"
18993 +         { $as_echo "$as_me:$LINENO: result: yes" >&5
18994 +$as_echo "yes" >&6; }
18995         else
18996 -  echo "$as_me:$LINENO: result: no" >&5
18997 -echo "${ECHO_T}no" >&6
18998 +  { $as_echo "$as_me:$LINENO: result: no" >&5
18999 +$as_echo "no" >&6; }
19000  fi
19001         ;;
19002     *)
19003 -  echo "$as_me:$LINENO: result: no" >&5
19004 -echo "${ECHO_T}no" >&6
19005 +  { $as_echo "$as_me:$LINENO: result: no" >&5
19006 +$as_echo "no" >&6; }
19007      ;;
19008    esac
19009  fi
19010 @@ -8236,10 +9787,10 @@ else
19011  
19012    darwin*)
19013    # if libdl is installed we need to link against it
19014 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19015 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19016 +    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19017 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
19018  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19019 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19020 +  $as_echo_n "(cached) " >&6
19021  else
19022    ac_check_lib_save_LIBS=$LIBS
19023  LIBS="-ldl  $LIBS"
19024 @@ -8250,57 +9801,58 @@ cat confdefs.h >>conftest.$ac_ext
19025  cat >>conftest.$ac_ext <<_ACEOF
19026  /* end confdefs.h.  */
19027  
19028 -/* Override any gcc2 internal prototype to avoid an error.  */
19029 +/* Override any GCC internal prototype to avoid an error.
19030 +   Use char because int might match the return type of a GCC
19031 +   builtin and then its argument prototype would still apply.  */
19032  #ifdef __cplusplus
19033  extern "C"
19034  #endif
19035 -/* We use char because int might match the return type of a gcc2
19036 -   builtin and then its argument prototype would still apply.  */
19037  char dlopen ();
19038  int
19039  main ()
19040  {
19041 -dlopen ();
19042 +return dlopen ();
19043    ;
19044    return 0;
19045  }
19046  _ACEOF
19047  rm -f conftest.$ac_objext conftest$ac_exeext
19048 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19049 -  (eval $ac_link) 2>conftest.er1
19050 +if { (ac_try="$ac_link"
19051 +case "(($ac_try" in
19052 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 +  *) ac_try_echo=$ac_try;;
19054 +esac
19055 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19056 +$as_echo "$ac_try_echo") >&5
19057 +  (eval "$ac_link") 2>conftest.er1
19058    ac_status=$?
19059    grep -v '^ *+' conftest.er1 >conftest.err
19060    rm -f conftest.er1
19061    cat conftest.err >&5
19062 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 -  (exit $ac_status); } &&
19064 -        { ac_try='test -z "$ac_c_werror_flag"
19065 -                        || test ! -s conftest.err'
19066 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 -  (eval $ac_try) 2>&5
19068 -  ac_status=$?
19069 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 -  (exit $ac_status); }; } &&
19071 -        { ac_try='test -s conftest$ac_exeext'
19072 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 -  (eval $ac_try) 2>&5
19074 -  ac_status=$?
19075 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 -  (exit $ac_status); }; }; then
19077 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 +  (exit $ac_status); } && {
19079 +        test -z "$ac_c_werror_flag" ||
19080 +        test ! -s conftest.err
19081 +       } && test -s conftest$ac_exeext && {
19082 +        test "$cross_compiling" = yes ||
19083 +        $as_test_x conftest$ac_exeext
19084 +       }; then
19085    ac_cv_lib_dl_dlopen=yes
19086  else
19087 -  echo "$as_me: failed program was:" >&5
19088 +  $as_echo "$as_me: failed program was:" >&5
19089  sed 's/^/| /' conftest.$ac_ext >&5
19090  
19091 -ac_cv_lib_dl_dlopen=no
19092 +       ac_cv_lib_dl_dlopen=no
19093  fi
19094 -rm -f conftest.err conftest.$ac_objext \
19095 +
19096 +rm -rf conftest.dSYM
19097 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19098        conftest$ac_exeext conftest.$ac_ext
19099  LIBS=$ac_check_lib_save_LIBS
19100  fi
19101 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19102 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19103 -if test $ac_cv_lib_dl_dlopen = yes; then
19104 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19105 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19106 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19107    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19108  else
19109  
19110 @@ -8313,10 +9865,10 @@ fi
19111     ;;
19112  
19113    *)
19114 -    echo "$as_me:$LINENO: checking for shl_load" >&5
19115 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19116 +    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
19117 +$as_echo_n "checking for shl_load... " >&6; }
19118  if test "${ac_cv_func_shl_load+set}" = set; then
19119 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19120 +  $as_echo_n "(cached) " >&6
19121  else
19122    cat >conftest.$ac_ext <<_ACEOF
19123  /* confdefs.h.  */
19124 @@ -8341,75 +9893,70 @@ cat >>conftest.$ac_ext <<_ACEOF
19125  
19126  #undef shl_load
19127  
19128 -/* Override any gcc2 internal prototype to avoid an error.  */
19129 +/* Override any GCC internal prototype to avoid an error.
19130 +   Use char because int might match the return type of a GCC
19131 +   builtin and then its argument prototype would still apply.  */
19132  #ifdef __cplusplus
19133  extern "C"
19134 -{
19135  #endif
19136 -/* We use char because int might match the return type of a gcc2
19137 -   builtin and then its argument prototype would still apply.  */
19138  char shl_load ();
19139  /* The GNU C library defines this for functions which it implements
19140      to always fail with ENOSYS.  Some functions are actually named
19141      something starting with __ and the normal name is an alias.  */
19142 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
19143 +#if defined __stub_shl_load || defined __stub___shl_load
19144  choke me
19145 -#else
19146 -char (*f) () = shl_load;
19147 -#endif
19148 -#ifdef __cplusplus
19149 -}
19150  #endif
19151  
19152  int
19153  main ()
19154  {
19155 -return f != shl_load;
19156 +return shl_load ();
19157    ;
19158    return 0;
19159  }
19160  _ACEOF
19161  rm -f conftest.$ac_objext conftest$ac_exeext
19162 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19163 -  (eval $ac_link) 2>conftest.er1
19164 +if { (ac_try="$ac_link"
19165 +case "(($ac_try" in
19166 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 +  *) ac_try_echo=$ac_try;;
19168 +esac
19169 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19170 +$as_echo "$ac_try_echo") >&5
19171 +  (eval "$ac_link") 2>conftest.er1
19172    ac_status=$?
19173    grep -v '^ *+' conftest.er1 >conftest.err
19174    rm -f conftest.er1
19175    cat conftest.err >&5
19176 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 -  (exit $ac_status); } &&
19178 -        { ac_try='test -z "$ac_c_werror_flag"
19179 -                        || test ! -s conftest.err'
19180 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 -  (eval $ac_try) 2>&5
19182 -  ac_status=$?
19183 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 -  (exit $ac_status); }; } &&
19185 -        { ac_try='test -s conftest$ac_exeext'
19186 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 -  (eval $ac_try) 2>&5
19188 -  ac_status=$?
19189 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 -  (exit $ac_status); }; }; then
19191 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 +  (exit $ac_status); } && {
19193 +        test -z "$ac_c_werror_flag" ||
19194 +        test ! -s conftest.err
19195 +       } && test -s conftest$ac_exeext && {
19196 +        test "$cross_compiling" = yes ||
19197 +        $as_test_x conftest$ac_exeext
19198 +       }; then
19199    ac_cv_func_shl_load=yes
19200  else
19201 -  echo "$as_me: failed program was:" >&5
19202 +  $as_echo "$as_me: failed program was:" >&5
19203  sed 's/^/| /' conftest.$ac_ext >&5
19204  
19205 -ac_cv_func_shl_load=no
19206 +       ac_cv_func_shl_load=no
19207  fi
19208 -rm -f conftest.err conftest.$ac_objext \
19209 +
19210 +rm -rf conftest.dSYM
19211 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19212        conftest$ac_exeext conftest.$ac_ext
19213  fi
19214 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19215 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19216 -if test $ac_cv_func_shl_load = yes; then
19217 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19218 +$as_echo "$ac_cv_func_shl_load" >&6; }
19219 +if test "x$ac_cv_func_shl_load" = x""yes; then
19220    lt_cv_dlopen="shl_load"
19221  else
19222 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19223 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19224 +  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19225 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
19226  if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19227 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19228 +  $as_echo_n "(cached) " >&6
19229  else
19230    ac_check_lib_save_LIBS=$LIBS
19231  LIBS="-ldld  $LIBS"
19232 @@ -8420,63 +9967,64 @@ cat confdefs.h >>conftest.$ac_ext
19233  cat >>conftest.$ac_ext <<_ACEOF
19234  /* end confdefs.h.  */
19235  
19236 -/* Override any gcc2 internal prototype to avoid an error.  */
19237 +/* Override any GCC internal prototype to avoid an error.
19238 +   Use char because int might match the return type of a GCC
19239 +   builtin and then its argument prototype would still apply.  */
19240  #ifdef __cplusplus
19241  extern "C"
19242  #endif
19243 -/* We use char because int might match the return type of a gcc2
19244 -   builtin and then its argument prototype would still apply.  */
19245  char shl_load ();
19246  int
19247  main ()
19248  {
19249 -shl_load ();
19250 +return shl_load ();
19251    ;
19252    return 0;
19253  }
19254  _ACEOF
19255  rm -f conftest.$ac_objext conftest$ac_exeext
19256 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257 -  (eval $ac_link) 2>conftest.er1
19258 +if { (ac_try="$ac_link"
19259 +case "(($ac_try" in
19260 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 +  *) ac_try_echo=$ac_try;;
19262 +esac
19263 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19264 +$as_echo "$ac_try_echo") >&5
19265 +  (eval "$ac_link") 2>conftest.er1
19266    ac_status=$?
19267    grep -v '^ *+' conftest.er1 >conftest.err
19268    rm -f conftest.er1
19269    cat conftest.err >&5
19270 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 -  (exit $ac_status); } &&
19272 -        { ac_try='test -z "$ac_c_werror_flag"
19273 -                        || test ! -s conftest.err'
19274 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 -  (eval $ac_try) 2>&5
19276 -  ac_status=$?
19277 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 -  (exit $ac_status); }; } &&
19279 -        { ac_try='test -s conftest$ac_exeext'
19280 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 -  (eval $ac_try) 2>&5
19282 -  ac_status=$?
19283 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 -  (exit $ac_status); }; }; then
19285 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 +  (exit $ac_status); } && {
19287 +        test -z "$ac_c_werror_flag" ||
19288 +        test ! -s conftest.err
19289 +       } && test -s conftest$ac_exeext && {
19290 +        test "$cross_compiling" = yes ||
19291 +        $as_test_x conftest$ac_exeext
19292 +       }; then
19293    ac_cv_lib_dld_shl_load=yes
19294  else
19295 -  echo "$as_me: failed program was:" >&5
19296 +  $as_echo "$as_me: failed program was:" >&5
19297  sed 's/^/| /' conftest.$ac_ext >&5
19298  
19299 -ac_cv_lib_dld_shl_load=no
19300 +       ac_cv_lib_dld_shl_load=no
19301  fi
19302 -rm -f conftest.err conftest.$ac_objext \
19303 +
19304 +rm -rf conftest.dSYM
19305 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19306        conftest$ac_exeext conftest.$ac_ext
19307  LIBS=$ac_check_lib_save_LIBS
19308  fi
19309 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19310 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19311 -if test $ac_cv_lib_dld_shl_load = yes; then
19312 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19313 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19314 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19315 +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
19316 +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19317  else
19318 -  echo "$as_me:$LINENO: checking for dlopen" >&5
19319 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19320 +  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
19321 +$as_echo_n "checking for dlopen... " >&6; }
19322  if test "${ac_cv_func_dlopen+set}" = set; then
19323 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19324 +  $as_echo_n "(cached) " >&6
19325  else
19326    cat >conftest.$ac_ext <<_ACEOF
19327  /* confdefs.h.  */
19328 @@ -8501,75 +10049,70 @@ cat >>conftest.$ac_ext <<_ACEOF
19329  
19330  #undef dlopen
19331  
19332 -/* Override any gcc2 internal prototype to avoid an error.  */
19333 +/* Override any GCC internal prototype to avoid an error.
19334 +   Use char because int might match the return type of a GCC
19335 +   builtin and then its argument prototype would still apply.  */
19336  #ifdef __cplusplus
19337  extern "C"
19338 -{
19339  #endif
19340 -/* We use char because int might match the return type of a gcc2
19341 -   builtin and then its argument prototype would still apply.  */
19342  char dlopen ();
19343  /* The GNU C library defines this for functions which it implements
19344      to always fail with ENOSYS.  Some functions are actually named
19345      something starting with __ and the normal name is an alias.  */
19346 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
19347 +#if defined __stub_dlopen || defined __stub___dlopen
19348  choke me
19349 -#else
19350 -char (*f) () = dlopen;
19351 -#endif
19352 -#ifdef __cplusplus
19353 -}
19354  #endif
19355  
19356  int
19357  main ()
19358  {
19359 -return f != dlopen;
19360 +return dlopen ();
19361    ;
19362    return 0;
19363  }
19364  _ACEOF
19365  rm -f conftest.$ac_objext conftest$ac_exeext
19366 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19367 -  (eval $ac_link) 2>conftest.er1
19368 +if { (ac_try="$ac_link"
19369 +case "(($ac_try" in
19370 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 +  *) ac_try_echo=$ac_try;;
19372 +esac
19373 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19374 +$as_echo "$ac_try_echo") >&5
19375 +  (eval "$ac_link") 2>conftest.er1
19376    ac_status=$?
19377    grep -v '^ *+' conftest.er1 >conftest.err
19378    rm -f conftest.er1
19379    cat conftest.err >&5
19380 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 -  (exit $ac_status); } &&
19382 -        { ac_try='test -z "$ac_c_werror_flag"
19383 -                        || test ! -s conftest.err'
19384 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 -  (eval $ac_try) 2>&5
19386 -  ac_status=$?
19387 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 -  (exit $ac_status); }; } &&
19389 -        { ac_try='test -s conftest$ac_exeext'
19390 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 -  (eval $ac_try) 2>&5
19392 -  ac_status=$?
19393 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 -  (exit $ac_status); }; }; then
19395 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 +  (exit $ac_status); } && {
19397 +        test -z "$ac_c_werror_flag" ||
19398 +        test ! -s conftest.err
19399 +       } && test -s conftest$ac_exeext && {
19400 +        test "$cross_compiling" = yes ||
19401 +        $as_test_x conftest$ac_exeext
19402 +       }; then
19403    ac_cv_func_dlopen=yes
19404  else
19405 -  echo "$as_me: failed program was:" >&5
19406 +  $as_echo "$as_me: failed program was:" >&5
19407  sed 's/^/| /' conftest.$ac_ext >&5
19408  
19409 -ac_cv_func_dlopen=no
19410 +       ac_cv_func_dlopen=no
19411  fi
19412 -rm -f conftest.err conftest.$ac_objext \
19413 +
19414 +rm -rf conftest.dSYM
19415 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416        conftest$ac_exeext conftest.$ac_ext
19417  fi
19418 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19419 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19420 -if test $ac_cv_func_dlopen = yes; then
19421 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19422 +$as_echo "$ac_cv_func_dlopen" >&6; }
19423 +if test "x$ac_cv_func_dlopen" = x""yes; then
19424    lt_cv_dlopen="dlopen"
19425  else
19426 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19427 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19428 +  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19429 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
19430  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19431 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19432 +  $as_echo_n "(cached) " >&6
19433  else
19434    ac_check_lib_save_LIBS=$LIBS
19435  LIBS="-ldl  $LIBS"
19436 @@ -8580,63 +10123,64 @@ cat confdefs.h >>conftest.$ac_ext
19437  cat >>conftest.$ac_ext <<_ACEOF
19438  /* end confdefs.h.  */
19439  
19440 -/* Override any gcc2 internal prototype to avoid an error.  */
19441 +/* Override any GCC internal prototype to avoid an error.
19442 +   Use char because int might match the return type of a GCC
19443 +   builtin and then its argument prototype would still apply.  */
19444  #ifdef __cplusplus
19445  extern "C"
19446  #endif
19447 -/* We use char because int might match the return type of a gcc2
19448 -   builtin and then its argument prototype would still apply.  */
19449  char dlopen ();
19450  int
19451  main ()
19452  {
19453 -dlopen ();
19454 +return dlopen ();
19455    ;
19456    return 0;
19457  }
19458  _ACEOF
19459  rm -f conftest.$ac_objext conftest$ac_exeext
19460 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461 -  (eval $ac_link) 2>conftest.er1
19462 +if { (ac_try="$ac_link"
19463 +case "(($ac_try" in
19464 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 +  *) ac_try_echo=$ac_try;;
19466 +esac
19467 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19468 +$as_echo "$ac_try_echo") >&5
19469 +  (eval "$ac_link") 2>conftest.er1
19470    ac_status=$?
19471    grep -v '^ *+' conftest.er1 >conftest.err
19472    rm -f conftest.er1
19473    cat conftest.err >&5
19474 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 -  (exit $ac_status); } &&
19476 -        { ac_try='test -z "$ac_c_werror_flag"
19477 -                        || test ! -s conftest.err'
19478 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 -  (eval $ac_try) 2>&5
19480 -  ac_status=$?
19481 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 -  (exit $ac_status); }; } &&
19483 -        { ac_try='test -s conftest$ac_exeext'
19484 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 -  (eval $ac_try) 2>&5
19486 -  ac_status=$?
19487 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 -  (exit $ac_status); }; }; then
19489 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 +  (exit $ac_status); } && {
19491 +        test -z "$ac_c_werror_flag" ||
19492 +        test ! -s conftest.err
19493 +       } && test -s conftest$ac_exeext && {
19494 +        test "$cross_compiling" = yes ||
19495 +        $as_test_x conftest$ac_exeext
19496 +       }; then
19497    ac_cv_lib_dl_dlopen=yes
19498  else
19499 -  echo "$as_me: failed program was:" >&5
19500 +  $as_echo "$as_me: failed program was:" >&5
19501  sed 's/^/| /' conftest.$ac_ext >&5
19502  
19503 -ac_cv_lib_dl_dlopen=no
19504 +       ac_cv_lib_dl_dlopen=no
19505  fi
19506 -rm -f conftest.err conftest.$ac_objext \
19507 +
19508 +rm -rf conftest.dSYM
19509 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19510        conftest$ac_exeext conftest.$ac_ext
19511  LIBS=$ac_check_lib_save_LIBS
19512  fi
19513 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19514 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19515 -if test $ac_cv_lib_dl_dlopen = yes; then
19516 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19517 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19518 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19519    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19520  else
19521 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19522 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19523 +  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19524 +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19525  if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19526 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19527 +  $as_echo_n "(cached) " >&6
19528  else
19529    ac_check_lib_save_LIBS=$LIBS
19530  LIBS="-lsvld  $LIBS"
19531 @@ -8647,63 +10191,64 @@ cat confdefs.h >>conftest.$ac_ext
19532  cat >>conftest.$ac_ext <<_ACEOF
19533  /* end confdefs.h.  */
19534  
19535 -/* Override any gcc2 internal prototype to avoid an error.  */
19536 +/* Override any GCC internal prototype to avoid an error.
19537 +   Use char because int might match the return type of a GCC
19538 +   builtin and then its argument prototype would still apply.  */
19539  #ifdef __cplusplus
19540  extern "C"
19541  #endif
19542 -/* We use char because int might match the return type of a gcc2
19543 -   builtin and then its argument prototype would still apply.  */
19544  char dlopen ();
19545  int
19546  main ()
19547  {
19548 -dlopen ();
19549 +return dlopen ();
19550    ;
19551    return 0;
19552  }
19553  _ACEOF
19554  rm -f conftest.$ac_objext conftest$ac_exeext
19555 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19556 -  (eval $ac_link) 2>conftest.er1
19557 +if { (ac_try="$ac_link"
19558 +case "(($ac_try" in
19559 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 +  *) ac_try_echo=$ac_try;;
19561 +esac
19562 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19563 +$as_echo "$ac_try_echo") >&5
19564 +  (eval "$ac_link") 2>conftest.er1
19565    ac_status=$?
19566    grep -v '^ *+' conftest.er1 >conftest.err
19567    rm -f conftest.er1
19568    cat conftest.err >&5
19569 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 -  (exit $ac_status); } &&
19571 -        { ac_try='test -z "$ac_c_werror_flag"
19572 -                        || test ! -s conftest.err'
19573 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 -  (eval $ac_try) 2>&5
19575 -  ac_status=$?
19576 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 -  (exit $ac_status); }; } &&
19578 -        { ac_try='test -s conftest$ac_exeext'
19579 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 -  (eval $ac_try) 2>&5
19581 -  ac_status=$?
19582 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 -  (exit $ac_status); }; }; then
19584 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 +  (exit $ac_status); } && {
19586 +        test -z "$ac_c_werror_flag" ||
19587 +        test ! -s conftest.err
19588 +       } && test -s conftest$ac_exeext && {
19589 +        test "$cross_compiling" = yes ||
19590 +        $as_test_x conftest$ac_exeext
19591 +       }; then
19592    ac_cv_lib_svld_dlopen=yes
19593  else
19594 -  echo "$as_me: failed program was:" >&5
19595 +  $as_echo "$as_me: failed program was:" >&5
19596  sed 's/^/| /' conftest.$ac_ext >&5
19597  
19598 -ac_cv_lib_svld_dlopen=no
19599 +       ac_cv_lib_svld_dlopen=no
19600  fi
19601 -rm -f conftest.err conftest.$ac_objext \
19602 +
19603 +rm -rf conftest.dSYM
19604 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19605        conftest$ac_exeext conftest.$ac_ext
19606  LIBS=$ac_check_lib_save_LIBS
19607  fi
19608 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19609 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19610 -if test $ac_cv_lib_svld_dlopen = yes; then
19611 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19612 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19613 +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19614    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19615  else
19616 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19617 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19618 +  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19619 +$as_echo_n "checking for dld_link in -ldld... " >&6; }
19620  if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19621 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19622 +  $as_echo_n "(cached) " >&6
19623  else
19624    ac_check_lib_save_LIBS=$LIBS
19625  LIBS="-ldld  $LIBS"
19626 @@ -8714,58 +10259,59 @@ cat confdefs.h >>conftest.$ac_ext
19627  cat >>conftest.$ac_ext <<_ACEOF
19628  /* end confdefs.h.  */
19629  
19630 -/* Override any gcc2 internal prototype to avoid an error.  */
19631 +/* Override any GCC internal prototype to avoid an error.
19632 +   Use char because int might match the return type of a GCC
19633 +   builtin and then its argument prototype would still apply.  */
19634  #ifdef __cplusplus
19635  extern "C"
19636  #endif
19637 -/* We use char because int might match the return type of a gcc2
19638 -   builtin and then its argument prototype would still apply.  */
19639  char dld_link ();
19640  int
19641  main ()
19642  {
19643 -dld_link ();
19644 +return dld_link ();
19645    ;
19646    return 0;
19647  }
19648  _ACEOF
19649  rm -f conftest.$ac_objext conftest$ac_exeext
19650 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651 -  (eval $ac_link) 2>conftest.er1
19652 +if { (ac_try="$ac_link"
19653 +case "(($ac_try" in
19654 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 +  *) ac_try_echo=$ac_try;;
19656 +esac
19657 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19658 +$as_echo "$ac_try_echo") >&5
19659 +  (eval "$ac_link") 2>conftest.er1
19660    ac_status=$?
19661    grep -v '^ *+' conftest.er1 >conftest.err
19662    rm -f conftest.er1
19663    cat conftest.err >&5
19664 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 -  (exit $ac_status); } &&
19666 -        { ac_try='test -z "$ac_c_werror_flag"
19667 -                        || test ! -s conftest.err'
19668 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 -  (eval $ac_try) 2>&5
19670 -  ac_status=$?
19671 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 -  (exit $ac_status); }; } &&
19673 -        { ac_try='test -s conftest$ac_exeext'
19674 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 -  (eval $ac_try) 2>&5
19676 -  ac_status=$?
19677 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 -  (exit $ac_status); }; }; then
19679 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 +  (exit $ac_status); } && {
19681 +        test -z "$ac_c_werror_flag" ||
19682 +        test ! -s conftest.err
19683 +       } && test -s conftest$ac_exeext && {
19684 +        test "$cross_compiling" = yes ||
19685 +        $as_test_x conftest$ac_exeext
19686 +       }; then
19687    ac_cv_lib_dld_dld_link=yes
19688  else
19689 -  echo "$as_me: failed program was:" >&5
19690 +  $as_echo "$as_me: failed program was:" >&5
19691  sed 's/^/| /' conftest.$ac_ext >&5
19692  
19693 -ac_cv_lib_dld_dld_link=no
19694 +       ac_cv_lib_dld_dld_link=no
19695  fi
19696 -rm -f conftest.err conftest.$ac_objext \
19697 +
19698 +rm -rf conftest.dSYM
19699 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19700        conftest$ac_exeext conftest.$ac_ext
19701  LIBS=$ac_check_lib_save_LIBS
19702  fi
19703 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19704 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19705 -if test $ac_cv_lib_dld_dld_link = yes; then
19706 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19707 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19708 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19709 +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
19710 +  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19711  fi
19712  
19713  
19714 @@ -8798,15 +10344,15 @@ fi
19715      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19716  
19717      save_LDFLAGS="$LDFLAGS"
19718 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19719 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19720  
19721      save_LIBS="$LIBS"
19722      LIBS="$lt_cv_dlopen_libs $LIBS"
19723  
19724 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19725 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19726 +    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19727 +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
19728  if test "${lt_cv_dlopen_self+set}" = set; then
19729 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19730 +  $as_echo_n "(cached) " >&6
19731  else
19732           if test "$cross_compiling" = yes; then :
19733    lt_cv_dlopen_self=cross
19734 @@ -8814,7 +10360,7 @@ else
19735    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19736    lt_status=$lt_dlunknown
19737    cat > conftest.$ac_ext <<EOF
19738 -#line 8817 "configure"
19739 +#line 10363 "configure"
19740  #include "confdefs.h"
19741  
19742  #if HAVE_DLFCN_H
19743 @@ -8871,6 +10417,8 @@ int main ()
19744        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19745        /* dlclose (self); */
19746      }
19747 +  else
19748 +    puts (dlerror ());
19749  
19750      exit (status);
19751  }
19752 @@ -8878,14 +10426,14 @@ EOF
19753    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19754    (eval $ac_link) 2>&5
19755    ac_status=$?
19756 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19759 -    (./conftest; exit; ) 2>/dev/null
19760 +    (./conftest; exit; ) >&5 2>/dev/null
19761      lt_status=$?
19762      case x$lt_status in
19763        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19764        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19765 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19766 +      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19767      esac
19768    else :
19769      # compilation failed
19770 @@ -8896,15 +10444,15 @@ rm -fr conftest*
19771  
19772  
19773  fi
19774 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19775 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19776 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19777 +$as_echo "$lt_cv_dlopen_self" >&6; }
19778  
19779      if test "x$lt_cv_dlopen_self" = xyes; then
19780 -      LDFLAGS="$LDFLAGS $link_static_flag"
19781 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19782 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19783 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19784 +      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19785 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19786  if test "${lt_cv_dlopen_self_static+set}" = set; then
19787 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19788 +  $as_echo_n "(cached) " >&6
19789  else
19790           if test "$cross_compiling" = yes; then :
19791    lt_cv_dlopen_self_static=cross
19792 @@ -8912,7 +10460,7 @@ else
19793    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19794    lt_status=$lt_dlunknown
19795    cat > conftest.$ac_ext <<EOF
19796 -#line 8915 "configure"
19797 +#line 10463 "configure"
19798  #include "confdefs.h"
19799  
19800  #if HAVE_DLFCN_H
19801 @@ -8969,6 +10517,8 @@ int main ()
19802        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19803        /* dlclose (self); */
19804      }
19805 +  else
19806 +    puts (dlerror ());
19807  
19808      exit (status);
19809  }
19810 @@ -8976,14 +10526,14 @@ EOF
19811    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812    (eval $ac_link) 2>&5
19813    ac_status=$?
19814 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19817 -    (./conftest; exit; ) 2>/dev/null
19818 +    (./conftest; exit; ) >&5 2>/dev/null
19819      lt_status=$?
19820      case x$lt_status in
19821        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19822        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19823 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19824 +      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19825      esac
19826    else :
19827      # compilation failed
19828 @@ -8994,8 +10544,8 @@ rm -fr conftest*
19829  
19830  
19831  fi
19832 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19833 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19834 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19835 +$as_echo "$lt_cv_dlopen_self_static" >&6; }
19836      fi
19837  
19838      CPPFLAGS="$save_CPPFLAGS"
19839 @@ -9016,19 +10566,19 @@ echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19840  fi
19841  
19842  
19843 -# Report which librarie types wil actually be built
19844 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19845 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19846 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
19847 -echo "${ECHO_T}$can_build_shared" >&6
19848 +# Report which library types will actually be built
19849 +{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19850 +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19851 +{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
19852 +$as_echo "$can_build_shared" >&6; }
19853  
19854 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19855 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19856 +{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19857 +$as_echo_n "checking whether to build shared libraries... " >&6; }
19858  test "$can_build_shared" = "no" && enable_shared=no
19859  
19860  # On AIX, shared libraries and static libraries use the same namespace, and
19861  # are all built from PIC.
19862 -case "$host_os" in
19863 +case $host_os in
19864  aix3*)
19865    test "$enable_shared" = yes && enable_static=no
19866    if test -n "$RANLIB"; then
19867 @@ -9037,58 +10587,21 @@ aix3*)
19868    fi
19869    ;;
19870  
19871 -aix4* | aix5*)
19872 +aix[4-9]*)
19873    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19874      test "$enable_shared" = yes && enable_static=no
19875    fi
19876 -  ;;
19877 -  darwin* | rhapsody*)
19878 -  if test "$GCC" = yes; then
19879 -    archive_cmds_need_lc=no
19880 -    case "$host_os" in
19881 -    rhapsody* | darwin1.[012])
19882 -      allow_undefined_flag='-undefined suppress'
19883 -      ;;
19884 -    *) # Darwin 1.3 on
19885 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19886 -       allow_undefined_flag='-flat_namespace -undefined suppress'
19887 -      else
19888 -        case ${MACOSX_DEPLOYMENT_TARGET} in
19889 -          10.[012])
19890 -            allow_undefined_flag='-flat_namespace -undefined suppress'
19891 -            ;;
19892 -          10.*)
19893 -            allow_undefined_flag='-undefined dynamic_lookup'
19894 -            ;;
19895 -        esac
19896 -      fi
19897 -      ;;
19898 -    esac
19899 -    output_verbose_link_cmd='echo'
19900 -    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
19901 -    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19902 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19903 -    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19904 -    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}'
19905 -    hardcode_direct=no
19906 -    hardcode_automatic=yes
19907 -    hardcode_shlibpath_var=unsupported
19908 -    whole_archive_flag_spec='-all_load $convenience'
19909 -    link_all_deplibs=yes
19910 -  else
19911 -    ld_shlibs=no
19912 -  fi
19913      ;;
19914  esac
19915 -echo "$as_me:$LINENO: result: $enable_shared" >&5
19916 -echo "${ECHO_T}$enable_shared" >&6
19917 +{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
19918 +$as_echo "$enable_shared" >&6; }
19919  
19920 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19921 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19922 +{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19923 +$as_echo_n "checking whether to build static libraries... " >&6; }
19924  # Make sure either enable_shared or enable_static is yes.
19925  test "$enable_shared" = yes || enable_static=yes
19926 -echo "$as_me:$LINENO: result: $enable_static" >&5
19927 -echo "${ECHO_T}$enable_static" >&6
19928 +{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
19929 +$as_echo "$enable_static" >&6; }
19930  
19931  # The else clause should only fire when bootstrapping the
19932  # libtool distribution, otherwise you forgot to ship ltmain.sh
19933 @@ -9103,7 +10616,7 @@ if test -f "$ltmain"; then
19934    # Now quote all the things that may contain metacharacters while being
19935    # careful not to overquote the AC_SUBSTed values.  We take copies of the
19936    # variables and quote the copies for generation of the libtool script.
19937 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19938 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19939      SED SHELL STRIP \
19940      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19941      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19942 @@ -9130,6 +10643,7 @@ if test -f "$ltmain"; then
19943      predeps \
19944      postdeps \
19945      compiler_lib_search_path \
19946 +    compiler_lib_search_dirs \
19947      archive_cmds \
19948      archive_expsym_cmds \
19949      postinstall_cmds \
19950 @@ -9145,6 +10659,7 @@ if test -f "$ltmain"; then
19951      module_cmds \
19952      module_expsym_cmds \
19953      lt_cv_prog_compiler_c_o \
19954 +    fix_srcfile_path \
19955      exclude_expsyms \
19956      include_expsyms; do
19957  
19958 @@ -9179,8 +10694,8 @@ if test -f "$ltmain"; then
19959  cfgfile="${ofile}T"
19960    trap "$rm \"$cfgfile\"; exit 1" 1 2 15
19961    $rm -f "$cfgfile"
19962 -  { echo "$as_me:$LINENO: creating $ofile" >&5
19963 -echo "$as_me: creating $ofile" >&6;}
19964 +  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
19965 +$as_echo "$as_me: creating $ofile" >&6;}
19966  
19967    cat <<__EOF__ >> "$cfgfile"
19968  #! $SHELL
19969 @@ -9189,7 +10704,7 @@ echo "$as_me: creating $ofile" >&6;}
19970  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
19971  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19972  #
19973 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
19974 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
19975  # Free Software Foundation, Inc.
19976  #
19977  # This file is part of GNU Libtool:
19978 @@ -9207,7 +10722,7 @@ echo "$as_me: creating $ofile" >&6;}
19979  #
19980  # You should have received a copy of the GNU General Public License
19981  # along with this program; if not, write to the Free Software
19982 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19983 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19984  #
19985  # As a special exception to the GNU General Public License, if you
19986  # distribute this file as part of a program that contains a
19987 @@ -9218,11 +10733,11 @@ echo "$as_me: creating $ofile" >&6;}
19988  SED=$lt_SED
19989  
19990  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19991 -Xsed="$SED -e s/^X//"
19992 +Xsed="$SED -e 1s/^X//"
19993  
19994  # The HP-UX ksh and POSIX shell print the target directory to stdout
19995  # if CDPATH is set.
19996 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
19997 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19998  
19999  # The names of the tagged configurations supported by this script.
20000  available_tags=
20001 @@ -9252,6 +10767,12 @@ fast_install=$enable_fast_install
20002  # The host system.
20003  host_alias=$host_alias
20004  host=$host
20005 +host_os=$host_os
20006 +
20007 +# The build system.
20008 +build_alias=$build_alias
20009 +build=$build
20010 +build_os=$build_os
20011  
20012  # An echo program that does not interpret backslashes.
20013  echo=$lt_echo
20014 @@ -9263,6 +10784,9 @@ AR_FLAGS=$lt_AR_FLAGS
20015  # A C compiler.
20016  LTCC=$lt_LTCC
20017  
20018 +# LTCC compiler flags.
20019 +LTCFLAGS=$lt_LTCFLAGS
20020 +
20021  # A language-specific compiler.
20022  CC=$lt_compiler
20023  
20024 @@ -9328,7 +10852,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
20025  # Does compiler simultaneously support -c and -o options?
20026  compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20027  
20028 -# Must we lock files when doing compilation ?
20029 +# Must we lock files when doing compilation?
20030  need_locks=$lt_need_locks
20031  
20032  # Do we need the lib prefix for modules?
20033 @@ -9416,6 +10940,10 @@ predeps=$lt_predeps
20034  # shared library.
20035  postdeps=$lt_postdeps
20036  
20037 +# The directories searched by this compiler when creating a shared
20038 +# library
20039 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20040 +
20041  # The library search path used internally by the compiler when linking
20042  # a shared library.
20043  compiler_lib_search_path=$lt_compiler_lib_search_path
20044 @@ -9504,7 +11032,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20045  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20046  
20047  # Fix the shell variable \$srcfile for the compiler.
20048 -fix_srcfile_path="$fix_srcfile_path"
20049 +fix_srcfile_path=$lt_fix_srcfile_path
20050  
20051  # Set to yes if exported symbols are required.
20052  always_export_symbols=$always_export_symbols
20053 @@ -9571,28 +11099,31 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
20054  CC="$lt_save_CC"
20055  
20056  
20057 -# Check whether --with-tags or --without-tags was given.
20058 +# Check whether --with-tags was given.
20059  if test "${with_tags+set}" = set; then
20060 -  withval="$with_tags"
20061 -  tagnames="$withval"
20062 -fi;
20063 +  withval=$with_tags; tagnames="$withval"
20064 +fi
20065 +
20066  
20067  if test -f "$ltmain" && test -n "$tagnames"; then
20068    if test ! -f "${ofile}"; then
20069 -    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20070 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20071 +    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20072 +$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20073    fi
20074  
20075    if test -z "$LTCC"; then
20076      eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20077      if test -z "$LTCC"; then
20078 -      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20079 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20080 +      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20081 +$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20082      else
20083 -      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20084 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20085 +      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20086 +$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20087      fi
20088    fi
20089 +  if test -z "$LTCFLAGS"; then
20090 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
20091 +  fi
20092  
20093    # Extract list of available tagged configurations in $ofile.
20094    # Note that this assumes the entire list is on one line.
20095 @@ -9604,16 +11135,16 @@ echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20096      # Check whether tagname contains only valid characters
20097      case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20098      "") ;;
20099 -    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20100 -echo "$as_me: error: invalid tag name: $tagname" >&2;}
20101 +    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20102 +$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
20103     { (exit 1); exit 1; }; }
20104         ;;
20105      esac
20106  
20107      if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20108      then
20109 -      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20110 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20111 +      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20112 +$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20113     { (exit 1); exit 1; }; }
20114      fi
20115  
20116 @@ -9623,8 +11154,10 @@ echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20117  
20118        case $tagname in
20119        CXX)
20120 -       if test -n "$CXX" && test "X$CXX" != "Xno"; then
20121 -         ac_ext=cc
20122 +       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20123 +           ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20124 +           (test "X$CXX" != "Xg++"))) ; then
20125 +         ac_ext=cpp
20126  ac_cpp='$CXXCPP $CPPFLAGS'
20127  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20128  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20129 @@ -9643,6 +11176,7 @@ hardcode_libdir_flag_spec_CXX=
20130  hardcode_libdir_flag_spec_ld_CXX=
20131  hardcode_libdir_separator_CXX=
20132  hardcode_minus_L_CXX=no
20133 +hardcode_shlibpath_var_CXX=unsupported
20134  hardcode_automatic_CXX=no
20135  module_cmds_CXX=
20136  module_expsym_cmds_CXX=
20137 @@ -9658,29 +11192,47 @@ postdep_objects_CXX=
20138  predeps_CXX=
20139  postdeps_CXX=
20140  compiler_lib_search_path_CXX=
20141 +compiler_lib_search_dirs_CXX=
20142  
20143  # Source file extension for C++ test sources.
20144 -ac_ext=cc
20145 +ac_ext=cpp
20146  
20147  # Object file extension for compiled C++ test sources.
20148  objext=o
20149  objext_CXX=$objext
20150  
20151  # Code to be used in simple compile tests
20152 -lt_simple_compile_test_code="int some_variable = 0;\n"
20153 +lt_simple_compile_test_code="int some_variable = 0;"
20154  
20155  # Code to be used in simple link tests
20156 -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
20157 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20158  
20159  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20160  
20161  # If no C compiler was specified, use CC.
20162  LTCC=${LTCC-"$CC"}
20163  
20164 +# If no C compiler flags were specified, use CFLAGS.
20165 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20166 +
20167  # Allow CC to be a program name with arguments.
20168  compiler=$CC
20169  
20170  
20171 +# save warnings/boilerplate of simple test code
20172 +ac_outfile=conftest.$ac_objext
20173 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20174 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20175 +_lt_compiler_boilerplate=`cat conftest.err`
20176 +$rm conftest*
20177 +
20178 +ac_outfile=conftest.$ac_objext
20179 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
20180 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20181 +_lt_linker_boilerplate=`cat conftest.err`
20182 +$rm -r conftest*
20183 +
20184 +
20185  # Allow CC to be a program name with arguments.
20186  lt_save_CC=$CC
20187  lt_save_LD=$LD
20188 @@ -9691,18 +11243,27 @@ lt_save_path_LD=$lt_cv_path_LD
20189  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20190    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20191  else
20192 -  unset lt_cv_prog_gnu_ld
20193 +  $as_unset lt_cv_prog_gnu_ld
20194  fi
20195  if test -n "${lt_cv_path_LDCXX+set}"; then
20196    lt_cv_path_LD=$lt_cv_path_LDCXX
20197  else
20198 -  unset lt_cv_path_LD
20199 +  $as_unset lt_cv_path_LD
20200  fi
20201  test -z "${LDCXX+set}" || LD=$LDCXX
20202  CC=${CXX-"c++"}
20203  compiler=$CC
20204  compiler_CXX=$CC
20205 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
20206 +for cc_temp in $compiler""; do
20207 +  case $cc_temp in
20208 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20209 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20210 +    \-*) ;;
20211 +    *) break;;
20212 +  esac
20213 +done
20214 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20215 +
20216  
20217  # We don't want -fno-exception wen compiling C++ code, so set the
20218  # no_builtin_flag separately
20219 @@ -9716,18 +11277,18 @@ if test "$GXX" = yes; then
20220    # Set up default GNU C++ configuration
20221  
20222  
20223 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
20224 +# Check whether --with-gnu-ld was given.
20225  if test "${with_gnu_ld+set}" = set; then
20226 -  withval="$with_gnu_ld"
20227 -  test "$withval" = no || with_gnu_ld=yes
20228 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20229  else
20230    with_gnu_ld=no
20231 -fi;
20232 +fi
20233 +
20234  ac_prog=ld
20235  if test "$GCC" = yes; then
20236    # Check if gcc -print-prog-name=ld gives a path.
20237 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20238 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20239 +  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20240 +$as_echo_n "checking for ld used by $CC... " >&6; }
20241    case $host in
20242    *-*-mingw*)
20243      # gcc leaves a trailing carriage return which upsets mingw
20244 @@ -9756,14 +11317,14 @@ echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20245      ;;
20246    esac
20247  elif test "$with_gnu_ld" = yes; then
20248 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
20249 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20250 +  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20251 +$as_echo_n "checking for GNU ld... " >&6; }
20252  else
20253 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20254 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20255 +  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20256 +$as_echo_n "checking for non-GNU ld... " >&6; }
20257  fi
20258  if test "${lt_cv_path_LD+set}" = set; then
20259 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20260 +  $as_echo_n "(cached) " >&6
20261  else
20262    if test -z "$LD"; then
20263    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20264 @@ -9773,7 +11334,7 @@ else
20265      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20266        lt_cv_path_LD="$ac_dir/$ac_prog"
20267        # Check to see if the program is GNU ld.  I'd rather use --version,
20268 -      # but apparently some GNU ld's only accept -v.
20269 +      # but apparently some variants of GNU ld only accept -v.
20270        # Break only if it was the GNU/non-GNU ld that we prefer.
20271        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20272        *GNU* | *'with BFD'*)
20273 @@ -9793,21 +11354,21 @@ fi
20274  
20275  LD="$lt_cv_path_LD"
20276  if test -n "$LD"; then
20277 -  echo "$as_me:$LINENO: result: $LD" >&5
20278 -echo "${ECHO_T}$LD" >&6
20279 +  { $as_echo "$as_me:$LINENO: result: $LD" >&5
20280 +$as_echo "$LD" >&6; }
20281  else
20282 -  echo "$as_me:$LINENO: result: no" >&5
20283 -echo "${ECHO_T}no" >&6
20284 +  { $as_echo "$as_me:$LINENO: result: no" >&5
20285 +$as_echo "no" >&6; }
20286  fi
20287 -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20288 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20289 +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20290 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20291     { (exit 1); exit 1; }; }
20292 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20293 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20294 +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20295 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20296  if test "${lt_cv_prog_gnu_ld+set}" = set; then
20297 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20298 +  $as_echo_n "(cached) " >&6
20299  else
20300 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20301 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20302  case `$LD -v 2>&1 </dev/null` in
20303  *GNU* | *'with BFD'*)
20304    lt_cv_prog_gnu_ld=yes
20305 @@ -9817,8 +11378,8 @@ case `$LD -v 2>&1 </dev/null` in
20306    ;;
20307  esac
20308  fi
20309 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20310 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20311 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20312 +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20313  with_gnu_ld=$lt_cv_prog_gnu_ld
20314  
20315  
20316 @@ -9868,15 +11429,15 @@ else
20317  fi
20318  
20319  # PORTME: fill in a description of your system's C++ link characteristics
20320 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20321 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20322 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20323 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20324  ld_shlibs_CXX=yes
20325  case $host_os in
20326    aix3*)
20327      # FIXME: insert proper C++ library support
20328      ld_shlibs_CXX=no
20329      ;;
20330 -  aix4* | aix5*)
20331 +  aix[4-9]*)
20332      if test "$host_cpu" = ia64; then
20333        # On IA64, the linker does run time linking by default, so we don't
20334        # have to do anything special.
20335 @@ -9889,7 +11450,7 @@ case $host_os in
20336        # Test if we are trying to use run time linking or normal
20337        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20338        # need to do runtime linking.
20339 -      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20340 +      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20341         for ld_flag in $LDFLAGS; do
20342           case $ld_flag in
20343           *-brtl*)
20344 @@ -9898,6 +11459,7 @@ case $host_os in
20345             ;;
20346           esac
20347         done
20348 +       ;;
20349        esac
20350  
20351        exp_sym_flag='-bexport'
20352 @@ -9916,7 +11478,7 @@ case $host_os in
20353      link_all_deplibs_CXX=yes
20354  
20355      if test "$GXX" = yes; then
20356 -      case $host_os in aix4.012|aix4.012.*)
20357 +      case $host_os in aix4.[012]|aix4.[012].*)
20358        # We only want to do this on AIX 4.2 and lower, the check
20359        # below for broken collect2 doesn't work under 4.3+
20360         collect2name=`${CC} -print-prog-name=collect2`
20361 @@ -9924,7 +11486,7 @@ case $host_os in
20362            strings "$collect2name" | grep resolve_lib_name >/dev/null
20363         then
20364           # We have reworked collect2
20365 -         hardcode_direct_CXX=yes
20366 +         :
20367         else
20368           # We have old collect2
20369           hardcode_direct_CXX=unsupported
20370 @@ -9935,8 +11497,12 @@ case $host_os in
20371           hardcode_libdir_flag_spec_CXX='-L$libdir'
20372           hardcode_libdir_separator_CXX=
20373         fi
20374 +       ;;
20375        esac
20376        shared_flag='-shared'
20377 +      if test "$aix_use_runtimelinking" = yes; then
20378 +       shared_flag="$shared_flag "'${wl}-G'
20379 +      fi
20380      else
20381        # not using gcc
20382        if test "$host_cpu" = ia64; then
20383 @@ -9976,50 +11542,59 @@ main ()
20384  }
20385  _ACEOF
20386  rm -f conftest.$ac_objext conftest$ac_exeext
20387 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20388 -  (eval $ac_link) 2>conftest.er1
20389 +if { (ac_try="$ac_link"
20390 +case "(($ac_try" in
20391 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 +  *) ac_try_echo=$ac_try;;
20393 +esac
20394 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20395 +$as_echo "$ac_try_echo") >&5
20396 +  (eval "$ac_link") 2>conftest.er1
20397    ac_status=$?
20398    grep -v '^ *+' conftest.er1 >conftest.err
20399    rm -f conftest.er1
20400    cat conftest.err >&5
20401 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 -  (exit $ac_status); } &&
20403 -        { ac_try='test -z "$ac_cxx_werror_flag"
20404 -                        || test ! -s conftest.err'
20405 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 -  (eval $ac_try) 2>&5
20407 -  ac_status=$?
20408 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 -  (exit $ac_status); }; } &&
20410 -        { ac_try='test -s conftest$ac_exeext'
20411 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 -  (eval $ac_try) 2>&5
20413 -  ac_status=$?
20414 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 -  (exit $ac_status); }; }; then
20416 -
20417 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20418 -}'`
20419 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 +  (exit $ac_status); } && {
20421 +        test -z "$ac_cxx_werror_flag" ||
20422 +        test ! -s conftest.err
20423 +       } && test -s conftest$ac_exeext && {
20424 +        test "$cross_compiling" = yes ||
20425 +        $as_test_x conftest$ac_exeext
20426 +       }; then
20427 +
20428 +lt_aix_libpath_sed='
20429 +    /Import File Strings/,/^$/ {
20430 +       /^0/ {
20431 +           s/^0  *\(.*\)$/\1/
20432 +           p
20433 +       }
20434 +    }'
20435 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20436  # Check for a 64-bit object if we didn't find anything.
20437 -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; }
20438 -}'`; fi
20439 +if test -z "$aix_libpath"; then
20440 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20441 +fi
20442  else
20443 -  echo "$as_me: failed program was:" >&5
20444 +  $as_echo "$as_me: failed program was:" >&5
20445  sed 's/^/| /' conftest.$ac_ext >&5
20446  
20447 +
20448  fi
20449 -rm -f conftest.err conftest.$ac_objext \
20450 +
20451 +rm -rf conftest.dSYM
20452 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20453        conftest$ac_exeext conftest.$ac_ext
20454  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20455  
20456        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20457  
20458 -      archive_expsym_cmds_CXX="\$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"
20459 +      archive_expsym_cmds_CXX="\$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"
20460       else
20461        if test "$host_cpu" = ia64; then
20462         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20463         allow_undefined_flag_CXX="-z nodefs"
20464 -       archive_expsym_cmds_CXX="\$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"
20465 +       archive_expsym_cmds_CXX="\$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"
20466        else
20467         # Determine the default libpath from the value encoded in an empty executable.
20468         cat >conftest.$ac_ext <<_ACEOF
20469 @@ -10038,39 +11613,48 @@ main ()
20470  }
20471  _ACEOF
20472  rm -f conftest.$ac_objext conftest$ac_exeext
20473 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20474 -  (eval $ac_link) 2>conftest.er1
20475 +if { (ac_try="$ac_link"
20476 +case "(($ac_try" in
20477 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 +  *) ac_try_echo=$ac_try;;
20479 +esac
20480 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20481 +$as_echo "$ac_try_echo") >&5
20482 +  (eval "$ac_link") 2>conftest.er1
20483    ac_status=$?
20484    grep -v '^ *+' conftest.er1 >conftest.err
20485    rm -f conftest.er1
20486    cat conftest.err >&5
20487 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 -  (exit $ac_status); } &&
20489 -        { ac_try='test -z "$ac_cxx_werror_flag"
20490 -                        || test ! -s conftest.err'
20491 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 -  (eval $ac_try) 2>&5
20493 -  ac_status=$?
20494 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 -  (exit $ac_status); }; } &&
20496 -        { ac_try='test -s conftest$ac_exeext'
20497 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 -  (eval $ac_try) 2>&5
20499 -  ac_status=$?
20500 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 -  (exit $ac_status); }; }; then
20502 -
20503 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20504 -}'`
20505 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 +  (exit $ac_status); } && {
20507 +        test -z "$ac_cxx_werror_flag" ||
20508 +        test ! -s conftest.err
20509 +       } && test -s conftest$ac_exeext && {
20510 +        test "$cross_compiling" = yes ||
20511 +        $as_test_x conftest$ac_exeext
20512 +       }; then
20513 +
20514 +lt_aix_libpath_sed='
20515 +    /Import File Strings/,/^$/ {
20516 +       /^0/ {
20517 +           s/^0  *\(.*\)$/\1/
20518 +           p
20519 +       }
20520 +    }'
20521 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20522  # Check for a 64-bit object if we didn't find anything.
20523 -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; }
20524 -}'`; fi
20525 +if test -z "$aix_libpath"; then
20526 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20527 +fi
20528  else
20529 -  echo "$as_me: failed program was:" >&5
20530 +  $as_echo "$as_me: failed program was:" >&5
20531  sed 's/^/| /' conftest.$ac_ext >&5
20532  
20533 +
20534  fi
20535 -rm -f conftest.err conftest.$ac_objext \
20536 +
20537 +rm -rf conftest.dSYM
20538 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20539        conftest$ac_exeext conftest.$ac_ext
20540  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20541  
20542 @@ -10079,16 +11663,26 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20543         # -berok will link without error, but may produce a broken library.
20544         no_undefined_flag_CXX=' ${wl}-bernotok'
20545         allow_undefined_flag_CXX=' ${wl}-berok'
20546 -       # -bexpall does not export symbols beginning with underscore (_)
20547 -       always_export_symbols_CXX=yes
20548         # Exported symbols can be pulled into shared objects from archives
20549 -       whole_archive_flag_spec_CXX=' '
20550 +       whole_archive_flag_spec_CXX='$convenience'
20551         archive_cmds_need_lc_CXX=yes
20552 -       # This is similar to how AIX traditionally builds it's shared libraries.
20553 -       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20554 +       # This is similar to how AIX traditionally builds its shared libraries.
20555 +       archive_expsym_cmds_CXX="\$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'
20556        fi
20557      fi
20558      ;;
20559 +
20560 +  beos*)
20561 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20562 +      allow_undefined_flag_CXX=unsupported
20563 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20564 +      # support --undefined.  This deserves some investigation.  FIXME
20565 +      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20566 +    else
20567 +      ld_shlibs_CXX=no
20568 +    fi
20569 +    ;;
20570 +
20571    chorus*)
20572      case $cc_basename in
20573        *)
20574 @@ -10107,7 +11701,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20575      enable_shared_with_static_runtimes_CXX=yes
20576  
20577      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20578 -      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20579 +      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20580        # If the export-symbols file already is a .def file (1st line
20581        # is EXPORTS), use it as is; otherwise, prepend...
20582        archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20583 @@ -10116,70 +11710,53 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20584         echo EXPORTS > $output_objdir/$soname.def;
20585         cat $export_symbols >> $output_objdir/$soname.def;
20586        fi~
20587 -      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20588 +      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20589      else
20590        ld_shlibs_CXX=no
20591      fi
20592    ;;
20593 -
20594 -  darwin* | rhapsody*)
20595 -  if test "$GXX" = yes; then
20596 -    archive_cmds_need_lc_CXX=no
20597 -    case "$host_os" in
20598 -    rhapsody* | darwin1.[012])
20599 -      allow_undefined_flag_CXX='-undefined suppress'
20600 -      ;;
20601 -    *) # Darwin 1.3 on
20602 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20603 -       allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
20604 +      darwin* | rhapsody*)
20605 +      archive_cmds_need_lc_CXX=no
20606 +      hardcode_direct_CXX=no
20607 +      hardcode_automatic_CXX=yes
20608 +      hardcode_shlibpath_var_CXX=unsupported
20609 +      whole_archive_flag_spec_CXX=''
20610 +      link_all_deplibs_CXX=yes
20611 +      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20612 +      if test "$GXX" = yes ; then
20613 +      output_verbose_link_cmd='echo'
20614 +      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20615 +      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20616 +      archive_expsym_cmds_CXX="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}"
20617 +      module_expsym_cmds_CXX="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}"
20618 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20619 +        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20620 +        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
20621 +      fi
20622        else
20623 -        case ${MACOSX_DEPLOYMENT_TARGET} in
20624 -          10.[012])
20625 -            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
20626 -            ;;
20627 -          10.*)
20628 -            allow_undefined_flag_CXX='-undefined dynamic_lookup'
20629 -            ;;
20630 -        esac
20631 +      case $cc_basename in
20632 +        xlc*)
20633 +         output_verbose_link_cmd='echo'
20634 +          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20635 +          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20636 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20637 +          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20638 +          module_expsym_cmds_CXX='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}'
20639 +          ;;
20640 +       *)
20641 +         ld_shlibs_CXX=no
20642 +          ;;
20643 +      esac
20644        fi
20645 -      ;;
20646 -    esac
20647 -    lt_int_apple_cc_single_mod=no
20648 -    output_verbose_link_cmd='echo'
20649 -    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20650 -      lt_int_apple_cc_single_mod=yes
20651 -    fi
20652 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20653 -      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20654 -    else
20655 -      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20656 -    fi
20657 -    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20658 -
20659 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20660 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20661 -      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20662 -    else
20663 -      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20664 -    fi
20665 -    module_expsym_cmds_CXX='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}'
20666 -    hardcode_direct_CXX=no
20667 -    hardcode_automatic_CXX=yes
20668 -    hardcode_shlibpath_var_CXX=unsupported
20669 -    whole_archive_flag_spec_CXX='-all_load $convenience'
20670 -    link_all_deplibs_CXX=yes
20671 -  else
20672 -    ld_shlibs_CXX=no
20673 -  fi
20674 -    ;;
20675 +        ;;
20676  
20677    dgux*)
20678      case $cc_basename in
20679 -      ec++)
20680 +      ec++*)
20681         # FIXME: insert proper C++ library support
20682         ld_shlibs_CXX=no
20683         ;;
20684 -      ghcx)
20685 +      ghcx*)
20686         # Green Hills C++ Compiler
20687         # FIXME: insert proper C++ library support
20688         ld_shlibs_CXX=no
20689 @@ -10190,14 +11767,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20690         ;;
20691      esac
20692      ;;
20693 -  freebsd12*)
20694 +  freebsd[12]*)
20695      # C++ shared libraries reported to be fairly broken before switch to ELF
20696      ld_shlibs_CXX=no
20697      ;;
20698    freebsd-elf*)
20699      archive_cmds_need_lc_CXX=no
20700      ;;
20701 -  freebsd* | kfreebsd*-gnu)
20702 +  freebsd* | dragonfly*)
20703      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20704      # conventions
20705      ld_shlibs_CXX=yes
20706 @@ -10214,11 +11791,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20707                                 # location of the library.
20708  
20709      case $cc_basename in
20710 -    CC)
20711 +    CC*)
20712        # FIXME: insert proper C++ library support
20713        ld_shlibs_CXX=no
20714        ;;
20715 -    aCC)
20716 +    aCC*)
20717        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20718        # Commands to make compiler produce verbose output that lists
20719        # what "hidden" libraries, object files and flags are used when
20720 @@ -10228,7 +11805,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20721        # explicitly linking system object files so we need to strip them
20722        # from the output so that they don't get included in the library
20723        # dependencies.
20724 -      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20725 +      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20726        ;;
20727      *)
20728        if test "$GXX" = yes; then
20729 @@ -10242,33 +11819,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20730      ;;
20731    hpux10*|hpux11*)
20732      if test $with_gnu_ld = no; then
20733 -      case "$host_cpu" in
20734 -      hppa*64*)
20735 -       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20736 -       hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
20737 -       hardcode_libdir_separator_CXX=:
20738 -        ;;
20739 -      ia64*)
20740 -       hardcode_libdir_flag_spec_CXX='-L$libdir'
20741 -        ;;
20742 +      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20743 +      hardcode_libdir_separator_CXX=:
20744 +
20745 +      case $host_cpu in
20746 +      hppa*64*|ia64*) ;;
20747        *)
20748 -       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20749 -       hardcode_libdir_separator_CXX=:
20750         export_dynamic_flag_spec_CXX='${wl}-E'
20751          ;;
20752        esac
20753      fi
20754 -    case "$host_cpu" in
20755 -    hppa*64*)
20756 -      hardcode_direct_CXX=no
20757 -      hardcode_shlibpath_var_CXX=no
20758 -      ;;
20759 -    ia64*)
20760 +    case $host_cpu in
20761 +    hppa*64*|ia64*)
20762        hardcode_direct_CXX=no
20763        hardcode_shlibpath_var_CXX=no
20764 -      hardcode_minus_L_CXX=yes # Not in the search PATH,
20765 -                                             # but as the default
20766 -                                             # location of the library.
20767        ;;
20768      *)
20769        hardcode_direct_CXX=yes
20770 @@ -10279,14 +11843,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20771      esac
20772  
20773      case $cc_basename in
20774 -      CC)
20775 +      CC*)
20776         # FIXME: insert proper C++ library support
20777         ld_shlibs_CXX=no
20778         ;;
20779 -      aCC)
20780 -       case "$host_cpu" in
20781 -       hppa*64*|ia64*)
20782 -         archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
20783 +      aCC*)
20784 +       case $host_cpu in
20785 +       hppa*64*)
20786 +         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20787 +         ;;
20788 +       ia64*)
20789 +         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20790           ;;
20791         *)
20792           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20793 @@ -10305,9 +11872,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20794        *)
20795         if test "$GXX" = yes; then
20796           if test $with_gnu_ld = no; then
20797 -           case "$host_cpu" in
20798 -           ia64*|hppa*64*)
20799 -             archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
20800 +           case $host_cpu in
20801 +           hppa*64*)
20802 +             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20803 +             ;;
20804 +           ia64*)
20805 +             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20806               ;;
20807             *)
20808               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20809 @@ -10321,11 +11891,25 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20810         ;;
20811      esac
20812      ;;
20813 +  interix[3-9]*)
20814 +    hardcode_direct_CXX=no
20815 +    hardcode_shlibpath_var_CXX=no
20816 +    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20817 +    export_dynamic_flag_spec_CXX='${wl}-E'
20818 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20819 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
20820 +    # default) and relocated if they conflict, which is a slow very memory
20821 +    # consuming and fragmenting process.  To avoid this, we pick a random,
20822 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20823 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20824 +    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20825 +    archive_expsym_cmds_CXX='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'
20826 +    ;;
20827    irix5* | irix6*)
20828      case $cc_basename in
20829 -      CC)
20830 +      CC*)
20831         # SGI C++
20832 -       archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
20833 +       archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20834  
20835         # Archives containing C++ object files must be created using
20836         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20837 @@ -10336,7 +11920,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20838        *)
20839         if test "$GXX" = yes; then
20840           if test "$with_gnu_ld" = no; then
20841 -           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
20842 +           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20843           else
20844             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
20845           fi
20846 @@ -10347,9 +11931,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20847      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20848      hardcode_libdir_separator_CXX=:
20849      ;;
20850 -  linux*)
20851 +  linux* | k*bsd*-gnu)
20852      case $cc_basename in
20853 -      KCC)
20854 +      KCC*)
20855         # Kuck and Associates, Inc. (KAI) C++ Compiler
20856  
20857         # KCC will only create a shared library if the output file
20858 @@ -10374,17 +11958,41 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20859         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20860         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20861         ;;
20862 -      icpc)
20863 +      icpc*)
20864         # Intel C++
20865         with_gnu_ld=yes
20866 +       # version 8.0 and above of icpc choke on multiply defined symbols
20867 +       # if we add $predep_objects and $postdep_objects, however 7.1 and
20868 +       # earlier do not add the objects themselves.
20869 +       case `$CC -V 2>&1` in
20870 +       *"Version 7."*)
20871 +         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20872 +         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20873 +         ;;
20874 +       *)  # Version 8.0 or newer
20875 +         tmp_idyn=
20876 +         case $host_cpu in
20877 +           ia64*) tmp_idyn=' -i_dynamic';;
20878 +         esac
20879 +         archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20880 +         archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20881 +         ;;
20882 +       esac
20883         archive_cmds_need_lc_CXX=no
20884 -       archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20885 -       archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20886         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20887         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20888         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20889         ;;
20890 -      cxx)
20891 +      pgCC* | pgcpp*)
20892 +        # Portland Group C++ compiler
20893 +       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20894 +       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
20895 +
20896 +       hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20897 +       export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20898 +       whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20899 +        ;;
20900 +      cxx*)
20901         # Compaq C++
20902         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20903         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
20904 @@ -10403,6 +12011,29 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20905         # dependencies.
20906         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20907         ;;
20908 +      *)
20909 +       case `$CC -V 2>&1 | sed 5q` in
20910 +       *Sun\ C*)
20911 +         # Sun C++ 5.9
20912 +         no_undefined_flag_CXX=' -zdefs'
20913 +         archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20914 +         archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
20915 +         hardcode_libdir_flag_spec_CXX='-R$libdir'
20916 +         whole_archive_flag_spec_CXX='${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'
20917 +
20918 +         # Not sure whether something based on
20919 +         # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20920 +         # would be better.
20921 +         output_verbose_link_cmd='echo'
20922 +
20923 +         # Archives containing C++ object files must be created using
20924 +         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20925 +         # necessary to make sure instantiated templates are included
20926 +         # in the archive.
20927 +         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20928 +         ;;
20929 +       esac
20930 +       ;;
20931      esac
20932      ;;
20933    lynxos*)
20934 @@ -10415,7 +12046,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20935      ;;
20936    mvs*)
20937      case $cc_basename in
20938 -      cxx)
20939 +      cxx*)
20940         # FIXME: insert proper C++ library support
20941         ld_shlibs_CXX=no
20942         ;;
20943 @@ -10425,7 +12056,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20944         ;;
20945      esac
20946      ;;
20947 -  netbsd*)
20948 +  netbsd* | netbsdelf*-gnu)
20949      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20950        archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20951        wlarc=
20952 @@ -10436,9 +12067,29 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20953      # Workaround some broken pre-1.5 toolchains
20954      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20955      ;;
20956 +  openbsd2*)
20957 +    # C++ shared libraries are fairly broken
20958 +    ld_shlibs_CXX=no
20959 +    ;;
20960 +  openbsd*)
20961 +    if test -f /usr/libexec/ld.so; then
20962 +      hardcode_direct_CXX=yes
20963 +      hardcode_shlibpath_var_CXX=no
20964 +      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20965 +      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20966 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20967 +       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20968 +       export_dynamic_flag_spec_CXX='${wl}-E'
20969 +       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20970 +      fi
20971 +      output_verbose_link_cmd='echo'
20972 +    else
20973 +      ld_shlibs_CXX=no
20974 +    fi
20975 +    ;;
20976    osf3*)
20977      case $cc_basename in
20978 -      KCC)
20979 +      KCC*)
20980         # Kuck and Associates, Inc. (KAI) C++ Compiler
20981  
20982         # KCC will only create a shared library if the output file
20983 @@ -10454,14 +12105,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20984         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20985  
20986         ;;
20987 -      RCC)
20988 +      RCC*)
20989         # Rational C++ 2.4.1
20990         # FIXME: insert proper C++ library support
20991         ld_shlibs_CXX=no
20992         ;;
20993 -      cxx)
20994 +      cxx*)
20995         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20996 -       archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
20997 +       archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20998  
20999         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21000         hardcode_libdir_separator_CXX=:
21001 @@ -10479,7 +12130,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21002        *)
21003         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21004           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21005 -         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
21006 +         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21007  
21008           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21009           hardcode_libdir_separator_CXX=:
21010 @@ -10498,7 +12149,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21011      ;;
21012    osf4* | osf5*)
21013      case $cc_basename in
21014 -      KCC)
21015 +      KCC*)
21016         # Kuck and Associates, Inc. (KAI) C++ Compiler
21017  
21018         # KCC will only create a shared library if the output file
21019 @@ -10513,17 +12164,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21020         # the KAI C++ compiler.
21021         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21022         ;;
21023 -      RCC)
21024 +      RCC*)
21025         # Rational C++ 2.4.1
21026         # FIXME: insert proper C++ library support
21027         ld_shlibs_CXX=no
21028         ;;
21029 -      cxx)
21030 +      cxx*)
21031         allow_undefined_flag_CXX=' -expect_unresolved \*'
21032 -       archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
21033 +       archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21034         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21035           echo "-hidden">> $lib.exp~
21036 -         $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
21037 +         $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
21038           $rm $lib.exp'
21039  
21040         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21041 @@ -10542,7 +12193,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21042        *)
21043         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21044           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21045 -        archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
21046 +        archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21047  
21048           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21049           hardcode_libdir_separator_CXX=:
21050 @@ -10563,27 +12214,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21051      # FIXME: insert proper C++ library support
21052      ld_shlibs_CXX=no
21053      ;;
21054 -  sco*)
21055 -    archive_cmds_need_lc_CXX=no
21056 -    case $cc_basename in
21057 -      CC)
21058 -       # FIXME: insert proper C++ library support
21059 -       ld_shlibs_CXX=no
21060 -       ;;
21061 -      *)
21062 -       # FIXME: insert proper C++ library support
21063 -       ld_shlibs_CXX=no
21064 -       ;;
21065 -    esac
21066 -    ;;
21067    sunos4*)
21068      case $cc_basename in
21069 -      CC)
21070 +      CC*)
21071         # Sun C++ 4.x
21072         # FIXME: insert proper C++ library support
21073         ld_shlibs_CXX=no
21074         ;;
21075 -      lcc)
21076 +      lcc*)
21077         # Lucid
21078         # FIXME: insert proper C++ library support
21079         ld_shlibs_CXX=no
21080 @@ -10596,36 +12234,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21081      ;;
21082    solaris*)
21083      case $cc_basename in
21084 -      CC)
21085 +      CC*)
21086         # Sun C++ 4.2, 5.x and Centerline C++
21087 +        archive_cmds_need_lc_CXX=yes
21088         no_undefined_flag_CXX=' -zdefs'
21089 -       archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21090 +       archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21091         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21092 -       $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21093 +       $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21094  
21095         hardcode_libdir_flag_spec_CXX='-R$libdir'
21096         hardcode_shlibpath_var_CXX=no
21097         case $host_os in
21098 -         solaris2.0-5 | solaris2.0-5.*) ;;
21099 +         solaris2.[0-5] | solaris2.[0-5].*) ;;
21100           *)
21101 -           # The C++ compiler is used as linker so we must use $wl
21102 -           # flag to pass the commands to the underlying system
21103 -           # linker.
21104 +           # The compiler driver will combine and reorder linker options,
21105 +           # but understands `-z linker_flag'.
21106             # Supported since Solaris 2.6 (maybe 2.5.1?)
21107 -           whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21108 +           whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21109             ;;
21110         esac
21111         link_all_deplibs_CXX=yes
21112  
21113 -       # Commands to make compiler produce verbose output that lists
21114 -       # what "hidden" libraries, object files and flags are used when
21115 -       # linking a shared library.
21116 -       #
21117 -       # There doesn't appear to be a way to prevent this compiler from
21118 -       # explicitly linking system object files so we need to strip them
21119 -       # from the output so that they don't get included in the library
21120 -       # dependencies.
21121 -       output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21122 +       output_verbose_link_cmd='echo'
21123  
21124         # Archives containing C++ object files must be created using
21125         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21126 @@ -10633,7 +12263,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21127         # in the archive.
21128         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21129         ;;
21130 -      gcx)
21131 +      gcx*)
21132         # Green Hills C++ Compiler
21133         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21134  
21135 @@ -10667,16 +12297,73 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21136           fi
21137  
21138           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21139 +         case $host_os in
21140 +         solaris2.[0-5] | solaris2.[0-5].*) ;;
21141 +         *)
21142 +           whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21143 +           ;;
21144 +         esac
21145         fi
21146         ;;
21147      esac
21148      ;;
21149 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21150 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21151 +    no_undefined_flag_CXX='${wl}-z,text'
21152 +    archive_cmds_need_lc_CXX=no
21153 +    hardcode_shlibpath_var_CXX=no
21154 +    runpath_var='LD_RUN_PATH'
21155 +
21156 +    case $cc_basename in
21157 +      CC*)
21158 +       archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21159 +       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21160 +       ;;
21161 +      *)
21162 +       archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21163 +       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21164 +       ;;
21165 +    esac
21166 +    ;;
21167 +  sysv5* | sco3.2v5* | sco5v6*)
21168 +    # Note: We can NOT use -z defs as we might desire, because we do not
21169 +    # link with -lc, and that would cause any symbols used from libc to
21170 +    # always be unresolved, which means just about no library would
21171 +    # ever link correctly.  If we're not using GNU ld we use -z text
21172 +    # though, which does catch some bad symbols but isn't as heavy-handed
21173 +    # as -z defs.
21174 +    # For security reasons, it is highly recommended that you always
21175 +    # use absolute paths for naming shared libraries, and exclude the
21176 +    # DT_RUNPATH tag from executables and libraries.  But doing so
21177 +    # requires that you compile everything twice, which is a pain.
21178 +    # So that behaviour is only enabled if SCOABSPATH is set to a
21179 +    # non-empty value in the environment.  Most likely only useful for
21180 +    # creating official distributions of packages.
21181 +    # This is a hack until libtool officially supports absolute path
21182 +    # names for shared libraries.
21183 +    no_undefined_flag_CXX='${wl}-z,text'
21184 +    allow_undefined_flag_CXX='${wl}-z,nodefs'
21185      archive_cmds_need_lc_CXX=no
21186 +    hardcode_shlibpath_var_CXX=no
21187 +    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21188 +    hardcode_libdir_separator_CXX=':'
21189 +    link_all_deplibs_CXX=yes
21190 +    export_dynamic_flag_spec_CXX='${wl}-Bexport'
21191 +    runpath_var='LD_RUN_PATH'
21192 +
21193 +    case $cc_basename in
21194 +      CC*)
21195 +       archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21196 +       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21197 +       ;;
21198 +      *)
21199 +       archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21200 +       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21201 +       ;;
21202 +    esac
21203      ;;
21204    tandem*)
21205      case $cc_basename in
21206 -      NCC)
21207 +      NCC*)
21208         # NonStop-UX NCC 3.20
21209         # FIXME: insert proper C++ library support
21210         ld_shlibs_CXX=no
21211 @@ -10696,14 +12383,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21212      ld_shlibs_CXX=no
21213      ;;
21214  esac
21215 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21216 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
21217 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21218 +$as_echo "$ld_shlibs_CXX" >&6; }
21219  test "$ld_shlibs_CXX" = no && can_build_shared=no
21220  
21221  GCC_CXX="$GXX"
21222  LD_CXX="$LD"
21223  
21224 -
21225  cat > conftest.$ac_ext <<EOF
21226  class Foo
21227  {
21228 @@ -10717,7 +12403,7 @@ EOF
21229  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230    (eval $ac_compile) 2>&5
21231    ac_status=$?
21232 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234    (exit $ac_status); }; then
21235    # Parse the compiler output and extract the necessary
21236    # objects, libraries and library flags.
21237 @@ -10729,7 +12415,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21238    # The `*' in the case matches for architectures that use `case' in
21239    # $output_verbose_cmd can trigger glob expansion during the loop
21240    # eval without this substitution.
21241 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
21242 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21243  
21244    for p in `eval $output_verbose_link_cmd`; do
21245      case $p in
21246 @@ -10805,6 +12491,66 @@ fi
21247  
21248  $rm -f confest.$objext
21249  
21250 +compiler_lib_search_dirs_CXX=
21251 +if test -n "$compiler_lib_search_path_CXX"; then
21252 +  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21253 +fi
21254 +
21255 +# PORTME: override above test on systems where it is broken
21256 +case $host_os in
21257 +interix[3-9]*)
21258 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
21259 +  # hack all around it, let's just trust "g++" to DTRT.
21260 +  predep_objects_CXX=
21261 +  postdep_objects_CXX=
21262 +  postdeps_CXX=
21263 +  ;;
21264 +
21265 +linux*)
21266 +  case `$CC -V 2>&1 | sed 5q` in
21267 +  *Sun\ C*)
21268 +    # Sun C++ 5.9
21269 +    #
21270 +    # The more standards-conforming stlport4 library is
21271 +    # incompatible with the Cstd library. Avoid specifying
21272 +    # it if it's in CXXFLAGS. Ignore libCrun as
21273 +    # -library=stlport4 depends on it.
21274 +    case " $CXX $CXXFLAGS " in
21275 +    *" -library=stlport4 "*)
21276 +      solaris_use_stlport4=yes
21277 +      ;;
21278 +    esac
21279 +    if test "$solaris_use_stlport4" != yes; then
21280 +      postdeps_CXX='-library=Cstd -library=Crun'
21281 +    fi
21282 +    ;;
21283 +  esac
21284 +  ;;
21285 +
21286 +solaris*)
21287 +  case $cc_basename in
21288 +  CC*)
21289 +    # The more standards-conforming stlport4 library is
21290 +    # incompatible with the Cstd library. Avoid specifying
21291 +    # it if it's in CXXFLAGS. Ignore libCrun as
21292 +    # -library=stlport4 depends on it.
21293 +    case " $CXX $CXXFLAGS " in
21294 +    *" -library=stlport4 "*)
21295 +      solaris_use_stlport4=yes
21296 +      ;;
21297 +    esac
21298 +
21299 +    # Adding this requires a known-good setup of shared libraries for
21300 +    # Sun compiler versions before 5.6, else PIC objects from an old
21301 +    # archive will be linked into the output, leading to subtle bugs.
21302 +    if test "$solaris_use_stlport4" != yes; then
21303 +      postdeps_CXX='-library=Cstd -library=Crun'
21304 +    fi
21305 +    ;;
21306 +  esac
21307 +  ;;
21308 +esac
21309 +
21310  case " $postdeps_CXX " in
21311  *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21312  esac
21313 @@ -10813,8 +12559,8 @@ lt_prog_compiler_wl_CXX=
21314  lt_prog_compiler_pic_CXX=
21315  lt_prog_compiler_static_CXX=
21316  
21317 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21318 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21319 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21320 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21321  
21322    # C++ specific cases for pic, static, wl, etc.
21323    if test "$GXX" = yes; then
21324 @@ -10835,12 +12581,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21325        # like `-m68040'.
21326        lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21327        ;;
21328 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21329 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21330        # PIC is the default for these OSes.
21331        ;;
21332 -    mingw* | os2* | pw32*)
21333 +    mingw* | cygwin* | os2* | pw32*)
21334        # This hack is so that the source file can tell whether it is being
21335        # built for inclusion in a dll (and should export symbols for example).
21336 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21337 +      # (--disable-auto-import) libraries
21338        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21339        ;;
21340      darwin* | rhapsody*)
21341 @@ -10852,6 +12600,10 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21342        # DJGPP does not support shared libraries at all
21343        lt_prog_compiler_pic_CXX=
21344        ;;
21345 +    interix[3-9]*)
21346 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21347 +      # Instead, we relocate shared libraries at runtime.
21348 +      ;;
21349      sysv4*MP*)
21350        if test -d /usr/nec; then
21351         lt_prog_compiler_pic_CXX=-Kconform_pic
21352 @@ -10860,7 +12612,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21353      hpux*)
21354        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21355        # not for PA HP-UX.
21356 -      case "$host_cpu" in
21357 +      case $host_cpu in
21358        hppa*64*|ia64*)
21359         ;;
21360        *)
21361 @@ -10874,7 +12626,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21362      esac
21363    else
21364      case $host_os in
21365 -      aix4* | aix5*)
21366 +      aix[4-9]*)
21367         # All AIX code is PIC.
21368         if test "$host_cpu" = ia64; then
21369           # AIX 5 now supports IA64 processor
21370 @@ -10885,18 +12637,28 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21371         ;;
21372        chorus*)
21373         case $cc_basename in
21374 -       cxch68)
21375 +       cxch68*)
21376           # Green Hills C++ Compiler
21377           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
21378           ;;
21379         esac
21380         ;;
21381 +       darwin*)
21382 +         # PIC is the default on this platform
21383 +         # Common symbols not allowed in MH_DYLIB files
21384 +         case $cc_basename in
21385 +           xlc*)
21386 +           lt_prog_compiler_pic_CXX='-qnocommon'
21387 +           lt_prog_compiler_wl_CXX='-Wl,'
21388 +           ;;
21389 +         esac
21390 +       ;;
21391        dgux*)
21392         case $cc_basename in
21393 -         ec++)
21394 +         ec++*)
21395             lt_prog_compiler_pic_CXX='-KPIC'
21396             ;;
21397 -         ghcx)
21398 +         ghcx*)
21399             # Green Hills C++ Compiler
21400             lt_prog_compiler_pic_CXX='-pic'
21401             ;;
21402 @@ -10904,22 +12666,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21403             ;;
21404         esac
21405         ;;
21406 -      freebsd* | kfreebsd*-gnu)
21407 +      freebsd* | dragonfly*)
21408         # FreeBSD uses GNU C++
21409         ;;
21410        hpux9* | hpux10* | hpux11*)
21411         case $cc_basename in
21412 -         CC)
21413 +         CC*)
21414             lt_prog_compiler_wl_CXX='-Wl,'
21415 -           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21416 +           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21417             if test "$host_cpu" != ia64; then
21418               lt_prog_compiler_pic_CXX='+Z'
21419             fi
21420             ;;
21421 -         aCC)
21422 +         aCC*)
21423             lt_prog_compiler_wl_CXX='-Wl,'
21424 -           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21425 -           case "$host_cpu" in
21426 +           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21427 +           case $host_cpu in
21428             hppa*64*|ia64*)
21429               # +Z the default
21430               ;;
21431 @@ -10932,9 +12694,13 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21432             ;;
21433         esac
21434         ;;
21435 +      interix*)
21436 +       # This is c89, which is MS Visual C++ (no shared libs)
21437 +       # Anyone wants to do a port?
21438 +       ;;
21439        irix5* | irix6* | nonstopux*)
21440         case $cc_basename in
21441 -         CC)
21442 +         CC*)
21443             lt_prog_compiler_wl_CXX='-Wl,'
21444             lt_prog_compiler_static_CXX='-non_shared'
21445             # CC pic flag -KPIC is the default.
21446 @@ -10943,20 +12709,26 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21447             ;;
21448         esac
21449         ;;
21450 -      linux*)
21451 +      linux* | k*bsd*-gnu)
21452         case $cc_basename in
21453 -         KCC)
21454 +         KCC*)
21455             # KAI C++ Compiler
21456             lt_prog_compiler_wl_CXX='--backend -Wl,'
21457             lt_prog_compiler_pic_CXX='-fPIC'
21458             ;;
21459 -         icpc)
21460 +         icpc* | ecpc*)
21461             # Intel C++
21462             lt_prog_compiler_wl_CXX='-Wl,'
21463             lt_prog_compiler_pic_CXX='-KPIC'
21464             lt_prog_compiler_static_CXX='-static'
21465             ;;
21466 -         cxx)
21467 +         pgCC* | pgcpp*)
21468 +           # Portland Group C++ compiler.
21469 +           lt_prog_compiler_wl_CXX='-Wl,'
21470 +           lt_prog_compiler_pic_CXX='-fpic'
21471 +           lt_prog_compiler_static_CXX='-Bstatic'
21472 +           ;;
21473 +         cxx*)
21474             # Compaq C++
21475             # Make sure the PIC flag is empty.  It appears that all Alpha
21476             # Linux and Compaq Tru64 Unix objects are PIC.
21477 @@ -10964,6 +12736,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21478             lt_prog_compiler_static_CXX='-non_shared'
21479             ;;
21480           *)
21481 +           case `$CC -V 2>&1 | sed 5q` in
21482 +           *Sun\ C*)
21483 +             # Sun C++ 5.9
21484 +             lt_prog_compiler_pic_CXX='-KPIC'
21485 +             lt_prog_compiler_static_CXX='-Bstatic'
21486 +             lt_prog_compiler_wl_CXX='-Qoption ld '
21487 +             ;;
21488 +           esac
21489             ;;
21490         esac
21491         ;;
21492 @@ -10973,25 +12753,25 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21493         ;;
21494        mvs*)
21495         case $cc_basename in
21496 -         cxx)
21497 +         cxx*)
21498             lt_prog_compiler_pic_CXX='-W c,exportall'
21499             ;;
21500           *)
21501             ;;
21502         esac
21503         ;;
21504 -      netbsd*)
21505 +      netbsd* | netbsdelf*-gnu)
21506         ;;
21507        osf3* | osf4* | osf5*)
21508         case $cc_basename in
21509 -         KCC)
21510 +         KCC*)
21511             lt_prog_compiler_wl_CXX='--backend -Wl,'
21512             ;;
21513 -         RCC)
21514 +         RCC*)
21515             # Rational C++ 2.4.1
21516             lt_prog_compiler_pic_CXX='-pic'
21517             ;;
21518 -         cxx)
21519 +         cxx*)
21520             # Digital/Compaq C++
21521             lt_prog_compiler_wl_CXX='-Wl,'
21522             # Make sure the PIC flag is empty.  It appears that all Alpha
21523 @@ -11005,24 +12785,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21524         ;;
21525        psos*)
21526         ;;
21527 -      sco*)
21528 -       case $cc_basename in
21529 -         CC)
21530 -           lt_prog_compiler_pic_CXX='-fPIC'
21531 -           ;;
21532 -         *)
21533 -           ;;
21534 -       esac
21535 -       ;;
21536        solaris*)
21537         case $cc_basename in
21538 -         CC)
21539 +         CC*)
21540             # Sun C++ 4.2, 5.x and Centerline C++
21541             lt_prog_compiler_pic_CXX='-KPIC'
21542             lt_prog_compiler_static_CXX='-Bstatic'
21543             lt_prog_compiler_wl_CXX='-Qoption ld '
21544             ;;
21545 -         gcx)
21546 +         gcx*)
21547             # Green Hills C++ Compiler
21548             lt_prog_compiler_pic_CXX='-PIC'
21549             ;;
21550 @@ -11032,12 +12803,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21551         ;;
21552        sunos4*)
21553         case $cc_basename in
21554 -         CC)
21555 +         CC*)
21556             # Sun C++ 4.x
21557             lt_prog_compiler_pic_CXX='-pic'
21558             lt_prog_compiler_static_CXX='-Bstatic'
21559             ;;
21560 -         lcc)
21561 +         lcc*)
21562             # Lucid
21563             lt_prog_compiler_pic_CXX='-pic'
21564             ;;
21565 @@ -11047,7 +12818,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21566         ;;
21567        tandem*)
21568         case $cc_basename in
21569 -         NCC)
21570 +         NCC*)
21571             # NonStop-UX NCC 3.20
21572             lt_prog_compiler_pic_CXX='-KPIC'
21573             ;;
21574 @@ -11055,7 +12826,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21575             ;;
21576         esac
21577         ;;
21578 -      unixware*)
21579 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21580 +       case $cc_basename in
21581 +         CC*)
21582 +           lt_prog_compiler_wl_CXX='-Wl,'
21583 +           lt_prog_compiler_pic_CXX='-KPIC'
21584 +           lt_prog_compiler_static_CXX='-Bstatic'
21585 +           ;;
21586 +       esac
21587         ;;
21588        vxworks*)
21589         ;;
21590 @@ -11065,22 +12843,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21591      esac
21592    fi
21593  
21594 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
21595 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
21596 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
21597 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21598  
21599  #
21600  # Check to make sure the PIC flag actually works.
21601  #
21602  if test -n "$lt_prog_compiler_pic_CXX"; then
21603  
21604 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21605 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
21606 -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
21607 -  echo $ECHO_N "(cached) $ECHO_C" >&6
21608 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21609 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21610 +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
21611 +  $as_echo_n "(cached) " >&6
21612  else
21613 -  lt_prog_compiler_pic_works_CXX=no
21614 +  lt_cv_prog_compiler_pic_works_CXX=no
21615    ac_outfile=conftest.$ac_objext
21616 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21617 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21618     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21619     # Insert the option either (1) after the last *FLAGS variable, or
21620     # (2) before a word containing "conftest.", or (3) at the end.
21621 @@ -11088,28 +12866,30 @@ else
21622     # with a dollar sign (not a hyphen), so the echo should work correctly.
21623     # The option is referenced via a variable to avoid confusing sed.
21624     lt_compile=`echo "$ac_compile" | $SED \
21625 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21626 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21627     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21628     -e 's:$: $lt_compiler_flag:'`
21629 -   (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
21630 +   (eval echo "\"\$as_me:12872: $lt_compile\"" >&5)
21631     (eval "$lt_compile" 2>conftest.err)
21632     ac_status=$?
21633     cat conftest.err >&5
21634 -   echo "$as_me:11098: \$? = $ac_status" >&5
21635 +   echo "$as_me:12876: \$? = $ac_status" >&5
21636     if (exit $ac_status) && test -s "$ac_outfile"; then
21637       # The compiler can only warn and ignore the option if not recognized
21638 -     # So say no if there are warnings
21639 -     if test ! -s conftest.err; then
21640 -       lt_prog_compiler_pic_works_CXX=yes
21641 +     # So say no if there are warnings other than the usual output.
21642 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21643 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21644 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21645 +       lt_cv_prog_compiler_pic_works_CXX=yes
21646       fi
21647     fi
21648     $rm conftest*
21649  
21650  fi
21651 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
21652 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
21653 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21654 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21655  
21656 -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
21657 +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21658      case $lt_prog_compiler_pic_CXX in
21659       "" | " "*) ;;
21660       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21661 @@ -11120,7 +12900,7 @@ else
21662  fi
21663  
21664  fi
21665 -case "$host_os" in
21666 +case $host_os in
21667    # For platforms which do not support PIC, -DPIC is meaningless:
21668    *djgpp*)
21669      lt_prog_compiler_pic_CXX=
21670 @@ -11130,17 +12910,59 @@ case "$host_os" in
21671      ;;
21672  esac
21673  
21674 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21675 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21676 +#
21677 +# Check to make sure the static flag actually works.
21678 +#
21679 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21680 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21681 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21682 +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
21683 +  $as_echo_n "(cached) " >&6
21684 +else
21685 +  lt_cv_prog_compiler_static_works_CXX=no
21686 +   save_LDFLAGS="$LDFLAGS"
21687 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21688 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21689 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21690 +     # The linker can only warn and ignore the option if not recognized
21691 +     # So say no if there are warnings
21692 +     if test -s conftest.err; then
21693 +       # Append any errors to the config.log.
21694 +       cat conftest.err 1>&5
21695 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21696 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21697 +       if diff conftest.exp conftest.er2 >/dev/null; then
21698 +         lt_cv_prog_compiler_static_works_CXX=yes
21699 +       fi
21700 +     else
21701 +       lt_cv_prog_compiler_static_works_CXX=yes
21702 +     fi
21703 +   fi
21704 +   $rm -r conftest*
21705 +   LDFLAGS="$save_LDFLAGS"
21706 +
21707 +fi
21708 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21709 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21710 +
21711 +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21712 +    :
21713 +else
21714 +    lt_prog_compiler_static_CXX=
21715 +fi
21716 +
21717 +
21718 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21719 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21720  if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
21721 -  echo $ECHO_N "(cached) $ECHO_C" >&6
21722 +  $as_echo_n "(cached) " >&6
21723  else
21724    lt_cv_prog_compiler_c_o_CXX=no
21725     $rm -r conftest 2>/dev/null
21726     mkdir conftest
21727     cd conftest
21728     mkdir out
21729 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21730 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21731  
21732     lt_compiler_flag="-o out/conftest2.$ac_objext"
21733     # Insert the option either (1) after the last *FLAGS variable, or
21734 @@ -11148,23 +12970,25 @@ else
21735     # Note that $ac_compile itself does not contain backslashes and begins
21736     # with a dollar sign (not a hyphen), so the echo should work correctly.
21737     lt_compile=`echo "$ac_compile" | $SED \
21738 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21739 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21740     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21741     -e 's:$: $lt_compiler_flag:'`
21742 -   (eval echo "\"\$as_me:11154: $lt_compile\"" >&5)
21743 +   (eval echo "\"\$as_me:12976: $lt_compile\"" >&5)
21744     (eval "$lt_compile" 2>out/conftest.err)
21745     ac_status=$?
21746     cat out/conftest.err >&5
21747 -   echo "$as_me:11158: \$? = $ac_status" >&5
21748 +   echo "$as_me:12980: \$? = $ac_status" >&5
21749     if (exit $ac_status) && test -s out/conftest2.$ac_objext
21750     then
21751       # The compiler can only warn and ignore the option if not recognized
21752       # So say no if there are warnings
21753 -     if test ! -s out/conftest.err; then
21754 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21755 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21756 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21757         lt_cv_prog_compiler_c_o_CXX=yes
21758       fi
21759     fi
21760 -   chmod u+w .
21761 +   chmod u+w . 2>&5
21762     $rm conftest*
21763     # SGI C++ compiler will create directory out/ii_files/ for
21764     # template instantiation
21765 @@ -11175,38 +12999,38 @@ else
21766     $rm conftest*
21767  
21768  fi
21769 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21770 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
21771 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21772 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21773  
21774  
21775  hard_links="nottested"
21776  if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21777    # do not overwrite the value of need_locks provided by the user
21778 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21779 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21780 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21781 +$as_echo_n "checking if we can lock with hard links... " >&6; }
21782    hard_links=yes
21783    $rm conftest*
21784    ln conftest.a conftest.b 2>/dev/null && hard_links=no
21785    touch conftest.a
21786    ln conftest.a conftest.b 2>&5 || hard_links=no
21787    ln conftest.a conftest.b 2>/dev/null && hard_links=no
21788 -  echo "$as_me:$LINENO: result: $hard_links" >&5
21789 -echo "${ECHO_T}$hard_links" >&6
21790 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
21791 +$as_echo "$hard_links" >&6; }
21792    if test "$hard_links" = no; then
21793 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21794 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21795 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21796 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21797      need_locks=warn
21798    fi
21799  else
21800    need_locks=no
21801  fi
21802  
21803 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21804 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21805 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21806 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21807  
21808    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21809    case $host_os in
21810 -  aix4* | aix5*)
21811 +  aix[4-9]*)
21812      # If we're using GNU nm, then we don't want the "-C" option.
21813      # -C means demangle to AIX nm, but means don't demangle with GNU nm
21814      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21815 @@ -11219,22 +13043,21 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
21816      export_symbols_cmds_CXX="$ltdll_cmds"
21817    ;;
21818    cygwin* | mingw*)
21819 -    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21820 +    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21821 +  ;;
21822 +  linux* | k*bsd*-gnu)
21823 +    link_all_deplibs_CXX=no
21824    ;;
21825    *)
21826      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21827    ;;
21828    esac
21829 +  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21830  
21831 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21832 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
21833 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21834 +$as_echo "$ld_shlibs_CXX" >&6; }
21835  test "$ld_shlibs_CXX" = no && can_build_shared=no
21836  
21837 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21838 -if test "$GCC" = yes; then
21839 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21840 -fi
21841 -
21842  #
21843  # Do we need to explicitly link libc?
21844  #
21845 @@ -11252,21 +13075,22 @@ x|xyes)
21846        # Test whether the compiler implicitly links with -lc since on some
21847        # systems, -lgcc has to come before -lc. If gcc already passes -lc
21848        # to ld, don't add -lc before -lgcc.
21849 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21850 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21851 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21852 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21853        $rm conftest*
21854 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21855 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21856  
21857        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858    (eval $ac_compile) 2>&5
21859    ac_status=$?
21860 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862    (exit $ac_status); } 2>conftest.err; then
21863          soname=conftest
21864          lib=conftest
21865          libobjs=conftest.$ac_objext
21866          deplibs=
21867          wl=$lt_prog_compiler_wl_CXX
21868 +       pic_flag=$lt_prog_compiler_pic_CXX
21869          compiler_flags=-v
21870          linker_flags=-v
21871          verstring=
21872 @@ -11277,7 +13101,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
21873          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21874    (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21875    ac_status=$?
21876 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878    (exit $ac_status); }
21879          then
21880           archive_cmds_need_lc_CXX=no
21881 @@ -11289,16 +13113,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
21882          cat conftest.err 1>&5
21883        fi
21884        $rm conftest*
21885 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
21886 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
21887 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
21888 +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
21889        ;;
21890      esac
21891    fi
21892    ;;
21893  esac
21894  
21895 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21896 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21897 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21898 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
21899  library_names_spec=
21900  libname_spec='lib$name'
21901  soname_spec=
21902 @@ -11312,20 +13136,7 @@ shlibpath_overrides_runpath=unknown
21903  version_type=none
21904  dynamic_linker="$host_os ld.so"
21905  sys_lib_dlsearch_path_spec="/lib /usr/lib"
21906 -if test "$GCC" = yes; then
21907 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21908 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21909 -    # if the path contains ";" then we assume it to be the separator
21910 -    # otherwise default to the standard path separator (i.e. ":") - it is
21911 -    # assumed that no part of a normal pathname contains ";" but that should
21912 -    # okay in the real world where ";" in dirpaths is itself problematic.
21913 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21914 -  else
21915 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21916 -  fi
21917 -else
21918 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21919 -fi
21920 +
21921  need_lib_prefix=unknown
21922  hardcode_into_libs=no
21923  
21924 @@ -11343,7 +13154,7 @@ aix3*)
21925    soname_spec='${libname}${release}${shared_ext}$major'
21926    ;;
21927  
21928 -aix4* | aix5*)
21929 +aix[4-9]*)
21930    version_type=linux
21931    need_lib_prefix=no
21932    need_version=no
21933 @@ -11399,7 +13210,7 @@ beos*)
21934    shlibpath_var=LIBRARY_PATH
21935    ;;
21936  
21937 -bsdi4*)
21938 +bsdi[45]*)
21939    version_type=linux
21940    need_version=no
21941    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21942 @@ -11427,7 +13238,8 @@ cygwin* | mingw* | pw32*)
21943        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21944        dldir=$destdir/`dirname \$dlpath`~
21945        test -d \$dldir || mkdir -p \$dldir~
21946 -      $install_prog $dir/$dlname \$dldir/$dlname'
21947 +      $install_prog $dir/$dlname \$dldir/$dlname~
21948 +      chmod a+x \$dldir/$dlname'
21949      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21950        dlpath=$dir/\$dldll~
21951         $rm \$dlpath'
21952 @@ -11457,7 +13269,7 @@ cygwin* | mingw* | pw32*)
21953        ;;
21954      pw32*)
21955        # pw32 DLLs use 'pw' prefix rather than 'lib'
21956 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21957 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21958        ;;
21959      esac
21960      ;;
21961 @@ -11480,13 +13292,8 @@ darwin* | rhapsody*)
21962    soname_spec='${libname}${release}${major}$shared_ext'
21963    shlibpath_overrides_runpath=yes
21964    shlibpath_var=DYLD_LIBRARY_PATH
21965 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21966 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21967 -  if test "$GCC" = yes; then
21968 -    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"`
21969 -  else
21970 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21971 -  fi
21972 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21973 +
21974    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21975    ;;
21976  
21977 @@ -11503,20 +13310,17 @@ freebsd1*)
21978    dynamic_linker=no
21979    ;;
21980  
21981 -kfreebsd*-gnu)
21982 -  version_type=linux
21983 -  need_lib_prefix=no
21984 -  need_version=no
21985 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21986 -  soname_spec='${libname}${release}${shared_ext}$major'
21987 -  shlibpath_var=LD_LIBRARY_PATH
21988 -  shlibpath_overrides_runpath=no
21989 -  hardcode_into_libs=yes
21990 -  dynamic_linker='GNU ld.so'
21991 -  ;;
21992 -
21993 -freebsd*)
21994 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21995 +freebsd* | dragonfly*)
21996 +  # DragonFly does not have aout.  When/if they implement a new
21997 +  # versioning mechanism, adjust this.
21998 +  if test -x /usr/bin/objformat; then
21999 +    objformat=`/usr/bin/objformat`
22000 +  else
22001 +    case $host_os in
22002 +    freebsd[123]*) objformat=aout ;;
22003 +    *) objformat=elf ;;
22004 +    esac
22005 +  fi
22006    version_type=freebsd-$objformat
22007    case $version_type in
22008      freebsd-elf*)
22009 @@ -11534,14 +13338,19 @@ freebsd*)
22010    freebsd2*)
22011      shlibpath_overrides_runpath=yes
22012      ;;
22013 -  freebsd3.01* | freebsdelf3.01*)
22014 +  freebsd3.[01]* | freebsdelf3.[01]*)
22015      shlibpath_overrides_runpath=yes
22016      hardcode_into_libs=yes
22017      ;;
22018 -  *) # from 3.2 on
22019 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22020 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22021      shlibpath_overrides_runpath=no
22022      hardcode_into_libs=yes
22023      ;;
22024 +  *) # from 4.6 on, and DragonFly
22025 +    shlibpath_overrides_runpath=yes
22026 +    hardcode_into_libs=yes
22027 +    ;;
22028    esac
22029    ;;
22030  
22031 @@ -11561,7 +13370,7 @@ hpux9* | hpux10* | hpux11*)
22032    version_type=sunos
22033    need_lib_prefix=no
22034    need_version=no
22035 -  case "$host_cpu" in
22036 +  case $host_cpu in
22037    ia64*)
22038      shrext_cmds='.so'
22039      hardcode_into_libs=yes
22040 @@ -11601,6 +13410,18 @@ hpux9* | hpux10* | hpux11*)
22041    postinstall_cmds='chmod 555 $lib'
22042    ;;
22043  
22044 +interix[3-9]*)
22045 +  version_type=linux
22046 +  need_lib_prefix=no
22047 +  need_version=no
22048 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22049 +  soname_spec='${libname}${release}${shared_ext}$major'
22050 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22051 +  shlibpath_var=LD_LIBRARY_PATH
22052 +  shlibpath_overrides_runpath=no
22053 +  hardcode_into_libs=yes
22054 +  ;;
22055 +
22056  irix5* | irix6* | nonstopux*)
22057    case $host_os in
22058      nonstopux*) version_type=nonstopux ;;
22059 @@ -11644,7 +13465,7 @@ linux*oldld* | linux*aout* | linux*coff*)
22060    ;;
22061  
22062  # This must be Linux ELF.
22063 -linux*)
22064 +linux* | k*bsd*-gnu)
22065    version_type=linux
22066    need_lib_prefix=no
22067    need_version=no
22068 @@ -11658,31 +13479,10 @@ linux*)
22069    # before this can be enabled.
22070    hardcode_into_libs=yes
22071  
22072 -  # find out which ABI we are using
22073 -  libsuff=
22074 -  case "$host_cpu" in
22075 -  x86_64*|s390x*|powerpc64*)
22076 -    echo '#line 11665 "configure"' > conftest.$ac_ext
22077 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22078 -  (eval $ac_compile) 2>&5
22079 -  ac_status=$?
22080 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 -  (exit $ac_status); }; then
22082 -      case `/usr/bin/file conftest.$ac_objext` in
22083 -      *64-bit*)
22084 -        libsuff=64
22085 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22086 -        ;;
22087 -      esac
22088 -    fi
22089 -    rm -rf conftest*
22090 -    ;;
22091 -  esac
22092 -
22093    # Append ld.so.conf contents to the search path
22094    if test -f /etc/ld.so.conf; then
22095 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22096 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22097 +    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' ' '`
22098 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22099    fi
22100  
22101    # We used to test for /lib/ld.so.1 and disable shared libraries on
22102 @@ -11694,7 +13494,7 @@ linux*)
22103    dynamic_linker='GNU/Linux ld.so'
22104    ;;
22105  
22106 -knetbsd*-gnu)
22107 +netbsdelf*-gnu)
22108    version_type=linux
22109    need_lib_prefix=no
22110    need_version=no
22111 @@ -11703,7 +13503,7 @@ knetbsd*-gnu)
22112    shlibpath_var=LD_LIBRARY_PATH
22113    shlibpath_overrides_runpath=no
22114    hardcode_into_libs=yes
22115 -  dynamic_linker='GNU ld.so'
22116 +  dynamic_linker='NetBSD ld.elf_so'
22117    ;;
22118  
22119  netbsd*)
22120 @@ -11743,8 +13543,13 @@ nto-qnx*)
22121  
22122  openbsd*)
22123    version_type=sunos
22124 +  sys_lib_dlsearch_path_spec="/usr/lib"
22125    need_lib_prefix=no
22126 -  need_version=yes
22127 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22128 +  case $host_os in
22129 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22130 +    *)                         need_version=no  ;;
22131 +  esac
22132    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22133    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22134    shlibpath_var=LD_LIBRARY_PATH
22135 @@ -11782,11 +13587,8 @@ osf3* | osf4* | osf5*)
22136    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22137    ;;
22138  
22139 -sco3.2v5*)
22140 -  version_type=osf
22141 -  soname_spec='${libname}${release}${shared_ext}$major'
22142 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22143 -  shlibpath_var=LD_LIBRARY_PATH
22144 +rdos*)
22145 +  dynamic_linker=no
22146    ;;
22147  
22148  solaris*)
22149 @@ -11814,7 +13616,7 @@ sunos4*)
22150    need_version=yes
22151    ;;
22152  
22153 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22154 +sysv4 | sysv4.3*)
22155    version_type=linux
22156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22157    soname_spec='${libname}${release}${shared_ext}$major'
22158 @@ -11847,6 +13649,29 @@ sysv4*MP*)
22159    fi
22160    ;;
22161  
22162 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22163 +  version_type=freebsd-elf
22164 +  need_lib_prefix=no
22165 +  need_version=no
22166 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22167 +  soname_spec='${libname}${release}${shared_ext}$major'
22168 +  shlibpath_var=LD_LIBRARY_PATH
22169 +  hardcode_into_libs=yes
22170 +  if test "$with_gnu_ld" = yes; then
22171 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22172 +    shlibpath_overrides_runpath=no
22173 +  else
22174 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22175 +    shlibpath_overrides_runpath=yes
22176 +    case $host_os in
22177 +      sco3.2v5*)
22178 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22179 +       ;;
22180 +    esac
22181 +  fi
22182 +  sys_lib_dlsearch_path_spec='/usr/lib'
22183 +  ;;
22184 +
22185  uts4*)
22186    version_type=linux
22187    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22188 @@ -11858,16 +13683,36 @@ uts4*)
22189    dynamic_linker=no
22190    ;;
22191  esac
22192 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22193 -echo "${ECHO_T}$dynamic_linker" >&6
22194 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22195 +$as_echo "$dynamic_linker" >&6; }
22196  test "$dynamic_linker" = no && can_build_shared=no
22197  
22198 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22199 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22200 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22201 +  $as_echo_n "(cached) " >&6
22202 +else
22203 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22204 +fi
22205 +
22206 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22207 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22208 +  $as_echo_n "(cached) " >&6
22209 +else
22210 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22211 +fi
22212 +
22213 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22214 +
22215 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22216 +if test "$GCC" = yes; then
22217 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22218 +fi
22219 +
22220 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22221 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22222  hardcode_action_CXX=
22223  if test -n "$hardcode_libdir_flag_spec_CXX" || \
22224 -   test -n "$runpath_var CXX" || \
22225 -   test "X$hardcode_automatic_CXX"="Xyes" ; then
22226 +   test -n "$runpath_var_CXX" || \
22227 +   test "X$hardcode_automatic_CXX" = "Xyes" ; then
22228  
22229    # We can hardcode non-existant directories.
22230    if test "$hardcode_direct_CXX" != no &&
22231 @@ -11887,8 +13732,8 @@ else
22232    # directories.
22233    hardcode_action_CXX=unsupported
22234  fi
22235 -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22236 -echo "${ECHO_T}$hardcode_action_CXX" >&6
22237 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22238 +$as_echo "$hardcode_action_CXX" >&6; }
22239  
22240  if test "$hardcode_action_CXX" = relink; then
22241    # Fast installation is not supported
22242 @@ -11899,841 +13744,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
22243    enable_fast_install=needless
22244  fi
22245  
22246 -striplib=
22247 -old_striplib=
22248 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22249 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22250 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22251 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22252 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22253 -  echo "$as_me:$LINENO: result: yes" >&5
22254 -echo "${ECHO_T}yes" >&6
22255 -else
22256 -# FIXME - insert some real tests, host_os isn't really good enough
22257 -  case $host_os in
22258 -   darwin*)
22259 -       if test -n "$STRIP" ; then
22260 -         striplib="$STRIP -x"
22261 -         echo "$as_me:$LINENO: result: yes" >&5
22262 -echo "${ECHO_T}yes" >&6
22263 -       else
22264 -  echo "$as_me:$LINENO: result: no" >&5
22265 -echo "${ECHO_T}no" >&6
22266 -fi
22267 -       ;;
22268 -   *)
22269 -  echo "$as_me:$LINENO: result: no" >&5
22270 -echo "${ECHO_T}no" >&6
22271 -    ;;
22272 -  esac
22273 -fi
22274 -
22275 -if test "x$enable_dlopen" != xyes; then
22276 -  enable_dlopen=unknown
22277 -  enable_dlopen_self=unknown
22278 -  enable_dlopen_self_static=unknown
22279 -else
22280 -  lt_cv_dlopen=no
22281 -  lt_cv_dlopen_libs=
22282 -
22283 -  case $host_os in
22284 -  beos*)
22285 -    lt_cv_dlopen="load_add_on"
22286 -    lt_cv_dlopen_libs=
22287 -    lt_cv_dlopen_self=yes
22288 -    ;;
22289 -
22290 -  mingw* | pw32*)
22291 -    lt_cv_dlopen="LoadLibrary"
22292 -    lt_cv_dlopen_libs=
22293 -   ;;
22294 -
22295 -  cygwin*)
22296 -    lt_cv_dlopen="dlopen"
22297 -    lt_cv_dlopen_libs=
22298 -   ;;
22299 -
22300 -  darwin*)
22301 -  # if libdl is installed we need to link against it
22302 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22303 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22304 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22305 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22306 -else
22307 -  ac_check_lib_save_LIBS=$LIBS
22308 -LIBS="-ldl  $LIBS"
22309 -cat >conftest.$ac_ext <<_ACEOF
22310 -/* confdefs.h.  */
22311 -_ACEOF
22312 -cat confdefs.h >>conftest.$ac_ext
22313 -cat >>conftest.$ac_ext <<_ACEOF
22314 -/* end confdefs.h.  */
22315 -
22316 -/* Override any gcc2 internal prototype to avoid an error.  */
22317 -#ifdef __cplusplus
22318 -extern "C"
22319 -#endif
22320 -/* We use char because int might match the return type of a gcc2
22321 -   builtin and then its argument prototype would still apply.  */
22322 -char dlopen ();
22323 -int
22324 -main ()
22325 -{
22326 -dlopen ();
22327 -  ;
22328 -  return 0;
22329 -}
22330 -_ACEOF
22331 -rm -f conftest.$ac_objext conftest$ac_exeext
22332 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22333 -  (eval $ac_link) 2>conftest.er1
22334 -  ac_status=$?
22335 -  grep -v '^ *+' conftest.er1 >conftest.err
22336 -  rm -f conftest.er1
22337 -  cat conftest.err >&5
22338 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 -  (exit $ac_status); } &&
22340 -        { ac_try='test -z "$ac_cxx_werror_flag"
22341 -                        || test ! -s conftest.err'
22342 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 -  (eval $ac_try) 2>&5
22344 -  ac_status=$?
22345 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 -  (exit $ac_status); }; } &&
22347 -        { ac_try='test -s conftest$ac_exeext'
22348 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 -  (eval $ac_try) 2>&5
22350 -  ac_status=$?
22351 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 -  (exit $ac_status); }; }; then
22353 -  ac_cv_lib_dl_dlopen=yes
22354 -else
22355 -  echo "$as_me: failed program was:" >&5
22356 -sed 's/^/| /' conftest.$ac_ext >&5
22357 -
22358 -ac_cv_lib_dl_dlopen=no
22359 -fi
22360 -rm -f conftest.err conftest.$ac_objext \
22361 -      conftest$ac_exeext conftest.$ac_ext
22362 -LIBS=$ac_check_lib_save_LIBS
22363 -fi
22364 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22365 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22366 -if test $ac_cv_lib_dl_dlopen = yes; then
22367 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22368 -else
22369 -
22370 -    lt_cv_dlopen="dyld"
22371 -    lt_cv_dlopen_libs=
22372 -    lt_cv_dlopen_self=yes
22373 -
22374 -fi
22375 -
22376 -   ;;
22377 -
22378 -  *)
22379 -    echo "$as_me:$LINENO: checking for shl_load" >&5
22380 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22381 -if test "${ac_cv_func_shl_load+set}" = set; then
22382 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22383 -else
22384 -  cat >conftest.$ac_ext <<_ACEOF
22385 -/* confdefs.h.  */
22386 -_ACEOF
22387 -cat confdefs.h >>conftest.$ac_ext
22388 -cat >>conftest.$ac_ext <<_ACEOF
22389 -/* end confdefs.h.  */
22390 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22391 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22392 -#define shl_load innocuous_shl_load
22393 -
22394 -/* System header to define __stub macros and hopefully few prototypes,
22395 -    which can conflict with char shl_load (); below.
22396 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22397 -    <limits.h> exists even on freestanding compilers.  */
22398 -
22399 -#ifdef __STDC__
22400 -# include <limits.h>
22401 -#else
22402 -# include <assert.h>
22403 -#endif
22404 -
22405 -#undef shl_load
22406 -
22407 -/* Override any gcc2 internal prototype to avoid an error.  */
22408 -#ifdef __cplusplus
22409 -extern "C"
22410 -{
22411 -#endif
22412 -/* We use char because int might match the return type of a gcc2
22413 -   builtin and then its argument prototype would still apply.  */
22414 -char shl_load ();
22415 -/* The GNU C library defines this for functions which it implements
22416 -    to always fail with ENOSYS.  Some functions are actually named
22417 -    something starting with __ and the normal name is an alias.  */
22418 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
22419 -choke me
22420 -#else
22421 -char (*f) () = shl_load;
22422 -#endif
22423 -#ifdef __cplusplus
22424 -}
22425 -#endif
22426 -
22427 -int
22428 -main ()
22429 -{
22430 -return f != shl_load;
22431 -  ;
22432 -  return 0;
22433 -}
22434 -_ACEOF
22435 -rm -f conftest.$ac_objext conftest$ac_exeext
22436 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22437 -  (eval $ac_link) 2>conftest.er1
22438 -  ac_status=$?
22439 -  grep -v '^ *+' conftest.er1 >conftest.err
22440 -  rm -f conftest.er1
22441 -  cat conftest.err >&5
22442 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 -  (exit $ac_status); } &&
22444 -        { ac_try='test -z "$ac_cxx_werror_flag"
22445 -                        || test ! -s conftest.err'
22446 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447 -  (eval $ac_try) 2>&5
22448 -  ac_status=$?
22449 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 -  (exit $ac_status); }; } &&
22451 -        { ac_try='test -s conftest$ac_exeext'
22452 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 -  (eval $ac_try) 2>&5
22454 -  ac_status=$?
22455 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 -  (exit $ac_status); }; }; then
22457 -  ac_cv_func_shl_load=yes
22458 -else
22459 -  echo "$as_me: failed program was:" >&5
22460 -sed 's/^/| /' conftest.$ac_ext >&5
22461 -
22462 -ac_cv_func_shl_load=no
22463 -fi
22464 -rm -f conftest.err conftest.$ac_objext \
22465 -      conftest$ac_exeext conftest.$ac_ext
22466 -fi
22467 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22468 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22469 -if test $ac_cv_func_shl_load = yes; then
22470 -  lt_cv_dlopen="shl_load"
22471 -else
22472 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22473 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22474 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22475 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22476 -else
22477 -  ac_check_lib_save_LIBS=$LIBS
22478 -LIBS="-ldld  $LIBS"
22479 -cat >conftest.$ac_ext <<_ACEOF
22480 -/* confdefs.h.  */
22481 -_ACEOF
22482 -cat confdefs.h >>conftest.$ac_ext
22483 -cat >>conftest.$ac_ext <<_ACEOF
22484 -/* end confdefs.h.  */
22485 -
22486 -/* Override any gcc2 internal prototype to avoid an error.  */
22487 -#ifdef __cplusplus
22488 -extern "C"
22489 -#endif
22490 -/* We use char because int might match the return type of a gcc2
22491 -   builtin and then its argument prototype would still apply.  */
22492 -char shl_load ();
22493 -int
22494 -main ()
22495 -{
22496 -shl_load ();
22497 -  ;
22498 -  return 0;
22499 -}
22500 -_ACEOF
22501 -rm -f conftest.$ac_objext conftest$ac_exeext
22502 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22503 -  (eval $ac_link) 2>conftest.er1
22504 -  ac_status=$?
22505 -  grep -v '^ *+' conftest.er1 >conftest.err
22506 -  rm -f conftest.er1
22507 -  cat conftest.err >&5
22508 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 -  (exit $ac_status); } &&
22510 -        { ac_try='test -z "$ac_cxx_werror_flag"
22511 -                        || test ! -s conftest.err'
22512 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513 -  (eval $ac_try) 2>&5
22514 -  ac_status=$?
22515 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 -  (exit $ac_status); }; } &&
22517 -        { ac_try='test -s conftest$ac_exeext'
22518 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 -  (eval $ac_try) 2>&5
22520 -  ac_status=$?
22521 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 -  (exit $ac_status); }; }; then
22523 -  ac_cv_lib_dld_shl_load=yes
22524 -else
22525 -  echo "$as_me: failed program was:" >&5
22526 -sed 's/^/| /' conftest.$ac_ext >&5
22527 -
22528 -ac_cv_lib_dld_shl_load=no
22529 -fi
22530 -rm -f conftest.err conftest.$ac_objext \
22531 -      conftest$ac_exeext conftest.$ac_ext
22532 -LIBS=$ac_check_lib_save_LIBS
22533 -fi
22534 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
22535 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
22536 -if test $ac_cv_lib_dld_shl_load = yes; then
22537 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
22538 -else
22539 -  echo "$as_me:$LINENO: checking for dlopen" >&5
22540 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
22541 -if test "${ac_cv_func_dlopen+set}" = set; then
22542 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22543 -else
22544 -  cat >conftest.$ac_ext <<_ACEOF
22545 -/* confdefs.h.  */
22546 -_ACEOF
22547 -cat confdefs.h >>conftest.$ac_ext
22548 -cat >>conftest.$ac_ext <<_ACEOF
22549 -/* end confdefs.h.  */
22550 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
22551 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22552 -#define dlopen innocuous_dlopen
22553 -
22554 -/* System header to define __stub macros and hopefully few prototypes,
22555 -    which can conflict with char dlopen (); below.
22556 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22557 -    <limits.h> exists even on freestanding compilers.  */
22558 -
22559 -#ifdef __STDC__
22560 -# include <limits.h>
22561 -#else
22562 -# include <assert.h>
22563 -#endif
22564 -
22565 -#undef dlopen
22566 -
22567 -/* Override any gcc2 internal prototype to avoid an error.  */
22568 -#ifdef __cplusplus
22569 -extern "C"
22570 -{
22571 -#endif
22572 -/* We use char because int might match the return type of a gcc2
22573 -   builtin and then its argument prototype would still apply.  */
22574 -char dlopen ();
22575 -/* The GNU C library defines this for functions which it implements
22576 -    to always fail with ENOSYS.  Some functions are actually named
22577 -    something starting with __ and the normal name is an alias.  */
22578 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
22579 -choke me
22580 -#else
22581 -char (*f) () = dlopen;
22582 -#endif
22583 -#ifdef __cplusplus
22584 -}
22585 -#endif
22586 -
22587 -int
22588 -main ()
22589 -{
22590 -return f != dlopen;
22591 -  ;
22592 -  return 0;
22593 -}
22594 -_ACEOF
22595 -rm -f conftest.$ac_objext conftest$ac_exeext
22596 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22597 -  (eval $ac_link) 2>conftest.er1
22598 -  ac_status=$?
22599 -  grep -v '^ *+' conftest.er1 >conftest.err
22600 -  rm -f conftest.er1
22601 -  cat conftest.err >&5
22602 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 -  (exit $ac_status); } &&
22604 -        { ac_try='test -z "$ac_cxx_werror_flag"
22605 -                        || test ! -s conftest.err'
22606 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 -  (eval $ac_try) 2>&5
22608 -  ac_status=$?
22609 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 -  (exit $ac_status); }; } &&
22611 -        { ac_try='test -s conftest$ac_exeext'
22612 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 -  (eval $ac_try) 2>&5
22614 -  ac_status=$?
22615 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 -  (exit $ac_status); }; }; then
22617 -  ac_cv_func_dlopen=yes
22618 -else
22619 -  echo "$as_me: failed program was:" >&5
22620 -sed 's/^/| /' conftest.$ac_ext >&5
22621 -
22622 -ac_cv_func_dlopen=no
22623 -fi
22624 -rm -f conftest.err conftest.$ac_objext \
22625 -      conftest$ac_exeext conftest.$ac_ext
22626 -fi
22627 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
22628 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
22629 -if test $ac_cv_func_dlopen = yes; then
22630 -  lt_cv_dlopen="dlopen"
22631 -else
22632 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22633 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22634 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22635 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22636 -else
22637 -  ac_check_lib_save_LIBS=$LIBS
22638 -LIBS="-ldl  $LIBS"
22639 -cat >conftest.$ac_ext <<_ACEOF
22640 -/* confdefs.h.  */
22641 -_ACEOF
22642 -cat confdefs.h >>conftest.$ac_ext
22643 -cat >>conftest.$ac_ext <<_ACEOF
22644 -/* end confdefs.h.  */
22645 -
22646 -/* Override any gcc2 internal prototype to avoid an error.  */
22647 -#ifdef __cplusplus
22648 -extern "C"
22649 -#endif
22650 -/* We use char because int might match the return type of a gcc2
22651 -   builtin and then its argument prototype would still apply.  */
22652 -char dlopen ();
22653 -int
22654 -main ()
22655 -{
22656 -dlopen ();
22657 -  ;
22658 -  return 0;
22659 -}
22660 -_ACEOF
22661 -rm -f conftest.$ac_objext conftest$ac_exeext
22662 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22663 -  (eval $ac_link) 2>conftest.er1
22664 -  ac_status=$?
22665 -  grep -v '^ *+' conftest.er1 >conftest.err
22666 -  rm -f conftest.er1
22667 -  cat conftest.err >&5
22668 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 -  (exit $ac_status); } &&
22670 -        { ac_try='test -z "$ac_cxx_werror_flag"
22671 -                        || test ! -s conftest.err'
22672 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 -  (eval $ac_try) 2>&5
22674 -  ac_status=$?
22675 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 -  (exit $ac_status); }; } &&
22677 -        { ac_try='test -s conftest$ac_exeext'
22678 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 -  (eval $ac_try) 2>&5
22680 -  ac_status=$?
22681 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 -  (exit $ac_status); }; }; then
22683 -  ac_cv_lib_dl_dlopen=yes
22684 -else
22685 -  echo "$as_me: failed program was:" >&5
22686 -sed 's/^/| /' conftest.$ac_ext >&5
22687 -
22688 -ac_cv_lib_dl_dlopen=no
22689 -fi
22690 -rm -f conftest.err conftest.$ac_objext \
22691 -      conftest$ac_exeext conftest.$ac_ext
22692 -LIBS=$ac_check_lib_save_LIBS
22693 -fi
22694 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22695 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22696 -if test $ac_cv_lib_dl_dlopen = yes; then
22697 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22698 -else
22699 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
22700 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
22701 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
22702 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22703 -else
22704 -  ac_check_lib_save_LIBS=$LIBS
22705 -LIBS="-lsvld  $LIBS"
22706 -cat >conftest.$ac_ext <<_ACEOF
22707 -/* confdefs.h.  */
22708 -_ACEOF
22709 -cat confdefs.h >>conftest.$ac_ext
22710 -cat >>conftest.$ac_ext <<_ACEOF
22711 -/* end confdefs.h.  */
22712 -
22713 -/* Override any gcc2 internal prototype to avoid an error.  */
22714 -#ifdef __cplusplus
22715 -extern "C"
22716 -#endif
22717 -/* We use char because int might match the return type of a gcc2
22718 -   builtin and then its argument prototype would still apply.  */
22719 -char dlopen ();
22720 -int
22721 -main ()
22722 -{
22723 -dlopen ();
22724 -  ;
22725 -  return 0;
22726 -}
22727 -_ACEOF
22728 -rm -f conftest.$ac_objext conftest$ac_exeext
22729 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22730 -  (eval $ac_link) 2>conftest.er1
22731 -  ac_status=$?
22732 -  grep -v '^ *+' conftest.er1 >conftest.err
22733 -  rm -f conftest.er1
22734 -  cat conftest.err >&5
22735 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 -  (exit $ac_status); } &&
22737 -        { ac_try='test -z "$ac_cxx_werror_flag"
22738 -                        || test ! -s conftest.err'
22739 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 -  (eval $ac_try) 2>&5
22741 -  ac_status=$?
22742 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 -  (exit $ac_status); }; } &&
22744 -        { ac_try='test -s conftest$ac_exeext'
22745 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 -  (eval $ac_try) 2>&5
22747 -  ac_status=$?
22748 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 -  (exit $ac_status); }; }; then
22750 -  ac_cv_lib_svld_dlopen=yes
22751 -else
22752 -  echo "$as_me: failed program was:" >&5
22753 -sed 's/^/| /' conftest.$ac_ext >&5
22754 -
22755 -ac_cv_lib_svld_dlopen=no
22756 -fi
22757 -rm -f conftest.err conftest.$ac_objext \
22758 -      conftest$ac_exeext conftest.$ac_ext
22759 -LIBS=$ac_check_lib_save_LIBS
22760 -fi
22761 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
22762 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
22763 -if test $ac_cv_lib_svld_dlopen = yes; then
22764 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22765 -else
22766 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
22767 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
22768 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
22769 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22770 -else
22771 -  ac_check_lib_save_LIBS=$LIBS
22772 -LIBS="-ldld  $LIBS"
22773 -cat >conftest.$ac_ext <<_ACEOF
22774 -/* confdefs.h.  */
22775 -_ACEOF
22776 -cat confdefs.h >>conftest.$ac_ext
22777 -cat >>conftest.$ac_ext <<_ACEOF
22778 -/* end confdefs.h.  */
22779 -
22780 -/* Override any gcc2 internal prototype to avoid an error.  */
22781 -#ifdef __cplusplus
22782 -extern "C"
22783 -#endif
22784 -/* We use char because int might match the return type of a gcc2
22785 -   builtin and then its argument prototype would still apply.  */
22786 -char dld_link ();
22787 -int
22788 -main ()
22789 -{
22790 -dld_link ();
22791 -  ;
22792 -  return 0;
22793 -}
22794 -_ACEOF
22795 -rm -f conftest.$ac_objext conftest$ac_exeext
22796 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22797 -  (eval $ac_link) 2>conftest.er1
22798 -  ac_status=$?
22799 -  grep -v '^ *+' conftest.er1 >conftest.err
22800 -  rm -f conftest.er1
22801 -  cat conftest.err >&5
22802 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 -  (exit $ac_status); } &&
22804 -        { ac_try='test -z "$ac_cxx_werror_flag"
22805 -                        || test ! -s conftest.err'
22806 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 -  (eval $ac_try) 2>&5
22808 -  ac_status=$?
22809 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 -  (exit $ac_status); }; } &&
22811 -        { ac_try='test -s conftest$ac_exeext'
22812 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 -  (eval $ac_try) 2>&5
22814 -  ac_status=$?
22815 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 -  (exit $ac_status); }; }; then
22817 -  ac_cv_lib_dld_dld_link=yes
22818 -else
22819 -  echo "$as_me: failed program was:" >&5
22820 -sed 's/^/| /' conftest.$ac_ext >&5
22821 -
22822 -ac_cv_lib_dld_dld_link=no
22823 -fi
22824 -rm -f conftest.err conftest.$ac_objext \
22825 -      conftest$ac_exeext conftest.$ac_ext
22826 -LIBS=$ac_check_lib_save_LIBS
22827 -fi
22828 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
22829 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
22830 -if test $ac_cv_lib_dld_dld_link = yes; then
22831 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
22832 -fi
22833 -
22834 -
22835 -fi
22836 -
22837 -
22838 -fi
22839 -
22840 -
22841 -fi
22842 -
22843 -
22844 -fi
22845 -
22846 -
22847 -fi
22848 -
22849 -    ;;
22850 -  esac
22851 -
22852 -  if test "x$lt_cv_dlopen" != xno; then
22853 -    enable_dlopen=yes
22854 -  else
22855 -    enable_dlopen=no
22856 -  fi
22857 -
22858 -  case $lt_cv_dlopen in
22859 -  dlopen)
22860 -    save_CPPFLAGS="$CPPFLAGS"
22861 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22862 -
22863 -    save_LDFLAGS="$LDFLAGS"
22864 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22865 -
22866 -    save_LIBS="$LIBS"
22867 -    LIBS="$lt_cv_dlopen_libs $LIBS"
22868 -
22869 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
22870 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
22871 -if test "${lt_cv_dlopen_self+set}" = set; then
22872 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22873 -else
22874 -         if test "$cross_compiling" = yes; then :
22875 -  lt_cv_dlopen_self=cross
22876 -else
22877 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22878 -  lt_status=$lt_dlunknown
22879 -  cat > conftest.$ac_ext <<EOF
22880 -#line 12536 "configure"
22881 -#include "confdefs.h"
22882 -
22883 -#if HAVE_DLFCN_H
22884 -#include <dlfcn.h>
22885 -#endif
22886 -
22887 -#include <stdio.h>
22888 -
22889 -#ifdef RTLD_GLOBAL
22890 -#  define LT_DLGLOBAL          RTLD_GLOBAL
22891 -#else
22892 -#  ifdef DL_GLOBAL
22893 -#    define LT_DLGLOBAL                DL_GLOBAL
22894 -#  else
22895 -#    define LT_DLGLOBAL                0
22896 -#  endif
22897 -#endif
22898 -
22899 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22900 -   find out it does not work in some platform. */
22901 -#ifndef LT_DLLAZY_OR_NOW
22902 -#  ifdef RTLD_LAZY
22903 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
22904 -#  else
22905 -#    ifdef DL_LAZY
22906 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
22907 -#    else
22908 -#      ifdef RTLD_NOW
22909 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
22910 -#      else
22911 -#        ifdef DL_NOW
22912 -#          define LT_DLLAZY_OR_NOW     DL_NOW
22913 -#        else
22914 -#          define LT_DLLAZY_OR_NOW     0
22915 -#        endif
22916 -#      endif
22917 -#    endif
22918 -#  endif
22919 -#endif
22920 -
22921 -#ifdef __cplusplus
22922 -extern "C" void exit (int);
22923 -#endif
22924 -
22925 -void fnord() { int i=42;}
22926 -int main ()
22927 -{
22928 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22929 -  int status = $lt_dlunknown;
22930 -
22931 -  if (self)
22932 -    {
22933 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
22934 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22935 -      /* dlclose (self); */
22936 -    }
22937 -
22938 -    exit (status);
22939 -}
22940 -EOF
22941 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22942 -  (eval $ac_link) 2>&5
22943 -  ac_status=$?
22944 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22946 -    (./conftest; exit; ) 2>/dev/null
22947 -    lt_status=$?
22948 -    case x$lt_status in
22949 -      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22950 -      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22951 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
22952 -    esac
22953 -  else :
22954 -    # compilation failed
22955 -    lt_cv_dlopen_self=no
22956 -  fi
22957 -fi
22958 -rm -fr conftest*
22959 -
22960 -
22961 -fi
22962 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
22963 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
22964 -
22965 -    if test "x$lt_cv_dlopen_self" = xyes; then
22966 -      LDFLAGS="$LDFLAGS $link_static_flag"
22967 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
22968 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
22969 -if test "${lt_cv_dlopen_self_static+set}" = set; then
22970 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22971 -else
22972 -         if test "$cross_compiling" = yes; then :
22973 -  lt_cv_dlopen_self_static=cross
22974 -else
22975 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22976 -  lt_status=$lt_dlunknown
22977 -  cat > conftest.$ac_ext <<EOF
22978 -#line 12634 "configure"
22979 -#include "confdefs.h"
22980 -
22981 -#if HAVE_DLFCN_H
22982 -#include <dlfcn.h>
22983 -#endif
22984 -
22985 -#include <stdio.h>
22986 -
22987 -#ifdef RTLD_GLOBAL
22988 -#  define LT_DLGLOBAL          RTLD_GLOBAL
22989 -#else
22990 -#  ifdef DL_GLOBAL
22991 -#    define LT_DLGLOBAL                DL_GLOBAL
22992 -#  else
22993 -#    define LT_DLGLOBAL                0
22994 -#  endif
22995 -#endif
22996 -
22997 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22998 -   find out it does not work in some platform. */
22999 -#ifndef LT_DLLAZY_OR_NOW
23000 -#  ifdef RTLD_LAZY
23001 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
23002 -#  else
23003 -#    ifdef DL_LAZY
23004 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
23005 -#    else
23006 -#      ifdef RTLD_NOW
23007 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
23008 -#      else
23009 -#        ifdef DL_NOW
23010 -#          define LT_DLLAZY_OR_NOW     DL_NOW
23011 -#        else
23012 -#          define LT_DLLAZY_OR_NOW     0
23013 -#        endif
23014 -#      endif
23015 -#    endif
23016 -#  endif
23017 -#endif
23018 -
23019 -#ifdef __cplusplus
23020 -extern "C" void exit (int);
23021 -#endif
23022 -
23023 -void fnord() { int i=42;}
23024 -int main ()
23025 -{
23026 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23027 -  int status = $lt_dlunknown;
23028 -
23029 -  if (self)
23030 -    {
23031 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23032 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23033 -      /* dlclose (self); */
23034 -    }
23035 -
23036 -    exit (status);
23037 -}
23038 -EOF
23039 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23040 -  (eval $ac_link) 2>&5
23041 -  ac_status=$?
23042 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23044 -    (./conftest; exit; ) 2>/dev/null
23045 -    lt_status=$?
23046 -    case x$lt_status in
23047 -      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23048 -      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23049 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23050 -    esac
23051 -  else :
23052 -    # compilation failed
23053 -    lt_cv_dlopen_self_static=no
23054 -  fi
23055 -fi
23056 -rm -fr conftest*
23057 -
23058 -
23059 -fi
23060 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23061 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23062 -    fi
23063 -
23064 -    CPPFLAGS="$save_CPPFLAGS"
23065 -    LDFLAGS="$save_LDFLAGS"
23066 -    LIBS="$save_LIBS"
23067 -    ;;
23068 -  esac
23069 -
23070 -  case $lt_cv_dlopen_self in
23071 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23072 -  *) enable_dlopen_self=unknown ;;
23073 -  esac
23074 -
23075 -  case $lt_cv_dlopen_self_static in
23076 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23077 -  *) enable_dlopen_self_static=unknown ;;
23078 -  esac
23079 -fi
23080 -
23081  
23082  # The else clause should only fire when bootstrapping the
23083  # libtool distribution, otherwise you forgot to ship ltmain.sh
23084 @@ -12748,7 +13758,7 @@ if test -f "$ltmain"; then
23085    # Now quote all the things that may contain metacharacters while being
23086    # careful not to overquote the AC_SUBSTed values.  We take copies of the
23087    # variables and quote the copies for generation of the libtool script.
23088 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23089 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23090      SED SHELL STRIP \
23091      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23092      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23093 @@ -12775,6 +13785,7 @@ if test -f "$ltmain"; then
23094      predeps_CXX \
23095      postdeps_CXX \
23096      compiler_lib_search_path_CXX \
23097 +    compiler_lib_search_dirs_CXX \
23098      archive_cmds_CXX \
23099      archive_expsym_cmds_CXX \
23100      postinstall_cmds_CXX \
23101 @@ -12790,6 +13801,7 @@ if test -f "$ltmain"; then
23102      module_cmds_CXX \
23103      module_expsym_cmds_CXX \
23104      lt_cv_prog_compiler_c_o_CXX \
23105 +    fix_srcfile_path_CXX \
23106      exclude_expsyms_CXX \
23107      include_expsyms_CXX; do
23108  
23109 @@ -12849,6 +13861,12 @@ fast_install=$enable_fast_install
23110  # The host system.
23111  host_alias=$host_alias
23112  host=$host
23113 +host_os=$host_os
23114 +
23115 +# The build system.
23116 +build_alias=$build_alias
23117 +build=$build
23118 +build_os=$build_os
23119  
23120  # An echo program that does not interpret backslashes.
23121  echo=$lt_echo
23122 @@ -12860,6 +13878,9 @@ AR_FLAGS=$lt_AR_FLAGS
23123  # A C compiler.
23124  LTCC=$lt_LTCC
23125  
23126 +# LTCC compiler flags.
23127 +LTCFLAGS=$lt_LTCFLAGS
23128 +
23129  # A language-specific compiler.
23130  CC=$lt_compiler_CXX
23131  
23132 @@ -12925,7 +13946,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
23133  # Does compiler simultaneously support -c and -o options?
23134  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23135  
23136 -# Must we lock files when doing compilation ?
23137 +# Must we lock files when doing compilation?
23138  need_locks=$lt_need_locks
23139  
23140  # Do we need the lib prefix for modules?
23141 @@ -13013,6 +14034,10 @@ predeps=$lt_predeps_CXX
23142  # shared library.
23143  postdeps=$lt_postdeps_CXX
23144  
23145 +# The directories searched by this compiler when creating a shared
23146 +# library
23147 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23148 +
23149  # The library search path used internally by the compiler when linking
23150  # a shared library.
23151  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23152 @@ -13101,7 +14126,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23153  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23154  
23155  # Fix the shell variable \$srcfile for the compiler.
23156 -fix_srcfile_path="$fix_srcfile_path_CXX"
23157 +fix_srcfile_path=$lt_fix_srcfile_path
23158  
23159  # Set to yes if exported symbols are required.
23160  always_export_symbols=$always_export_symbols_CXX
23161 @@ -13192,39 +14217,72 @@ objext=o
23162  objext_F77=$objext
23163  
23164  # Code to be used in simple compile tests
23165 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
23166 +lt_simple_compile_test_code="\
23167 +      subroutine t
23168 +      return
23169 +      end
23170 +"
23171  
23172  # Code to be used in simple link tests
23173 -lt_simple_link_test_code="      program t\n      end\n"
23174 +lt_simple_link_test_code="\
23175 +      program t
23176 +      end
23177 +"
23178  
23179  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23180  
23181  # If no C compiler was specified, use CC.
23182  LTCC=${LTCC-"$CC"}
23183  
23184 +# If no C compiler flags were specified, use CFLAGS.
23185 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23186 +
23187  # Allow CC to be a program name with arguments.
23188  compiler=$CC
23189  
23190  
23191 +# save warnings/boilerplate of simple test code
23192 +ac_outfile=conftest.$ac_objext
23193 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23194 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23195 +_lt_compiler_boilerplate=`cat conftest.err`
23196 +$rm conftest*
23197 +
23198 +ac_outfile=conftest.$ac_objext
23199 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
23200 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23201 +_lt_linker_boilerplate=`cat conftest.err`
23202 +$rm -r conftest*
23203 +
23204 +
23205  # Allow CC to be a program name with arguments.
23206  lt_save_CC="$CC"
23207  CC=${F77-"f77"}
23208  compiler=$CC
23209  compiler_F77=$CC
23210 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
23211 +for cc_temp in $compiler""; do
23212 +  case $cc_temp in
23213 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23214 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23215 +    \-*) ;;
23216 +    *) break;;
23217 +  esac
23218 +done
23219 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23220 +
23221  
23222 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23223 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
23224 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
23225 -echo "${ECHO_T}$can_build_shared" >&6
23226 +{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23227 +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
23228 +{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
23229 +$as_echo "$can_build_shared" >&6; }
23230  
23231 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23232 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
23233 +{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23234 +$as_echo_n "checking whether to build shared libraries... " >&6; }
23235  test "$can_build_shared" = "no" && enable_shared=no
23236  
23237  # On AIX, shared libraries and static libraries use the same namespace, and
23238  # are all built from PIC.
23239 -case "$host_os" in
23240 +case $host_os in
23241  aix3*)
23242    test "$enable_shared" = yes && enable_static=no
23243    if test -n "$RANLIB"; then
23244 @@ -13232,21 +14290,21 @@ aix3*)
23245      postinstall_cmds='$RANLIB $lib'
23246    fi
23247    ;;
23248 -aix4* | aix5*)
23249 -  test "$enable_shared" = yes && enable_static=no
23250 +aix[4-9]*)
23251 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23252 +    test "$enable_shared" = yes && enable_static=no
23253 +  fi
23254    ;;
23255  esac
23256 -echo "$as_me:$LINENO: result: $enable_shared" >&5
23257 -echo "${ECHO_T}$enable_shared" >&6
23258 +{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
23259 +$as_echo "$enable_shared" >&6; }
23260  
23261 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23262 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
23263 +{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23264 +$as_echo_n "checking whether to build static libraries... " >&6; }
23265  # Make sure either enable_shared or enable_static is yes.
23266  test "$enable_shared" = yes || enable_static=yes
23267 -echo "$as_me:$LINENO: result: $enable_static" >&5
23268 -echo "${ECHO_T}$enable_static" >&6
23269 -
23270 -test "$ld_shlibs_F77" = no && can_build_shared=no
23271 +{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
23272 +$as_echo "$enable_static" >&6; }
23273  
23274  GCC_F77="$G77"
23275  LD_F77="$LD"
23276 @@ -13255,8 +14313,8 @@ lt_prog_compiler_wl_F77=
23277  lt_prog_compiler_pic_F77=
23278  lt_prog_compiler_static_F77=
23279  
23280 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23281 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23282 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23283 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23284  
23285    if test "$GCC" = yes; then
23286      lt_prog_compiler_wl_F77='-Wl,'
23287 @@ -13278,13 +14336,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23288        lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
23289        ;;
23290  
23291 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23292 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23293        # PIC is the default for these OSes.
23294        ;;
23295  
23296 -    mingw* | pw32* | os2*)
23297 +    mingw* | cygwin* | pw32* | os2*)
23298        # This hack is so that the source file can tell whether it is being
23299        # built for inclusion in a dll (and should export symbols for example).
23300 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
23301 +      # (--disable-auto-import) libraries
23302        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23303        ;;
23304  
23305 @@ -13294,6 +14354,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23306        lt_prog_compiler_pic_F77='-fno-common'
23307        ;;
23308  
23309 +    interix[3-9]*)
23310 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23311 +      # Instead, we relocate shared libraries at runtime.
23312 +      ;;
23313 +
23314      msdosdjgpp*)
23315        # Just because we use GCC doesn't mean we suddenly get shared libraries
23316        # on systems that don't support them.
23317 @@ -13310,7 +14375,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23318      hpux*)
23319        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23320        # not for PA HP-UX.
23321 -      case "$host_cpu" in
23322 +      case $host_cpu in
23323        hppa*64*|ia64*)
23324         # +Z the default
23325         ;;
23326 @@ -13336,8 +14401,18 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23327         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
23328        fi
23329        ;;
23330 +      darwin*)
23331 +        # PIC is the default on this platform
23332 +        # Common symbols not allowed in MH_DYLIB files
23333 +       case $cc_basename in
23334 +         xlc*)
23335 +         lt_prog_compiler_pic_F77='-qnocommon'
23336 +         lt_prog_compiler_wl_F77='-Wl,'
23337 +         ;;
23338 +       esac
23339 +       ;;
23340  
23341 -    mingw* | pw32* | os2*)
23342 +    mingw* | cygwin* | pw32* | os2*)
23343        # This hack is so that the source file can tell whether it is being
23344        # built for inclusion in a dll (and should export symbols for example).
23345        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23346 @@ -13347,7 +14422,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23347        lt_prog_compiler_wl_F77='-Wl,'
23348        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23349        # not for PA HP-UX.
23350 -      case "$host_cpu" in
23351 +      case $host_cpu in
23352        hppa*64*|ia64*)
23353         # +Z the default
23354         ;;
23355 @@ -13370,18 +14445,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23356        lt_prog_compiler_static_F77='-Bstatic'
23357        ;;
23358  
23359 -    linux*)
23360 -      case $CC in
23361 +    linux* | k*bsd*-gnu)
23362 +      case $cc_basename in
23363        icc* | ecc*)
23364         lt_prog_compiler_wl_F77='-Wl,'
23365         lt_prog_compiler_pic_F77='-KPIC'
23366         lt_prog_compiler_static_F77='-static'
23367          ;;
23368 +      pgcc* | pgf77* | pgf90* | pgf95*)
23369 +        # Portland Group compilers (*not* the Pentium gcc compiler,
23370 +       # which looks to be a dead project)
23371 +       lt_prog_compiler_wl_F77='-Wl,'
23372 +       lt_prog_compiler_pic_F77='-fpic'
23373 +       lt_prog_compiler_static_F77='-Bstatic'
23374 +        ;;
23375        ccc*)
23376          lt_prog_compiler_wl_F77='-Wl,'
23377          # All Alpha code is PIC.
23378          lt_prog_compiler_static_F77='-non_shared'
23379          ;;
23380 +      *)
23381 +        case `$CC -V 2>&1 | sed 5q` in
23382 +       *Sun\ C*)
23383 +         # Sun C 5.9
23384 +         lt_prog_compiler_pic_F77='-KPIC'
23385 +         lt_prog_compiler_static_F77='-Bstatic'
23386 +         lt_prog_compiler_wl_F77='-Wl,'
23387 +         ;;
23388 +       *Sun\ F*)
23389 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
23390 +         lt_prog_compiler_pic_F77='-KPIC'
23391 +         lt_prog_compiler_static_F77='-Bstatic'
23392 +         lt_prog_compiler_wl_F77=''
23393 +         ;;
23394 +       esac
23395 +       ;;
23396        esac
23397        ;;
23398  
23399 @@ -13391,15 +14489,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23400        lt_prog_compiler_static_F77='-non_shared'
23401        ;;
23402  
23403 -    sco3.2v5*)
23404 -      lt_prog_compiler_pic_F77='-Kpic'
23405 -      lt_prog_compiler_static_F77='-dn'
23406 +    rdos*)
23407 +      lt_prog_compiler_static_F77='-non_shared'
23408        ;;
23409  
23410      solaris*)
23411 -      lt_prog_compiler_wl_F77='-Wl,'
23412        lt_prog_compiler_pic_F77='-KPIC'
23413        lt_prog_compiler_static_F77='-Bstatic'
23414 +      case $cc_basename in
23415 +      f77* | f90* | f95*)
23416 +       lt_prog_compiler_wl_F77='-Qoption ld ';;
23417 +      *)
23418 +       lt_prog_compiler_wl_F77='-Wl,';;
23419 +      esac
23420        ;;
23421  
23422      sunos4*)
23423 @@ -13408,7 +14510,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23424        lt_prog_compiler_static_F77='-Bstatic'
23425        ;;
23426  
23427 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23428 +    sysv4 | sysv4.2uw2* | sysv4.3*)
23429        lt_prog_compiler_wl_F77='-Wl,'
23430        lt_prog_compiler_pic_F77='-KPIC'
23431        lt_prog_compiler_static_F77='-Bstatic'
23432 @@ -13421,6 +14523,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23433        fi
23434        ;;
23435  
23436 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23437 +      lt_prog_compiler_wl_F77='-Wl,'
23438 +      lt_prog_compiler_pic_F77='-KPIC'
23439 +      lt_prog_compiler_static_F77='-Bstatic'
23440 +      ;;
23441 +
23442 +    unicos*)
23443 +      lt_prog_compiler_wl_F77='-Wl,'
23444 +      lt_prog_compiler_can_build_shared_F77=no
23445 +      ;;
23446 +
23447      uts4*)
23448        lt_prog_compiler_pic_F77='-pic'
23449        lt_prog_compiler_static_F77='-Bstatic'
23450 @@ -13432,22 +14545,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23451      esac
23452    fi
23453  
23454 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
23455 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
23456 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
23457 +$as_echo "$lt_prog_compiler_pic_F77" >&6; }
23458  
23459  #
23460  # Check to make sure the PIC flag actually works.
23461  #
23462  if test -n "$lt_prog_compiler_pic_F77"; then
23463  
23464 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23465 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
23466 -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
23467 -  echo $ECHO_N "(cached) $ECHO_C" >&6
23468 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23469 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
23470 +if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
23471 +  $as_echo_n "(cached) " >&6
23472  else
23473 -  lt_prog_compiler_pic_works_F77=no
23474 +  lt_cv_prog_compiler_pic_works_F77=no
23475    ac_outfile=conftest.$ac_objext
23476 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23477 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23478     lt_compiler_flag="$lt_prog_compiler_pic_F77"
23479     # Insert the option either (1) after the last *FLAGS variable, or
23480     # (2) before a word containing "conftest.", or (3) at the end.
23481 @@ -13455,28 +14568,30 @@ else
23482     # with a dollar sign (not a hyphen), so the echo should work correctly.
23483     # The option is referenced via a variable to avoid confusing sed.
23484     lt_compile=`echo "$ac_compile" | $SED \
23485 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
23486 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23487     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23488     -e 's:$: $lt_compiler_flag:'`
23489 -   (eval echo "\"\$as_me:13461: $lt_compile\"" >&5)
23490 +   (eval echo "\"\$as_me:14574: $lt_compile\"" >&5)
23491     (eval "$lt_compile" 2>conftest.err)
23492     ac_status=$?
23493     cat conftest.err >&5
23494 -   echo "$as_me:13465: \$? = $ac_status" >&5
23495 +   echo "$as_me:14578: \$? = $ac_status" >&5
23496     if (exit $ac_status) && test -s "$ac_outfile"; then
23497       # The compiler can only warn and ignore the option if not recognized
23498 -     # So say no if there are warnings
23499 -     if test ! -s conftest.err; then
23500 -       lt_prog_compiler_pic_works_F77=yes
23501 +     # So say no if there are warnings other than the usual output.
23502 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23503 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23504 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23505 +       lt_cv_prog_compiler_pic_works_F77=yes
23506       fi
23507     fi
23508     $rm conftest*
23509  
23510  fi
23511 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
23512 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
23513 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
23514 +$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
23515  
23516 -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
23517 +if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
23518      case $lt_prog_compiler_pic_F77 in
23519       "" | " "*) ;;
23520       *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
23521 @@ -13487,7 +14602,7 @@ else
23522  fi
23523  
23524  fi
23525 -case "$host_os" in
23526 +case $host_os in
23527    # For platforms which do not support PIC, -DPIC is meaningless:
23528    *djgpp*)
23529      lt_prog_compiler_pic_F77=
23530 @@ -13497,17 +14612,59 @@ case "$host_os" in
23531      ;;
23532  esac
23533  
23534 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23535 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23536 +#
23537 +# Check to make sure the static flag actually works.
23538 +#
23539 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
23540 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23541 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23542 +if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
23543 +  $as_echo_n "(cached) " >&6
23544 +else
23545 +  lt_cv_prog_compiler_static_works_F77=no
23546 +   save_LDFLAGS="$LDFLAGS"
23547 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23548 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
23549 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23550 +     # The linker can only warn and ignore the option if not recognized
23551 +     # So say no if there are warnings
23552 +     if test -s conftest.err; then
23553 +       # Append any errors to the config.log.
23554 +       cat conftest.err 1>&5
23555 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23556 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23557 +       if diff conftest.exp conftest.er2 >/dev/null; then
23558 +         lt_cv_prog_compiler_static_works_F77=yes
23559 +       fi
23560 +     else
23561 +       lt_cv_prog_compiler_static_works_F77=yes
23562 +     fi
23563 +   fi
23564 +   $rm -r conftest*
23565 +   LDFLAGS="$save_LDFLAGS"
23566 +
23567 +fi
23568 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
23569 +$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
23570 +
23571 +if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
23572 +    :
23573 +else
23574 +    lt_prog_compiler_static_F77=
23575 +fi
23576 +
23577 +
23578 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23579 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23580  if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
23581 -  echo $ECHO_N "(cached) $ECHO_C" >&6
23582 +  $as_echo_n "(cached) " >&6
23583  else
23584    lt_cv_prog_compiler_c_o_F77=no
23585     $rm -r conftest 2>/dev/null
23586     mkdir conftest
23587     cd conftest
23588     mkdir out
23589 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23590 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23591  
23592     lt_compiler_flag="-o out/conftest2.$ac_objext"
23593     # Insert the option either (1) after the last *FLAGS variable, or
23594 @@ -13515,23 +14672,25 @@ else
23595     # Note that $ac_compile itself does not contain backslashes and begins
23596     # with a dollar sign (not a hyphen), so the echo should work correctly.
23597     lt_compile=`echo "$ac_compile" | $SED \
23598 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
23599 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23600     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23601     -e 's:$: $lt_compiler_flag:'`
23602 -   (eval echo "\"\$as_me:13521: $lt_compile\"" >&5)
23603 +   (eval echo "\"\$as_me:14678: $lt_compile\"" >&5)
23604     (eval "$lt_compile" 2>out/conftest.err)
23605     ac_status=$?
23606     cat out/conftest.err >&5
23607 -   echo "$as_me:13525: \$? = $ac_status" >&5
23608 +   echo "$as_me:14682: \$? = $ac_status" >&5
23609     if (exit $ac_status) && test -s out/conftest2.$ac_objext
23610     then
23611       # The compiler can only warn and ignore the option if not recognized
23612       # So say no if there are warnings
23613 -     if test ! -s out/conftest.err; then
23614 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23615 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23616 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23617         lt_cv_prog_compiler_c_o_F77=yes
23618       fi
23619     fi
23620 -   chmod u+w .
23621 +   chmod u+w . 2>&5
23622     $rm conftest*
23623     # SGI C++ compiler will create directory out/ii_files/ for
23624     # template instantiation
23625 @@ -13542,34 +14701,34 @@ else
23626     $rm conftest*
23627  
23628  fi
23629 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
23630 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
23631 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
23632 +$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
23633  
23634  
23635  hard_links="nottested"
23636  if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
23637    # do not overwrite the value of need_locks provided by the user
23638 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23639 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23640 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23641 +$as_echo_n "checking if we can lock with hard links... " >&6; }
23642    hard_links=yes
23643    $rm conftest*
23644    ln conftest.a conftest.b 2>/dev/null && hard_links=no
23645    touch conftest.a
23646    ln conftest.a conftest.b 2>&5 || hard_links=no
23647    ln conftest.a conftest.b 2>/dev/null && hard_links=no
23648 -  echo "$as_me:$LINENO: result: $hard_links" >&5
23649 -echo "${ECHO_T}$hard_links" >&6
23650 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
23651 +$as_echo "$hard_links" >&6; }
23652    if test "$hard_links" = no; then
23653 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23654 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23655 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23656 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23657      need_locks=warn
23658    fi
23659  else
23660    need_locks=no
23661  fi
23662  
23663 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23664 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23665 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23666 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23667  
23668    runpath_var=
23669    allow_undefined_flag_F77=
23670 @@ -13600,13 +14759,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23671    # it will be wrapped by ` (' and `)$', so one must not match beginning or
23672    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23673    # as well as any symbol that contains `d'.
23674 -  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
23675 +  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23676    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23677    # platforms (ab)use it in PIC code, but their linkers get confused if
23678    # the symbol is explicitly referenced.  Since portable code cannot
23679    # rely on this symbol name, it's probably fine to never include it in
23680    # preloaded symbol tables.
23681 +  # Exclude shared library initialization/finalization symbols.
23682    extract_expsyms_cmds=
23683 +  # Just being paranoid about ensuring that cc_basename is set.
23684 +  for cc_temp in $compiler""; do
23685 +  case $cc_temp in
23686 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23687 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23688 +    \-*) ;;
23689 +    *) break;;
23690 +  esac
23691 +done
23692 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23693  
23694    case $host_os in
23695    cygwin* | mingw* | pw32*)
23696 @@ -13617,6 +14787,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23697        with_gnu_ld=no
23698      fi
23699      ;;
23700 +  interix*)
23701 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
23702 +    with_gnu_ld=yes
23703 +    ;;
23704    openbsd*)
23705      with_gnu_ld=no
23706      ;;
23707 @@ -13627,9 +14801,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23708      # If archive_cmds runs LD, not CC, wlarc should be empty
23709      wlarc='${wl}'
23710  
23711 +    # Set some defaults for GNU ld with shared library support. These
23712 +    # are reset later if shared libraries are not supported. Putting them
23713 +    # here allows them to be overridden if necessary.
23714 +    runpath_var=LD_RUN_PATH
23715 +    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
23716 +    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
23717 +    # ancient GNU ld didn't support --whole-archive et. al.
23718 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23719 +       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23720 +      else
23721 +       whole_archive_flag_spec_F77=
23722 +    fi
23723 +    supports_anon_versioning=no
23724 +    case `$LD -v 2>/dev/null` in
23725 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23726 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23727 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23728 +      *\ 2.11.*) ;; # other 2.11 versions
23729 +      *) supports_anon_versioning=yes ;;
23730 +    esac
23731 +
23732      # See if GNU ld supports shared libraries.
23733      case $host_os in
23734 -    aix3* | aix4* | aix5*)
23735 +    aix[3-9]*)
23736        # On AIX/PPC, the GNU linker is very broken
23737        if test "$host_cpu" != ia64; then
23738         ld_shlibs_F77=no
23739 @@ -13677,10 +14872,10 @@ EOF
23740        allow_undefined_flag_F77=unsupported
23741        always_export_symbols_F77=no
23742        enable_shared_with_static_runtimes_F77=yes
23743 -      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23744 +      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23745  
23746        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23747 -        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
23748 +        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23749         # If the export-symbols file already is a .def file (1st line
23750         # is EXPORTS), use it as is; otherwise, prepend...
23751         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23752 @@ -13689,13 +14884,69 @@ EOF
23753           echo EXPORTS > $output_objdir/$soname.def;
23754           cat $export_symbols >> $output_objdir/$soname.def;
23755         fi~
23756 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
23757 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23758        else
23759 -       ld_shlibs=no
23760 +       ld_shlibs_F77=no
23761        fi
23762        ;;
23763  
23764 -    netbsd*)
23765 +    interix[3-9]*)
23766 +      hardcode_direct_F77=no
23767 +      hardcode_shlibpath_var_F77=no
23768 +      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23769 +      export_dynamic_flag_spec_F77='${wl}-E'
23770 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23771 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
23772 +      # default) and relocated if they conflict, which is a slow very memory
23773 +      # consuming and fragmenting process.  To avoid this, we pick a random,
23774 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23775 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23776 +      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
23777 +      archive_expsym_cmds_F77='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'
23778 +      ;;
23779 +
23780 +    gnu* | linux* | k*bsd*-gnu)
23781 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23782 +       tmp_addflag=
23783 +       case $cc_basename,$host_cpu in
23784 +       pgcc*)                          # Portland Group C compiler
23785 +         whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
23786 +         tmp_addflag=' $pic_flag'
23787 +         ;;
23788 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23789 +         whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
23790 +         tmp_addflag=' $pic_flag -Mnomain' ;;
23791 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23792 +         tmp_addflag=' -i_dynamic' ;;
23793 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23794 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
23795 +       ifc* | ifort*)                  # Intel Fortran compiler
23796 +         tmp_addflag=' -nofor_main' ;;
23797 +       esac
23798 +       case `$CC -V 2>&1 | sed 5q` in
23799 +       *Sun\ C*)                       # Sun C 5.9
23800 +         whole_archive_flag_spec_F77='${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'
23801 +         tmp_sharedflag='-G' ;;
23802 +       *Sun\ F*)                       # Sun Fortran 8.3
23803 +         tmp_sharedflag='-G' ;;
23804 +       *)
23805 +         tmp_sharedflag='-shared' ;;
23806 +       esac
23807 +       archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23808 +
23809 +       if test $supports_anon_versioning = yes; then
23810 +         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
23811 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23812 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
23813 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23814 +       fi
23815 +       link_all_deplibs_F77=no
23816 +      else
23817 +       ld_shlibs_F77=no
23818 +      fi
23819 +      ;;
23820 +
23821 +    netbsd* | netbsdelf*-gnu)
23822        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23823         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23824         wlarc=
23825 @@ -13705,7 +14956,7 @@ EOF
23826        fi
23827        ;;
23828  
23829 -    solaris* | sysv5*)
23830 +    solaris*)
23831        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23832         ld_shlibs_F77=no
23833         cat <<EOF 1>&2
23834 @@ -13726,6 +14977,33 @@ EOF
23835        fi
23836        ;;
23837  
23838 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23839 +      case `$LD -v 2>&1` in
23840 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23841 +       ld_shlibs_F77=no
23842 +       cat <<_LT_EOF 1>&2
23843 +
23844 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23845 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
23846 +*** is disabling shared libraries support.  We urge you to upgrade GNU
23847 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23848 +*** your PATH or compiler configuration so that the native linker is
23849 +*** used, and then restart.
23850 +
23851 +_LT_EOF
23852 +       ;;
23853 +       *)
23854 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23855 +           hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23856 +           archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23857 +           archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23858 +         else
23859 +           ld_shlibs_F77=no
23860 +         fi
23861 +       ;;
23862 +      esac
23863 +      ;;
23864 +
23865      sunos4*)
23866        archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23867        wlarc=
23868 @@ -13733,31 +15011,6 @@ EOF
23869        hardcode_shlibpath_var_F77=no
23870        ;;
23871  
23872 -  linux*)
23873 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23874 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23875 -       archive_cmds_F77="$tmp_archive_cmds"
23876 -      supports_anon_versioning=no
23877 -      case `$LD -v 2>/dev/null` in
23878 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23879 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23880 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23881 -        *\ 2.11.*) ;; # other 2.11 versions
23882 -        *) supports_anon_versioning=yes ;;
23883 -      esac
23884 -      if test $supports_anon_versioning = yes; then
23885 -        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
23886 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23887 -$echo "local: *; };" >> $output_objdir/$libname.ver~
23888 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23889 -      else
23890 -        archive_expsym_cmds_F77="$tmp_archive_cmds"
23891 -      fi
23892 -    else
23893 -      ld_shlibs_F77=no
23894 -    fi
23895 -    ;;
23896 -
23897      *)
23898        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23899         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23900 @@ -13768,16 +15021,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23901        ;;
23902      esac
23903  
23904 -    if test "$ld_shlibs_F77" = yes; then
23905 -      runpath_var=LD_RUN_PATH
23906 -      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
23907 -      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
23908 -      # ancient GNU ld didn't support --whole-archive et. al.
23909 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23910 -       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23911 -      else
23912 -       whole_archive_flag_spec_F77=
23913 -      fi
23914 +    if test "$ld_shlibs_F77" = no; then
23915 +      runpath_var=
23916 +      hardcode_libdir_flag_spec_F77=
23917 +      export_dynamic_flag_spec_F77=
23918 +      whole_archive_flag_spec_F77=
23919      fi
23920    else
23921      # PORTME fill in a description of your system's linker (not GNU ld)
23922 @@ -13789,14 +15037,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23923        # Note: this linker hardcodes the directories in LIBPATH if there
23924        # are no directories specified by -L.
23925        hardcode_minus_L_F77=yes
23926 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
23927 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23928         # Neither direct hardcoding nor static linking is supported with a
23929         # broken collect2.
23930         hardcode_direct_F77=unsupported
23931        fi
23932        ;;
23933  
23934 -    aix4* | aix5*)
23935 +    aix[4-9]*)
23936        if test "$host_cpu" = ia64; then
23937         # On IA64, the linker does run time linking by default, so we don't
23938         # have to do anything special.
23939 @@ -13816,13 +15064,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23940         # Test if we are trying to use run time linking or normal
23941         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23942         # need to do runtime linking.
23943 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23944 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
23945           for ld_flag in $LDFLAGS; do
23946           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23947             aix_use_runtimelinking=yes
23948             break
23949           fi
23950           done
23951 +         ;;
23952         esac
23953  
23954         exp_sym_flag='-bexport'
23955 @@ -13841,7 +15090,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23956        link_all_deplibs_F77=yes
23957  
23958        if test "$GCC" = yes; then
23959 -       case $host_os in aix4.012|aix4.012.*)
23960 +       case $host_os in aix4.[012]|aix4.[012].*)
23961         # We only want to do this on AIX 4.2 and lower, the check
23962         # below for broken collect2 doesn't work under 4.3+
23963           collect2name=`${CC} -print-prog-name=collect2`
23964 @@ -13849,7 +15098,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23965            strings "$collect2name" | grep resolve_lib_name >/dev/null
23966           then
23967           # We have reworked collect2
23968 -         hardcode_direct_F77=yes
23969 +         :
23970           else
23971           # We have old collect2
23972           hardcode_direct_F77=unsupported
23973 @@ -13860,8 +15109,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23974           hardcode_libdir_flag_spec_F77='-L$libdir'
23975           hardcode_libdir_separator_F77=
23976           fi
23977 +         ;;
23978         esac
23979         shared_flag='-shared'
23980 +       if test "$aix_use_runtimelinking" = yes; then
23981 +         shared_flag="$shared_flag "'${wl}-G'
23982 +       fi
23983        else
23984         # not using gcc
23985         if test "$host_cpu" = ia64; then
23986 @@ -13869,11 +15122,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23987         # chokes on -Wl,-G. The following line is correct:
23988           shared_flag='-G'
23989         else
23990 -       if test "$aix_use_runtimelinking" = yes; then
23991 +         if test "$aix_use_runtimelinking" = yes; then
23992             shared_flag='${wl}-G'
23993           else
23994             shared_flag='${wl}-bM:SRE'
23995 -       fi
23996 +         fi
23997         fi
23998        fi
23999  
24000 @@ -13891,49 +15144,58 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24001        end
24002  _ACEOF
24003  rm -f conftest.$ac_objext conftest$ac_exeext
24004 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24005 -  (eval $ac_link) 2>conftest.er1
24006 +if { (ac_try="$ac_link"
24007 +case "(($ac_try" in
24008 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009 +  *) ac_try_echo=$ac_try;;
24010 +esac
24011 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24012 +$as_echo "$ac_try_echo") >&5
24013 +  (eval "$ac_link") 2>conftest.er1
24014    ac_status=$?
24015    grep -v '^ *+' conftest.er1 >conftest.err
24016    rm -f conftest.er1
24017    cat conftest.err >&5
24018 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 -  (exit $ac_status); } &&
24020 -        { ac_try='test -z "$ac_f77_werror_flag"
24021 -                        || test ! -s conftest.err'
24022 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023 -  (eval $ac_try) 2>&5
24024 -  ac_status=$?
24025 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 -  (exit $ac_status); }; } &&
24027 -        { ac_try='test -s conftest$ac_exeext'
24028 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029 -  (eval $ac_try) 2>&5
24030 -  ac_status=$?
24031 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 -  (exit $ac_status); }; }; then
24033 -
24034 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24035 -}'`
24036 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 +  (exit $ac_status); } && {
24038 +        test -z "$ac_f77_werror_flag" ||
24039 +        test ! -s conftest.err
24040 +       } && test -s conftest$ac_exeext && {
24041 +        test "$cross_compiling" = yes ||
24042 +        $as_test_x conftest$ac_exeext
24043 +       }; then
24044 +
24045 +lt_aix_libpath_sed='
24046 +    /Import File Strings/,/^$/ {
24047 +       /^0/ {
24048 +           s/^0  *\(.*\)$/\1/
24049 +           p
24050 +       }
24051 +    }'
24052 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24053  # Check for a 64-bit object if we didn't find anything.
24054 -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; }
24055 -}'`; fi
24056 +if test -z "$aix_libpath"; then
24057 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24058 +fi
24059  else
24060 -  echo "$as_me: failed program was:" >&5
24061 +  $as_echo "$as_me: failed program was:" >&5
24062  sed 's/^/| /' conftest.$ac_ext >&5
24063  
24064 +
24065  fi
24066 -rm -f conftest.err conftest.$ac_objext \
24067 +
24068 +rm -rf conftest.dSYM
24069 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24070        conftest$ac_exeext conftest.$ac_ext
24071  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24072  
24073         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24074 -       archive_expsym_cmds_F77="\$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"
24075 +       archive_expsym_cmds_F77="\$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"
24076         else
24077         if test "$host_cpu" = ia64; then
24078           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
24079           allow_undefined_flag_F77="-z nodefs"
24080 -         archive_expsym_cmds_F77="\$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"
24081 +         archive_expsym_cmds_F77="\$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"
24082         else
24083          # Determine the default libpath from the value encoded in an empty executable.
24084          cat >conftest.$ac_ext <<_ACEOF
24085 @@ -13942,39 +15204,48 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24086        end
24087  _ACEOF
24088  rm -f conftest.$ac_objext conftest$ac_exeext
24089 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24090 -  (eval $ac_link) 2>conftest.er1
24091 +if { (ac_try="$ac_link"
24092 +case "(($ac_try" in
24093 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094 +  *) ac_try_echo=$ac_try;;
24095 +esac
24096 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24097 +$as_echo "$ac_try_echo") >&5
24098 +  (eval "$ac_link") 2>conftest.er1
24099    ac_status=$?
24100    grep -v '^ *+' conftest.er1 >conftest.err
24101    rm -f conftest.er1
24102    cat conftest.err >&5
24103 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 -  (exit $ac_status); } &&
24105 -        { ac_try='test -z "$ac_f77_werror_flag"
24106 -                        || test ! -s conftest.err'
24107 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108 -  (eval $ac_try) 2>&5
24109 -  ac_status=$?
24110 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 -  (exit $ac_status); }; } &&
24112 -        { ac_try='test -s conftest$ac_exeext'
24113 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114 -  (eval $ac_try) 2>&5
24115 -  ac_status=$?
24116 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 -  (exit $ac_status); }; }; then
24118 -
24119 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24120 -}'`
24121 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 +  (exit $ac_status); } && {
24123 +        test -z "$ac_f77_werror_flag" ||
24124 +        test ! -s conftest.err
24125 +       } && test -s conftest$ac_exeext && {
24126 +        test "$cross_compiling" = yes ||
24127 +        $as_test_x conftest$ac_exeext
24128 +       }; then
24129 +
24130 +lt_aix_libpath_sed='
24131 +    /Import File Strings/,/^$/ {
24132 +       /^0/ {
24133 +           s/^0  *\(.*\)$/\1/
24134 +           p
24135 +       }
24136 +    }'
24137 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24138  # Check for a 64-bit object if we didn't find anything.
24139 -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; }
24140 -}'`; fi
24141 +if test -z "$aix_libpath"; then
24142 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24143 +fi
24144  else
24145 -  echo "$as_me: failed program was:" >&5
24146 +  $as_echo "$as_me: failed program was:" >&5
24147  sed 's/^/| /' conftest.$ac_ext >&5
24148  
24149 +
24150  fi
24151 -rm -f conftest.err conftest.$ac_objext \
24152 +
24153 +rm -rf conftest.dSYM
24154 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24155        conftest$ac_exeext conftest.$ac_ext
24156  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24157  
24158 @@ -13983,13 +15254,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24159           # -berok will link without error, but may produce a broken library.
24160           no_undefined_flag_F77=' ${wl}-bernotok'
24161           allow_undefined_flag_F77=' ${wl}-berok'
24162 -         # -bexpall does not export symbols beginning with underscore (_)
24163 -         always_export_symbols_F77=yes
24164           # Exported symbols can be pulled into shared objects from archives
24165 -         whole_archive_flag_spec_F77=' '
24166 +         whole_archive_flag_spec_F77='$convenience'
24167           archive_cmds_need_lc_F77=yes
24168 -         # This is similar to how AIX traditionally builds it's shared libraries.
24169 -         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24170 +         # This is similar to how AIX traditionally builds its shared libraries.
24171 +         archive_expsym_cmds_F77="\$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'
24172         fi
24173        fi
24174        ;;
24175 @@ -14002,7 +15271,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24176        ld_shlibs_F77=no
24177        ;;
24178  
24179 -    bsdi4*)
24180 +    bsdi[45]*)
24181        export_dynamic_flag_spec_F77=-rdynamic
24182        ;;
24183  
24184 @@ -14022,58 +15291,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24185        # The linker will automatically build a .lib file if we build a DLL.
24186        old_archive_From_new_cmds_F77='true'
24187        # FIXME: Should let the user specify the lib program.
24188 -      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
24189 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
24190 +      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
24191 +      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
24192        enable_shared_with_static_runtimes_F77=yes
24193        ;;
24194  
24195      darwin* | rhapsody*)
24196 -    if test "$GXX" = yes ; then
24197 -      archive_cmds_need_lc_F77=no
24198 -      case "$host_os" in
24199 -      rhapsody* | darwin1.[012])
24200 -       allow_undefined_flag_F77='-undefined suppress'
24201 -       ;;
24202 -      *) # Darwin 1.3 on
24203 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24204 -       allow_undefined_flag_F77='-flat_namespace -undefined suppress'
24205 -      else
24206 -        case ${MACOSX_DEPLOYMENT_TARGET} in
24207 -          10.[012])
24208 -            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
24209 -            ;;
24210 -          10.*)
24211 -            allow_undefined_flag_F77='-undefined dynamic_lookup'
24212 -            ;;
24213 -        esac
24214 -      fi
24215 -       ;;
24216 +      case $host_os in
24217 +        rhapsody* | darwin1.[012])
24218 +         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
24219 +         ;;
24220 +       *) # Darwin 1.3 on
24221 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24222 +           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24223 +         else
24224 +           case ${MACOSX_DEPLOYMENT_TARGET} in
24225 +             10.[012])
24226 +               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24227 +               ;;
24228 +             10.*)
24229 +               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
24230 +               ;;
24231 +           esac
24232 +         fi
24233 +         ;;
24234        esac
24235 -       lt_int_apple_cc_single_mod=no
24236 -       output_verbose_link_cmd='echo'
24237 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
24238 -         lt_int_apple_cc_single_mod=yes
24239 -       fi
24240 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24241 -         archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24242 -       else
24243 -        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24244 -      fi
24245 -      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24246 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
24247 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24248 -          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24249 -        else
24250 -          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24251 -        fi
24252 -          module_expsym_cmds_F77='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}'
24253 +      archive_cmds_need_lc_F77=no
24254        hardcode_direct_F77=no
24255        hardcode_automatic_F77=yes
24256        hardcode_shlibpath_var_F77=unsupported
24257 -      whole_archive_flag_spec_F77='-all_load $convenience'
24258 +      whole_archive_flag_spec_F77=''
24259        link_all_deplibs_F77=yes
24260 +    if test "$GCC" = yes ; then
24261 +       output_verbose_link_cmd='echo'
24262 +        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
24263 +        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24264 +        archive_expsym_cmds_F77="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}"
24265 +        module_expsym_cmds_F77="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}"
24266      else
24267 -      ld_shlibs_F77=no
24268 +      case $cc_basename in
24269 +        xlc*)
24270 +         output_verbose_link_cmd='echo'
24271 +         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
24272 +         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24273 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24274 +         archive_expsym_cmds_F77='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}'
24275 +          module_expsym_cmds_F77='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}'
24276 +          ;;
24277 +       *)
24278 +         ld_shlibs_F77=no
24279 +          ;;
24280 +      esac
24281      fi
24282        ;;
24283  
24284 @@ -14107,7 +15375,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24285        ;;
24286  
24287      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24288 -    freebsd* | kfreebsd*-gnu)
24289 +    freebsd* | dragonfly*)
24290        archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24291        hardcode_libdir_flag_spec_F77='-R$libdir'
24292        hardcode_direct_F77=yes
24293 @@ -14130,47 +15398,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24294        export_dynamic_flag_spec_F77='${wl}-E'
24295        ;;
24296  
24297 -    hpux10* | hpux11*)
24298 +    hpux10*)
24299        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24300 -       case "$host_cpu" in
24301 -       hppa*64*|ia64*)
24302 +       archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24303 +      else
24304 +       archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24305 +      fi
24306 +      if test "$with_gnu_ld" = no; then
24307 +       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24308 +       hardcode_libdir_separator_F77=:
24309 +
24310 +       hardcode_direct_F77=yes
24311 +       export_dynamic_flag_spec_F77='${wl}-E'
24312 +
24313 +       # hardcode_minus_L: Not really in the search PATH,
24314 +       # but as the default location of the library.
24315 +       hardcode_minus_L_F77=yes
24316 +      fi
24317 +      ;;
24318 +
24319 +    hpux11*)
24320 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24321 +       case $host_cpu in
24322 +       hppa*64*)
24323           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24324           ;;
24325 +       ia64*)
24326 +         archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24327 +         ;;
24328         *)
24329           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24330           ;;
24331         esac
24332        else
24333 -       case "$host_cpu" in
24334 -       hppa*64*|ia64*)
24335 -         archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
24336 +       case $host_cpu in
24337 +       hppa*64*)
24338 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24339 +         ;;
24340 +       ia64*)
24341 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24342           ;;
24343         *)
24344 -         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24345 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24346           ;;
24347         esac
24348        fi
24349        if test "$with_gnu_ld" = no; then
24350 -       case "$host_cpu" in
24351 -       hppa*64*)
24352 -         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24353 +       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24354 +       hardcode_libdir_separator_F77=:
24355 +
24356 +       case $host_cpu in
24357 +       hppa*64*|ia64*)
24358           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
24359 -         hardcode_libdir_separator_F77=:
24360           hardcode_direct_F77=no
24361           hardcode_shlibpath_var_F77=no
24362           ;;
24363 -       ia64*)
24364 -         hardcode_libdir_flag_spec_F77='-L$libdir'
24365 -         hardcode_direct_F77=no
24366 -         hardcode_shlibpath_var_F77=no
24367 -
24368 -         # hardcode_minus_L: Not really in the search PATH,
24369 -         # but as the default location of the library.
24370 -         hardcode_minus_L_F77=yes
24371 -         ;;
24372         *)
24373 -         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24374 -         hardcode_libdir_separator_F77=:
24375           hardcode_direct_F77=yes
24376           export_dynamic_flag_spec_F77='${wl}-E'
24377  
24378 @@ -14194,7 +15477,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24379        link_all_deplibs_F77=yes
24380        ;;
24381  
24382 -    netbsd*)
24383 +    netbsd* | netbsdelf*-gnu)
24384        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24385         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24386        else
24387 @@ -14214,23 +15497,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24388        ;;
24389  
24390      openbsd*)
24391 -      hardcode_direct_F77=yes
24392 -      hardcode_shlibpath_var_F77=no
24393 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24394 -       archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24395 -       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24396 -       export_dynamic_flag_spec_F77='${wl}-E'
24397 +      if test -f /usr/libexec/ld.so; then
24398 +       hardcode_direct_F77=yes
24399 +       hardcode_shlibpath_var_F77=no
24400 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24401 +         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24402 +         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24403 +         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24404 +         export_dynamic_flag_spec_F77='${wl}-E'
24405 +       else
24406 +         case $host_os in
24407 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24408 +            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24409 +            hardcode_libdir_flag_spec_F77='-R$libdir'
24410 +            ;;
24411 +          *)
24412 +            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24413 +            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24414 +            ;;
24415 +         esac
24416 +        fi
24417        else
24418 -       case $host_os in
24419 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24420 -          archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24421 -          hardcode_libdir_flag_spec_F77='-R$libdir'
24422 -          ;;
24423 -        *)
24424 -          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24425 -          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24426 -          ;;
24427 -       esac
24428 +       ld_shlibs_F77=no
24429        fi
24430        ;;
24431  
24432 @@ -14263,7 +15551,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24433         allow_undefined_flag_F77=' -expect_unresolved \*'
24434         archive_cmds_F77='$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'
24435         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
24436 -       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
24437 +       $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'
24438  
24439         # Both c and cxx compiler support -rpath directly
24440         hardcode_libdir_flag_spec_F77='-rpath $libdir'
24441 @@ -14271,21 +15559,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24442        hardcode_libdir_separator_F77=:
24443        ;;
24444  
24445 -    sco3.2v5*)
24446 -      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24447 -      hardcode_shlibpath_var_F77=no
24448 -      export_dynamic_flag_spec_F77='${wl}-Bexport'
24449 -      runpath_var=LD_RUN_PATH
24450 -      hardcode_runpath_var=yes
24451 -      ;;
24452 -
24453      solaris*)
24454        no_undefined_flag_F77=' -z text'
24455        if test "$GCC" = yes; then
24456 +       wlarc='${wl}'
24457         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24458         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24459           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24460        else
24461 +       wlarc=''
24462         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24463         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24464         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24465 @@ -14294,8 +15576,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24466        hardcode_shlibpath_var_F77=no
24467        case $host_os in
24468        solaris2.[0-5] | solaris2.[0-5].*) ;;
24469 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
24470 -       whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
24471 +      *)
24472 +       # The compiler driver will combine and reorder linker options,
24473 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
24474 +       # but is careful enough not to reorder.
24475 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
24476 +       if test "$GCC" = yes; then
24477 +         whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24478 +       else
24479 +         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
24480 +       fi
24481 +       ;;
24482        esac
24483        link_all_deplibs_F77=yes
24484        ;;
24485 @@ -14352,36 +15643,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24486        fi
24487        ;;
24488  
24489 -    sysv4.2uw2*)
24490 -      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24491 -      hardcode_direct_F77=yes
24492 -      hardcode_minus_L_F77=no
24493 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
24494 +      no_undefined_flag_F77='${wl}-z,text'
24495 +      archive_cmds_need_lc_F77=no
24496        hardcode_shlibpath_var_F77=no
24497 -      hardcode_runpath_var=yes
24498 -      runpath_var=LD_RUN_PATH
24499 -      ;;
24500 +      runpath_var='LD_RUN_PATH'
24501  
24502 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
24503 -      no_undefined_flag_F77='${wl}-z ${wl}text'
24504        if test "$GCC" = yes; then
24505 -       archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24506 +       archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24507 +       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24508        else
24509 -       archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24510 +       archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24511 +       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24512        fi
24513 -      runpath_var='LD_RUN_PATH'
24514 -      hardcode_shlibpath_var_F77=no
24515        ;;
24516  
24517 -    sysv5*)
24518 -      no_undefined_flag_F77=' -z text'
24519 -      # $CC -shared without GNU ld will not create a library from C++
24520 -      # object files and a static libstdc++, better avoid it by now
24521 -      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24522 -      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24523 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24524 -      hardcode_libdir_flag_spec_F77=
24525 +    sysv5* | sco3.2v5* | sco5v6*)
24526 +      # Note: We can NOT use -z defs as we might desire, because we do not
24527 +      # link with -lc, and that would cause any symbols used from libc to
24528 +      # always be unresolved, which means just about no library would
24529 +      # ever link correctly.  If we're not using GNU ld we use -z text
24530 +      # though, which does catch some bad symbols but isn't as heavy-handed
24531 +      # as -z defs.
24532 +      no_undefined_flag_F77='${wl}-z,text'
24533 +      allow_undefined_flag_F77='${wl}-z,nodefs'
24534 +      archive_cmds_need_lc_F77=no
24535        hardcode_shlibpath_var_F77=no
24536 +      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24537 +      hardcode_libdir_separator_F77=':'
24538 +      link_all_deplibs_F77=yes
24539 +      export_dynamic_flag_spec_F77='${wl}-Bexport'
24540        runpath_var='LD_RUN_PATH'
24541 +
24542 +      if test "$GCC" = yes; then
24543 +       archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24544 +       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24545 +      else
24546 +       archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24547 +       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24548 +      fi
24549        ;;
24550  
24551      uts4*)
24552 @@ -14396,15 +15696,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24553      esac
24554    fi
24555  
24556 -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
24557 -echo "${ECHO_T}$ld_shlibs_F77" >&6
24558 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
24559 +$as_echo "$ld_shlibs_F77" >&6; }
24560  test "$ld_shlibs_F77" = no && can_build_shared=no
24561  
24562 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24563 -if test "$GCC" = yes; then
24564 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24565 -fi
24566 -
24567  #
24568  # Do we need to explicitly link libc?
24569  #
24570 @@ -14422,21 +15717,22 @@ x|xyes)
24571        # Test whether the compiler implicitly links with -lc since on some
24572        # systems, -lgcc has to come before -lc. If gcc already passes -lc
24573        # to ld, don't add -lc before -lgcc.
24574 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24575 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24576 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24577 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24578        $rm conftest*
24579 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24580 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24581  
24582        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24583    (eval $ac_compile) 2>&5
24584    ac_status=$?
24585 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587    (exit $ac_status); } 2>conftest.err; then
24588          soname=conftest
24589          lib=conftest
24590          libobjs=conftest.$ac_objext
24591          deplibs=
24592          wl=$lt_prog_compiler_wl_F77
24593 +       pic_flag=$lt_prog_compiler_pic_F77
24594          compiler_flags=-v
24595          linker_flags=-v
24596          verstring=
24597 @@ -14447,7 +15743,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
24598          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24599    (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24600    ac_status=$?
24601 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603    (exit $ac_status); }
24604          then
24605           archive_cmds_need_lc_F77=no
24606 @@ -14459,16 +15755,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
24607          cat conftest.err 1>&5
24608        fi
24609        $rm conftest*
24610 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
24611 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
24612 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
24613 +$as_echo "$archive_cmds_need_lc_F77" >&6; }
24614        ;;
24615      esac
24616    fi
24617    ;;
24618  esac
24619  
24620 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24621 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
24622 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24623 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
24624  library_names_spec=
24625  libname_spec='lib$name'
24626  soname_spec=
24627 @@ -14482,20 +15778,7 @@ shlibpath_overrides_runpath=unknown
24628  version_type=none
24629  dynamic_linker="$host_os ld.so"
24630  sys_lib_dlsearch_path_spec="/lib /usr/lib"
24631 -if test "$GCC" = yes; then
24632 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24633 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24634 -    # if the path contains ";" then we assume it to be the separator
24635 -    # otherwise default to the standard path separator (i.e. ":") - it is
24636 -    # assumed that no part of a normal pathname contains ";" but that should
24637 -    # okay in the real world where ";" in dirpaths is itself problematic.
24638 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24639 -  else
24640 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24641 -  fi
24642 -else
24643 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24644 -fi
24645 +
24646  need_lib_prefix=unknown
24647  hardcode_into_libs=no
24648  
24649 @@ -14513,7 +15796,7 @@ aix3*)
24650    soname_spec='${libname}${release}${shared_ext}$major'
24651    ;;
24652  
24653 -aix4* | aix5*)
24654 +aix[4-9]*)
24655    version_type=linux
24656    need_lib_prefix=no
24657    need_version=no
24658 @@ -14569,7 +15852,7 @@ beos*)
24659    shlibpath_var=LIBRARY_PATH
24660    ;;
24661  
24662 -bsdi4*)
24663 +bsdi[45]*)
24664    version_type=linux
24665    need_version=no
24666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24667 @@ -14597,7 +15880,8 @@ cygwin* | mingw* | pw32*)
24668        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24669        dldir=$destdir/`dirname \$dlpath`~
24670        test -d \$dldir || mkdir -p \$dldir~
24671 -      $install_prog $dir/$dlname \$dldir/$dlname'
24672 +      $install_prog $dir/$dlname \$dldir/$dlname~
24673 +      chmod a+x \$dldir/$dlname'
24674      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24675        dlpath=$dir/\$dldll~
24676         $rm \$dlpath'
24677 @@ -14627,7 +15911,7 @@ cygwin* | mingw* | pw32*)
24678        ;;
24679      pw32*)
24680        # pw32 DLLs use 'pw' prefix rather than 'lib'
24681 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
24682 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24683        ;;
24684      esac
24685      ;;
24686 @@ -14650,13 +15934,8 @@ darwin* | rhapsody*)
24687    soname_spec='${libname}${release}${major}$shared_ext'
24688    shlibpath_overrides_runpath=yes
24689    shlibpath_var=DYLD_LIBRARY_PATH
24690 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
24691 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24692 -  if test "$GCC" = yes; then
24693 -    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"`
24694 -  else
24695 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24696 -  fi
24697 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24698 +
24699    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24700    ;;
24701  
24702 @@ -14673,20 +15952,17 @@ freebsd1*)
24703    dynamic_linker=no
24704    ;;
24705  
24706 -kfreebsd*-gnu)
24707 -  version_type=linux
24708 -  need_lib_prefix=no
24709 -  need_version=no
24710 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24711 -  soname_spec='${libname}${release}${shared_ext}$major'
24712 -  shlibpath_var=LD_LIBRARY_PATH
24713 -  shlibpath_overrides_runpath=no
24714 -  hardcode_into_libs=yes
24715 -  dynamic_linker='GNU ld.so'
24716 -  ;;
24717 -
24718 -freebsd*)
24719 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
24720 +freebsd* | dragonfly*)
24721 +  # DragonFly does not have aout.  When/if they implement a new
24722 +  # versioning mechanism, adjust this.
24723 +  if test -x /usr/bin/objformat; then
24724 +    objformat=`/usr/bin/objformat`
24725 +  else
24726 +    case $host_os in
24727 +    freebsd[123]*) objformat=aout ;;
24728 +    *) objformat=elf ;;
24729 +    esac
24730 +  fi
24731    version_type=freebsd-$objformat
24732    case $version_type in
24733      freebsd-elf*)
24734 @@ -14704,14 +15980,19 @@ freebsd*)
24735    freebsd2*)
24736      shlibpath_overrides_runpath=yes
24737      ;;
24738 -  freebsd3.01* | freebsdelf3.01*)
24739 +  freebsd3.[01]* | freebsdelf3.[01]*)
24740      shlibpath_overrides_runpath=yes
24741      hardcode_into_libs=yes
24742      ;;
24743 -  *) # from 3.2 on
24744 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24745 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24746      shlibpath_overrides_runpath=no
24747      hardcode_into_libs=yes
24748      ;;
24749 +  *) # from 4.6 on, and DragonFly
24750 +    shlibpath_overrides_runpath=yes
24751 +    hardcode_into_libs=yes
24752 +    ;;
24753    esac
24754    ;;
24755  
24756 @@ -14731,7 +16012,7 @@ hpux9* | hpux10* | hpux11*)
24757    version_type=sunos
24758    need_lib_prefix=no
24759    need_version=no
24760 -  case "$host_cpu" in
24761 +  case $host_cpu in
24762    ia64*)
24763      shrext_cmds='.so'
24764      hardcode_into_libs=yes
24765 @@ -14771,6 +16052,18 @@ hpux9* | hpux10* | hpux11*)
24766    postinstall_cmds='chmod 555 $lib'
24767    ;;
24768  
24769 +interix[3-9]*)
24770 +  version_type=linux
24771 +  need_lib_prefix=no
24772 +  need_version=no
24773 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24774 +  soname_spec='${libname}${release}${shared_ext}$major'
24775 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24776 +  shlibpath_var=LD_LIBRARY_PATH
24777 +  shlibpath_overrides_runpath=no
24778 +  hardcode_into_libs=yes
24779 +  ;;
24780 +
24781  irix5* | irix6* | nonstopux*)
24782    case $host_os in
24783      nonstopux*) version_type=nonstopux ;;
24784 @@ -14814,7 +16107,7 @@ linux*oldld* | linux*aout* | linux*coff*)
24785    ;;
24786  
24787  # This must be Linux ELF.
24788 -linux*)
24789 +linux* | k*bsd*-gnu)
24790    version_type=linux
24791    need_lib_prefix=no
24792    need_version=no
24793 @@ -14828,31 +16121,10 @@ linux*)
24794    # before this can be enabled.
24795    hardcode_into_libs=yes
24796  
24797 -  # find out which ABI we are using
24798 -  libsuff=
24799 -  case "$host_cpu" in
24800 -  x86_64*|s390x*|powerpc64*)
24801 -    echo '#line 14835 "configure"' > conftest.$ac_ext
24802 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24803 -  (eval $ac_compile) 2>&5
24804 -  ac_status=$?
24805 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 -  (exit $ac_status); }; then
24807 -      case `/usr/bin/file conftest.$ac_objext` in
24808 -      *64-bit*)
24809 -        libsuff=64
24810 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24811 -        ;;
24812 -      esac
24813 -    fi
24814 -    rm -rf conftest*
24815 -    ;;
24816 -  esac
24817 -
24818    # Append ld.so.conf contents to the search path
24819    if test -f /etc/ld.so.conf; then
24820 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
24821 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24822 +    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' ' '`
24823 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24824    fi
24825  
24826    # We used to test for /lib/ld.so.1 and disable shared libraries on
24827 @@ -14864,7 +16136,7 @@ linux*)
24828    dynamic_linker='GNU/Linux ld.so'
24829    ;;
24830  
24831 -knetbsd*-gnu)
24832 +netbsdelf*-gnu)
24833    version_type=linux
24834    need_lib_prefix=no
24835    need_version=no
24836 @@ -14873,7 +16145,7 @@ knetbsd*-gnu)
24837    shlibpath_var=LD_LIBRARY_PATH
24838    shlibpath_overrides_runpath=no
24839    hardcode_into_libs=yes
24840 -  dynamic_linker='GNU ld.so'
24841 +  dynamic_linker='NetBSD ld.elf_so'
24842    ;;
24843  
24844  netbsd*)
24845 @@ -14913,8 +16185,13 @@ nto-qnx*)
24846  
24847  openbsd*)
24848    version_type=sunos
24849 +  sys_lib_dlsearch_path_spec="/usr/lib"
24850    need_lib_prefix=no
24851 -  need_version=yes
24852 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24853 +  case $host_os in
24854 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24855 +    *)                         need_version=no  ;;
24856 +  esac
24857    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24858    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24859    shlibpath_var=LD_LIBRARY_PATH
24860 @@ -14952,11 +16229,8 @@ osf3* | osf4* | osf5*)
24861    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24862    ;;
24863  
24864 -sco3.2v5*)
24865 -  version_type=osf
24866 -  soname_spec='${libname}${release}${shared_ext}$major'
24867 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24868 -  shlibpath_var=LD_LIBRARY_PATH
24869 +rdos*)
24870 +  dynamic_linker=no
24871    ;;
24872  
24873  solaris*)
24874 @@ -14984,7 +16258,7 @@ sunos4*)
24875    need_version=yes
24876    ;;
24877  
24878 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24879 +sysv4 | sysv4.3*)
24880    version_type=linux
24881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24882    soname_spec='${libname}${release}${shared_ext}$major'
24883 @@ -15017,6 +16291,29 @@ sysv4*MP*)
24884    fi
24885    ;;
24886  
24887 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24888 +  version_type=freebsd-elf
24889 +  need_lib_prefix=no
24890 +  need_version=no
24891 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24892 +  soname_spec='${libname}${release}${shared_ext}$major'
24893 +  shlibpath_var=LD_LIBRARY_PATH
24894 +  hardcode_into_libs=yes
24895 +  if test "$with_gnu_ld" = yes; then
24896 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24897 +    shlibpath_overrides_runpath=no
24898 +  else
24899 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24900 +    shlibpath_overrides_runpath=yes
24901 +    case $host_os in
24902 +      sco3.2v5*)
24903 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24904 +       ;;
24905 +    esac
24906 +  fi
24907 +  sys_lib_dlsearch_path_spec='/usr/lib'
24908 +  ;;
24909 +
24910  uts4*)
24911    version_type=linux
24912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24913 @@ -15028,16 +16325,36 @@ uts4*)
24914    dynamic_linker=no
24915    ;;
24916  esac
24917 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24918 -echo "${ECHO_T}$dynamic_linker" >&6
24919 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24920 +$as_echo "$dynamic_linker" >&6; }
24921  test "$dynamic_linker" = no && can_build_shared=no
24922  
24923 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24924 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24925 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24926 +  $as_echo_n "(cached) " >&6
24927 +else
24928 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
24929 +fi
24930 +
24931 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24932 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24933 +  $as_echo_n "(cached) " >&6
24934 +else
24935 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
24936 +fi
24937 +
24938 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24939 +
24940 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24941 +if test "$GCC" = yes; then
24942 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24943 +fi
24944 +
24945 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24946 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24947  hardcode_action_F77=
24948  if test -n "$hardcode_libdir_flag_spec_F77" || \
24949 -   test -n "$runpath_var F77" || \
24950 -   test "X$hardcode_automatic_F77"="Xyes" ; then
24951 +   test -n "$runpath_var_F77" || \
24952 +   test "X$hardcode_automatic_F77" = "Xyes" ; then
24953  
24954    # We can hardcode non-existant directories.
24955    if test "$hardcode_direct_F77" != no &&
24956 @@ -15057,8 +16374,8 @@ else
24957    # directories.
24958    hardcode_action_F77=unsupported
24959  fi
24960 -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24961 -echo "${ECHO_T}$hardcode_action_F77" >&6
24962 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24963 +$as_echo "$hardcode_action_F77" >&6; }
24964  
24965  if test "$hardcode_action_F77" = relink; then
24966    # Fast installation is not supported
24967 @@ -15069,36 +16386,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
24968    enable_fast_install=needless
24969  fi
24970  
24971 -striplib=
24972 -old_striplib=
24973 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24974 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24975 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24976 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24977 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24978 -  echo "$as_me:$LINENO: result: yes" >&5
24979 -echo "${ECHO_T}yes" >&6
24980 -else
24981 -# FIXME - insert some real tests, host_os isn't really good enough
24982 -  case $host_os in
24983 -   darwin*)
24984 -       if test -n "$STRIP" ; then
24985 -         striplib="$STRIP -x"
24986 -         echo "$as_me:$LINENO: result: yes" >&5
24987 -echo "${ECHO_T}yes" >&6
24988 -       else
24989 -  echo "$as_me:$LINENO: result: no" >&5
24990 -echo "${ECHO_T}no" >&6
24991 -fi
24992 -       ;;
24993 -   *)
24994 -  echo "$as_me:$LINENO: result: no" >&5
24995 -echo "${ECHO_T}no" >&6
24996 -    ;;
24997 -  esac
24998 -fi
24999 -
25000 -
25001  
25002  # The else clause should only fire when bootstrapping the
25003  # libtool distribution, otherwise you forgot to ship ltmain.sh
25004 @@ -15113,7 +16400,7 @@ if test -f "$ltmain"; then
25005    # Now quote all the things that may contain metacharacters while being
25006    # careful not to overquote the AC_SUBSTed values.  We take copies of the
25007    # variables and quote the copies for generation of the libtool script.
25008 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25009 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25010      SED SHELL STRIP \
25011      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25012      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25013 @@ -15140,6 +16427,7 @@ if test -f "$ltmain"; then
25014      predeps_F77 \
25015      postdeps_F77 \
25016      compiler_lib_search_path_F77 \
25017 +    compiler_lib_search_dirs_F77 \
25018      archive_cmds_F77 \
25019      archive_expsym_cmds_F77 \
25020      postinstall_cmds_F77 \
25021 @@ -15155,6 +16443,7 @@ if test -f "$ltmain"; then
25022      module_cmds_F77 \
25023      module_expsym_cmds_F77 \
25024      lt_cv_prog_compiler_c_o_F77 \
25025 +    fix_srcfile_path_F77 \
25026      exclude_expsyms_F77 \
25027      include_expsyms_F77; do
25028  
25029 @@ -15214,6 +16503,12 @@ fast_install=$enable_fast_install
25030  # The host system.
25031  host_alias=$host_alias
25032  host=$host
25033 +host_os=$host_os
25034 +
25035 +# The build system.
25036 +build_alias=$build_alias
25037 +build=$build
25038 +build_os=$build_os
25039  
25040  # An echo program that does not interpret backslashes.
25041  echo=$lt_echo
25042 @@ -15225,6 +16520,9 @@ AR_FLAGS=$lt_AR_FLAGS
25043  # A C compiler.
25044  LTCC=$lt_LTCC
25045  
25046 +# LTCC compiler flags.
25047 +LTCFLAGS=$lt_LTCFLAGS
25048 +
25049  # A language-specific compiler.
25050  CC=$lt_compiler_F77
25051  
25052 @@ -15290,7 +16588,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
25053  # Does compiler simultaneously support -c and -o options?
25054  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
25055  
25056 -# Must we lock files when doing compilation ?
25057 +# Must we lock files when doing compilation?
25058  need_locks=$lt_need_locks
25059  
25060  # Do we need the lib prefix for modules?
25061 @@ -15378,6 +16676,10 @@ predeps=$lt_predeps_F77
25062  # shared library.
25063  postdeps=$lt_postdeps_F77
25064  
25065 +# The directories searched by this compiler when creating a shared
25066 +# library
25067 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
25068 +
25069  # The library search path used internally by the compiler when linking
25070  # a shared library.
25071  compiler_lib_search_path=$lt_compiler_lib_search_path_F77
25072 @@ -15466,7 +16768,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25073  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25074  
25075  # Fix the shell variable \$srcfile for the compiler.
25076 -fix_srcfile_path="$fix_srcfile_path_F77"
25077 +fix_srcfile_path=$lt_fix_srcfile_path
25078  
25079  # Set to yes if exported symbols are required.
25080  always_export_symbols=$always_export_symbols_F77
25081 @@ -15516,7 +16818,6 @@ CC="$lt_save_CC"
25082         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
25083  
25084  
25085 -
25086  # Source file extension for Java test sources.
25087  ac_ext=java
25088  
25089 @@ -15525,29 +16826,58 @@ objext=o
25090  objext_GCJ=$objext
25091  
25092  # Code to be used in simple compile tests
25093 -lt_simple_compile_test_code="class foo {}\n"
25094 +lt_simple_compile_test_code="class foo {}"
25095  
25096  # Code to be used in simple link tests
25097 -lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
25098 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
25099  
25100  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25101  
25102  # If no C compiler was specified, use CC.
25103  LTCC=${LTCC-"$CC"}
25104  
25105 +# If no C compiler flags were specified, use CFLAGS.
25106 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25107 +
25108  # Allow CC to be a program name with arguments.
25109  compiler=$CC
25110  
25111  
25112 +# save warnings/boilerplate of simple test code
25113 +ac_outfile=conftest.$ac_objext
25114 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25115 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25116 +_lt_compiler_boilerplate=`cat conftest.err`
25117 +$rm conftest*
25118 +
25119 +ac_outfile=conftest.$ac_objext
25120 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
25121 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25122 +_lt_linker_boilerplate=`cat conftest.err`
25123 +$rm -r conftest*
25124 +
25125 +
25126  # Allow CC to be a program name with arguments.
25127  lt_save_CC="$CC"
25128  CC=${GCJ-"gcj"}
25129  compiler=$CC
25130  compiler_GCJ=$CC
25131 +for cc_temp in $compiler""; do
25132 +  case $cc_temp in
25133 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25134 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25135 +    \-*) ;;
25136 +    *) break;;
25137 +  esac
25138 +done
25139 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25140 +
25141  
25142  # GCJ did not exist at the time GCC didn't implicitly link libc in.
25143  archive_cmds_need_lc_GCJ=no
25144  
25145 +old_archive_cmds_GCJ=$old_archive_cmds
25146 +
25147  
25148  lt_prog_compiler_no_builtin_flag_GCJ=
25149  
25150 @@ -15555,14 +16885,14 @@ if test "$GCC" = yes; then
25151    lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
25152  
25153  
25154 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25155 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
25156 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25157 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
25158  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
25159 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25160 +  $as_echo_n "(cached) " >&6
25161  else
25162    lt_cv_prog_compiler_rtti_exceptions=no
25163    ac_outfile=conftest.$ac_objext
25164 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25165 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25166     lt_compiler_flag="-fno-rtti -fno-exceptions"
25167     # Insert the option either (1) after the last *FLAGS variable, or
25168     # (2) before a word containing "conftest.", or (3) at the end.
25169 @@ -15570,26 +16900,28 @@ else
25170     # with a dollar sign (not a hyphen), so the echo should work correctly.
25171     # The option is referenced via a variable to avoid confusing sed.
25172     lt_compile=`echo "$ac_compile" | $SED \
25173 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25174 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25175     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25176     -e 's:$: $lt_compiler_flag:'`
25177 -   (eval echo "\"\$as_me:15576: $lt_compile\"" >&5)
25178 +   (eval echo "\"\$as_me:16906: $lt_compile\"" >&5)
25179     (eval "$lt_compile" 2>conftest.err)
25180     ac_status=$?
25181     cat conftest.err >&5
25182 -   echo "$as_me:15580: \$? = $ac_status" >&5
25183 +   echo "$as_me:16910: \$? = $ac_status" >&5
25184     if (exit $ac_status) && test -s "$ac_outfile"; then
25185       # The compiler can only warn and ignore the option if not recognized
25186 -     # So say no if there are warnings
25187 -     if test ! -s conftest.err; then
25188 +     # So say no if there are warnings other than the usual output.
25189 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25190 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25191 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25192         lt_cv_prog_compiler_rtti_exceptions=yes
25193       fi
25194     fi
25195     $rm conftest*
25196  
25197  fi
25198 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25199 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
25200 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25201 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
25202  
25203  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25204      lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
25205 @@ -15603,8 +16935,8 @@ lt_prog_compiler_wl_GCJ=
25206  lt_prog_compiler_pic_GCJ=
25207  lt_prog_compiler_static_GCJ=
25208  
25209 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25210 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25211 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25212 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25213  
25214    if test "$GCC" = yes; then
25215      lt_prog_compiler_wl_GCJ='-Wl,'
25216 @@ -15626,14 +16958,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25217        lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
25218        ;;
25219  
25220 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25221 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25222        # PIC is the default for these OSes.
25223        ;;
25224  
25225 -    mingw* | pw32* | os2*)
25226 +    mingw* | cygwin* | pw32* | os2*)
25227        # This hack is so that the source file can tell whether it is being
25228        # built for inclusion in a dll (and should export symbols for example).
25229 -      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25230 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
25231 +      # (--disable-auto-import) libraries
25232 +
25233        ;;
25234  
25235      darwin* | rhapsody*)
25236 @@ -15642,6 +16976,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25237        lt_prog_compiler_pic_GCJ='-fno-common'
25238        ;;
25239  
25240 +    interix[3-9]*)
25241 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
25242 +      # Instead, we relocate shared libraries at runtime.
25243 +      ;;
25244 +
25245      msdosdjgpp*)
25246        # Just because we use GCC doesn't mean we suddenly get shared libraries
25247        # on systems that don't support them.
25248 @@ -15658,7 +16997,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25249      hpux*)
25250        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25251        # not for PA HP-UX.
25252 -      case "$host_cpu" in
25253 +      case $host_cpu in
25254        hppa*64*|ia64*)
25255         # +Z the default
25256         ;;
25257 @@ -15684,18 +17023,28 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25258         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
25259        fi
25260        ;;
25261 +      darwin*)
25262 +        # PIC is the default on this platform
25263 +        # Common symbols not allowed in MH_DYLIB files
25264 +       case $cc_basename in
25265 +         xlc*)
25266 +         lt_prog_compiler_pic_GCJ='-qnocommon'
25267 +         lt_prog_compiler_wl_GCJ='-Wl,'
25268 +         ;;
25269 +       esac
25270 +       ;;
25271  
25272 -    mingw* | pw32* | os2*)
25273 +    mingw* | cygwin* | pw32* | os2*)
25274        # This hack is so that the source file can tell whether it is being
25275        # built for inclusion in a dll (and should export symbols for example).
25276 -      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25277 +
25278        ;;
25279  
25280      hpux9* | hpux10* | hpux11*)
25281        lt_prog_compiler_wl_GCJ='-Wl,'
25282        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25283        # not for PA HP-UX.
25284 -      case "$host_cpu" in
25285 +      case $host_cpu in
25286        hppa*64*|ia64*)
25287         # +Z the default
25288         ;;
25289 @@ -15718,18 +17067,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25290        lt_prog_compiler_static_GCJ='-Bstatic'
25291        ;;
25292  
25293 -    linux*)
25294 -      case $CC in
25295 +    linux* | k*bsd*-gnu)
25296 +      case $cc_basename in
25297        icc* | ecc*)
25298         lt_prog_compiler_wl_GCJ='-Wl,'
25299         lt_prog_compiler_pic_GCJ='-KPIC'
25300         lt_prog_compiler_static_GCJ='-static'
25301          ;;
25302 +      pgcc* | pgf77* | pgf90* | pgf95*)
25303 +        # Portland Group compilers (*not* the Pentium gcc compiler,
25304 +       # which looks to be a dead project)
25305 +       lt_prog_compiler_wl_GCJ='-Wl,'
25306 +       lt_prog_compiler_pic_GCJ='-fpic'
25307 +       lt_prog_compiler_static_GCJ='-Bstatic'
25308 +        ;;
25309        ccc*)
25310          lt_prog_compiler_wl_GCJ='-Wl,'
25311          # All Alpha code is PIC.
25312          lt_prog_compiler_static_GCJ='-non_shared'
25313          ;;
25314 +      *)
25315 +        case `$CC -V 2>&1 | sed 5q` in
25316 +       *Sun\ C*)
25317 +         # Sun C 5.9
25318 +         lt_prog_compiler_pic_GCJ='-KPIC'
25319 +         lt_prog_compiler_static_GCJ='-Bstatic'
25320 +         lt_prog_compiler_wl_GCJ='-Wl,'
25321 +         ;;
25322 +       *Sun\ F*)
25323 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
25324 +         lt_prog_compiler_pic_GCJ='-KPIC'
25325 +         lt_prog_compiler_static_GCJ='-Bstatic'
25326 +         lt_prog_compiler_wl_GCJ=''
25327 +         ;;
25328 +       esac
25329 +       ;;
25330        esac
25331        ;;
25332  
25333 @@ -15739,15 +17111,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25334        lt_prog_compiler_static_GCJ='-non_shared'
25335        ;;
25336  
25337 -    sco3.2v5*)
25338 -      lt_prog_compiler_pic_GCJ='-Kpic'
25339 -      lt_prog_compiler_static_GCJ='-dn'
25340 +    rdos*)
25341 +      lt_prog_compiler_static_GCJ='-non_shared'
25342        ;;
25343  
25344      solaris*)
25345 -      lt_prog_compiler_wl_GCJ='-Wl,'
25346        lt_prog_compiler_pic_GCJ='-KPIC'
25347        lt_prog_compiler_static_GCJ='-Bstatic'
25348 +      case $cc_basename in
25349 +      f77* | f90* | f95*)
25350 +       lt_prog_compiler_wl_GCJ='-Qoption ld ';;
25351 +      *)
25352 +       lt_prog_compiler_wl_GCJ='-Wl,';;
25353 +      esac
25354        ;;
25355  
25356      sunos4*)
25357 @@ -15756,7 +17132,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25358        lt_prog_compiler_static_GCJ='-Bstatic'
25359        ;;
25360  
25361 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25362 +    sysv4 | sysv4.2uw2* | sysv4.3*)
25363        lt_prog_compiler_wl_GCJ='-Wl,'
25364        lt_prog_compiler_pic_GCJ='-KPIC'
25365        lt_prog_compiler_static_GCJ='-Bstatic'
25366 @@ -15769,6 +17145,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25367        fi
25368        ;;
25369  
25370 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
25371 +      lt_prog_compiler_wl_GCJ='-Wl,'
25372 +      lt_prog_compiler_pic_GCJ='-KPIC'
25373 +      lt_prog_compiler_static_GCJ='-Bstatic'
25374 +      ;;
25375 +
25376 +    unicos*)
25377 +      lt_prog_compiler_wl_GCJ='-Wl,'
25378 +      lt_prog_compiler_can_build_shared_GCJ=no
25379 +      ;;
25380 +
25381      uts4*)
25382        lt_prog_compiler_pic_GCJ='-pic'
25383        lt_prog_compiler_static_GCJ='-Bstatic'
25384 @@ -15780,22 +17167,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25385      esac
25386    fi
25387  
25388 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
25389 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
25390 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
25391 +$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
25392  
25393  #
25394  # Check to make sure the PIC flag actually works.
25395  #
25396  if test -n "$lt_prog_compiler_pic_GCJ"; then
25397  
25398 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
25399 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
25400 -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
25401 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25402 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
25403 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
25404 +if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
25405 +  $as_echo_n "(cached) " >&6
25406  else
25407 -  lt_prog_compiler_pic_works_GCJ=no
25408 +  lt_cv_prog_compiler_pic_works_GCJ=no
25409    ac_outfile=conftest.$ac_objext
25410 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25411 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25412     lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
25413     # Insert the option either (1) after the last *FLAGS variable, or
25414     # (2) before a word containing "conftest.", or (3) at the end.
25415 @@ -15803,28 +17190,30 @@ else
25416     # with a dollar sign (not a hyphen), so the echo should work correctly.
25417     # The option is referenced via a variable to avoid confusing sed.
25418     lt_compile=`echo "$ac_compile" | $SED \
25419 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25420 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25421     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25422     -e 's:$: $lt_compiler_flag:'`
25423 -   (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
25424 +   (eval echo "\"\$as_me:17196: $lt_compile\"" >&5)
25425     (eval "$lt_compile" 2>conftest.err)
25426     ac_status=$?
25427     cat conftest.err >&5
25428 -   echo "$as_me:15813: \$? = $ac_status" >&5
25429 +   echo "$as_me:17200: \$? = $ac_status" >&5
25430     if (exit $ac_status) && test -s "$ac_outfile"; then
25431       # The compiler can only warn and ignore the option if not recognized
25432 -     # So say no if there are warnings
25433 -     if test ! -s conftest.err; then
25434 -       lt_prog_compiler_pic_works_GCJ=yes
25435 +     # So say no if there are warnings other than the usual output.
25436 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25437 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25438 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25439 +       lt_cv_prog_compiler_pic_works_GCJ=yes
25440       fi
25441     fi
25442     $rm conftest*
25443  
25444  fi
25445 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
25446 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
25447 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
25448 +$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
25449  
25450 -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
25451 +if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
25452      case $lt_prog_compiler_pic_GCJ in
25453       "" | " "*) ;;
25454       *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
25455 @@ -15835,7 +17224,7 @@ else
25456  fi
25457  
25458  fi
25459 -case "$host_os" in
25460 +case $host_os in
25461    # For platforms which do not support PIC, -DPIC is meaningless:
25462    *djgpp*)
25463      lt_prog_compiler_pic_GCJ=
25464 @@ -15845,17 +17234,59 @@ case "$host_os" in
25465      ;;
25466  esac
25467  
25468 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25469 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25470 +#
25471 +# Check to make sure the static flag actually works.
25472 +#
25473 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
25474 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25475 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25476 +if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
25477 +  $as_echo_n "(cached) " >&6
25478 +else
25479 +  lt_cv_prog_compiler_static_works_GCJ=no
25480 +   save_LDFLAGS="$LDFLAGS"
25481 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
25482 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
25483 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25484 +     # The linker can only warn and ignore the option if not recognized
25485 +     # So say no if there are warnings
25486 +     if test -s conftest.err; then
25487 +       # Append any errors to the config.log.
25488 +       cat conftest.err 1>&5
25489 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
25490 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25491 +       if diff conftest.exp conftest.er2 >/dev/null; then
25492 +         lt_cv_prog_compiler_static_works_GCJ=yes
25493 +       fi
25494 +     else
25495 +       lt_cv_prog_compiler_static_works_GCJ=yes
25496 +     fi
25497 +   fi
25498 +   $rm -r conftest*
25499 +   LDFLAGS="$save_LDFLAGS"
25500 +
25501 +fi
25502 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
25503 +$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
25504 +
25505 +if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
25506 +    :
25507 +else
25508 +    lt_prog_compiler_static_GCJ=
25509 +fi
25510 +
25511 +
25512 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25513 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25514  if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
25515 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25516 +  $as_echo_n "(cached) " >&6
25517  else
25518    lt_cv_prog_compiler_c_o_GCJ=no
25519     $rm -r conftest 2>/dev/null
25520     mkdir conftest
25521     cd conftest
25522     mkdir out
25523 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25524 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25525  
25526     lt_compiler_flag="-o out/conftest2.$ac_objext"
25527     # Insert the option either (1) after the last *FLAGS variable, or
25528 @@ -15863,23 +17294,25 @@ else
25529     # Note that $ac_compile itself does not contain backslashes and begins
25530     # with a dollar sign (not a hyphen), so the echo should work correctly.
25531     lt_compile=`echo "$ac_compile" | $SED \
25532 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25533 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25534     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25535     -e 's:$: $lt_compiler_flag:'`
25536 -   (eval echo "\"\$as_me:15869: $lt_compile\"" >&5)
25537 +   (eval echo "\"\$as_me:17300: $lt_compile\"" >&5)
25538     (eval "$lt_compile" 2>out/conftest.err)
25539     ac_status=$?
25540     cat out/conftest.err >&5
25541 -   echo "$as_me:15873: \$? = $ac_status" >&5
25542 +   echo "$as_me:17304: \$? = $ac_status" >&5
25543     if (exit $ac_status) && test -s out/conftest2.$ac_objext
25544     then
25545       # The compiler can only warn and ignore the option if not recognized
25546       # So say no if there are warnings
25547 -     if test ! -s out/conftest.err; then
25548 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
25549 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25550 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25551         lt_cv_prog_compiler_c_o_GCJ=yes
25552       fi
25553     fi
25554 -   chmod u+w .
25555 +   chmod u+w . 2>&5
25556     $rm conftest*
25557     # SGI C++ compiler will create directory out/ii_files/ for
25558     # template instantiation
25559 @@ -15890,34 +17323,34 @@ else
25560     $rm conftest*
25561  
25562  fi
25563 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25564 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
25565 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25566 +$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
25567  
25568  
25569  hard_links="nottested"
25570  if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25571    # do not overwrite the value of need_locks provided by the user
25572 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25573 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
25574 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25575 +$as_echo_n "checking if we can lock with hard links... " >&6; }
25576    hard_links=yes
25577    $rm conftest*
25578    ln conftest.a conftest.b 2>/dev/null && hard_links=no
25579    touch conftest.a
25580    ln conftest.a conftest.b 2>&5 || hard_links=no
25581    ln conftest.a conftest.b 2>/dev/null && hard_links=no
25582 -  echo "$as_me:$LINENO: result: $hard_links" >&5
25583 -echo "${ECHO_T}$hard_links" >&6
25584 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
25585 +$as_echo "$hard_links" >&6; }
25586    if test "$hard_links" = no; then
25587 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25588 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25589 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25590 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25591      need_locks=warn
25592    fi
25593  else
25594    need_locks=no
25595  fi
25596  
25597 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25598 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
25599 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25600 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25601  
25602    runpath_var=
25603    allow_undefined_flag_GCJ=
25604 @@ -15948,13 +17381,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25605    # it will be wrapped by ` (' and `)$', so one must not match beginning or
25606    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25607    # as well as any symbol that contains `d'.
25608 -  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
25609 +  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25610    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25611    # platforms (ab)use it in PIC code, but their linkers get confused if
25612    # the symbol is explicitly referenced.  Since portable code cannot
25613    # rely on this symbol name, it's probably fine to never include it in
25614    # preloaded symbol tables.
25615 +  # Exclude shared library initialization/finalization symbols.
25616    extract_expsyms_cmds=
25617 +  # Just being paranoid about ensuring that cc_basename is set.
25618 +  for cc_temp in $compiler""; do
25619 +  case $cc_temp in
25620 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25621 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25622 +    \-*) ;;
25623 +    *) break;;
25624 +  esac
25625 +done
25626 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25627  
25628    case $host_os in
25629    cygwin* | mingw* | pw32*)
25630 @@ -15965,6 +17409,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25631        with_gnu_ld=no
25632      fi
25633      ;;
25634 +  interix*)
25635 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
25636 +    with_gnu_ld=yes
25637 +    ;;
25638    openbsd*)
25639      with_gnu_ld=no
25640      ;;
25641 @@ -15975,9 +17423,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25642      # If archive_cmds runs LD, not CC, wlarc should be empty
25643      wlarc='${wl}'
25644  
25645 +    # Set some defaults for GNU ld with shared library support. These
25646 +    # are reset later if shared libraries are not supported. Putting them
25647 +    # here allows them to be overridden if necessary.
25648 +    runpath_var=LD_RUN_PATH
25649 +    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25650 +    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25651 +    # ancient GNU ld didn't support --whole-archive et. al.
25652 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25653 +       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25654 +      else
25655 +       whole_archive_flag_spec_GCJ=
25656 +    fi
25657 +    supports_anon_versioning=no
25658 +    case `$LD -v 2>/dev/null` in
25659 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25660 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25661 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25662 +      *\ 2.11.*) ;; # other 2.11 versions
25663 +      *) supports_anon_versioning=yes ;;
25664 +    esac
25665 +
25666      # See if GNU ld supports shared libraries.
25667      case $host_os in
25668 -    aix3* | aix4* | aix5*)
25669 +    aix[3-9]*)
25670        # On AIX/PPC, the GNU linker is very broken
25671        if test "$host_cpu" != ia64; then
25672         ld_shlibs_GCJ=no
25673 @@ -16025,10 +17494,10 @@ EOF
25674        allow_undefined_flag_GCJ=unsupported
25675        always_export_symbols_GCJ=no
25676        enable_shared_with_static_runtimes_GCJ=yes
25677 -      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25678 +      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25679  
25680        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25681 -        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25682 +        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25683         # If the export-symbols file already is a .def file (1st line
25684         # is EXPORTS), use it as is; otherwise, prepend...
25685         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25686 @@ -16037,13 +17506,69 @@ EOF
25687           echo EXPORTS > $output_objdir/$soname.def;
25688           cat $export_symbols >> $output_objdir/$soname.def;
25689         fi~
25690 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
25691 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25692        else
25693 -       ld_shlibs=no
25694 +       ld_shlibs_GCJ=no
25695 +      fi
25696 +      ;;
25697 +
25698 +    interix[3-9]*)
25699 +      hardcode_direct_GCJ=no
25700 +      hardcode_shlibpath_var_GCJ=no
25701 +      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25702 +      export_dynamic_flag_spec_GCJ='${wl}-E'
25703 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25704 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
25705 +      # default) and relocated if they conflict, which is a slow very memory
25706 +      # consuming and fragmenting process.  To avoid this, we pick a random,
25707 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25708 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25709 +      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25710 +      archive_expsym_cmds_GCJ='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'
25711 +      ;;
25712 +
25713 +    gnu* | linux* | k*bsd*-gnu)
25714 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25715 +       tmp_addflag=
25716 +       case $cc_basename,$host_cpu in
25717 +       pgcc*)                          # Portland Group C compiler
25718 +         whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25719 +         tmp_addflag=' $pic_flag'
25720 +         ;;
25721 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
25722 +         whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25723 +         tmp_addflag=' $pic_flag -Mnomain' ;;
25724 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
25725 +         tmp_addflag=' -i_dynamic' ;;
25726 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25727 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
25728 +       ifc* | ifort*)                  # Intel Fortran compiler
25729 +         tmp_addflag=' -nofor_main' ;;
25730 +       esac
25731 +       case `$CC -V 2>&1 | sed 5q` in
25732 +       *Sun\ C*)                       # Sun C 5.9
25733 +         whole_archive_flag_spec_GCJ='${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'
25734 +         tmp_sharedflag='-G' ;;
25735 +       *Sun\ F*)                       # Sun Fortran 8.3
25736 +         tmp_sharedflag='-G' ;;
25737 +       *)
25738 +         tmp_sharedflag='-shared' ;;
25739 +       esac
25740 +       archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25741 +
25742 +       if test $supports_anon_versioning = yes; then
25743 +         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25744 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25745 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
25746 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25747 +       fi
25748 +       link_all_deplibs_GCJ=no
25749 +      else
25750 +       ld_shlibs_GCJ=no
25751        fi
25752        ;;
25753  
25754 -    netbsd*)
25755 +    netbsd* | netbsdelf*-gnu)
25756        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25757         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25758         wlarc=
25759 @@ -16053,7 +17578,7 @@ EOF
25760        fi
25761        ;;
25762  
25763 -    solaris* | sysv5*)
25764 +    solaris*)
25765        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25766         ld_shlibs_GCJ=no
25767         cat <<EOF 1>&2
25768 @@ -16074,6 +17599,33 @@ EOF
25769        fi
25770        ;;
25771  
25772 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25773 +      case `$LD -v 2>&1` in
25774 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25775 +       ld_shlibs_GCJ=no
25776 +       cat <<_LT_EOF 1>&2
25777 +
25778 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25779 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
25780 +*** is disabling shared libraries support.  We urge you to upgrade GNU
25781 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
25782 +*** your PATH or compiler configuration so that the native linker is
25783 +*** used, and then restart.
25784 +
25785 +_LT_EOF
25786 +       ;;
25787 +       *)
25788 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25789 +           hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25790 +           archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25791 +           archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25792 +         else
25793 +           ld_shlibs_GCJ=no
25794 +         fi
25795 +       ;;
25796 +      esac
25797 +      ;;
25798 +
25799      sunos4*)
25800        archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25801        wlarc=
25802 @@ -16081,31 +17633,6 @@ EOF
25803        hardcode_shlibpath_var_GCJ=no
25804        ;;
25805  
25806 -  linux*)
25807 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25808 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25809 -       archive_cmds_GCJ="$tmp_archive_cmds"
25810 -      supports_anon_versioning=no
25811 -      case `$LD -v 2>/dev/null` in
25812 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25813 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25814 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25815 -        *\ 2.11.*) ;; # other 2.11 versions
25816 -        *) supports_anon_versioning=yes ;;
25817 -      esac
25818 -      if test $supports_anon_versioning = yes; then
25819 -        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25820 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25821 -$echo "local: *; };" >> $output_objdir/$libname.ver~
25822 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25823 -      else
25824 -        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
25825 -      fi
25826 -    else
25827 -      ld_shlibs_GCJ=no
25828 -    fi
25829 -    ;;
25830 -
25831      *)
25832        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25833         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25834 @@ -16116,16 +17643,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25835        ;;
25836      esac
25837  
25838 -    if test "$ld_shlibs_GCJ" = yes; then
25839 -      runpath_var=LD_RUN_PATH
25840 -      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25841 -      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25842 -      # ancient GNU ld didn't support --whole-archive et. al.
25843 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25844 -       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25845 -      else
25846 -       whole_archive_flag_spec_GCJ=
25847 -      fi
25848 +    if test "$ld_shlibs_GCJ" = no; then
25849 +      runpath_var=
25850 +      hardcode_libdir_flag_spec_GCJ=
25851 +      export_dynamic_flag_spec_GCJ=
25852 +      whole_archive_flag_spec_GCJ=
25853      fi
25854    else
25855      # PORTME fill in a description of your system's linker (not GNU ld)
25856 @@ -16137,14 +17659,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25857        # Note: this linker hardcodes the directories in LIBPATH if there
25858        # are no directories specified by -L.
25859        hardcode_minus_L_GCJ=yes
25860 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
25861 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25862         # Neither direct hardcoding nor static linking is supported with a
25863         # broken collect2.
25864         hardcode_direct_GCJ=unsupported
25865        fi
25866        ;;
25867  
25868 -    aix4* | aix5*)
25869 +    aix[4-9]*)
25870        if test "$host_cpu" = ia64; then
25871         # On IA64, the linker does run time linking by default, so we don't
25872         # have to do anything special.
25873 @@ -16164,13 +17686,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25874         # Test if we are trying to use run time linking or normal
25875         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25876         # need to do runtime linking.
25877 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25878 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
25879           for ld_flag in $LDFLAGS; do
25880           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25881             aix_use_runtimelinking=yes
25882             break
25883           fi
25884           done
25885 +         ;;
25886         esac
25887  
25888         exp_sym_flag='-bexport'
25889 @@ -16189,7 +17712,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25890        link_all_deplibs_GCJ=yes
25891  
25892        if test "$GCC" = yes; then
25893 -       case $host_os in aix4.012|aix4.012.*)
25894 +       case $host_os in aix4.[012]|aix4.[012].*)
25895         # We only want to do this on AIX 4.2 and lower, the check
25896         # below for broken collect2 doesn't work under 4.3+
25897           collect2name=`${CC} -print-prog-name=collect2`
25898 @@ -16197,7 +17720,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25899            strings "$collect2name" | grep resolve_lib_name >/dev/null
25900           then
25901           # We have reworked collect2
25902 -         hardcode_direct_GCJ=yes
25903 +         :
25904           else
25905           # We have old collect2
25906           hardcode_direct_GCJ=unsupported
25907 @@ -16208,8 +17731,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25908           hardcode_libdir_flag_spec_GCJ='-L$libdir'
25909           hardcode_libdir_separator_GCJ=
25910           fi
25911 +         ;;
25912         esac
25913         shared_flag='-shared'
25914 +       if test "$aix_use_runtimelinking" = yes; then
25915 +         shared_flag="$shared_flag "'${wl}-G'
25916 +       fi
25917        else
25918         # not using gcc
25919         if test "$host_cpu" = ia64; then
25920 @@ -16217,11 +17744,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25921         # chokes on -Wl,-G. The following line is correct:
25922           shared_flag='-G'
25923         else
25924 -       if test "$aix_use_runtimelinking" = yes; then
25925 +         if test "$aix_use_runtimelinking" = yes; then
25926             shared_flag='${wl}-G'
25927           else
25928             shared_flag='${wl}-bM:SRE'
25929 -       fi
25930 +         fi
25931         fi
25932        fi
25933  
25934 @@ -16249,49 +17776,58 @@ main ()
25935  }
25936  _ACEOF
25937  rm -f conftest.$ac_objext conftest$ac_exeext
25938 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25939 -  (eval $ac_link) 2>conftest.er1
25940 +if { (ac_try="$ac_link"
25941 +case "(($ac_try" in
25942 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25943 +  *) ac_try_echo=$ac_try;;
25944 +esac
25945 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25946 +$as_echo "$ac_try_echo") >&5
25947 +  (eval "$ac_link") 2>conftest.er1
25948    ac_status=$?
25949    grep -v '^ *+' conftest.er1 >conftest.err
25950    rm -f conftest.er1
25951    cat conftest.err >&5
25952 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 -  (exit $ac_status); } &&
25954 -        { ac_try='test -z "$ac_c_werror_flag"
25955 -                        || test ! -s conftest.err'
25956 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957 -  (eval $ac_try) 2>&5
25958 -  ac_status=$?
25959 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 -  (exit $ac_status); }; } &&
25961 -        { ac_try='test -s conftest$ac_exeext'
25962 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25963 -  (eval $ac_try) 2>&5
25964 -  ac_status=$?
25965 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 -  (exit $ac_status); }; }; then
25967 -
25968 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25969 -}'`
25970 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 +  (exit $ac_status); } && {
25972 +        test -z "$ac_c_werror_flag" ||
25973 +        test ! -s conftest.err
25974 +       } && test -s conftest$ac_exeext && {
25975 +        test "$cross_compiling" = yes ||
25976 +        $as_test_x conftest$ac_exeext
25977 +       }; then
25978 +
25979 +lt_aix_libpath_sed='
25980 +    /Import File Strings/,/^$/ {
25981 +       /^0/ {
25982 +           s/^0  *\(.*\)$/\1/
25983 +           p
25984 +       }
25985 +    }'
25986 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25987  # Check for a 64-bit object if we didn't find anything.
25988 -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; }
25989 -}'`; fi
25990 +if test -z "$aix_libpath"; then
25991 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25992 +fi
25993  else
25994 -  echo "$as_me: failed program was:" >&5
25995 +  $as_echo "$as_me: failed program was:" >&5
25996  sed 's/^/| /' conftest.$ac_ext >&5
25997  
25998 +
25999  fi
26000 -rm -f conftest.err conftest.$ac_objext \
26001 +
26002 +rm -rf conftest.dSYM
26003 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26004        conftest$ac_exeext conftest.$ac_ext
26005  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26006  
26007         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
26008 -       archive_expsym_cmds_GCJ="\$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"
26009 +       archive_expsym_cmds_GCJ="\$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"
26010         else
26011         if test "$host_cpu" = ia64; then
26012           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
26013           allow_undefined_flag_GCJ="-z nodefs"
26014 -         archive_expsym_cmds_GCJ="\$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"
26015 +         archive_expsym_cmds_GCJ="\$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"
26016         else
26017          # Determine the default libpath from the value encoded in an empty executable.
26018          cat >conftest.$ac_ext <<_ACEOF
26019 @@ -16310,39 +17846,48 @@ main ()
26020  }
26021  _ACEOF
26022  rm -f conftest.$ac_objext conftest$ac_exeext
26023 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26024 -  (eval $ac_link) 2>conftest.er1
26025 +if { (ac_try="$ac_link"
26026 +case "(($ac_try" in
26027 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028 +  *) ac_try_echo=$ac_try;;
26029 +esac
26030 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26031 +$as_echo "$ac_try_echo") >&5
26032 +  (eval "$ac_link") 2>conftest.er1
26033    ac_status=$?
26034    grep -v '^ *+' conftest.er1 >conftest.err
26035    rm -f conftest.er1
26036    cat conftest.err >&5
26037 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 -  (exit $ac_status); } &&
26039 -        { ac_try='test -z "$ac_c_werror_flag"
26040 -                        || test ! -s conftest.err'
26041 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 -  (eval $ac_try) 2>&5
26043 -  ac_status=$?
26044 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 -  (exit $ac_status); }; } &&
26046 -        { ac_try='test -s conftest$ac_exeext'
26047 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 -  (eval $ac_try) 2>&5
26049 -  ac_status=$?
26050 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 -  (exit $ac_status); }; }; then
26052 -
26053 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26054 -}'`
26055 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 +  (exit $ac_status); } && {
26057 +        test -z "$ac_c_werror_flag" ||
26058 +        test ! -s conftest.err
26059 +       } && test -s conftest$ac_exeext && {
26060 +        test "$cross_compiling" = yes ||
26061 +        $as_test_x conftest$ac_exeext
26062 +       }; then
26063 +
26064 +lt_aix_libpath_sed='
26065 +    /Import File Strings/,/^$/ {
26066 +       /^0/ {
26067 +           s/^0  *\(.*\)$/\1/
26068 +           p
26069 +       }
26070 +    }'
26071 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26072  # Check for a 64-bit object if we didn't find anything.
26073 -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; }
26074 -}'`; fi
26075 +if test -z "$aix_libpath"; then
26076 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26077 +fi
26078  else
26079 -  echo "$as_me: failed program was:" >&5
26080 +  $as_echo "$as_me: failed program was:" >&5
26081  sed 's/^/| /' conftest.$ac_ext >&5
26082  
26083 +
26084  fi
26085 -rm -f conftest.err conftest.$ac_objext \
26086 +
26087 +rm -rf conftest.dSYM
26088 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26089        conftest$ac_exeext conftest.$ac_ext
26090  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26091  
26092 @@ -16351,13 +17896,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26093           # -berok will link without error, but may produce a broken library.
26094           no_undefined_flag_GCJ=' ${wl}-bernotok'
26095           allow_undefined_flag_GCJ=' ${wl}-berok'
26096 -         # -bexpall does not export symbols beginning with underscore (_)
26097 -         always_export_symbols_GCJ=yes
26098           # Exported symbols can be pulled into shared objects from archives
26099 -         whole_archive_flag_spec_GCJ=' '
26100 +         whole_archive_flag_spec_GCJ='$convenience'
26101           archive_cmds_need_lc_GCJ=yes
26102 -         # This is similar to how AIX traditionally builds it's shared libraries.
26103 -         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26104 +         # This is similar to how AIX traditionally builds its shared libraries.
26105 +         archive_expsym_cmds_GCJ="\$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'
26106         fi
26107        fi
26108        ;;
26109 @@ -16370,7 +17913,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26110        ld_shlibs_GCJ=no
26111        ;;
26112  
26113 -    bsdi4*)
26114 +    bsdi[45]*)
26115        export_dynamic_flag_spec_GCJ=-rdynamic
26116        ;;
26117  
26118 @@ -16390,58 +17933,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26119        # The linker will automatically build a .lib file if we build a DLL.
26120        old_archive_From_new_cmds_GCJ='true'
26121        # FIXME: Should let the user specify the lib program.
26122 -      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
26123 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
26124 +      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
26125 +      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
26126        enable_shared_with_static_runtimes_GCJ=yes
26127        ;;
26128  
26129      darwin* | rhapsody*)
26130 -    if test "$GXX" = yes ; then
26131 -      archive_cmds_need_lc_GCJ=no
26132 -      case "$host_os" in
26133 -      rhapsody* | darwin1.[012])
26134 -       allow_undefined_flag_GCJ='-undefined suppress'
26135 -       ;;
26136 -      *) # Darwin 1.3 on
26137 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26138 -       allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
26139 -      else
26140 -        case ${MACOSX_DEPLOYMENT_TARGET} in
26141 -          10.[012])
26142 -            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
26143 -            ;;
26144 -          10.*)
26145 -            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
26146 -            ;;
26147 -        esac
26148 -      fi
26149 -       ;;
26150 +      case $host_os in
26151 +        rhapsody* | darwin1.[012])
26152 +         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
26153 +         ;;
26154 +       *) # Darwin 1.3 on
26155 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26156 +           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26157 +         else
26158 +           case ${MACOSX_DEPLOYMENT_TARGET} in
26159 +             10.[012])
26160 +               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26161 +               ;;
26162 +             10.*)
26163 +               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
26164 +               ;;
26165 +           esac
26166 +         fi
26167 +         ;;
26168        esac
26169 -       lt_int_apple_cc_single_mod=no
26170 -       output_verbose_link_cmd='echo'
26171 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
26172 -         lt_int_apple_cc_single_mod=yes
26173 -       fi
26174 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
26175 -         archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26176 -       else
26177 -        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26178 -      fi
26179 -      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26180 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
26181 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
26182 -          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26183 -        else
26184 -          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26185 -        fi
26186 -          module_expsym_cmds_GCJ='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}'
26187 +      archive_cmds_need_lc_GCJ=no
26188        hardcode_direct_GCJ=no
26189        hardcode_automatic_GCJ=yes
26190        hardcode_shlibpath_var_GCJ=unsupported
26191 -      whole_archive_flag_spec_GCJ='-all_load $convenience'
26192 +      whole_archive_flag_spec_GCJ=''
26193        link_all_deplibs_GCJ=yes
26194 +    if test "$GCC" = yes ; then
26195 +       output_verbose_link_cmd='echo'
26196 +        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
26197 +        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
26198 +        archive_expsym_cmds_GCJ="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}"
26199 +        module_expsym_cmds_GCJ="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}"
26200      else
26201 -      ld_shlibs_GCJ=no
26202 +      case $cc_basename in
26203 +        xlc*)
26204 +         output_verbose_link_cmd='echo'
26205 +         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
26206 +         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26207 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26208 +         archive_expsym_cmds_GCJ='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}'
26209 +          module_expsym_cmds_GCJ='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}'
26210 +          ;;
26211 +       *)
26212 +         ld_shlibs_GCJ=no
26213 +          ;;
26214 +      esac
26215      fi
26216        ;;
26217  
26218 @@ -16475,7 +18017,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26219        ;;
26220  
26221      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26222 -    freebsd* | kfreebsd*-gnu)
26223 +    freebsd* | dragonfly*)
26224        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26225        hardcode_libdir_flag_spec_GCJ='-R$libdir'
26226        hardcode_direct_GCJ=yes
26227 @@ -16498,47 +18040,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26228        export_dynamic_flag_spec_GCJ='${wl}-E'
26229        ;;
26230  
26231 -    hpux10* | hpux11*)
26232 +    hpux10*)
26233        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26234 -       case "$host_cpu" in
26235 -       hppa*64*|ia64*)
26236 +       archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26237 +      else
26238 +       archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26239 +      fi
26240 +      if test "$with_gnu_ld" = no; then
26241 +       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26242 +       hardcode_libdir_separator_GCJ=:
26243 +
26244 +       hardcode_direct_GCJ=yes
26245 +       export_dynamic_flag_spec_GCJ='${wl}-E'
26246 +
26247 +       # hardcode_minus_L: Not really in the search PATH,
26248 +       # but as the default location of the library.
26249 +       hardcode_minus_L_GCJ=yes
26250 +      fi
26251 +      ;;
26252 +
26253 +    hpux11*)
26254 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26255 +       case $host_cpu in
26256 +       hppa*64*)
26257           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26258           ;;
26259 +       ia64*)
26260 +         archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26261 +         ;;
26262         *)
26263           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26264           ;;
26265         esac
26266        else
26267 -       case "$host_cpu" in
26268 -       hppa*64*|ia64*)
26269 -         archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
26270 +       case $host_cpu in
26271 +       hppa*64*)
26272 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26273 +         ;;
26274 +       ia64*)
26275 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26276           ;;
26277         *)
26278 -         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26279 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26280           ;;
26281         esac
26282        fi
26283        if test "$with_gnu_ld" = no; then
26284 -       case "$host_cpu" in
26285 -       hppa*64*)
26286 -         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26287 +       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26288 +       hardcode_libdir_separator_GCJ=:
26289 +
26290 +       case $host_cpu in
26291 +       hppa*64*|ia64*)
26292           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
26293 -         hardcode_libdir_separator_GCJ=:
26294 -         hardcode_direct_GCJ=no
26295 -         hardcode_shlibpath_var_GCJ=no
26296 -         ;;
26297 -       ia64*)
26298 -         hardcode_libdir_flag_spec_GCJ='-L$libdir'
26299           hardcode_direct_GCJ=no
26300           hardcode_shlibpath_var_GCJ=no
26301 -
26302 -         # hardcode_minus_L: Not really in the search PATH,
26303 -         # but as the default location of the library.
26304 -         hardcode_minus_L_GCJ=yes
26305           ;;
26306         *)
26307 -         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26308 -         hardcode_libdir_separator_GCJ=:
26309           hardcode_direct_GCJ=yes
26310           export_dynamic_flag_spec_GCJ='${wl}-E'
26311  
26312 @@ -16562,7 +18119,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26313        link_all_deplibs_GCJ=yes
26314        ;;
26315  
26316 -    netbsd*)
26317 +    netbsd* | netbsdelf*-gnu)
26318        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26319         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
26320        else
26321 @@ -16582,23 +18139,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26322        ;;
26323  
26324      openbsd*)
26325 -      hardcode_direct_GCJ=yes
26326 -      hardcode_shlibpath_var_GCJ=no
26327 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26328 -       archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26329 -       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26330 -       export_dynamic_flag_spec_GCJ='${wl}-E'
26331 +      if test -f /usr/libexec/ld.so; then
26332 +       hardcode_direct_GCJ=yes
26333 +       hardcode_shlibpath_var_GCJ=no
26334 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26335 +         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26336 +         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26337 +         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26338 +         export_dynamic_flag_spec_GCJ='${wl}-E'
26339 +       else
26340 +         case $host_os in
26341 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26342 +            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26343 +            hardcode_libdir_flag_spec_GCJ='-R$libdir'
26344 +            ;;
26345 +          *)
26346 +            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26347 +            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26348 +            ;;
26349 +         esac
26350 +        fi
26351        else
26352 -       case $host_os in
26353 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26354 -          archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26355 -          hardcode_libdir_flag_spec_GCJ='-R$libdir'
26356 -          ;;
26357 -        *)
26358 -          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26359 -          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26360 -          ;;
26361 -       esac
26362 +       ld_shlibs_GCJ=no
26363        fi
26364        ;;
26365  
26366 @@ -16631,7 +18193,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26367         allow_undefined_flag_GCJ=' -expect_unresolved \*'
26368         archive_cmds_GCJ='$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'
26369         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
26370 -       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
26371 +       $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'
26372  
26373         # Both c and cxx compiler support -rpath directly
26374         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
26375 @@ -16639,21 +18201,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26376        hardcode_libdir_separator_GCJ=:
26377        ;;
26378  
26379 -    sco3.2v5*)
26380 -      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26381 -      hardcode_shlibpath_var_GCJ=no
26382 -      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26383 -      runpath_var=LD_RUN_PATH
26384 -      hardcode_runpath_var=yes
26385 -      ;;
26386 -
26387      solaris*)
26388        no_undefined_flag_GCJ=' -z text'
26389        if test "$GCC" = yes; then
26390 +       wlarc='${wl}'
26391         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26392         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26393           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26394        else
26395 +       wlarc=''
26396         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26397         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26398         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26399 @@ -16662,8 +18218,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26400        hardcode_shlibpath_var_GCJ=no
26401        case $host_os in
26402        solaris2.[0-5] | solaris2.[0-5].*) ;;
26403 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
26404 -       whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
26405 +      *)
26406 +       # The compiler driver will combine and reorder linker options,
26407 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
26408 +       # but is careful enough not to reorder.
26409 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
26410 +       if test "$GCC" = yes; then
26411 +         whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
26412 +       else
26413 +         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
26414 +       fi
26415 +       ;;
26416        esac
26417        link_all_deplibs_GCJ=yes
26418        ;;
26419 @@ -16720,36 +18285,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26420        fi
26421        ;;
26422  
26423 -    sysv4.2uw2*)
26424 -      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26425 -      hardcode_direct_GCJ=yes
26426 -      hardcode_minus_L_GCJ=no
26427 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26428 +      no_undefined_flag_GCJ='${wl}-z,text'
26429 +      archive_cmds_need_lc_GCJ=no
26430        hardcode_shlibpath_var_GCJ=no
26431 -      hardcode_runpath_var=yes
26432 -      runpath_var=LD_RUN_PATH
26433 -      ;;
26434 +      runpath_var='LD_RUN_PATH'
26435  
26436 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
26437 -      no_undefined_flag_GCJ='${wl}-z ${wl}text'
26438        if test "$GCC" = yes; then
26439 -       archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26440 +       archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26441 +       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26442        else
26443 -       archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26444 +       archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26445 +       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26446        fi
26447 -      runpath_var='LD_RUN_PATH'
26448 -      hardcode_shlibpath_var_GCJ=no
26449        ;;
26450  
26451 -    sysv5*)
26452 -      no_undefined_flag_GCJ=' -z text'
26453 -      # $CC -shared without GNU ld will not create a library from C++
26454 -      # object files and a static libstdc++, better avoid it by now
26455 -      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26456 -      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26457 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26458 -      hardcode_libdir_flag_spec_GCJ=
26459 +    sysv5* | sco3.2v5* | sco5v6*)
26460 +      # Note: We can NOT use -z defs as we might desire, because we do not
26461 +      # link with -lc, and that would cause any symbols used from libc to
26462 +      # always be unresolved, which means just about no library would
26463 +      # ever link correctly.  If we're not using GNU ld we use -z text
26464 +      # though, which does catch some bad symbols but isn't as heavy-handed
26465 +      # as -z defs.
26466 +      no_undefined_flag_GCJ='${wl}-z,text'
26467 +      allow_undefined_flag_GCJ='${wl}-z,nodefs'
26468 +      archive_cmds_need_lc_GCJ=no
26469        hardcode_shlibpath_var_GCJ=no
26470 +      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
26471 +      hardcode_libdir_separator_GCJ=':'
26472 +      link_all_deplibs_GCJ=yes
26473 +      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26474        runpath_var='LD_RUN_PATH'
26475 +
26476 +      if test "$GCC" = yes; then
26477 +       archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26478 +       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26479 +      else
26480 +       archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26481 +       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26482 +      fi
26483        ;;
26484  
26485      uts4*)
26486 @@ -16764,15 +18338,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26487      esac
26488    fi
26489  
26490 -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26491 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
26492 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26493 +$as_echo "$ld_shlibs_GCJ" >&6; }
26494  test "$ld_shlibs_GCJ" = no && can_build_shared=no
26495  
26496 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26497 -if test "$GCC" = yes; then
26498 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26499 -fi
26500 -
26501  #
26502  # Do we need to explicitly link libc?
26503  #
26504 @@ -16790,21 +18359,22 @@ x|xyes)
26505        # Test whether the compiler implicitly links with -lc since on some
26506        # systems, -lgcc has to come before -lc. If gcc already passes -lc
26507        # to ld, don't add -lc before -lgcc.
26508 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26509 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26510 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26511 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26512        $rm conftest*
26513 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26514 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26515  
26516        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26517    (eval $ac_compile) 2>&5
26518    ac_status=$?
26519 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521    (exit $ac_status); } 2>conftest.err; then
26522          soname=conftest
26523          lib=conftest
26524          libobjs=conftest.$ac_objext
26525          deplibs=
26526          wl=$lt_prog_compiler_wl_GCJ
26527 +       pic_flag=$lt_prog_compiler_pic_GCJ
26528          compiler_flags=-v
26529          linker_flags=-v
26530          verstring=
26531 @@ -16815,7 +18385,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
26532          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26533    (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26534    ac_status=$?
26535 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537    (exit $ac_status); }
26538          then
26539           archive_cmds_need_lc_GCJ=no
26540 @@ -16827,16 +18397,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
26541          cat conftest.err 1>&5
26542        fi
26543        $rm conftest*
26544 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26545 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
26546 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26547 +$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
26548        ;;
26549      esac
26550    fi
26551    ;;
26552  esac
26553  
26554 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26555 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26556 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26557 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
26558  library_names_spec=
26559  libname_spec='lib$name'
26560  soname_spec=
26561 @@ -16850,20 +18420,7 @@ shlibpath_overrides_runpath=unknown
26562  version_type=none
26563  dynamic_linker="$host_os ld.so"
26564  sys_lib_dlsearch_path_spec="/lib /usr/lib"
26565 -if test "$GCC" = yes; then
26566 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26567 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26568 -    # if the path contains ";" then we assume it to be the separator
26569 -    # otherwise default to the standard path separator (i.e. ":") - it is
26570 -    # assumed that no part of a normal pathname contains ";" but that should
26571 -    # okay in the real world where ";" in dirpaths is itself problematic.
26572 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26573 -  else
26574 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26575 -  fi
26576 -else
26577 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26578 -fi
26579 +
26580  need_lib_prefix=unknown
26581  hardcode_into_libs=no
26582  
26583 @@ -16881,7 +18438,7 @@ aix3*)
26584    soname_spec='${libname}${release}${shared_ext}$major'
26585    ;;
26586  
26587 -aix4* | aix5*)
26588 +aix[4-9]*)
26589    version_type=linux
26590    need_lib_prefix=no
26591    need_version=no
26592 @@ -16937,7 +18494,7 @@ beos*)
26593    shlibpath_var=LIBRARY_PATH
26594    ;;
26595  
26596 -bsdi4*)
26597 +bsdi[45]*)
26598    version_type=linux
26599    need_version=no
26600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26601 @@ -16965,7 +18522,8 @@ cygwin* | mingw* | pw32*)
26602        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26603        dldir=$destdir/`dirname \$dlpath`~
26604        test -d \$dldir || mkdir -p \$dldir~
26605 -      $install_prog $dir/$dlname \$dldir/$dlname'
26606 +      $install_prog $dir/$dlname \$dldir/$dlname~
26607 +      chmod a+x \$dldir/$dlname'
26608      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26609        dlpath=$dir/\$dldll~
26610         $rm \$dlpath'
26611 @@ -16995,7 +18553,7 @@ cygwin* | mingw* | pw32*)
26612        ;;
26613      pw32*)
26614        # pw32 DLLs use 'pw' prefix rather than 'lib'
26615 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
26616 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26617        ;;
26618      esac
26619      ;;
26620 @@ -17018,13 +18576,8 @@ darwin* | rhapsody*)
26621    soname_spec='${libname}${release}${major}$shared_ext'
26622    shlibpath_overrides_runpath=yes
26623    shlibpath_var=DYLD_LIBRARY_PATH
26624 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
26625 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26626 -  if test "$GCC" = yes; then
26627 -    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"`
26628 -  else
26629 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26630 -  fi
26631 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26632 +
26633    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26634    ;;
26635  
26636 @@ -17041,20 +18594,17 @@ freebsd1*)
26637    dynamic_linker=no
26638    ;;
26639  
26640 -kfreebsd*-gnu)
26641 -  version_type=linux
26642 -  need_lib_prefix=no
26643 -  need_version=no
26644 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26645 -  soname_spec='${libname}${release}${shared_ext}$major'
26646 -  shlibpath_var=LD_LIBRARY_PATH
26647 -  shlibpath_overrides_runpath=no
26648 -  hardcode_into_libs=yes
26649 -  dynamic_linker='GNU ld.so'
26650 -  ;;
26651 -
26652 -freebsd*)
26653 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
26654 +freebsd* | dragonfly*)
26655 +  # DragonFly does not have aout.  When/if they implement a new
26656 +  # versioning mechanism, adjust this.
26657 +  if test -x /usr/bin/objformat; then
26658 +    objformat=`/usr/bin/objformat`
26659 +  else
26660 +    case $host_os in
26661 +    freebsd[123]*) objformat=aout ;;
26662 +    *) objformat=elf ;;
26663 +    esac
26664 +  fi
26665    version_type=freebsd-$objformat
26666    case $version_type in
26667      freebsd-elf*)
26668 @@ -17072,14 +18622,19 @@ freebsd*)
26669    freebsd2*)
26670      shlibpath_overrides_runpath=yes
26671      ;;
26672 -  freebsd3.01* | freebsdelf3.01*)
26673 +  freebsd3.[01]* | freebsdelf3.[01]*)
26674      shlibpath_overrides_runpath=yes
26675      hardcode_into_libs=yes
26676      ;;
26677 -  *) # from 3.2 on
26678 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26679 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26680      shlibpath_overrides_runpath=no
26681      hardcode_into_libs=yes
26682      ;;
26683 +  *) # from 4.6 on, and DragonFly
26684 +    shlibpath_overrides_runpath=yes
26685 +    hardcode_into_libs=yes
26686 +    ;;
26687    esac
26688    ;;
26689  
26690 @@ -17099,7 +18654,7 @@ hpux9* | hpux10* | hpux11*)
26691    version_type=sunos
26692    need_lib_prefix=no
26693    need_version=no
26694 -  case "$host_cpu" in
26695 +  case $host_cpu in
26696    ia64*)
26697      shrext_cmds='.so'
26698      hardcode_into_libs=yes
26699 @@ -17139,6 +18694,18 @@ hpux9* | hpux10* | hpux11*)
26700    postinstall_cmds='chmod 555 $lib'
26701    ;;
26702  
26703 +interix[3-9]*)
26704 +  version_type=linux
26705 +  need_lib_prefix=no
26706 +  need_version=no
26707 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26708 +  soname_spec='${libname}${release}${shared_ext}$major'
26709 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26710 +  shlibpath_var=LD_LIBRARY_PATH
26711 +  shlibpath_overrides_runpath=no
26712 +  hardcode_into_libs=yes
26713 +  ;;
26714 +
26715  irix5* | irix6* | nonstopux*)
26716    case $host_os in
26717      nonstopux*) version_type=nonstopux ;;
26718 @@ -17182,7 +18749,7 @@ linux*oldld* | linux*aout* | linux*coff*)
26719    ;;
26720  
26721  # This must be Linux ELF.
26722 -linux*)
26723 +linux* | k*bsd*-gnu)
26724    version_type=linux
26725    need_lib_prefix=no
26726    need_version=no
26727 @@ -17196,31 +18763,10 @@ linux*)
26728    # before this can be enabled.
26729    hardcode_into_libs=yes
26730  
26731 -  # find out which ABI we are using
26732 -  libsuff=
26733 -  case "$host_cpu" in
26734 -  x86_64*|s390x*|powerpc64*)
26735 -    echo '#line 17203 "configure"' > conftest.$ac_ext
26736 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26737 -  (eval $ac_compile) 2>&5
26738 -  ac_status=$?
26739 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 -  (exit $ac_status); }; then
26741 -      case `/usr/bin/file conftest.$ac_objext` in
26742 -      *64-bit*)
26743 -        libsuff=64
26744 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
26745 -        ;;
26746 -      esac
26747 -    fi
26748 -    rm -rf conftest*
26749 -    ;;
26750 -  esac
26751 -
26752    # Append ld.so.conf contents to the search path
26753    if test -f /etc/ld.so.conf; then
26754 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
26755 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
26756 +    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' ' '`
26757 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26758    fi
26759  
26760    # We used to test for /lib/ld.so.1 and disable shared libraries on
26761 @@ -17232,7 +18778,7 @@ linux*)
26762    dynamic_linker='GNU/Linux ld.so'
26763    ;;
26764  
26765 -knetbsd*-gnu)
26766 +netbsdelf*-gnu)
26767    version_type=linux
26768    need_lib_prefix=no
26769    need_version=no
26770 @@ -17241,7 +18787,7 @@ knetbsd*-gnu)
26771    shlibpath_var=LD_LIBRARY_PATH
26772    shlibpath_overrides_runpath=no
26773    hardcode_into_libs=yes
26774 -  dynamic_linker='GNU ld.so'
26775 +  dynamic_linker='NetBSD ld.elf_so'
26776    ;;
26777  
26778  netbsd*)
26779 @@ -17281,8 +18827,13 @@ nto-qnx*)
26780  
26781  openbsd*)
26782    version_type=sunos
26783 +  sys_lib_dlsearch_path_spec="/usr/lib"
26784    need_lib_prefix=no
26785 -  need_version=yes
26786 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26787 +  case $host_os in
26788 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26789 +    *)                         need_version=no  ;;
26790 +  esac
26791    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26792    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26793    shlibpath_var=LD_LIBRARY_PATH
26794 @@ -17320,11 +18871,8 @@ osf3* | osf4* | osf5*)
26795    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26796    ;;
26797  
26798 -sco3.2v5*)
26799 -  version_type=osf
26800 -  soname_spec='${libname}${release}${shared_ext}$major'
26801 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26802 -  shlibpath_var=LD_LIBRARY_PATH
26803 +rdos*)
26804 +  dynamic_linker=no
26805    ;;
26806  
26807  solaris*)
26808 @@ -17352,7 +18900,7 @@ sunos4*)
26809    need_version=yes
26810    ;;
26811  
26812 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26813 +sysv4 | sysv4.3*)
26814    version_type=linux
26815    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26816    soname_spec='${libname}${release}${shared_ext}$major'
26817 @@ -17385,6 +18933,29 @@ sysv4*MP*)
26818    fi
26819    ;;
26820  
26821 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26822 +  version_type=freebsd-elf
26823 +  need_lib_prefix=no
26824 +  need_version=no
26825 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26826 +  soname_spec='${libname}${release}${shared_ext}$major'
26827 +  shlibpath_var=LD_LIBRARY_PATH
26828 +  hardcode_into_libs=yes
26829 +  if test "$with_gnu_ld" = yes; then
26830 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26831 +    shlibpath_overrides_runpath=no
26832 +  else
26833 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26834 +    shlibpath_overrides_runpath=yes
26835 +    case $host_os in
26836 +      sco3.2v5*)
26837 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26838 +       ;;
26839 +    esac
26840 +  fi
26841 +  sys_lib_dlsearch_path_spec='/usr/lib'
26842 +  ;;
26843 +
26844  uts4*)
26845    version_type=linux
26846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26847 @@ -17396,16 +18967,36 @@ uts4*)
26848    dynamic_linker=no
26849    ;;
26850  esac
26851 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26852 -echo "${ECHO_T}$dynamic_linker" >&6
26853 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26854 +$as_echo "$dynamic_linker" >&6; }
26855  test "$dynamic_linker" = no && can_build_shared=no
26856  
26857 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26858 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26859 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
26860 +  $as_echo_n "(cached) " >&6
26861 +else
26862 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
26863 +fi
26864 +
26865 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
26866 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
26867 +  $as_echo_n "(cached) " >&6
26868 +else
26869 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
26870 +fi
26871 +
26872 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
26873 +
26874 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26875 +if test "$GCC" = yes; then
26876 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26877 +fi
26878 +
26879 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26880 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
26881  hardcode_action_GCJ=
26882  if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26883 -   test -n "$runpath_var GCJ" || \
26884 -   test "X$hardcode_automatic_GCJ"="Xyes" ; then
26885 +   test -n "$runpath_var_GCJ" || \
26886 +   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26887  
26888    # We can hardcode non-existant directories.
26889    if test "$hardcode_direct_GCJ" != no &&
26890 @@ -17425,8 +19016,8 @@ else
26891    # directories.
26892    hardcode_action_GCJ=unsupported
26893  fi
26894 -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26895 -echo "${ECHO_T}$hardcode_action_GCJ" >&6
26896 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26897 +$as_echo "$hardcode_action_GCJ" >&6; }
26898  
26899  if test "$hardcode_action_GCJ" = relink; then
26900    # Fast installation is not supported
26901 @@ -17437,841 +19028,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
26902    enable_fast_install=needless
26903  fi
26904  
26905 -striplib=
26906 -old_striplib=
26907 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26908 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26909 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26910 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26911 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26912 -  echo "$as_me:$LINENO: result: yes" >&5
26913 -echo "${ECHO_T}yes" >&6
26914 -else
26915 -# FIXME - insert some real tests, host_os isn't really good enough
26916 -  case $host_os in
26917 -   darwin*)
26918 -       if test -n "$STRIP" ; then
26919 -         striplib="$STRIP -x"
26920 -         echo "$as_me:$LINENO: result: yes" >&5
26921 -echo "${ECHO_T}yes" >&6
26922 -       else
26923 -  echo "$as_me:$LINENO: result: no" >&5
26924 -echo "${ECHO_T}no" >&6
26925 -fi
26926 -       ;;
26927 -   *)
26928 -  echo "$as_me:$LINENO: result: no" >&5
26929 -echo "${ECHO_T}no" >&6
26930 -    ;;
26931 -  esac
26932 -fi
26933 -
26934 -if test "x$enable_dlopen" != xyes; then
26935 -  enable_dlopen=unknown
26936 -  enable_dlopen_self=unknown
26937 -  enable_dlopen_self_static=unknown
26938 -else
26939 -  lt_cv_dlopen=no
26940 -  lt_cv_dlopen_libs=
26941 -
26942 -  case $host_os in
26943 -  beos*)
26944 -    lt_cv_dlopen="load_add_on"
26945 -    lt_cv_dlopen_libs=
26946 -    lt_cv_dlopen_self=yes
26947 -    ;;
26948 -
26949 -  mingw* | pw32*)
26950 -    lt_cv_dlopen="LoadLibrary"
26951 -    lt_cv_dlopen_libs=
26952 -   ;;
26953 -
26954 -  cygwin*)
26955 -    lt_cv_dlopen="dlopen"
26956 -    lt_cv_dlopen_libs=
26957 -   ;;
26958 -
26959 -  darwin*)
26960 -  # if libdl is installed we need to link against it
26961 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26962 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26963 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26964 -  echo $ECHO_N "(cached) $ECHO_C" >&6
26965 -else
26966 -  ac_check_lib_save_LIBS=$LIBS
26967 -LIBS="-ldl  $LIBS"
26968 -cat >conftest.$ac_ext <<_ACEOF
26969 -/* confdefs.h.  */
26970 -_ACEOF
26971 -cat confdefs.h >>conftest.$ac_ext
26972 -cat >>conftest.$ac_ext <<_ACEOF
26973 -/* end confdefs.h.  */
26974 -
26975 -/* Override any gcc2 internal prototype to avoid an error.  */
26976 -#ifdef __cplusplus
26977 -extern "C"
26978 -#endif
26979 -/* We use char because int might match the return type of a gcc2
26980 -   builtin and then its argument prototype would still apply.  */
26981 -char dlopen ();
26982 -int
26983 -main ()
26984 -{
26985 -dlopen ();
26986 -  ;
26987 -  return 0;
26988 -}
26989 -_ACEOF
26990 -rm -f conftest.$ac_objext conftest$ac_exeext
26991 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26992 -  (eval $ac_link) 2>conftest.er1
26993 -  ac_status=$?
26994 -  grep -v '^ *+' conftest.er1 >conftest.err
26995 -  rm -f conftest.er1
26996 -  cat conftest.err >&5
26997 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 -  (exit $ac_status); } &&
26999 -        { ac_try='test -z "$ac_c_werror_flag"
27000 -                        || test ! -s conftest.err'
27001 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27002 -  (eval $ac_try) 2>&5
27003 -  ac_status=$?
27004 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 -  (exit $ac_status); }; } &&
27006 -        { ac_try='test -s conftest$ac_exeext'
27007 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27008 -  (eval $ac_try) 2>&5
27009 -  ac_status=$?
27010 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 -  (exit $ac_status); }; }; then
27012 -  ac_cv_lib_dl_dlopen=yes
27013 -else
27014 -  echo "$as_me: failed program was:" >&5
27015 -sed 's/^/| /' conftest.$ac_ext >&5
27016 -
27017 -ac_cv_lib_dl_dlopen=no
27018 -fi
27019 -rm -f conftest.err conftest.$ac_objext \
27020 -      conftest$ac_exeext conftest.$ac_ext
27021 -LIBS=$ac_check_lib_save_LIBS
27022 -fi
27023 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27024 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27025 -if test $ac_cv_lib_dl_dlopen = yes; then
27026 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27027 -else
27028 -
27029 -    lt_cv_dlopen="dyld"
27030 -    lt_cv_dlopen_libs=
27031 -    lt_cv_dlopen_self=yes
27032 -
27033 -fi
27034 -
27035 -   ;;
27036 -
27037 -  *)
27038 -    echo "$as_me:$LINENO: checking for shl_load" >&5
27039 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
27040 -if test "${ac_cv_func_shl_load+set}" = set; then
27041 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27042 -else
27043 -  cat >conftest.$ac_ext <<_ACEOF
27044 -/* confdefs.h.  */
27045 -_ACEOF
27046 -cat confdefs.h >>conftest.$ac_ext
27047 -cat >>conftest.$ac_ext <<_ACEOF
27048 -/* end confdefs.h.  */
27049 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
27050 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27051 -#define shl_load innocuous_shl_load
27052 -
27053 -/* System header to define __stub macros and hopefully few prototypes,
27054 -    which can conflict with char shl_load (); below.
27055 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27056 -    <limits.h> exists even on freestanding compilers.  */
27057 -
27058 -#ifdef __STDC__
27059 -# include <limits.h>
27060 -#else
27061 -# include <assert.h>
27062 -#endif
27063 -
27064 -#undef shl_load
27065 -
27066 -/* Override any gcc2 internal prototype to avoid an error.  */
27067 -#ifdef __cplusplus
27068 -extern "C"
27069 -{
27070 -#endif
27071 -/* We use char because int might match the return type of a gcc2
27072 -   builtin and then its argument prototype would still apply.  */
27073 -char shl_load ();
27074 -/* The GNU C library defines this for functions which it implements
27075 -    to always fail with ENOSYS.  Some functions are actually named
27076 -    something starting with __ and the normal name is an alias.  */
27077 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
27078 -choke me
27079 -#else
27080 -char (*f) () = shl_load;
27081 -#endif
27082 -#ifdef __cplusplus
27083 -}
27084 -#endif
27085 -
27086 -int
27087 -main ()
27088 -{
27089 -return f != shl_load;
27090 -  ;
27091 -  return 0;
27092 -}
27093 -_ACEOF
27094 -rm -f conftest.$ac_objext conftest$ac_exeext
27095 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27096 -  (eval $ac_link) 2>conftest.er1
27097 -  ac_status=$?
27098 -  grep -v '^ *+' conftest.er1 >conftest.err
27099 -  rm -f conftest.er1
27100 -  cat conftest.err >&5
27101 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 -  (exit $ac_status); } &&
27103 -        { ac_try='test -z "$ac_c_werror_flag"
27104 -                        || test ! -s conftest.err'
27105 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106 -  (eval $ac_try) 2>&5
27107 -  ac_status=$?
27108 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 -  (exit $ac_status); }; } &&
27110 -        { ac_try='test -s conftest$ac_exeext'
27111 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112 -  (eval $ac_try) 2>&5
27113 -  ac_status=$?
27114 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 -  (exit $ac_status); }; }; then
27116 -  ac_cv_func_shl_load=yes
27117 -else
27118 -  echo "$as_me: failed program was:" >&5
27119 -sed 's/^/| /' conftest.$ac_ext >&5
27120 -
27121 -ac_cv_func_shl_load=no
27122 -fi
27123 -rm -f conftest.err conftest.$ac_objext \
27124 -      conftest$ac_exeext conftest.$ac_ext
27125 -fi
27126 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
27127 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
27128 -if test $ac_cv_func_shl_load = yes; then
27129 -  lt_cv_dlopen="shl_load"
27130 -else
27131 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
27132 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
27133 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
27134 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27135 -else
27136 -  ac_check_lib_save_LIBS=$LIBS
27137 -LIBS="-ldld  $LIBS"
27138 -cat >conftest.$ac_ext <<_ACEOF
27139 -/* confdefs.h.  */
27140 -_ACEOF
27141 -cat confdefs.h >>conftest.$ac_ext
27142 -cat >>conftest.$ac_ext <<_ACEOF
27143 -/* end confdefs.h.  */
27144 -
27145 -/* Override any gcc2 internal prototype to avoid an error.  */
27146 -#ifdef __cplusplus
27147 -extern "C"
27148 -#endif
27149 -/* We use char because int might match the return type of a gcc2
27150 -   builtin and then its argument prototype would still apply.  */
27151 -char shl_load ();
27152 -int
27153 -main ()
27154 -{
27155 -shl_load ();
27156 -  ;
27157 -  return 0;
27158 -}
27159 -_ACEOF
27160 -rm -f conftest.$ac_objext conftest$ac_exeext
27161 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27162 -  (eval $ac_link) 2>conftest.er1
27163 -  ac_status=$?
27164 -  grep -v '^ *+' conftest.er1 >conftest.err
27165 -  rm -f conftest.er1
27166 -  cat conftest.err >&5
27167 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 -  (exit $ac_status); } &&
27169 -        { ac_try='test -z "$ac_c_werror_flag"
27170 -                        || test ! -s conftest.err'
27171 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27172 -  (eval $ac_try) 2>&5
27173 -  ac_status=$?
27174 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 -  (exit $ac_status); }; } &&
27176 -        { ac_try='test -s conftest$ac_exeext'
27177 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27178 -  (eval $ac_try) 2>&5
27179 -  ac_status=$?
27180 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 -  (exit $ac_status); }; }; then
27182 -  ac_cv_lib_dld_shl_load=yes
27183 -else
27184 -  echo "$as_me: failed program was:" >&5
27185 -sed 's/^/| /' conftest.$ac_ext >&5
27186 -
27187 -ac_cv_lib_dld_shl_load=no
27188 -fi
27189 -rm -f conftest.err conftest.$ac_objext \
27190 -      conftest$ac_exeext conftest.$ac_ext
27191 -LIBS=$ac_check_lib_save_LIBS
27192 -fi
27193 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
27194 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
27195 -if test $ac_cv_lib_dld_shl_load = yes; then
27196 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
27197 -else
27198 -  echo "$as_me:$LINENO: checking for dlopen" >&5
27199 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
27200 -if test "${ac_cv_func_dlopen+set}" = set; then
27201 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27202 -else
27203 -  cat >conftest.$ac_ext <<_ACEOF
27204 -/* confdefs.h.  */
27205 -_ACEOF
27206 -cat confdefs.h >>conftest.$ac_ext
27207 -cat >>conftest.$ac_ext <<_ACEOF
27208 -/* end confdefs.h.  */
27209 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
27210 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27211 -#define dlopen innocuous_dlopen
27212 -
27213 -/* System header to define __stub macros and hopefully few prototypes,
27214 -    which can conflict with char dlopen (); below.
27215 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27216 -    <limits.h> exists even on freestanding compilers.  */
27217 -
27218 -#ifdef __STDC__
27219 -# include <limits.h>
27220 -#else
27221 -# include <assert.h>
27222 -#endif
27223 -
27224 -#undef dlopen
27225 -
27226 -/* Override any gcc2 internal prototype to avoid an error.  */
27227 -#ifdef __cplusplus
27228 -extern "C"
27229 -{
27230 -#endif
27231 -/* We use char because int might match the return type of a gcc2
27232 -   builtin and then its argument prototype would still apply.  */
27233 -char dlopen ();
27234 -/* The GNU C library defines this for functions which it implements
27235 -    to always fail with ENOSYS.  Some functions are actually named
27236 -    something starting with __ and the normal name is an alias.  */
27237 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
27238 -choke me
27239 -#else
27240 -char (*f) () = dlopen;
27241 -#endif
27242 -#ifdef __cplusplus
27243 -}
27244 -#endif
27245 -
27246 -int
27247 -main ()
27248 -{
27249 -return f != dlopen;
27250 -  ;
27251 -  return 0;
27252 -}
27253 -_ACEOF
27254 -rm -f conftest.$ac_objext conftest$ac_exeext
27255 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27256 -  (eval $ac_link) 2>conftest.er1
27257 -  ac_status=$?
27258 -  grep -v '^ *+' conftest.er1 >conftest.err
27259 -  rm -f conftest.er1
27260 -  cat conftest.err >&5
27261 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 -  (exit $ac_status); } &&
27263 -        { ac_try='test -z "$ac_c_werror_flag"
27264 -                        || test ! -s conftest.err'
27265 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 -  (eval $ac_try) 2>&5
27267 -  ac_status=$?
27268 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 -  (exit $ac_status); }; } &&
27270 -        { ac_try='test -s conftest$ac_exeext'
27271 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 -  (eval $ac_try) 2>&5
27273 -  ac_status=$?
27274 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 -  (exit $ac_status); }; }; then
27276 -  ac_cv_func_dlopen=yes
27277 -else
27278 -  echo "$as_me: failed program was:" >&5
27279 -sed 's/^/| /' conftest.$ac_ext >&5
27280 -
27281 -ac_cv_func_dlopen=no
27282 -fi
27283 -rm -f conftest.err conftest.$ac_objext \
27284 -      conftest$ac_exeext conftest.$ac_ext
27285 -fi
27286 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27287 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
27288 -if test $ac_cv_func_dlopen = yes; then
27289 -  lt_cv_dlopen="dlopen"
27290 -else
27291 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27292 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27293 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27294 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27295 -else
27296 -  ac_check_lib_save_LIBS=$LIBS
27297 -LIBS="-ldl  $LIBS"
27298 -cat >conftest.$ac_ext <<_ACEOF
27299 -/* confdefs.h.  */
27300 -_ACEOF
27301 -cat confdefs.h >>conftest.$ac_ext
27302 -cat >>conftest.$ac_ext <<_ACEOF
27303 -/* end confdefs.h.  */
27304 -
27305 -/* Override any gcc2 internal prototype to avoid an error.  */
27306 -#ifdef __cplusplus
27307 -extern "C"
27308 -#endif
27309 -/* We use char because int might match the return type of a gcc2
27310 -   builtin and then its argument prototype would still apply.  */
27311 -char dlopen ();
27312 -int
27313 -main ()
27314 -{
27315 -dlopen ();
27316 -  ;
27317 -  return 0;
27318 -}
27319 -_ACEOF
27320 -rm -f conftest.$ac_objext conftest$ac_exeext
27321 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27322 -  (eval $ac_link) 2>conftest.er1
27323 -  ac_status=$?
27324 -  grep -v '^ *+' conftest.er1 >conftest.err
27325 -  rm -f conftest.er1
27326 -  cat conftest.err >&5
27327 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 -  (exit $ac_status); } &&
27329 -        { ac_try='test -z "$ac_c_werror_flag"
27330 -                        || test ! -s conftest.err'
27331 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 -  (eval $ac_try) 2>&5
27333 -  ac_status=$?
27334 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 -  (exit $ac_status); }; } &&
27336 -        { ac_try='test -s conftest$ac_exeext'
27337 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27338 -  (eval $ac_try) 2>&5
27339 -  ac_status=$?
27340 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341 -  (exit $ac_status); }; }; then
27342 -  ac_cv_lib_dl_dlopen=yes
27343 -else
27344 -  echo "$as_me: failed program was:" >&5
27345 -sed 's/^/| /' conftest.$ac_ext >&5
27346 -
27347 -ac_cv_lib_dl_dlopen=no
27348 -fi
27349 -rm -f conftest.err conftest.$ac_objext \
27350 -      conftest$ac_exeext conftest.$ac_ext
27351 -LIBS=$ac_check_lib_save_LIBS
27352 -fi
27353 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27354 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27355 -if test $ac_cv_lib_dl_dlopen = yes; then
27356 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27357 -else
27358 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27359 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
27360 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27361 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27362 -else
27363 -  ac_check_lib_save_LIBS=$LIBS
27364 -LIBS="-lsvld  $LIBS"
27365 -cat >conftest.$ac_ext <<_ACEOF
27366 -/* confdefs.h.  */
27367 -_ACEOF
27368 -cat confdefs.h >>conftest.$ac_ext
27369 -cat >>conftest.$ac_ext <<_ACEOF
27370 -/* end confdefs.h.  */
27371 -
27372 -/* Override any gcc2 internal prototype to avoid an error.  */
27373 -#ifdef __cplusplus
27374 -extern "C"
27375 -#endif
27376 -/* We use char because int might match the return type of a gcc2
27377 -   builtin and then its argument prototype would still apply.  */
27378 -char dlopen ();
27379 -int
27380 -main ()
27381 -{
27382 -dlopen ();
27383 -  ;
27384 -  return 0;
27385 -}
27386 -_ACEOF
27387 -rm -f conftest.$ac_objext conftest$ac_exeext
27388 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27389 -  (eval $ac_link) 2>conftest.er1
27390 -  ac_status=$?
27391 -  grep -v '^ *+' conftest.er1 >conftest.err
27392 -  rm -f conftest.er1
27393 -  cat conftest.err >&5
27394 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 -  (exit $ac_status); } &&
27396 -        { ac_try='test -z "$ac_c_werror_flag"
27397 -                        || test ! -s conftest.err'
27398 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 -  (eval $ac_try) 2>&5
27400 -  ac_status=$?
27401 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 -  (exit $ac_status); }; } &&
27403 -        { ac_try='test -s conftest$ac_exeext'
27404 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 -  (eval $ac_try) 2>&5
27406 -  ac_status=$?
27407 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 -  (exit $ac_status); }; }; then
27409 -  ac_cv_lib_svld_dlopen=yes
27410 -else
27411 -  echo "$as_me: failed program was:" >&5
27412 -sed 's/^/| /' conftest.$ac_ext >&5
27413 -
27414 -ac_cv_lib_svld_dlopen=no
27415 -fi
27416 -rm -f conftest.err conftest.$ac_objext \
27417 -      conftest$ac_exeext conftest.$ac_ext
27418 -LIBS=$ac_check_lib_save_LIBS
27419 -fi
27420 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27421 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
27422 -if test $ac_cv_lib_svld_dlopen = yes; then
27423 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27424 -else
27425 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27426 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
27427 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27428 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27429 -else
27430 -  ac_check_lib_save_LIBS=$LIBS
27431 -LIBS="-ldld  $LIBS"
27432 -cat >conftest.$ac_ext <<_ACEOF
27433 -/* confdefs.h.  */
27434 -_ACEOF
27435 -cat confdefs.h >>conftest.$ac_ext
27436 -cat >>conftest.$ac_ext <<_ACEOF
27437 -/* end confdefs.h.  */
27438 -
27439 -/* Override any gcc2 internal prototype to avoid an error.  */
27440 -#ifdef __cplusplus
27441 -extern "C"
27442 -#endif
27443 -/* We use char because int might match the return type of a gcc2
27444 -   builtin and then its argument prototype would still apply.  */
27445 -char dld_link ();
27446 -int
27447 -main ()
27448 -{
27449 -dld_link ();
27450 -  ;
27451 -  return 0;
27452 -}
27453 -_ACEOF
27454 -rm -f conftest.$ac_objext conftest$ac_exeext
27455 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27456 -  (eval $ac_link) 2>conftest.er1
27457 -  ac_status=$?
27458 -  grep -v '^ *+' conftest.er1 >conftest.err
27459 -  rm -f conftest.er1
27460 -  cat conftest.err >&5
27461 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 -  (exit $ac_status); } &&
27463 -        { ac_try='test -z "$ac_c_werror_flag"
27464 -                        || test ! -s conftest.err'
27465 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 -  (eval $ac_try) 2>&5
27467 -  ac_status=$?
27468 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 -  (exit $ac_status); }; } &&
27470 -        { ac_try='test -s conftest$ac_exeext'
27471 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 -  (eval $ac_try) 2>&5
27473 -  ac_status=$?
27474 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 -  (exit $ac_status); }; }; then
27476 -  ac_cv_lib_dld_dld_link=yes
27477 -else
27478 -  echo "$as_me: failed program was:" >&5
27479 -sed 's/^/| /' conftest.$ac_ext >&5
27480 -
27481 -ac_cv_lib_dld_dld_link=no
27482 -fi
27483 -rm -f conftest.err conftest.$ac_objext \
27484 -      conftest$ac_exeext conftest.$ac_ext
27485 -LIBS=$ac_check_lib_save_LIBS
27486 -fi
27487 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27488 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
27489 -if test $ac_cv_lib_dld_dld_link = yes; then
27490 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
27491 -fi
27492 -
27493 -
27494 -fi
27495 -
27496 -
27497 -fi
27498 -
27499 -
27500 -fi
27501 -
27502 -
27503 -fi
27504 -
27505 -
27506 -fi
27507 -
27508 -    ;;
27509 -  esac
27510 -
27511 -  if test "x$lt_cv_dlopen" != xno; then
27512 -    enable_dlopen=yes
27513 -  else
27514 -    enable_dlopen=no
27515 -  fi
27516 -
27517 -  case $lt_cv_dlopen in
27518 -  dlopen)
27519 -    save_CPPFLAGS="$CPPFLAGS"
27520 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27521 -
27522 -    save_LDFLAGS="$LDFLAGS"
27523 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27524 -
27525 -    save_LIBS="$LIBS"
27526 -    LIBS="$lt_cv_dlopen_libs $LIBS"
27527 -
27528 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27529 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
27530 -if test "${lt_cv_dlopen_self+set}" = set; then
27531 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27532 -else
27533 -         if test "$cross_compiling" = yes; then :
27534 -  lt_cv_dlopen_self=cross
27535 -else
27536 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27537 -  lt_status=$lt_dlunknown
27538 -  cat > conftest.$ac_ext <<EOF
27539 -#line 18074 "configure"
27540 -#include "confdefs.h"
27541 -
27542 -#if HAVE_DLFCN_H
27543 -#include <dlfcn.h>
27544 -#endif
27545 -
27546 -#include <stdio.h>
27547 -
27548 -#ifdef RTLD_GLOBAL
27549 -#  define LT_DLGLOBAL          RTLD_GLOBAL
27550 -#else
27551 -#  ifdef DL_GLOBAL
27552 -#    define LT_DLGLOBAL                DL_GLOBAL
27553 -#  else
27554 -#    define LT_DLGLOBAL                0
27555 -#  endif
27556 -#endif
27557 -
27558 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27559 -   find out it does not work in some platform. */
27560 -#ifndef LT_DLLAZY_OR_NOW
27561 -#  ifdef RTLD_LAZY
27562 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
27563 -#  else
27564 -#    ifdef DL_LAZY
27565 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
27566 -#    else
27567 -#      ifdef RTLD_NOW
27568 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
27569 -#      else
27570 -#        ifdef DL_NOW
27571 -#          define LT_DLLAZY_OR_NOW     DL_NOW
27572 -#        else
27573 -#          define LT_DLLAZY_OR_NOW     0
27574 -#        endif
27575 -#      endif
27576 -#    endif
27577 -#  endif
27578 -#endif
27579 -
27580 -#ifdef __cplusplus
27581 -extern "C" void exit (int);
27582 -#endif
27583 -
27584 -void fnord() { int i=42;}
27585 -int main ()
27586 -{
27587 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27588 -  int status = $lt_dlunknown;
27589 -
27590 -  if (self)
27591 -    {
27592 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27593 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27594 -      /* dlclose (self); */
27595 -    }
27596 -
27597 -    exit (status);
27598 -}
27599 -EOF
27600 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27601 -  (eval $ac_link) 2>&5
27602 -  ac_status=$?
27603 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27605 -    (./conftest; exit; ) 2>/dev/null
27606 -    lt_status=$?
27607 -    case x$lt_status in
27608 -      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27609 -      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27610 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
27611 -    esac
27612 -  else :
27613 -    # compilation failed
27614 -    lt_cv_dlopen_self=no
27615 -  fi
27616 -fi
27617 -rm -fr conftest*
27618 -
27619 -
27620 -fi
27621 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27622 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
27623 -
27624 -    if test "x$lt_cv_dlopen_self" = xyes; then
27625 -      LDFLAGS="$LDFLAGS $link_static_flag"
27626 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27627 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
27628 -if test "${lt_cv_dlopen_self_static+set}" = set; then
27629 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27630 -else
27631 -         if test "$cross_compiling" = yes; then :
27632 -  lt_cv_dlopen_self_static=cross
27633 -else
27634 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27635 -  lt_status=$lt_dlunknown
27636 -  cat > conftest.$ac_ext <<EOF
27637 -#line 18172 "configure"
27638 -#include "confdefs.h"
27639 -
27640 -#if HAVE_DLFCN_H
27641 -#include <dlfcn.h>
27642 -#endif
27643 -
27644 -#include <stdio.h>
27645 -
27646 -#ifdef RTLD_GLOBAL
27647 -#  define LT_DLGLOBAL          RTLD_GLOBAL
27648 -#else
27649 -#  ifdef DL_GLOBAL
27650 -#    define LT_DLGLOBAL                DL_GLOBAL
27651 -#  else
27652 -#    define LT_DLGLOBAL                0
27653 -#  endif
27654 -#endif
27655 -
27656 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27657 -   find out it does not work in some platform. */
27658 -#ifndef LT_DLLAZY_OR_NOW
27659 -#  ifdef RTLD_LAZY
27660 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
27661 -#  else
27662 -#    ifdef DL_LAZY
27663 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
27664 -#    else
27665 -#      ifdef RTLD_NOW
27666 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
27667 -#      else
27668 -#        ifdef DL_NOW
27669 -#          define LT_DLLAZY_OR_NOW     DL_NOW
27670 -#        else
27671 -#          define LT_DLLAZY_OR_NOW     0
27672 -#        endif
27673 -#      endif
27674 -#    endif
27675 -#  endif
27676 -#endif
27677 -
27678 -#ifdef __cplusplus
27679 -extern "C" void exit (int);
27680 -#endif
27681 -
27682 -void fnord() { int i=42;}
27683 -int main ()
27684 -{
27685 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27686 -  int status = $lt_dlunknown;
27687 -
27688 -  if (self)
27689 -    {
27690 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27691 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27692 -      /* dlclose (self); */
27693 -    }
27694 -
27695 -    exit (status);
27696 -}
27697 -EOF
27698 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27699 -  (eval $ac_link) 2>&5
27700 -  ac_status=$?
27701 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27703 -    (./conftest; exit; ) 2>/dev/null
27704 -    lt_status=$?
27705 -    case x$lt_status in
27706 -      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27707 -      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27708 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
27709 -    esac
27710 -  else :
27711 -    # compilation failed
27712 -    lt_cv_dlopen_self_static=no
27713 -  fi
27714 -fi
27715 -rm -fr conftest*
27716 -
27717 -
27718 -fi
27719 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27720 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
27721 -    fi
27722 -
27723 -    CPPFLAGS="$save_CPPFLAGS"
27724 -    LDFLAGS="$save_LDFLAGS"
27725 -    LIBS="$save_LIBS"
27726 -    ;;
27727 -  esac
27728 -
27729 -  case $lt_cv_dlopen_self in
27730 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27731 -  *) enable_dlopen_self=unknown ;;
27732 -  esac
27733 -
27734 -  case $lt_cv_dlopen_self_static in
27735 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27736 -  *) enable_dlopen_self_static=unknown ;;
27737 -  esac
27738 -fi
27739 -
27740  
27741  # The else clause should only fire when bootstrapping the
27742  # libtool distribution, otherwise you forgot to ship ltmain.sh
27743 @@ -18286,7 +19042,7 @@ if test -f "$ltmain"; then
27744    # Now quote all the things that may contain metacharacters while being
27745    # careful not to overquote the AC_SUBSTed values.  We take copies of the
27746    # variables and quote the copies for generation of the libtool script.
27747 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27748 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27749      SED SHELL STRIP \
27750      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27751      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27752 @@ -18313,6 +19069,7 @@ if test -f "$ltmain"; then
27753      predeps_GCJ \
27754      postdeps_GCJ \
27755      compiler_lib_search_path_GCJ \
27756 +    compiler_lib_search_dirs_GCJ \
27757      archive_cmds_GCJ \
27758      archive_expsym_cmds_GCJ \
27759      postinstall_cmds_GCJ \
27760 @@ -18328,6 +19085,7 @@ if test -f "$ltmain"; then
27761      module_cmds_GCJ \
27762      module_expsym_cmds_GCJ \
27763      lt_cv_prog_compiler_c_o_GCJ \
27764 +    fix_srcfile_path_GCJ \
27765      exclude_expsyms_GCJ \
27766      include_expsyms_GCJ; do
27767  
27768 @@ -18387,6 +19145,12 @@ fast_install=$enable_fast_install
27769  # The host system.
27770  host_alias=$host_alias
27771  host=$host
27772 +host_os=$host_os
27773 +
27774 +# The build system.
27775 +build_alias=$build_alias
27776 +build=$build
27777 +build_os=$build_os
27778  
27779  # An echo program that does not interpret backslashes.
27780  echo=$lt_echo
27781 @@ -18398,6 +19162,9 @@ AR_FLAGS=$lt_AR_FLAGS
27782  # A C compiler.
27783  LTCC=$lt_LTCC
27784  
27785 +# LTCC compiler flags.
27786 +LTCFLAGS=$lt_LTCFLAGS
27787 +
27788  # A language-specific compiler.
27789  CC=$lt_compiler_GCJ
27790  
27791 @@ -18463,7 +19230,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
27792  # Does compiler simultaneously support -c and -o options?
27793  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27794  
27795 -# Must we lock files when doing compilation ?
27796 +# Must we lock files when doing compilation?
27797  need_locks=$lt_need_locks
27798  
27799  # Do we need the lib prefix for modules?
27800 @@ -18551,6 +19318,10 @@ predeps=$lt_predeps_GCJ
27801  # shared library.
27802  postdeps=$lt_postdeps_GCJ
27803  
27804 +# The directories searched by this compiler when creating a shared
27805 +# library
27806 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27807 +
27808  # The library search path used internally by the compiler when linking
27809  # a shared library.
27810  compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27811 @@ -18639,7 +19410,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27812  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27813  
27814  # Fix the shell variable \$srcfile for the compiler.
27815 -fix_srcfile_path="$fix_srcfile_path_GCJ"
27816 +fix_srcfile_path=$lt_fix_srcfile_path
27817  
27818  # Set to yes if exported symbols are required.
27819  always_export_symbols=$always_export_symbols_GCJ
27820 @@ -18688,7 +19459,6 @@ CC="$lt_save_CC"
27821        RC)
27822  
27823  
27824 -
27825  # Source file extension for RC test sources.
27826  ac_ext=rc
27827  
27828 @@ -18697,7 +19467,7 @@ objext=o
27829  objext_RC=$objext
27830  
27831  # Code to be used in simple compile tests
27832 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
27833 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
27834  
27835  # Code to be used in simple link tests
27836  lt_simple_link_test_code="$lt_simple_compile_test_code"
27837 @@ -18707,15 +19477,42 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
27838  # If no C compiler was specified, use CC.
27839  LTCC=${LTCC-"$CC"}
27840  
27841 +# If no C compiler flags were specified, use CFLAGS.
27842 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27843 +
27844  # Allow CC to be a program name with arguments.
27845  compiler=$CC
27846  
27847  
27848 +# save warnings/boilerplate of simple test code
27849 +ac_outfile=conftest.$ac_objext
27850 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27851 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27852 +_lt_compiler_boilerplate=`cat conftest.err`
27853 +$rm conftest*
27854 +
27855 +ac_outfile=conftest.$ac_objext
27856 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
27857 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27858 +_lt_linker_boilerplate=`cat conftest.err`
27859 +$rm -r conftest*
27860 +
27861 +
27862  # Allow CC to be a program name with arguments.
27863  lt_save_CC="$CC"
27864  CC=${RC-"windres"}
27865  compiler=$CC
27866  compiler_RC=$CC
27867 +for cc_temp in $compiler""; do
27868 +  case $cc_temp in
27869 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27870 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27871 +    \-*) ;;
27872 +    *) break;;
27873 +  esac
27874 +done
27875 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27876 +
27877  lt_cv_prog_compiler_c_o_RC=yes
27878  
27879  # The else clause should only fire when bootstrapping the
27880 @@ -18731,7 +19528,7 @@ if test -f "$ltmain"; then
27881    # Now quote all the things that may contain metacharacters while being
27882    # careful not to overquote the AC_SUBSTed values.  We take copies of the
27883    # variables and quote the copies for generation of the libtool script.
27884 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27885 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27886      SED SHELL STRIP \
27887      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27888      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27889 @@ -18758,6 +19555,7 @@ if test -f "$ltmain"; then
27890      predeps_RC \
27891      postdeps_RC \
27892      compiler_lib_search_path_RC \
27893 +    compiler_lib_search_dirs_RC \
27894      archive_cmds_RC \
27895      archive_expsym_cmds_RC \
27896      postinstall_cmds_RC \
27897 @@ -18773,6 +19571,7 @@ if test -f "$ltmain"; then
27898      module_cmds_RC \
27899      module_expsym_cmds_RC \
27900      lt_cv_prog_compiler_c_o_RC \
27901 +    fix_srcfile_path_RC \
27902      exclude_expsyms_RC \
27903      include_expsyms_RC; do
27904  
27905 @@ -18832,6 +19631,12 @@ fast_install=$enable_fast_install
27906  # The host system.
27907  host_alias=$host_alias
27908  host=$host
27909 +host_os=$host_os
27910 +
27911 +# The build system.
27912 +build_alias=$build_alias
27913 +build=$build
27914 +build_os=$build_os
27915  
27916  # An echo program that does not interpret backslashes.
27917  echo=$lt_echo
27918 @@ -18843,6 +19648,9 @@ AR_FLAGS=$lt_AR_FLAGS
27919  # A C compiler.
27920  LTCC=$lt_LTCC
27921  
27922 +# LTCC compiler flags.
27923 +LTCFLAGS=$lt_LTCFLAGS
27924 +
27925  # A language-specific compiler.
27926  CC=$lt_compiler_RC
27927  
27928 @@ -18908,7 +19716,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
27929  # Does compiler simultaneously support -c and -o options?
27930  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27931  
27932 -# Must we lock files when doing compilation ?
27933 +# Must we lock files when doing compilation?
27934  need_locks=$lt_need_locks
27935  
27936  # Do we need the lib prefix for modules?
27937 @@ -18996,6 +19804,10 @@ predeps=$lt_predeps_RC
27938  # shared library.
27939  postdeps=$lt_postdeps_RC
27940  
27941 +# The directories searched by this compiler when creating a shared
27942 +# library
27943 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
27944 +
27945  # The library search path used internally by the compiler when linking
27946  # a shared library.
27947  compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27948 @@ -19084,7 +19896,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27949  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27950  
27951  # Fix the shell variable \$srcfile for the compiler.
27952 -fix_srcfile_path="$fix_srcfile_path_RC"
27953 +fix_srcfile_path=$lt_fix_srcfile_path
27954  
27955  # Set to yes if exported symbols are required.
27956  always_export_symbols=$always_export_symbols_RC
27957 @@ -19128,8 +19940,8 @@ CC="$lt_save_CC"
27958         ;;
27959  
27960        *)
27961 -       { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27962 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27963 +       { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27964 +$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27965     { (exit 1); exit 1; }; }
27966         ;;
27967        esac
27968 @@ -19148,8 +19960,8 @@ echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27969      chmod +x "$ofile"
27970    else
27971      rm -f "${ofile}T"
27972 -    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27973 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27974 +    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27975 +$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27976     { (exit 1); exit 1; }; }
27977    fi
27978  fi
27979 @@ -19185,20 +19997,20 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27980  
27981  
27982  
27983 -# Check whether --with-mysql or --without-mysql was given.
27984 +# Check whether --with-mysql was given.
27985  if test "${with_mysql+set}" = set; then
27986 -  withval="$with_mysql"
27987 +  withval=$with_mysql;
27988 +fi
27989  
27990 -fi;
27991 -# Check whether --enable-debug or --disable-debug was given.
27992 +# Check whether --enable-debug was given.
27993  if test "${enable_debug+set}" = set; then
27994 -  enableval="$enable_debug"
27995 -
27996 +  enableval=$enable_debug;
27997  cat >>confdefs.h <<\_ACEOF
27998  #define DEBUG 1
27999  _ACEOF
28000  
28001 -fi;
28002 +fi
28003 +
28004  
28005  case "$target_os" in
28006  linux*)
28007 @@ -19237,10 +20049,10 @@ else
28008  fi
28009  
28010  
28011 -echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
28012 -echo $ECHO_N "checking whether the linker accepts -znodelete... $ECHO_C" >&6
28013 +{ $as_echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
28014 +$as_echo_n "checking whether the linker accepts -znodelete... " >&6; }
28015  if test "${nss_mysql_cv_cc_znodelete+set}" = set; then
28016 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28017 +  $as_echo_n "(cached) " >&6
28018  else
28019  
28020      SAVELIBS=$LIBS
28021 @@ -19261,40 +20073,41 @@ main ()
28022  }
28023  _ACEOF
28024  rm -f conftest.$ac_objext conftest$ac_exeext
28025 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28026 -  (eval $ac_link) 2>conftest.er1
28027 +if { (ac_try="$ac_link"
28028 +case "(($ac_try" in
28029 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 +  *) ac_try_echo=$ac_try;;
28031 +esac
28032 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28033 +$as_echo "$ac_try_echo") >&5
28034 +  (eval "$ac_link") 2>conftest.er1
28035    ac_status=$?
28036    grep -v '^ *+' conftest.er1 >conftest.err
28037    rm -f conftest.er1
28038    cat conftest.err >&5
28039 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 -  (exit $ac_status); } &&
28041 -        { ac_try='test -z "$ac_c_werror_flag"
28042 -                        || test ! -s conftest.err'
28043 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28044 -  (eval $ac_try) 2>&5
28045 -  ac_status=$?
28046 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 -  (exit $ac_status); }; } &&
28048 -        { ac_try='test -s conftest$ac_exeext'
28049 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050 -  (eval $ac_try) 2>&5
28051 -  ac_status=$?
28052 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 -  (exit $ac_status); }; }; then
28054 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 +  (exit $ac_status); } && {
28056 +        test -z "$ac_c_werror_flag" ||
28057 +        test ! -s conftest.err
28058 +       } && test -s conftest$ac_exeext && {
28059 +        test "$cross_compiling" = yes ||
28060 +        $as_test_x conftest$ac_exeext
28061 +       }; then
28062    nss_mysql_cv_cc_znodelete=yes
28063  else
28064 -  echo "$as_me: failed program was:" >&5
28065 +  $as_echo "$as_me: failed program was:" >&5
28066  sed 's/^/| /' conftest.$ac_ext >&5
28067  
28068 -nss_mysql_cv_cc_znodelete=no
28069 +       nss_mysql_cv_cc_znodelete=no
28070  fi
28071 -rm -f conftest.err conftest.$ac_objext \
28072 +
28073 +rm -rf conftest.dSYM
28074 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28075        conftest$ac_exeext conftest.$ac_ext
28076      LIBS=$SAVELIBS
28077  fi
28078 -echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
28079 -echo "${ECHO_T}$nss_mysql_cv_cc_znodelete" >&6
28080 +{ $as_echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
28081 +$as_echo "$nss_mysql_cv_cc_znodelete" >&6; }
28082  if test $nss_mysql_cv_cc_znodelete = "yes"; then
28083      LIBS="-Wl,-znodelete $SAVELIBS"
28084  fi
28085 @@ -19311,8 +20124,8 @@ baselist="$with_mysql \
28086            /opt/local \
28087            /opt/local/mysql"
28088  
28089 -echo "$as_me:$LINENO: checking for MySQL headers" >&5
28090 -echo $ECHO_N "checking for MySQL headers... $ECHO_C" >&6
28091 +{ $as_echo "$as_me:$LINENO: checking for MySQL headers" >&5
28092 +$as_echo_n "checking for MySQL headers... " >&6; }
28093  for f in $baselist; do
28094      if test -f "$f/include/mysql/mysql.h"
28095      then
28096 @@ -19329,17 +20142,17 @@ done
28097  
28098  if test -n "$MYSQL_INC_DIR"
28099  then
28100 -    echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
28101 -echo "${ECHO_T}$MYSQL_INC_DIR" >&6
28102 +    { $as_echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
28103 +$as_echo "$MYSQL_INC_DIR" >&6; }
28104      CPPFLAGS="-I $MYSQL_INC_DIR $CPPFLAGS"
28105  else
28106 -    { { echo "$as_me:$LINENO: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&5
28107 -echo "$as_me: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&2;}
28108 +    { { $as_echo "$as_me:$LINENO: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&5
28109 +$as_echo "$as_me: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&2;}
28110     { (exit 1); exit 1; }; }
28111  fi
28112  
28113 -echo "$as_me:$LINENO: checking for MySQL libraries" >&5
28114 -echo $ECHO_N "checking for MySQL libraries... $ECHO_C" >&6
28115 +{ $as_echo "$as_me:$LINENO: checking for MySQL libraries" >&5
28116 +$as_echo_n "checking for MySQL libraries... " >&6; }
28117  for f in $baselist; do
28118      if test -f "$f/lib/libmysqlclient.so"
28119      then
28120 @@ -19370,22 +20183,22 @@ done
28121  
28122  if test -n "$MYSQL_LIB_DIR"
28123  then
28124 -    echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
28125 -echo "${ECHO_T}$MYSQL_LIB_DIR" >&6
28126 +    { $as_echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
28127 +$as_echo "$MYSQL_LIB_DIR" >&6; }
28128      LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS"
28129  else
28130 -    { { echo "$as_me:$LINENO: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&5
28131 -echo "$as_me: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&2;}
28132 +    { { $as_echo "$as_me:$LINENO: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&5
28133 +$as_echo "$as_me: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&2;}
28134     { (exit 1); exit 1; }; }
28135  fi
28136  
28137  
28138  
28139  
28140 -echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
28141 -echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
28142 +{ $as_echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
28143 +$as_echo_n "checking for getsockname in -lsocket... " >&6; }
28144  if test "${ac_cv_lib_socket_getsockname+set}" = set; then
28145 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28146 +  $as_echo_n "(cached) " >&6
28147  else
28148    ac_check_lib_save_LIBS=$LIBS
28149  LIBS="-lsocket  $LIBS"
28150 @@ -19396,57 +20209,58 @@ cat confdefs.h >>conftest.$ac_ext
28151  cat >>conftest.$ac_ext <<_ACEOF
28152  /* end confdefs.h.  */
28153  
28154 -/* Override any gcc2 internal prototype to avoid an error.  */
28155 +/* Override any GCC internal prototype to avoid an error.
28156 +   Use char because int might match the return type of a GCC
28157 +   builtin and then its argument prototype would still apply.  */
28158  #ifdef __cplusplus
28159  extern "C"
28160  #endif
28161 -/* We use char because int might match the return type of a gcc2
28162 -   builtin and then its argument prototype would still apply.  */
28163  char getsockname ();
28164  int
28165  main ()
28166  {
28167 -getsockname ();
28168 +return getsockname ();
28169    ;
28170    return 0;
28171  }
28172  _ACEOF
28173  rm -f conftest.$ac_objext conftest$ac_exeext
28174 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28175 -  (eval $ac_link) 2>conftest.er1
28176 +if { (ac_try="$ac_link"
28177 +case "(($ac_try" in
28178 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 +  *) ac_try_echo=$ac_try;;
28180 +esac
28181 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28182 +$as_echo "$ac_try_echo") >&5
28183 +  (eval "$ac_link") 2>conftest.er1
28184    ac_status=$?
28185    grep -v '^ *+' conftest.er1 >conftest.err
28186    rm -f conftest.er1
28187    cat conftest.err >&5
28188 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 -  (exit $ac_status); } &&
28190 -        { ac_try='test -z "$ac_c_werror_flag"
28191 -                        || test ! -s conftest.err'
28192 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 -  (eval $ac_try) 2>&5
28194 -  ac_status=$?
28195 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 -  (exit $ac_status); }; } &&
28197 -        { ac_try='test -s conftest$ac_exeext'
28198 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28199 -  (eval $ac_try) 2>&5
28200 -  ac_status=$?
28201 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 -  (exit $ac_status); }; }; then
28203 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 +  (exit $ac_status); } && {
28205 +        test -z "$ac_c_werror_flag" ||
28206 +        test ! -s conftest.err
28207 +       } && test -s conftest$ac_exeext && {
28208 +        test "$cross_compiling" = yes ||
28209 +        $as_test_x conftest$ac_exeext
28210 +       }; then
28211    ac_cv_lib_socket_getsockname=yes
28212  else
28213 -  echo "$as_me: failed program was:" >&5
28214 +  $as_echo "$as_me: failed program was:" >&5
28215  sed 's/^/| /' conftest.$ac_ext >&5
28216  
28217 -ac_cv_lib_socket_getsockname=no
28218 +       ac_cv_lib_socket_getsockname=no
28219  fi
28220 -rm -f conftest.err conftest.$ac_objext \
28221 +
28222 +rm -rf conftest.dSYM
28223 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28224        conftest$ac_exeext conftest.$ac_ext
28225  LIBS=$ac_check_lib_save_LIBS
28226  fi
28227 -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
28228 -echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
28229 -if test $ac_cv_lib_socket_getsockname = yes; then
28230 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
28231 +$as_echo "$ac_cv_lib_socket_getsockname" >&6; }
28232 +if test "x$ac_cv_lib_socket_getsockname" = x""yes; then
28233    cat >>confdefs.h <<_ACEOF
28234  #define HAVE_LIBSOCKET 1
28235  _ACEOF
28236 @@ -19456,10 +20270,10 @@ _ACEOF
28237  fi
28238  
28239  
28240 -echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28241 -echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28242 +{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28243 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
28244  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28245 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28246 +  $as_echo_n "(cached) " >&6
28247  else
28248    ac_check_lib_save_LIBS=$LIBS
28249  LIBS="-lnsl  $LIBS"
28250 @@ -19470,57 +20284,58 @@ cat confdefs.h >>conftest.$ac_ext
28251  cat >>conftest.$ac_ext <<_ACEOF
28252  /* end confdefs.h.  */
28253  
28254 -/* Override any gcc2 internal prototype to avoid an error.  */
28255 +/* Override any GCC internal prototype to avoid an error.
28256 +   Use char because int might match the return type of a GCC
28257 +   builtin and then its argument prototype would still apply.  */
28258  #ifdef __cplusplus
28259  extern "C"
28260  #endif
28261 -/* We use char because int might match the return type of a gcc2
28262 -   builtin and then its argument prototype would still apply.  */
28263  char gethostbyname ();
28264  int
28265  main ()
28266  {
28267 -gethostbyname ();
28268 +return gethostbyname ();
28269    ;
28270    return 0;
28271  }
28272  _ACEOF
28273  rm -f conftest.$ac_objext conftest$ac_exeext
28274 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28275 -  (eval $ac_link) 2>conftest.er1
28276 +if { (ac_try="$ac_link"
28277 +case "(($ac_try" in
28278 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28279 +  *) ac_try_echo=$ac_try;;
28280 +esac
28281 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28282 +$as_echo "$ac_try_echo") >&5
28283 +  (eval "$ac_link") 2>conftest.er1
28284    ac_status=$?
28285    grep -v '^ *+' conftest.er1 >conftest.err
28286    rm -f conftest.er1
28287    cat conftest.err >&5
28288 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 -  (exit $ac_status); } &&
28290 -        { ac_try='test -z "$ac_c_werror_flag"
28291 -                        || test ! -s conftest.err'
28292 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 -  (eval $ac_try) 2>&5
28294 -  ac_status=$?
28295 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 -  (exit $ac_status); }; } &&
28297 -        { ac_try='test -s conftest$ac_exeext'
28298 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299 -  (eval $ac_try) 2>&5
28300 -  ac_status=$?
28301 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 -  (exit $ac_status); }; }; then
28303 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 +  (exit $ac_status); } && {
28305 +        test -z "$ac_c_werror_flag" ||
28306 +        test ! -s conftest.err
28307 +       } && test -s conftest$ac_exeext && {
28308 +        test "$cross_compiling" = yes ||
28309 +        $as_test_x conftest$ac_exeext
28310 +       }; then
28311    ac_cv_lib_nsl_gethostbyname=yes
28312  else
28313 -  echo "$as_me: failed program was:" >&5
28314 +  $as_echo "$as_me: failed program was:" >&5
28315  sed 's/^/| /' conftest.$ac_ext >&5
28316  
28317 -ac_cv_lib_nsl_gethostbyname=no
28318 +       ac_cv_lib_nsl_gethostbyname=no
28319  fi
28320 -rm -f conftest.err conftest.$ac_objext \
28321 +
28322 +rm -rf conftest.dSYM
28323 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28324        conftest$ac_exeext conftest.$ac_ext
28325  LIBS=$ac_check_lib_save_LIBS
28326  fi
28327 -echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28328 -echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28329 -if test $ac_cv_lib_nsl_gethostbyname = yes; then
28330 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28331 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
28332 +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
28333    cat >>confdefs.h <<_ACEOF
28334  #define HAVE_LIBNSL 1
28335  _ACEOF
28336 @@ -19530,10 +20345,10 @@ _ACEOF
28337  fi
28338  
28339  
28340 -echo "$as_me:$LINENO: checking for floor in -lm" >&5
28341 -echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
28342 +{ $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5
28343 +$as_echo_n "checking for floor in -lm... " >&6; }
28344  if test "${ac_cv_lib_m_floor+set}" = set; then
28345 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28346 +  $as_echo_n "(cached) " >&6
28347  else
28348    ac_check_lib_save_LIBS=$LIBS
28349  LIBS="-lm  $LIBS"
28350 @@ -19544,57 +20359,58 @@ cat confdefs.h >>conftest.$ac_ext
28351  cat >>conftest.$ac_ext <<_ACEOF
28352  /* end confdefs.h.  */
28353  
28354 -/* Override any gcc2 internal prototype to avoid an error.  */
28355 +/* Override any GCC internal prototype to avoid an error.
28356 +   Use char because int might match the return type of a GCC
28357 +   builtin and then its argument prototype would still apply.  */
28358  #ifdef __cplusplus
28359  extern "C"
28360  #endif
28361 -/* We use char because int might match the return type of a gcc2
28362 -   builtin and then its argument prototype would still apply.  */
28363  char floor ();
28364  int
28365  main ()
28366  {
28367 -floor ();
28368 +return floor ();
28369    ;
28370    return 0;
28371  }
28372  _ACEOF
28373  rm -f conftest.$ac_objext conftest$ac_exeext
28374 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28375 -  (eval $ac_link) 2>conftest.er1
28376 +if { (ac_try="$ac_link"
28377 +case "(($ac_try" in
28378 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379 +  *) ac_try_echo=$ac_try;;
28380 +esac
28381 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28382 +$as_echo "$ac_try_echo") >&5
28383 +  (eval "$ac_link") 2>conftest.er1
28384    ac_status=$?
28385    grep -v '^ *+' conftest.er1 >conftest.err
28386    rm -f conftest.er1
28387    cat conftest.err >&5
28388 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 -  (exit $ac_status); } &&
28390 -        { ac_try='test -z "$ac_c_werror_flag"
28391 -                        || test ! -s conftest.err'
28392 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 -  (eval $ac_try) 2>&5
28394 -  ac_status=$?
28395 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 -  (exit $ac_status); }; } &&
28397 -        { ac_try='test -s conftest$ac_exeext'
28398 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399 -  (eval $ac_try) 2>&5
28400 -  ac_status=$?
28401 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 -  (exit $ac_status); }; }; then
28403 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 +  (exit $ac_status); } && {
28405 +        test -z "$ac_c_werror_flag" ||
28406 +        test ! -s conftest.err
28407 +       } && test -s conftest$ac_exeext && {
28408 +        test "$cross_compiling" = yes ||
28409 +        $as_test_x conftest$ac_exeext
28410 +       }; then
28411    ac_cv_lib_m_floor=yes
28412  else
28413 -  echo "$as_me: failed program was:" >&5
28414 +  $as_echo "$as_me: failed program was:" >&5
28415  sed 's/^/| /' conftest.$ac_ext >&5
28416  
28417 -ac_cv_lib_m_floor=no
28418 +       ac_cv_lib_m_floor=no
28419  fi
28420 -rm -f conftest.err conftest.$ac_objext \
28421 +
28422 +rm -rf conftest.dSYM
28423 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28424        conftest$ac_exeext conftest.$ac_ext
28425  LIBS=$ac_check_lib_save_LIBS
28426  fi
28427 -echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
28428 -echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
28429 -if test $ac_cv_lib_m_floor = yes; then
28430 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
28431 +$as_echo "$ac_cv_lib_m_floor" >&6; }
28432 +if test "x$ac_cv_lib_m_floor" = x""yes; then
28433    cat >>confdefs.h <<_ACEOF
28434  #define HAVE_LIBM 1
28435  _ACEOF
28436 @@ -19604,10 +20420,10 @@ _ACEOF
28437  fi
28438  
28439  
28440 -echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
28441 -echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
28442 +{ $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
28443 +$as_echo_n "checking for dlsym in -ldl... " >&6; }
28444  if test "${ac_cv_lib_dl_dlsym+set}" = set; then
28445 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28446 +  $as_echo_n "(cached) " >&6
28447  else
28448    ac_check_lib_save_LIBS=$LIBS
28449  LIBS="-ldl  $LIBS"
28450 @@ -19618,57 +20434,58 @@ cat confdefs.h >>conftest.$ac_ext
28451  cat >>conftest.$ac_ext <<_ACEOF
28452  /* end confdefs.h.  */
28453  
28454 -/* Override any gcc2 internal prototype to avoid an error.  */
28455 +/* Override any GCC internal prototype to avoid an error.
28456 +   Use char because int might match the return type of a GCC
28457 +   builtin and then its argument prototype would still apply.  */
28458  #ifdef __cplusplus
28459  extern "C"
28460  #endif
28461 -/* We use char because int might match the return type of a gcc2
28462 -   builtin and then its argument prototype would still apply.  */
28463  char dlsym ();
28464  int
28465  main ()
28466  {
28467 -dlsym ();
28468 +return dlsym ();
28469    ;
28470    return 0;
28471  }
28472  _ACEOF
28473  rm -f conftest.$ac_objext conftest$ac_exeext
28474 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28475 -  (eval $ac_link) 2>conftest.er1
28476 +if { (ac_try="$ac_link"
28477 +case "(($ac_try" in
28478 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479 +  *) ac_try_echo=$ac_try;;
28480 +esac
28481 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28482 +$as_echo "$ac_try_echo") >&5
28483 +  (eval "$ac_link") 2>conftest.er1
28484    ac_status=$?
28485    grep -v '^ *+' conftest.er1 >conftest.err
28486    rm -f conftest.er1
28487    cat conftest.err >&5
28488 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 -  (exit $ac_status); } &&
28490 -        { ac_try='test -z "$ac_c_werror_flag"
28491 -                        || test ! -s conftest.err'
28492 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493 -  (eval $ac_try) 2>&5
28494 -  ac_status=$?
28495 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 -  (exit $ac_status); }; } &&
28497 -        { ac_try='test -s conftest$ac_exeext'
28498 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499 -  (eval $ac_try) 2>&5
28500 -  ac_status=$?
28501 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 -  (exit $ac_status); }; }; then
28503 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 +  (exit $ac_status); } && {
28505 +        test -z "$ac_c_werror_flag" ||
28506 +        test ! -s conftest.err
28507 +       } && test -s conftest$ac_exeext && {
28508 +        test "$cross_compiling" = yes ||
28509 +        $as_test_x conftest$ac_exeext
28510 +       }; then
28511    ac_cv_lib_dl_dlsym=yes
28512  else
28513 -  echo "$as_me: failed program was:" >&5
28514 +  $as_echo "$as_me: failed program was:" >&5
28515  sed 's/^/| /' conftest.$ac_ext >&5
28516  
28517 -ac_cv_lib_dl_dlsym=no
28518 +       ac_cv_lib_dl_dlsym=no
28519  fi
28520 -rm -f conftest.err conftest.$ac_objext \
28521 +
28522 +rm -rf conftest.dSYM
28523 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28524        conftest$ac_exeext conftest.$ac_ext
28525  LIBS=$ac_check_lib_save_LIBS
28526  fi
28527 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
28528 -echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
28529 -if test $ac_cv_lib_dl_dlsym = yes; then
28530 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
28531 +$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
28532 +if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
28533    cat >>confdefs.h <<_ACEOF
28534  #define HAVE_LIBDL 1
28535  _ACEOF
28536 @@ -19678,10 +20495,10 @@ _ACEOF
28537  fi
28538  
28539  
28540 -echo "$as_me:$LINENO: checking for compress in -lz" >&5
28541 -echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
28542 +{ $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
28543 +$as_echo_n "checking for compress in -lz... " >&6; }
28544  if test "${ac_cv_lib_z_compress+set}" = set; then
28545 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28546 +  $as_echo_n "(cached) " >&6
28547  else
28548    ac_check_lib_save_LIBS=$LIBS
28549  LIBS="-lz  $LIBS"
28550 @@ -19692,57 +20509,58 @@ cat confdefs.h >>conftest.$ac_ext
28551  cat >>conftest.$ac_ext <<_ACEOF
28552  /* end confdefs.h.  */
28553  
28554 -/* Override any gcc2 internal prototype to avoid an error.  */
28555 +/* Override any GCC internal prototype to avoid an error.
28556 +   Use char because int might match the return type of a GCC
28557 +   builtin and then its argument prototype would still apply.  */
28558  #ifdef __cplusplus
28559  extern "C"
28560  #endif
28561 -/* We use char because int might match the return type of a gcc2
28562 -   builtin and then its argument prototype would still apply.  */
28563  char compress ();
28564  int
28565  main ()
28566  {
28567 -compress ();
28568 +return compress ();
28569    ;
28570    return 0;
28571  }
28572  _ACEOF
28573  rm -f conftest.$ac_objext conftest$ac_exeext
28574 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28575 -  (eval $ac_link) 2>conftest.er1
28576 +if { (ac_try="$ac_link"
28577 +case "(($ac_try" in
28578 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 +  *) ac_try_echo=$ac_try;;
28580 +esac
28581 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28582 +$as_echo "$ac_try_echo") >&5
28583 +  (eval "$ac_link") 2>conftest.er1
28584    ac_status=$?
28585    grep -v '^ *+' conftest.er1 >conftest.err
28586    rm -f conftest.er1
28587    cat conftest.err >&5
28588 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 -  (exit $ac_status); } &&
28590 -        { ac_try='test -z "$ac_c_werror_flag"
28591 -                        || test ! -s conftest.err'
28592 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 -  (eval $ac_try) 2>&5
28594 -  ac_status=$?
28595 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 -  (exit $ac_status); }; } &&
28597 -        { ac_try='test -s conftest$ac_exeext'
28598 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 -  (eval $ac_try) 2>&5
28600 -  ac_status=$?
28601 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 -  (exit $ac_status); }; }; then
28603 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 +  (exit $ac_status); } && {
28605 +        test -z "$ac_c_werror_flag" ||
28606 +        test ! -s conftest.err
28607 +       } && test -s conftest$ac_exeext && {
28608 +        test "$cross_compiling" = yes ||
28609 +        $as_test_x conftest$ac_exeext
28610 +       }; then
28611    ac_cv_lib_z_compress=yes
28612  else
28613 -  echo "$as_me: failed program was:" >&5
28614 +  $as_echo "$as_me: failed program was:" >&5
28615  sed 's/^/| /' conftest.$ac_ext >&5
28616  
28617 -ac_cv_lib_z_compress=no
28618 +       ac_cv_lib_z_compress=no
28619  fi
28620 -rm -f conftest.err conftest.$ac_objext \
28621 +
28622 +rm -rf conftest.dSYM
28623 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28624        conftest$ac_exeext conftest.$ac_ext
28625  LIBS=$ac_check_lib_save_LIBS
28626  fi
28627 -echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28628 -echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
28629 -if test $ac_cv_lib_z_compress = yes; then
28630 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28631 +$as_echo "$ac_cv_lib_z_compress" >&6; }
28632 +if test "x$ac_cv_lib_z_compress" = x""yes; then
28633    cat >>confdefs.h <<_ACEOF
28634  #define HAVE_LIBZ 1
28635  _ACEOF
28636 @@ -19753,10 +20571,10 @@ fi
28637  
28638  
28639  
28640 -echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
28641 -echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
28642 +{ $as_echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
28643 +$as_echo_n "checking for main in -lmysqlclient... " >&6; }
28644  if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
28645 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28646 +  $as_echo_n "(cached) " >&6
28647  else
28648    ac_check_lib_save_LIBS=$LIBS
28649  LIBS="-lmysqlclient  $LIBS"
28650 @@ -19771,47 +20589,48 @@ cat >>conftest.$ac_ext <<_ACEOF
28651  int
28652  main ()
28653  {
28654 -main ();
28655 +return main ();
28656    ;
28657    return 0;
28658  }
28659  _ACEOF
28660  rm -f conftest.$ac_objext conftest$ac_exeext
28661 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28662 -  (eval $ac_link) 2>conftest.er1
28663 +if { (ac_try="$ac_link"
28664 +case "(($ac_try" in
28665 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 +  *) ac_try_echo=$ac_try;;
28667 +esac
28668 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28669 +$as_echo "$ac_try_echo") >&5
28670 +  (eval "$ac_link") 2>conftest.er1
28671    ac_status=$?
28672    grep -v '^ *+' conftest.er1 >conftest.err
28673    rm -f conftest.er1
28674    cat conftest.err >&5
28675 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 -  (exit $ac_status); } &&
28677 -        { ac_try='test -z "$ac_c_werror_flag"
28678 -                        || test ! -s conftest.err'
28679 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28680 -  (eval $ac_try) 2>&5
28681 -  ac_status=$?
28682 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 -  (exit $ac_status); }; } &&
28684 -        { ac_try='test -s conftest$ac_exeext'
28685 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28686 -  (eval $ac_try) 2>&5
28687 -  ac_status=$?
28688 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 -  (exit $ac_status); }; }; then
28690 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 +  (exit $ac_status); } && {
28692 +        test -z "$ac_c_werror_flag" ||
28693 +        test ! -s conftest.err
28694 +       } && test -s conftest$ac_exeext && {
28695 +        test "$cross_compiling" = yes ||
28696 +        $as_test_x conftest$ac_exeext
28697 +       }; then
28698    ac_cv_lib_mysqlclient_main=yes
28699  else
28700 -  echo "$as_me: failed program was:" >&5
28701 +  $as_echo "$as_me: failed program was:" >&5
28702  sed 's/^/| /' conftest.$ac_ext >&5
28703  
28704 -ac_cv_lib_mysqlclient_main=no
28705 +       ac_cv_lib_mysqlclient_main=no
28706  fi
28707 -rm -f conftest.err conftest.$ac_objext \
28708 +
28709 +rm -rf conftest.dSYM
28710 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28711        conftest$ac_exeext conftest.$ac_ext
28712  LIBS=$ac_check_lib_save_LIBS
28713  fi
28714 -echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
28715 -echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
28716 -if test $ac_cv_lib_mysqlclient_main = yes; then
28717 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
28718 +$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
28719 +if test "x$ac_cv_lib_mysqlclient_main" = x""yes; then
28720    cat >>confdefs.h <<_ACEOF
28721  #define HAVE_LIBMYSQLCLIENT 1
28722  _ACEOF
28723 @@ -19819,16 +20638,16 @@ _ACEOF
28724    LIBS="-lmysqlclient $LIBS"
28725  
28726  else
28727 -  { { echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
28728 -echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
28729 +  { { $as_echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
28730 +$as_echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
28731     { (exit 1); exit 1; }; }
28732  fi
28733  
28734  
28735 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28736 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
28737 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28738 +$as_echo_n "checking for ANSI C header files... " >&6; }
28739  if test "${ac_cv_header_stdc+set}" = set; then
28740 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28741 +  $as_echo_n "(cached) " >&6
28742  else
28743    cat >conftest.$ac_ext <<_ACEOF
28744  /* confdefs.h.  */
28745 @@ -19850,35 +20669,32 @@ main ()
28746  }
28747  _ACEOF
28748  rm -f conftest.$ac_objext
28749 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28750 -  (eval $ac_compile) 2>conftest.er1
28751 +if { (ac_try="$ac_compile"
28752 +case "(($ac_try" in
28753 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 +  *) ac_try_echo=$ac_try;;
28755 +esac
28756 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28757 +$as_echo "$ac_try_echo") >&5
28758 +  (eval "$ac_compile") 2>conftest.er1
28759    ac_status=$?
28760    grep -v '^ *+' conftest.er1 >conftest.err
28761    rm -f conftest.er1
28762    cat conftest.err >&5
28763 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 -  (exit $ac_status); } &&
28765 -        { ac_try='test -z "$ac_c_werror_flag"
28766 -                        || test ! -s conftest.err'
28767 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768 -  (eval $ac_try) 2>&5
28769 -  ac_status=$?
28770 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 -  (exit $ac_status); }; } &&
28772 -        { ac_try='test -s conftest.$ac_objext'
28773 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 -  (eval $ac_try) 2>&5
28775 -  ac_status=$?
28776 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 -  (exit $ac_status); }; }; then
28778 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 +  (exit $ac_status); } && {
28780 +        test -z "$ac_c_werror_flag" ||
28781 +        test ! -s conftest.err
28782 +       } && test -s conftest.$ac_objext; then
28783    ac_cv_header_stdc=yes
28784  else
28785 -  echo "$as_me: failed program was:" >&5
28786 +  $as_echo "$as_me: failed program was:" >&5
28787  sed 's/^/| /' conftest.$ac_ext >&5
28788  
28789 -ac_cv_header_stdc=no
28790 +       ac_cv_header_stdc=no
28791  fi
28792 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28793 +
28794 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28795  
28796  if test $ac_cv_header_stdc = yes; then
28797    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28798 @@ -19934,6 +20750,7 @@ cat confdefs.h >>conftest.$ac_ext
28799  cat >>conftest.$ac_ext <<_ACEOF
28800  /* end confdefs.h.  */
28801  #include <ctype.h>
28802 +#include <stdlib.h>
28803  #if ((' ' & 0x0FF) == 0x020)
28804  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28805  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28806 @@ -19953,36 +20770,50 @@ main ()
28807    for (i = 0; i < 256; i++)
28808      if (XOR (islower (i), ISLOWER (i))
28809         || toupper (i) != TOUPPER (i))
28810 -      exit(2);
28811 -  exit (0);
28812 +      return 2;
28813 +  return 0;
28814  }
28815  _ACEOF
28816  rm -f conftest$ac_exeext
28817 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28818 -  (eval $ac_link) 2>&5
28819 +if { (ac_try="$ac_link"
28820 +case "(($ac_try" in
28821 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822 +  *) ac_try_echo=$ac_try;;
28823 +esac
28824 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28825 +$as_echo "$ac_try_echo") >&5
28826 +  (eval "$ac_link") 2>&5
28827    ac_status=$?
28828 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28831 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 -  (eval $ac_try) 2>&5
28833 +  { (case "(($ac_try" in
28834 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28835 +  *) ac_try_echo=$ac_try;;
28836 +esac
28837 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28838 +$as_echo "$ac_try_echo") >&5
28839 +  (eval "$ac_try") 2>&5
28840    ac_status=$?
28841 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843    (exit $ac_status); }; }; then
28844    :
28845  else
28846 -  echo "$as_me: program exited with status $ac_status" >&5
28847 -echo "$as_me: failed program was:" >&5
28848 +  $as_echo "$as_me: program exited with status $ac_status" >&5
28849 +$as_echo "$as_me: failed program was:" >&5
28850  sed 's/^/| /' conftest.$ac_ext >&5
28851  
28852  ( exit $ac_status )
28853  ac_cv_header_stdc=no
28854  fi
28855 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28856 +rm -rf conftest.dSYM
28857 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28858  fi
28859 +
28860 +
28861  fi
28862  fi
28863 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28864 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
28865 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28866 +$as_echo "$ac_cv_header_stdc" >&6; }
28867  if test $ac_cv_header_stdc = yes; then
28868  
28869  cat >>confdefs.h <<\_ACEOF
28870 @@ -19992,17 +20823,17 @@ _ACEOF
28871  fi
28872  
28873  if test "${ac_cv_header_mysql_h+set}" = set; then
28874 -  echo "$as_me:$LINENO: checking for mysql.h" >&5
28875 -echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
28876 +  { $as_echo "$as_me:$LINENO: checking for mysql.h" >&5
28877 +$as_echo_n "checking for mysql.h... " >&6; }
28878  if test "${ac_cv_header_mysql_h+set}" = set; then
28879 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28880 +  $as_echo_n "(cached) " >&6
28881  fi
28882 -echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
28883 -echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
28884 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
28885 +$as_echo "$ac_cv_header_mysql_h" >&6; }
28886  else
28887    # Is the header compilable?
28888 -echo "$as_me:$LINENO: checking mysql.h usability" >&5
28889 -echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
28890 +{ $as_echo "$as_me:$LINENO: checking mysql.h usability" >&5
28891 +$as_echo_n "checking mysql.h usability... " >&6; }
28892  cat >conftest.$ac_ext <<_ACEOF
28893  /* confdefs.h.  */
28894  _ACEOF
28895 @@ -20013,41 +20844,38 @@ $ac_includes_default
28896  #include <mysql.h>
28897  _ACEOF
28898  rm -f conftest.$ac_objext
28899 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28900 -  (eval $ac_compile) 2>conftest.er1
28901 +if { (ac_try="$ac_compile"
28902 +case "(($ac_try" in
28903 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 +  *) ac_try_echo=$ac_try;;
28905 +esac
28906 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28907 +$as_echo "$ac_try_echo") >&5
28908 +  (eval "$ac_compile") 2>conftest.er1
28909    ac_status=$?
28910    grep -v '^ *+' conftest.er1 >conftest.err
28911    rm -f conftest.er1
28912    cat conftest.err >&5
28913 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 -  (exit $ac_status); } &&
28915 -        { ac_try='test -z "$ac_c_werror_flag"
28916 -                        || test ! -s conftest.err'
28917 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 -  (eval $ac_try) 2>&5
28919 -  ac_status=$?
28920 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 -  (exit $ac_status); }; } &&
28922 -        { ac_try='test -s conftest.$ac_objext'
28923 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924 -  (eval $ac_try) 2>&5
28925 -  ac_status=$?
28926 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 -  (exit $ac_status); }; }; then
28928 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 +  (exit $ac_status); } && {
28930 +        test -z "$ac_c_werror_flag" ||
28931 +        test ! -s conftest.err
28932 +       } && test -s conftest.$ac_objext; then
28933    ac_header_compiler=yes
28934  else
28935 -  echo "$as_me: failed program was:" >&5
28936 +  $as_echo "$as_me: failed program was:" >&5
28937  sed 's/^/| /' conftest.$ac_ext >&5
28938  
28939 -ac_header_compiler=no
28940 +       ac_header_compiler=no
28941  fi
28942 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28943 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28944 -echo "${ECHO_T}$ac_header_compiler" >&6
28945 +
28946 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28947 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28948 +$as_echo "$ac_header_compiler" >&6; }
28949  
28950  # Is the header present?
28951 -echo "$as_me:$LINENO: checking mysql.h presence" >&5
28952 -echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
28953 +{ $as_echo "$as_me:$LINENO: checking mysql.h presence" >&5
28954 +$as_echo_n "checking mysql.h presence... " >&6; }
28955  cat >conftest.$ac_ext <<_ACEOF
28956  /* confdefs.h.  */
28957  _ACEOF
28958 @@ -20056,83 +20884,76 @@ cat >>conftest.$ac_ext <<_ACEOF
28959  /* end confdefs.h.  */
28960  #include <mysql.h>
28961  _ACEOF
28962 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28963 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28964 +if { (ac_try="$ac_cpp conftest.$ac_ext"
28965 +case "(($ac_try" in
28966 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28967 +  *) ac_try_echo=$ac_try;;
28968 +esac
28969 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28970 +$as_echo "$ac_try_echo") >&5
28971 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28972    ac_status=$?
28973    grep -v '^ *+' conftest.er1 >conftest.err
28974    rm -f conftest.er1
28975    cat conftest.err >&5
28976 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 -  (exit $ac_status); } >/dev/null; then
28978 -  if test -s conftest.err; then
28979 -    ac_cpp_err=$ac_c_preproc_warn_flag
28980 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28981 -  else
28982 -    ac_cpp_err=
28983 -  fi
28984 -else
28985 -  ac_cpp_err=yes
28986 -fi
28987 -if test -z "$ac_cpp_err"; then
28988 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 +  (exit $ac_status); } >/dev/null && {
28990 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28991 +        test ! -s conftest.err
28992 +       }; then
28993    ac_header_preproc=yes
28994  else
28995 -  echo "$as_me: failed program was:" >&5
28996 +  $as_echo "$as_me: failed program was:" >&5
28997  sed 's/^/| /' conftest.$ac_ext >&5
28998  
28999    ac_header_preproc=no
29000  fi
29001 +
29002  rm -f conftest.err conftest.$ac_ext
29003 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29004 -echo "${ECHO_T}$ac_header_preproc" >&6
29005 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29006 +$as_echo "$ac_header_preproc" >&6; }
29007  
29008  # So?  What about this header?
29009  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29010    yes:no: )
29011 -    { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29012 -echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29013 -    { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
29014 -echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
29015 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29016 +$as_echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29017 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
29018 +$as_echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
29019      ac_header_preproc=yes
29020      ;;
29021    no:yes:* )
29022 -    { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
29023 -echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
29024 -    { echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
29025 -echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
29026 -    { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
29027 -echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
29028 -    { echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
29029 -echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29030 -    { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
29031 -echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
29032 -    { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
29033 -echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
29034 -    (
29035 -      cat <<\_ASBOX
29036 -## ------------------------------------------ ##
29037 -## Report this to the AC_PACKAGE_NAME lists.  ##
29038 -## ------------------------------------------ ##
29039 -_ASBOX
29040 -    ) |
29041 -      sed "s/^/$as_me: WARNING:     /" >&2
29042 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
29043 +$as_echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
29044 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
29045 +$as_echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
29046 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
29047 +$as_echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
29048 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
29049 +$as_echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29050 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
29051 +$as_echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
29052 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
29053 +$as_echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
29054 +
29055      ;;
29056  esac
29057 -echo "$as_me:$LINENO: checking for mysql.h" >&5
29058 -echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
29059 +{ $as_echo "$as_me:$LINENO: checking for mysql.h" >&5
29060 +$as_echo_n "checking for mysql.h... " >&6; }
29061  if test "${ac_cv_header_mysql_h+set}" = set; then
29062 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29063 +  $as_echo_n "(cached) " >&6
29064  else
29065    ac_cv_header_mysql_h=$ac_header_preproc
29066  fi
29067 -echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
29068 -echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
29069 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
29070 +$as_echo "$ac_cv_header_mysql_h" >&6; }
29071  
29072  fi
29073 -if test $ac_cv_header_mysql_h = yes; then
29074 +if test "x$ac_cv_header_mysql_h" = x""yes; then
29075    :
29076  else
29077 -  { { echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
29078 -echo "$as_me: error: Unable to find mysql.h" >&2;}
29079 +  { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
29080 +$as_echo "$as_me: error: Unable to find mysql.h" >&2;}
29081     { (exit 1); exit 1; }; }
29082  fi
29083  
29084 @@ -20144,19 +20965,21 @@ fi
29085  
29086  for ac_header in syslog.h stdint.h nss.h nss_common.h shadow.h
29087  do
29088 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29089 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29090 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
29091 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29092 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29093 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29094 -fi
29095 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29096 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29097 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29098 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29099 +  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29100 +$as_echo_n "checking for $ac_header... " >&6; }
29101 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29102 +  $as_echo_n "(cached) " >&6
29103 +fi
29104 +ac_res=`eval 'as_val=${'$as_ac_Header'}
29105 +                $as_echo "$as_val"'`
29106 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29107 +$as_echo "$ac_res" >&6; }
29108  else
29109    # Is the header compilable?
29110 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
29111 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29112 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29113 +$as_echo_n "checking $ac_header usability... " >&6; }
29114  cat >conftest.$ac_ext <<_ACEOF
29115  /* confdefs.h.  */
29116  _ACEOF
29117 @@ -20167,41 +20990,38 @@ $ac_includes_default
29118  #include <$ac_header>
29119  _ACEOF
29120  rm -f conftest.$ac_objext
29121 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29122 -  (eval $ac_compile) 2>conftest.er1
29123 +if { (ac_try="$ac_compile"
29124 +case "(($ac_try" in
29125 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 +  *) ac_try_echo=$ac_try;;
29127 +esac
29128 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29129 +$as_echo "$ac_try_echo") >&5
29130 +  (eval "$ac_compile") 2>conftest.er1
29131    ac_status=$?
29132    grep -v '^ *+' conftest.er1 >conftest.err
29133    rm -f conftest.er1
29134    cat conftest.err >&5
29135 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 -  (exit $ac_status); } &&
29137 -        { ac_try='test -z "$ac_c_werror_flag"
29138 -                        || test ! -s conftest.err'
29139 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29140 -  (eval $ac_try) 2>&5
29141 -  ac_status=$?
29142 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 -  (exit $ac_status); }; } &&
29144 -        { ac_try='test -s conftest.$ac_objext'
29145 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29146 -  (eval $ac_try) 2>&5
29147 -  ac_status=$?
29148 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 -  (exit $ac_status); }; }; then
29150 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 +  (exit $ac_status); } && {
29152 +        test -z "$ac_c_werror_flag" ||
29153 +        test ! -s conftest.err
29154 +       } && test -s conftest.$ac_objext; then
29155    ac_header_compiler=yes
29156  else
29157 -  echo "$as_me: failed program was:" >&5
29158 +  $as_echo "$as_me: failed program was:" >&5
29159  sed 's/^/| /' conftest.$ac_ext >&5
29160  
29161 -ac_header_compiler=no
29162 +       ac_header_compiler=no
29163  fi
29164 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29165 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29166 -echo "${ECHO_T}$ac_header_compiler" >&6
29167 +
29168 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29169 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29170 +$as_echo "$ac_header_compiler" >&6; }
29171  
29172  # Is the header present?
29173 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
29174 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29175 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29176 +$as_echo_n "checking $ac_header presence... " >&6; }
29177  cat >conftest.$ac_ext <<_ACEOF
29178  /* confdefs.h.  */
29179  _ACEOF
29180 @@ -20210,81 +21030,78 @@ cat >>conftest.$ac_ext <<_ACEOF
29181  /* end confdefs.h.  */
29182  #include <$ac_header>
29183  _ACEOF
29184 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29185 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29186 +if { (ac_try="$ac_cpp conftest.$ac_ext"
29187 +case "(($ac_try" in
29188 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189 +  *) ac_try_echo=$ac_try;;
29190 +esac
29191 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29192 +$as_echo "$ac_try_echo") >&5
29193 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29194    ac_status=$?
29195    grep -v '^ *+' conftest.er1 >conftest.err
29196    rm -f conftest.er1
29197    cat conftest.err >&5
29198 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 -  (exit $ac_status); } >/dev/null; then
29200 -  if test -s conftest.err; then
29201 -    ac_cpp_err=$ac_c_preproc_warn_flag
29202 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29203 -  else
29204 -    ac_cpp_err=
29205 -  fi
29206 -else
29207 -  ac_cpp_err=yes
29208 -fi
29209 -if test -z "$ac_cpp_err"; then
29210 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 +  (exit $ac_status); } >/dev/null && {
29212 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29213 +        test ! -s conftest.err
29214 +       }; then
29215    ac_header_preproc=yes
29216  else
29217 -  echo "$as_me: failed program was:" >&5
29218 +  $as_echo "$as_me: failed program was:" >&5
29219  sed 's/^/| /' conftest.$ac_ext >&5
29220  
29221    ac_header_preproc=no
29222  fi
29223 +
29224  rm -f conftest.err conftest.$ac_ext
29225 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29226 -echo "${ECHO_T}$ac_header_preproc" >&6
29227 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29228 +$as_echo "$ac_header_preproc" >&6; }
29229  
29230  # So?  What about this header?
29231  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29232    yes:no: )
29233 -    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29234 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29235 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29236 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29237 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29238 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29239 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29240 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29241      ac_header_preproc=yes
29242      ;;
29243    no:yes:* )
29244 -    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29245 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29246 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29247 -echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29248 -    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29249 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29250 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29251 -echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29252 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29253 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29254 -    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29255 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29256 -    (
29257 -      cat <<\_ASBOX
29258 -## ------------------------------------------ ##
29259 -## Report this to the AC_PACKAGE_NAME lists.  ##
29260 -## ------------------------------------------ ##
29261 -_ASBOX
29262 -    ) |
29263 -      sed "s/^/$as_me: WARNING:     /" >&2
29264 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29265 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29266 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29267 +$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29268 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29269 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29270 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29271 +$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29272 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29273 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29274 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29275 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29276 +
29277      ;;
29278  esac
29279 -echo "$as_me:$LINENO: checking for $ac_header" >&5
29280 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29281 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29282 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29283 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29284 +$as_echo_n "checking for $ac_header... " >&6; }
29285 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29286 +  $as_echo_n "(cached) " >&6
29287  else
29288    eval "$as_ac_Header=\$ac_header_preproc"
29289  fi
29290 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29291 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29292 +ac_res=`eval 'as_val=${'$as_ac_Header'}
29293 +                $as_echo "$as_val"'`
29294 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29295 +$as_echo "$ac_res" >&6; }
29296  
29297  fi
29298 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
29299 +as_val=`eval 'as_val=${'$as_ac_Header'}
29300 +                $as_echo "$as_val"'`
29301 +   if test "x$as_val" = x""yes; then
29302    cat >>confdefs.h <<_ACEOF
29303 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29304 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29305  _ACEOF
29306  
29307  fi
29308 @@ -20292,10 +21109,10 @@ fi
29309  done
29310  
29311  
29312 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29313 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
29314 +{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29315 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29316  if test "${ac_cv_c_const+set}" = set; then
29317 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29318 +  $as_echo_n "(cached) " >&6
29319  else
29320    cat >conftest.$ac_ext <<_ACEOF
29321  /* confdefs.h.  */
29322 @@ -20311,10 +21128,10 @@ main ()
29323  #ifndef __cplusplus
29324    /* Ultrix mips cc rejects this.  */
29325    typedef int charset[2];
29326 -  const charset x;
29327 +  const charset cs;
29328    /* SunOS 4.1.1 cc rejects this.  */
29329 -  char const *const *ccp;
29330 -  char **p;
29331 +  char const *const *pcpcc;
29332 +  char **ppc;
29333    /* NEC SVR4.0.2 mips cc rejects this.  */
29334    struct point {int x, y;};
29335    static struct point const zero = {0,0};
29336 @@ -20323,16 +21140,17 @@ main ()
29337       an arm of an if-expression whose if-part is not a constant
29338       expression */
29339    const char *g = "string";
29340 -  ccp = &g + (g ? g-g : 0);
29341 +  pcpcc = &g + (g ? g-g : 0);
29342    /* HPUX 7.0 cc rejects these. */
29343 -  ++ccp;
29344 -  p = (char**) ccp;
29345 -  ccp = (char const *const *) p;
29346 +  ++pcpcc;
29347 +  ppc = (char**) pcpcc;
29348 +  pcpcc = (char const *const *) ppc;
29349    { /* SCO 3.2v4 cc rejects this.  */
29350      char *t;
29351      char const *s = 0 ? (char *) 0 : (char const *) 0;
29352  
29353      *t++ = 0;
29354 +    if (s) return 0;
29355    }
29356    { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29357      int x[] = {25, 17};
29358 @@ -20351,7 +21169,9 @@ main ()
29359    }
29360    { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29361      const int foo = 10;
29362 +    if (!foo) return 0;
29363    }
29364 +  return !cs[0] && !zero.x;
29365  #endif
29366  
29367    ;
29368 @@ -20359,50 +21179,47 @@ main ()
29369  }
29370  _ACEOF
29371  rm -f conftest.$ac_objext
29372 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29373 -  (eval $ac_compile) 2>conftest.er1
29374 +if { (ac_try="$ac_compile"
29375 +case "(($ac_try" in
29376 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 +  *) ac_try_echo=$ac_try;;
29378 +esac
29379 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29380 +$as_echo "$ac_try_echo") >&5
29381 +  (eval "$ac_compile") 2>conftest.er1
29382    ac_status=$?
29383    grep -v '^ *+' conftest.er1 >conftest.err
29384    rm -f conftest.er1
29385    cat conftest.err >&5
29386 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 -  (exit $ac_status); } &&
29388 -        { ac_try='test -z "$ac_c_werror_flag"
29389 -                        || test ! -s conftest.err'
29390 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 -  (eval $ac_try) 2>&5
29392 -  ac_status=$?
29393 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 -  (exit $ac_status); }; } &&
29395 -        { ac_try='test -s conftest.$ac_objext'
29396 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 -  (eval $ac_try) 2>&5
29398 -  ac_status=$?
29399 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 -  (exit $ac_status); }; }; then
29401 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 +  (exit $ac_status); } && {
29403 +        test -z "$ac_c_werror_flag" ||
29404 +        test ! -s conftest.err
29405 +       } && test -s conftest.$ac_objext; then
29406    ac_cv_c_const=yes
29407  else
29408 -  echo "$as_me: failed program was:" >&5
29409 +  $as_echo "$as_me: failed program was:" >&5
29410  sed 's/^/| /' conftest.$ac_ext >&5
29411  
29412 -ac_cv_c_const=no
29413 +       ac_cv_c_const=no
29414  fi
29415 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29416 +
29417 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29418  fi
29419 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29420 -echo "${ECHO_T}$ac_cv_c_const" >&6
29421 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29422 +$as_echo "$ac_cv_c_const" >&6; }
29423  if test $ac_cv_c_const = no; then
29424  
29425  cat >>confdefs.h <<\_ACEOF
29426 -#define const
29427 +#define const /**/
29428  _ACEOF
29429  
29430  fi
29431  
29432 -echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29433 -echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29434 +{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29435 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
29436  if test "${ac_cv_type_uid_t+set}" = set; then
29437 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29438 +  $as_echo_n "(cached) " >&6
29439  else
29440    cat >conftest.$ac_ext <<_ACEOF
29441  /* confdefs.h.  */
29442 @@ -20422,8 +21239,8 @@ fi
29443  rm -f conftest*
29444  
29445  fi
29446 -echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29447 -echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29448 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29449 +$as_echo "$ac_cv_type_uid_t" >&6; }
29450  if test $ac_cv_type_uid_t = no; then
29451  
29452  cat >>confdefs.h <<\_ACEOF
29453 @@ -20437,12 +21254,13 @@ _ACEOF
29454  
29455  fi
29456  
29457 -echo "$as_me:$LINENO: checking for size_t" >&5
29458 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29459 +{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
29460 +$as_echo_n "checking for size_t... " >&6; }
29461  if test "${ac_cv_type_size_t+set}" = set; then
29462 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29463 +  $as_echo_n "(cached) " >&6
29464  else
29465 -  cat >conftest.$ac_ext <<_ACEOF
29466 +  ac_cv_type_size_t=no
29467 +cat >conftest.$ac_ext <<_ACEOF
29468  /* confdefs.h.  */
29469  _ACEOF
29470  cat confdefs.h >>conftest.$ac_ext
29471 @@ -20452,63 +21270,101 @@ $ac_includes_default
29472  int
29473  main ()
29474  {
29475 -if ((size_t *) 0)
29476 -  return 0;
29477  if (sizeof (size_t))
29478 -  return 0;
29479 +       return 0;
29480    ;
29481    return 0;
29482  }
29483  _ACEOF
29484  rm -f conftest.$ac_objext
29485 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29486 -  (eval $ac_compile) 2>conftest.er1
29487 +if { (ac_try="$ac_compile"
29488 +case "(($ac_try" in
29489 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 +  *) ac_try_echo=$ac_try;;
29491 +esac
29492 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29493 +$as_echo "$ac_try_echo") >&5
29494 +  (eval "$ac_compile") 2>conftest.er1
29495    ac_status=$?
29496    grep -v '^ *+' conftest.er1 >conftest.err
29497    rm -f conftest.er1
29498    cat conftest.err >&5
29499 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 -  (exit $ac_status); } &&
29501 -        { ac_try='test -z "$ac_c_werror_flag"
29502 -                        || test ! -s conftest.err'
29503 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29504 -  (eval $ac_try) 2>&5
29505 -  ac_status=$?
29506 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 -  (exit $ac_status); }; } &&
29508 -        { ac_try='test -s conftest.$ac_objext'
29509 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29510 -  (eval $ac_try) 2>&5
29511 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 +  (exit $ac_status); } && {
29513 +        test -z "$ac_c_werror_flag" ||
29514 +        test ! -s conftest.err
29515 +       } && test -s conftest.$ac_objext; then
29516 +  cat >conftest.$ac_ext <<_ACEOF
29517 +/* confdefs.h.  */
29518 +_ACEOF
29519 +cat confdefs.h >>conftest.$ac_ext
29520 +cat >>conftest.$ac_ext <<_ACEOF
29521 +/* end confdefs.h.  */
29522 +$ac_includes_default
29523 +int
29524 +main ()
29525 +{
29526 +if (sizeof ((size_t)))
29527 +         return 0;
29528 +  ;
29529 +  return 0;
29530 +}
29531 +_ACEOF
29532 +rm -f conftest.$ac_objext
29533 +if { (ac_try="$ac_compile"
29534 +case "(($ac_try" in
29535 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536 +  *) ac_try_echo=$ac_try;;
29537 +esac
29538 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29539 +$as_echo "$ac_try_echo") >&5
29540 +  (eval "$ac_compile") 2>conftest.er1
29541    ac_status=$?
29542 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 -  (exit $ac_status); }; }; then
29544 -  ac_cv_type_size_t=yes
29545 +  grep -v '^ *+' conftest.er1 >conftest.err
29546 +  rm -f conftest.er1
29547 +  cat conftest.err >&5
29548 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 +  (exit $ac_status); } && {
29550 +        test -z "$ac_c_werror_flag" ||
29551 +        test ! -s conftest.err
29552 +       } && test -s conftest.$ac_objext; then
29553 +  :
29554  else
29555 -  echo "$as_me: failed program was:" >&5
29556 +  $as_echo "$as_me: failed program was:" >&5
29557  sed 's/^/| /' conftest.$ac_ext >&5
29558  
29559 -ac_cv_type_size_t=no
29560 +       ac_cv_type_size_t=yes
29561  fi
29562 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29563 +
29564 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29565 +else
29566 +  $as_echo "$as_me: failed program was:" >&5
29567 +sed 's/^/| /' conftest.$ac_ext >&5
29568 +
29569 +
29570 +fi
29571 +
29572 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29573  fi
29574 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29575 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
29576 -if test $ac_cv_type_size_t = yes; then
29577 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29578 +$as_echo "$ac_cv_type_size_t" >&6; }
29579 +if test "x$ac_cv_type_size_t" = x""yes; then
29580    :
29581  else
29582  
29583  cat >>confdefs.h <<_ACEOF
29584 -#define size_t unsigned
29585 +#define size_t unsigned int
29586  _ACEOF
29587  
29588  fi
29589  
29590 -echo "$as_me:$LINENO: checking for socklen_t" >&5
29591 -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
29592 +{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
29593 +$as_echo_n "checking for socklen_t... " >&6; }
29594  if test "${ac_cv_type_socklen_t+set}" = set; then
29595 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29596 +  $as_echo_n "(cached) " >&6
29597  else
29598 -  cat >conftest.$ac_ext <<_ACEOF
29599 +  ac_cv_type_socklen_t=no
29600 +cat >conftest.$ac_ext <<_ACEOF
29601  /* confdefs.h.  */
29602  _ACEOF
29603  cat confdefs.h >>conftest.$ac_ext
29604 @@ -20522,48 +21378,89 @@ cat >>conftest.$ac_ext <<_ACEOF
29605  int
29606  main ()
29607  {
29608 -if ((socklen_t *) 0)
29609 -  return 0;
29610  if (sizeof (socklen_t))
29611 -  return 0;
29612 +       return 0;
29613    ;
29614    return 0;
29615  }
29616  _ACEOF
29617  rm -f conftest.$ac_objext
29618 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29619 -  (eval $ac_compile) 2>conftest.er1
29620 +if { (ac_try="$ac_compile"
29621 +case "(($ac_try" in
29622 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 +  *) ac_try_echo=$ac_try;;
29624 +esac
29625 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29626 +$as_echo "$ac_try_echo") >&5
29627 +  (eval "$ac_compile") 2>conftest.er1
29628    ac_status=$?
29629    grep -v '^ *+' conftest.er1 >conftest.err
29630    rm -f conftest.er1
29631    cat conftest.err >&5
29632 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 -  (exit $ac_status); } &&
29634 -        { ac_try='test -z "$ac_c_werror_flag"
29635 -                        || test ! -s conftest.err'
29636 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29637 -  (eval $ac_try) 2>&5
29638 -  ac_status=$?
29639 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 -  (exit $ac_status); }; } &&
29641 -        { ac_try='test -s conftest.$ac_objext'
29642 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29643 -  (eval $ac_try) 2>&5
29644 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 +  (exit $ac_status); } && {
29646 +        test -z "$ac_c_werror_flag" ||
29647 +        test ! -s conftest.err
29648 +       } && test -s conftest.$ac_objext; then
29649 +  cat >conftest.$ac_ext <<_ACEOF
29650 +/* confdefs.h.  */
29651 +_ACEOF
29652 +cat confdefs.h >>conftest.$ac_ext
29653 +cat >>conftest.$ac_ext <<_ACEOF
29654 +/* end confdefs.h.  */
29655 +
29656 +#include <unistd.h>
29657 +#include <sys/socket.h>
29658 +
29659 +
29660 +int
29661 +main ()
29662 +{
29663 +if (sizeof ((socklen_t)))
29664 +         return 0;
29665 +  ;
29666 +  return 0;
29667 +}
29668 +_ACEOF
29669 +rm -f conftest.$ac_objext
29670 +if { (ac_try="$ac_compile"
29671 +case "(($ac_try" in
29672 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673 +  *) ac_try_echo=$ac_try;;
29674 +esac
29675 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29676 +$as_echo "$ac_try_echo") >&5
29677 +  (eval "$ac_compile") 2>conftest.er1
29678    ac_status=$?
29679 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 -  (exit $ac_status); }; }; then
29681 -  ac_cv_type_socklen_t=yes
29682 +  grep -v '^ *+' conftest.er1 >conftest.err
29683 +  rm -f conftest.er1
29684 +  cat conftest.err >&5
29685 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 +  (exit $ac_status); } && {
29687 +        test -z "$ac_c_werror_flag" ||
29688 +        test ! -s conftest.err
29689 +       } && test -s conftest.$ac_objext; then
29690 +  :
29691 +else
29692 +  $as_echo "$as_me: failed program was:" >&5
29693 +sed 's/^/| /' conftest.$ac_ext >&5
29694 +
29695 +       ac_cv_type_socklen_t=yes
29696 +fi
29697 +
29698 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29699  else
29700 -  echo "$as_me: failed program was:" >&5
29701 +  $as_echo "$as_me: failed program was:" >&5
29702  sed 's/^/| /' conftest.$ac_ext >&5
29703  
29704 -ac_cv_type_socklen_t=no
29705 +
29706  fi
29707 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29708 +
29709 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29710  fi
29711 -echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29712 -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
29713 -if test $ac_cv_type_socklen_t = yes; then
29714 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29715 +$as_echo "$ac_cv_type_socklen_t" >&6; }
29716 +if test "x$ac_cv_type_socklen_t" = x""yes; then
29717  
29718  cat >>confdefs.h <<_ACEOF
29719  #define HAVE_SOCKLEN_T 1
29720 @@ -20585,7 +21482,7 @@ cat >>confdefs.h <<_ACEOF
29721  _ACEOF
29722  
29723  
29724 -                              ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
29725 +ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
29726  
29727  cat >confcache <<\_ACEOF
29728  # This file is a shell script that caches the results of configure
29729 @@ -20605,39 +21502,59 @@ _ACEOF
29730  
29731  # The following way of writing the cache mishandles newlines in values,
29732  # but we know of no workaround that is simple, portable, and efficient.
29733 -# So, don't put newlines in cache variables' values.
29734 +# So, we kill variables containing newlines.
29735  # Ultrix sh set writes to stderr and can't be redirected directly,
29736  # and sets the high bit in the cache file unless we assign to the vars.
29737 -{
29738 +(
29739 +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29740 +    eval ac_val=\$$ac_var
29741 +    case $ac_val in #(
29742 +    *${as_nl}*)
29743 +      case $ac_var in #(
29744 +      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29745 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29746 +      esac
29747 +      case $ac_var in #(
29748 +      _ | IFS | as_nl) ;; #(
29749 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29750 +      *) $as_unset $ac_var ;;
29751 +      esac ;;
29752 +    esac
29753 +  done
29754 +
29755    (set) 2>&1 |
29756 -    case `(ac_space=' '; set | grep ac_space) 2>&1` in
29757 -    *ac_space=\ *)
29758 +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
29759 +    *${as_nl}ac_space=\ *)
29760        # `set' does not quote correctly, so add quotes (double-quote
29761        # substitution turns \\\\ into \\, and sed turns \\ into \).
29762        sed -n \
29763         "s/'/'\\\\''/g;
29764           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29765 -      ;;
29766 +      ;; #(
29767      *)
29768        # `set' quotes correctly as required by POSIX, so do not add quotes.
29769 -      sed -n \
29770 -       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29771 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29772        ;;
29773 -    esac;
29774 -} |
29775 +    esac |
29776 +    sort
29777 +) |
29778    sed '
29779 +     /^ac_cv_env_/b end
29780       t clear
29781 -     : clear
29782 +     :clear
29783       s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29784       t end
29785 -     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29786 -     : end' >>confcache
29787 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
29788 -  if test -w $cache_file; then
29789 -    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29790 +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29791 +     :end' >>confcache
29792 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29793 +  if test -w "$cache_file"; then
29794 +    test "x$cache_file" != "x/dev/null" &&
29795 +      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29796 +$as_echo "$as_me: updating cache $cache_file" >&6;}
29797      cat confcache >$cache_file
29798    else
29799 -    echo "not updating unwritable cache $cache_file"
29800 +    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29801 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29802    fi
29803  fi
29804  rm -f confcache
29805 @@ -20646,32 +21563,18 @@ test "x$prefix" = xNONE && prefix=$ac_default_prefix
29806  # Let make expand exec_prefix.
29807  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29808  
29809 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
29810 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29811 -# trailing colons and then remove the whole line if VPATH becomes empty
29812 -# (actually we leave an empty line to preserve line numbers).
29813 -if test "x$srcdir" = x.; then
29814 -  ac_vpsub='/^[         ]*VPATH[        ]*=/{
29815 -s/:*\$(srcdir):*/:/;
29816 -s/:*\${srcdir}:*/:/;
29817 -s/:*@srcdir@:*/:/;
29818 -s/^\([^=]*=[    ]*\):*/\1/;
29819 -s/:*$//;
29820 -s/^[^=]*=[      ]*$//;
29821 -}'
29822 -fi
29823 -
29824  DEFS=-DHAVE_CONFIG_H
29825  
29826  ac_libobjs=
29827  ac_ltlibobjs=
29828  for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29829    # 1. Remove the extension, and $U if already installed.
29830 -  ac_i=`echo "$ac_i" |
29831 -        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29832 -  # 2. Add them.
29833 -  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29834 -  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29835 +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29836 +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29837 +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29838 +  #    will be set to the directory where LIBOBJS objects are built.
29839 +  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29840 +  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29841  done
29842  LIBOBJS=$ac_libobjs
29843  
29844 @@ -20679,47 +21582,48 @@ LTLIBOBJS=$ac_ltlibobjs
29845  
29846  
29847  if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29848 -  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29849 +  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29850  Usually this means the macro was only invoked conditionally." >&5
29851 -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29852 +$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29853  Usually this means the macro was only invoked conditionally." >&2;}
29854     { (exit 1); exit 1; }; }
29855  fi
29856  if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29857 -  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29858 +  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29859  Usually this means the macro was only invoked conditionally." >&5
29860 -echo "$as_me: error: conditional \"AMDEP\" was never defined.
29861 +$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
29862  Usually this means the macro was only invoked conditionally." >&2;}
29863     { (exit 1); exit 1; }; }
29864  fi
29865  if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29866 -  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29867 +  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29868  Usually this means the macro was only invoked conditionally." >&5
29869 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29870 +$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29871  Usually this means the macro was only invoked conditionally." >&2;}
29872     { (exit 1); exit 1; }; }
29873  fi
29874  if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29875 -  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29876 +  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29877  Usually this means the macro was only invoked conditionally." >&5
29878 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29879 +$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29880  Usually this means the macro was only invoked conditionally." >&2;}
29881     { (exit 1); exit 1; }; }
29882  fi
29883  if test -z "${RENAME_TRUE}" && test -z "${RENAME_FALSE}"; then
29884 -  { { echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
29885 +  { { $as_echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
29886  Usually this means the macro was only invoked conditionally." >&5
29887 -echo "$as_me: error: conditional \"RENAME\" was never defined.
29888 +$as_echo "$as_me: error: conditional \"RENAME\" was never defined.
29889  Usually this means the macro was only invoked conditionally." >&2;}
29890     { (exit 1); exit 1; }; }
29891  fi
29892  
29893  : ${CONFIG_STATUS=./config.status}
29894 +ac_write_fail=0
29895  ac_clean_files_save=$ac_clean_files
29896  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29897 -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29898 -echo "$as_me: creating $CONFIG_STATUS" >&6;}
29899 -cat >$CONFIG_STATUS <<_ACEOF
29900 +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29901 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29902 +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29903  #! $SHELL
29904  # Generated by $as_me.
29905  # Run this file to recreate the current configuration.
29906 @@ -20732,22 +21636,78 @@ ac_cs_silent=false
29907  SHELL=\${CONFIG_SHELL-$SHELL}
29908  _ACEOF
29909  
29910 -cat >>$CONFIG_STATUS <<\_ACEOF
29911 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29912  ## --------------------- ##
29913  ## M4sh Initialization.  ##
29914  ## --------------------- ##
29915  
29916 -# Be Bourne compatible
29917 +# Be more Bourne compatible
29918 +DUALCASE=1; export DUALCASE # for MKS sh
29919  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29920    emulate sh
29921    NULLCMD=:
29922 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29923 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29924    # is contrary to our usage.  Disable this feature.
29925    alias -g '${1+"$@"}'='"$@"'
29926 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29927 -  set -o posix
29928 +  setopt NO_GLOB_SUBST
29929 +else
29930 +  case `(set -o) 2>/dev/null` in
29931 +  *posix*) set -o posix ;;
29932 +esac
29933 +
29934 +fi
29935 +
29936 +
29937 +
29938 +
29939 +# PATH needs CR
29940 +# Avoid depending upon Character Ranges.
29941 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29942 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29943 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29944 +as_cr_digits='0123456789'
29945 +as_cr_alnum=$as_cr_Letters$as_cr_digits
29946 +
29947 +as_nl='
29948 +'
29949 +export as_nl
29950 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
29951 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29952 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29953 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29954 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29955 +  as_echo='printf %s\n'
29956 +  as_echo_n='printf %s'
29957 +else
29958 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29959 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29960 +    as_echo_n='/usr/ucb/echo -n'
29961 +  else
29962 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29963 +    as_echo_n_body='eval
29964 +      arg=$1;
29965 +      case $arg in
29966 +      *"$as_nl"*)
29967 +       expr "X$arg" : "X\\(.*\\)$as_nl";
29968 +       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29969 +      esac;
29970 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29971 +    '
29972 +    export as_echo_n_body
29973 +    as_echo_n='sh -c $as_echo_n_body as_echo'
29974 +  fi
29975 +  export as_echo_body
29976 +  as_echo='sh -c $as_echo_body as_echo'
29977 +fi
29978 +
29979 +# The user is always right.
29980 +if test "${PATH_SEPARATOR+set}" != set; then
29981 +  PATH_SEPARATOR=:
29982 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29983 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29984 +      PATH_SEPARATOR=';'
29985 +  }
29986  fi
29987 -DUALCASE=1; export DUALCASE # for MKS sh
29988  
29989  # Support unset when possible.
29990  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29991 @@ -20757,33 +21717,60 @@ else
29992  fi
29993  
29994  
29995 +# IFS
29996 +# We need space, tab and new line, in precisely that order.  Quoting is
29997 +# there to prevent editors from complaining about space-tab.
29998 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
29999 +# splitting by setting IFS to empty value.)
30000 +IFS=" ""       $as_nl"
30001 +
30002 +# Find who we are.  Look in the path if we contain no directory separator.
30003 +case $0 in
30004 +  *[\\/]* ) as_myself=$0 ;;
30005 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30006 +for as_dir in $PATH
30007 +do
30008 +  IFS=$as_save_IFS
30009 +  test -z "$as_dir" && as_dir=.
30010 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30011 +done
30012 +IFS=$as_save_IFS
30013 +
30014 +     ;;
30015 +esac
30016 +# We did not find ourselves, most probably we were run as `sh COMMAND'
30017 +# in which case we are not to be found in the path.
30018 +if test "x$as_myself" = x; then
30019 +  as_myself=$0
30020 +fi
30021 +if test ! -f "$as_myself"; then
30022 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30023 +  { (exit 1); exit 1; }
30024 +fi
30025 +
30026  # Work around bugs in pre-3.0 UWIN ksh.
30027 -$as_unset ENV MAIL MAILPATH
30028 +for as_var in ENV MAIL MAILPATH
30029 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30030 +done
30031  PS1='$ '
30032  PS2='> '
30033  PS4='+ '
30034  
30035  # NLS nuisances.
30036 -for as_var in \
30037 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30038 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30039 -  LC_TELEPHONE LC_TIME
30040 -do
30041 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30042 -    eval $as_var=C; export $as_var
30043 -  else
30044 -    $as_unset $as_var
30045 -  fi
30046 -done
30047 +LC_ALL=C
30048 +export LC_ALL
30049 +LANGUAGE=C
30050 +export LANGUAGE
30051  
30052  # Required to use basename.
30053 -if expr a : '\(a\)' >/dev/null 2>&1; then
30054 +if expr a : '\(a\)' >/dev/null 2>&1 &&
30055 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30056    as_expr=expr
30057  else
30058    as_expr=false
30059  fi
30060  
30061 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30062 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30063    as_basename=basename
30064  else
30065    as_basename=false
30066 @@ -20791,159 +21778,122 @@ fi
30067  
30068  
30069  # Name of the executable.
30070 -as_me=`$as_basename "$0" ||
30071 +as_me=`$as_basename -- "$0" ||
30072  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30073          X"$0" : 'X\(//\)$' \| \
30074 -        X"$0" : 'X\(/\)$' \| \
30075 -        .     : '\(.\)' 2>/dev/null ||
30076 -echo X/"$0" |
30077 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30078 -         /^X\/\(\/\/\)$/{ s//\1/; q; }
30079 -         /^X\/\(\/\).*/{ s//\1/; q; }
30080 -         s/.*/./; q'`
30081 -
30082 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30083 +$as_echo X/"$0" |
30084 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
30085 +           s//\1/
30086 +           q
30087 +         }
30088 +         /^X\/\(\/\/\)$/{
30089 +           s//\1/
30090 +           q
30091 +         }
30092 +         /^X\/\(\/\).*/{
30093 +           s//\1/
30094 +           q
30095 +         }
30096 +         s/.*/./; q'`
30097  
30098 -# PATH needs CR, and LINENO needs CR and PATH.
30099 -# Avoid depending upon Character Ranges.
30100 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30101 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30102 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30103 -as_cr_digits='0123456789'
30104 -as_cr_alnum=$as_cr_Letters$as_cr_digits
30105 +# CDPATH.
30106 +$as_unset CDPATH
30107  
30108 -# The user is always right.
30109 -if test "${PATH_SEPARATOR+set}" != set; then
30110 -  echo "#! /bin/sh" >conf$$.sh
30111 -  echo  "exit 0"   >>conf$$.sh
30112 -  chmod +x conf$$.sh
30113 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30114 -    PATH_SEPARATOR=';'
30115 -  else
30116 -    PATH_SEPARATOR=:
30117 -  fi
30118 -  rm -f conf$$.sh
30119 -fi
30120  
30121  
30122    as_lineno_1=$LINENO
30123    as_lineno_2=$LINENO
30124 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30125    test "x$as_lineno_1" != "x$as_lineno_2" &&
30126 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30127 -  # Find who we are.  Look in the path if we contain no path at all
30128 -  # relative or not.
30129 -  case $0 in
30130 -    *[\\/]* ) as_myself=$0 ;;
30131 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30132 -for as_dir in $PATH
30133 -do
30134 -  IFS=$as_save_IFS
30135 -  test -z "$as_dir" && as_dir=.
30136 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30137 -done
30138 -
30139 -       ;;
30140 -  esac
30141 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
30142 -  # in which case we are not to be found in the path.
30143 -  if test "x$as_myself" = x; then
30144 -    as_myself=$0
30145 -  fi
30146 -  if test ! -f "$as_myself"; then
30147 -    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30148 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30149 -   { (exit 1); exit 1; }; }
30150 -  fi
30151 -  case $CONFIG_SHELL in
30152 -  '')
30153 -    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30154 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30155 -do
30156 -  IFS=$as_save_IFS
30157 -  test -z "$as_dir" && as_dir=.
30158 -  for as_base in sh bash ksh sh5; do
30159 -        case $as_dir in
30160 -        /*)
30161 -          if ("$as_dir/$as_base" -c '
30162 -  as_lineno_1=$LINENO
30163 -  as_lineno_2=$LINENO
30164 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30165 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
30166 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30167 -            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30168 -            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30169 -            CONFIG_SHELL=$as_dir/$as_base
30170 -            export CONFIG_SHELL
30171 -            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30172 -          fi;;
30173 -        esac
30174 -       done
30175 -done
30176 -;;
30177 -  esac
30178 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30179  
30180    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30181    # uniformly replaced by the line number.  The first 'sed' inserts a
30182 -  # line-number line before each line; the second 'sed' does the real
30183 -  # work.  The second script uses 'N' to pair each line-number line
30184 -  # with the numbered line, and appends trailing '-' during
30185 -  # substitution so that $LINENO is not a special case at line end.
30186 +  # line-number line after each line using $LINENO; the second 'sed'
30187 +  # does the real work.  The second script uses 'N' to pair each
30188 +  # line-number line with the line containing $LINENO, and appends
30189 +  # trailing '-' during substitution so that $LINENO is not a special
30190 +  # case at line end.
30191    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30192 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30193 -  sed '=' <$as_myself |
30194 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
30195 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
30196 +  sed -n '
30197 +    p
30198 +    /[$]LINENO/=
30199 +  ' <$as_myself |
30200      sed '
30201 +      s/[$]LINENO.*/&-/
30202 +      t lineno
30203 +      b
30204 +      :lineno
30205        N
30206 -      s,$,-,
30207 -      : loop
30208 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30209 +      :loop
30210 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30211        t loop
30212 -      s,-$,,
30213 -      s,^['$as_cr_digits']*\n,,
30214 +      s/-\n.*//
30215      ' >$as_me.lineno &&
30216 -  chmod +x $as_me.lineno ||
30217 -    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30218 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30219 +  chmod +x "$as_me.lineno" ||
30220 +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30221     { (exit 1); exit 1; }; }
30222  
30223    # Don't try to exec as it changes $[0], causing all sort of problems
30224    # (the dirname of $[0] is not the place where we might find the
30225 -  # original and so on.  Autoconf is especially sensible to this).
30226 -  . ./$as_me.lineno
30227 +  # original and so on.  Autoconf is especially sensitive to this).
30228 +  . "./$as_me.lineno"
30229    # Exit status is that of the last command.
30230    exit
30231  }
30232  
30233  
30234 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30235 -  *c*,-n*) ECHO_N= ECHO_C='
30236 -' ECHO_T='     ' ;;
30237 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30238 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30239 -esac
30240 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30241 +  as_dirname=dirname
30242 +else
30243 +  as_dirname=false
30244 +fi
30245  
30246 -if expr a : '\(a\)' >/dev/null 2>&1; then
30247 +ECHO_C= ECHO_N= ECHO_T=
30248 +case `echo -n x` in
30249 +-n*)
30250 +  case `echo 'x\c'` in
30251 +  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
30252 +  *)   ECHO_C='\c';;
30253 +  esac;;
30254 +*)
30255 +  ECHO_N='-n';;
30256 +esac
30257 +if expr a : '\(a\)' >/dev/null 2>&1 &&
30258 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30259    as_expr=expr
30260  else
30261    as_expr=false
30262  fi
30263  
30264  rm -f conf$$ conf$$.exe conf$$.file
30265 -echo >conf$$.file
30266 -if ln -s conf$$.file conf$$ 2>/dev/null; then
30267 -  # We could just check for DJGPP; but this test a) works b) is more generic
30268 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30269 -  if test -f conf$$.exe; then
30270 -    # Don't use ln at all; we don't have any links
30271 -    as_ln_s='cp -p'
30272 -  else
30273 +if test -d conf$$.dir; then
30274 +  rm -f conf$$.dir/conf$$.file
30275 +else
30276 +  rm -f conf$$.dir
30277 +  mkdir conf$$.dir 2>/dev/null
30278 +fi
30279 +if (echo >conf$$.file) 2>/dev/null; then
30280 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
30281      as_ln_s='ln -s'
30282 +    # ... but there are two gotchas:
30283 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30284 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30285 +    # In both cases, we have to default to `cp -p'.
30286 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30287 +      as_ln_s='cp -p'
30288 +  elif ln conf$$.file conf$$ 2>/dev/null; then
30289 +    as_ln_s=ln
30290 +  else
30291 +    as_ln_s='cp -p'
30292    fi
30293 -elif ln conf$$.file conf$$ 2>/dev/null; then
30294 -  as_ln_s=ln
30295  else
30296    as_ln_s='cp -p'
30297  fi
30298 -rm -f conf$$ conf$$.exe conf$$.file
30299 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30300 +rmdir conf$$.dir 2>/dev/null
30301  
30302  if mkdir -p . 2>/dev/null; then
30303    as_mkdir_p=:
30304 @@ -20952,7 +21902,28 @@ else
30305    as_mkdir_p=false
30306  fi
30307  
30308 -as_executable_p="test -f"
30309 +if test -x / >/dev/null 2>&1; then
30310 +  as_test_x='test -x'
30311 +else
30312 +  if ls -dL / >/dev/null 2>&1; then
30313 +    as_ls_L_option=L
30314 +  else
30315 +    as_ls_L_option=
30316 +  fi
30317 +  as_test_x='
30318 +    eval sh -c '\''
30319 +      if test -d "$1"; then
30320 +       test -d "$1/.";
30321 +      else
30322 +       case $1 in
30323 +       -*)set "./$1";;
30324 +       esac;
30325 +       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30326 +       ???[sx]*):;;*)false;;esac;fi
30327 +    '\'' sh
30328 +  '
30329 +fi
30330 +as_executable_p=$as_test_x
30331  
30332  # Sed expression to map a string onto a valid CPP name.
30333  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30334 @@ -20961,31 +21932,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30335  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30336  
30337  
30338 -# IFS
30339 -# We need space, tab and new line, in precisely that order.
30340 -as_nl='
30341 -'
30342 -IFS="  $as_nl"
30343 -
30344 -# CDPATH.
30345 -$as_unset CDPATH
30346 -
30347  exec 6>&1
30348  
30349 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
30350 +# Save the log message, to keep $[0] and so on meaningful, and to
30351  # report actual input values of CONFIG_FILES etc. instead of their
30352 -# values after options handling.  Logging --version etc. is OK.
30353 -exec 5>>config.log
30354 -{
30355 -  echo
30356 -  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30357 -## Running $as_me. ##
30358 -_ASBOX
30359 -} >&5
30360 -cat >&5 <<_CSEOF
30361 -
30362 +# values after options handling.
30363 +ac_log="
30364  This file was extended by $as_me, which was
30365 -generated by GNU Autoconf 2.59.  Invocation command line was
30366 +generated by GNU Autoconf 2.63.  Invocation command line was
30367  
30368    CONFIG_FILES    = $CONFIG_FILES
30369    CONFIG_HEADERS  = $CONFIG_HEADERS
30370 @@ -20993,45 +21947,45 @@ generated by GNU Autoconf 2.59.  Invocation command line was
30371    CONFIG_COMMANDS = $CONFIG_COMMANDS
30372    $ $0 $@
30373  
30374 -_CSEOF
30375 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30376 -echo >&5
30377 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
30378 +"
30379 +
30380  _ACEOF
30381  
30382 -# Files that config.status was made for.
30383 -if test -n "$ac_config_files"; then
30384 -  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30385 -fi
30386 +case $ac_config_files in *"
30387 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
30388 +esac
30389  
30390 -if test -n "$ac_config_headers"; then
30391 -  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30392 -fi
30393 +case $ac_config_headers in *"
30394 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30395 +esac
30396  
30397 -if test -n "$ac_config_links"; then
30398 -  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30399 -fi
30400  
30401 -if test -n "$ac_config_commands"; then
30402 -  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30403 -fi
30404 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30405 +# Files that config.status was made for.
30406 +config_files="$ac_config_files"
30407 +config_headers="$ac_config_headers"
30408 +config_commands="$ac_config_commands"
30409  
30410 -cat >>$CONFIG_STATUS <<\_ACEOF
30411 +_ACEOF
30412  
30413 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30414  ac_cs_usage="\
30415  \`$as_me' instantiates files from templates according to the
30416  current configuration.
30417  
30418 -Usage: $0 [OPTIONS] [FILE]...
30419 +Usage: $0 [OPTION]... [FILE]...
30420  
30421    -h, --help       print this help, then exit
30422 -  -V, --version    print version number, then exit
30423 -  -q, --quiet      do not print progress messages
30424 +  -V, --version    print version number and configuration settings, then exit
30425 +  -q, --quiet, --silent
30426 +                   do not print progress messages
30427    -d, --debug      don't remove temporary files
30428        --recheck    update $as_me by reconfiguring in the same conditions
30429 -  --file=FILE[:TEMPLATE]
30430 -                  instantiate the configuration file FILE
30431 -  --header=FILE[:TEMPLATE]
30432 -                  instantiate the configuration header FILE
30433 +      --file=FILE[:TEMPLATE]
30434 +                   instantiate the configuration file FILE
30435 +      --header=FILE[:TEMPLATE]
30436 +                   instantiate the configuration header FILE
30437  
30438  Configuration files:
30439  $config_files
30440 @@ -21043,83 +21997,83 @@ Configuration commands:
30441  $config_commands
30442  
30443  Report bugs to <bug-autoconf@gnu.org>."
30444 -_ACEOF
30445  
30446 -cat >>$CONFIG_STATUS <<_ACEOF
30447 +_ACEOF
30448 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30449  ac_cs_version="\\
30450  config.status
30451 -configured by $0, generated by GNU Autoconf 2.59,
30452 -  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30453 +configured by $0, generated by GNU Autoconf 2.63,
30454 +  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30455  
30456 -Copyright (C) 2003 Free Software Foundation, Inc.
30457 +Copyright (C) 2008 Free Software Foundation, Inc.
30458  This config.status script is free software; the Free Software Foundation
30459  gives unlimited permission to copy, distribute and modify it."
30460 -srcdir=$srcdir
30461 -INSTALL="$INSTALL"
30462 +
30463 +ac_pwd='$ac_pwd'
30464 +srcdir='$srcdir'
30465 +INSTALL='$INSTALL'
30466 +AWK='$AWK'
30467 +test -n "\$AWK" || AWK=awk
30468  _ACEOF
30469  
30470 -cat >>$CONFIG_STATUS <<\_ACEOF
30471 -# If no file are specified by the user, then we need to provide default
30472 -# value.  By we need to know if files were specified by the user.
30473 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30474 +# The default lists apply if the user does not specify any file.
30475  ac_need_defaults=:
30476  while test $# != 0
30477  do
30478    case $1 in
30479    --*=*)
30480 -    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30481 -    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30482 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30483 +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30484      ac_shift=:
30485      ;;
30486 -  -*)
30487 +  *)
30488      ac_option=$1
30489      ac_optarg=$2
30490      ac_shift=shift
30491      ;;
30492 -  *) # This is not an option, so the user has probably given explicit
30493 -     # arguments.
30494 -     ac_option=$1
30495 -     ac_need_defaults=false;;
30496    esac
30497  
30498    case $ac_option in
30499    # Handling of the options.
30500 -_ACEOF
30501 -cat >>$CONFIG_STATUS <<\_ACEOF
30502    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30503      ac_cs_recheck=: ;;
30504 -  --version | --vers* | -V )
30505 -    echo "$ac_cs_version"; exit 0 ;;
30506 -  --he | --h)
30507 -    # Conflict between --help and --header
30508 -    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30509 -Try \`$0 --help' for more information." >&5
30510 -echo "$as_me: error: ambiguous option: $1
30511 -Try \`$0 --help' for more information." >&2;}
30512 -   { (exit 1); exit 1; }; };;
30513 -  --help | --hel | -h )
30514 -    echo "$ac_cs_usage"; exit 0 ;;
30515 -  --debug | --d* | -d )
30516 +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30517 +    $as_echo "$ac_cs_version"; exit ;;
30518 +  --debug | --debu | --deb | --de | --d | -d )
30519      debug=: ;;
30520    --file | --fil | --fi | --f )
30521      $ac_shift
30522 -    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30523 +    case $ac_optarg in
30524 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30525 +    esac
30526 +    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30527      ac_need_defaults=false;;
30528    --header | --heade | --head | --hea )
30529      $ac_shift
30530 -    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30531 +    case $ac_optarg in
30532 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30533 +    esac
30534 +    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30535      ac_need_defaults=false;;
30536 +  --he | --h)
30537 +    # Conflict between --help and --header
30538 +    { $as_echo "$as_me: error: ambiguous option: $1
30539 +Try \`$0 --help' for more information." >&2
30540 +   { (exit 1); exit 1; }; };;
30541 +  --help | --hel | -h )
30542 +    $as_echo "$ac_cs_usage"; exit ;;
30543    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30544    | -silent | --silent | --silen | --sile | --sil | --si | --s)
30545      ac_cs_silent=: ;;
30546  
30547    # This is an error.
30548 -  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30549 -Try \`$0 --help' for more information." >&5
30550 -echo "$as_me: error: unrecognized option: $1
30551 -Try \`$0 --help' for more information." >&2;}
30552 +  -*) { $as_echo "$as_me: error: unrecognized option: $1
30553 +Try \`$0 --help' for more information." >&2
30554     { (exit 1); exit 1; }; } ;;
30555  
30556 -  *) ac_config_targets="$ac_config_targets $1" ;;
30557 +  *) ac_config_targets="$ac_config_targets $1"
30558 +     ac_need_defaults=false ;;
30559  
30560    esac
30561    shift
30562 @@ -21133,41 +22087,55 @@ if $ac_cs_silent; then
30563  fi
30564  
30565  _ACEOF
30566 -cat >>$CONFIG_STATUS <<_ACEOF
30567 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30568  if \$ac_cs_recheck; then
30569 -  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30570 -  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30571 +  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30572 +  shift
30573 +  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30574 +  CONFIG_SHELL='$SHELL'
30575 +  export CONFIG_SHELL
30576 +  exec "\$@"
30577  fi
30578  
30579  _ACEOF
30580 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30581 +exec 5>>config.log
30582 +{
30583 +  echo
30584 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30585 +## Running $as_me. ##
30586 +_ASBOX
30587 +  $as_echo "$ac_log"
30588 +} >&5
30589  
30590 -cat >>$CONFIG_STATUS <<_ACEOF
30591 +_ACEOF
30592 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30593  #
30594 -# INIT-COMMANDS section.
30595 +# INIT-COMMANDS
30596  #
30597 -
30598  AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30599  
30600  _ACEOF
30601  
30602 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30603  
30604 -
30605 -cat >>$CONFIG_STATUS <<\_ACEOF
30606 +# Handling of arguments.
30607  for ac_config_target in $ac_config_targets
30608  do
30609 -  case "$ac_config_target" in
30610 -  # Handling of arguments.
30611 -  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30612 -  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30613 -  "src/version.c" ) CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
30614 -  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30615 -  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30616 -  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30617 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30618 +  case $ac_config_target in
30619 +    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30620 +    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30621 +    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30622 +    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30623 +    "src/version.c") CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
30624 +
30625 +  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30626 +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30627     { (exit 1); exit 1; }; };;
30628    esac
30629  done
30630  
30631 +
30632  # If the user did not use the arguments to specify the items to instantiate,
30633  # then the envvar interface is used.  Set only those that are not.
30634  # We use the long form for the default assignment because of an extremely
30635 @@ -21179,750 +22147,635 @@ if $ac_need_defaults; then
30636  fi
30637  
30638  # Have a temporary directory for convenience.  Make it in the build tree
30639 -# simply because there is no reason to put it here, and in addition,
30640 +# simply because there is no reason against having it here, and in addition,
30641  # creating and moving files from /tmp can sometimes cause problems.
30642 -# Create a temporary directory, and hook for its removal unless debugging.
30643 +# Hook for its removal unless debugging.
30644 +# Note that there is a small window in which the directory will not be cleaned:
30645 +# after its creation but before its name has been assigned to `$tmp'.
30646  $debug ||
30647  {
30648 -  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30649 +  tmp=
30650 +  trap 'exit_status=$?
30651 +  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30652 +' 0
30653    trap '{ (exit 1); exit 1; }' 1 2 13 15
30654  }
30655 -
30656  # Create a (secure) tmp directory for tmp files.
30657  
30658  {
30659 -  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30660 +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30661    test -n "$tmp" && test -d "$tmp"
30662  }  ||
30663  {
30664 -  tmp=./confstat$$-$RANDOM
30665 -  (umask 077 && mkdir $tmp)
30666 +  tmp=./conf$$-$RANDOM
30667 +  (umask 077 && mkdir "$tmp")
30668  } ||
30669  {
30670 -   echo "$me: cannot create a temporary directory in ." >&2
30671 +   $as_echo "$as_me: cannot create a temporary directory in ." >&2
30672     { (exit 1); exit 1; }
30673  }
30674  
30675 +# Set up the scripts for CONFIG_FILES section.
30676 +# No need to generate them if there are no CONFIG_FILES.
30677 +# This happens for instance with `./config.status config.h'.
30678 +if test -n "$CONFIG_FILES"; then
30679 +
30680 +
30681 +ac_cr='\r'
30682 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30683 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30684 +  ac_cs_awk_cr='\\r'
30685 +else
30686 +  ac_cs_awk_cr=$ac_cr
30687 +fi
30688 +
30689 +echo 'BEGIN {' >"$tmp/subs1.awk" &&
30690  _ACEOF
30691  
30692 -cat >>$CONFIG_STATUS <<_ACEOF
30693  
30694 -#
30695 -# CONFIG_FILES section.
30696 -#
30697 +{
30698 +  echo "cat >conf$$subs.awk <<_ACEOF" &&
30699 +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30700 +  echo "_ACEOF"
30701 +} >conf$$subs.sh ||
30702 +  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30703 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30704 +   { (exit 1); exit 1; }; }
30705 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30706 +ac_delim='%!_!# '
30707 +for ac_last_try in false false false false false :; do
30708 +  . ./conf$$subs.sh ||
30709 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30710 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30711 +   { (exit 1); exit 1; }; }
30712  
30713 -# No need to generate the scripts if there are no CONFIG_FILES.
30714 -# This happens for instance when ./config.status config.h
30715 -if test -n "\$CONFIG_FILES"; then
30716 -  # Protect against being on the right side of a sed subst in config.status.
30717 -  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30718 -   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30719 -s,@SHELL@,$SHELL,;t t
30720 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30721 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30722 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30723 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30724 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30725 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30726 -s,@exec_prefix@,$exec_prefix,;t t
30727 -s,@prefix@,$prefix,;t t
30728 -s,@program_transform_name@,$program_transform_name,;t t
30729 -s,@bindir@,$bindir,;t t
30730 -s,@sbindir@,$sbindir,;t t
30731 -s,@libexecdir@,$libexecdir,;t t
30732 -s,@datadir@,$datadir,;t t
30733 -s,@sysconfdir@,$sysconfdir,;t t
30734 -s,@sharedstatedir@,$sharedstatedir,;t t
30735 -s,@localstatedir@,$localstatedir,;t t
30736 -s,@libdir@,$libdir,;t t
30737 -s,@includedir@,$includedir,;t t
30738 -s,@oldincludedir@,$oldincludedir,;t t
30739 -s,@infodir@,$infodir,;t t
30740 -s,@mandir@,$mandir,;t t
30741 -s,@build_alias@,$build_alias,;t t
30742 -s,@host_alias@,$host_alias,;t t
30743 -s,@target_alias@,$target_alias,;t t
30744 -s,@DEFS@,$DEFS,;t t
30745 -s,@ECHO_C@,$ECHO_C,;t t
30746 -s,@ECHO_N@,$ECHO_N,;t t
30747 -s,@ECHO_T@,$ECHO_T,;t t
30748 -s,@LIBS@,$LIBS,;t t
30749 -s,@build@,$build,;t t
30750 -s,@build_cpu@,$build_cpu,;t t
30751 -s,@build_vendor@,$build_vendor,;t t
30752 -s,@build_os@,$build_os,;t t
30753 -s,@host@,$host,;t t
30754 -s,@host_cpu@,$host_cpu,;t t
30755 -s,@host_vendor@,$host_vendor,;t t
30756 -s,@host_os@,$host_os,;t t
30757 -s,@target@,$target,;t t
30758 -s,@target_cpu@,$target_cpu,;t t
30759 -s,@target_vendor@,$target_vendor,;t t
30760 -s,@target_os@,$target_os,;t t
30761 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30762 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30763 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30764 -s,@CYGPATH_W@,$CYGPATH_W,;t t
30765 -s,@PACKAGE@,$PACKAGE,;t t
30766 -s,@VERSION@,$VERSION,;t t
30767 -s,@ACLOCAL@,$ACLOCAL,;t t
30768 -s,@AUTOCONF@,$AUTOCONF,;t t
30769 -s,@AUTOMAKE@,$AUTOMAKE,;t t
30770 -s,@AUTOHEADER@,$AUTOHEADER,;t t
30771 -s,@MAKEINFO@,$MAKEINFO,;t t
30772 -s,@install_sh@,$install_sh,;t t
30773 -s,@STRIP@,$STRIP,;t t
30774 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30775 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30776 -s,@mkdir_p@,$mkdir_p,;t t
30777 -s,@AWK@,$AWK,;t t
30778 -s,@SET_MAKE@,$SET_MAKE,;t t
30779 -s,@am__leading_dot@,$am__leading_dot,;t t
30780 -s,@AMTAR@,$AMTAR,;t t
30781 -s,@am__tar@,$am__tar,;t t
30782 -s,@am__untar@,$am__untar,;t t
30783 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
30784 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
30785 -s,@MAINT@,$MAINT,;t t
30786 -s,@CC@,$CC,;t t
30787 -s,@CFLAGS@,$CFLAGS,;t t
30788 -s,@LDFLAGS@,$LDFLAGS,;t t
30789 -s,@CPPFLAGS@,$CPPFLAGS,;t t
30790 -s,@ac_ct_CC@,$ac_ct_CC,;t t
30791 -s,@EXEEXT@,$EXEEXT,;t t
30792 -s,@OBJEXT@,$OBJEXT,;t t
30793 -s,@DEPDIR@,$DEPDIR,;t t
30794 -s,@am__include@,$am__include,;t t
30795 -s,@am__quote@,$am__quote,;t t
30796 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
30797 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
30798 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
30799 -s,@CCDEPMODE@,$CCDEPMODE,;t t
30800 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
30801 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
30802 -s,@EGREP@,$EGREP,;t t
30803 -s,@LN_S@,$LN_S,;t t
30804 -s,@ECHO@,$ECHO,;t t
30805 -s,@AR@,$AR,;t t
30806 -s,@ac_ct_AR@,$ac_ct_AR,;t t
30807 -s,@RANLIB@,$RANLIB,;t t
30808 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30809 -s,@CPP@,$CPP,;t t
30810 -s,@CXX@,$CXX,;t t
30811 -s,@CXXFLAGS@,$CXXFLAGS,;t t
30812 -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30813 -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
30814 -s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
30815 -s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
30816 -s,@CXXCPP@,$CXXCPP,;t t
30817 -s,@F77@,$F77,;t t
30818 -s,@FFLAGS@,$FFLAGS,;t t
30819 -s,@ac_ct_F77@,$ac_ct_F77,;t t
30820 -s,@LIBTOOL@,$LIBTOOL,;t t
30821 -s,@RENAME_TRUE@,$RENAME_TRUE,;t t
30822 -s,@RENAME_FALSE@,$RENAME_FALSE,;t t
30823 -s,@LIBVER@,$LIBVER,;t t
30824 -s,@OS@,$OS,;t t
30825 -s,@LIBOBJS@,$LIBOBJS,;t t
30826 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30827 -CEOF
30828 +  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30829 +  if test $ac_delim_n = $ac_delim_num; then
30830 +    break
30831 +  elif $ac_last_try; then
30832 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30833 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30834 +   { (exit 1); exit 1; }; }
30835 +  else
30836 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30837 +  fi
30838 +done
30839 +rm -f conf$$subs.sh
30840  
30841 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30842 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30843  _ACEOF
30844 +sed -n '
30845 +h
30846 +s/^/S["/; s/!.*/"]=/
30847 +p
30848 +g
30849 +s/^[^!]*!//
30850 +:repl
30851 +t repl
30852 +s/'"$ac_delim"'$//
30853 +t delim
30854 +:nl
30855 +h
30856 +s/\(.\{148\}\).*/\1/
30857 +t more1
30858 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30859 +p
30860 +n
30861 +b repl
30862 +:more1
30863 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30864 +p
30865 +g
30866 +s/.\{148\}//
30867 +t nl
30868 +:delim
30869 +h
30870 +s/\(.\{148\}\).*/\1/
30871 +t more2
30872 +s/["\\]/\\&/g; s/^/"/; s/$/"/
30873 +p
30874 +b
30875 +:more2
30876 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30877 +p
30878 +g
30879 +s/.\{148\}//
30880 +t delim
30881 +' <conf$$subs.awk | sed '
30882 +/^[^""]/{
30883 +  N
30884 +  s/\n//
30885 +}
30886 +' >>$CONFIG_STATUS || ac_write_fail=1
30887 +rm -f conf$$subs.awk
30888 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30889 +_ACAWK
30890 +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30891 +  for (key in S) S_is_set[key] = 1
30892 +  FS = "\a"
30893  
30894 -  cat >>$CONFIG_STATUS <<\_ACEOF
30895 -  # Split the substitutions into bite-sized pieces for seds with
30896 -  # small command number limits, like on Digital OSF/1 and HP-UX.
30897 -  ac_max_sed_lines=48
30898 -  ac_sed_frag=1 # Number of current file.
30899 -  ac_beg=1 # First line for current file.
30900 -  ac_end=$ac_max_sed_lines # Line after last line for current file.
30901 -  ac_more_lines=:
30902 -  ac_sed_cmds=
30903 -  while $ac_more_lines; do
30904 -    if test $ac_beg -gt 1; then
30905 -      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30906 -    else
30907 -      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30908 -    fi
30909 -    if test ! -s $tmp/subs.frag; then
30910 -      ac_more_lines=false
30911 -    else
30912 -      # The purpose of the label and of the branching condition is to
30913 -      # speed up the sed processing (if there are no `@' at all, there
30914 -      # is no need to browse any of the substitutions).
30915 -      # These are the two extra sed commands mentioned above.
30916 -      (echo ':t
30917 -  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30918 -      if test -z "$ac_sed_cmds"; then
30919 -       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30920 -      else
30921 -       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30922 -      fi
30923 -      ac_sed_frag=`expr $ac_sed_frag + 1`
30924 -      ac_beg=$ac_end
30925 -      ac_end=`expr $ac_end + $ac_max_sed_lines`
30926 -    fi
30927 -  done
30928 -  if test -z "$ac_sed_cmds"; then
30929 -    ac_sed_cmds=cat
30930 -  fi
30931 +}
30932 +{
30933 +  line = $ 0
30934 +  nfields = split(line, field, "@")
30935 +  substed = 0
30936 +  len = length(field[1])
30937 +  for (i = 2; i < nfields; i++) {
30938 +    key = field[i]
30939 +    keylen = length(key)
30940 +    if (S_is_set[key]) {
30941 +      value = S[key]
30942 +      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30943 +      len += length(value) + length(field[++i])
30944 +      substed = 1
30945 +    } else
30946 +      len += 1 + keylen
30947 +  }
30948 +
30949 +  print line
30950 +}
30951 +
30952 +_ACAWK
30953 +_ACEOF
30954 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30955 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30956 +  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30957 +else
30958 +  cat
30959 +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30960 +  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30961 +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
30962 +   { (exit 1); exit 1; }; }
30963 +_ACEOF
30964 +
30965 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
30966 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30967 +# trailing colons and then remove the whole line if VPATH becomes empty
30968 +# (actually we leave an empty line to preserve line numbers).
30969 +if test "x$srcdir" = x.; then
30970 +  ac_vpsub='/^[         ]*VPATH[        ]*=/{
30971 +s/:*\$(srcdir):*/:/
30972 +s/:*\${srcdir}:*/:/
30973 +s/:*@srcdir@:*/:/
30974 +s/^\([^=]*=[    ]*\):*/\1/
30975 +s/:*$//
30976 +s/^[^=]*=[      ]*$//
30977 +}'
30978 +fi
30979 +
30980 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30981  fi # test -n "$CONFIG_FILES"
30982  
30983 +# Set up the scripts for CONFIG_HEADERS section.
30984 +# No need to generate them if there are no CONFIG_HEADERS.
30985 +# This happens for instance with `./config.status Makefile'.
30986 +if test -n "$CONFIG_HEADERS"; then
30987 +cat >"$tmp/defines.awk" <<\_ACAWK ||
30988 +BEGIN {
30989  _ACEOF
30990 -cat >>$CONFIG_STATUS <<\_ACEOF
30991 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30992 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30993 -  case $ac_file in
30994 -  - | *:- | *:-:* ) # input from stdin
30995 -       cat >$tmp/stdin
30996 -       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30997 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30998 -  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30999 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31000 -  * )   ac_file_in=$ac_file.in ;;
31001 +
31002 +# Transform confdefs.h into an awk script `defines.awk', embedded as
31003 +# here-document in config.status, that substitutes the proper values into
31004 +# config.h.in to produce config.h.
31005 +
31006 +# Create a delimiter string that does not exist in confdefs.h, to ease
31007 +# handling of long lines.
31008 +ac_delim='%!_!# '
31009 +for ac_last_try in false false :; do
31010 +  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31011 +  if test -z "$ac_t"; then
31012 +    break
31013 +  elif $ac_last_try; then
31014 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31015 +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31016 +   { (exit 1); exit 1; }; }
31017 +  else
31018 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31019 +  fi
31020 +done
31021 +
31022 +# For the awk script, D is an array of macro values keyed by name,
31023 +# likewise P contains macro parameters if any.  Preserve backslash
31024 +# newline sequences.
31025 +
31026 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31027 +sed -n '
31028 +s/.\{148\}/&'"$ac_delim"'/g
31029 +t rset
31030 +:rset
31031 +s/^[    ]*#[    ]*define[       ][      ]*/ /
31032 +t def
31033 +d
31034 +:def
31035 +s/\\$//
31036 +t bsnl
31037 +s/["\\]/\\&/g
31038 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
31039 +D["\1"]=" \3"/p
31040 +s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2"/p
31041 +d
31042 +:bsnl
31043 +s/["\\]/\\&/g
31044 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
31045 +D["\1"]=" \3\\\\\\n"\\/p
31046 +t cont
31047 +s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31048 +t cont
31049 +d
31050 +:cont
31051 +n
31052 +s/.\{148\}/&'"$ac_delim"'/g
31053 +t clear
31054 +:clear
31055 +s/\\$//
31056 +t bsnlc
31057 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
31058 +d
31059 +:bsnlc
31060 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31061 +b cont
31062 +' <confdefs.h | sed '
31063 +s/'"$ac_delim"'/"\\\
31064 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
31065 +
31066 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31067 +  for (key in D) D_is_set[key] = 1
31068 +  FS = "\a"
31069 +}
31070 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31071 +  line = \$ 0
31072 +  split(line, arg, " ")
31073 +  if (arg[1] == "#") {
31074 +    defundef = arg[2]
31075 +    mac1 = arg[3]
31076 +  } else {
31077 +    defundef = substr(arg[1], 2)
31078 +    mac1 = arg[2]
31079 +  }
31080 +  split(mac1, mac2, "(") #)
31081 +  macro = mac2[1]
31082 +  prefix = substr(line, 1, index(line, defundef) - 1)
31083 +  if (D_is_set[macro]) {
31084 +    # Preserve the white space surrounding the "#".
31085 +    print prefix "define", macro P[macro] D[macro]
31086 +    next
31087 +  } else {
31088 +    # Replace #undef with comments.  This is necessary, for example,
31089 +    # in the case of _POSIX_SOURCE, which is predefined and required
31090 +    # on some systems where configure will not decide to define it.
31091 +    if (defundef == "undef") {
31092 +      print "/*", prefix defundef, macro, "*/"
31093 +      next
31094 +    }
31095 +  }
31096 +}
31097 +{ print }
31098 +_ACAWK
31099 +_ACEOF
31100 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31101 +  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31102 +$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31103 +   { (exit 1); exit 1; }; }
31104 +fi # test -n "$CONFIG_HEADERS"
31105 +
31106 +
31107 +eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31108 +shift
31109 +for ac_tag
31110 +do
31111 +  case $ac_tag in
31112 +  :[FHLC]) ac_mode=$ac_tag; continue;;
31113 +  esac
31114 +  case $ac_mode$ac_tag in
31115 +  :[FHL]*:*);;
31116 +  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31117 +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31118 +   { (exit 1); exit 1; }; };;
31119 +  :[FH]-) ac_tag=-:-;;
31120 +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31121 +  esac
31122 +  ac_save_IFS=$IFS
31123 +  IFS=:
31124 +  set x $ac_tag
31125 +  IFS=$ac_save_IFS
31126 +  shift
31127 +  ac_file=$1
31128 +  shift
31129 +
31130 +  case $ac_mode in
31131 +  :L) ac_source=$1;;
31132 +  :[FH])
31133 +    ac_file_inputs=
31134 +    for ac_f
31135 +    do
31136 +      case $ac_f in
31137 +      -) ac_f="$tmp/stdin";;
31138 +      *) # Look for the file first in the build tree, then in the source tree
31139 +        # (if the path is not absolute).  The absolute path cannot be DOS-style,
31140 +        # because $ac_f cannot contain `:'.
31141 +        test -f "$ac_f" ||
31142 +          case $ac_f in
31143 +          [\\/$]*) false;;
31144 +          *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31145 +          esac ||
31146 +          { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31147 +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31148 +   { (exit 1); exit 1; }; };;
31149 +      esac
31150 +      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31151 +      ac_file_inputs="$ac_file_inputs '$ac_f'"
31152 +    done
31153 +
31154 +    # Let's still pretend it is `configure' which instantiates (i.e., don't
31155 +    # use $as_me), people would be surprised to read:
31156 +    #    /* config.h.  Generated by config.status.  */
31157 +    configure_input='Generated from '`
31158 +         $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31159 +       `' by configure.'
31160 +    if test x"$ac_file" != x-; then
31161 +      configure_input="$ac_file.  $configure_input"
31162 +      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31163 +$as_echo "$as_me: creating $ac_file" >&6;}
31164 +    fi
31165 +    # Neutralize special characters interpreted by sed in replacement strings.
31166 +    case $configure_input in #(
31167 +    *\&* | *\|* | *\\* )
31168 +       ac_sed_conf_input=`$as_echo "$configure_input" |
31169 +       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31170 +    *) ac_sed_conf_input=$configure_input;;
31171 +    esac
31172 +
31173 +    case $ac_tag in
31174 +    *:-:* | *:-) cat >"$tmp/stdin" \
31175 +      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31176 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31177 +   { (exit 1); exit 1; }; } ;;
31178 +    esac
31179 +    ;;
31180    esac
31181  
31182 -  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31183 -  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31184 +  ac_dir=`$as_dirname -- "$ac_file" ||
31185  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31186          X"$ac_file" : 'X\(//\)[^/]' \| \
31187          X"$ac_file" : 'X\(//\)$' \| \
31188 -        X"$ac_file" : 'X\(/\)' \| \
31189 -        .     : '\(.\)' 2>/dev/null ||
31190 -echo X"$ac_file" |
31191 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31192 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31193 -         /^X\(\/\/\)$/{ s//\1/; q; }
31194 -         /^X\(\/\).*/{ s//\1/; q; }
31195 -         s/.*/./; q'`
31196 -  { if $as_mkdir_p; then
31197 -    mkdir -p "$ac_dir"
31198 -  else
31199 -    as_dir="$ac_dir"
31200 +        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31201 +$as_echo X"$ac_file" |
31202 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31203 +           s//\1/
31204 +           q
31205 +         }
31206 +         /^X\(\/\/\)[^/].*/{
31207 +           s//\1/
31208 +           q
31209 +         }
31210 +         /^X\(\/\/\)$/{
31211 +           s//\1/
31212 +           q
31213 +         }
31214 +         /^X\(\/\).*/{
31215 +           s//\1/
31216 +           q
31217 +         }
31218 +         s/.*/./; q'`
31219 +  { as_dir="$ac_dir"
31220 +  case $as_dir in #(
31221 +  -*) as_dir=./$as_dir;;
31222 +  esac
31223 +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31224      as_dirs=
31225 -    while test ! -d "$as_dir"; do
31226 -      as_dirs="$as_dir $as_dirs"
31227 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31228 +    while :; do
31229 +      case $as_dir in #(
31230 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31231 +      *) as_qdir=$as_dir;;
31232 +      esac
31233 +      as_dirs="'$as_qdir' $as_dirs"
31234 +      as_dir=`$as_dirname -- "$as_dir" ||
31235  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31236          X"$as_dir" : 'X\(//\)[^/]' \| \
31237          X"$as_dir" : 'X\(//\)$' \| \
31238 -        X"$as_dir" : 'X\(/\)' \| \
31239 -        .     : '\(.\)' 2>/dev/null ||
31240 -echo X"$as_dir" |
31241 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31242 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31243 -         /^X\(\/\/\)$/{ s//\1/; q; }
31244 -         /^X\(\/\).*/{ s//\1/; q; }
31245 -         s/.*/./; q'`
31246 +        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31247 +$as_echo X"$as_dir" |
31248 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31249 +           s//\1/
31250 +           q
31251 +         }
31252 +         /^X\(\/\/\)[^/].*/{
31253 +           s//\1/
31254 +           q
31255 +         }
31256 +         /^X\(\/\/\)$/{
31257 +           s//\1/
31258 +           q
31259 +         }
31260 +         /^X\(\/\).*/{
31261 +           s//\1/
31262 +           q
31263 +         }
31264 +         s/.*/./; q'`
31265 +      test -d "$as_dir" && break
31266      done
31267 -    test ! -n "$as_dirs" || mkdir $as_dirs
31268 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31269 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31270 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
31271 +  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31272 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31273     { (exit 1); exit 1; }; }; }
31274 -
31275    ac_builddir=.
31276  
31277 -if test "$ac_dir" != .; then
31278 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31279 -  # A "../" for each directory in $ac_dir_suffix.
31280 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31281 -else
31282 -  ac_dir_suffix= ac_top_builddir=
31283 -fi
31284 +case "$ac_dir" in
31285 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31286 +*)
31287 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31288 +  # A ".." for each directory in $ac_dir_suffix.
31289 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31290 +  case $ac_top_builddir_sub in
31291 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31292 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31293 +  esac ;;
31294 +esac
31295 +ac_abs_top_builddir=$ac_pwd
31296 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
31297 +# for backward compatibility:
31298 +ac_top_builddir=$ac_top_build_prefix
31299  
31300  case $srcdir in
31301 -  .)  # No --srcdir option.  We are building in place.
31302 +  .)  # We are building in place.
31303      ac_srcdir=.
31304 -    if test -z "$ac_top_builddir"; then
31305 -       ac_top_srcdir=.
31306 -    else
31307 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31308 -    fi ;;
31309 -  [\\/]* | ?:[\\/]* )  # Absolute path.
31310 +    ac_top_srcdir=$ac_top_builddir_sub
31311 +    ac_abs_top_srcdir=$ac_pwd ;;
31312 +  [\\/]* | ?:[\\/]* )  # Absolute name.
31313      ac_srcdir=$srcdir$ac_dir_suffix;
31314 -    ac_top_srcdir=$srcdir ;;
31315 -  *) # Relative path.
31316 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31317 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31318 +    ac_top_srcdir=$srcdir
31319 +    ac_abs_top_srcdir=$srcdir ;;
31320 +  *) # Relative name.
31321 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31322 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
31323 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31324  esac
31325 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31326  
31327 -# Do not use `cd foo && pwd` to compute absolute paths, because
31328 -# the directories may not exist.
31329 -case `pwd` in
31330 -.) ac_abs_builddir="$ac_dir";;
31331 -*)
31332 -  case "$ac_dir" in
31333 -  .) ac_abs_builddir=`pwd`;;
31334 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31335 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31336 -  esac;;
31337 -esac
31338 -case $ac_abs_builddir in
31339 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
31340 -*)
31341 -  case ${ac_top_builddir}. in
31342 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
31343 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31344 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31345 -  esac;;
31346 -esac
31347 -case $ac_abs_builddir in
31348 -.) ac_abs_srcdir=$ac_srcdir;;
31349 -*)
31350 -  case $ac_srcdir in
31351 -  .) ac_abs_srcdir=$ac_abs_builddir;;
31352 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31353 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31354 -  esac;;
31355 -esac
31356 -case $ac_abs_builddir in
31357 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
31358 -*)
31359 -  case $ac_top_srcdir in
31360 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31361 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31362 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31363 -  esac;;
31364 -esac
31365  
31366 +  case $ac_mode in
31367 +  :F)
31368 +  #
31369 +  # CONFIG_FILE
31370 +  #
31371  
31372    case $INSTALL in
31373    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31374 -  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31375 +  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31376    esac
31377 +_ACEOF
31378  
31379 -  if test x"$ac_file" != x-; then
31380 -    { echo "$as_me:$LINENO: creating $ac_file" >&5
31381 -echo "$as_me: creating $ac_file" >&6;}
31382 -    rm -f "$ac_file"
31383 -  fi
31384 -  # Let's still pretend it is `configure' which instantiates (i.e., don't
31385 -  # use $as_me), people would be surprised to read:
31386 -  #    /* config.h.  Generated by config.status.  */
31387 -  if test x"$ac_file" = x-; then
31388 -    configure_input=
31389 -  else
31390 -    configure_input="$ac_file.  "
31391 -  fi
31392 -  configure_input=$configure_input"Generated from `echo $ac_file_in |
31393 -                                    sed 's,.*/,,'` by configure."
31394 -
31395 -  # First look for the input files in the build tree, otherwise in the
31396 -  # src tree.
31397 -  ac_file_inputs=`IFS=:
31398 -    for f in $ac_file_in; do
31399 -      case $f in
31400 -      -) echo $tmp/stdin ;;
31401 -      [\\/$]*)
31402 -        # Absolute (can't be DOS-style, as IFS=:)
31403 -        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31404 -echo "$as_me: error: cannot find input file: $f" >&2;}
31405 -   { (exit 1); exit 1; }; }
31406 -        echo "$f";;
31407 -      *) # Relative
31408 -        if test -f "$f"; then
31409 -          # Build tree
31410 -          echo "$f"
31411 -        elif test -f "$srcdir/$f"; then
31412 -          # Source tree
31413 -          echo "$srcdir/$f"
31414 -        else
31415 -          # /dev/null tree
31416 -          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31417 -echo "$as_me: error: cannot find input file: $f" >&2;}
31418 -   { (exit 1); exit 1; }; }
31419 -        fi;;
31420 -      esac
31421 -    done` || { (exit 1); exit 1; }
31422 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31423 +# If the template does not know about datarootdir, expand it.
31424 +# FIXME: This hack should be removed a few years after 2.60.
31425 +ac_datarootdir_hack=; ac_datarootdir_seen=
31426 +
31427 +ac_sed_dataroot='
31428 +/datarootdir/ {
31429 +  p
31430 +  q
31431 +}
31432 +/@datadir@/p
31433 +/@docdir@/p
31434 +/@infodir@/p
31435 +/@localedir@/p
31436 +/@mandir@/p
31437 +'
31438 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31439 +*datarootdir*) ac_datarootdir_seen=yes;;
31440 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31441 +  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31442 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31443  _ACEOF
31444 -cat >>$CONFIG_STATUS <<_ACEOF
31445 -  sed "$ac_vpsub
31446 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31447 +  ac_datarootdir_hack='
31448 +  s&@datadir@&$datadir&g
31449 +  s&@docdir@&$docdir&g
31450 +  s&@infodir@&$infodir&g
31451 +  s&@localedir@&$localedir&g
31452 +  s&@mandir@&$mandir&g
31453 +    s&\\\${datarootdir}&$datarootdir&g' ;;
31454 +esac
31455 +_ACEOF
31456 +
31457 +# Neutralize VPATH when `$srcdir' = `.'.
31458 +# Shell code in configure.ac might set extrasub.
31459 +# FIXME: do we really want to maintain this feature?
31460 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31461 +ac_sed_extra="$ac_vpsub
31462  $extrasub
31463  _ACEOF
31464 -cat >>$CONFIG_STATUS <<\_ACEOF
31465 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31466  :t
31467  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31468 -s,@configure_input@,$configure_input,;t t
31469 -s,@srcdir@,$ac_srcdir,;t t
31470 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
31471 -s,@top_srcdir@,$ac_top_srcdir,;t t
31472 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31473 -s,@builddir@,$ac_builddir,;t t
31474 -s,@abs_builddir@,$ac_abs_builddir,;t t
31475 -s,@top_builddir@,$ac_top_builddir,;t t
31476 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31477 -s,@INSTALL@,$ac_INSTALL,;t t
31478 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31479 -  rm -f $tmp/stdin
31480 -  if test x"$ac_file" != x-; then
31481 -    mv $tmp/out $ac_file
31482 -  else
31483 -    cat $tmp/out
31484 -    rm -f $tmp/out
31485 -  fi
31486 -
31487 -done
31488 -_ACEOF
31489 -cat >>$CONFIG_STATUS <<\_ACEOF
31490 +s|@configure_input@|$ac_sed_conf_input|;t t
31491 +s&@top_builddir@&$ac_top_builddir_sub&;t t
31492 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
31493 +s&@srcdir@&$ac_srcdir&;t t
31494 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
31495 +s&@top_srcdir@&$ac_top_srcdir&;t t
31496 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31497 +s&@builddir@&$ac_builddir&;t t
31498 +s&@abs_builddir@&$ac_abs_builddir&;t t
31499 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31500 +s&@INSTALL@&$ac_INSTALL&;t t
31501 +$ac_datarootdir_hack
31502 +"
31503 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31504 +  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31505 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31506 +   { (exit 1); exit 1; }; }
31507  
31508 -#
31509 -# CONFIG_HEADER section.
31510 -#
31511 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31512 +  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31513 +  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31514 +  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31515 +which seems to be undefined.  Please make sure it is defined." >&5
31516 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31517 +which seems to be undefined.  Please make sure it is defined." >&2;}
31518  
31519 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31520 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
31521 -#
31522 -# ac_d sets the value in "#define NAME VALUE" lines.
31523 -ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
31524 -ac_dB='[        ].*$,\1#\2'
31525 -ac_dC=' '
31526 -ac_dD=',;t'
31527 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31528 -ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31529 -ac_uB='$,\1#\2define\3'
31530 -ac_uC=' '
31531 -ac_uD=',;t'
31532 -
31533 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31534 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31535 +  rm -f "$tmp/stdin"
31536    case $ac_file in
31537 -  - | *:- | *:-:* ) # input from stdin
31538 -       cat >$tmp/stdin
31539 -       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31540 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31541 -  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31542 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31543 -  * )   ac_file_in=$ac_file.in ;;
31544 -  esac
31545 -
31546 -  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31547 -echo "$as_me: creating $ac_file" >&6;}
31548 -
31549 -  # First look for the input files in the build tree, otherwise in the
31550 -  # src tree.
31551 -  ac_file_inputs=`IFS=:
31552 -    for f in $ac_file_in; do
31553 -      case $f in
31554 -      -) echo $tmp/stdin ;;
31555 -      [\\/$]*)
31556 -        # Absolute (can't be DOS-style, as IFS=:)
31557 -        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31558 -echo "$as_me: error: cannot find input file: $f" >&2;}
31559 -   { (exit 1); exit 1; }; }
31560 -        # Do quote $f, to prevent DOS paths from being IFS'd.
31561 -        echo "$f";;
31562 -      *) # Relative
31563 -        if test -f "$f"; then
31564 -          # Build tree
31565 -          echo "$f"
31566 -        elif test -f "$srcdir/$f"; then
31567 -          # Source tree
31568 -          echo "$srcdir/$f"
31569 -        else
31570 -          # /dev/null tree
31571 -          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31572 -echo "$as_me: error: cannot find input file: $f" >&2;}
31573 +  -) cat "$tmp/out" && rm -f "$tmp/out";;
31574 +  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31575 +  esac \
31576 +  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31577 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31578     { (exit 1); exit 1; }; }
31579 -        fi;;
31580 -      esac
31581 -    done` || { (exit 1); exit 1; }
31582 -  # Remove the trailing spaces.
31583 -  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
31584 -
31585 -_ACEOF
31586 -
31587 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
31588 -# `conftest.undefs', that substitutes the proper values into
31589 -# config.h.in to produce config.h.  The first handles `#define'
31590 -# templates, and the second `#undef' templates.
31591 -# And first: Protect against being on the right side of a sed subst in
31592 -# config.status.  Protect against being in an unquoted here document
31593 -# in config.status.
31594 -rm -f conftest.defines conftest.undefs
31595 -# Using a here document instead of a string reduces the quoting nightmare.
31596 -# Putting comments in sed scripts is not portable.
31597 -#
31598 -# `end' is used to avoid that the second main sed command (meant for
31599 -# 0-ary CPP macros) applies to n-ary macro definitions.
31600 -# See the Autoconf documentation for `clear'.
31601 -cat >confdef2sed.sed <<\_ACEOF
31602 -s/[\\&,]/\\&/g
31603 -s,[\\$`],\\&,g
31604 -t clear
31605 -: clear
31606 -s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31607 -t end
31608 -s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31609 -: end
31610 -_ACEOF
31611 -# If some macros were called several times there might be several times
31612 -# the same #defines, which is useless.  Nevertheless, we may not want to
31613 -# sort them, since we want the *last* AC-DEFINE to be honored.
31614 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31615 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31616 -rm -f confdef2sed.sed
31617 -
31618 -# This sed command replaces #undef with comments.  This is necessary, for
31619 -# example, in the case of _POSIX_SOURCE, which is predefined and required
31620 -# on some systems where configure will not decide to define it.
31621 -cat >>conftest.undefs <<\_ACEOF
31622 -s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31623 -_ACEOF
31624 -
31625 -# Break up conftest.defines because some shells have a limit on the size
31626 -# of here documents, and old seds have small limits too (100 cmds).
31627 -echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31628 -echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31629 -echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31630 -echo '  :' >>$CONFIG_STATUS
31631 -rm -f conftest.tail
31632 -while grep . conftest.defines >/dev/null
31633 -do
31634 -  # Write a limited-size here document to $tmp/defines.sed.
31635 -  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31636 -  # Speed up: don't consider the non `#define' lines.
31637 -  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
31638 -  # Work around the forget-to-reset-the-flag bug.
31639 -  echo 't clr' >>$CONFIG_STATUS
31640 -  echo ': clr' >>$CONFIG_STATUS
31641 -  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31642 -  echo 'CEOF
31643 -  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31644 -  rm -f $tmp/in
31645 -  mv $tmp/out $tmp/in
31646 -' >>$CONFIG_STATUS
31647 -  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31648 -  rm -f conftest.defines
31649 -  mv conftest.tail conftest.defines
31650 -done
31651 -rm -f conftest.defines
31652 -echo '  fi # grep' >>$CONFIG_STATUS
31653 -echo >>$CONFIG_STATUS
31654 -
31655 -# Break up conftest.undefs because some shells have a limit on the size
31656 -# of here documents, and old seds have small limits too (100 cmds).
31657 -echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31658 -rm -f conftest.tail
31659 -while grep . conftest.undefs >/dev/null
31660 -do
31661 -  # Write a limited-size here document to $tmp/undefs.sed.
31662 -  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31663 -  # Speed up: don't consider the non `#undef'
31664 -  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31665 -  # Work around the forget-to-reset-the-flag bug.
31666 -  echo 't clr' >>$CONFIG_STATUS
31667 -  echo ': clr' >>$CONFIG_STATUS
31668 -  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31669 -  echo 'CEOF
31670 -  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31671 -  rm -f $tmp/in
31672 -  mv $tmp/out $tmp/in
31673 -' >>$CONFIG_STATUS
31674 -  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31675 -  rm -f conftest.undefs
31676 -  mv conftest.tail conftest.undefs
31677 -done
31678 -rm -f conftest.undefs
31679 -
31680 -cat >>$CONFIG_STATUS <<\_ACEOF
31681 -  # Let's still pretend it is `configure' which instantiates (i.e., don't
31682 -  # use $as_me), people would be surprised to read:
31683 -  #    /* config.h.  Generated by config.status.  */
31684 -  if test x"$ac_file" = x-; then
31685 -    echo "/* Generated by configure.  */" >$tmp/config.h
31686 -  else
31687 -    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31688 -  fi
31689 -  cat $tmp/in >>$tmp/config.h
31690 -  rm -f $tmp/in
31691 + ;;
31692 +  :H)
31693 +  #
31694 +  # CONFIG_HEADER
31695 +  #
31696    if test x"$ac_file" != x-; then
31697 -    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31698 -      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31699 -echo "$as_me: $ac_file is unchanged" >&6;}
31700 +    {
31701 +      $as_echo "/* $configure_input  */" \
31702 +      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31703 +    } >"$tmp/config.h" \
31704 +      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31705 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31706 +   { (exit 1); exit 1; }; }
31707 +    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31708 +      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31709 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
31710      else
31711 -      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31712 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31713 -        X"$ac_file" : 'X\(//\)[^/]' \| \
31714 -        X"$ac_file" : 'X\(//\)$' \| \
31715 -        X"$ac_file" : 'X\(/\)' \| \
31716 -        .     : '\(.\)' 2>/dev/null ||
31717 -echo X"$ac_file" |
31718 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31719 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31720 -         /^X\(\/\/\)$/{ s//\1/; q; }
31721 -         /^X\(\/\).*/{ s//\1/; q; }
31722 -         s/.*/./; q'`
31723 -      { if $as_mkdir_p; then
31724 -    mkdir -p "$ac_dir"
31725 -  else
31726 -    as_dir="$ac_dir"
31727 -    as_dirs=
31728 -    while test ! -d "$as_dir"; do
31729 -      as_dirs="$as_dir $as_dirs"
31730 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31731 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31732 -        X"$as_dir" : 'X\(//\)[^/]' \| \
31733 -        X"$as_dir" : 'X\(//\)$' \| \
31734 -        X"$as_dir" : 'X\(/\)' \| \
31735 -        .     : '\(.\)' 2>/dev/null ||
31736 -echo X"$as_dir" |
31737 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31738 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31739 -         /^X\(\/\/\)$/{ s//\1/; q; }
31740 -         /^X\(\/\).*/{ s//\1/; q; }
31741 -         s/.*/./; q'`
31742 -    done
31743 -    test ! -n "$as_dirs" || mkdir $as_dirs
31744 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31745 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31746 -   { (exit 1); exit 1; }; }; }
31747 -
31748 -      rm -f $ac_file
31749 -      mv $tmp/config.h $ac_file
31750 +      rm -f "$ac_file"
31751 +      mv "$tmp/config.h" "$ac_file" \
31752 +       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31753 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31754 +   { (exit 1); exit 1; }; }
31755      fi
31756    else
31757 -    cat $tmp/config.h
31758 -    rm -f $tmp/config.h
31759 +    $as_echo "/* $configure_input  */" \
31760 +      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31761 +      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31762 +$as_echo "$as_me: error: could not create -" >&2;}
31763 +   { (exit 1); exit 1; }; }
31764    fi
31765 -# Compute $ac_file's index in $config_headers.
31766 +# Compute "$ac_file"'s index in $config_headers.
31767  _am_stamp_count=1
31768  for _am_header in $config_headers :; do
31769    case $_am_header in
31770 -    $ac_file | $ac_file:* )
31771 +    "$ac_file" | "$ac_file":* )
31772        break ;;
31773      * )
31774        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31775    esac
31776  done
31777 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31778 -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31779 -        X$ac_file : 'X\(//\)[^/]' \| \
31780 -        X$ac_file : 'X\(//\)$' \| \
31781 -        X$ac_file : 'X\(/\)' \| \
31782 -        .     : '\(.\)' 2>/dev/null ||
31783 -echo X$ac_file |
31784 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31785 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31786 -         /^X\(\/\/\)$/{ s//\1/; q; }
31787 -         /^X\(\/\).*/{ s//\1/; q; }
31788 -         s/.*/./; q'`/stamp-h$_am_stamp_count
31789 -done
31790 -_ACEOF
31791 -cat >>$CONFIG_STATUS <<\_ACEOF
31792 -
31793 -#
31794 -# CONFIG_COMMANDS section.
31795 -#
31796 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31797 -  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31798 -  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31799 -  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31800 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31801 -        X"$ac_dest" : 'X\(//\)[^/]' \| \
31802 -        X"$ac_dest" : 'X\(//\)$' \| \
31803 -        X"$ac_dest" : 'X\(/\)' \| \
31804 -        .     : '\(.\)' 2>/dev/null ||
31805 -echo X"$ac_dest" |
31806 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31807 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31808 -         /^X\(\/\/\)$/{ s//\1/; q; }
31809 -         /^X\(\/\).*/{ s//\1/; q; }
31810 -         s/.*/./; q'`
31811 -  { if $as_mkdir_p; then
31812 -    mkdir -p "$ac_dir"
31813 -  else
31814 -    as_dir="$ac_dir"
31815 -    as_dirs=
31816 -    while test ! -d "$as_dir"; do
31817 -      as_dirs="$as_dir $as_dirs"
31818 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31819 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31820 -        X"$as_dir" : 'X\(//\)[^/]' \| \
31821 -        X"$as_dir" : 'X\(//\)$' \| \
31822 -        X"$as_dir" : 'X\(/\)' \| \
31823 -        .     : '\(.\)' 2>/dev/null ||
31824 -echo X"$as_dir" |
31825 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31826 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31827 -         /^X\(\/\/\)$/{ s//\1/; q; }
31828 -         /^X\(\/\).*/{ s//\1/; q; }
31829 -         s/.*/./; q'`
31830 -    done
31831 -    test ! -n "$as_dirs" || mkdir $as_dirs
31832 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31833 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31834 -   { (exit 1); exit 1; }; }; }
31835 -
31836 -  ac_builddir=.
31837 -
31838 -if test "$ac_dir" != .; then
31839 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31840 -  # A "../" for each directory in $ac_dir_suffix.
31841 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31842 -else
31843 -  ac_dir_suffix= ac_top_builddir=
31844 -fi
31845 -
31846 -case $srcdir in
31847 -  .)  # No --srcdir option.  We are building in place.
31848 -    ac_srcdir=.
31849 -    if test -z "$ac_top_builddir"; then
31850 -       ac_top_srcdir=.
31851 -    else
31852 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31853 -    fi ;;
31854 -  [\\/]* | ?:[\\/]* )  # Absolute path.
31855 -    ac_srcdir=$srcdir$ac_dir_suffix;
31856 -    ac_top_srcdir=$srcdir ;;
31857 -  *) # Relative path.
31858 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31859 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31860 -esac
31861 +echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
31862 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31863 +        X"$ac_file" : 'X\(//\)[^/]' \| \
31864 +        X"$ac_file" : 'X\(//\)$' \| \
31865 +        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31866 +$as_echo X"$ac_file" |
31867 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31868 +           s//\1/
31869 +           q
31870 +         }
31871 +         /^X\(\/\/\)[^/].*/{
31872 +           s//\1/
31873 +           q
31874 +         }
31875 +         /^X\(\/\/\)$/{
31876 +           s//\1/
31877 +           q
31878 +         }
31879 +         /^X\(\/\).*/{
31880 +           s//\1/
31881 +           q
31882 +         }
31883 +         s/.*/./; q'`/stamp-h$_am_stamp_count
31884 + ;;
31885  
31886 -# Do not use `cd foo && pwd` to compute absolute paths, because
31887 -# the directories may not exist.
31888 -case `pwd` in
31889 -.) ac_abs_builddir="$ac_dir";;
31890 -*)
31891 -  case "$ac_dir" in
31892 -  .) ac_abs_builddir=`pwd`;;
31893 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31894 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31895 -  esac;;
31896 -esac
31897 -case $ac_abs_builddir in
31898 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
31899 -*)
31900 -  case ${ac_top_builddir}. in
31901 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
31902 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31903 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31904 -  esac;;
31905 -esac
31906 -case $ac_abs_builddir in
31907 -.) ac_abs_srcdir=$ac_srcdir;;
31908 -*)
31909 -  case $ac_srcdir in
31910 -  .) ac_abs_srcdir=$ac_abs_builddir;;
31911 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31912 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31913 -  esac;;
31914 -esac
31915 -case $ac_abs_builddir in
31916 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
31917 -*)
31918 -  case $ac_top_srcdir in
31919 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31920 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31921 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31922 -  esac;;
31923 -esac
31924 +  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31925 +$as_echo "$as_me: executing $ac_file commands" >&6;}
31926 + ;;
31927 +  esac
31928  
31929  
31930 -  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31931 -echo "$as_me: executing $ac_dest commands" >&6;}
31932 -  case $ac_dest in
31933 -    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31934 +  case $ac_file$ac_mode in
31935 +    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31936    # Strip MF so we end up with the name of the file.
31937    mf=`echo "$mf" | sed -e 's/:.*$//'`
31938    # Check whether this is an Automake generated Makefile or not.
31939 @@ -21932,18 +22785,29 @@ echo "$as_me: executing $ac_dest commands" >&6;}
31940    # each Makefile.in and add a new line on top of each file to say so.
31941    # So let's grep whole file.
31942    if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31943 -    dirpart=`(dirname "$mf") 2>/dev/null ||
31944 +    dirpart=`$as_dirname -- "$mf" ||
31945  $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31946          X"$mf" : 'X\(//\)[^/]' \| \
31947          X"$mf" : 'X\(//\)$' \| \
31948 -        X"$mf" : 'X\(/\)' \| \
31949 -        .     : '\(.\)' 2>/dev/null ||
31950 -echo X"$mf" |
31951 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31952 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31953 -         /^X\(\/\/\)$/{ s//\1/; q; }
31954 -         /^X\(\/\).*/{ s//\1/; q; }
31955 -         s/.*/./; q'`
31956 +        X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31957 +$as_echo X"$mf" |
31958 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31959 +           s//\1/
31960 +           q
31961 +         }
31962 +         /^X\(\/\/\)[^/].*/{
31963 +           s//\1/
31964 +           q
31965 +         }
31966 +         /^X\(\/\/\)$/{
31967 +           s//\1/
31968 +           q
31969 +         }
31970 +         /^X\(\/\).*/{
31971 +           s//\1/
31972 +           q
31973 +         }
31974 +         s/.*/./; q'`
31975    else
31976      continue
31977    fi
31978 @@ -21965,59 +22829,90 @@ echo X"$mf" |
31979         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31980      # Make sure the directory exists.
31981      test -f "$dirpart/$file" && continue
31982 -    fdir=`(dirname "$file") 2>/dev/null ||
31983 +    fdir=`$as_dirname -- "$file" ||
31984  $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31985          X"$file" : 'X\(//\)[^/]' \| \
31986          X"$file" : 'X\(//\)$' \| \
31987 -        X"$file" : 'X\(/\)' \| \
31988 -        .     : '\(.\)' 2>/dev/null ||
31989 -echo X"$file" |
31990 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31991 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31992 -         /^X\(\/\/\)$/{ s//\1/; q; }
31993 -         /^X\(\/\).*/{ s//\1/; q; }
31994 -         s/.*/./; q'`
31995 -    { if $as_mkdir_p; then
31996 -    mkdir -p $dirpart/$fdir
31997 -  else
31998 -    as_dir=$dirpart/$fdir
31999 +        X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32000 +$as_echo X"$file" |
32001 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32002 +           s//\1/
32003 +           q
32004 +         }
32005 +         /^X\(\/\/\)[^/].*/{
32006 +           s//\1/
32007 +           q
32008 +         }
32009 +         /^X\(\/\/\)$/{
32010 +           s//\1/
32011 +           q
32012 +         }
32013 +         /^X\(\/\).*/{
32014 +           s//\1/
32015 +           q
32016 +         }
32017 +         s/.*/./; q'`
32018 +    { as_dir=$dirpart/$fdir
32019 +  case $as_dir in #(
32020 +  -*) as_dir=./$as_dir;;
32021 +  esac
32022 +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32023      as_dirs=
32024 -    while test ! -d "$as_dir"; do
32025 -      as_dirs="$as_dir $as_dirs"
32026 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32027 +    while :; do
32028 +      case $as_dir in #(
32029 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32030 +      *) as_qdir=$as_dir;;
32031 +      esac
32032 +      as_dirs="'$as_qdir' $as_dirs"
32033 +      as_dir=`$as_dirname -- "$as_dir" ||
32034  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32035          X"$as_dir" : 'X\(//\)[^/]' \| \
32036          X"$as_dir" : 'X\(//\)$' \| \
32037 -        X"$as_dir" : 'X\(/\)' \| \
32038 -        .     : '\(.\)' 2>/dev/null ||
32039 -echo X"$as_dir" |
32040 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32041 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32042 -         /^X\(\/\/\)$/{ s//\1/; q; }
32043 -         /^X\(\/\).*/{ s//\1/; q; }
32044 -         s/.*/./; q'`
32045 +        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32046 +$as_echo X"$as_dir" |
32047 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32048 +           s//\1/
32049 +           q
32050 +         }
32051 +         /^X\(\/\/\)[^/].*/{
32052 +           s//\1/
32053 +           q
32054 +         }
32055 +         /^X\(\/\/\)$/{
32056 +           s//\1/
32057 +           q
32058 +         }
32059 +         /^X\(\/\).*/{
32060 +           s//\1/
32061 +           q
32062 +         }
32063 +         s/.*/./; q'`
32064 +      test -d "$as_dir" && break
32065      done
32066 -    test ! -n "$as_dirs" || mkdir $as_dirs
32067 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32068 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32069 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
32070 +  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32071 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32072     { (exit 1); exit 1; }; }; }
32073 -
32074      # echo "creating $dirpart/$file"
32075      echo '# dummy' > "$dirpart/$file"
32076    done
32077  done
32078   ;;
32079 +
32080    esac
32081 -done
32082 -_ACEOF
32083 +done # for ac_tag
32084  
32085 -cat >>$CONFIG_STATUS <<\_ACEOF
32086  
32087  { (exit 0); exit 0; }
32088  _ACEOF
32089  chmod +x $CONFIG_STATUS
32090  ac_clean_files=$ac_clean_files_save
32091  
32092 +test $ac_write_fail = 0 ||
32093 +  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32094 +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32095 +   { (exit 1); exit 1; }; }
32096 +
32097  
32098  # configure is writing to config.log, and then calls config.status.
32099  # config.status does its own redirection, appending to config.log.
32100 @@ -22039,4 +22934,8 @@ if test "$no_create" != yes; then
32101    # would make configure fail if this is the last instruction.
32102    $ac_cs_success || { (exit 1); exit 1; }
32103  fi
32104 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32105 +  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32106 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32107 +fi
32108