Update libtool/autoconf/aclocal scripts using dpatch
[manu/libnss-mysql-bg.git] / debian / patches / 01_libtool.dpatch
1 diff --git a/aclocal.m4 b/aclocal.m4
2 index 1d6c34d..b4629ed 100644
3 --- a/aclocal.m4
4 +++ b/aclocal.m4
5 @@ -1,7 +1,7 @@
6 -# generated automatically by aclocal 1.9.2 -*- Autoconf -*-
7 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
8  
9 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
10 -# Free Software Foundation, Inc.
11 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
12 +# 2005  Free Software Foundation, Inc.
13  # This file is free software; the Free Software Foundation
14  # gives unlimited permission to copy and/or distribute it,
15  # with or without modifications, as long as this notice is preserved.
16 @@ -13,7 +13,7 @@
17  
18  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
19  
20 -# serial 47 AC_PROG_LIBTOOL
21 +# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
22  
23  
24  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
25 @@ -101,7 +101,6 @@ AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
26  AC_REQUIRE([AC_OBJEXT])dnl
27  AC_REQUIRE([AC_EXEEXT])dnl
28  dnl
29 -
30  AC_LIBTOOL_SYS_MAX_CMD_LEN
31  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
32  AC_LIBTOOL_OBJDIR
33 @@ -123,7 +122,7 @@ esac
34  
35  # Sed substitution that helps us do robust quoting.  It backslashifies
36  # metacharacters that are still active within double-quoted strings.
37 -Xsed='sed -e s/^X//'
38 +Xsed='sed -e 1s/^X//'
39  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
40  
41  # Same as above, but do not quote variable references.
42 @@ -143,7 +142,7 @@ rm="rm -f"
43  default_ofile=libtool
44  can_build_shared=yes
45  
46 -# All known linkers require a `.a' archive for static linking (except M$VC,
47 +# All known linkers require a `.a' archive for static linking (except MSVC,
48  # which needs '.lib').
49  libext=a
50  ltmain="$ac_aux_dir/ltmain.sh"
51 @@ -163,6 +162,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
52  test -z "$AS" && AS=as
53  test -z "$CC" && CC=cc
54  test -z "$LTCC" && LTCC=$CC
55 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
56  test -z "$DLLTOOL" && DLLTOOL=dlltool
57  test -z "$LD" && LD=ld
58  test -z "$LN_S" && LN_S="ln -s"
59 @@ -175,22 +175,24 @@ test -z "$STRIP" && STRIP=:
60  test -z "$ac_objext" && ac_objext=o
61  
62  # Determine commands to create old-style static archives.
63 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
64 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
65  old_postinstall_cmds='chmod 644 $oldlib'
66  old_postuninstall_cmds=
67  
68  if test -n "$RANLIB"; then
69    case $host_os in
70    openbsd*)
71 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
72 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
73      ;;
74    *)
75 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
76 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
77      ;;
78    esac
79    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
80  fi
81  
82 +_LT_CC_BASENAME([$compiler])
83 +
84  # Only perform the check for file, if the check method requires it
85  case $deplibs_check_method in
86  file_magic*)
87 @@ -200,6 +202,8 @@ file_magic*)
88    ;;
89  esac
90  
91 +_LT_REQUIRED_DARWIN_CHECKS
92 +
93  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
94  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
95  enable_win32_dll=yes, enable_win32_dll=no)
96 @@ -231,11 +235,129 @@ AC_DEFUN([_LT_AC_SYS_COMPILER],
97  # If no C compiler was specified, use CC.
98  LTCC=${LTCC-"$CC"}
99  
100 +# If no C compiler flags were specified, use CFLAGS.
101 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
102 +
103  # Allow CC to be a program name with arguments.
104  compiler=$CC
105  ])# _LT_AC_SYS_COMPILER
106  
107  
108 +# _LT_CC_BASENAME(CC)
109 +# -------------------
110 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
111 +AC_DEFUN([_LT_CC_BASENAME],
112 +[for cc_temp in $1""; do
113 +  case $cc_temp in
114 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
115 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
116 +    \-*) ;;
117 +    *) break;;
118 +  esac
119 +done
120 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
121 +])
122 +
123 +
124 +# _LT_COMPILER_BOILERPLATE
125 +# ------------------------
126 +# Check for compiler boilerplate output or warnings with
127 +# the simple compiler test code.
128 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
129 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
130 +ac_outfile=conftest.$ac_objext
131 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
132 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
133 +_lt_compiler_boilerplate=`cat conftest.err`
134 +$rm conftest*
135 +])# _LT_COMPILER_BOILERPLATE
136 +
137 +
138 +# _LT_LINKER_BOILERPLATE
139 +# ----------------------
140 +# Check for linker boilerplate output or warnings with
141 +# the simple link test code.
142 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
143 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
144 +ac_outfile=conftest.$ac_objext
145 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
146 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
147 +_lt_linker_boilerplate=`cat conftest.err`
148 +$rm -r conftest*
149 +])# _LT_LINKER_BOILERPLATE
150 +
151 +# _LT_REQUIRED_DARWIN_CHECKS
152 +# --------------------------
153 +# Check for some things on darwin
154 +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
155 +  case $host_os in
156 +    rhapsody* | darwin*)
157 +    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
158 +    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
159 +
160 +    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
161 +      [lt_cv_apple_cc_single_mod=no
162 +      if test -z "${LT_MULTI_MODULE}"; then
163 +   # By default we will add the -single_module flag. You can override
164 +   # by either setting the environment variable LT_MULTI_MODULE
165 +   # non-empty at configure time, or by adding -multi_module to the
166 +   # link flags.
167 +   echo "int foo(void){return 1;}" > conftest.c
168 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
169 +     -dynamiclib ${wl}-single_module conftest.c
170 +   if test -f libconftest.dylib; then
171 +     lt_cv_apple_cc_single_mod=yes
172 +     rm -rf libconftest.dylib*
173 +   fi
174 +   rm conftest.c
175 +      fi])
176 +    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
177 +      [lt_cv_ld_exported_symbols_list],
178 +      [lt_cv_ld_exported_symbols_list=no
179 +      save_LDFLAGS=$LDFLAGS
180 +      echo "_main" > conftest.sym
181 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
182 +      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
183 +   [lt_cv_ld_exported_symbols_list=yes],
184 +   [lt_cv_ld_exported_symbols_list=no])
185 +   LDFLAGS="$save_LDFLAGS"
186 +    ])
187 +    case $host_os in
188 +    rhapsody* | darwin1.[[0123]])
189 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
190 +    darwin1.*)
191 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
192 +    darwin*)
193 +      # if running on 10.5 or later, the deployment target defaults
194 +      # to the OS version, if on x86, and 10.4, the deployment
195 +      # target defaults to 10.4. Don't you love it?
196 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
197 +   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
198 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
199 +   10.[[012]]*)
200 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
201 +   10.*)
202 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
203 +      esac
204 +    ;;
205 +  esac
206 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
207 +      _lt_dar_single_mod='$single_module'
208 +    fi
209 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
210 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
211 +    else
212 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
213 +    fi
214 +    if test "$DSYMUTIL" != ":"; then
215 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
216 +    else
217 +      _lt_dsymutil=
218 +    fi
219 +    ;;
220 +  esac
221 +])
222 +
223  # _LT_AC_SYS_LIBPATH_AIX
224  # ----------------------
225  # Links a minimal program and checks the executable
226 @@ -245,12 +367,20 @@ compiler=$CC
227  # If we don't find anything, use the default library path according
228  # to the aix ld manual.
229  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
230 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
231 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
232 -}'`
233 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
234 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
235 +lt_aix_libpath_sed='
236 +    /Import File Strings/,/^$/ {
237 +       /^0/ {
238 +           s/^0  *\(.*\)$/\1/
239 +           p
240 +       }
241 +    }'
242 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
243  # Check for a 64-bit object if we didn't find anything.
244 -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; }
245 -}'`; fi],[])
246 +if test -z "$aix_libpath"; then
247 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
248 +fi],[])
249  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
250  ])# _LT_AC_SYS_LIBPATH_AIX
251  
252 @@ -308,15 +438,15 @@ fi
253  
254  # The HP-UX ksh and POSIX shell print the target directory to stdout
255  # if CDPATH is set.
256 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
257 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
258  
259  if test -z "$ECHO"; then
260  if test "X${echo_test_string+set}" != Xset; then
261  # find a string as large as possible, as long as the shell can cope with it
262    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
263      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
264 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
265 -       echo_test_string="`eval $cmd`" &&
266 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
267 +       echo_test_string=`eval $cmd` &&
268         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
269      then
270        break
271 @@ -481,13 +611,17 @@ ia64-*-hpux*)
272    rm -rf conftest*
273    ;;
274  
275 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
276 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
277 +s390*-*linux*|sparc*-*linux*)
278    # Find out which ABI we are using.
279    echo 'int i;' > conftest.$ac_ext
280    if AC_TRY_EVAL(ac_compile); then
281 -    case "`/usr/bin/file conftest.o`" in
282 +    case `/usr/bin/file conftest.o` in
283      *32-bit*)
284        case $host in
285 +        x86_64-*kfreebsd*-gnu)
286 +          LD="${LD-ld} -m elf_i386_fbsd"
287 +          ;;
288          x86_64-*linux*)
289            LD="${LD-ld} -m elf_i386"
290            ;;
291 @@ -504,6 +638,9 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
292        ;;
293      *64-bit*)
294        case $host in
295 +        x86_64-*kfreebsd*-gnu)
296 +          LD="${LD-ld} -m elf_x86_64_fbsd"
297 +          ;;
298          x86_64-*linux*)
299            LD="${LD-ld} -m elf_x86_64"
300            ;;
301 @@ -536,6 +673,26 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
302      CFLAGS="$SAVE_CFLAGS"
303    fi
304    ;;
305 +sparc*-*solaris*)
306 +  # Find out which ABI we are using.
307 +  echo 'int i;' > conftest.$ac_ext
308 +  if AC_TRY_EVAL(ac_compile); then
309 +    case `/usr/bin/file conftest.o` in
310 +    *64-bit*)
311 +      case $lt_cv_prog_gnu_ld in
312 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
313 +      *)
314 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
315 +         LD="${LD-ld} -64"
316 +       fi
317 +       ;;
318 +      esac
319 +      ;;
320 +    esac
321 +  fi
322 +  rm -rf conftest*
323 +  ;;
324 +
325  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
326  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
327    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
328 @@ -559,7 +716,7 @@ AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
329  AC_CACHE_CHECK([$1], [$2],
330    [$2=no
331    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
332 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
333 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
334     lt_compiler_flag="$3"
335     # Insert the option either (1) after the last *FLAGS variable, or
336     # (2) before a word containing "conftest.", or (3) at the end.
337 @@ -567,7 +724,7 @@ AC_CACHE_CHECK([$1], [$2],
338     # with a dollar sign (not a hyphen), so the echo should work correctly.
339     # The option is referenced via a variable to avoid confusing sed.
340     lt_compile=`echo "$ac_compile" | $SED \
341 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
342 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
343     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
344     -e 's:$: $lt_compiler_flag:'`
345     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
346 @@ -577,8 +734,10 @@ AC_CACHE_CHECK([$1], [$2],
347     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
348     if (exit $ac_status) && test -s "$ac_outfile"; then
349       # The compiler can only warn and ignore the option if not recognized
350 -     # So say no if there are warnings
351 -     if test ! -s conftest.err; then
352 +     # So say no if there are warnings other than the usual output.
353 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
354 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
355 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
356         $2=yes
357       fi
358     fi
359 @@ -598,22 +757,28 @@ fi
360  # ------------------------------------------------------------
361  # Check whether the given compiler option works
362  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
363 -[AC_CACHE_CHECK([$1], [$2],
364 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
365 +AC_CACHE_CHECK([$1], [$2],
366    [$2=no
367     save_LDFLAGS="$LDFLAGS"
368     LDFLAGS="$LDFLAGS $3"
369 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
370 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
371     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
372 -     # The compiler can only warn and ignore the option if not recognized
373 +     # The linker can only warn and ignore the option if not recognized
374       # So say no if there are warnings
375       if test -s conftest.err; then
376         # Append any errors to the config.log.
377         cat conftest.err 1>&AS_MESSAGE_LOG_FD
378 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
379 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
380 +       if diff conftest.exp conftest.er2 >/dev/null; then
381 +         $2=yes
382 +       fi
383       else
384         $2=yes
385       fi
386     fi
387 -   $rm conftest*
388 +   $rm -r conftest*
389     LDFLAGS="$save_LDFLAGS"
390  ])
391  
392 @@ -667,24 +832,71 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
393      lt_cv_sys_max_cmd_len=8192;
394      ;;
395  
396 - *)
397 -    # If test is not a shell built-in, we'll probably end up computing a
398 -    # maximum length that is only half of the actual maximum length, but
399 -    # we can't tell.
400 -    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
401 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
402 +    # This has been around since 386BSD, at least.  Likely further.
403 +    if test -x /sbin/sysctl; then
404 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
405 +    elif test -x /usr/sbin/sysctl; then
406 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
407 +    else
408 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
409 +    fi
410 +    # And add a safety zone
411 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
412 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
413 +    ;;
414 +
415 +  interix*)
416 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
417 +    lt_cv_sys_max_cmd_len=196608
418 +    ;;
419 +
420 +  osf*)
421 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
422 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
423 +    # nice to cause kernel panics so lets avoid the loop below.
424 +    # First set a reasonable default.
425 +    lt_cv_sys_max_cmd_len=16384
426 +    #
427 +    if test -x /sbin/sysconfig; then
428 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
429 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
430 +      esac
431 +    fi
432 +    ;;
433 +  sco3.2v5*)
434 +    lt_cv_sys_max_cmd_len=102400
435 +    ;;
436 +  sysv5* | sco5v6* | sysv4.2uw2*)
437 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
438 +    if test -n "$kargmax"; then
439 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[       ]]//'`
440 +    else
441 +      lt_cv_sys_max_cmd_len=32768
442 +    fi
443 +    ;;
444 +  *)
445 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
446 +    if test -n "$lt_cv_sys_max_cmd_len"; then
447 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
448 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
449 +    else
450 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
451 +      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
452                = "XX$teststring") >/dev/null 2>&1 &&
453 -           new_result=`expr "X$teststring" : ".*" 2>&1` &&
454 -           lt_cv_sys_max_cmd_len=$new_result &&
455 -           test $i != 17 # 1/2 MB should be enough
456 -    do
457 -      i=`expr $i + 1`
458 -      teststring=$teststring$teststring
459 -    done
460 -    teststring=
461 -    # Add a significant safety factor because C++ compilers can tack on massive
462 -    # amounts of additional arguments before passing them to the linker.
463 -    # It appears as though 1/2 is a usable value.
464 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
465 +             new_result=`expr "X$teststring" : ".*" 2>&1` &&
466 +             lt_cv_sys_max_cmd_len=$new_result &&
467 +             test $i != 17 # 1/2 MB should be enough
468 +      do
469 +        i=`expr $i + 1`
470 +        teststring=$teststring$teststring
471 +      done
472 +      teststring=
473 +      # Add a significant safety factor because C++ compilers can tack on massive
474 +      # amounts of additional arguments before passing them to the linker.
475 +      # It appears as though 1/2 is a usable value.
476 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
477 +    fi
478      ;;
479    esac
480  ])
481 @@ -697,7 +909,7 @@ fi
482  
483  
484  # _LT_AC_CHECK_DLFCN
485 -# --------------------
486 +# ------------------
487  AC_DEFUN([_LT_AC_CHECK_DLFCN],
488  [AC_CHECK_HEADERS(dlfcn.h)dnl
489  ])# _LT_AC_CHECK_DLFCN
490 @@ -705,7 +917,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN],
491  
492  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
493  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
494 -# ------------------------------------------------------------------
495 +# ---------------------------------------------------------------------
496  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
497  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
498  if test "$cross_compiling" = yes; then :
499 @@ -771,17 +983,19 @@ int main ()
500        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
501        /* dlclose (self); */
502      }
503 +  else
504 +    puts (dlerror ());
505  
506      exit (status);
507  }]
508  EOF
509    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
510 -    (./conftest; exit; ) 2>/dev/null
511 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
512      lt_status=$?
513      case x$lt_status in
514        x$lt_dlno_uscore) $1 ;;
515        x$lt_dlneed_uscore) $2 ;;
516 -      x$lt_unknown|x*) $3 ;;
517 +      x$lt_dlunknown|x*) $3 ;;
518      esac
519    else :
520      # compilation failed
521 @@ -793,7 +1007,7 @@ rm -fr conftest*
522  
523  
524  # AC_LIBTOOL_DLOPEN_SELF
525 -# -------------------
526 +# ----------------------
527  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
528  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
529  if test "x$enable_dlopen" != xyes; then
530 @@ -835,7 +1049,7 @@ else
531      AC_CHECK_FUNC([shl_load],
532           [lt_cv_dlopen="shl_load"],
533        [AC_CHECK_LIB([dld], [shl_load],
534 -           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
535 +           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
536         [AC_CHECK_FUNC([dlopen],
537               [lt_cv_dlopen="dlopen"],
538           [AC_CHECK_LIB([dl], [dlopen],
539 @@ -843,7 +1057,7 @@ else
540             [AC_CHECK_LIB([svld], [dlopen],
541                   [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
542               [AC_CHECK_LIB([dld], [dld_link],
543 -                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
544 +                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
545               ])
546             ])
547           ])
548 @@ -864,7 +1078,7 @@ else
549      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
550  
551      save_LDFLAGS="$LDFLAGS"
552 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
553 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
554  
555      save_LIBS="$LIBS"
556      LIBS="$lt_cv_dlopen_libs $LIBS"
557 @@ -877,7 +1091,7 @@ else
558      ])
559  
560      if test "x$lt_cv_dlopen_self" = xyes; then
561 -      LDFLAGS="$LDFLAGS $link_static_flag"
562 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
563        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
564           lt_cv_dlopen_self_static, [dnl
565           _LT_AC_TRY_DLOPEN_SELF(
566 @@ -909,7 +1123,8 @@ fi
567  # ---------------------------------
568  # Check to see if options -c and -o are simultaneously supported by compiler
569  AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
570 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
571 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
572 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
573  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
574    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
575    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
576 @@ -917,7 +1132,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
577     mkdir conftest
578     cd conftest
579     mkdir out
580 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
581 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
582  
583     lt_compiler_flag="-o out/conftest2.$ac_objext"
584     # Insert the option either (1) after the last *FLAGS variable, or
585 @@ -925,7 +1140,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
586     # Note that $ac_compile itself does not contain backslashes and begins
587     # with a dollar sign (not a hyphen), so the echo should work correctly.
588     lt_compile=`echo "$ac_compile" | $SED \
589 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
590 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
591     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
592     -e 's:$: $lt_compiler_flag:'`
593     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
594 @@ -937,11 +1152,13 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
595     then
596       # The compiler can only warn and ignore the option if not recognized
597       # So say no if there are warnings
598 -     if test ! -s out/conftest.err; then
599 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
600 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
601 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
602         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
603       fi
604     fi
605 -   chmod u+w .
606 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
607     $rm conftest*
608     # SGI C++ compiler will create directory out/ii_files/ for
609     # template instantiation
610 @@ -1005,8 +1222,8 @@ AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
611  [AC_MSG_CHECKING([how to hardcode library paths into programs])
612  _LT_AC_TAGVAR(hardcode_action, $1)=
613  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
614 -   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
615 -   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
616 +   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
617 +   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
618  
619    # We can hardcode non-existant directories.
620    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
621 @@ -1055,6 +1272,7 @@ else
622     darwin*)
623         if test -n "$STRIP" ; then
624           striplib="$STRIP -x"
625 +         old_striplib="$STRIP -S"
626           AC_MSG_RESULT([yes])
627         else
628    AC_MSG_RESULT([no])
629 @@ -1072,7 +1290,8 @@ fi
630  # -----------------------------
631  # PORTME Fill in your ld.so characteristics
632  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
633 -[AC_MSG_CHECKING([dynamic linker characteristics])
634 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
635 +AC_MSG_CHECKING([dynamic linker characteristics])
636  library_names_spec=
637  libname_spec='lib$name'
638  soname_spec=
639 @@ -1086,20 +1305,58 @@ shlibpath_overrides_runpath=unknown
640  version_type=none
641  dynamic_linker="$host_os ld.so"
642  sys_lib_dlsearch_path_spec="/lib /usr/lib"
643 +m4_if($1,[],[
644  if test "$GCC" = yes; then
645 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
646 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
647 +  case $host_os in
648 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
649 +    *) lt_awk_arg="/^libraries:/" ;;
650 +  esac
651 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
652 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
653      # if the path contains ";" then we assume it to be the separator
654      # otherwise default to the standard path separator (i.e. ":") - it is
655      # assumed that no part of a normal pathname contains ";" but that should
656      # okay in the real world where ";" in dirpaths is itself problematic.
657 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
658 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
659    else
660 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
661 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
662    fi
663 +  # Ok, now we have the path, separated by spaces, we can step through it
664 +  # and add multilib dir if necessary.
665 +  lt_tmp_lt_search_path_spec=
666 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
667 +  for lt_sys_path in $lt_search_path_spec; do
668 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
669 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
670 +    else
671 +      test -d "$lt_sys_path" && \
672 +       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
673 +    fi
674 +  done
675 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
676 +BEGIN {RS=" "; FS="/|\n";} {
677 +  lt_foo="";
678 +  lt_count=0;
679 +  for (lt_i = NF; lt_i > 0; lt_i--) {
680 +    if ($lt_i != "" && $lt_i != ".") {
681 +      if ($lt_i == "..") {
682 +        lt_count++;
683 +      } else {
684 +        if (lt_count == 0) {
685 +          lt_foo="/" $lt_i lt_foo;
686 +        } else {
687 +          lt_count--;
688 +        }
689 +      }
690 +    }
691 +  }
692 +  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
693 +  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
694 +}'`
695 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
696  else
697    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
698 -fi
699 +fi])
700  need_lib_prefix=unknown
701  hardcode_into_libs=no
702  
703 @@ -1117,7 +1374,7 @@ aix3*)
704    soname_spec='${libname}${release}${shared_ext}$major'
705    ;;
706  
707 -aix4* | aix5*)
708 +aix[[4-9]]*)
709    version_type=linux
710    need_lib_prefix=no
711    need_version=no
712 @@ -1173,7 +1430,7 @@ beos*)
713    shlibpath_var=LIBRARY_PATH
714    ;;
715  
716 -bsdi4*)
717 +bsdi[[45]]*)
718    version_type=linux
719    need_version=no
720    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
721 @@ -1201,7 +1458,8 @@ cygwin* | mingw* | pw32*)
722        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
723        dldir=$destdir/`dirname \$dlpath`~
724        test -d \$dldir || mkdir -p \$dldir~
725 -      $install_prog $dir/$dlname \$dldir/$dlname'
726 +      $install_prog $dir/$dlname \$dldir/$dlname~
727 +      chmod a+x \$dldir/$dlname'
728      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
729        dlpath=$dir/\$dldll~
730         $rm \$dlpath'
731 @@ -1231,7 +1489,7 @@ cygwin* | mingw* | pw32*)
732        ;;
733      pw32*)
734        # pw32 DLLs use 'pw' prefix rather than 'lib'
735 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
736 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
737        ;;
738      esac
739      ;;
740 @@ -1254,13 +1512,9 @@ darwin* | rhapsody*)
741    soname_spec='${libname}${release}${major}$shared_ext'
742    shlibpath_overrides_runpath=yes
743    shlibpath_var=DYLD_LIBRARY_PATH
744 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
745 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
746 -  if test "$GCC" = yes; then
747 -    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"`
748 -  else
749 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
750 -  fi
751 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
752 +  m4_if([$1], [],[
753 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
754    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
755    ;;
756  
757 @@ -1277,20 +1531,17 @@ freebsd1*)
758    dynamic_linker=no
759    ;;
760  
761 -kfreebsd*-gnu)
762 -  version_type=linux
763 -  need_lib_prefix=no
764 -  need_version=no
765 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
766 -  soname_spec='${libname}${release}${shared_ext}$major'
767 -  shlibpath_var=LD_LIBRARY_PATH
768 -  shlibpath_overrides_runpath=no
769 -  hardcode_into_libs=yes
770 -  dynamic_linker='GNU ld.so'
771 -  ;;
772 -
773 -freebsd*)
774 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
775 +freebsd* | dragonfly*)
776 +  # DragonFly does not have aout.  When/if they implement a new
777 +  # versioning mechanism, adjust this.
778 +  if test -x /usr/bin/objformat; then
779 +    objformat=`/usr/bin/objformat`
780 +  else
781 +    case $host_os in
782 +    freebsd[[123]]*) objformat=aout ;;
783 +    *) objformat=elf ;;
784 +    esac
785 +  fi
786    version_type=freebsd-$objformat
787    case $version_type in
788      freebsd-elf*)
789 @@ -1308,14 +1559,19 @@ freebsd*)
790    freebsd2*)
791      shlibpath_overrides_runpath=yes
792      ;;
793 -  freebsd3.[01]* | freebsdelf3.[01]*)
794 +  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
795      shlibpath_overrides_runpath=yes
796      hardcode_into_libs=yes
797      ;;
798 -  *) # from 3.2 on
799 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
800 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
801      shlibpath_overrides_runpath=no
802      hardcode_into_libs=yes
803      ;;
804 +  *) # from 4.6 on, and DragonFly
805 +    shlibpath_overrides_runpath=yes
806 +    hardcode_into_libs=yes
807 +    ;;
808    esac
809    ;;
810  
811 @@ -1335,7 +1591,7 @@ hpux9* | hpux10* | hpux11*)
812    version_type=sunos
813    need_lib_prefix=no
814    need_version=no
815 -  case "$host_cpu" in
816 +  case $host_cpu in
817    ia64*)
818      shrext_cmds='.so'
819      hardcode_into_libs=yes
820 @@ -1375,6 +1631,18 @@ hpux9* | hpux10* | hpux11*)
821    postinstall_cmds='chmod 555 $lib'
822    ;;
823  
824 +interix[[3-9]]*)
825 +  version_type=linux
826 +  need_lib_prefix=no
827 +  need_version=no
828 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
829 +  soname_spec='${libname}${release}${shared_ext}$major'
830 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
831 +  shlibpath_var=LD_LIBRARY_PATH
832 +  shlibpath_overrides_runpath=no
833 +  hardcode_into_libs=yes
834 +  ;;
835 +
836  irix5* | irix6* | nonstopux*)
837    case $host_os in
838      nonstopux*) version_type=nonstopux ;;
839 @@ -1418,7 +1686,7 @@ linux*oldld* | linux*aout* | linux*coff*)
840    ;;
841  
842  # This must be Linux ELF.
843 -linux*)
844 +linux* | k*bsd*-gnu)
845    version_type=linux
846    need_lib_prefix=no
847    need_version=no
848 @@ -1432,27 +1700,10 @@ linux*)
849    # before this can be enabled.
850    hardcode_into_libs=yes
851  
852 -  # find out which ABI we are using
853 -  libsuff=
854 -  case "$host_cpu" in
855 -  x86_64*|s390x*|powerpc64*)
856 -    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
857 -    if AC_TRY_EVAL(ac_compile); then
858 -      case `/usr/bin/file conftest.$ac_objext` in
859 -      *64-bit*)
860 -        libsuff=64
861 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
862 -        ;;
863 -      esac
864 -    fi
865 -    rm -rf conftest*
866 -    ;;
867 -  esac
868 -
869    # Append ld.so.conf contents to the search path
870    if test -f /etc/ld.so.conf; then
871 -    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
872 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
873 +    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' ' '`
874 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
875    fi
876  
877    # We used to test for /lib/ld.so.1 and disable shared libraries on
878 @@ -1464,7 +1715,7 @@ linux*)
879    dynamic_linker='GNU/Linux ld.so'
880    ;;
881  
882 -knetbsd*-gnu)
883 +netbsdelf*-gnu)
884    version_type=linux
885    need_lib_prefix=no
886    need_version=no
887 @@ -1473,7 +1724,7 @@ knetbsd*-gnu)
888    shlibpath_var=LD_LIBRARY_PATH
889    shlibpath_overrides_runpath=no
890    hardcode_into_libs=yes
891 -  dynamic_linker='GNU ld.so'
892 +  dynamic_linker='NetBSD ld.elf_so'
893    ;;
894  
895  netbsd*)
896 @@ -1513,8 +1764,13 @@ nto-qnx*)
897  
898  openbsd*)
899    version_type=sunos
900 +  sys_lib_dlsearch_path_spec="/usr/lib"
901    need_lib_prefix=no
902 -  need_version=yes
903 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
904 +  case $host_os in
905 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
906 +    *)                         need_version=no  ;;
907 +  esac
908    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
909    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
910    shlibpath_var=LD_LIBRARY_PATH
911 @@ -1552,11 +1808,8 @@ osf3* | osf4* | osf5*)
912    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
913    ;;
914  
915 -sco3.2v5*)
916 -  version_type=osf
917 -  soname_spec='${libname}${release}${shared_ext}$major'
918 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
919 -  shlibpath_var=LD_LIBRARY_PATH
920 +rdos*)
921 +  dynamic_linker=no
922    ;;
923  
924  solaris*)
925 @@ -1584,7 +1837,7 @@ sunos4*)
926    need_version=yes
927    ;;
928  
929 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
930 +sysv4 | sysv4.3*)
931    version_type=linux
932    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
933    soname_spec='${libname}${release}${shared_ext}$major'
934 @@ -1617,6 +1870,29 @@ sysv4*MP*)
935    fi
936    ;;
937  
938 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
939 +  version_type=freebsd-elf
940 +  need_lib_prefix=no
941 +  need_version=no
942 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
943 +  soname_spec='${libname}${release}${shared_ext}$major'
944 +  shlibpath_var=LD_LIBRARY_PATH
945 +  hardcode_into_libs=yes
946 +  if test "$with_gnu_ld" = yes; then
947 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
948 +    shlibpath_overrides_runpath=no
949 +  else
950 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
951 +    shlibpath_overrides_runpath=yes
952 +    case $host_os in
953 +      sco3.2v5*)
954 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
955 +       ;;
956 +    esac
957 +  fi
958 +  sys_lib_dlsearch_path_spec='/usr/lib'
959 +  ;;
960 +
961  uts4*)
962    version_type=linux
963    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
964 @@ -1630,13 +1906,26 @@ uts4*)
965  esac
966  AC_MSG_RESULT([$dynamic_linker])
967  test "$dynamic_linker" = no && can_build_shared=no
968 +
969 +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
970 +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
971 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
972 +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
973 +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
974 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
975 +
976 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
977 +if test "$GCC" = yes; then
978 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
979 +fi
980  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
981  
982  
983  # _LT_AC_TAGCONFIG
984  # ----------------
985  AC_DEFUN([_LT_AC_TAGCONFIG],
986 -[AC_ARG_WITH([tags],
987 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
988 +AC_ARG_WITH([tags],
989      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
990          [include additional configurations @<:@automatic@:>@])],
991      [tagnames="$withval"])
992 @@ -1654,6 +1943,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
993        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
994      fi
995    fi
996 +  if test -z "$LTCFLAGS"; then
997 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
998 +  fi
999  
1000    # Extract list of available tagged configurations in $ofile.
1001    # Note that this assumes the entire list is on one line.
1002 @@ -1680,7 +1972,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1003  
1004        case $tagname in
1005        CXX)
1006 -       if test -n "$CXX" && test "X$CXX" != "Xno"; then
1007 +       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1008 +           ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1009 +           (test "X$CXX" != "Xg++"))) ; then
1010           AC_LIBTOOL_LANG_CXX_CONFIG
1011         else
1012           tagname=""
1013 @@ -1742,7 +2036,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN],
1014  
1015  # AC_LIBTOOL_WIN32_DLL
1016  # --------------------
1017 -# declare package support for building win32 dll's
1018 +# declare package support for building win32 DLLs
1019  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1020  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1021  ])# AC_LIBTOOL_WIN32_DLL
1022 @@ -1780,7 +2074,7 @@ AC_ARG_ENABLE([shared],
1023  
1024  # AC_DISABLE_SHARED
1025  # -----------------
1026 -#- set the default shared flag to --disable-shared
1027 +# set the default shared flag to --disable-shared
1028  AC_DEFUN([AC_DISABLE_SHARED],
1029  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1030  AC_ENABLE_SHARED(no)
1031 @@ -1892,7 +2186,7 @@ m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1032  
1033  # AC_PATH_TOOL_PREFIX
1034  # -------------------
1035 -# find a file program which can recognise shared library
1036 +# find a file program which can recognize shared library
1037  AC_DEFUN([AC_PATH_TOOL_PREFIX],
1038  [AC_REQUIRE([AC_PROG_EGREP])dnl
1039  AC_MSG_CHECKING([for $1])
1040 @@ -1916,7 +2210,7 @@ dnl not every word.  This closes a longstanding sh security hole.
1041        if test -n "$file_magic_test_file"; then
1042         case $deplibs_check_method in
1043         "file_magic "*)
1044 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1045 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1046           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1047           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1048             $EGREP "$file_magic_regex" > /dev/null; then
1049 @@ -1955,7 +2249,7 @@ fi
1050  
1051  # AC_PATH_MAGIC
1052  # -------------
1053 -# find a file program which can recognise a shared library
1054 +# find a file program which can recognize a shared library
1055  AC_DEFUN([AC_PATH_MAGIC],
1056  [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1057  if test -z "$lt_cv_path_MAGIC_CMD"; then
1058 @@ -2026,7 +2320,7 @@ AC_CACHE_VAL(lt_cv_path_LD,
1059      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1060        lt_cv_path_LD="$ac_dir/$ac_prog"
1061        # Check to see if the program is GNU ld.  I'd rather use --version,
1062 -      # but apparently some GNU ld's only accept -v.
1063 +      # but apparently some variants of GNU ld only accept -v.
1064        # Break only if it was the GNU/non-GNU ld that we prefer.
1065        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1066        *GNU* | *'with BFD'*)
1067 @@ -2058,7 +2352,7 @@ AC_PROG_LD_GNU
1068  AC_DEFUN([AC_PROG_LD_GNU],
1069  [AC_REQUIRE([AC_PROG_EGREP])dnl
1070  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1071 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1072 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
1073  case `$LD -v 2>&1 </dev/null` in
1074  *GNU* | *'with BFD'*)
1075    lt_cv_prog_gnu_ld=yes
1076 @@ -2085,6 +2379,15 @@ case $reload_flag in
1077  *) reload_flag=" $reload_flag" ;;
1078  esac
1079  reload_cmds='$LD$reload_flag -o $output$reload_objs'
1080 +case $host_os in
1081 +  darwin*)
1082 +    if test "$GCC" = yes; then
1083 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1084 +    else
1085 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
1086 +    fi
1087 +    ;;
1088 +esac
1089  ])# AC_PROG_LD_RELOAD_FLAG
1090  
1091  
1092 @@ -2093,7 +2396,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs'
1093  # how to check for library dependencies
1094  #  -- PORTME fill in with the dynamic library characteristics
1095  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
1096 -[AC_CACHE_CHECK([how to recognise dependent libraries],
1097 +[AC_CACHE_CHECK([how to recognize dependent libraries],
1098  lt_cv_deplibs_check_method,
1099  [lt_cv_file_magic_cmd='$MAGIC_CMD'
1100  lt_cv_file_magic_test_file=
1101 @@ -2110,7 +2413,7 @@ lt_cv_deplibs_check_method='unknown'
1102  # whether `pass_all' will *always* work, you probably want this one.
1103  
1104  case $host_os in
1105 -aix4* | aix5*)
1106 +aix[[4-9]]*)
1107    lt_cv_deplibs_check_method=pass_all
1108    ;;
1109  
1110 @@ -2118,7 +2421,7 @@ beos*)
1111    lt_cv_deplibs_check_method=pass_all
1112    ;;
1113  
1114 -bsdi4*)
1115 +bsdi[[45]]*)
1116    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1117    lt_cv_file_magic_cmd='/usr/bin/file -L'
1118    lt_cv_file_magic_test_file=/shlib/libc.so
1119 @@ -2132,22 +2435,28 @@ cygwin*)
1120  
1121  mingw* | pw32*)
1122    # Base MSYS/MinGW do not provide the 'file' command needed by
1123 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
1124 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1125 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
1126 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
1127 +  # unless we find 'file', for example because we are cross-compiling.
1128 +  if ( file / ) >/dev/null 2>&1; then
1129 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1130 +    lt_cv_file_magic_cmd='func_win32_libid'
1131 +  else
1132 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1133 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
1134 +  fi
1135    ;;
1136  
1137  darwin* | rhapsody*)
1138    lt_cv_deplibs_check_method=pass_all
1139    ;;
1140  
1141 -freebsd* | kfreebsd*-gnu)
1142 +freebsd* | dragonfly*)
1143    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1144      case $host_cpu in
1145      i*86 )
1146        # Not sure whether the presence of OpenBSD here was a mistake.
1147        # Let's accept both of them until this is cleared up.
1148 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
1149 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1150        lt_cv_file_magic_cmd=/usr/bin/file
1151        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1152        ;;
1153 @@ -2163,7 +2472,7 @@ gnu*)
1154  
1155  hpux10.20* | hpux11*)
1156    lt_cv_file_magic_cmd=/usr/bin/file
1157 -  case "$host_cpu" in
1158 +  case $host_cpu in
1159    ia64*)
1160      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
1161      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1162 @@ -2179,6 +2488,11 @@ hpux10.20* | hpux11*)
1163    esac
1164    ;;
1165  
1166 +interix[[3-9]]*)
1167 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1168 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
1169 +  ;;
1170 +
1171  irix5* | irix6* | nonstopux*)
1172    case $LD in
1173    *-32|*"-32 ") libmagic=32-bit;;
1174 @@ -2190,20 +2504,11 @@ irix5* | irix6* | nonstopux*)
1175    ;;
1176  
1177  # This must be Linux ELF.
1178 -linux*)
1179 -  case $host_cpu in
1180 -  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
1181 -    lt_cv_deplibs_check_method=pass_all ;;
1182 -  *)
1183 -    # glibc up to 2.1.1 does not perform some relocations on ARM
1184 -    # this will be overridden with pass_all, but let us keep it just in case
1185 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
1186 -  esac
1187 -  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1188 +linux* | k*bsd*-gnu)
1189    lt_cv_deplibs_check_method=pass_all
1190    ;;
1191  
1192 -netbsd*)
1193 +netbsd* | netbsdelf*-gnu)
1194    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1195      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1196    else
1197 @@ -2222,12 +2527,10 @@ nto-qnx*)
1198    ;;
1199  
1200  openbsd*)
1201 -  lt_cv_file_magic_cmd=/usr/bin/file
1202 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1203    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1204 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
1205 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
1206    else
1207 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1208 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1209    fi
1210    ;;
1211  
1212 @@ -2235,7 +2538,7 @@ osf3* | osf4* | osf5*)
1213    lt_cv_deplibs_check_method=pass_all
1214    ;;
1215  
1216 -sco3.2v5*)
1217 +rdos*)
1218    lt_cv_deplibs_check_method=pass_all
1219    ;;
1220  
1221 @@ -2243,7 +2546,7 @@ solaris*)
1222    lt_cv_deplibs_check_method=pass_all
1223    ;;
1224  
1225 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1226 +sysv4 | sysv4.3*)
1227    case $host_vendor in
1228    motorola)
1229      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]]'
1230 @@ -2264,10 +2567,13 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1231    siemens)
1232      lt_cv_deplibs_check_method=pass_all
1233      ;;
1234 +  pc)
1235 +    lt_cv_deplibs_check_method=pass_all
1236 +    ;;
1237    esac
1238    ;;
1239  
1240 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
1241 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1242    lt_cv_deplibs_check_method=pass_all
1243    ;;
1244  esac
1245 @@ -2287,36 +2593,43 @@ AC_DEFUN([AC_PROG_NM],
1246    # Let the user override the test.
1247    lt_cv_path_NM="$NM"
1248  else
1249 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1250 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1251 -    IFS="$lt_save_ifs"
1252 -    test -z "$ac_dir" && ac_dir=.
1253 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
1254 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1255 -      # Check to see if the nm accepts a BSD-compat flag.
1256 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1257 -      #   nm: unknown option "B" ignored
1258 -      # Tru64's nm complains that /dev/null is an invalid object file
1259 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1260 -      */dev/null* | *'Invalid file or object type'*)
1261 -       lt_cv_path_NM="$tmp_nm -B"
1262 -       break
1263 -        ;;
1264 -      *)
1265 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1266 -       */dev/null*)
1267 -         lt_cv_path_NM="$tmp_nm -p"
1268 +  lt_nm_to_check="${ac_tool_prefix}nm"
1269 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1270 +    lt_nm_to_check="$lt_nm_to_check nm"
1271 +  fi
1272 +  for lt_tmp_nm in $lt_nm_to_check; do
1273 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1274 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1275 +      IFS="$lt_save_ifs"
1276 +      test -z "$ac_dir" && ac_dir=.
1277 +      tmp_nm="$ac_dir/$lt_tmp_nm"
1278 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1279 +       # Check to see if the nm accepts a BSD-compat flag.
1280 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1281 +       #   nm: unknown option "B" ignored
1282 +       # Tru64's nm complains that /dev/null is an invalid object file
1283 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1284 +       */dev/null* | *'Invalid file or object type'*)
1285 +         lt_cv_path_NM="$tmp_nm -B"
1286           break
1287           ;;
1288         *)
1289 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1290 -         continue # so that we can try to find one that supports BSD flags
1291 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1292 +         */dev/null*)
1293 +           lt_cv_path_NM="$tmp_nm -p"
1294 +           break
1295 +           ;;
1296 +         *)
1297 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1298 +           continue # so that we can try to find one that supports BSD flags
1299 +           ;;
1300 +         esac
1301           ;;
1302         esac
1303 -      esac
1304 -    fi
1305 +      fi
1306 +    done
1307 +    IFS="$lt_save_ifs"
1308    done
1309 -  IFS="$lt_save_ifs"
1310    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1311  fi])
1312  NM="$lt_cv_path_NM"
1313 @@ -2348,13 +2661,13 @@ esac
1314  # -----------------------------------
1315  # sets LIBLTDL to the link flags for the libltdl convenience library and
1316  # LTDLINCL to the include flags for the libltdl header and adds
1317 -# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
1318 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
1319 -# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
1320 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
1321 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
1322 -# flat and you're not using automake, define top_builddir and
1323 -# top_srcdir appropriately in the Makefiles.
1324 +# --enable-ltdl-convenience to the configure arguments.  Note that
1325 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1326 +# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
1327 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1328 +# (note the single quotes!).  If your package is not flat and you're not
1329 +# using automake, define top_builddir and top_srcdir appropriately in
1330 +# the Makefiles.
1331  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1332  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1333    case $enable_ltdl_convenience in
1334 @@ -2373,13 +2686,13 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1335  # -----------------------------------
1336  # sets LIBLTDL to the link flags for the libltdl installable library and
1337  # LTDLINCL to the include flags for the libltdl header and adds
1338 -# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
1339 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
1340 -# DIRECTORY is not provided and an installed libltdl is not found, it is
1341 -# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
1342 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
1343 -# quotes!).  If your package is not flat and you're not using automake,
1344 -# define top_builddir and top_srcdir appropriately in the Makefiles.
1345 +# --enable-ltdl-install to the configure arguments.  Note that
1346 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1347 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
1348 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1349 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
1350 +# flat and you're not using automake, define top_builddir and top_srcdir
1351 +# appropriately in the Makefiles.
1352  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1353  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
1354  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1355 @@ -2417,10 +2730,21 @@ AC_DEFUN([AC_LIBTOOL_CXX],
1356  # ---------------
1357  AC_DEFUN([_LT_AC_LANG_CXX],
1358  [AC_REQUIRE([AC_PROG_CXX])
1359 -AC_REQUIRE([AC_PROG_CXXCPP])
1360 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1361  _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
1362  ])# _LT_AC_LANG_CXX
1363  
1364 +# _LT_AC_PROG_CXXCPP
1365 +# ------------------
1366 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
1367 +[
1368 +AC_REQUIRE([AC_PROG_CXX])
1369 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1370 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1371 +    (test "X$CXX" != "Xg++"))) ; then
1372 +  AC_PROG_CXXCPP
1373 +fi
1374 +])# _LT_AC_PROG_CXXCPP
1375  
1376  # AC_LIBTOOL_F77
1377  # --------------
1378 @@ -2460,7 +2784,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
1379  
1380  
1381  # AC_LIBTOOL_RC
1382 -# --------------
1383 +# -------------
1384  # enable support for Windows resource files
1385  AC_DEFUN([AC_LIBTOOL_RC],
1386  [AC_REQUIRE([LT_AC_PROG_RC])
1387 @@ -2486,43 +2810,16 @@ objext=o
1388  _LT_AC_TAGVAR(objext, $1)=$objext
1389  
1390  # Code to be used in simple compile tests
1391 -lt_simple_compile_test_code="int some_variable = 0;\n"
1392 +lt_simple_compile_test_code="int some_variable = 0;"
1393  
1394  # Code to be used in simple link tests
1395 -lt_simple_link_test_code='int main(){return(0);}\n'
1396 +lt_simple_link_test_code='int main(){return(0);}'
1397  
1398  _LT_AC_SYS_COMPILER
1399  
1400 -#
1401 -# Check for any special shared library compilation flags.
1402 -#
1403 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
1404 -if test "$GCC" = no; then
1405 -  case $host_os in
1406 -  sco3.2v5*)
1407 -    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
1408 -    ;;
1409 -  esac
1410 -fi
1411 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
1412 -  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
1413 -  if echo "$old_CC $old_CFLAGS " | grep "[[    ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
1414 -  else
1415 -    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
1416 -    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
1417 -  fi
1418 -fi
1419 -
1420 -
1421 -#
1422 -# Check to make sure the static flag actually works.
1423 -#
1424 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
1425 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1426 -  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
1427 -  [],
1428 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1429 -
1430 +# save warnings/boilerplate of simple test code
1431 +_LT_COMPILER_BOILERPLATE
1432 +_LT_LINKER_BOILERPLATE
1433  
1434  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1435  AC_LIBTOOL_PROG_COMPILER_PIC($1)
1436 @@ -2532,9 +2829,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1)
1437  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1438  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1439  AC_LIBTOOL_SYS_LIB_STRIP
1440 -AC_LIBTOOL_DLOPEN_SELF($1)
1441 +AC_LIBTOOL_DLOPEN_SELF
1442  
1443 -# Report which librarie types wil actually be built
1444 +# Report which library types will actually be built
1445  AC_MSG_CHECKING([if libtool supports shared libraries])
1446  AC_MSG_RESULT([$can_build_shared])
1447  
1448 @@ -2543,7 +2840,7 @@ test "$can_build_shared" = "no" && enable_shared=no
1449  
1450  # On AIX, shared libraries and static libraries use the same namespace, and
1451  # are all built from PIC.
1452 -case "$host_os" in
1453 +case $host_os in
1454  aix3*)
1455    test "$enable_shared" = yes && enable_static=no
1456    if test -n "$RANLIB"; then
1457 @@ -2552,47 +2849,10 @@ aix3*)
1458    fi
1459    ;;
1460  
1461 -aix4* | aix5*)
1462 +aix[[4-9]]*)
1463    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1464      test "$enable_shared" = yes && enable_static=no
1465    fi
1466 -  ;;
1467 -  darwin* | rhapsody*)
1468 -  if test "$GCC" = yes; then
1469 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1470 -    case "$host_os" in
1471 -    rhapsody* | darwin1.[[012]])
1472 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1473 -      ;;
1474 -    *) # Darwin 1.3 on
1475 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1476 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1477 -      else
1478 -        case ${MACOSX_DEPLOYMENT_TARGET} in
1479 -          10.[[012]])
1480 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1481 -            ;;
1482 -          10.*)
1483 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1484 -            ;;
1485 -        esac
1486 -      fi
1487 -      ;;
1488 -    esac
1489 -    output_verbose_link_cmd='echo'
1490 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
1491 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1492 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1493 -    _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}'
1494 -    _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}'
1495 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1496 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1497 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1498 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1499 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1500 -  else
1501 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
1502 -  fi
1503      ;;
1504  esac
1505  AC_MSG_RESULT([$enable_shared])
1506 @@ -2618,7 +2878,7 @@ AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
1507  AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
1508  [AC_LANG_PUSH(C++)
1509  AC_REQUIRE([AC_PROG_CXX])
1510 -AC_REQUIRE([AC_PROG_CXXCPP])
1511 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1512  
1513  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1514  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
1515 @@ -2630,6 +2890,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1516  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1517  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1518  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1519 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1520  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
1521  _LT_AC_TAGVAR(module_cmds, $1)=
1522  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
1523 @@ -2645,23 +2906,28 @@ _LT_AC_TAGVAR(postdep_objects, $1)=
1524  _LT_AC_TAGVAR(predeps, $1)=
1525  _LT_AC_TAGVAR(postdeps, $1)=
1526  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
1527 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
1528  
1529  # Source file extension for C++ test sources.
1530 -ac_ext=cc
1531 +ac_ext=cpp
1532  
1533  # Object file extension for compiled C++ test sources.
1534  objext=o
1535  _LT_AC_TAGVAR(objext, $1)=$objext
1536  
1537  # Code to be used in simple compile tests
1538 -lt_simple_compile_test_code="int some_variable = 0;\n"
1539 +lt_simple_compile_test_code="int some_variable = 0;"
1540  
1541  # Code to be used in simple link tests
1542 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
1543 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
1544  
1545  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1546  _LT_AC_SYS_COMPILER
1547  
1548 +# save warnings/boilerplate of simple test code
1549 +_LT_COMPILER_BOILERPLATE
1550 +_LT_LINKER_BOILERPLATE
1551 +
1552  # Allow CC to be a program name with arguments.
1553  lt_save_CC=$CC
1554  lt_save_LD=$LD
1555 @@ -2672,18 +2938,18 @@ lt_save_path_LD=$lt_cv_path_LD
1556  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1557    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1558  else
1559 -  unset lt_cv_prog_gnu_ld
1560 +  $as_unset lt_cv_prog_gnu_ld
1561  fi
1562  if test -n "${lt_cv_path_LDCXX+set}"; then
1563    lt_cv_path_LD=$lt_cv_path_LDCXX
1564  else
1565 -  unset lt_cv_path_LD
1566 +  $as_unset lt_cv_path_LD
1567  fi
1568  test -z "${LDCXX+set}" || LD=$LDCXX
1569  CC=${CXX-"c++"}
1570  compiler=$CC
1571  _LT_AC_TAGVAR(compiler, $1)=$CC
1572 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1573 +_LT_CC_BASENAME([$compiler])
1574  
1575  # We don't want -fno-exception wen compiling C++ code, so set the
1576  # no_builtin_flag separately
1577 @@ -2750,7 +3016,7 @@ case $host_os in
1578      # FIXME: insert proper C++ library support
1579      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1580      ;;
1581 -  aix4* | aix5*)
1582 +  aix[[4-9]]*)
1583      if test "$host_cpu" = ia64; then
1584        # On IA64, the linker does run time linking by default, so we don't
1585        # have to do anything special.
1586 @@ -2763,7 +3029,7 @@ case $host_os in
1587        # Test if we are trying to use run time linking or normal
1588        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1589        # need to do runtime linking.
1590 -      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1591 +      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
1592         for ld_flag in $LDFLAGS; do
1593           case $ld_flag in
1594           *-brtl*)
1595 @@ -2772,6 +3038,7 @@ case $host_os in
1596             ;;
1597           esac
1598         done
1599 +       ;;
1600        esac
1601  
1602        exp_sym_flag='-bexport'
1603 @@ -2790,7 +3057,7 @@ case $host_os in
1604      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1605  
1606      if test "$GXX" = yes; then
1607 -      case $host_os in aix4.[012]|aix4.[012].*)
1608 +      case $host_os in aix4.[[012]]|aix4.[[012]].*)
1609        # We only want to do this on AIX 4.2 and lower, the check
1610        # below for broken collect2 doesn't work under 4.3+
1611         collect2name=`${CC} -print-prog-name=collect2`
1612 @@ -2798,7 +3065,7 @@ case $host_os in
1613            strings "$collect2name" | grep resolve_lib_name >/dev/null
1614         then
1615           # We have reworked collect2
1616 -         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1617 +         :
1618         else
1619           # We have old collect2
1620           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1621 @@ -2809,8 +3076,12 @@ case $host_os in
1622           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1623           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1624         fi
1625 +       ;;
1626        esac
1627        shared_flag='-shared'
1628 +      if test "$aix_use_runtimelinking" = yes; then
1629 +       shared_flag="$shared_flag "'${wl}-G'
1630 +      fi
1631      else
1632        # not using gcc
1633        if test "$host_cpu" = ia64; then
1634 @@ -2837,12 +3108,12 @@ case $host_os in
1635        _LT_AC_SYS_LIBPATH_AIX
1636        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1637  
1638 -      _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"
1639 +      _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"
1640       else
1641        if test "$host_cpu" = ia64; then
1642         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1643         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1644 -       _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"
1645 +       _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"
1646        else
1647         # Determine the default libpath from the value encoded in an empty executable.
1648         _LT_AC_SYS_LIBPATH_AIX
1649 @@ -2851,16 +3122,26 @@ case $host_os in
1650         # -berok will link without error, but may produce a broken library.
1651         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1652         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1653 -       # -bexpall does not export symbols beginning with underscore (_)
1654 -       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1655         # Exported symbols can be pulled into shared objects from archives
1656 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1657 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1658         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1659 -       # This is similar to how AIX traditionally builds it's shared libraries.
1660 -       _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'
1661 +       # This is similar to how AIX traditionally builds its shared libraries.
1662 +       _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'
1663        fi
1664      fi
1665      ;;
1666 +
1667 +  beos*)
1668 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1669 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1670 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1671 +      # support --undefined.  This deserves some investigation.  FIXME
1672 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1673 +    else
1674 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1675 +    fi
1676 +    ;;
1677 +
1678    chorus*)
1679      case $cc_basename in
1680        *)
1681 @@ -2879,7 +3160,7 @@ case $host_os in
1682      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1683  
1684      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1685 -      _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'
1686 +      _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'
1687        # If the export-symbols file already is a .def file (1st line
1688        # is EXPORTS), use it as is; otherwise, prepend...
1689        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1690 @@ -2888,70 +3169,53 @@ case $host_os in
1691         echo EXPORTS > $output_objdir/$soname.def;
1692         cat $export_symbols >> $output_objdir/$soname.def;
1693        fi~
1694 -      $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'
1695 +      $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'
1696      else
1697        _LT_AC_TAGVAR(ld_shlibs, $1)=no
1698      fi
1699    ;;
1700 -
1701 -  darwin* | rhapsody*)
1702 -  if test "$GXX" = yes; then
1703 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1704 -    case "$host_os" in
1705 -    rhapsody* | darwin1.[[012]])
1706 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1707 -      ;;
1708 -    *) # Darwin 1.3 on
1709 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1710 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1711 +      darwin* | rhapsody*)
1712 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1713 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1714 +      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1715 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1716 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1717 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1718 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1719 +      if test "$GXX" = yes ; then
1720 +      output_verbose_link_cmd='echo'
1721 +      _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}"
1722 +      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1723 +      _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}"
1724 +      _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}"
1725 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1726 +        _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}"
1727 +        _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}"
1728 +      fi
1729        else
1730 -        case ${MACOSX_DEPLOYMENT_TARGET} in
1731 -          10.[[012]])
1732 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1733 -            ;;
1734 -          10.*)
1735 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1736 -            ;;
1737 -        esac
1738 +      case $cc_basename in
1739 +        xlc*)
1740 +         output_verbose_link_cmd='echo'
1741 +          _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'
1742 +          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1743 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1744 +          _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}'
1745 +          _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}'
1746 +          ;;
1747 +       *)
1748 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1749 +          ;;
1750 +      esac
1751        fi
1752 -      ;;
1753 -    esac
1754 -    lt_int_apple_cc_single_mod=no
1755 -    output_verbose_link_cmd='echo'
1756 -    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
1757 -      lt_int_apple_cc_single_mod=yes
1758 -    fi
1759 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1760 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1761 -    else
1762 -      _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'
1763 -    fi
1764 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1765 -
1766 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1767 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1768 -      _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}'
1769 -    else
1770 -      _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}'
1771 -    fi
1772 -    _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}'
1773 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1774 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1775 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1776 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1777 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1778 -  else
1779 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
1780 -  fi
1781 -    ;;
1782 +        ;;
1783  
1784    dgux*)
1785      case $cc_basename in
1786 -      ec++)
1787 +      ec++*)
1788         # FIXME: insert proper C++ library support
1789         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1790         ;;
1791 -      ghcx)
1792 +      ghcx*)
1793         # Green Hills C++ Compiler
1794         # FIXME: insert proper C++ library support
1795         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1796 @@ -2962,14 +3226,14 @@ case $host_os in
1797         ;;
1798      esac
1799      ;;
1800 -  freebsd[12]*)
1801 +  freebsd[[12]]*)
1802      # C++ shared libraries reported to be fairly broken before switch to ELF
1803      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1804      ;;
1805    freebsd-elf*)
1806      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1807      ;;
1808 -  freebsd* | kfreebsd*-gnu)
1809 +  freebsd* | dragonfly*)
1810      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1811      # conventions
1812      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1813 @@ -2986,11 +3250,11 @@ case $host_os in
1814                                 # location of the library.
1815  
1816      case $cc_basename in
1817 -    CC)
1818 +    CC*)
1819        # FIXME: insert proper C++ library support
1820        _LT_AC_TAGVAR(ld_shlibs, $1)=no
1821        ;;
1822 -    aCC)
1823 +    aCC*)
1824        _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'
1825        # Commands to make compiler produce verbose output that lists
1826        # what "hidden" libraries, object files and flags are used when
1827 @@ -3000,7 +3264,7 @@ case $host_os in
1828        # explicitly linking system object files so we need to strip them
1829        # from the output so that they don't get included in the library
1830        # dependencies.
1831 -      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'
1832 +      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'
1833        ;;
1834      *)
1835        if test "$GXX" = yes; then
1836 @@ -3014,33 +3278,20 @@ case $host_os in
1837      ;;
1838    hpux10*|hpux11*)
1839      if test $with_gnu_ld = no; then
1840 -      case "$host_cpu" in
1841 -      hppa*64*)
1842 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1843 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1844 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1845 -        ;;
1846 -      ia64*)
1847 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1848 -        ;;
1849 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1850 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1851 +
1852 +      case $host_cpu in
1853 +      hppa*64*|ia64*) ;;
1854        *)
1855 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1856 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1857         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1858          ;;
1859        esac
1860      fi
1861 -    case "$host_cpu" in
1862 -    hppa*64*)
1863 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1864 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1865 -      ;;
1866 -    ia64*)
1867 +    case $host_cpu in
1868 +    hppa*64*|ia64*)
1869        _LT_AC_TAGVAR(hardcode_direct, $1)=no
1870        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1871 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
1872 -                                             # but as the default
1873 -                                             # location of the library.
1874        ;;
1875      *)
1876        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1877 @@ -3051,14 +3302,17 @@ case $host_os in
1878      esac
1879  
1880      case $cc_basename in
1881 -      CC)
1882 +      CC*)
1883         # FIXME: insert proper C++ library support
1884         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1885         ;;
1886 -      aCC)
1887 -       case "$host_cpu" in
1888 -       hppa*64*|ia64*)
1889 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1890 +      aCC*)
1891 +       case $host_cpu in
1892 +       hppa*64*)
1893 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1894 +         ;;
1895 +       ia64*)
1896 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1897           ;;
1898         *)
1899           _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'
1900 @@ -3077,9 +3331,12 @@ case $host_os in
1901        *)
1902         if test "$GXX" = yes; then
1903           if test $with_gnu_ld = no; then
1904 -           case "$host_cpu" in
1905 -           ia64*|hppa*64*)
1906 -             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1907 +           case $host_cpu in
1908 +           hppa*64*)
1909 +             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1910 +             ;;
1911 +           ia64*)
1912 +             _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'
1913               ;;
1914             *)
1915               _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'
1916 @@ -3093,11 +3350,25 @@ case $host_os in
1917         ;;
1918      esac
1919      ;;
1920 +  interix[[3-9]]*)
1921 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1922 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1923 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1924 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1925 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1926 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
1927 +    # default) and relocated if they conflict, which is a slow very memory
1928 +    # consuming and fragmenting process.  To avoid this, we pick a random,
1929 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1930 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1931 +    _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'
1932 +    _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'
1933 +    ;;
1934    irix5* | irix6*)
1935      case $cc_basename in
1936 -      CC)
1937 +      CC*)
1938         # SGI C++
1939 -       _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'
1940 +       _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'
1941  
1942         # Archives containing C++ object files must be created using
1943         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
1944 @@ -3108,7 +3379,7 @@ case $host_os in
1945        *)
1946         if test "$GXX" = yes; then
1947           if test "$with_gnu_ld" = no; then
1948 -           _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'
1949 +           _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'
1950           else
1951             _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'
1952           fi
1953 @@ -3119,9 +3390,9 @@ case $host_os in
1954      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1955      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1956      ;;
1957 -  linux*)
1958 +  linux* | k*bsd*-gnu)
1959      case $cc_basename in
1960 -      KCC)
1961 +      KCC*)
1962         # Kuck and Associates, Inc. (KAI) C++ Compiler
1963  
1964         # KCC will only create a shared library if the output file
1965 @@ -3146,17 +3417,41 @@ case $host_os in
1966         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1967         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
1968         ;;
1969 -      icpc)
1970 +      icpc*)
1971         # Intel C++
1972         with_gnu_ld=yes
1973 +       # version 8.0 and above of icpc choke on multiply defined symbols
1974 +       # if we add $predep_objects and $postdep_objects, however 7.1 and
1975 +       # earlier do not add the objects themselves.
1976 +       case `$CC -V 2>&1` in
1977 +       *"Version 7."*)
1978 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1979 +         _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'
1980 +         ;;
1981 +       *)  # Version 8.0 or newer
1982 +         tmp_idyn=
1983 +         case $host_cpu in
1984 +           ia64*) tmp_idyn=' -i_dynamic';;
1985 +         esac
1986 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1987 +         _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'
1988 +         ;;
1989 +       esac
1990         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1991 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1992 -       _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'
1993         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1994         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1995         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
1996         ;;
1997 -      cxx)
1998 +      pgCC* | pgcpp*)
1999 +        # Portland Group C++ compiler
2000 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2001 +       _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'
2002 +
2003 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2004 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2005 +       _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'
2006 +        ;;
2007 +      cxx*)
2008         # Compaq C++
2009         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2010         _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'
2011 @@ -3175,6 +3470,29 @@ case $host_os in
2012         # dependencies.
2013         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'
2014         ;;
2015 +      *)
2016 +       case `$CC -V 2>&1 | sed 5q` in
2017 +       *Sun\ C*)
2018 +         # Sun C++ 5.9
2019 +         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2020 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2021 +         _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'
2022 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2023 +         _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'
2024 +
2025 +         # Not sure whether something based on
2026 +         # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
2027 +         # would be better.
2028 +         output_verbose_link_cmd='echo'
2029 +
2030 +         # Archives containing C++ object files must be created using
2031 +         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
2032 +         # necessary to make sure instantiated templates are included
2033 +         # in the archive.
2034 +         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2035 +         ;;
2036 +       esac
2037 +       ;;
2038      esac
2039      ;;
2040    lynxos*)
2041 @@ -3187,7 +3505,7 @@ case $host_os in
2042      ;;
2043    mvs*)
2044      case $cc_basename in
2045 -      cxx)
2046 +      cxx*)
2047         # FIXME: insert proper C++ library support
2048         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2049         ;;
2050 @@ -3197,7 +3515,7 @@ case $host_os in
2051         ;;
2052      esac
2053      ;;
2054 -  netbsd*)
2055 +  netbsd* | netbsdelf*-gnu)
2056      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2057        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
2058        wlarc=
2059 @@ -3208,9 +3526,29 @@ case $host_os in
2060      # Workaround some broken pre-1.5 toolchains
2061      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
2062      ;;
2063 +  openbsd2*)
2064 +    # C++ shared libraries are fairly broken
2065 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2066 +    ;;
2067 +  openbsd*)
2068 +    if test -f /usr/libexec/ld.so; then
2069 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2070 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2071 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2072 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2073 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2074 +       _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'
2075 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2076 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2077 +      fi
2078 +      output_verbose_link_cmd='echo'
2079 +    else
2080 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2081 +    fi
2082 +    ;;
2083    osf3*)
2084      case $cc_basename in
2085 -      KCC)
2086 +      KCC*)
2087         # Kuck and Associates, Inc. (KAI) C++ Compiler
2088  
2089         # KCC will only create a shared library if the output file
2090 @@ -3226,14 +3564,14 @@ case $host_os in
2091         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2092  
2093         ;;
2094 -      RCC)
2095 +      RCC*)
2096         # Rational C++ 2.4.1
2097         # FIXME: insert proper C++ library support
2098         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2099         ;;
2100 -      cxx)
2101 +      cxx*)
2102         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2103 -       _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'
2104 +       _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'
2105  
2106         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2107         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2108 @@ -3251,7 +3589,7 @@ case $host_os in
2109        *)
2110         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2111           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2112 -         _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'
2113 +         _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'
2114  
2115           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2116           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2117 @@ -3270,7 +3608,7 @@ case $host_os in
2118      ;;
2119    osf4* | osf5*)
2120      case $cc_basename in
2121 -      KCC)
2122 +      KCC*)
2123         # Kuck and Associates, Inc. (KAI) C++ Compiler
2124  
2125         # KCC will only create a shared library if the output file
2126 @@ -3285,17 +3623,17 @@ case $host_os in
2127         # the KAI C++ compiler.
2128         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
2129         ;;
2130 -      RCC)
2131 +      RCC*)
2132         # Rational C++ 2.4.1
2133         # FIXME: insert proper C++ library support
2134         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2135         ;;
2136 -      cxx)
2137 +      cxx*)
2138         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2139 -       _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'
2140 +       _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'
2141         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
2142           echo "-hidden">> $lib.exp~
2143 -         $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~
2144 +         $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~
2145           $rm $lib.exp'
2146  
2147         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2148 @@ -3314,7 +3652,7 @@ case $host_os in
2149        *)
2150         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2151           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2152 -        _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'
2153 +        _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'
2154  
2155           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2156           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2157 @@ -3335,27 +3673,14 @@ case $host_os in
2158      # FIXME: insert proper C++ library support
2159      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2160      ;;
2161 -  sco*)
2162 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2163 -    case $cc_basename in
2164 -      CC)
2165 -       # FIXME: insert proper C++ library support
2166 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2167 -       ;;
2168 -      *)
2169 -       # FIXME: insert proper C++ library support
2170 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2171 -       ;;
2172 -    esac
2173 -    ;;
2174    sunos4*)
2175      case $cc_basename in
2176 -      CC)
2177 +      CC*)
2178         # Sun C++ 4.x
2179         # FIXME: insert proper C++ library support
2180         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2181         ;;
2182 -      lcc)
2183 +      lcc*)
2184         # Lucid
2185         # FIXME: insert proper C++ library support
2186         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2187 @@ -3368,36 +3693,28 @@ case $host_os in
2188      ;;
2189    solaris*)
2190      case $cc_basename in
2191 -      CC)
2192 +      CC*)
2193         # Sun C++ 4.2, 5.x and Centerline C++
2194 +        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
2195         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2196 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2197 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2198         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2199 -       $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'
2200 +       $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'
2201  
2202         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2203         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2204         case $host_os in
2205 -         solaris2.[0-5] | solaris2.[0-5].*) ;;
2206 +         solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2207           *)
2208 -           # The C++ compiler is used as linker so we must use $wl
2209 -           # flag to pass the commands to the underlying system
2210 -           # linker.
2211 +           # The compiler driver will combine and reorder linker options,
2212 +           # but understands `-z linker_flag'.
2213             # Supported since Solaris 2.6 (maybe 2.5.1?)
2214 -           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2215 +           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
2216             ;;
2217         esac
2218         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2219  
2220 -       # Commands to make compiler produce verbose output that lists
2221 -       # what "hidden" libraries, object files and flags are used when
2222 -       # linking a shared library.
2223 -       #
2224 -       # There doesn't appear to be a way to prevent this compiler from
2225 -       # explicitly linking system object files so we need to strip them
2226 -       # from the output so that they don't get included in the library
2227 -       # dependencies.
2228 -       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'
2229 +       output_verbose_link_cmd='echo'
2230  
2231         # Archives containing C++ object files must be created using
2232         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
2233 @@ -3405,7 +3722,7 @@ case $host_os in
2234         # in the archive.
2235         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2236         ;;
2237 -      gcx)
2238 +      gcx*)
2239         # Green Hills C++ Compiler
2240         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2241  
2242 @@ -3439,16 +3756,73 @@ case $host_os in
2243           fi
2244  
2245           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
2246 +         case $host_os in
2247 +         solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2248 +         *)
2249 +           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2250 +           ;;
2251 +         esac
2252         fi
2253         ;;
2254      esac
2255      ;;
2256 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
2257 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
2258 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2259 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2260 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2261 +    runpath_var='LD_RUN_PATH'
2262 +
2263 +    case $cc_basename in
2264 +      CC*)
2265 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2266 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2267 +       ;;
2268 +      *)
2269 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2270 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2271 +       ;;
2272 +    esac
2273 +    ;;
2274 +  sysv5* | sco3.2v5* | sco5v6*)
2275 +    # Note: We can NOT use -z defs as we might desire, because we do not
2276 +    # link with -lc, and that would cause any symbols used from libc to
2277 +    # always be unresolved, which means just about no library would
2278 +    # ever link correctly.  If we're not using GNU ld we use -z text
2279 +    # though, which does catch some bad symbols but isn't as heavy-handed
2280 +    # as -z defs.
2281 +    # For security reasons, it is highly recommended that you always
2282 +    # use absolute paths for naming shared libraries, and exclude the
2283 +    # DT_RUNPATH tag from executables and libraries.  But doing so
2284 +    # requires that you compile everything twice, which is a pain.
2285 +    # So that behaviour is only enabled if SCOABSPATH is set to a
2286 +    # non-empty value in the environment.  Most likely only useful for
2287 +    # creating official distributions of packages.
2288 +    # This is a hack until libtool officially supports absolute path
2289 +    # names for shared libraries.
2290 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2291 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2292      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2293 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2294 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2295 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2296 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2297 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2298 +    runpath_var='LD_RUN_PATH'
2299 +
2300 +    case $cc_basename in
2301 +      CC*)
2302 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2303 +       _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'
2304 +       ;;
2305 +      *)
2306 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2307 +       _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'
2308 +       ;;
2309 +    esac
2310      ;;
2311    tandem*)
2312      case $cc_basename in
2313 -      NCC)
2314 +      NCC*)
2315         # NonStop-UX NCC 3.20
2316         # FIXME: insert proper C++ library support
2317         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2318 @@ -3481,8 +3855,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2319  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2320  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2321  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2322 -AC_LIBTOOL_SYS_LIB_STRIP
2323 -AC_LIBTOOL_DLOPEN_SELF($1)
2324  
2325  AC_LIBTOOL_CONFIG($1)
2326  
2327 @@ -3500,12 +3872,13 @@ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
2328  ])# AC_LIBTOOL_LANG_CXX_CONFIG
2329  
2330  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
2331 -# ------------------------
2332 +# ------------------------------------
2333  # Figure out "hidden" library dependencies from verbose
2334  # compiler output when linking a shared library.
2335  # Parse the compiler output and extract the necessary
2336  # objects, libraries and library flags.
2337 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
2338 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
2339 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
2340  dnl we can't use the lt_simple_compile_test_code here,
2341  dnl because it contains code intended for an executable,
2342  dnl not a library.  It's possible we should let each
2343 @@ -3554,7 +3927,7 @@ if AC_TRY_EVAL(ac_compile); then
2344    # The `*' in the case matches for architectures that use `case' in
2345    # $output_verbose_cmd can trigger glob expansion during the loop
2346    # eval without this substitution.
2347 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
2348 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
2349  
2350    for p in `eval $output_verbose_link_cmd`; do
2351      case $p in
2352 @@ -3630,13 +4003,74 @@ fi
2353  
2354  $rm -f confest.$objext
2355  
2356 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2357 +if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
2358 +  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
2359 +fi
2360 +
2361 +# PORTME: override above test on systems where it is broken
2362 +ifelse([$1],[CXX],
2363 +[case $host_os in
2364 +interix[[3-9]]*)
2365 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
2366 +  # hack all around it, let's just trust "g++" to DTRT.
2367 +  _LT_AC_TAGVAR(predep_objects,$1)=
2368 +  _LT_AC_TAGVAR(postdep_objects,$1)=
2369 +  _LT_AC_TAGVAR(postdeps,$1)=
2370 +  ;;
2371 +
2372 +linux*)
2373 +  case `$CC -V 2>&1 | sed 5q` in
2374 +  *Sun\ C*)
2375 +    # Sun C++ 5.9
2376 +    #
2377 +    # The more standards-conforming stlport4 library is
2378 +    # incompatible with the Cstd library. Avoid specifying
2379 +    # it if it's in CXXFLAGS. Ignore libCrun as
2380 +    # -library=stlport4 depends on it.
2381 +    case " $CXX $CXXFLAGS " in
2382 +    *" -library=stlport4 "*)
2383 +      solaris_use_stlport4=yes
2384 +      ;;
2385 +    esac
2386 +    if test "$solaris_use_stlport4" != yes; then
2387 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
2388 +    fi
2389 +    ;;
2390 +  esac
2391 +  ;;
2392 +
2393 +solaris*)
2394 +  case $cc_basename in
2395 +  CC*)
2396 +    # The more standards-conforming stlport4 library is
2397 +    # incompatible with the Cstd library. Avoid specifying
2398 +    # it if it's in CXXFLAGS. Ignore libCrun as
2399 +    # -library=stlport4 depends on it.
2400 +    case " $CXX $CXXFLAGS " in
2401 +    *" -library=stlport4 "*)
2402 +      solaris_use_stlport4=yes
2403 +      ;;
2404 +    esac
2405 +
2406 +    # Adding this requires a known-good setup of shared libraries for
2407 +    # Sun compiler versions before 5.6, else PIC objects from an old
2408 +    # archive will be linked into the output, leading to subtle bugs.
2409 +    if test "$solaris_use_stlport4" != yes; then
2410 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
2411 +    fi
2412 +    ;;
2413 +  esac
2414 +  ;;
2415 +esac
2416 +])
2417  case " $_LT_AC_TAGVAR(postdeps, $1) " in
2418  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
2419  esac
2420  ])# AC_LIBTOOL_POSTDEP_PREDEP
2421  
2422  # AC_LIBTOOL_LANG_F77_CONFIG
2423 -# ------------------------
2424 +# --------------------------
2425  # Ensure that the configuration vars for the C compiler are
2426  # suitably defined.  Those variables are subsequently used by
2427  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2428 @@ -3672,20 +4106,31 @@ objext=o
2429  _LT_AC_TAGVAR(objext, $1)=$objext
2430  
2431  # Code to be used in simple compile tests
2432 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
2433 +lt_simple_compile_test_code="\
2434 +      subroutine t
2435 +      return
2436 +      end
2437 +"
2438  
2439  # Code to be used in simple link tests
2440 -lt_simple_link_test_code="      program t\n      end\n"
2441 +lt_simple_link_test_code="\
2442 +      program t
2443 +      end
2444 +"
2445  
2446  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2447  _LT_AC_SYS_COMPILER
2448  
2449 +# save warnings/boilerplate of simple test code
2450 +_LT_COMPILER_BOILERPLATE
2451 +_LT_LINKER_BOILERPLATE
2452 +
2453  # Allow CC to be a program name with arguments.
2454  lt_save_CC="$CC"
2455  CC=${F77-"f77"}
2456  compiler=$CC
2457  _LT_AC_TAGVAR(compiler, $1)=$CC
2458 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2459 +_LT_CC_BASENAME([$compiler])
2460  
2461  AC_MSG_CHECKING([if libtool supports shared libraries])
2462  AC_MSG_RESULT([$can_build_shared])
2463 @@ -3695,7 +4140,7 @@ test "$can_build_shared" = "no" && enable_shared=no
2464  
2465  # On AIX, shared libraries and static libraries use the same namespace, and
2466  # are all built from PIC.
2467 -case "$host_os" in
2468 +case $host_os in
2469  aix3*)
2470    test "$enable_shared" = yes && enable_static=no
2471    if test -n "$RANLIB"; then
2472 @@ -3703,8 +4148,10 @@ aix3*)
2473      postinstall_cmds='$RANLIB $lib'
2474    fi
2475    ;;
2476 -aix4* | aix5*)
2477 -  test "$enable_shared" = yes && enable_static=no
2478 +aix[[4-9]]*)
2479 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2480 +    test "$enable_shared" = yes && enable_static=no
2481 +  fi
2482    ;;
2483  esac
2484  AC_MSG_RESULT([$enable_shared])
2485 @@ -3714,8 +4161,6 @@ AC_MSG_CHECKING([whether to build static libraries])
2486  test "$enable_shared" = yes || enable_static=yes
2487  AC_MSG_RESULT([$enable_static])
2488  
2489 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2490 -
2491  _LT_AC_TAGVAR(GCC, $1)="$G77"
2492  _LT_AC_TAGVAR(LD, $1)="$LD"
2493  
2494 @@ -3725,8 +4170,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2495  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2496  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2497  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2498 -AC_LIBTOOL_SYS_LIB_STRIP
2499 -
2500  
2501  AC_LIBTOOL_CONFIG($1)
2502  
2503 @@ -3752,23 +4195,30 @@ objext=o
2504  _LT_AC_TAGVAR(objext, $1)=$objext
2505  
2506  # Code to be used in simple compile tests
2507 -lt_simple_compile_test_code="class foo {}\n"
2508 +lt_simple_compile_test_code="class foo {}"
2509  
2510  # Code to be used in simple link tests
2511 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
2512 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
2513  
2514  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2515  _LT_AC_SYS_COMPILER
2516  
2517 +# save warnings/boilerplate of simple test code
2518 +_LT_COMPILER_BOILERPLATE
2519 +_LT_LINKER_BOILERPLATE
2520 +
2521  # Allow CC to be a program name with arguments.
2522  lt_save_CC="$CC"
2523  CC=${GCJ-"gcj"}
2524  compiler=$CC
2525  _LT_AC_TAGVAR(compiler, $1)=$CC
2526 +_LT_CC_BASENAME([$compiler])
2527  
2528  # GCJ did not exist at the time GCC didn't implicitly link libc in.
2529  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2530  
2531 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2532 +
2533  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2534  AC_LIBTOOL_PROG_COMPILER_PIC($1)
2535  AC_LIBTOOL_PROG_CC_C_O($1)
2536 @@ -3776,8 +4226,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2537  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2538  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2539  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2540 -AC_LIBTOOL_SYS_LIB_STRIP
2541 -AC_LIBTOOL_DLOPEN_SELF($1)
2542  
2543  AC_LIBTOOL_CONFIG($1)
2544  
2545 @@ -3787,7 +4235,7 @@ CC="$lt_save_CC"
2546  
2547  
2548  # AC_LIBTOOL_LANG_RC_CONFIG
2549 -# --------------------------
2550 +# -------------------------
2551  # Ensure that the configuration vars for the Windows resource compiler are
2552  # suitably defined.  Those variables are subsequently used by
2553  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2554 @@ -3803,7 +4251,7 @@ objext=o
2555  _LT_AC_TAGVAR(objext, $1)=$objext
2556  
2557  # Code to be used in simple compile tests
2558 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
2559 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
2560  
2561  # Code to be used in simple link tests
2562  lt_simple_link_test_code="$lt_simple_compile_test_code"
2563 @@ -3811,11 +4259,16 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
2564  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2565  _LT_AC_SYS_COMPILER
2566  
2567 +# save warnings/boilerplate of simple test code
2568 +_LT_COMPILER_BOILERPLATE
2569 +_LT_LINKER_BOILERPLATE
2570 +
2571  # Allow CC to be a program name with arguments.
2572  lt_save_CC="$CC"
2573  CC=${RC-"windres"}
2574  compiler=$CC
2575  _LT_AC_TAGVAR(compiler, $1)=$CC
2576 +_LT_CC_BASENAME([$compiler])
2577  _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2578  
2579  AC_LIBTOOL_CONFIG($1)
2580 @@ -3845,7 +4298,7 @@ if test -f "$ltmain"; then
2581    # Now quote all the things that may contain metacharacters while being
2582    # careful not to overquote the AC_SUBSTed values.  We take copies of the
2583    # variables and quote the copies for generation of the libtool script.
2584 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
2585 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
2586      SED SHELL STRIP \
2587      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
2588      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
2589 @@ -3872,6 +4325,7 @@ if test -f "$ltmain"; then
2590      _LT_AC_TAGVAR(predeps, $1) \
2591      _LT_AC_TAGVAR(postdeps, $1) \
2592      _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
2593 +    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
2594      _LT_AC_TAGVAR(archive_cmds, $1) \
2595      _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
2596      _LT_AC_TAGVAR(postinstall_cmds, $1) \
2597 @@ -3887,6 +4341,7 @@ if test -f "$ltmain"; then
2598      _LT_AC_TAGVAR(module_cmds, $1) \
2599      _LT_AC_TAGVAR(module_expsym_cmds, $1) \
2600      _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
2601 +    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
2602      _LT_AC_TAGVAR(exclude_expsyms, $1) \
2603      _LT_AC_TAGVAR(include_expsyms, $1); do
2604  
2605 @@ -3933,7 +4388,7 @@ ifelse([$1], [],
2606  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2607  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
2608  #
2609 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
2610 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
2611  # Free Software Foundation, Inc.
2612  #
2613  # This file is part of GNU Libtool:
2614 @@ -3951,7 +4406,7 @@ ifelse([$1], [],
2615  #
2616  # You should have received a copy of the GNU General Public License
2617  # along with this program; if not, write to the Free Software
2618 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2619 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2620  #
2621  # As a special exception to the GNU General Public License, if you
2622  # distribute this file as part of a program that contains a
2623 @@ -3962,11 +4417,11 @@ ifelse([$1], [],
2624  SED=$lt_SED
2625  
2626  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
2627 -Xsed="$SED -e s/^X//"
2628 +Xsed="$SED -e 1s/^X//"
2629  
2630  # The HP-UX ksh and POSIX shell print the target directory to stdout
2631  # if CDPATH is set.
2632 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2633 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2634  
2635  # The names of the tagged configurations supported by this script.
2636  available_tags=
2637 @@ -3997,6 +4452,12 @@ fast_install=$enable_fast_install
2638  # The host system.
2639  host_alias=$host_alias
2640  host=$host
2641 +host_os=$host_os
2642 +
2643 +# The build system.
2644 +build_alias=$build_alias
2645 +build=$build
2646 +build_os=$build_os
2647  
2648  # An echo program that does not interpret backslashes.
2649  echo=$lt_echo
2650 @@ -4008,6 +4469,9 @@ AR_FLAGS=$lt_AR_FLAGS
2651  # A C compiler.
2652  LTCC=$lt_LTCC
2653  
2654 +# LTCC compiler flags.
2655 +LTCFLAGS=$lt_LTCFLAGS
2656 +
2657  # A language-specific compiler.
2658  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
2659  
2660 @@ -4073,7 +4537,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
2661  # Does compiler simultaneously support -c and -o options?
2662  compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
2663  
2664 -# Must we lock files when doing compilation ?
2665 +# Must we lock files when doing compilation?
2666  need_locks=$lt_need_locks
2667  
2668  # Do we need the lib prefix for modules?
2669 @@ -4161,6 +4625,10 @@ predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
2670  # shared library.
2671  postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
2672  
2673 +# The directories searched by this compiler when creating a shared
2674 +# library
2675 +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
2676 +
2677  # The library search path used internally by the compiler when linking
2678  # a shared library.
2679  compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
2680 @@ -4249,7 +4717,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
2681  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
2682  
2683  # Fix the shell variable \$srcfile for the compiler.
2684 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
2685 +fix_srcfile_path=$lt_fix_srcfile_path
2686  
2687  # Set to yes if exported symbols are required.
2688  always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
2689 @@ -4332,6 +4800,7 @@ fi
2690  # ---------------------------------
2691  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
2692  [AC_REQUIRE([AC_CANONICAL_HOST])
2693 +AC_REQUIRE([LT_AC_PROG_SED])
2694  AC_REQUIRE([AC_PROG_NM])
2695  AC_REQUIRE([AC_OBJEXT])
2696  # Check for command to grab the raw symbol name followed by C symbol from nm.
2697 @@ -4347,9 +4816,6 @@ symcode='[[BCDEGRST]]'
2698  # Regexp to match symbols that can be accessed directly from C.
2699  sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
2700  
2701 -# Transform the above into a raw symbol and a C symbol.
2702 -symxfrm='\1 \2\3 \3'
2703 -
2704  # Transform an extracted symbol line into a proper C declaration
2705  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
2706  
2707 @@ -4371,15 +4837,31 @@ hpux*) # Its linker distinguishes data from code symbols
2708    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2709    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'"
2710    ;;
2711 +linux* | k*bsd*-gnu)
2712 +  if test "$host_cpu" = ia64; then
2713 +    symcode='[[ABCDGIRSTW]]'
2714 +    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2715 +    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'"
2716 +  fi
2717 +  ;;
2718  irix* | nonstopux*)
2719    symcode='[[BCDEGRST]]'
2720    ;;
2721  osf*)
2722    symcode='[[BCDEGQRST]]'
2723    ;;
2724 -solaris* | sysv5*)
2725 +solaris*)
2726    symcode='[[BDRT]]'
2727    ;;
2728 +sco3.2v5*)
2729 +  symcode='[[DT]]'
2730 +  ;;
2731 +sysv4.2uw2*)
2732 +  symcode='[[DT]]'
2733 +  ;;
2734 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
2735 +  symcode='[[ABDT]]'
2736 +  ;;
2737  sysv4)
2738    symcode='[[DFNSTU]]'
2739    ;;
2740 @@ -4402,8 +4884,11 @@ esac
2741  # Try without a prefix undercore, then with it.
2742  for ac_symprfx in "" "_"; do
2743  
2744 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
2745 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
2746 +
2747    # Write the raw and C identifiers.
2748 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2749 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
2750  
2751    # Check to see that the pipe works correctly.
2752    pipe_works=no
2753 @@ -4493,7 +4978,7 @@ EOF
2754      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
2755      cat conftest.$ac_ext >&5
2756    fi
2757 -  rm -f conftest* conftst*
2758 +  rm -rf conftest* conftst*
2759  
2760    # Do not use the global_symbol_pipe unless it works.
2761    if test "$pipe_works" = yes; then
2762 @@ -4542,13 +5027,16 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2763        # like `-m68040'.
2764        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
2765        ;;
2766 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2767 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2768        # PIC is the default for these OSes.
2769        ;;
2770 -    mingw* | os2* | pw32*)
2771 +    mingw* | cygwin* | os2* | pw32*)
2772        # This hack is so that the source file can tell whether it is being
2773        # built for inclusion in a dll (and should export symbols for example).
2774 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
2775 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
2776 +      # (--disable-auto-import) libraries
2777 +      m4_if([$1], [GCJ], [],
2778 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
2779        ;;
2780      darwin* | rhapsody*)
2781        # PIC is the default on this platform
2782 @@ -4559,6 +5047,10 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2783        # DJGPP does not support shared libraries at all
2784        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2785        ;;
2786 +    interix[[3-9]]*)
2787 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2788 +      # Instead, we relocate shared libraries at runtime.
2789 +      ;;
2790      sysv4*MP*)
2791        if test -d /usr/nec; then
2792         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
2793 @@ -4567,7 +5059,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2794      hpux*)
2795        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2796        # not for PA HP-UX.
2797 -      case "$host_cpu" in
2798 +      case $host_cpu in
2799        hppa*64*|ia64*)
2800         ;;
2801        *)
2802 @@ -4581,7 +5073,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2803      esac
2804    else
2805      case $host_os in
2806 -      aix4* | aix5*)
2807 +      aix[[4-9]]*)
2808         # All AIX code is PIC.
2809         if test "$host_cpu" = ia64; then
2810           # AIX 5 now supports IA64 processor
2811 @@ -4592,18 +5084,28 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2812         ;;
2813        chorus*)
2814         case $cc_basename in
2815 -       cxch68)
2816 +       cxch68*)
2817           # Green Hills C++ Compiler
2818           # _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"
2819           ;;
2820         esac
2821         ;;
2822 +       darwin*)
2823 +         # PIC is the default on this platform
2824 +         # Common symbols not allowed in MH_DYLIB files
2825 +         case $cc_basename in
2826 +           xlc*)
2827 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
2828 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2829 +           ;;
2830 +         esac
2831 +       ;;
2832        dgux*)
2833         case $cc_basename in
2834 -         ec++)
2835 +         ec++*)
2836             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2837             ;;
2838 -         ghcx)
2839 +         ghcx*)
2840             # Green Hills C++ Compiler
2841             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2842             ;;
2843 @@ -4611,22 +5113,22 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2844             ;;
2845         esac
2846         ;;
2847 -      freebsd* | kfreebsd*-gnu)
2848 +      freebsd* | dragonfly*)
2849         # FreeBSD uses GNU C++
2850         ;;
2851        hpux9* | hpux10* | hpux11*)
2852         case $cc_basename in
2853 -         CC)
2854 +         CC*)
2855             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2856 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
2857 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
2858             if test "$host_cpu" != ia64; then
2859               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
2860             fi
2861             ;;
2862 -         aCC)
2863 +         aCC*)
2864             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2865 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
2866 -           case "$host_cpu" in
2867 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
2868 +           case $host_cpu in
2869             hppa*64*|ia64*)
2870               # +Z the default
2871               ;;
2872 @@ -4639,9 +5141,13 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2873             ;;
2874         esac
2875         ;;
2876 +      interix*)
2877 +       # This is c89, which is MS Visual C++ (no shared libs)
2878 +       # Anyone wants to do a port?
2879 +       ;;
2880        irix5* | irix6* | nonstopux*)
2881         case $cc_basename in
2882 -         CC)
2883 +         CC*)
2884             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2885             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2886             # CC pic flag -KPIC is the default.
2887 @@ -4650,20 +5156,26 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2888             ;;
2889         esac
2890         ;;
2891 -      linux*)
2892 +      linux* | k*bsd*-gnu)
2893         case $cc_basename in
2894 -         KCC)
2895 +         KCC*)
2896             # KAI C++ Compiler
2897             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
2898             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2899             ;;
2900 -         icpc)
2901 +         icpc* | ecpc*)
2902             # Intel C++
2903             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2904             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2905             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
2906             ;;
2907 -         cxx)
2908 +         pgCC* | pgcpp*)
2909 +           # Portland Group C++ compiler.
2910 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2911 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
2912 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2913 +           ;;
2914 +         cxx*)
2915             # Compaq C++
2916             # Make sure the PIC flag is empty.  It appears that all Alpha
2917             # Linux and Compaq Tru64 Unix objects are PIC.
2918 @@ -4671,6 +5183,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2919             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2920             ;;
2921           *)
2922 +           case `$CC -V 2>&1 | sed 5q` in
2923 +           *Sun\ C*)
2924 +             # Sun C++ 5.9
2925 +             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2926 +             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2927 +             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
2928 +             ;;
2929 +           esac
2930             ;;
2931         esac
2932         ;;
2933 @@ -4680,25 +5200,25 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2934         ;;
2935        mvs*)
2936         case $cc_basename in
2937 -         cxx)
2938 +         cxx*)
2939             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
2940             ;;
2941           *)
2942             ;;
2943         esac
2944         ;;
2945 -      netbsd*)
2946 +      netbsd* | netbsdelf*-gnu)
2947         ;;
2948        osf3* | osf4* | osf5*)
2949         case $cc_basename in
2950 -         KCC)
2951 +         KCC*)
2952             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
2953             ;;
2954 -         RCC)
2955 +         RCC*)
2956             # Rational C++ 2.4.1
2957             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2958             ;;
2959 -         cxx)
2960 +         cxx*)
2961             # Digital/Compaq C++
2962             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2963             # Make sure the PIC flag is empty.  It appears that all Alpha
2964 @@ -4712,24 +5232,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2965         ;;
2966        psos*)
2967         ;;
2968 -      sco*)
2969 -       case $cc_basename in
2970 -         CC)
2971 -           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2972 -           ;;
2973 -         *)
2974 -           ;;
2975 -       esac
2976 -       ;;
2977        solaris*)
2978         case $cc_basename in
2979 -         CC)
2980 +         CC*)
2981             # Sun C++ 4.2, 5.x and Centerline C++
2982             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2983             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2984             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
2985             ;;
2986 -         gcx)
2987 +         gcx*)
2988             # Green Hills C++ Compiler
2989             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
2990             ;;
2991 @@ -4739,12 +5250,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2992         ;;
2993        sunos4*)
2994         case $cc_basename in
2995 -         CC)
2996 +         CC*)
2997             # Sun C++ 4.x
2998             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2999             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3000             ;;
3001 -         lcc)
3002 +         lcc*)
3003             # Lucid
3004             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3005             ;;
3006 @@ -4754,7 +5265,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3007         ;;
3008        tandem*)
3009         case $cc_basename in
3010 -         NCC)
3011 +         NCC*)
3012             # NonStop-UX NCC 3.20
3013             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3014             ;;
3015 @@ -4762,7 +5273,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3016             ;;
3017         esac
3018         ;;
3019 -      unixware*)
3020 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3021 +       case $cc_basename in
3022 +         CC*)
3023 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3024 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3025 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3026 +           ;;
3027 +       esac
3028         ;;
3029        vxworks*)
3030         ;;
3031 @@ -4793,14 +5311,17 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3032        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3033        ;;
3034  
3035 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3036 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3037        # PIC is the default for these OSes.
3038        ;;
3039  
3040 -    mingw* | pw32* | os2*)
3041 +    mingw* | cygwin* | pw32* | os2*)
3042        # This hack is so that the source file can tell whether it is being
3043        # built for inclusion in a dll (and should export symbols for example).
3044 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3045 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3046 +      # (--disable-auto-import) libraries
3047 +      m4_if([$1], [GCJ], [],
3048 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3049        ;;
3050  
3051      darwin* | rhapsody*)
3052 @@ -4809,6 +5330,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3053        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3054        ;;
3055  
3056 +    interix[[3-9]]*)
3057 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3058 +      # Instead, we relocate shared libraries at runtime.
3059 +      ;;
3060 +
3061      msdosdjgpp*)
3062        # Just because we use GCC doesn't mean we suddenly get shared libraries
3063        # on systems that don't support them.
3064 @@ -4825,7 +5351,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3065      hpux*)
3066        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3067        # not for PA HP-UX.
3068 -      case "$host_cpu" in
3069 +      case $host_cpu in
3070        hppa*64*|ia64*)
3071         # +Z the default
3072         ;;
3073 @@ -4851,18 +5377,29 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3074         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3075        fi
3076        ;;
3077 +      darwin*)
3078 +        # PIC is the default on this platform
3079 +        # Common symbols not allowed in MH_DYLIB files
3080 +       case $cc_basename in
3081 +         xlc*)
3082 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3083 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3084 +         ;;
3085 +       esac
3086 +       ;;
3087  
3088 -    mingw* | pw32* | os2*)
3089 +    mingw* | cygwin* | pw32* | os2*)
3090        # This hack is so that the source file can tell whether it is being
3091        # built for inclusion in a dll (and should export symbols for example).
3092 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3093 +      m4_if([$1], [GCJ], [],
3094 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3095        ;;
3096  
3097      hpux9* | hpux10* | hpux11*)
3098        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3099        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3100        # not for PA HP-UX.
3101 -      case "$host_cpu" in
3102 +      case $host_cpu in
3103        hppa*64*|ia64*)
3104         # +Z the default
3105         ;;
3106 @@ -4885,18 +5422,41 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3107        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3108        ;;
3109  
3110 -    linux*)
3111 -      case $CC in
3112 +    linux* | k*bsd*-gnu)
3113 +      case $cc_basename in
3114        icc* | ecc*)
3115         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3116         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3117         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3118          ;;
3119 +      pgcc* | pgf77* | pgf90* | pgf95*)
3120 +        # Portland Group compilers (*not* the Pentium gcc compiler,
3121 +       # which looks to be a dead project)
3122 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3123 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3124 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3125 +        ;;
3126        ccc*)
3127          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3128          # All Alpha code is PIC.
3129          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3130          ;;
3131 +      *)
3132 +        case `$CC -V 2>&1 | sed 5q` in
3133 +       *Sun\ C*)
3134 +         # Sun C 5.9
3135 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3136 +         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3137 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3138 +         ;;
3139 +       *Sun\ F*)
3140 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
3141 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3142 +         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3143 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
3144 +         ;;
3145 +       esac
3146 +       ;;
3147        esac
3148        ;;
3149  
3150 @@ -4906,15 +5466,19 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3151        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3152        ;;
3153  
3154 -    sco3.2v5*)
3155 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
3156 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
3157 +    rdos*)
3158 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3159        ;;
3160  
3161      solaris*)
3162 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3163        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3164        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3165 +      case $cc_basename in
3166 +      f77* | f90* | f95*)
3167 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
3168 +      *)
3169 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
3170 +      esac
3171        ;;
3172  
3173      sunos4*)
3174 @@ -4923,7 +5487,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3175        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3176        ;;
3177  
3178 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3179 +    sysv4 | sysv4.2uw2* | sysv4.3*)
3180        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3181        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3182        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3183 @@ -4936,6 +5500,17 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3184        fi
3185        ;;
3186  
3187 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3188 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3189 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3190 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3191 +      ;;
3192 +
3193 +    unicos*)
3194 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3195 +      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3196 +      ;;
3197 +
3198      uts4*)
3199        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3200        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3201 @@ -4954,7 +5529,7 @@ AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
3202  #
3203  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
3204    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
3205 -    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
3206 +    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
3207      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
3208      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
3209       "" | " "*) ;;
3210 @@ -4963,7 +5538,7 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
3211      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3212       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
3213  fi
3214 -case "$host_os" in
3215 +case $host_os in
3216    # For platforms which do not support PIC, -DPIC is meaningless:
3217    *djgpp*)
3218      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3219 @@ -4972,6 +5547,16 @@ case "$host_os" in
3220      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
3221      ;;
3222  esac
3223 +
3224 +#
3225 +# Check to make sure the static flag actually works.
3226 +#
3227 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
3228 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
3229 +  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
3230 +  $lt_tmp_static_flag,
3231 +  [],
3232 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3233  ])
3234  
3235  
3236 @@ -4979,11 +5564,12 @@ esac
3237  # ------------------------------------
3238  # See if the linker supports building shared libraries.
3239  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
3240 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3241 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
3242 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3243  ifelse([$1],[CXX],[
3244    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3245    case $host_os in
3246 -  aix4* | aix5*)
3247 +  aix[[4-9]]*)
3248      # If we're using GNU nm, then we don't want the "-C" option.
3249      # -C means demangle to AIX nm, but means don't demangle with GNU nm
3250      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
3251 @@ -4996,12 +5582,16 @@ ifelse([$1],[CXX],[
3252      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
3253    ;;
3254    cygwin* | mingw*)
3255 -    _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'
3256 +    _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'
3257 +  ;;
3258 +  linux* | k*bsd*-gnu)
3259 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3260    ;;
3261    *)
3262      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3263    ;;
3264    esac
3265 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
3266  ],[
3267    runpath_var=
3268    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3269 @@ -5032,14 +5622,17 @@ ifelse([$1],[CXX],[
3270    # it will be wrapped by ` (' and `)$', so one must not match beginning or
3271    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3272    # as well as any symbol that contains `d'.
3273 -  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
3274 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
3275    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3276    # platforms (ab)use it in PIC code, but their linkers get confused if
3277    # the symbol is explicitly referenced.  Since portable code cannot
3278    # rely on this symbol name, it's probably fine to never include it in
3279    # preloaded symbol tables.
3280 +  # Exclude shared library initialization/finalization symbols.
3281 +dnl Note also adjust exclude_expsyms for C++ above.
3282    extract_expsyms_cmds=
3283 -
3284 +  # Just being paranoid about ensuring that cc_basename is set.
3285 +  _LT_CC_BASENAME([$compiler])
3286    case $host_os in
3287    cygwin* | mingw* | pw32*)
3288      # FIXME: the MSVC++ port hasn't been tested in a loooong time
3289 @@ -5049,6 +5642,10 @@ ifelse([$1],[CXX],[
3290        with_gnu_ld=no
3291      fi
3292      ;;
3293 +  interix*)
3294 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
3295 +    with_gnu_ld=yes
3296 +    ;;
3297    openbsd*)
3298      with_gnu_ld=no
3299      ;;
3300 @@ -5059,9 +5656,30 @@ ifelse([$1],[CXX],[
3301      # If archive_cmds runs LD, not CC, wlarc should be empty
3302      wlarc='${wl}'
3303  
3304 +    # Set some defaults for GNU ld with shared library support. These
3305 +    # are reset later if shared libraries are not supported. Putting them
3306 +    # here allows them to be overridden if necessary.
3307 +    runpath_var=LD_RUN_PATH
3308 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3309 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3310 +    # ancient GNU ld didn't support --whole-archive et. al.
3311 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3312 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3313 +      else
3314 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3315 +    fi
3316 +    supports_anon_versioning=no
3317 +    case `$LD -v 2>/dev/null` in
3318 +      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3319 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3320 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3321 +      *\ 2.11.*) ;; # other 2.11 versions
3322 +      *) supports_anon_versioning=yes ;;
3323 +    esac
3324 +
3325      # See if GNU ld supports shared libraries.
3326      case $host_os in
3327 -    aix3* | aix4* | aix5*)
3328 +    aix[[3-9]]*)
3329        # On AIX/PPC, the GNU linker is very broken
3330        if test "$host_cpu" != ia64; then
3331         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3332 @@ -5109,10 +5727,10 @@ EOF
3333        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3334        _LT_AC_TAGVAR(always_export_symbols, $1)=no
3335        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3336 -      _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'
3337 +      _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'
3338  
3339        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3340 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3341 +        _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'
3342         # If the export-symbols file already is a .def file (1st line
3343         # is EXPORTS), use it as is; otherwise, prepend...
3344         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3345 @@ -5121,13 +5739,69 @@ EOF
3346           echo EXPORTS > $output_objdir/$soname.def;
3347           cat $export_symbols >> $output_objdir/$soname.def;
3348         fi~
3349 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
3350 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3351        else
3352 -       ld_shlibs=no
3353 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3354        fi
3355        ;;
3356  
3357 -    netbsd*)
3358 +    interix[[3-9]]*)
3359 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3360 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3361 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3362 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3363 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3364 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
3365 +      # default) and relocated if they conflict, which is a slow very memory
3366 +      # consuming and fragmenting process.  To avoid this, we pick a random,
3367 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3368 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3369 +      _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'
3370 +      _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'
3371 +      ;;
3372 +
3373 +    gnu* | linux* | k*bsd*-gnu)
3374 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3375 +       tmp_addflag=
3376 +       case $cc_basename,$host_cpu in
3377 +       pgcc*)                          # Portland Group C compiler
3378 +         _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'
3379 +         tmp_addflag=' $pic_flag'
3380 +         ;;
3381 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
3382 +         _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'
3383 +         tmp_addflag=' $pic_flag -Mnomain' ;;
3384 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
3385 +         tmp_addflag=' -i_dynamic' ;;
3386 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
3387 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
3388 +       ifc* | ifort*)                  # Intel Fortran compiler
3389 +         tmp_addflag=' -nofor_main' ;;
3390 +       esac
3391 +       case `$CC -V 2>&1 | sed 5q` in
3392 +       *Sun\ C*)                       # Sun C 5.9
3393 +         _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'
3394 +         tmp_sharedflag='-G' ;;
3395 +       *Sun\ F*)                       # Sun Fortran 8.3
3396 +         tmp_sharedflag='-G' ;;
3397 +       *)
3398 +         tmp_sharedflag='-shared' ;;
3399 +       esac
3400 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3401 +
3402 +       if test $supports_anon_versioning = yes; then
3403 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3404 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3405 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
3406 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3407 +       fi
3408 +       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3409 +      else
3410 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3411 +      fi
3412 +      ;;
3413 +
3414 +    netbsd* | netbsdelf*-gnu)
3415        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3416         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3417         wlarc=
3418 @@ -5137,7 +5811,7 @@ EOF
3419        fi
3420        ;;
3421  
3422 -    solaris* | sysv5*)
3423 +    solaris*)
3424        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
3425         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3426         cat <<EOF 1>&2
3427 @@ -5158,6 +5832,33 @@ EOF
3428        fi
3429        ;;
3430  
3431 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
3432 +      case `$LD -v 2>&1` in
3433 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
3434 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3435 +       cat <<_LT_EOF 1>&2
3436 +
3437 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
3438 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
3439 +*** is disabling shared libraries support.  We urge you to upgrade GNU
3440 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
3441 +*** your PATH or compiler configuration so that the native linker is
3442 +*** used, and then restart.
3443 +
3444 +_LT_EOF
3445 +       ;;
3446 +       *)
3447 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3448 +           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
3449 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
3450 +           _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'
3451 +         else
3452 +           _LT_AC_TAGVAR(ld_shlibs, $1)=no
3453 +         fi
3454 +       ;;
3455 +      esac
3456 +      ;;
3457 +
3458      sunos4*)
3459        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3460        wlarc=
3461 @@ -5165,31 +5866,6 @@ EOF
3462        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3463        ;;
3464  
3465 -  linux*)
3466 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3467 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3468 -       _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
3469 -      supports_anon_versioning=no
3470 -      case `$LD -v 2>/dev/null` in
3471 -        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3472 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3473 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3474 -        *\ 2.11.*) ;; # other 2.11 versions
3475 -        *) supports_anon_versioning=yes ;;
3476 -      esac
3477 -      if test $supports_anon_versioning = yes; then
3478 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3479 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3480 -$echo "local: *; };" >> $output_objdir/$libname.ver~
3481 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3482 -      else
3483 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
3484 -      fi
3485 -    else
3486 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3487 -    fi
3488 -    ;;
3489 -
3490      *)
3491        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3492         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3493 @@ -5200,16 +5876,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3494        ;;
3495      esac
3496  
3497 -    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
3498 -      runpath_var=LD_RUN_PATH
3499 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3500 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3501 -      # ancient GNU ld didn't support --whole-archive et. al.
3502 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3503 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3504 -      else
3505 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3506 -      fi
3507 +    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
3508 +      runpath_var=
3509 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3510 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3511 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3512      fi
3513    else
3514      # PORTME fill in a description of your system's linker (not GNU ld)
3515 @@ -5221,14 +5892,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3516        # Note: this linker hardcodes the directories in LIBPATH if there
3517        # are no directories specified by -L.
3518        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3519 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
3520 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
3521         # Neither direct hardcoding nor static linking is supported with a
3522         # broken collect2.
3523         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3524        fi
3525        ;;
3526  
3527 -    aix4* | aix5*)
3528 +    aix[[4-9]]*)
3529        if test "$host_cpu" = ia64; then
3530         # On IA64, the linker does run time linking by default, so we don't
3531         # have to do anything special.
3532 @@ -5248,13 +5919,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3533         # Test if we are trying to use run time linking or normal
3534         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3535         # need to do runtime linking.
3536 -       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3537 +       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3538           for ld_flag in $LDFLAGS; do
3539           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3540             aix_use_runtimelinking=yes
3541             break
3542           fi
3543           done
3544 +         ;;
3545         esac
3546  
3547         exp_sym_flag='-bexport'
3548 @@ -5273,7 +5945,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3549        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3550  
3551        if test "$GCC" = yes; then
3552 -       case $host_os in aix4.[012]|aix4.[012].*)
3553 +       case $host_os in aix4.[[012]]|aix4.[[012]].*)
3554         # We only want to do this on AIX 4.2 and lower, the check
3555         # below for broken collect2 doesn't work under 4.3+
3556           collect2name=`${CC} -print-prog-name=collect2`
3557 @@ -5281,7 +5953,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3558            strings "$collect2name" | grep resolve_lib_name >/dev/null
3559           then
3560           # We have reworked collect2
3561 -         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3562 +         :
3563           else
3564           # We have old collect2
3565           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3566 @@ -5292,8 +5964,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3567           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3568           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3569           fi
3570 +         ;;
3571         esac
3572         shared_flag='-shared'
3573 +       if test "$aix_use_runtimelinking" = yes; then
3574 +         shared_flag="$shared_flag "'${wl}-G'
3575 +       fi
3576        else
3577         # not using gcc
3578         if test "$host_cpu" = ia64; then
3579 @@ -5301,11 +5977,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3580         # chokes on -Wl,-G. The following line is correct:
3581           shared_flag='-G'
3582         else
3583 -       if test "$aix_use_runtimelinking" = yes; then
3584 +         if test "$aix_use_runtimelinking" = yes; then
3585             shared_flag='${wl}-G'
3586           else
3587             shared_flag='${wl}-bM:SRE'
3588 -       fi
3589 +         fi
3590         fi
3591        fi
3592  
3593 @@ -5319,12 +5995,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3594         # Determine the default libpath from the value encoded in an empty executable.
3595         _LT_AC_SYS_LIBPATH_AIX
3596         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3597 -       _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"
3598 +       _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"
3599         else
3600         if test "$host_cpu" = ia64; then
3601           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3602           _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3603 -         _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"
3604 +         _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"
3605         else
3606          # Determine the default libpath from the value encoded in an empty executable.
3607          _LT_AC_SYS_LIBPATH_AIX
3608 @@ -5333,13 +6009,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3609           # -berok will link without error, but may produce a broken library.
3610           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3611           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3612 -         # -bexpall does not export symbols beginning with underscore (_)
3613 -         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3614           # Exported symbols can be pulled into shared objects from archives
3615 -         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3616 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3617           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3618 -         # This is similar to how AIX traditionally builds it's shared libraries.
3619 -         _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'
3620 +         # This is similar to how AIX traditionally builds its shared libraries.
3621 +         _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'
3622         fi
3623        fi
3624        ;;
3625 @@ -5352,7 +6026,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3626        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3627        ;;
3628  
3629 -    bsdi4*)
3630 +    bsdi[[45]]*)
3631        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
3632        ;;
3633  
3634 @@ -5372,58 +6046,57 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3635        # The linker will automatically build a .lib file if we build a DLL.
3636        _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
3637        # FIXME: Should let the user specify the lib program.
3638 -      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
3639 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
3640 +      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
3641 +      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
3642        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3643        ;;
3644  
3645      darwin* | rhapsody*)
3646 -    if test "$GXX" = yes ; then
3647 -      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3648 -      case "$host_os" in
3649 -      rhapsody* | darwin1.[[012]])
3650 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3651 -       ;;
3652 -      *) # Darwin 1.3 on
3653 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3654 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3655 -      else
3656 -        case ${MACOSX_DEPLOYMENT_TARGET} in
3657 -          10.[[012]])
3658 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3659 -            ;;
3660 -          10.*)
3661 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3662 -            ;;
3663 -        esac
3664 -      fi
3665 -       ;;
3666 +      case $host_os in
3667 +        rhapsody* | darwin1.[[012]])
3668 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3669 +         ;;
3670 +       *) # Darwin 1.3 on
3671 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3672 +           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3673 +         else
3674 +           case ${MACOSX_DEPLOYMENT_TARGET} in
3675 +             10.[[012]])
3676 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3677 +               ;;
3678 +             10.*)
3679 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3680 +               ;;
3681 +           esac
3682 +         fi
3683 +         ;;
3684        esac
3685 -       lt_int_apple_cc_single_mod=no
3686 -       output_verbose_link_cmd='echo'
3687 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3688 -         lt_int_apple_cc_single_mod=yes
3689 -       fi
3690 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3691 -         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3692 -       else
3693 -        _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'
3694 -      fi
3695 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3696 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3697 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3698 -          _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}'
3699 -        else
3700 -          _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}'
3701 -        fi
3702 -          _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}'
3703 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3704        _LT_AC_TAGVAR(hardcode_direct, $1)=no
3705        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3706        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3707 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3708 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3709        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3710 +    if test "$GCC" = yes ; then
3711 +       output_verbose_link_cmd='echo'
3712 +        _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}"
3713 +        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3714 +        _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}"
3715 +        _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}"
3716      else
3717 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3718 +      case $cc_basename in
3719 +        xlc*)
3720 +         output_verbose_link_cmd='echo'
3721 +         _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'
3722 +         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3723 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3724 +         _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}'
3725 +          _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}'
3726 +          ;;
3727 +       *)
3728 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3729 +          ;;
3730 +      esac
3731      fi
3732        ;;
3733  
3734 @@ -5457,7 +6130,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3735        ;;
3736  
3737      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3738 -    freebsd* | kfreebsd*-gnu)
3739 +    freebsd* | dragonfly*)
3740        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3741        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3742        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3743 @@ -5480,47 +6153,62 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3744        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3745        ;;
3746  
3747 -    hpux10* | hpux11*)
3748 +    hpux10*)
3749        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3750 -       case "$host_cpu" in
3751 -       hppa*64*|ia64*)
3752 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3753 +      else
3754 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3755 +      fi
3756 +      if test "$with_gnu_ld" = no; then
3757 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3758 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3759 +
3760 +       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3761 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3762 +
3763 +       # hardcode_minus_L: Not really in the search PATH,
3764 +       # but as the default location of the library.
3765 +       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3766 +      fi
3767 +      ;;
3768 +
3769 +    hpux11*)
3770 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3771 +       case $host_cpu in
3772 +       hppa*64*)
3773           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3774           ;;
3775 +       ia64*)
3776 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3777 +         ;;
3778         *)
3779           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3780           ;;
3781         esac
3782        else
3783 -       case "$host_cpu" in
3784 -       hppa*64*|ia64*)
3785 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
3786 +       case $host_cpu in
3787 +       hppa*64*)
3788 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3789 +         ;;
3790 +       ia64*)
3791 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3792           ;;
3793         *)
3794 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3795 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3796           ;;
3797         esac
3798        fi
3799        if test "$with_gnu_ld" = no; then
3800 -       case "$host_cpu" in
3801 -       hppa*64*)
3802 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3803 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3804 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3805 +
3806 +       case $host_cpu in
3807 +       hppa*64*|ia64*)
3808           _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3809 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3810 -         _LT_AC_TAGVAR(hardcode_direct, $1)=no
3811 -         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3812 -         ;;
3813 -       ia64*)
3814 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3815           _LT_AC_TAGVAR(hardcode_direct, $1)=no
3816           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3817 -
3818 -         # hardcode_minus_L: Not really in the search PATH,
3819 -         # but as the default location of the library.
3820 -         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3821           ;;
3822         *)
3823 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3824 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3825           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3826           _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3827  
3828 @@ -5544,7 +6232,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3829        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3830        ;;
3831  
3832 -    netbsd*)
3833 +    netbsd* | netbsdelf*-gnu)
3834        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3835         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3836        else
3837 @@ -5564,23 +6252,28 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3838        ;;
3839  
3840      openbsd*)
3841 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3842 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3843 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3844 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3845 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3846 -       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3847 +      if test -f /usr/libexec/ld.so; then
3848 +       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3849 +       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3850 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3851 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3852 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
3853 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3854 +         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3855 +       else
3856 +         case $host_os in
3857 +          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
3858 +            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3859 +            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3860 +            ;;
3861 +          *)
3862 +            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3863 +            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3864 +            ;;
3865 +         esac
3866 +        fi
3867        else
3868 -       case $host_os in
3869 -        openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
3870 -          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3871 -          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3872 -          ;;
3873 -        *)
3874 -          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3875 -          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3876 -          ;;
3877 -       esac
3878 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3879        fi
3880        ;;
3881  
3882 @@ -5613,7 +6306,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3883         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3884         _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'
3885         _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~
3886 -       $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'
3887 +       $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'
3888  
3889         # Both c and cxx compiler support -rpath directly
3890         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3891 @@ -5621,21 +6314,15 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3892        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3893        ;;
3894  
3895 -    sco3.2v5*)
3896 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3897 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3898 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3899 -      runpath_var=LD_RUN_PATH
3900 -      hardcode_runpath_var=yes
3901 -      ;;
3902 -
3903      solaris*)
3904        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
3905        if test "$GCC" = yes; then
3906 +       wlarc='${wl}'
3907         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3908         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3909           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
3910        else
3911 +       wlarc=''
3912         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_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         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3915 @@ -5644,8 +6331,17 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3916        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3917        case $host_os in
3918        solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3919 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3920 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
3921 +      *)
3922 +       # The compiler driver will combine and reorder linker options,
3923 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
3924 +       # but is careful enough not to reorder.
3925 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
3926 +       if test "$GCC" = yes; then
3927 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3928 +       else
3929 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3930 +       fi
3931 +       ;;
3932        esac
3933        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3934        ;;
3935 @@ -5702,36 +6398,45 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3936        fi
3937        ;;
3938  
3939 -    sysv4.2uw2*)
3940 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3941 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3942 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3943 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3944 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3945 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3946        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3947 -      hardcode_runpath_var=yes
3948 -      runpath_var=LD_RUN_PATH
3949 -      ;;
3950 +      runpath_var='LD_RUN_PATH'
3951  
3952 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
3953 -      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
3954        if test "$GCC" = yes; then
3955 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3956 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3957 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3958        else
3959 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3960 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3961 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3962        fi
3963 -      runpath_var='LD_RUN_PATH'
3964 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3965        ;;
3966  
3967 -    sysv5*)
3968 -      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
3969 -      # $CC -shared without GNU ld will not create a library from C++
3970 -      # object files and a static libstdc++, better avoid it by now
3971 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3972 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3973 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3974 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3975 +    sysv5* | sco3.2v5* | sco5v6*)
3976 +      # Note: We can NOT use -z defs as we might desire, because we do not
3977 +      # link with -lc, and that would cause any symbols used from libc to
3978 +      # always be unresolved, which means just about no library would
3979 +      # ever link correctly.  If we're not using GNU ld we use -z text
3980 +      # though, which does catch some bad symbols but isn't as heavy-handed
3981 +      # as -z defs.
3982 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3983 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3984 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3985        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3986 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3987 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3988 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3989 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3990        runpath_var='LD_RUN_PATH'
3991 +
3992 +      if test "$GCC" = yes; then
3993 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3994 +       _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'
3995 +      else
3996 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3997 +       _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'
3998 +      fi
3999        ;;
4000  
4001      uts4*)
4002 @@ -5749,11 +6454,6 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
4003  AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4004  test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4005  
4006 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4007 -if test "$GCC" = yes; then
4008 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4009 -fi
4010 -
4011  #
4012  # Do we need to explicitly link libc?
4013  #
4014 @@ -5773,7 +6473,7 @@ x|xyes)
4015        # to ld, don't add -lc before -lgcc.
4016        AC_MSG_CHECKING([whether -lc should be explicitly linked in])
4017        $rm conftest*
4018 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4019 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4020  
4021        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
4022          soname=conftest
4023 @@ -5781,6 +6481,7 @@ x|xyes)
4024          libobjs=conftest.$ac_objext
4025          deplibs=
4026          wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4027 +       pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4028          compiler_flags=-v
4029          linker_flags=-v
4030          verstring=
4031 @@ -5875,6 +6576,30 @@ AC_DEFUN([LT_AC_PROG_RC],
4032  [AC_CHECK_TOOL(RC, windres, no)
4033  ])
4034  
4035 +
4036 +# Cheap backport of AS_EXECUTABLE_P and required macros
4037 +# from Autoconf 2.59; we should not use $as_executable_p directly.
4038 +
4039 +# _AS_TEST_PREPARE
4040 +# ----------------
4041 +m4_ifndef([_AS_TEST_PREPARE],
4042 +[m4_defun([_AS_TEST_PREPARE],
4043 +[if test -x / >/dev/null 2>&1; then
4044 +  as_executable_p='test -x'
4045 +else
4046 +  as_executable_p='test -f'
4047 +fi
4048 +])])# _AS_TEST_PREPARE
4049 +
4050 +# AS_EXECUTABLE_P
4051 +# ---------------
4052 +# Check whether a file is executable.
4053 +m4_ifndef([AS_EXECUTABLE_P],
4054 +[m4_defun([AS_EXECUTABLE_P],
4055 +[AS_REQUIRE([_AS_TEST_PREPARE])dnl
4056 +$as_executable_p $1[]dnl
4057 +])])# AS_EXECUTABLE_P
4058 +
4059  # NOTE: This macro has been submitted for inclusion into   #
4060  #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
4061  #  a released version of Autoconf we should remove this    #
4062 @@ -5895,18 +6620,19 @@ do
4063    test -z "$as_dir" && as_dir=.
4064    for lt_ac_prog in sed gsed; do
4065      for ac_exec_ext in '' $ac_executable_extensions; do
4066 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4067 +      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
4068          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4069        fi
4070      done
4071    done
4072  done
4073 +IFS=$as_save_IFS
4074  lt_ac_max=0
4075  lt_ac_count=0
4076  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4077  # along with /bin/sed that truncates output.
4078  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4079 -  test ! -f $lt_ac_sed && break
4080 +  test ! -f $lt_ac_sed && continue
4081    cat /dev/null > conftest.in
4082    lt_ac_count=0
4083    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4084 @@ -5931,28 +6657,17 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4085      fi
4086    done
4087  done
4088 -SED=$lt_cv_path_SED
4089  ])
4090 +SED=$lt_cv_path_SED
4091 +AC_SUBST([SED])
4092  AC_MSG_RESULT([$SED])
4093  ])
4094  
4095 -#                                                        -*- Autoconf -*-
4096 -# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
4097 -# Generated from amversion.in; do not edit by hand.
4098 -
4099 -# This program is free software; you can redistribute it and/or modify
4100 -# it under the terms of the GNU General Public License as published by
4101 -# the Free Software Foundation; either version 2, or (at your option)
4102 -# any later version.
4103 -
4104 -# This program is distributed in the hope that it will be useful,
4105 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4106 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4107 -# GNU General Public License for more details.
4108 -
4109 -# You should have received a copy of the GNU General Public License
4110 -# along with this program; if not, write to the Free Software
4111 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4112 +# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
4113 +#
4114 +# This file is free software; the Free Software Foundation
4115 +# gives unlimited permission to copy and/or distribute it,
4116 +# with or without modifications, as long as this notice is preserved.
4117  
4118  # AM_AUTOMAKE_VERSION(VERSION)
4119  # ----------------------------
4120 @@ -5965,26 +6680,15 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
4121  # Call AM_AUTOMAKE_VERSION so it can be traced.
4122  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
4123  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
4124 -        [AM_AUTOMAKE_VERSION([1.9.2])])
4125 -
4126 -# AM_AUX_DIR_EXPAND
4127 +        [AM_AUTOMAKE_VERSION([1.9.6])])
4128  
4129 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4130 +# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
4131  
4132 -# This program is free software; you can redistribute it and/or modify
4133 -# it under the terms of the GNU General Public License as published by
4134 -# the Free Software Foundation; either version 2, or (at your option)
4135 -# any later version.
4136 -
4137 -# This program is distributed in the hope that it will be useful,
4138 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4139 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4140 -# GNU General Public License for more details.
4141 -
4142 -# You should have received a copy of the GNU General Public License
4143 -# along with this program; if not, write to the Free Software
4144 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4145 -# 02111-1307, USA.
4146 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4147 +#
4148 +# This file is free software; the Free Software Foundation
4149 +# gives unlimited permission to copy and/or distribute it,
4150 +# with or without modifications, as long as this notice is preserved.
4151  
4152  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
4153  # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
4154 @@ -6031,26 +6735,16 @@ AC_PREREQ([2.50])dnl
4155  am_aux_dir=`cd $ac_aux_dir && pwd`
4156  ])
4157  
4158 -# AM_CONDITIONAL                                              -*- Autoconf -*-
4159 -
4160 -# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
4161 -
4162 -# This program is free software; you can redistribute it and/or modify
4163 -# it under the terms of the GNU General Public License as published by
4164 -# the Free Software Foundation; either version 2, or (at your option)
4165 -# any later version.
4166 +# AM_CONDITIONAL                                            -*- Autoconf -*-
4167  
4168 -# This program is distributed in the hope that it will be useful,
4169 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4170 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4171 -# GNU General Public License for more details.
4172 -
4173 -# You should have received a copy of the GNU General Public License
4174 -# along with this program; if not, write to the Free Software
4175 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4176 -# 02111-1307, USA.
4177 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
4178 +# Free Software Foundation, Inc.
4179 +#
4180 +# This file is free software; the Free Software Foundation
4181 +# gives unlimited permission to copy and/or distribute it,
4182 +# with or without modifications, as long as this notice is preserved.
4183  
4184 -# serial 6
4185 +# serial 7
4186  
4187  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
4188  # -------------------------------------
4189 @@ -6074,26 +6768,15 @@ AC_CONFIG_COMMANDS_PRE(
4190  Usually this means the macro was only invoked conditionally.]])
4191  fi])])
4192  
4193 -# serial 7                                             -*- Autoconf -*-
4194  
4195 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
4196 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4197  # Free Software Foundation, Inc.
4198 +#
4199 +# This file is free software; the Free Software Foundation
4200 +# gives unlimited permission to copy and/or distribute it,
4201 +# with or without modifications, as long as this notice is preserved.
4202  
4203 -# This program is free software; you can redistribute it and/or modify
4204 -# it under the terms of the GNU General Public License as published by
4205 -# the Free Software Foundation; either version 2, or (at your option)
4206 -# any later version.
4207 -
4208 -# This program is distributed in the hope that it will be useful,
4209 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4210 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4211 -# GNU General Public License for more details.
4212 -
4213 -# You should have received a copy of the GNU General Public License
4214 -# along with this program; if not, write to the Free Software
4215 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4216 -# 02111-1307, USA.
4217 -
4218 +# serial 8
4219  
4220  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
4221  # written in clear, in which case automake, when reading aclocal.m4,
4222 @@ -6102,7 +6785,6 @@ fi])])
4223  # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
4224  
4225  
4226 -
4227  # _AM_DEPENDENCIES(NAME)
4228  # ----------------------
4229  # See how the compiler implements dependency checking.
4230 @@ -6242,27 +6924,16 @@ AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
4231  AC_SUBST([AMDEPBACKSLASH])
4232  ])
4233  
4234 -# Generate code to set up dependency tracking.   -*- Autoconf -*-
4235 -
4236 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
4237 -#   Free Software Foundation, Inc.
4238 -
4239 -# This program is free software; you can redistribute it and/or modify
4240 -# it under the terms of the GNU General Public License as published by
4241 -# the Free Software Foundation; either version 2, or (at your option)
4242 -# any later version.
4243 -
4244 -# This program is distributed in the hope that it will be useful,
4245 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4246 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4247 -# GNU General Public License for more details.
4248 +# Generate code to set up dependency tracking.              -*- Autoconf -*-
4249  
4250 -# You should have received a copy of the GNU General Public License
4251 -# along with this program; if not, write to the Free Software
4252 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4253 -# 02111-1307, USA.
4254 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4255 +# Free Software Foundation, Inc.
4256 +#
4257 +# This file is free software; the Free Software Foundation
4258 +# gives unlimited permission to copy and/or distribute it,
4259 +# with or without modifications, as long as this notice is preserved.
4260  
4261 -#serial 2
4262 +#serial 3
4263  
4264  # _AM_OUTPUT_DEPENDENCY_COMMANDS
4265  # ------------------------------
4266 @@ -6321,54 +6992,31 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
4267       [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
4268  ])
4269  
4270 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
4271 -
4272 -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
4273 -
4274 -# This program is free software; you can redistribute it and/or modify
4275 -# it under the terms of the GNU General Public License as published by
4276 -# the Free Software Foundation; either version 2, or (at your option)
4277 -# any later version.
4278 -
4279 -# This program is distributed in the hope that it will be useful,
4280 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4281 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4282 -# GNU General Public License for more details.
4283 -
4284 -# You should have received a copy of the GNU General Public License
4285 -# along with this program; if not, write to the Free Software
4286 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4287 -# 02111-1307, USA.
4288 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
4289 +# Free Software Foundation, Inc.
4290 +#
4291 +# This file is free software; the Free Software Foundation
4292 +# gives unlimited permission to copy and/or distribute it,
4293 +# with or without modifications, as long as this notice is preserved.
4294  
4295 -# serial 7
4296 +# serial 8
4297  
4298  # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
4299  AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
4300  
4301 -# Do all the work for Automake.                            -*- Autoconf -*-
4302 -
4303 -# This macro actually does too much some checks are only needed if
4304 -# your package does certain things.  But this isn't really a big deal.
4305 +# Do all the work for Automake.                             -*- Autoconf -*-
4306  
4307 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4308 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4309  # Free Software Foundation, Inc.
4310 +#
4311 +# This file is free software; the Free Software Foundation
4312 +# gives unlimited permission to copy and/or distribute it,
4313 +# with or without modifications, as long as this notice is preserved.
4314  
4315 -# This program is free software; you can redistribute it and/or modify
4316 -# it under the terms of the GNU General Public License as published by
4317 -# the Free Software Foundation; either version 2, or (at your option)
4318 -# any later version.
4319 -
4320 -# This program is distributed in the hope that it will be useful,
4321 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4322 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4323 -# GNU General Public License for more details.
4324 -
4325 -# You should have received a copy of the GNU General Public License
4326 -# along with this program; if not, write to the Free Software
4327 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4328 -# 02111-1307, USA.
4329 +# serial 12
4330  
4331 -# serial 11
4332 +# This macro actually does too much.  Some checks are only needed if
4333 +# your package does certain things.  But this isn't really a big deal.
4334  
4335  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
4336  # AM_INIT_AUTOMAKE([OPTIONS])
4337 @@ -6470,51 +7118,27 @@ for _am_header in $config_headers :; do
4338  done
4339  echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
4340  
4341 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4342 +#
4343 +# This file is free software; the Free Software Foundation
4344 +# gives unlimited permission to copy and/or distribute it,
4345 +# with or without modifications, as long as this notice is preserved.
4346 +
4347  # AM_PROG_INSTALL_SH
4348  # ------------------
4349  # Define $install_sh.
4350 -
4351 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4352 -
4353 -# This program is free software; you can redistribute it and/or modify
4354 -# it under the terms of the GNU General Public License as published by
4355 -# the Free Software Foundation; either version 2, or (at your option)
4356 -# any later version.
4357 -
4358 -# This program is distributed in the hope that it will be useful,
4359 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4360 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4361 -# GNU General Public License for more details.
4362 -
4363 -# You should have received a copy of the GNU General Public License
4364 -# along with this program; if not, write to the Free Software
4365 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4366 -# 02111-1307, USA.
4367 -
4368  AC_DEFUN([AM_PROG_INSTALL_SH],
4369  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
4370  install_sh=${install_sh-"$am_aux_dir/install-sh"}
4371  AC_SUBST(install_sh)])
4372  
4373 -#                                                          -*- Autoconf -*-
4374 -# Copyright (C) 2003  Free Software Foundation, Inc.
4375 -
4376 -# This program is free software; you can redistribute it and/or modify
4377 -# it under the terms of the GNU General Public License as published by
4378 -# the Free Software Foundation; either version 2, or (at your option)
4379 -# any later version.
4380 -
4381 -# This program is distributed in the hope that it will be useful,
4382 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4383 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4384 -# GNU General Public License for more details.
4385 -
4386 -# You should have received a copy of the GNU General Public License
4387 -# along with this program; if not, write to the Free Software
4388 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4389 -# 02111-1307, USA.
4390 +# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
4391 +#
4392 +# This file is free software; the Free Software Foundation
4393 +# gives unlimited permission to copy and/or distribute it,
4394 +# with or without modifications, as long as this notice is preserved.
4395  
4396 -# serial 1
4397 +# serial 2
4398  
4399  # Check whether the underlying file-system supports filenames
4400  # with a leading dot.  For instance MS-DOS doesn't.
4401 @@ -6529,28 +7153,17 @@ fi
4402  rmdir .tst 2>/dev/null
4403  AC_SUBST([am__leading_dot])])
4404  
4405 -# Add --enable-maintainer-mode option to configure.
4406 +# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
4407  # From Jim Meyering
4408  
4409 -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
4410 +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
4411  # Free Software Foundation, Inc.
4412 +#
4413 +# This file is free software; the Free Software Foundation
4414 +# gives unlimited permission to copy and/or distribute it,
4415 +# with or without modifications, as long as this notice is preserved.
4416  
4417 -# This program is free software; you can redistribute it and/or modify
4418 -# it under the terms of the GNU General Public License as published by
4419 -# the Free Software Foundation; either version 2, or (at your option)
4420 -# any later version.
4421 -
4422 -# This program is distributed in the hope that it will be useful,
4423 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4424 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4425 -# GNU General Public License for more details.
4426 -
4427 -# You should have received a copy of the GNU General Public License
4428 -# along with this program; if not, write to the Free Software
4429 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4430 -# 02111-1307, USA.
4431 -
4432 -# serial 3
4433 +# serial 4
4434  
4435  AC_DEFUN([AM_MAINTAINER_MODE],
4436  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4437 @@ -6569,26 +7182,15 @@ AC_DEFUN([AM_MAINTAINER_MODE],
4438  
4439  AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
4440  
4441 -# Check to see how 'make' treats includes.     -*- Autoconf -*-
4442 -
4443 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4444 -
4445 -# This program is free software; you can redistribute it and/or modify
4446 -# it under the terms of the GNU General Public License as published by
4447 -# the Free Software Foundation; either version 2, or (at your option)
4448 -# any later version.
4449 -
4450 -# This program is distributed in the hope that it will be useful,
4451 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4452 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4453 -# GNU General Public License for more details.
4454 +# Check to see how 'make' treats includes.                 -*- Autoconf -*-
4455  
4456 -# You should have received a copy of the GNU General Public License
4457 -# along with this program; if not, write to the Free Software
4458 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4459 -# 02111-1307, USA.
4460 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
4461 +#
4462 +# This file is free software; the Free Software Foundation
4463 +# gives unlimited permission to copy and/or distribute it,
4464 +# with or without modifications, as long as this notice is preserved.
4465  
4466 -# serial 2
4467 +# serial 3
4468  
4469  # AM_MAKE_INCLUDE()
4470  # -----------------
4471 @@ -6632,27 +7234,16 @@ AC_MSG_RESULT([$_am_result])
4472  rm -f confinc confmf
4473  ])
4474  
4475 -#  -*- Autoconf -*-
4476 -
4477 -
4478 -# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
4479 -
4480 -# This program is free software; you can redistribute it and/or modify
4481 -# it under the terms of the GNU General Public License as published by
4482 -# the Free Software Foundation; either version 2, or (at your option)
4483 -# any later version.
4484 -
4485 -# This program is distributed in the hope that it will be useful,
4486 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4487 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4488 -# GNU General Public License for more details.
4489 +# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
4490  
4491 -# You should have received a copy of the GNU General Public License
4492 -# along with this program; if not, write to the Free Software
4493 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4494 -# 02111-1307, USA.
4495 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
4496 +# Free Software Foundation, Inc.
4497 +#
4498 +# This file is free software; the Free Software Foundation
4499 +# gives unlimited permission to copy and/or distribute it,
4500 +# with or without modifications, as long as this notice is preserved.
4501  
4502 -# serial 3
4503 +# serial 4
4504  
4505  # AM_MISSING_PROG(NAME, PROGRAM)
4506  # ------------------------------
4507 @@ -6678,27 +7269,16 @@ else
4508  fi
4509  ])
4510  
4511 +# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
4512 +#
4513 +# This file is free software; the Free Software Foundation
4514 +# gives unlimited permission to copy and/or distribute it,
4515 +# with or without modifications, as long as this notice is preserved.
4516 +
4517  # AM_PROG_MKDIR_P
4518  # ---------------
4519  # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
4520 -
4521 -# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
4522 -
4523 -# This program is free software; you can redistribute it and/or modify
4524 -# it under the terms of the GNU General Public License as published by
4525 -# the Free Software Foundation; either version 2, or (at your option)
4526 -# any later version.
4527 -
4528 -# This program is distributed in the hope that it will be useful,
4529 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4530 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4531 -# GNU General Public License for more details.
4532 -
4533 -# You should have received a copy of the GNU General Public License
4534 -# along with this program; if not, write to the Free Software
4535 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4536 -# 02111-1307, USA.
4537 -
4538 +#
4539  # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
4540  # created by `make install' are always world readable, even if the
4541  # installer happens to have an overly restrictive umask (e.g. 077).
4542 @@ -6752,26 +7332,15 @@ else
4543  fi
4544  AC_SUBST([mkdir_p])])
4545  
4546 -# Helper functions for option handling.                    -*- Autoconf -*-
4547 -
4548 -# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
4549 -
4550 -# This program is free software; you can redistribute it and/or modify
4551 -# it under the terms of the GNU General Public License as published by
4552 -# the Free Software Foundation; either version 2, or (at your option)
4553 -# any later version.
4554 -
4555 -# This program is distributed in the hope that it will be useful,
4556 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4557 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4558 -# GNU General Public License for more details.
4559 +# Helper functions for option handling.                     -*- Autoconf -*-
4560  
4561 -# You should have received a copy of the GNU General Public License
4562 -# along with this program; if not, write to the Free Software
4563 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4564 -# 02111-1307, USA.
4565 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
4566 +#
4567 +# This file is free software; the Free Software Foundation
4568 +# gives unlimited permission to copy and/or distribute it,
4569 +# with or without modifications, as long as this notice is preserved.
4570  
4571 -# serial 2
4572 +# serial 3
4573  
4574  # _AM_MANGLE_OPTION(NAME)
4575  # -----------------------
4576 @@ -6796,28 +7365,16 @@ AC_DEFUN([_AM_SET_OPTIONS],
4577  AC_DEFUN([_AM_IF_OPTION],
4578  [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
4579  
4580 -#
4581 -# Check to make sure that the build environment is sane.
4582 -#
4583 -
4584 -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
4585 +# Check to make sure that the build environment is sane.    -*- Autoconf -*-
4586  
4587 -# This program is free software; you can redistribute it and/or modify
4588 -# it under the terms of the GNU General Public License as published by
4589 -# the Free Software Foundation; either version 2, or (at your option)
4590 -# any later version.
4591 -
4592 -# This program is distributed in the hope that it will be useful,
4593 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4594 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4595 -# GNU General Public License for more details.
4596 -
4597 -# You should have received a copy of the GNU General Public License
4598 -# along with this program; if not, write to the Free Software
4599 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4600 -# 02111-1307, USA.
4601 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
4602 +# Free Software Foundation, Inc.
4603 +#
4604 +# This file is free software; the Free Software Foundation
4605 +# gives unlimited permission to copy and/or distribute it,
4606 +# with or without modifications, as long as this notice is preserved.
4607  
4608 -# serial 3
4609 +# serial 4
4610  
4611  # AM_SANITY_CHECK
4612  # ---------------
4613 @@ -6860,25 +7417,14 @@ Check your system clock])
4614  fi
4615  AC_MSG_RESULT(yes)])
4616  
4617 -# AM_PROG_INSTALL_STRIP
4618 -
4619 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4620 -
4621 -# This program is free software; you can redistribute it and/or modify
4622 -# it under the terms of the GNU General Public License as published by
4623 -# the Free Software Foundation; either version 2, or (at your option)
4624 -# any later version.
4625 -
4626 -# This program is distributed in the hope that it will be useful,
4627 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4628 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4629 -# GNU General Public License for more details.
4630 -
4631 -# You should have received a copy of the GNU General Public License
4632 -# along with this program; if not, write to the Free Software
4633 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4634 -# 02111-1307, USA.
4635 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4636 +#
4637 +# This file is free software; the Free Software Foundation
4638 +# gives unlimited permission to copy and/or distribute it,
4639 +# with or without modifications, as long as this notice is preserved.
4640  
4641 +# AM_PROG_INSTALL_STRIP
4642 +# ---------------------
4643  # One issue with vendor `install' (even GNU) is that you can't
4644  # specify the program used to strip binaries.  This is especially
4645  # annoying in cross-compiling environments, where the build's strip
4646 @@ -6901,25 +7447,13 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
4647  
4648  # Check how to create a tarball.                            -*- Autoconf -*-
4649  
4650 -# Copyright (C) 2004  Free Software Foundation, Inc.
4651 -
4652 -# This program is free software; you can redistribute it and/or modify
4653 -# it under the terms of the GNU General Public License as published by
4654 -# the Free Software Foundation; either version 2, or (at your option)
4655 -# any later version.
4656 -
4657 -# This program is distributed in the hope that it will be useful,
4658 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4659 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4660 -# GNU General Public License for more details.
4661 -
4662 -# You should have received a copy of the GNU General Public License
4663 -# along with this program; if not, write to the Free Software
4664 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4665 -# 02111-1307, USA.
4666 -
4667 -# serial 1
4668 +# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
4669 +#
4670 +# This file is free software; the Free Software Foundation
4671 +# gives unlimited permission to copy and/or distribute it,
4672 +# with or without modifications, as long as this notice is preserved.
4673  
4674 +# serial 2
4675  
4676  # _AM_PROG_TAR(FORMAT)
4677  # --------------------
4678 diff --git a/aux/config.guess b/aux/config.guess
4679 index 2fc3acc..f32079a 100755
4680 --- a/aux/config.guess
4681 +++ b/aux/config.guess
4682 @@ -1,9 +1,10 @@
4683  #! /bin/sh
4684  # Attempt to guess a canonical system name.
4685  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4686 -#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4687 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4688 +#   Free Software Foundation, Inc.
4689  
4690 -timestamp='2003-06-17'
4691 +timestamp='2008-01-23'
4692  
4693  # This file is free software; you can redistribute it and/or modify it
4694  # under the terms of the GNU General Public License as published by
4695 @@ -17,13 +18,15 @@ timestamp='2003-06-17'
4696  #
4697  # You should have received a copy of the GNU General Public License
4698  # along with this program; if not, write to the Free Software
4699 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4700 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
4701 +# 02110-1301, USA.
4702  #
4703  # As a special exception to the GNU General Public License, if you
4704  # distribute this file as part of a program that contains a
4705  # configuration script generated by Autoconf, you may include it under
4706  # the same distribution terms that you use for the rest of that program.
4707  
4708 +
4709  # Originally written by Per Bothner <per@bothner.com>.
4710  # Please send patches to <config-patches@gnu.org>.  Submit a context
4711  # diff and a properly formatted ChangeLog entry.
4712 @@ -53,8 +56,8 @@ version="\
4713  GNU config.guess ($timestamp)
4714  
4715  Originally written by Per Bothner.
4716 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4717 -Free Software Foundation, Inc.
4718 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
4719 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4720  
4721  This is free software; see the source for copying conditions.  There is NO
4722  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4723 @@ -66,11 +69,11 @@ Try \`$me --help' for more information."
4724  while test $# -gt 0 ; do
4725    case $1 in
4726      --time-stamp | --time* | -t )
4727 -       echo "$timestamp" ; exit 0 ;;
4728 +       echo "$timestamp" ; exit ;;
4729      --version | -v )
4730 -       echo "$version" ; exit 0 ;;
4731 +       echo "$version" ; exit ;;
4732      --help | --h* | -h )
4733 -       echo "$usage"; exit 0 ;;
4734 +       echo "$usage"; exit ;;
4735      -- )     # Stop option processing
4736         shift; break ;;
4737      - )        # Use stdin as input.
4738 @@ -104,7 +107,7 @@ set_cc_for_build='
4739  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
4740  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
4741  : ${TMPDIR=/tmp} ;
4742 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4743 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4744   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
4745   { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
4746   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
4747 @@ -123,7 +126,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
4748         ;;
4749   ,,*)   CC_FOR_BUILD=$CC ;;
4750   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
4751 -esac ;'
4752 +esac ; set_cc_for_build= ;'
4753  
4754  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
4755  # (ghazi@noc.rutgers.edu 1994-08-24)
4756 @@ -136,13 +139,6 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
4757  UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
4758  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
4759  
4760 -## for Red Hat Linux
4761 -if test -f /etc/redhat-release ; then
4762 -    VENDOR=redhat ;
4763 -else
4764 -    VENDOR= ;
4765 -fi
4766 -
4767  # Note: order is significant - the case branches are not exclusive.
4768  
4769  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4770 @@ -165,6 +161,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4771             arm*) machine=arm-unknown ;;
4772             sh3el) machine=shl-unknown ;;
4773             sh3eb) machine=sh-unknown ;;
4774 +           sh5el) machine=sh5le-unknown ;;
4775             *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
4776         esac
4777         # The Operating System including object format, if it has switched
4778 @@ -203,50 +200,32 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4779         # contains redundant information, the shorter form:
4780         # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
4781         echo "${machine}-${os}${release}"
4782 -       exit 0 ;;
4783 -    amiga:OpenBSD:*:*)
4784 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4785 -       exit 0 ;;
4786 -    arc:OpenBSD:*:*)
4787 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4788 -       exit 0 ;;
4789 -    hp300:OpenBSD:*:*)
4790 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4791 -       exit 0 ;;
4792 -    mac68k:OpenBSD:*:*)
4793 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4794 -       exit 0 ;;
4795 -    macppc:OpenBSD:*:*)
4796 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
4797 -       exit 0 ;;
4798 -    mvme68k:OpenBSD:*:*)
4799 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4800 -       exit 0 ;;
4801 -    mvme88k:OpenBSD:*:*)
4802 -       echo m88k-unknown-openbsd${UNAME_RELEASE}
4803 -       exit 0 ;;
4804 -    mvmeppc:OpenBSD:*:*)
4805 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
4806 -       exit 0 ;;
4807 -    pmax:OpenBSD:*:*)
4808 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4809 -       exit 0 ;;
4810 -    sgi:OpenBSD:*:*)
4811 -       echo mipseb-unknown-openbsd${UNAME_RELEASE}
4812 -       exit 0 ;;
4813 -    sun3:OpenBSD:*:*)
4814 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4815 -       exit 0 ;;
4816 -    wgrisc:OpenBSD:*:*)
4817 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4818 -       exit 0 ;;
4819 +       exit ;;
4820      *:OpenBSD:*:*)
4821 -       echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
4822 -       exit 0 ;;
4823 +       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
4824 +       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
4825 +       exit ;;
4826 +    *:ekkoBSD:*:*)
4827 +       echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
4828 +       exit ;;
4829 +    *:SolidBSD:*:*)
4830 +       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
4831 +       exit ;;
4832 +    macppc:MirBSD:*:*)
4833 +       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
4834 +       exit ;;
4835 +    *:MirBSD:*:*)
4836 +       echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
4837 +       exit ;;
4838      alpha:OSF1:*:*)
4839 -       if test $UNAME_RELEASE = "V4.0"; then
4840 +       case $UNAME_RELEASE in
4841 +       *4.0)
4842                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
4843 -       fi
4844 +               ;;
4845 +       *5.*)
4846 +               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
4847 +               ;;
4848 +       esac
4849         # According to Compaq, /usr/sbin/psrinfo has been available on
4850         # OSF/1 and Tru64 systems produced since 1995.  I hope that
4851         # covers most systems running today.  This code pipes the CPU
4852 @@ -284,42 +263,49 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4853             "EV7.9 (21364A)")
4854                 UNAME_MACHINE="alphaev79" ;;
4855         esac
4856 +       # A Pn.n version is a patched version.
4857         # A Vn.n version is a released version.
4858         # A Tn.n version is a released field test version.
4859         # A Xn.n version is an unreleased experimental baselevel.
4860         # 1.2 uses "1.2" for uname -r.
4861 -       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4862 -       exit 0 ;;
4863 -    Alpha*:OpenVMS:*:*)
4864 -       echo alpha-hp-vms
4865 -       exit 0 ;;
4866 +       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4867 +       exit ;;
4868      Alpha\ *:Windows_NT*:*)
4869         # How do we know it's Interix rather than the generic POSIX subsystem?
4870         # Should we change UNAME_MACHINE based on the output of uname instead
4871         # of the specific Alpha model?
4872         echo alpha-pc-interix
4873 -       exit 0 ;;
4874 +       exit ;;
4875      21064:Windows_NT:50:3)
4876         echo alpha-dec-winnt3.5
4877 -       exit 0 ;;
4878 +       exit ;;
4879      Amiga*:UNIX_System_V:4.0:*)
4880         echo m68k-unknown-sysv4
4881 -       exit 0;;
4882 +       exit ;;
4883      *:[Aa]miga[Oo][Ss]:*:*)
4884         echo ${UNAME_MACHINE}-unknown-amigaos
4885 -       exit 0 ;;
4886 +       exit ;;
4887      *:[Mm]orph[Oo][Ss]:*:*)
4888         echo ${UNAME_MACHINE}-unknown-morphos
4889 -       exit 0 ;;
4890 +       exit ;;
4891      *:OS/390:*:*)
4892         echo i370-ibm-openedition
4893 -       exit 0 ;;
4894 +       exit ;;
4895 +    *:z/VM:*:*)
4896 +       echo s390-ibm-zvmoe
4897 +       exit ;;
4898 +    *:OS400:*:*)
4899 +        echo powerpc-ibm-os400
4900 +       exit ;;
4901      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
4902         echo arm-acorn-riscix${UNAME_RELEASE}
4903 -       exit 0;;
4904 +       exit ;;
4905 +    arm:riscos:*:*|arm:RISCOS:*:*)
4906 +       echo arm-unknown-riscos
4907 +       exit ;;
4908      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
4909         echo hppa1.1-hitachi-hiuxmpp
4910 -       exit 0;;
4911 +       exit ;;
4912      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
4913         # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
4914         if test "`(/bin/universe) 2>/dev/null`" = att ; then
4915 @@ -327,32 +313,32 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4916         else
4917                 echo pyramid-pyramid-bsd
4918         fi
4919 -       exit 0 ;;
4920 +       exit ;;
4921      NILE*:*:*:dcosx)
4922         echo pyramid-pyramid-svr4
4923 -       exit 0 ;;
4924 +       exit ;;
4925      DRS?6000:unix:4.0:6*)
4926         echo sparc-icl-nx6
4927 -       exit 0 ;;
4928 -    DRS?6000:UNIX_SV:4.2*:7*)
4929 +       exit ;;
4930 +    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
4931         case `/usr/bin/uname -p` in
4932 -           sparc) echo sparc-icl-nx7 && exit 0 ;;
4933 +           sparc) echo sparc-icl-nx7; exit ;;
4934         esac ;;
4935      sun4H:SunOS:5.*:*)
4936         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4937 -       exit 0 ;;
4938 +       exit ;;
4939      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
4940         echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4941 -       exit 0 ;;
4942 -    i86pc:SunOS:5.*:*)
4943 +       exit ;;
4944 +    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
4945         echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4946 -       exit 0 ;;
4947 +       exit ;;
4948      sun4*:SunOS:6*:*)
4949         # According to config.sub, this is the proper way to canonicalize
4950         # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
4951         # it's likely to be more like Solaris than SunOS4.
4952         echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4953 -       exit 0 ;;
4954 +       exit ;;
4955      sun4*:SunOS:*:*)
4956         case "`/usr/bin/arch -k`" in
4957             Series*|S4*)
4958 @@ -361,10 +347,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4959         esac
4960         # Japanese Language versions have a version number like `4.1.3-JL'.
4961         echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
4962 -       exit 0 ;;
4963 +       exit ;;
4964      sun3*:SunOS:*:*)
4965         echo m68k-sun-sunos${UNAME_RELEASE}
4966 -       exit 0 ;;
4967 +       exit ;;
4968      sun*:*:4.2BSD:*)
4969         UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4970         test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
4971 @@ -376,10 +362,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4972                 echo sparc-sun-sunos${UNAME_RELEASE}
4973                 ;;
4974         esac
4975 -       exit 0 ;;
4976 +       exit ;;
4977      aushp:SunOS:*:*)
4978         echo sparc-auspex-sunos${UNAME_RELEASE}
4979 -       exit 0 ;;
4980 +       exit ;;
4981      # The situation for MiNT is a little confusing.  The machine name
4982      # can be virtually everything (everything which is not
4983      # "atarist" or "atariste" at least should have a processor
4984 @@ -390,37 +376,40 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4985      # be no problem.
4986      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
4987          echo m68k-atari-mint${UNAME_RELEASE}
4988 -       exit 0 ;;
4989 +       exit ;;
4990      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
4991         echo m68k-atari-mint${UNAME_RELEASE}
4992 -        exit 0 ;;
4993 +        exit ;;
4994      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
4995          echo m68k-atari-mint${UNAME_RELEASE}
4996 -       exit 0 ;;
4997 +       exit ;;
4998      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
4999          echo m68k-milan-mint${UNAME_RELEASE}
5000 -        exit 0 ;;
5001 +        exit ;;
5002      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
5003          echo m68k-hades-mint${UNAME_RELEASE}
5004 -        exit 0 ;;
5005 +        exit ;;
5006      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
5007          echo m68k-unknown-mint${UNAME_RELEASE}
5008 -        exit 0 ;;
5009 +        exit ;;
5010 +    m68k:machten:*:*)
5011 +       echo m68k-apple-machten${UNAME_RELEASE}
5012 +       exit ;;
5013      powerpc:machten:*:*)
5014         echo powerpc-apple-machten${UNAME_RELEASE}
5015 -       exit 0 ;;
5016 +       exit ;;
5017      RISC*:Mach:*:*)
5018         echo mips-dec-mach_bsd4.3
5019 -       exit 0 ;;
5020 +       exit ;;
5021      RISC*:ULTRIX:*:*)
5022         echo mips-dec-ultrix${UNAME_RELEASE}
5023 -       exit 0 ;;
5024 +       exit ;;
5025      VAX*:ULTRIX*:*:*)
5026         echo vax-dec-ultrix${UNAME_RELEASE}
5027 -       exit 0 ;;
5028 +       exit ;;
5029      2020:CLIX:*:* | 2430:CLIX:*:*)
5030         echo clipper-intergraph-clix${UNAME_RELEASE}
5031 -       exit 0 ;;
5032 +       exit ;;
5033      mips:*:*:UMIPS | mips:*:*:RISCos)
5034         eval $set_cc_for_build
5035         sed 's/^        //' << EOF >$dummy.c
5036 @@ -444,32 +433,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5037           exit (-1);
5038         }
5039  EOF
5040 -       $CC_FOR_BUILD -o $dummy $dummy.c \
5041 -         && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
5042 -         && exit 0
5043 +       $CC_FOR_BUILD -o $dummy $dummy.c &&
5044 +         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
5045 +         SYSTEM_NAME=`$dummy $dummyarg` &&
5046 +           { echo "$SYSTEM_NAME"; exit; }
5047         echo mips-mips-riscos${UNAME_RELEASE}
5048 -       exit 0 ;;
5049 +       exit ;;
5050      Motorola:PowerMAX_OS:*:*)
5051         echo powerpc-motorola-powermax
5052 -       exit 0 ;;
5053 +       exit ;;
5054      Motorola:*:4.3:PL8-*)
5055         echo powerpc-harris-powermax
5056 -       exit 0 ;;
5057 +       exit ;;
5058      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
5059         echo powerpc-harris-powermax
5060 -       exit 0 ;;
5061 +       exit ;;
5062      Night_Hawk:Power_UNIX:*:*)
5063         echo powerpc-harris-powerunix
5064 -       exit 0 ;;
5065 +       exit ;;
5066      m88k:CX/UX:7*:*)
5067         echo m88k-harris-cxux7
5068 -       exit 0 ;;
5069 +       exit ;;
5070      m88k:*:4*:R4*)
5071         echo m88k-motorola-sysv4
5072 -       exit 0 ;;
5073 +       exit ;;
5074      m88k:*:3*:R3*)
5075         echo m88k-motorola-sysv3
5076 -       exit 0 ;;
5077 +       exit ;;
5078      AViiON:dgux:*:*)
5079          # DG/UX returns AViiON for all architectures
5080          UNAME_PROCESSOR=`/usr/bin/uname -p`
5081 @@ -485,29 +475,29 @@ EOF
5082         else
5083             echo i586-dg-dgux${UNAME_RELEASE}
5084         fi
5085 -       exit 0 ;;
5086 +       exit ;;
5087      M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
5088         echo m88k-dolphin-sysv3
5089 -       exit 0 ;;
5090 +       exit ;;
5091      M88*:*:R3*:*)
5092         # Delta 88k system running SVR3
5093         echo m88k-motorola-sysv3
5094 -       exit 0 ;;
5095 +       exit ;;
5096      XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
5097         echo m88k-tektronix-sysv3
5098 -       exit 0 ;;
5099 +       exit ;;
5100      Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
5101         echo m68k-tektronix-bsd
5102 -       exit 0 ;;
5103 +       exit ;;
5104      *:IRIX*:*:*)
5105         echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
5106 -       exit 0 ;;
5107 +       exit ;;
5108      ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
5109 -       echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
5110 -       exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
5111 +       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
5112 +       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
5113      i*86:AIX:*:*)
5114         echo i386-ibm-aix
5115 -       exit 0 ;;
5116 +       exit ;;
5117      ia64:AIX:*:*)
5118         if [ -x /usr/bin/oslevel ] ; then
5119                 IBM_REV=`/usr/bin/oslevel`
5120 @@ -515,7 +505,7 @@ EOF
5121                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5122         fi
5123         echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
5124 -       exit 0 ;;
5125 +       exit ;;
5126      *:AIX:2:3)
5127         if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
5128                 eval $set_cc_for_build
5129 @@ -530,15 +520,19 @@ EOF
5130                         exit(0);
5131                         }
5132  EOF
5133 -               $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
5134 -               echo rs6000-ibm-aix3.2.5
5135 +               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
5136 +               then
5137 +                       echo "$SYSTEM_NAME"
5138 +               else
5139 +                       echo rs6000-ibm-aix3.2.5
5140 +               fi
5141         elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
5142                 echo rs6000-ibm-aix3.2.4
5143         else
5144                 echo rs6000-ibm-aix3.2
5145         fi
5146 -       exit 0 ;;
5147 -    *:AIX:*:[45])
5148 +       exit ;;
5149 +    *:AIX:*:[456])
5150         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
5151         if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
5152                 IBM_ARCH=rs6000
5153 @@ -551,28 +545,28 @@ EOF
5154                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5155         fi
5156         echo ${IBM_ARCH}-ibm-aix${IBM_REV}
5157 -       exit 0 ;;
5158 +       exit ;;
5159      *:AIX:*:*)
5160         echo rs6000-ibm-aix
5161 -       exit 0 ;;
5162 +       exit ;;
5163      ibmrt:4.4BSD:*|romp-ibm:BSD:*)
5164         echo romp-ibm-bsd4.4
5165 -       exit 0 ;;
5166 +       exit ;;
5167      ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
5168         echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
5169 -       exit 0 ;;                           # report: romp-ibm BSD 4.3
5170 +       exit ;;                             # report: romp-ibm BSD 4.3
5171      *:BOSX:*:*)
5172         echo rs6000-bull-bosx
5173 -       exit 0 ;;
5174 +       exit ;;
5175      DPX/2?00:B.O.S.:*:*)
5176         echo m68k-bull-sysv3
5177 -       exit 0 ;;
5178 +       exit ;;
5179      9000/[34]??:4.3bsd:1.*:*)
5180         echo m68k-hp-bsd
5181 -       exit 0 ;;
5182 +       exit ;;
5183      hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
5184         echo m68k-hp-bsd4.4
5185 -       exit 0 ;;
5186 +       exit ;;
5187      9000/[34678]??:HP-UX:*:*)
5188         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5189         case "${UNAME_MACHINE}" in
5190 @@ -634,9 +628,19 @@ EOF
5191         esac
5192         if [ ${HP_ARCH} = "hppa2.0w" ]
5193         then
5194 -           # avoid double evaluation of $set_cc_for_build
5195 -           test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
5196 -           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
5197 +           eval $set_cc_for_build
5198 +
5199 +           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
5200 +           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
5201 +           # generating 64-bit code.  GNU and HP use different nomenclature:
5202 +           #
5203 +           # $ CC_FOR_BUILD=cc ./config.guess
5204 +           # => hppa2.0w-hp-hpux11.23
5205 +           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
5206 +           # => hppa64-hp-hpux11.23
5207 +
5208 +           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
5209 +               grep __LP64__ >/dev/null
5210             then
5211                 HP_ARCH="hppa2.0w"
5212             else
5213 @@ -644,11 +648,11 @@ EOF
5214             fi
5215         fi
5216         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
5217 -       exit 0 ;;
5218 +       exit ;;
5219      ia64:HP-UX:*:*)
5220         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5221         echo ia64-hp-hpux${HPUX_REV}
5222 -       exit 0 ;;
5223 +       exit ;;
5224      3050*:HI-UX:*:*)
5225         eval $set_cc_for_build
5226         sed 's/^        //' << EOF >$dummy.c
5227 @@ -676,150 +680,192 @@ EOF
5228           exit (0);
5229         }
5230  EOF
5231 -       $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
5232 +       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
5233 +               { echo "$SYSTEM_NAME"; exit; }
5234         echo unknown-hitachi-hiuxwe2
5235 -       exit 0 ;;
5236 +       exit ;;
5237      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
5238         echo hppa1.1-hp-bsd
5239 -       exit 0 ;;
5240 +       exit ;;
5241      9000/8??:4.3bsd:*:*)
5242         echo hppa1.0-hp-bsd
5243 -       exit 0 ;;
5244 +       exit ;;
5245      *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
5246         echo hppa1.0-hp-mpeix
5247 -       exit 0 ;;
5248 +       exit ;;
5249      hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
5250         echo hppa1.1-hp-osf
5251 -       exit 0 ;;
5252 +       exit ;;
5253      hp8??:OSF1:*:*)
5254         echo hppa1.0-hp-osf
5255 -       exit 0 ;;
5256 +       exit ;;
5257      i*86:OSF1:*:*)
5258         if [ -x /usr/sbin/sysversion ] ; then
5259             echo ${UNAME_MACHINE}-unknown-osf1mk
5260         else
5261             echo ${UNAME_MACHINE}-unknown-osf1
5262         fi
5263 -       exit 0 ;;
5264 +       exit ;;
5265      parisc*:Lites*:*:*)
5266         echo hppa1.1-hp-lites
5267 -       exit 0 ;;
5268 +       exit ;;
5269      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
5270         echo c1-convex-bsd
5271 -        exit 0 ;;
5272 +        exit ;;
5273      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
5274         if getsysinfo -f scalar_acc
5275         then echo c32-convex-bsd
5276         else echo c2-convex-bsd
5277         fi
5278 -        exit 0 ;;
5279 +        exit ;;
5280      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
5281         echo c34-convex-bsd
5282 -        exit 0 ;;
5283 +        exit ;;
5284      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
5285         echo c38-convex-bsd
5286 -        exit 0 ;;
5287 +        exit ;;
5288      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
5289         echo c4-convex-bsd
5290 -        exit 0 ;;
5291 +        exit ;;
5292      CRAY*Y-MP:*:*:*)
5293         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5294 -       exit 0 ;;
5295 +       exit ;;
5296      CRAY*[A-Z]90:*:*:*)
5297         echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
5298         | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
5299               -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
5300               -e 's/\.[^.]*$/.X/'
5301 -       exit 0 ;;
5302 +       exit ;;
5303      CRAY*TS:*:*:*)
5304         echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5305 -       exit 0 ;;
5306 +       exit ;;
5307      CRAY*T3E:*:*:*)
5308         echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5309 -       exit 0 ;;
5310 +       exit ;;
5311      CRAY*SV1:*:*:*)
5312         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5313 -       exit 0 ;;
5314 +       exit ;;
5315      *:UNICOS/mp:*:*)
5316 -       echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
5317 -       exit 0 ;;
5318 +       echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5319 +       exit ;;
5320      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
5321         FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
5322          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5323          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
5324          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5325 -        exit 0 ;;
5326 +        exit ;;
5327 +    5000:UNIX_System_V:4.*:*)
5328 +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5329 +        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
5330 +        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5331 +       exit ;;
5332      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
5333         echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
5334 -       exit 0 ;;
5335 +       exit ;;
5336      sparc*:BSD/OS:*:*)
5337         echo sparc-unknown-bsdi${UNAME_RELEASE}
5338 -       exit 0 ;;
5339 +       exit ;;
5340      *:BSD/OS:*:*)
5341         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
5342 -       exit 0 ;;
5343 -    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
5344 -       # Determine whether the default compiler uses glibc.
5345 -       eval $set_cc_for_build
5346 -       sed 's/^        //' << EOF >$dummy.c
5347 -       #include <features.h>
5348 -       #if __GLIBC__ >= 2
5349 -       LIBC=gnu
5350 -       #else
5351 -       LIBC=
5352 -       #endif
5353 -EOF
5354 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5355 -       echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
5356 -       exit 0 ;;
5357 +       exit ;;
5358 +    *:FreeBSD:*:*)
5359 +       case ${UNAME_MACHINE} in
5360 +           pc98)
5361 +               echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5362 +           amd64)
5363 +               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5364 +           *)
5365 +               echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5366 +       esac
5367 +       exit ;;
5368      i*:CYGWIN*:*)
5369         echo ${UNAME_MACHINE}-pc-cygwin
5370 -       exit 0 ;;
5371 -    i*:MINGW*:*)
5372 +       exit ;;
5373 +    *:MINGW*:*)
5374         echo ${UNAME_MACHINE}-pc-mingw32
5375 -       exit 0 ;;
5376 +       exit ;;
5377 +    i*:windows32*:*)
5378 +       # uname -m includes "-pc" on this system.
5379 +       echo ${UNAME_MACHINE}-mingw32
5380 +       exit ;;
5381      i*:PW*:*)
5382         echo ${UNAME_MACHINE}-pc-pw32
5383 -       exit 0 ;;
5384 -    x86:Interix*:[34]*)
5385 -       echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
5386 -       exit 0 ;;
5387 +       exit ;;
5388 +    *:Interix*:[3456]*)
5389 +       case ${UNAME_MACHINE} in
5390 +           x86)
5391 +               echo i586-pc-interix${UNAME_RELEASE}
5392 +               exit ;;
5393 +           EM64T | authenticamd)
5394 +               echo x86_64-unknown-interix${UNAME_RELEASE}
5395 +               exit ;;
5396 +           IA64)
5397 +               echo ia64-unknown-interix${UNAME_RELEASE}
5398 +               exit ;;
5399 +       esac ;;
5400      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
5401         echo i${UNAME_MACHINE}-pc-mks
5402 -       exit 0 ;;
5403 +       exit ;;
5404      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
5405         # How do we know it's Interix rather than the generic POSIX subsystem?
5406         # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
5407         # UNAME_MACHINE based on the output of uname instead of i386?
5408         echo i586-pc-interix
5409 -       exit 0 ;;
5410 +       exit ;;
5411      i*:UWIN*:*)
5412         echo ${UNAME_MACHINE}-pc-uwin
5413 -       exit 0 ;;
5414 +       exit ;;
5415 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
5416 +       echo x86_64-unknown-cygwin
5417 +       exit ;;
5418      p*:CYGWIN*:*)
5419         echo powerpcle-unknown-cygwin
5420 -       exit 0 ;;
5421 +       exit ;;
5422      prep*:SunOS:5.*:*)
5423         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5424 -       exit 0 ;;
5425 +       exit ;;
5426      *:GNU:*:*)
5427 +       # the GNU system
5428         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
5429 -       exit 0 ;;
5430 +       exit ;;
5431 +    *:GNU/*:*:*)
5432 +       # other systems with GNU libc and userland
5433 +       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
5434 +       exit ;;
5435      i*86:Minix:*:*)
5436         echo ${UNAME_MACHINE}-pc-minix
5437 -       exit 0 ;;
5438 +       exit ;;
5439      arm*:Linux:*:*)
5440 +       eval $set_cc_for_build
5441 +       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
5442 +           | grep -q __ARM_EABI__
5443 +       then
5444 +           echo ${UNAME_MACHINE}-unknown-linux-gnu
5445 +       else
5446 +           echo ${UNAME_MACHINE}-unknown-linux-gnueabi
5447 +       fi
5448 +       exit ;;
5449 +    avr32*:Linux:*:*)
5450         echo ${UNAME_MACHINE}-unknown-linux-gnu
5451 -       exit 0 ;;
5452 +       exit ;;
5453      cris:Linux:*:*)
5454         echo cris-axis-linux-gnu
5455 -       exit 0 ;;
5456 +       exit ;;
5457 +    crisv32:Linux:*:*)
5458 +       echo crisv32-axis-linux-gnu
5459 +       exit ;;
5460 +    frv:Linux:*:*)
5461 +       echo frv-unknown-linux-gnu
5462 +       exit ;;
5463      ia64:Linux:*:*)
5464 -       echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
5465 -       exit 0 ;;
5466 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5467 +       exit ;;
5468 +    m32r*:Linux:*:*)
5469 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5470 +       exit ;;
5471      m68*:Linux:*:*)
5472         echo ${UNAME_MACHINE}-unknown-linux-gnu
5473 -       exit 0 ;;
5474 +       exit ;;
5475      mips:Linux:*:*)
5476         eval $set_cc_for_build
5477         sed 's/^        //' << EOF >$dummy.c
5478 @@ -836,8 +882,12 @@ EOF
5479         #endif
5480         #endif
5481  EOF
5482 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5483 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5484 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5485 +           /^CPU/{
5486 +               s: ::g
5487 +               p
5488 +           }'`"
5489 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
5490         ;;
5491      mips64:Linux:*:*)
5492         eval $set_cc_for_build
5493 @@ -855,15 +905,22 @@ EOF
5494         #endif
5495         #endif
5496  EOF
5497 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5498 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5499 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5500 +           /^CPU/{
5501 +               s: ::g
5502 +               p
5503 +           }'`"
5504 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
5505         ;;
5506 +    or32:Linux:*:*)
5507 +       echo or32-unknown-linux-gnu
5508 +       exit ;;
5509      ppc:Linux:*:*)
5510 -       echo powerpc-${VENDOR:-unknown}-linux-gnu
5511 -       exit 0 ;;
5512 +       echo powerpc-unknown-linux-gnu
5513 +       exit ;;
5514      ppc64:Linux:*:*)
5515 -       echo powerpc64-${VENDOR:-unknown}-linux-gnu
5516 -       exit 0 ;;
5517 +       echo powerpc64-unknown-linux-gnu
5518 +       exit ;;
5519      alpha:Linux:*:*)
5520         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
5521           EV5)   UNAME_MACHINE=alphaev5 ;;
5522 @@ -877,7 +934,7 @@ EOF
5523         objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
5524         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
5525         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
5526 -       exit 0 ;;
5527 +       exit ;;
5528      parisc:Linux:*:* | hppa:Linux:*:*)
5529         # Look for CPU level
5530         case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
5531 @@ -885,25 +942,31 @@ EOF
5532           PA8*) echo hppa2.0-unknown-linux-gnu ;;
5533           *)    echo hppa-unknown-linux-gnu ;;
5534         esac
5535 -       exit 0 ;;
5536 +       exit ;;
5537      parisc64:Linux:*:* | hppa64:Linux:*:*)
5538         echo hppa64-unknown-linux-gnu
5539 -       exit 0 ;;
5540 +       exit ;;
5541      s390:Linux:*:* | s390x:Linux:*:*)
5542 -       echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
5543 -       exit 0 ;;
5544 +       echo ${UNAME_MACHINE}-ibm-linux
5545 +       exit ;;
5546      sh64*:Linux:*:*)
5547         echo ${UNAME_MACHINE}-unknown-linux-gnu
5548 -       exit 0 ;;
5549 +       exit ;;
5550      sh*:Linux:*:*)
5551         echo ${UNAME_MACHINE}-unknown-linux-gnu
5552 -       exit 0 ;;
5553 +       exit ;;
5554      sparc:Linux:*:* | sparc64:Linux:*:*)
5555         echo ${UNAME_MACHINE}-unknown-linux-gnu
5556 -       exit 0 ;;
5557 +       exit ;;
5558 +    vax:Linux:*:*)
5559 +       echo ${UNAME_MACHINE}-dec-linux-gnu
5560 +       exit ;;
5561      x86_64:Linux:*:*)
5562 -       echo x86_64-${VENDOR:-unknown}-linux-gnu
5563 -       exit 0 ;;
5564 +       echo x86_64-unknown-linux-gnu
5565 +       exit ;;
5566 +    xtensa*:Linux:*:*)
5567 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5568 +       exit ;;
5569      i*86:Linux:*:*)
5570         # The BFD linker knows what the default object file format is, so
5571         # first see if it will tell us. cd to the root directory to prevent
5572 @@ -921,15 +984,15 @@ EOF
5573                 ;;
5574           a.out-i386-linux)
5575                 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
5576 -               exit 0 ;;
5577 +               exit ;;
5578           coff-i386)
5579                 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
5580 -               exit 0 ;;
5581 +               exit ;;
5582           "")
5583                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
5584                 # one that does not give us useful --help.
5585                 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
5586 -               exit 0 ;;
5587 +               exit ;;
5588         esac
5589         # Determine whether the default compiler is a.out or elf
5590         eval $set_cc_for_build
5591 @@ -946,23 +1009,33 @@ EOF
5592         LIBC=gnulibc1
5593         # endif
5594         #else
5595 -       #ifdef __INTEL_COMPILER
5596 +       #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
5597         LIBC=gnu
5598         #else
5599         LIBC=gnuaout
5600         #endif
5601         #endif
5602 +       #ifdef __dietlibc__
5603 +       LIBC=dietlibc
5604 +       #endif
5605  EOF
5606 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5607 -       test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
5608 -       test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
5609 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5610 +           /^LIBC/{
5611 +               s: ::g
5612 +               p
5613 +           }'`"
5614 +       test x"${LIBC}" != x && {
5615 +               echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
5616 +               exit
5617 +       }
5618 +       test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
5619         ;;
5620      i*86:DYNIX/ptx:4*:*)
5621         # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
5622         # earlier versions are messed up and put the nodename in both
5623         # sysname and nodename.
5624         echo i386-sequent-sysv4
5625 -       exit 0 ;;
5626 +       exit ;;
5627      i*86:UNIX_SV:4.2MP:2.*)
5628          # Unixware is an offshoot of SVR4, but it has its own version
5629          # number series starting with 2...
5630 @@ -970,24 +1043,27 @@ EOF
5631         # I just have to hope.  -- rms.
5632          # Use sysv4.2uw... so that sysv4* matches it.
5633         echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
5634 -       exit 0 ;;
5635 +       exit ;;
5636      i*86:OS/2:*:*)
5637         # If we were able to find `uname', then EMX Unix compatibility
5638         # is probably installed.
5639         echo ${UNAME_MACHINE}-pc-os2-emx
5640 -       exit 0 ;;
5641 +       exit ;;
5642      i*86:XTS-300:*:STOP)
5643         echo ${UNAME_MACHINE}-unknown-stop
5644 -       exit 0 ;;
5645 +       exit ;;
5646      i*86:atheos:*:*)
5647         echo ${UNAME_MACHINE}-unknown-atheos
5648 -       exit 0 ;;
5649 +       exit ;;
5650 +    i*86:syllable:*:*)
5651 +       echo ${UNAME_MACHINE}-pc-syllable
5652 +       exit ;;
5653      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
5654         echo i386-unknown-lynxos${UNAME_RELEASE}
5655 -       exit 0 ;;
5656 +       exit ;;
5657      i*86:*DOS:*:*)
5658         echo ${UNAME_MACHINE}-pc-msdosdjgpp
5659 -       exit 0 ;;
5660 +       exit ;;
5661      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
5662         UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
5663         if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
5664 @@ -995,15 +1071,16 @@ EOF
5665         else
5666                 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
5667         fi
5668 -       exit 0 ;;
5669 -    i*86:*:5:[78]*)
5670 +       exit ;;
5671 +    i*86:*:5:[678]*)
5672 +       # UnixWare 7.x, OpenUNIX and OpenServer 6.
5673         case `/bin/uname -X | grep "^Machine"` in
5674             *486*)           UNAME_MACHINE=i486 ;;
5675             *Pentium)        UNAME_MACHINE=i586 ;;
5676             *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
5677         esac
5678         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
5679 -       exit 0 ;;
5680 +       exit ;;
5681      i*86:*:3.2:*)
5682         if test -f /usr/options/cb.name; then
5683                 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
5684 @@ -1021,73 +1098,73 @@ EOF
5685         else
5686                 echo ${UNAME_MACHINE}-pc-sysv32
5687         fi
5688 -       exit 0 ;;
5689 +       exit ;;
5690      pc:*:*:*)
5691         # Left here for compatibility:
5692          # uname -m prints for DJGPP always 'pc', but it prints nothing about
5693          # the processor, so we play safe by assuming i386.
5694         echo i386-pc-msdosdjgpp
5695 -        exit 0 ;;
5696 +        exit ;;
5697      Intel:Mach:3*:*)
5698         echo i386-pc-mach3
5699 -       exit 0 ;;
5700 +       exit ;;
5701      paragon:*:*:*)
5702         echo i860-intel-osf1
5703 -       exit 0 ;;
5704 +       exit ;;
5705      i860:*:4.*:*) # i860-SVR4
5706         if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
5707           echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
5708         else # Add other i860-SVR4 vendors below as they are discovered.
5709           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
5710         fi
5711 -       exit 0 ;;
5712 +       exit ;;
5713      mini*:CTIX:SYS*5:*)
5714         # "miniframe"
5715         echo m68010-convergent-sysv
5716 -       exit 0 ;;
5717 +       exit ;;
5718      mc68k:UNIX:SYSTEM5:3.51m)
5719         echo m68k-convergent-sysv
5720 -       exit 0 ;;
5721 +       exit ;;
5722      M680?0:D-NIX:5.3:*)
5723         echo m68k-diab-dnix
5724 -       exit 0 ;;
5725 -    M68*:*:R3V[567]*:*)
5726 -       test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
5727 -    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)
5728 +       exit ;;
5729 +    M68*:*:R3V[5678]*:*)
5730 +       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
5731 +    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)
5732         OS_REL=''
5733         test -r /etc/.relid \
5734         && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
5735         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5736 -         && echo i486-ncr-sysv4.3${OS_REL} && exit 0
5737 +         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
5738         /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
5739 -         && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
5740 +         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
5741      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
5742          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5743 -          && echo i486-ncr-sysv4 && exit 0 ;;
5744 +          && { echo i486-ncr-sysv4; exit; } ;;
5745      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
5746         echo m68k-unknown-lynxos${UNAME_RELEASE}
5747 -       exit 0 ;;
5748 +       exit ;;
5749      mc68030:UNIX_System_V:4.*:*)
5750         echo m68k-atari-sysv4
5751 -       exit 0 ;;
5752 +       exit ;;
5753      TSUNAMI:LynxOS:2.*:*)
5754         echo sparc-unknown-lynxos${UNAME_RELEASE}
5755 -       exit 0 ;;
5756 +       exit ;;
5757      rs6000:LynxOS:2.*:*)
5758         echo rs6000-unknown-lynxos${UNAME_RELEASE}
5759 -       exit 0 ;;
5760 +       exit ;;
5761      PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
5762         echo powerpc-unknown-lynxos${UNAME_RELEASE}
5763 -       exit 0 ;;
5764 +       exit ;;
5765      SM[BE]S:UNIX_SV:*:*)
5766         echo mips-dde-sysv${UNAME_RELEASE}
5767 -       exit 0 ;;
5768 +       exit ;;
5769      RM*:ReliantUNIX-*:*:*)
5770         echo mips-sni-sysv4
5771 -       exit 0 ;;
5772 +       exit ;;
5773      RM*:SINIX-*:*:*)
5774         echo mips-sni-sysv4
5775 -       exit 0 ;;
5776 +       exit ;;
5777      *:SINIX-*:*:*)
5778         if uname -p 2>/dev/null >/dev/null ; then
5779                 UNAME_MACHINE=`(uname -p) 2>/dev/null`
5780 @@ -1095,68 +1172,81 @@ EOF
5781         else
5782                 echo ns32k-sni-sysv
5783         fi
5784 -       exit 0 ;;
5785 +       exit ;;
5786      PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
5787                        # says <Richard.M.Bartel@ccMail.Census.GOV>
5788          echo i586-unisys-sysv4
5789 -        exit 0 ;;
5790 +        exit ;;
5791      *:UNIX_System_V:4*:FTX*)
5792         # From Gerald Hewes <hewes@openmarket.com>.
5793         # How about differentiating between stratus architectures? -djm
5794         echo hppa1.1-stratus-sysv4
5795 -       exit 0 ;;
5796 +       exit ;;
5797      *:*:*:FTX*)
5798         # From seanf@swdc.stratus.com.
5799         echo i860-stratus-sysv4
5800 -       exit 0 ;;
5801 +       exit ;;
5802 +    i*86:VOS:*:*)
5803 +       # From Paul.Green@stratus.com.
5804 +       echo ${UNAME_MACHINE}-stratus-vos
5805 +       exit ;;
5806      *:VOS:*:*)
5807         # From Paul.Green@stratus.com.
5808         echo hppa1.1-stratus-vos
5809 -       exit 0 ;;
5810 +       exit ;;
5811      mc68*:A/UX:*:*)
5812         echo m68k-apple-aux${UNAME_RELEASE}
5813 -       exit 0 ;;
5814 +       exit ;;
5815      news*:NEWS-OS:6*:*)
5816         echo mips-sony-newsos6
5817 -       exit 0 ;;
5818 +       exit ;;
5819      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
5820         if [ -d /usr/nec ]; then
5821                 echo mips-nec-sysv${UNAME_RELEASE}
5822         else
5823                 echo mips-unknown-sysv${UNAME_RELEASE}
5824         fi
5825 -        exit 0 ;;
5826 +        exit ;;
5827      BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
5828         echo powerpc-be-beos
5829 -       exit 0 ;;
5830 +       exit ;;
5831      BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
5832         echo powerpc-apple-beos
5833 -       exit 0 ;;
5834 +       exit ;;
5835      BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
5836         echo i586-pc-beos
5837 -       exit 0 ;;
5838 +       exit ;;
5839      SX-4:SUPER-UX:*:*)
5840         echo sx4-nec-superux${UNAME_RELEASE}
5841 -       exit 0 ;;
5842 +       exit ;;
5843      SX-5:SUPER-UX:*:*)
5844         echo sx5-nec-superux${UNAME_RELEASE}
5845 -       exit 0 ;;
5846 +       exit ;;
5847      SX-6:SUPER-UX:*:*)
5848         echo sx6-nec-superux${UNAME_RELEASE}
5849 -       exit 0 ;;
5850 +       exit ;;
5851 +    SX-7:SUPER-UX:*:*)
5852 +       echo sx7-nec-superux${UNAME_RELEASE}
5853 +       exit ;;
5854 +    SX-8:SUPER-UX:*:*)
5855 +       echo sx8-nec-superux${UNAME_RELEASE}
5856 +       exit ;;
5857 +    SX-8R:SUPER-UX:*:*)
5858 +       echo sx8r-nec-superux${UNAME_RELEASE}
5859 +       exit ;;
5860      Power*:Rhapsody:*:*)
5861         echo powerpc-apple-rhapsody${UNAME_RELEASE}
5862 -       exit 0 ;;
5863 +       exit ;;
5864      *:Rhapsody:*:*)
5865         echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
5866 -       exit 0 ;;
5867 +       exit ;;
5868      *:Darwin:*:*)
5869 -       case `uname -p` in
5870 -           *86) UNAME_PROCESSOR=i686 ;;
5871 -           powerpc) UNAME_PROCESSOR=powerpc ;;
5872 +       UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
5873 +       case $UNAME_PROCESSOR in
5874 +           unknown) UNAME_PROCESSOR=powerpc ;;
5875         esac
5876         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
5877 -       exit 0 ;;
5878 +       exit ;;
5879      *:procnto*:*:* | *:QNX:[0123456789]*:*)
5880         UNAME_PROCESSOR=`uname -p`
5881         if test "$UNAME_PROCESSOR" = "x86"; then
5882 @@ -1164,22 +1254,25 @@ EOF
5883                 UNAME_MACHINE=pc
5884         fi
5885         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
5886 -       exit 0 ;;
5887 +       exit ;;
5888      *:QNX:*:4*)
5889         echo i386-pc-qnx
5890 -       exit 0 ;;
5891 -    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
5892 +       exit ;;
5893 +    NSE-?:NONSTOP_KERNEL:*:*)
5894 +       echo nse-tandem-nsk${UNAME_RELEASE}
5895 +       exit ;;
5896 +    NSR-?:NONSTOP_KERNEL:*:*)
5897         echo nsr-tandem-nsk${UNAME_RELEASE}
5898 -       exit 0 ;;
5899 +       exit ;;
5900      *:NonStop-UX:*:*)
5901         echo mips-compaq-nonstopux
5902 -       exit 0 ;;
5903 +       exit ;;
5904      BS2000:POSIX*:*:*)
5905         echo bs2000-siemens-sysv
5906 -       exit 0 ;;
5907 +       exit ;;
5908      DS/*:UNIX_System_V:*:*)
5909         echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
5910 -       exit 0 ;;
5911 +       exit ;;
5912      *:Plan9:*:*)
5913         # "uname -m" is not consistent, so use $cputype instead. 386
5914         # is converted to i386 for consistency with other x86
5915 @@ -1190,28 +1283,47 @@ EOF
5916             UNAME_MACHINE="$cputype"
5917         fi
5918         echo ${UNAME_MACHINE}-unknown-plan9
5919 -       exit 0 ;;
5920 +       exit ;;
5921      *:TOPS-10:*:*)
5922         echo pdp10-unknown-tops10
5923 -       exit 0 ;;
5924 +       exit ;;
5925      *:TENEX:*:*)
5926         echo pdp10-unknown-tenex
5927 -       exit 0 ;;
5928 +       exit ;;
5929      KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
5930         echo pdp10-dec-tops20
5931 -       exit 0 ;;
5932 +       exit ;;
5933      XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
5934         echo pdp10-xkl-tops20
5935 -       exit 0 ;;
5936 +       exit ;;
5937      *:TOPS-20:*:*)
5938         echo pdp10-unknown-tops20
5939 -       exit 0 ;;
5940 +       exit ;;
5941      *:ITS:*:*)
5942         echo pdp10-unknown-its
5943 -       exit 0 ;;
5944 +       exit ;;
5945      SEI:*:*:SEIUX)
5946          echo mips-sei-seiux${UNAME_RELEASE}
5947 -       exit 0 ;;
5948 +       exit ;;
5949 +    *:DragonFly:*:*)
5950 +       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
5951 +       exit ;;
5952 +    *:*VMS:*:*)
5953 +       UNAME_MACHINE=`(uname -p) 2>/dev/null`
5954 +       case "${UNAME_MACHINE}" in
5955 +           A*) echo alpha-dec-vms ; exit ;;
5956 +           I*) echo ia64-dec-vms ; exit ;;
5957 +           V*) echo vax-dec-vms ; exit ;;
5958 +       esac ;;
5959 +    *:XENIX:*:SysV)
5960 +       echo i386-pc-xenix
5961 +       exit ;;
5962 +    i*86:skyos:*:*)
5963 +       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
5964 +       exit ;;
5965 +    i*86:rdos:*:*)
5966 +       echo ${UNAME_MACHINE}-pc-rdos
5967 +       exit ;;
5968  esac
5969  
5970  #echo '(No uname command or uname output not recognized.)' 1>&2
5971 @@ -1243,7 +1355,7 @@ main ()
5972  #endif
5973  
5974  #if defined (__arm) && defined (__acorn) && defined (__unix)
5975 -  printf ("arm-acorn-riscix"); exit (0);
5976 +  printf ("arm-acorn-riscix\n"); exit (0);
5977  #endif
5978  
5979  #if defined (hp300) && !defined (hpux)
5980 @@ -1332,11 +1444,12 @@ main ()
5981  }
5982  EOF
5983  
5984 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
5985 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
5986 +       { echo "$SYSTEM_NAME"; exit; }
5987  
5988  # Apollos put the system type in the environment.
5989  
5990 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
5991 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
5992  
5993  # Convex versions that predate uname can use getsysinfo(1)
5994  
5995 @@ -1345,22 +1458,22 @@ then
5996      case `getsysinfo -f cpu_type` in
5997      c1*)
5998         echo c1-convex-bsd
5999 -       exit 0 ;;
6000 +       exit ;;
6001      c2*)
6002         if getsysinfo -f scalar_acc
6003         then echo c32-convex-bsd
6004         else echo c2-convex-bsd
6005         fi
6006 -       exit 0 ;;
6007 +       exit ;;
6008      c34*)
6009         echo c34-convex-bsd
6010 -       exit 0 ;;
6011 +       exit ;;
6012      c38*)
6013         echo c38-convex-bsd
6014 -       exit 0 ;;
6015 +       exit ;;
6016      c4*)
6017         echo c4-convex-bsd
6018 -       exit 0 ;;
6019 +       exit ;;
6020      esac
6021  fi
6022  
6023 @@ -1371,7 +1484,9 @@ This script, last modified $timestamp, has failed to recognize
6024  the operating system you are using. It is advised that you
6025  download the most up to date version of the config scripts from
6026  
6027 -    ftp://ftp.gnu.org/pub/gnu/config/
6028 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
6029 +and
6030 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
6031  
6032  If the version you run ($0) is already up to date, please
6033  send the following data and any information you think might be
6034 diff --git a/aux/config.sub b/aux/config.sub
6035 index 7cee3d6..6759825 100755
6036 --- a/aux/config.sub
6037 +++ b/aux/config.sub
6038 @@ -1,9 +1,10 @@
6039  #! /bin/sh
6040  # Configuration validation subroutine script.
6041  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6042 -#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
6043 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
6044 +#   Free Software Foundation, Inc.
6045  
6046 -timestamp='2003-06-18'
6047 +timestamp='2008-01-16'
6048  
6049  # This file is (in principle) common to ALL GNU software.
6050  # The presence of a machine in this file suggests that SOME GNU software
6051 @@ -21,14 +22,15 @@ timestamp='2003-06-18'
6052  #
6053  # You should have received a copy of the GNU General Public License
6054  # along with this program; if not, write to the Free Software
6055 -# Foundation, Inc., 59 Temple Place - Suite 330,
6056 -# Boston, MA 02111-1307, USA.
6057 -
6058 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
6059 +# 02110-1301, USA.
6060 +#
6061  # As a special exception to the GNU General Public License, if you
6062  # distribute this file as part of a program that contains a
6063  # configuration script generated by Autoconf, you may include it under
6064  # the same distribution terms that you use for the rest of that program.
6065  
6066 +
6067  # Please send patches to <config-patches@gnu.org>.  Submit a context
6068  # diff and a properly formatted ChangeLog entry.
6069  #
6070 @@ -70,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>."
6071  version="\
6072  GNU config.sub ($timestamp)
6073  
6074 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
6075 -Free Software Foundation, Inc.
6076 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
6077 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6078  
6079  This is free software; see the source for copying conditions.  There is NO
6080  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
6081 @@ -83,11 +85,11 @@ Try \`$me --help' for more information."
6082  while test $# -gt 0 ; do
6083    case $1 in
6084      --time-stamp | --time* | -t )
6085 -       echo "$timestamp" ; exit 0 ;;
6086 +       echo "$timestamp" ; exit ;;
6087      --version | -v )
6088 -       echo "$version" ; exit 0 ;;
6089 +       echo "$version" ; exit ;;
6090      --help | --h* | -h )
6091 -       echo "$usage"; exit 0 ;;
6092 +       echo "$usage"; exit ;;
6093      -- )     # Stop option processing
6094         shift; break ;;
6095      - )        # Use stdin as input.
6096 @@ -99,7 +101,7 @@ while test $# -gt 0 ; do
6097      *local*)
6098         # First pass through any local machine types.
6099         echo $1
6100 -       exit 0;;
6101 +       exit ;;
6102  
6103      * )
6104         break ;;
6105 @@ -118,7 +120,9 @@ esac
6106  # Here we must recognize all the valid KERNEL-OS combinations.
6107  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
6108  case $maybe_os in
6109 -  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
6110 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
6111 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
6112 +  storm-chaos* | os2-emx* | rtmk-nova*)
6113      os=-$maybe_os
6114      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
6115      ;;
6116 @@ -144,7 +148,7 @@ case $os in
6117         -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
6118         -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
6119         -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
6120 -       -apple | -axis)
6121 +       -apple | -axis | -knuth | -cray)
6122                 os=
6123                 basic_machine=$1
6124                 ;;
6125 @@ -169,6 +173,10 @@ case $os in
6126         -hiux*)
6127                 os=-hiuxwe2
6128                 ;;
6129 +       -sco6)
6130 +               os=-sco5v6
6131 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6132 +               ;;
6133         -sco5)
6134                 os=-sco3.2v5
6135                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6136 @@ -185,6 +193,10 @@ case $os in
6137                 # Don't forget version if it is 3.2v4 or newer.
6138                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6139                 ;;
6140 +       -sco5v6*)
6141 +               # Don't forget version if it is 3.2v4 or newer.
6142 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6143 +               ;;
6144         -sco*)
6145                 os=-sco3.2v2
6146                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6147 @@ -228,14 +240,17 @@ case $basic_machine in
6148         | a29k \
6149         | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
6150         | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
6151 -       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
6152 +       | am33_2.0 \
6153 +       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
6154 +       | bfin \
6155         | c4x | clipper \
6156         | d10v | d30v | dlx | dsp16xx \
6157 -       | fr30 | frv \
6158 +       | fido | fr30 | frv \
6159         | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
6160         | i370 | i860 | i960 | ia64 \
6161 -       | ip2k \
6162 -       | m32r | m68000 | m68k | m88k | mcore \
6163 +       | ip2k | iq2000 \
6164 +       | m32c | m32r | m32rle | m68000 | m68k | m88k \
6165 +       | maxq | mb | microblaze | mcore | mep \
6166         | mips | mipsbe | mipseb | mipsel | mipsle \
6167         | mips16 \
6168         | mips64 | mips64el \
6169 @@ -244,28 +259,33 @@ case $basic_machine in
6170         | mips64vr4100 | mips64vr4100el \
6171         | mips64vr4300 | mips64vr4300el \
6172         | mips64vr5000 | mips64vr5000el \
6173 +       | mips64vr5900 | mips64vr5900el \
6174         | mipsisa32 | mipsisa32el \
6175         | mipsisa32r2 | mipsisa32r2el \
6176         | mipsisa64 | mipsisa64el \
6177 +       | mipsisa64r2 | mipsisa64r2el \
6178         | mipsisa64sb1 | mipsisa64sb1el \
6179         | mipsisa64sr71k | mipsisa64sr71kel \
6180         | mipstx39 | mipstx39el \
6181         | mn10200 | mn10300 \
6182 +       | mt \
6183         | msp430 \
6184 +       | nios | nios2 \
6185         | ns16k | ns32k \
6186 -       | openrisc | or32 \
6187 +       | or32 \
6188         | pdp10 | pdp11 | pj | pjl \
6189         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
6190         | pyramid \
6191 -       | s390 | s390x \
6192 -       | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
6193 +       | score \
6194 +       | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
6195         | sh64 | sh64le \
6196 -       | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
6197 -       | strongarm \
6198 +       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
6199 +       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
6200 +       | spu | strongarm \
6201         | tahoe | thumb | tic4x | tic80 | tron \
6202         | v850 | v850e \
6203         | we32k \
6204 -       | x86 | xscale | xstormy16 | xtensa \
6205 +       | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
6206         | z8k)
6207                 basic_machine=$basic_machine-unknown
6208                 ;;
6209 @@ -276,6 +296,9 @@ case $basic_machine in
6210                 ;;
6211         m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
6212                 ;;
6213 +       ms1)
6214 +               basic_machine=mt-unknown
6215 +               ;;
6216  
6217         # We use `pc' rather than `unknown'
6218         # because (1) that's what they normally are, and
6219 @@ -295,20 +318,20 @@ case $basic_machine in
6220         | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
6221         | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
6222         | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
6223 -       | avr-* \
6224 -       | bs2000-* \
6225 +       | avr-* | avr32-* \
6226 +       | bfin-* | bs2000-* \
6227         | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
6228 -       | clipper-* | cydra-* \
6229 +       | clipper-* | craynv-* | cydra-* \
6230         | d10v-* | d30v-* | dlx-* \
6231         | elxsi-* \
6232 -       | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
6233 +       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
6234         | h8300-* | h8500-* \
6235         | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
6236         | i*86-* | i860-* | i960-* | ia64-* \
6237 -       | ip2k-* \
6238 -       | m32r-* \
6239 +       | ip2k-* | iq2000-* \
6240 +       | m32c-* | m32r-* | m32rle-* \
6241         | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
6242 -       | m88110-* | m88k-* | mcore-* \
6243 +       | m88110-* | m88k-* | maxq-* | mcore-* \
6244         | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
6245         | mips16-* \
6246         | mips64-* | mips64el-* \
6247 @@ -317,34 +340,43 @@ case $basic_machine in
6248         | mips64vr4100-* | mips64vr4100el-* \
6249         | mips64vr4300-* | mips64vr4300el-* \
6250         | mips64vr5000-* | mips64vr5000el-* \
6251 +       | mips64vr5900-* | mips64vr5900el-* \
6252         | mipsisa32-* | mipsisa32el-* \
6253         | mipsisa32r2-* | mipsisa32r2el-* \
6254         | mipsisa64-* | mipsisa64el-* \
6255 +       | mipsisa64r2-* | mipsisa64r2el-* \
6256         | mipsisa64sb1-* | mipsisa64sb1el-* \
6257         | mipsisa64sr71k-* | mipsisa64sr71kel-* \
6258         | mipstx39-* | mipstx39el-* \
6259 +       | mmix-* \
6260 +       | mt-* \
6261         | msp430-* \
6262 -       | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
6263 +       | nios-* | nios2-* \
6264 +       | none-* | np1-* | ns16k-* | ns32k-* \
6265         | orion-* \
6266         | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
6267         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
6268         | pyramid-* \
6269         | romp-* | rs6000-* \
6270 -       | s390-* | s390x-* \
6271 -       | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
6272 +       | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
6273         | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
6274 -       | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
6275 -       | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
6276 +       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
6277 +       | sparclite-* \
6278 +       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
6279         | tahoe-* | thumb-* \
6280         | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
6281         | tron-* \
6282         | v850-* | v850e-* | vax-* \
6283         | we32k-* \
6284 -       | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
6285 -       | xtensa-* \
6286 +       | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
6287 +       | xstormy16-* | xtensa*-* \
6288         | ymp-* \
6289         | z8k-*)
6290                 ;;
6291 +       # Recognize the basic CPU types without company name, with glob match.
6292 +       xtensa*)
6293 +               basic_machine=$basic_machine-unknown
6294 +               ;;
6295         # Recognize the various machine names and aliases which stand
6296         # for a CPU type and a company and sometimes even an OS.
6297         386bsd)
6298 @@ -361,6 +393,9 @@ case $basic_machine in
6299                 basic_machine=a29k-amd
6300                 os=-udi
6301                 ;;
6302 +       abacus)
6303 +               basic_machine=abacus-unknown
6304 +               ;;
6305         adobe68k)
6306                 basic_machine=m68010-adobe
6307                 os=-scout
6308 @@ -378,6 +413,9 @@ case $basic_machine in
6309         amd64)
6310                 basic_machine=x86_64-pc
6311                 ;;
6312 +       amd64-*)
6313 +               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
6314 +               ;;
6315         amdahl)
6316                 basic_machine=580-amdahl
6317                 os=-sysv
6318 @@ -409,6 +447,14 @@ case $basic_machine in
6319                 basic_machine=ns32k-sequent
6320                 os=-dynix
6321                 ;;
6322 +       blackfin)
6323 +               basic_machine=bfin-unknown
6324 +               os=-linux
6325 +               ;;
6326 +       blackfin-*)
6327 +               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
6328 +               os=-linux
6329 +               ;;
6330         c90)
6331                 basic_machine=c90-cray
6332                 os=-unicos
6333 @@ -437,12 +483,27 @@ case $basic_machine in
6334                 basic_machine=j90-cray
6335                 os=-unicos
6336                 ;;
6337 +       craynv)
6338 +               basic_machine=craynv-cray
6339 +               os=-unicosmp
6340 +               ;;
6341 +       cr16)
6342 +               basic_machine=cr16-unknown
6343 +               os=-elf
6344 +               ;;
6345         crds | unos)
6346                 basic_machine=m68k-crds
6347                 ;;
6348 +       crisv32 | crisv32-* | etraxfs*)
6349 +               basic_machine=crisv32-axis
6350 +               ;;
6351         cris | cris-* | etrax*)
6352                 basic_machine=cris-axis
6353                 ;;
6354 +       crx)
6355 +               basic_machine=crx-unknown
6356 +               os=-elf
6357 +               ;;
6358         da30 | da30-*)
6359                 basic_machine=m68k-da30
6360                 ;;
6361 @@ -465,6 +526,10 @@ case $basic_machine in
6362                 basic_machine=m88k-motorola
6363                 os=-sysv3
6364                 ;;
6365 +       djgpp)
6366 +               basic_machine=i586-pc
6367 +               os=-msdosdjgpp
6368 +               ;;
6369         dpx20 | dpx20-*)
6370                 basic_machine=rs6000-bull
6371                 os=-bosx
6372 @@ -615,6 +680,14 @@ case $basic_machine in
6373                 basic_machine=m68k-isi
6374                 os=-sysv
6375                 ;;
6376 +       m68knommu)
6377 +               basic_machine=m68k-unknown
6378 +               os=-linux
6379 +               ;;
6380 +       m68knommu-*)
6381 +               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
6382 +               os=-linux
6383 +               ;;
6384         m88k-omron*)
6385                 basic_machine=m88k-omron
6386                 ;;
6387 @@ -630,6 +703,10 @@ case $basic_machine in
6388                 basic_machine=i386-pc
6389                 os=-mingw32
6390                 ;;
6391 +       mingw32ce)
6392 +               basic_machine=arm-unknown
6393 +               os=-mingw32ce
6394 +               ;;
6395         miniframe)
6396                 basic_machine=m68000-convergent
6397                 ;;
6398 @@ -643,10 +720,6 @@ case $basic_machine in
6399         mips3*)
6400                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
6401                 ;;
6402 -       mmix*)
6403 -               basic_machine=mmix-knuth
6404 -               os=-mmixware
6405 -               ;;
6406         monitor)
6407                 basic_machine=m68k-rom68k
6408                 os=-coff
6409 @@ -659,6 +732,9 @@ case $basic_machine in
6410                 basic_machine=i386-pc
6411                 os=-msdos
6412                 ;;
6413 +       ms1-*)
6414 +               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
6415 +               ;;
6416         mvs)
6417                 basic_machine=i370-ibm
6418                 os=-mvs
6419 @@ -727,10 +803,6 @@ case $basic_machine in
6420         np1)
6421                 basic_machine=np1-gould
6422                 ;;
6423 -       nv1)
6424 -               basic_machine=nv1-cray
6425 -               os=-unicosmp
6426 -               ;;
6427         nsr-tandem)
6428                 basic_machine=nsr-tandem
6429                 ;;
6430 @@ -738,9 +810,12 @@ case $basic_machine in
6431                 basic_machine=hppa1.1-oki
6432                 os=-proelf
6433                 ;;
6434 -       or32 | or32-*)
6435 +       openrisc | openrisc-*)
6436                 basic_machine=or32-unknown
6437 -               os=-coff
6438 +               ;;
6439 +       os400)
6440 +               basic_machine=powerpc-ibm
6441 +               os=-os400
6442                 ;;
6443         OSE68000 | ose68000)
6444                 basic_machine=m68000-ericsson
6445 @@ -758,6 +833,14 @@ case $basic_machine in
6446                 basic_machine=i860-intel
6447                 os=-osf
6448                 ;;
6449 +       parisc)
6450 +               basic_machine=hppa-unknown
6451 +               os=-linux
6452 +               ;;
6453 +       parisc-*)
6454 +               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
6455 +               os=-linux
6456 +               ;;
6457         pbd)
6458                 basic_machine=sparc-tti
6459                 ;;
6460 @@ -767,6 +850,12 @@ case $basic_machine in
6461         pc532 | pc532-*)
6462                 basic_machine=ns32k-pc532
6463                 ;;
6464 +       pc98)
6465 +               basic_machine=i386-pc
6466 +               ;;
6467 +       pc98-*)
6468 +               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
6469 +               ;;
6470         pentium | p5 | k5 | k6 | nexgen | viac3)
6471                 basic_machine=i586-pc
6472                 ;;
6473 @@ -823,6 +912,10 @@ case $basic_machine in
6474                 basic_machine=i586-unknown
6475                 os=-pw32
6476                 ;;
6477 +       rdos)
6478 +               basic_machine=i386-pc
6479 +               os=-rdos
6480 +               ;;
6481         rom68k)
6482                 basic_machine=m68k-rom68k
6483                 os=-coff
6484 @@ -833,6 +926,12 @@ case $basic_machine in
6485         rtpc | rtpc-*)
6486                 basic_machine=romp-ibm
6487                 ;;
6488 +       s390 | s390-*)
6489 +               basic_machine=s390-ibm
6490 +               ;;
6491 +       s390x | s390x-*)
6492 +               basic_machine=s390x-ibm
6493 +               ;;
6494         sa29200)
6495                 basic_machine=a29k-amd
6496                 os=-udi
6497 @@ -843,6 +942,10 @@ case $basic_machine in
6498         sb1el)
6499                 basic_machine=mipsisa64sb1el-unknown
6500                 ;;
6501 +       sde)
6502 +               basic_machine=mipsisa32-sde
6503 +               os=-elf
6504 +               ;;
6505         sei)
6506                 basic_machine=mips-sei
6507                 os=-seiux
6508 @@ -854,6 +957,9 @@ case $basic_machine in
6509                 basic_machine=sh-hitachi
6510                 os=-hms
6511                 ;;
6512 +       sh5el)
6513 +               basic_machine=sh5le-unknown
6514 +               ;;
6515         sh64)
6516                 basic_machine=sh64-unknown
6517                 ;;
6518 @@ -943,6 +1049,10 @@ case $basic_machine in
6519                 basic_machine=tic6x-unknown
6520                 os=-coff
6521                 ;;
6522 +       tile*)
6523 +               basic_machine=tile-unknown
6524 +               os=-linux-gnu
6525 +               ;;
6526         tx39)
6527                 basic_machine=mipstx39-unknown
6528                 ;;
6529 @@ -956,6 +1066,10 @@ case $basic_machine in
6530         tower | tower-32)
6531                 basic_machine=m68k-ncr
6532                 ;;
6533 +       tpf)
6534 +               basic_machine=s390x-ibm
6535 +               os=-tpf
6536 +               ;;
6537         udi29k)
6538                 basic_machine=a29k-amd
6539                 os=-udi
6540 @@ -999,6 +1113,10 @@ case $basic_machine in
6541                 basic_machine=hppa1.1-winbond
6542                 os=-proelf
6543                 ;;
6544 +       xbox)
6545 +               basic_machine=i686-pc
6546 +               os=-mingw32
6547 +               ;;
6548         xps | xps100)
6549                 basic_machine=xps100-honeywell
6550                 ;;
6551 @@ -1029,6 +1147,9 @@ case $basic_machine in
6552         romp)
6553                 basic_machine=romp-ibm
6554                 ;;
6555 +       mmix)
6556 +               basic_machine=mmix-knuth
6557 +               ;;
6558         rs6000)
6559                 basic_machine=rs6000-ibm
6560                 ;;
6561 @@ -1045,13 +1166,10 @@ case $basic_machine in
6562         we32k)
6563                 basic_machine=we32k-att
6564                 ;;
6565 -       sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
6566 +       sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
6567                 basic_machine=sh-unknown
6568                 ;;
6569 -       sh64)
6570 -               basic_machine=sh64-unknown
6571 -               ;;
6572 -       sparc | sparcv9 | sparcv9b)
6573 +       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
6574                 basic_machine=sparc-sun
6575                 ;;
6576         cydra)
6577 @@ -1124,19 +1242,23 @@ case $os in
6578               | -aos* \
6579               | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
6580               | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
6581 -             | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
6582 -             | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6583 +             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
6584 +             | -openbsd* | -solidbsd* \
6585 +             | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
6586 +             | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6587               | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
6588               | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
6589               | -chorusos* | -chorusrdb* \
6590               | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
6591 -             | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
6592 +             | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
6593 +             | -uxpv* | -beos* | -mpeix* | -udk* \
6594               | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
6595               | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
6596               | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
6597               | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
6598               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
6599 -             | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
6600 +             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
6601 +             | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
6602         # Remember, each alternative MUST END IN *, to match a version number.
6603                 ;;
6604         -qnx*)
6605 @@ -1154,12 +1276,15 @@ case $os in
6606                 os=`echo $os | sed -e 's|nto|nto-qnx|'`
6607                 ;;
6608         -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
6609 -             | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
6610 +             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
6611               | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
6612                 ;;
6613         -mac*)
6614                 os=`echo $os | sed -e 's|mac|macos|'`
6615                 ;;
6616 +       -linux-dietlibc)
6617 +               os=-linux-dietlibc
6618 +               ;;
6619         -linux*)
6620                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
6621                 ;;
6622 @@ -1172,6 +1297,9 @@ case $os in
6623         -opened*)
6624                 os=-openedition
6625                 ;;
6626 +        -os400*)
6627 +               os=-os400
6628 +               ;;
6629         -wince*)
6630                 os=-wince
6631                 ;;
6632 @@ -1193,6 +1321,9 @@ case $os in
6633         -atheos*)
6634                 os=-atheos
6635                 ;;
6636 +       -syllable*)
6637 +               os=-syllable
6638 +               ;;
6639         -386bsd)
6640                 os=-bsd
6641                 ;;
6642 @@ -1215,6 +1346,9 @@ case $os in
6643         -sinix*)
6644                 os=-sysv4
6645                 ;;
6646 +        -tpf*)
6647 +               os=-tpf
6648 +               ;;
6649         -triton*)
6650                 os=-sysv3
6651                 ;;
6652 @@ -1251,6 +1385,9 @@ case $os in
6653         -kaos*)
6654                 os=-kaos
6655                 ;;
6656 +       -zvmoe)
6657 +               os=-zvmoe
6658 +               ;;
6659         -none)
6660                 ;;
6661         *)
6662 @@ -1273,6 +1410,12 @@ else
6663  # system, and we'll never get to this point.
6664  
6665  case $basic_machine in
6666 +        score-*)
6667 +               os=-elf
6668 +               ;;
6669 +        spu-*)
6670 +               os=-elf
6671 +               ;;
6672         *-acorn)
6673                 os=-riscix1.2
6674                 ;;
6675 @@ -1282,8 +1425,8 @@ case $basic_machine in
6676         arm*-semi)
6677                 os=-aout
6678                 ;;
6679 -       c4x-* | tic4x-*)
6680 -               os=-coff
6681 +        c4x-* | tic4x-*)
6682 +               os=-coff
6683                 ;;
6684         # This must come before the *-dec entry.
6685         pdp10-*)
6686 @@ -1310,6 +1453,9 @@ case $basic_machine in
6687         m68*-cisco)
6688                 os=-aout
6689                 ;;
6690 +        mep-*)
6691 +               os=-elf
6692 +               ;;
6693         mips*-cisco)
6694                 os=-elf
6695                 ;;
6696 @@ -1328,9 +1474,15 @@ case $basic_machine in
6697         *-be)
6698                 os=-beos
6699                 ;;
6700 +       *-haiku)
6701 +               os=-haiku
6702 +               ;;
6703         *-ibm)
6704                 os=-aix
6705                 ;;
6706 +       *-knuth)
6707 +               os=-mmixware
6708 +               ;;
6709         *-wec)
6710                 os=-proelf
6711                 ;;
6712 @@ -1463,9 +1615,15 @@ case $basic_machine in
6713                         -mvs* | -opened*)
6714                                 vendor=ibm
6715                                 ;;
6716 +                       -os400*)
6717 +                               vendor=ibm
6718 +                               ;;
6719                         -ptx*)
6720                                 vendor=sequent
6721                                 ;;
6722 +                       -tpf*)
6723 +                               vendor=ibm
6724 +                               ;;
6725                         -vxsim* | -vxworks* | -windiss*)
6726                                 vendor=wrs
6727                                 ;;
6728 @@ -1490,7 +1648,7 @@ case $basic_machine in
6729  esac
6730  
6731  echo $basic_machine$os
6732 -exit 0
6733 +exit
6734  
6735  # Local variables:
6736  # eval: (add-hook 'write-file-hooks 'time-stamp)
6737 diff --git a/aux/ltmain.sh b/aux/ltmain.sh
6738 index 23f82e3..0bf3848 100644
6739 --- a/aux/ltmain.sh
6740 +++ b/aux/ltmain.sh
6741 @@ -1,8 +1,8 @@
6742  # ltmain.sh - Provide generalized library-building support services.
6743  # NOTE: Changing this file will not affect anything until you rerun configure.
6744  #
6745 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
6746 -# Free Software Foundation, Inc.
6747 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6748 +# 2007, 2008  Free Software Foundation, Inc.
6749  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6750  #
6751  # This program is free software; you can redistribute it and/or modify
6752 @@ -17,7 +17,7 @@
6753  #
6754  # You should have received a copy of the GNU General Public License
6755  # along with this program; if not, write to the Free Software
6756 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6757 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6758  #
6759  # As a special exception to the GNU General Public License, if you
6760  # distribute this file as part of a program that contains a
6761 @@ -33,9 +33,6 @@ basename="s,^.*/,,g"
6762  # function.
6763  progpath="$0"
6764  
6765 -# RH: define SED for historic ltconfig's generated by Libtool 1.3
6766 -[ -z "$SED" ] && SED=sed
6767 -
6768  # The name of this program:
6769  progname=`echo "$progpath" | $SED $basename`
6770  modename="$progname"
6771 @@ -46,9 +43,22 @@ EXIT_FAILURE=1
6772  
6773  PROGRAM=ltmain.sh
6774  PACKAGE=libtool
6775 -VERSION=1.5.6
6776 -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
6777 -
6778 +VERSION="1.5.26 Debian 1.5.26-4"
6779 +TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
6780 +
6781 +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
6782 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6783 +  emulate sh
6784 +  NULLCMD=:
6785 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6786 +  # is contrary to our usage.  Disable this feature.
6787 +  alias -g '${1+"$@"}'='"$@"'
6788 +  setopt NO_GLOB_SUBST
6789 +else
6790 +  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6791 +fi
6792 +BIN_SH=xpg4; export BIN_SH # for Tru64
6793 +DUALCASE=1; export DUALCASE # for MKS sh
6794  
6795  # Check that we have a working $echo.
6796  if test "X$1" = X--no-reexec; then
6797 @@ -86,14 +96,15 @@ rm="rm -f"
6798  Xsed="${SED}"' -e 1s/^X//'
6799  sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
6800  # test EBCDIC or ASCII
6801 -case `echo A|tr A '\301'` in
6802 - A) # EBCDIC based system
6803 -  SP2NL="tr '\100' '\n'"
6804 -  NL2SP="tr '\r\n' '\100\100'"
6805 +case `echo X|tr X '\101'` in
6806 + A) # ASCII based system
6807 +    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6808 +  SP2NL='tr \040 \012'
6809 +  NL2SP='tr \015\012 \040\040'
6810    ;;
6811 - *) # Assume ASCII based system
6812 -  SP2NL="tr '\040' '\012'"
6813 -  NL2SP="tr '\015\012' '\040\040'"
6814 + *) # EBCDIC based system
6815 +  SP2NL='tr \100 \n'
6816 +  NL2SP='tr \r\n \100\100'
6817    ;;
6818  esac
6819  
6820 @@ -102,16 +113,25 @@ esac
6821  # These must not be set unconditionally because not all systems understand
6822  # e.g. LANG=C (notably SCO).
6823  # We save the old values to restore during execute mode.
6824 -if test "${LC_ALL+set}" = set; then
6825 -  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
6826 -fi
6827 -if test "${LANG+set}" = set; then
6828 -  save_LANG="$LANG"; LANG=C; export LANG
6829 +lt_env=
6830 +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6831 +do
6832 +  eval "if test \"\${$lt_var+set}\" = set; then
6833 +         save_$lt_var=\$$lt_var
6834 +         lt_env=\"$lt_var=\$$lt_var \$lt_env\"
6835 +         $lt_var=C
6836 +         export $lt_var
6837 +       fi"
6838 +done
6839 +
6840 +if test -n "$lt_env"; then
6841 +  lt_env="env $lt_env"
6842  fi
6843  
6844  # Make sure IFS has a sensible default
6845 -: ${IFS="      
6846 -"}
6847 +lt_nl='
6848 +'
6849 +IFS="  $lt_nl"
6850  
6851  if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
6852    $echo "$modename: not configured to build any kind of library" 1>&2
6853 @@ -128,20 +148,62 @@ run=
6854  show="$echo"
6855  show_help=
6856  execute_dlfiles=
6857 +duplicate_deps=no
6858 +preserve_args=
6859  lo2o="s/\\.lo\$/.${objext}/"
6860  o2lo="s/\\.${objext}\$/.lo/"
6861 +extracted_archives=
6862 +extracted_serial=0
6863  
6864  #####################################
6865  # Shell function definitions:
6866  # This seems to be the best place for them
6867  
6868 +# func_mktempdir [string]
6869 +# Make a temporary directory that won't clash with other running
6870 +# libtool processes, and avoids race conditions if possible.  If
6871 +# given, STRING is the basename for that directory.
6872 +func_mktempdir ()
6873 +{
6874 +    my_template="${TMPDIR-/tmp}/${1-$progname}"
6875 +
6876 +    if test "$run" = ":"; then
6877 +      # Return a directory name, but don't create it in dry-run mode
6878 +      my_tmpdir="${my_template}-$$"
6879 +    else
6880 +
6881 +      # If mktemp works, use that first and foremost
6882 +      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
6883 +
6884 +      if test ! -d "$my_tmpdir"; then
6885 +       # Failing that, at least try and use $RANDOM to avoid a race
6886 +       my_tmpdir="${my_template}-${RANDOM-0}$$"
6887 +
6888 +       save_mktempdir_umask=`umask`
6889 +       umask 0077
6890 +       $mkdir "$my_tmpdir"
6891 +       umask $save_mktempdir_umask
6892 +      fi
6893 +
6894 +      # If we're not in dry-run mode, bomb out on failure
6895 +      test -d "$my_tmpdir" || {
6896 +        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
6897 +       exit $EXIT_FAILURE
6898 +      }
6899 +    fi
6900 +
6901 +    $echo "X$my_tmpdir" | $Xsed
6902 +}
6903 +
6904 +
6905  # func_win32_libid arg
6906  # return the library type of file 'arg'
6907  #
6908  # Need a lot of goo to handle *both* DLLs and import libs
6909  # Has to be a shell function in order to 'eat' the argument
6910  # that is supplied when $file_magic_command is called.
6911 -func_win32_libid () {
6912 +func_win32_libid ()
6913 +{
6914    win32_libid_type="unknown"
6915    win32_fileres=`file -L $1 2>/dev/null`
6916    case $win32_fileres in
6917 @@ -152,12 +214,17 @@ func_win32_libid () {
6918      if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
6919        $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
6920        win32_nmres=`eval $NM -f posix -A $1 | \
6921 -       sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
6922 -      if test "X$win32_nmres" = "Ximport" ; then
6923 -        win32_libid_type="x86 archive import"
6924 -      else
6925 -        win32_libid_type="x86 archive static"
6926 -      fi
6927 +       $SED -n -e '1,100{
6928 +               / I /{
6929 +                       s,.*,import,
6930 +                       p
6931 +                       q
6932 +                       }
6933 +               }'`
6934 +      case $win32_nmres in
6935 +      import*)  win32_libid_type="x86 archive import";;
6936 +      *)        win32_libid_type="x86 archive static";;
6937 +      esac
6938      fi
6939      ;;
6940    *DLL*)
6941 @@ -181,7 +248,8 @@ func_win32_libid () {
6942  # Only attempt this if the compiler in the base compile
6943  # command doesn't match the default compiler.
6944  # arg is usually of the form 'gcc ...'
6945 -func_infer_tag () {
6946 +func_infer_tag ()
6947 +{
6948      if test -n "$available_tags" && test -z "$tagname"; then
6949        CC_quoted=
6950        for arg in $CC; do
6951 @@ -238,12 +306,126 @@ func_infer_tag () {
6952        esac
6953      fi
6954  }
6955 +
6956 +
6957 +# func_extract_an_archive dir oldlib
6958 +func_extract_an_archive ()
6959 +{
6960 +    f_ex_an_ar_dir="$1"; shift
6961 +    f_ex_an_ar_oldlib="$1"
6962 +
6963 +    $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
6964 +    $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
6965 +    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
6966 +     :
6967 +    else
6968 +      $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
6969 +      exit $EXIT_FAILURE
6970 +    fi
6971 +}
6972 +
6973 +# func_extract_archives gentop oldlib ...
6974 +func_extract_archives ()
6975 +{
6976 +    my_gentop="$1"; shift
6977 +    my_oldlibs=${1+"$@"}
6978 +    my_oldobjs=""
6979 +    my_xlib=""
6980 +    my_xabs=""
6981 +    my_xdir=""
6982 +    my_status=""
6983 +
6984 +    $show "${rm}r $my_gentop"
6985 +    $run ${rm}r "$my_gentop"
6986 +    $show "$mkdir $my_gentop"
6987 +    $run $mkdir "$my_gentop"
6988 +    my_status=$?
6989 +    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
6990 +      exit $my_status
6991 +    fi
6992 +
6993 +    for my_xlib in $my_oldlibs; do
6994 +      # Extract the objects.
6995 +      case $my_xlib in
6996 +       [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
6997 +       *) my_xabs=`pwd`"/$my_xlib" ;;
6998 +      esac
6999 +      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
7000 +      my_xlib_u=$my_xlib
7001 +      while :; do
7002 +        case " $extracted_archives " in
7003 +       *" $my_xlib_u "*)
7004 +         extracted_serial=`expr $extracted_serial + 1`
7005 +         my_xlib_u=lt$extracted_serial-$my_xlib ;;
7006 +       *) break ;;
7007 +       esac
7008 +      done
7009 +      extracted_archives="$extracted_archives $my_xlib_u"
7010 +      my_xdir="$my_gentop/$my_xlib_u"
7011 +
7012 +      $show "${rm}r $my_xdir"
7013 +      $run ${rm}r "$my_xdir"
7014 +      $show "$mkdir $my_xdir"
7015 +      $run $mkdir "$my_xdir"
7016 +      exit_status=$?
7017 +      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
7018 +       exit $exit_status
7019 +      fi
7020 +      case $host in
7021 +      *-darwin*)
7022 +       $show "Extracting $my_xabs"
7023 +       # Do not bother doing anything if just a dry run
7024 +       if test -z "$run"; then
7025 +         darwin_orig_dir=`pwd`
7026 +         cd $my_xdir || exit $?
7027 +         darwin_archive=$my_xabs
7028 +         darwin_curdir=`pwd`
7029 +         darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
7030 +         darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
7031 +         if test -n "$darwin_arches"; then 
7032 +           darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
7033 +           darwin_arch=
7034 +           $show "$darwin_base_archive has multiple architectures $darwin_arches"
7035 +           for darwin_arch in  $darwin_arches ; do
7036 +             mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
7037 +             lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
7038 +             cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
7039 +             func_extract_an_archive "`pwd`" "${darwin_base_archive}"
7040 +             cd "$darwin_curdir"
7041 +             $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
7042 +           done # $darwin_arches
7043 +      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
7044 +           darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
7045 +           darwin_file=
7046 +           darwin_files=
7047 +           for darwin_file in $darwin_filelist; do
7048 +             darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
7049 +             lipo -create -output "$darwin_file" $darwin_files
7050 +           done # $darwin_filelist
7051 +           ${rm}r unfat-$$
7052 +           cd "$darwin_orig_dir"
7053 +         else
7054 +           cd "$darwin_orig_dir"
7055 +           func_extract_an_archive "$my_xdir" "$my_xabs"
7056 +         fi # $darwin_arches
7057 +       fi # $run
7058 +       ;;
7059 +      *)
7060 +        func_extract_an_archive "$my_xdir" "$my_xabs"
7061 +        ;;
7062 +      esac
7063 +      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
7064 +    done
7065 +    func_extract_archives_result="$my_oldobjs"
7066 +}
7067  # End of Shell function definitions
7068  #####################################
7069  
7070  # Darwin sucks
7071  eval std_shrext=\"$shrext_cmds\"
7072  
7073 +disable_libs=no
7074 +
7075  # Parse our command line options once, thoroughly.
7076  while test "$#" -gt 0
7077  do
7078 @@ -306,12 +488,13 @@ do
7079      ;;
7080  
7081    --version)
7082 -    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
7083 -    $echo
7084 -    $echo "Copyright (C) 2003  Free Software Foundation, Inc."
7085 -    $echo "This is free software; see the source for copying conditions.  There is NO"
7086 -    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7087 -    exit $EXIT_SUCCESS
7088 +    echo "\
7089 +$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
7090 +
7091 +Copyright (C) 2008  Free Software Foundation, Inc.
7092 +This is free software; see the source for copying conditions.  There is NO
7093 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7094 +    exit $?
7095      ;;
7096  
7097    --config)
7098 @@ -320,7 +503,7 @@ do
7099      for tagname in $taglist; do
7100        ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
7101      done
7102 -    exit $EXIT_SUCCESS
7103 +    exit $?
7104      ;;
7105  
7106    --debug)
7107 @@ -345,7 +528,7 @@ do
7108      else
7109        $echo "disable static libraries"
7110      fi
7111 -    exit $EXIT_SUCCESS
7112 +    exit $?
7113      ;;
7114  
7115    --finish) mode="finish" ;;
7116 @@ -360,7 +543,11 @@ do
7117      preserve_args="$preserve_args $arg"
7118      ;;
7119  
7120 -  --tag) prevopt="--tag" prev=tag ;;
7121 +  --tag)
7122 +    prevopt="--tag"
7123 +    prev=tag
7124 +    preserve_args="$preserve_args --tag"
7125 +    ;;
7126    --tag=*)
7127      set tag "$optarg" ${1+"$@"}
7128      shift
7129 @@ -392,6 +579,18 @@ if test -n "$prevopt"; then
7130    exit $EXIT_FAILURE
7131  fi
7132  
7133 +case $disable_libs in
7134 +no) 
7135 +  ;;
7136 +shared)
7137 +  build_libtool_libs=no
7138 +  build_old_libs=yes
7139 +  ;;
7140 +static)
7141 +  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
7142 +  ;;
7143 +esac
7144 +
7145  # If this variable is set in any of the actions, the command in it
7146  # will be execed at the end.  This prevents here-documents from being
7147  # left over by shells.
7148 @@ -402,7 +601,7 @@ if test -z "$show_help"; then
7149    # Infer the operation mode.
7150    if test -z "$mode"; then
7151      $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
7152 -    $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
7153 +    $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
7154      case $nonopt in
7155      *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
7156        mode=link
7157 @@ -468,7 +667,7 @@ if test -z "$show_help"; then
7158  
7159      for arg
7160      do
7161 -      case "$arg_mode" in
7162 +      case $arg_mode in
7163        arg  )
7164         # do not "continue".  Instead, add this to base_compile
7165         lastarg="$arg"
7166 @@ -550,7 +749,10 @@ if test -z "$show_help"; then
7167        case $lastarg in
7168        # Double-quote args containing other shell metacharacters.
7169        # Many Bourne shells cannot handle close brackets correctly
7170 -      # in scan sets, so we specify it separately.
7171 +      # in scan sets, and some SunOS ksh mistreat backslash-escaping
7172 +      # in scan sets (worked around with variable expansion),
7173 +      # and furthermore cannot handle '|' '&' '(' ')' in scan sets 
7174 +      # at all, so we specify them separately.
7175        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7176         lastarg="\"$lastarg\""
7177         ;;
7178 @@ -588,9 +790,11 @@ if test -z "$show_help"; then
7179      *.class) xform=class ;;
7180      *.cpp) xform=cpp ;;
7181      *.cxx) xform=cxx ;;
7182 -    *.f90) xform=f90 ;;
7183 +    *.[fF][09]?) xform=[fF][09]. ;;
7184      *.for) xform=for ;;
7185      *.java) xform=java ;;
7186 +    *.obj) xform=obj ;;
7187 +    *.sx) xform=sx ;;
7188      esac
7189  
7190      libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
7191 @@ -624,6 +828,14 @@ if test -z "$show_help"; then
7192        esac
7193      done
7194  
7195 +    qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
7196 +    case $qlibobj in
7197 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7198 +       qlibobj="\"$qlibobj\"" ;;
7199 +    esac
7200 +    test "X$libobj" != "X$qlibobj" \
7201 +       && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
7202 +       && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
7203      objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
7204      xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
7205      if test "X$xdir" = "X$obj"; then
7206 @@ -696,12 +908,17 @@ compiler."
7207         $run $rm $removelist
7208         exit $EXIT_FAILURE
7209        fi
7210 -      $echo $srcfile > "$lockfile"
7211 +      $echo "$srcfile" > "$lockfile"
7212      fi
7213  
7214      if test -n "$fix_srcfile_path"; then
7215        eval srcfile=\"$fix_srcfile_path\"
7216      fi
7217 +    qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
7218 +    case $qsrcfile in
7219 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7220 +      qsrcfile="\"$qsrcfile\"" ;;
7221 +    esac
7222  
7223      $run $rm "$libobj" "${libobj}T"
7224  
7225 @@ -723,18 +940,18 @@ EOF
7226        fbsd_hideous_sh_bug=$base_compile
7227  
7228        if test "$pic_mode" != no; then
7229 -       command="$base_compile $srcfile $pic_flag"
7230 +       command="$base_compile $qsrcfile $pic_flag"
7231        else
7232         # Don't build PIC code
7233 -       command="$base_compile $srcfile"
7234 +       command="$base_compile $qsrcfile"
7235        fi
7236  
7237        if test ! -d "${xdir}$objdir"; then
7238         $show "$mkdir ${xdir}$objdir"
7239         $run $mkdir ${xdir}$objdir
7240 -       status=$?
7241 -       if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
7242 -         exit $status
7243 +       exit_status=$?
7244 +       if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
7245 +         exit $exit_status
7246         fi
7247        fi
7248  
7249 @@ -746,7 +963,7 @@ EOF
7250        $run $rm "$lobj" "$output_obj"
7251  
7252        $show "$command"
7253 -      if $run eval "$command"; then :
7254 +      if $run eval $lt_env "$command"; then :
7255        else
7256         test -n "$output_obj" && $run $rm $removelist
7257         exit $EXIT_FAILURE
7258 @@ -806,9 +1023,9 @@ EOF
7259      if test "$build_old_libs" = yes; then
7260        if test "$pic_mode" != yes; then
7261         # Don't build PIC code
7262 -       command="$base_compile $srcfile"
7263 +       command="$base_compile $qsrcfile"
7264        else
7265 -       command="$base_compile $srcfile $pic_flag"
7266 +       command="$base_compile $qsrcfile $pic_flag"
7267        fi
7268        if test "$compiler_c_o" = yes; then
7269         command="$command -o $obj"
7270 @@ -818,7 +1035,7 @@ EOF
7271        command="$command$suppress_output"
7272        $run $rm "$obj" "$output_obj"
7273        $show "$command"
7274 -      if $run eval "$command"; then :
7275 +      if $run eval $lt_env "$command"; then :
7276        else
7277         $run $rm $removelist
7278         exit $EXIT_FAILURE
7279 @@ -937,6 +1154,7 @@ EOF
7280      no_install=no
7281      objs=
7282      non_pic_objects=
7283 +    notinst_path= # paths that contain not-installed libtool libraries
7284      precious_files_regex=
7285      prefer_static_libs=no
7286      preload=no
7287 @@ -950,6 +1168,7 @@ EOF
7288      thread_safe=no
7289      vinfo=
7290      vinfo_number=no
7291 +    single_module="${wl}-single_module"
7292  
7293      func_infer_tag $base_compile
7294  
7295 @@ -957,22 +1176,32 @@ EOF
7296      for arg
7297      do
7298        case $arg in
7299 -      -all-static | -static)
7300 -       if test "X$arg" = "X-all-static"; then
7301 +      -all-static | -static | -static-libtool-libs)
7302 +       case $arg in
7303 +       -all-static)
7304           if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
7305             $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
7306           fi
7307           if test -n "$link_static_flag"; then
7308             dlopen_self=$dlopen_self_static
7309           fi
7310 -       else
7311 +         prefer_static_libs=yes
7312 +         ;;
7313 +       -static)
7314           if test -z "$pic_flag" && test -n "$link_static_flag"; then
7315             dlopen_self=$dlopen_self_static
7316           fi
7317 -       fi
7318 +         prefer_static_libs=built
7319 +         ;;
7320 +       -static-libtool-libs)
7321 +         if test -z "$pic_flag" && test -n "$link_static_flag"; then
7322 +           dlopen_self=$dlopen_self_static
7323 +         fi
7324 +         prefer_static_libs=yes
7325 +         ;;
7326 +       esac
7327         build_libtool_libs=no
7328         build_old_libs=yes
7329 -       prefer_static_libs=yes
7330         break
7331         ;;
7332        esac
7333 @@ -1147,6 +1376,11 @@ EOF
7334                   if test -z "$pic_object" || test "$pic_object" = none ; then
7335                     arg="$non_pic_object"
7336                   fi
7337 +               else
7338 +                 # If the PIC object exists, use it instead.
7339 +                 # $xdir was prepended to $pic_object above.
7340 +                 non_pic_object="$pic_object"
7341 +                 non_pic_objects="$non_pic_objects $non_pic_object"
7342                 fi
7343               else
7344                 # Only an error if not doing a dry-run.
7345 @@ -1230,6 +1464,13 @@ EOF
7346           prev=
7347           continue
7348           ;;
7349 +       darwin_framework|darwin_framework_skip)
7350 +         test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
7351 +         compile_command="$compile_command $arg"
7352 +         finalize_command="$finalize_command $arg"
7353 +         prev=
7354 +         continue
7355 +         ;;
7356         *)
7357           eval "$prev=\"\$arg\""
7358           prev=
7359 @@ -1288,6 +1529,18 @@ EOF
7360         continue
7361         ;;
7362  
7363 +      -framework|-arch|-isysroot)
7364 +       case " $CC " in
7365 +         *" ${arg} ${1} "* | *" ${arg} ${1} "*) 
7366 +               prev=darwin_framework_skip ;;
7367 +         *) compiler_flags="$compiler_flags $arg"
7368 +            prev=darwin_framework ;;
7369 +       esac
7370 +       compile_command="$compile_command $arg"
7371 +       finalize_command="$finalize_command $arg"
7372 +       continue
7373 +       ;;
7374 +
7375        -inst-prefix-dir)
7376         prev=inst_prefix
7377         continue
7378 @@ -1314,7 +1567,8 @@ EOF
7379           absdir=`cd "$dir" && pwd`
7380           if test -z "$absdir"; then
7381             $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
7382 -           exit $EXIT_FAILURE
7383 +           absdir="$dir"
7384 +           notinst_path="$notinst_path $dir"
7385           fi
7386           dir="$absdir"
7387           ;;
7388 @@ -1328,10 +1582,15 @@ EOF
7389         esac
7390         case $host in
7391         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7392 +         testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
7393           case :$dllsearchpath: in
7394           *":$dir:"*) ;;
7395           *) dllsearchpath="$dllsearchpath:$dir";;
7396           esac
7397 +         case :$dllsearchpath: in
7398 +         *":$testbindir:"*) ;;
7399 +         *) dllsearchpath="$dllsearchpath:$testbindir";;
7400 +         esac
7401           ;;
7402         esac
7403         continue
7404 @@ -1340,15 +1599,15 @@ EOF
7405        -l*)
7406         if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7407           case $host in
7408 -         *-*-cygwin* | *-*-pw32* | *-*-beos*)
7409 +         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
7410             # These systems don't actually have a C or math library (as such)
7411             continue
7412             ;;
7413 -         *-*-mingw* | *-*-os2*)
7414 +         *-*-os2*)
7415             # These systems don't actually have a C library (as such)
7416             test "X$arg" = "X-lc" && continue
7417             ;;
7418 -         *-*-openbsd* | *-*-freebsd*)
7419 +         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7420             # Do not include libc due to us having libc/libc_r.
7421             test "X$arg" = "X-lc" && continue
7422             ;;
7423 @@ -1356,10 +1615,19 @@ EOF
7424             # Rhapsody C and math libraries are in the System framework
7425             deplibs="$deplibs -framework System"
7426             continue
7427 +           ;;
7428 +         *-*-sco3.2v5* | *-*-sco5v6*)
7429 +           # Causes problems with __ctype
7430 +           test "X$arg" = "X-lc" && continue
7431 +           ;;
7432 +         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7433 +           # Compiler inserts libc in the correct place for threads to work
7434 +           test "X$arg" = "X-lc" && continue
7435 +           ;;
7436           esac
7437         elif test "X$arg" = "X-lc_r"; then
7438          case $host in
7439 -        *-*-openbsd* | *-*-freebsd*)
7440 +        *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7441            # Do not include libc_r directly, use -pthread flag.
7442            continue
7443            ;;
7444 @@ -1369,8 +1637,25 @@ EOF
7445         continue
7446         ;;
7447  
7448 -     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
7449 -       deplibs="$deplibs $arg"
7450 +      # Tru64 UNIX uses -model [arg] to determine the layout of C++
7451 +      # classes, name mangling, and exception handling.
7452 +      -model)
7453 +       compile_command="$compile_command $arg"
7454 +       compiler_flags="$compiler_flags $arg"
7455 +       finalize_command="$finalize_command $arg"
7456 +       prev=xcompiler
7457 +       continue
7458 +       ;;
7459 +
7460 +     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
7461 +       compiler_flags="$compiler_flags $arg"
7462 +       compile_command="$compile_command $arg"
7463 +       finalize_command="$finalize_command $arg"
7464 +       continue
7465 +       ;;
7466 +
7467 +      -multi_module)
7468 +       single_module="${wl}-multi_module"
7469         continue
7470         ;;
7471  
7472 @@ -1379,13 +1664,20 @@ EOF
7473         continue
7474         ;;
7475  
7476 -      # gcc -m* arguments should be passed to the linker via $compiler_flags
7477 -      # in order to pass architecture information to the linker
7478 -      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
7479 -      # but this is not reliable with gcc because gcc may use -mfoo to
7480 -      # select a different linker, different libraries, etc, while
7481 -      # -Wl,-mfoo simply passes -mfoo to the linker.
7482 -      -m*)
7483 +      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
7484 +      # -r[0-9][0-9]* specifies the processor on the SGI compiler
7485 +      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
7486 +      # +DA*, +DD* enable 64-bit mode on the HP compiler
7487 +      # -q* pass through compiler args for the IBM compiler
7488 +      # -m* pass through architecture-specific compiler args for GCC
7489 +      # -m*, -t[45]*, -txscale* pass through architecture-specific
7490 +      # compiler args for GCC
7491 +      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
7492 +      # -F/path gives path to uninstalled frameworks, gcc on darwin
7493 +      # @file GCC response files
7494 +      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7495 +      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
7496 +
7497         # Unknown arguments in both finalize_command and compile_command need
7498         # to be aesthetically quoted because they are evaled later.
7499         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
7500 @@ -1396,9 +1688,7 @@ EOF
7501         esac
7502          compile_command="$compile_command $arg"
7503          finalize_command="$finalize_command $arg"
7504 -        if test "$with_gcc" = "yes" ; then
7505 -          compiler_flags="$compiler_flags $arg"
7506 -        fi
7507 +        compiler_flags="$compiler_flags $arg"
7508          continue
7509          ;;
7510  
7511 @@ -1414,9 +1704,9 @@ EOF
7512  
7513        -no-install)
7514         case $host in
7515 -       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7516 +       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
7517           # The PATH hackery in wrapper scripts is required on Windows
7518 -         # in order for the loader to find any dlls it needs.
7519 +         # and Darwin in order for the loader to find any dlls it needs.
7520           $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
7521           $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
7522           fast_install=no
7523 @@ -1475,7 +1765,7 @@ EOF
7524         continue
7525         ;;
7526  
7527 -      -static)
7528 +      -static | -static-libtool-libs)
7529         # The effects of -static are defined in a previous loop.
7530         # We used to do the same as -all-static on platforms that
7531         # didn't have a PIC flag, but the assumption that the effects
7532 @@ -1636,6 +1926,11 @@ EOF
7533             if test -z "$pic_object" || test "$pic_object" = none ; then
7534               arg="$non_pic_object"
7535             fi
7536 +         else
7537 +           # If the PIC object exists, use it instead.
7538 +           # $xdir was prepended to $pic_object above.
7539 +           non_pic_object="$pic_object"
7540 +           non_pic_objects="$non_pic_objects $non_pic_object"
7541           fi
7542         else
7543           # Only an error if not doing a dry-run.
7544 @@ -1741,9 +2036,9 @@ EOF
7545      if test ! -d "$output_objdir"; then
7546        $show "$mkdir $output_objdir"
7547        $run $mkdir $output_objdir
7548 -      status=$?
7549 -      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
7550 -       exit $status
7551 +      exit_status=$?
7552 +      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
7553 +       exit $exit_status
7554        fi
7555      fi
7556  
7557 @@ -1806,7 +2101,6 @@ EOF
7558      newlib_search_path=
7559      need_relink=no # whether we're linking any uninstalled libtool libraries
7560      notinst_deplibs= # not-installed libtool libraries
7561 -    notinst_path= # paths that contain not-installed libtool libraries
7562      case $linkmode in
7563      lib)
7564         passes="conv link"
7565 @@ -1841,7 +2135,10 @@ EOF
7566         case $pass in
7567         dlopen) libs="$dlfiles" ;;
7568         dlpreopen) libs="$dlprefiles" ;;
7569 -       link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
7570 +       link)
7571 +         libs="$deplibs %DEPLIBS%"
7572 +         test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7573 +         ;;
7574         esac
7575        fi
7576        if test "$pass" = dlopen; then
7577 @@ -1853,12 +2150,12 @@ EOF
7578         lib=
7579         found=no
7580         case $deplib in
7581 -       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
7582 +       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
7583           if test "$linkmode,$pass" = "prog,link"; then
7584             compile_deplibs="$deplib $compile_deplibs"
7585             finalize_deplibs="$deplib $finalize_deplibs"
7586           else
7587 -           deplibs="$deplib $deplibs"
7588 +           compiler_flags="$compiler_flags $deplib"
7589           fi
7590           continue
7591           ;;
7592 @@ -1867,12 +2164,13 @@ EOF
7593             $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
7594             continue
7595           fi
7596 -         if test "$pass" = conv; then
7597 -           deplibs="$deplib $deplibs"
7598 -           continue
7599 -         fi
7600           name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
7601 -         for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
7602 +         if test "$linkmode" = lib; then
7603 +           searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
7604 +         else
7605 +           searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
7606 +         fi
7607 +         for searchdir in $searchdirs; do
7608             for search_ext in .la $std_shrext .so .a; do
7609               # Search the libtool library
7610               lib="$searchdir/lib${name}${search_ext}"
7611 @@ -1981,7 +2279,22 @@ EOF
7612           fi
7613           case $linkmode in
7614           lib)
7615 -           if test "$deplibs_check_method" != pass_all; then
7616 +           valid_a_lib=no
7617 +           case $deplibs_check_method in
7618 +             match_pattern*)
7619 +               set dummy $deplibs_check_method
7620 +               match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7621 +               if eval $echo \"$deplib\" 2>/dev/null \
7622 +                   | $SED 10q \
7623 +                   | $EGREP "$match_pattern_regex" > /dev/null; then
7624 +                 valid_a_lib=yes
7625 +               fi
7626 +               ;;
7627 +             pass_all)
7628 +               valid_a_lib=yes
7629 +               ;;
7630 +            esac
7631 +           if test "$valid_a_lib" != yes; then
7632               $echo
7633               $echo "*** Warning: Trying to link with static lib archive $deplib."
7634               $echo "*** I have the capability to make that library automatically link in when"
7635 @@ -2031,7 +2344,7 @@ EOF
7636         esac # case $deplib
7637         if test "$found" = yes || test -f "$lib"; then :
7638         else
7639 -         $echo "$modename: cannot find the library \`$lib'" 1>&2
7640 +         $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
7641           exit $EXIT_FAILURE
7642         fi
7643  
7644 @@ -2055,6 +2368,8 @@ EOF
7645         # it will not redefine variables installed, or shouldnotlink
7646         installed=yes
7647         shouldnotlink=no
7648 +       avoidtemprpath=
7649 +
7650  
7651         # Read the .la file
7652         case $lib in
7653 @@ -2153,11 +2468,19 @@ EOF
7654             dir="$libdir"
7655             absdir="$libdir"
7656           fi
7657 +         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
7658         else
7659 -         dir="$ladir/$objdir"
7660 -         absdir="$abs_ladir/$objdir"
7661 -         # Remove this search path later
7662 -         notinst_path="$notinst_path $abs_ladir"
7663 +         if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
7664 +           dir="$ladir"
7665 +           absdir="$abs_ladir"
7666 +           # Remove this search path later
7667 +           notinst_path="$notinst_path $abs_ladir"
7668 +         else
7669 +           dir="$ladir/$objdir"
7670 +           absdir="$abs_ladir/$objdir"
7671 +           # Remove this search path later
7672 +           notinst_path="$notinst_path $abs_ladir"
7673 +         fi
7674         fi # $installed = yes
7675         name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
7676  
7677 @@ -2228,14 +2551,16 @@ EOF
7678  
7679         if test "$linkmode,$pass" = "prog,link"; then
7680           if test -n "$library_names" &&
7681 -            { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
7682 +            { { test "$prefer_static_libs" = no ||
7683 +                test "$prefer_static_libs,$installed" = "built,yes"; } ||
7684 +              test -z "$old_library"; }; then
7685             # We need to hardcode the library path
7686 -           if test -n "$shlibpath_var"; then
7687 +           if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
7688               # Make sure the rpath contains only unique directories.
7689               case "$temp_rpath " in
7690               *" $dir "*) ;;
7691               *" $absdir "*) ;;
7692 -             *) temp_rpath="$temp_rpath $dir" ;;
7693 +             *) temp_rpath="$temp_rpath $absdir" ;;
7694               esac
7695             fi
7696  
7697 @@ -2272,8 +2597,12 @@ EOF
7698         fi
7699  
7700         link_static=no # Whether the deplib will be linked statically
7701 +       use_static_libs=$prefer_static_libs
7702 +       if test "$use_static_libs" = built && test "$installed" = yes ; then
7703 +         use_static_libs=no
7704 +       fi
7705         if test -n "$library_names" &&
7706 -          { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
7707 +          { test "$use_static_libs" = no || test -z "$old_library"; }; then
7708           if test "$installed" = no; then
7709             notinst_deplibs="$notinst_deplibs $lib"
7710             need_relink=yes
7711 @@ -2386,11 +2715,15 @@ EOF
7712               if test "$hardcode_direct" = no; then
7713                 add="$dir/$linklib"
7714                 case $host in
7715 -                 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
7716 +                 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
7717 +                 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
7718 +                 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
7719 +                   *-*-unixware7*) add_dir="-L$dir" ;;
7720                   *-*-darwin* )
7721                     # if the lib is a module then we can not link against
7722                     # it, someone is ignoring the new warnings I added
7723 -                   if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
7724 +                   if /usr/bin/file -L $add 2> /dev/null |
7725 +                      $EGREP ": [^:]* bundle" >/dev/null ; then
7726                       $echo "** Warning, lib $linklib is a module, not a shared library"
7727                       if test -z "$old_library" ; then
7728                         $echo
7729 @@ -2421,7 +2754,7 @@ EOF
7730                 add_dir="-L$dir"
7731                 # Try looking first in the location we're being installed to.
7732                 if test -n "$inst_prefix_dir"; then
7733 -                 case "$libdir" in
7734 +                 case $libdir in
7735                     [\\/]*)
7736                       add_dir="$add_dir -L$inst_prefix_dir$libdir"
7737                       ;;
7738 @@ -2494,7 +2827,7 @@ EOF
7739               add_dir="-L$libdir"
7740               # Try looking first in the location we're being installed to.
7741               if test -n "$inst_prefix_dir"; then
7742 -               case "$libdir" in
7743 +               case $libdir in
7744                   [\\/]*)
7745                     add_dir="$add_dir -L$inst_prefix_dir$libdir"
7746                     ;;
7747 @@ -2555,8 +2888,6 @@ EOF
7748               fi
7749             fi
7750           else
7751 -           convenience="$convenience $dir/$old_library"
7752 -           old_convenience="$old_convenience $dir/$old_library"
7753             deplibs="$dir/$old_library $deplibs"
7754             link_static=yes
7755           fi
7756 @@ -2635,12 +2966,18 @@ EOF
7757                   # we do not want to link against static libs,
7758                   # but need to link against shared
7759                   eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7760 +                 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7761                   if test -n "$deplibrary_names" ; then
7762                     for tmp in $deplibrary_names ; do
7763                       depdepl=$tmp
7764                     done
7765 -                   if test -f "$path/$depdepl" ; then
7766 +                   if test -f "$deplibdir/$depdepl" ; then
7767 +                     depdepl="$deplibdir/$depdepl"
7768 +                   elif test -f "$path/$depdepl" ; then
7769                       depdepl="$path/$depdepl"
7770 +                   else
7771 +                     # Can't find it, oh well...
7772 +                     depdepl=
7773                     fi
7774                     # do not add paths which are already there
7775                     case " $newlib_search_path " in
7776 @@ -2674,12 +3011,12 @@ EOF
7777               *) continue ;;
7778               esac
7779               case " $deplibs " in
7780 -             *" $depdepl "*) ;;
7781 -             *) deplibs="$depdepl $deplibs" ;;
7782 +             *" $path "*) ;;
7783 +             *) deplibs="$path $deplibs" ;;
7784               esac
7785               case " $deplibs " in
7786 -             *" $path "*) ;;
7787 -             *) deplibs="$deplibs $path" ;;
7788 +             *" $depdepl "*) ;;
7789 +             *) deplibs="$depdepl $deplibs" ;;
7790               esac
7791             done
7792           fi # link_all_deplibs != no
7793 @@ -2788,9 +3125,10 @@ EOF
7794  
7795      case $linkmode in
7796      oldlib)
7797 -      if test -n "$deplibs"; then
7798 -       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
7799 -      fi
7800 +      case " $deplibs" in
7801 +      *\ -l* | *\ -L*)
7802 +       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
7803 +      esac
7804  
7805        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7806         $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
7807 @@ -2918,7 +3256,7 @@ EOF
7808           # which has an extra 1 added just for fun
7809           #
7810           case $version_type in
7811 -         darwin|linux|osf|windows)
7812 +         darwin|linux|osf|windows|none)
7813             current=`expr $number_major + $number_minor`
7814             age="$number_minor"
7815             revision="$number_revision"
7816 @@ -2929,9 +3267,15 @@ EOF
7817             age="0"
7818             ;;
7819           irix|nonstopux)
7820 -           current=`expr $number_major + $number_minor - 1`
7821 +           current=`expr $number_major + $number_minor`
7822             age="$number_minor"
7823             revision="$number_minor"
7824 +           lt_irix_increment=no
7825 +           ;;
7826 +         *)
7827 +           $echo "$modename: unknown library version type \`$version_type'" 1>&2
7828 +           $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
7829 +           exit $EXIT_FAILURE
7830             ;;
7831           esac
7832           ;;
7833 @@ -2944,27 +3288,27 @@ EOF
7834  
7835         # Check that each of the things are valid numbers.
7836         case $current in
7837 -       [0-9]*) ;;
7838 +       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]) ;;
7839         *)
7840 -         $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
7841 +         $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
7842           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7843           exit $EXIT_FAILURE
7844           ;;
7845         esac
7846  
7847         case $revision in
7848 -       [0-9]*) ;;
7849 +       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]) ;;
7850         *)
7851 -         $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
7852 +         $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
7853           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7854           exit $EXIT_FAILURE
7855           ;;
7856         esac
7857  
7858         case $age in
7859 -       [0-9]*) ;;
7860 +       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]) ;;
7861         *)
7862 -         $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
7863 +         $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
7864           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7865           exit $EXIT_FAILURE
7866           ;;
7867 @@ -2990,6 +3334,7 @@ EOF
7868           versuffix="$major.$age.$revision"
7869           # Darwin ld doesn't like 0 for these options...
7870           minor_current=`expr $current + 1`
7871 +         xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
7872           verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7873           ;;
7874  
7875 @@ -3004,8 +3349,11 @@ EOF
7876           ;;
7877  
7878         irix | nonstopux)
7879 -         major=`expr $current - $age + 1`
7880 -
7881 +         if test "X$lt_irix_increment" = "Xno"; then
7882 +           major=`expr $current - $age`
7883 +         else
7884 +           major=`expr $current - $age + 1`
7885 +         fi
7886           case $version_type in
7887             nonstopux) verstring_prefix=nonstopux ;;
7888             *)         verstring_prefix=sgi ;;
7889 @@ -3142,11 +3490,11 @@ EOF
7890        fi
7891  
7892        # Eliminate all temporary directories.
7893 -      for path in $notinst_path; do
7894 -       lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
7895 -       deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
7896 -       dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
7897 -      done
7898 +      #for path in $notinst_path; do
7899 +      #        lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
7900 +      #        deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
7901 +      #        dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
7902 +      #done
7903  
7904        if test -n "$xrpath"; then
7905         # If the user specified any rpath flags, then add them.
7906 @@ -3196,9 +3544,14 @@ EOF
7907           *-*-netbsd*)
7908             # Don't link with libc until the a.out ld.so is fixed.
7909             ;;
7910 -         *-*-openbsd* | *-*-freebsd*)
7911 +         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7912             # Do not include libc due to us having libc/libc_r.
7913 -           test "X$arg" = "X-lc" && continue
7914 +           ;;
7915 +         *-*-sco3.2v5* | *-*-sco5v6*)
7916 +           # Causes problems with __ctype
7917 +           ;;
7918 +         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7919 +           # Compiler inserts libc in the correct place for threads to work
7920             ;;
7921           *)
7922             # Add libc to deplibs on all other systems if necessary.
7923 @@ -3242,13 +3595,12 @@ EOF
7924           int main() { return 0; }
7925  EOF
7926           $rm conftest
7927 -         $LTCC -o conftest conftest.c $deplibs
7928 -         if test "$?" -eq 0 ; then
7929 +         if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7930             ldd_output=`ldd conftest`
7931             for i in $deplibs; do
7932 -             name="`expr $i : '-l\(.*\)'`"
7933 +             name=`expr $i : '-l\(.*\)'`
7934               # If $name is empty we are operating on a -L argument.
7935 -              if test "$name" != "" && test "$name" -ne "0"; then
7936 +              if test "$name" != "" && test "$name" != "0"; then
7937                 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7938                   case " $predeps $postdeps " in
7939                   *" $i "*)
7940 @@ -3283,13 +3635,11 @@ EOF
7941             # Error occurred in the first compile.  Let's try to salvage
7942             # the situation: Compile a separate program for each library.
7943             for i in $deplibs; do
7944 -             name="`expr $i : '-l\(.*\)'`"
7945 +             name=`expr $i : '-l\(.*\)'`
7946               # If $name is empty we are operating on a -L argument.
7947                if test "$name" != "" && test "$name" != "0"; then
7948                 $rm conftest
7949 -               $LTCC -o conftest conftest.c $i
7950 -               # Did it work?
7951 -               if test "$?" -eq 0 ; then
7952 +               if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7953                   ldd_output=`ldd conftest`
7954                   if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7955                     case " $predeps $postdeps " in
7956 @@ -3321,7 +3671,7 @@ EOF
7957                   droppeddeps=yes
7958                   $echo
7959                   $echo "*** Warning!  Library $i is needed by this library but I was not able to"
7960 -                 $echo "***  make it link in!  You will probably need to install it or some"
7961 +                 $echo "*** make it link in!  You will probably need to install it or some"
7962                   $echo "*** library that it depends on before this library will be fully"
7963                   $echo "*** functional.  Installing it before continuing would be even better."
7964                 fi
7965 @@ -3335,7 +3685,7 @@ EOF
7966           set dummy $deplibs_check_method
7967           file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7968           for a_deplib in $deplibs; do
7969 -           name="`expr $a_deplib : '-l\(.*\)'`"
7970 +           name=`expr $a_deplib : '-l\(.*\)'`
7971             # If $name is empty we are operating on a -L argument.
7972              if test "$name" != "" && test  "$name" != "0"; then
7973               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7974 @@ -3404,7 +3754,7 @@ EOF
7975           set dummy $deplibs_check_method
7976           match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7977           for a_deplib in $deplibs; do
7978 -           name="`expr $a_deplib : '-l\(.*\)'`"
7979 +           name=`expr $a_deplib : '-l\(.*\)'`
7980             # If $name is empty we are operating on a -L argument.
7981             if test -n "$name" && test "$name" != "0"; then
7982               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7983 @@ -3534,6 +3884,35 @@ EOF
7984         deplibs=$newdeplibs
7985        fi
7986  
7987 +
7988 +      # move library search paths that coincide with paths to not yet
7989 +      # installed libraries to the beginning of the library search list
7990 +      new_libs=
7991 +      for path in $notinst_path; do
7992 +       case " $new_libs " in
7993 +       *" -L$path/$objdir "*) ;;
7994 +       *)
7995 +         case " $deplibs " in
7996 +         *" -L$path/$objdir "*)
7997 +           new_libs="$new_libs -L$path/$objdir" ;;
7998 +         esac
7999 +         ;;
8000 +       esac
8001 +      done
8002 +      for deplib in $deplibs; do
8003 +       case $deplib in
8004 +       -L*)
8005 +         case " $new_libs " in
8006 +         *" $deplib "*) ;;
8007 +         *) new_libs="$new_libs $deplib" ;;
8008 +         esac
8009 +         ;;
8010 +       *) new_libs="$new_libs $deplib" ;;
8011 +       esac
8012 +      done
8013 +      deplibs="$new_libs"
8014 +
8015 +
8016        # All the library-specific variables (install_libdir is set above).
8017        library_names=
8018        old_library=
8019 @@ -3578,7 +3957,10 @@ EOF
8020              test -n "$hardcode_libdirs"; then
8021             libdir="$hardcode_libdirs"
8022             if test -n "$hardcode_libdir_flag_spec_ld"; then
8023 -             eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
8024 +             case $archive_cmds in
8025 +             *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
8026 +             *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
8027 +             esac
8028             else
8029               eval dep_rpath=\"$hardcode_libdir_flag_spec\"
8030             fi
8031 @@ -3617,6 +3999,7 @@ EOF
8032         fi
8033  
8034         lib="$output_objdir/$realname"
8035 +       linknames=
8036         for link
8037         do
8038           linknames="$linknames $link"
8039 @@ -3645,6 +4028,9 @@ EOF
8040                 # The command line is too long to execute in one step.
8041                 $show "using reloadable object file for export list..."
8042                 skipped_export=:
8043 +               # Break out early, otherwise skipped_export may be
8044 +               # set to false by a later but shorter cmd.
8045 +               break
8046               fi
8047             done
8048             IFS="$save_ifs"
8049 @@ -3678,67 +4064,13 @@ EOF
8050             eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8051           else
8052             gentop="$output_objdir/${outputname}x"
8053 -           $show "${rm}r $gentop"
8054 -           $run ${rm}r "$gentop"
8055 -           $show "$mkdir $gentop"
8056 -           $run $mkdir "$gentop"
8057 -           status=$?
8058 -           if test "$status" -ne 0 && test ! -d "$gentop"; then
8059 -             exit $status
8060 -           fi
8061             generated="$generated $gentop"
8062  
8063 -           for xlib in $convenience; do
8064 -             # Extract the objects.
8065 -             case $xlib in
8066 -             [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8067 -             *) xabs=`pwd`"/$xlib" ;;
8068 -             esac
8069 -             xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8070 -             xdir="$gentop/$xlib"
8071 -
8072 -             $show "${rm}r $xdir"
8073 -             $run ${rm}r "$xdir"
8074 -             $show "$mkdir $xdir"
8075 -             $run $mkdir "$xdir"
8076 -             status=$?
8077 -             if test "$status" -ne 0 && test ! -d "$xdir"; then
8078 -               exit $status
8079 -             fi
8080 -             # We will extract separately just the conflicting names and we will no
8081 -             # longer touch any unique names. It is faster to leave these extract
8082 -             # automatically by $AR in one run.
8083 -             $show "(cd $xdir && $AR x $xabs)"
8084 -             $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8085 -             if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
8086 -               :
8087 -             else
8088 -               $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
8089 -               $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
8090 -               $AR t "$xabs" | sort | uniq -cd | while read -r count name
8091 -               do
8092 -                 i=1
8093 -                 while test "$i" -le "$count"
8094 -                 do
8095 -                  # Put our $i before any first dot (extension)
8096 -                  # Never overwrite any file
8097 -                  name_to="$name"
8098 -                  while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
8099 -                  do
8100 -                    name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
8101 -                  done
8102 -                  $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
8103 -                  $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
8104 -                  i=`expr $i + 1`
8105 -                 done
8106 -               done
8107 -             fi
8108 -
8109 -             libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
8110 -           done
8111 +           func_extract_archives $gentop $convenience
8112 +           libobjs="$libobjs $func_extract_archives_result"
8113           fi
8114         fi
8115 -
8116 +       
8117         if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8118           eval flag=\"$thread_safe_flag_spec\"
8119           linker_flags="$linker_flags $flag"
8120 @@ -3768,7 +4100,8 @@ EOF
8121           fi
8122         fi
8123  
8124 -       if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
8125 +       if test "X$skipped_export" != "X:" &&
8126 +          len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
8127            test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8128           :
8129         else
8130 @@ -3787,6 +4120,7 @@ EOF
8131             save_libobjs=$libobjs
8132           fi
8133           save_output=$output
8134 +         output_la=`$echo "X$output" | $Xsed -e "$basename"`
8135  
8136           # Clear the reloadable object creation command queue and
8137           # initialize k to one.
8138 @@ -3796,13 +4130,13 @@ EOF
8139           delfiles=
8140           last_robj=
8141           k=1
8142 -         output=$output_objdir/$save_output-${k}.$objext
8143 +         output=$output_objdir/$output_la-${k}.$objext
8144           # Loop over the list of objects to be linked.
8145           for obj in $save_libobjs
8146           do
8147             eval test_cmds=\"$reload_cmds $objlist $last_robj\"
8148             if test "X$objlist" = X ||
8149 -              { len=`expr "X$test_cmds" : ".*"` &&
8150 +              { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
8151                  test "$len" -le "$max_cmd_len"; }; then
8152               objlist="$objlist $obj"
8153             else
8154 @@ -3816,9 +4150,9 @@ EOF
8155                 # the last one created.
8156                 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
8157               fi
8158 -             last_robj=$output_objdir/$save_output-${k}.$objext
8159 +             last_robj=$output_objdir/$output_la-${k}.$objext
8160               k=`expr $k + 1`
8161 -             output=$output_objdir/$save_output-${k}.$objext
8162 +             output=$output_objdir/$output_la-${k}.$objext
8163               objlist=$obj
8164               len=1
8165             fi
8166 @@ -3838,13 +4172,13 @@ EOF
8167             eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
8168            fi
8169  
8170 -         # Set up a command to remove the reloadale object files
8171 +         # Set up a command to remove the reloadable object files
8172           # after they are used.
8173           i=0
8174           while test "$i" -lt "$k"
8175           do
8176             i=`expr $i + 1`
8177 -           delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
8178 +           delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
8179           done
8180  
8181           $echo "creating a temporary reloadable object file: $output"
8182 @@ -3892,13 +4226,30 @@ EOF
8183           IFS="$save_ifs"
8184           eval cmd=\"$cmd\"
8185           $show "$cmd"
8186 -         $run eval "$cmd" || exit $?
8187 +         $run eval "$cmd" || {
8188 +           lt_exit=$?
8189 +
8190 +           # Restore the uninstalled library and exit
8191 +           if test "$mode" = relink; then
8192 +             $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
8193 +           fi
8194 +
8195 +           exit $lt_exit
8196 +         }
8197         done
8198         IFS="$save_ifs"
8199  
8200         # Restore the uninstalled library and exit
8201         if test "$mode" = relink; then
8202           $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
8203 +
8204 +         if test -n "$convenience"; then
8205 +           if test -z "$whole_archive_flag_spec"; then
8206 +             $show "${rm}r $gentop"
8207 +             $run ${rm}r "$gentop"
8208 +           fi
8209 +         fi
8210 +
8211           exit $EXIT_SUCCESS
8212         fi
8213  
8214 @@ -3919,9 +4270,10 @@ EOF
8215        ;;
8216  
8217      obj)
8218 -      if test -n "$deplibs"; then
8219 -       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
8220 -      fi
8221 +      case " $deplibs" in
8222 +      *\ -l* | *\ -L*)
8223 +       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
8224 +      esac
8225  
8226        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8227         $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
8228 @@ -3968,72 +4320,20 @@ EOF
8229        reload_conv_objs=
8230        gentop=
8231        # reload_cmds runs $LD directly, so let us get rid of
8232 -      # -Wl from whole_archive_flag_spec
8233 +      # -Wl from whole_archive_flag_spec and hope we can get by with
8234 +      # turning comma into space..
8235        wl=
8236  
8237        if test -n "$convenience"; then
8238         if test -n "$whole_archive_flag_spec"; then
8239 -         eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
8240 +         eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8241 +         reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
8242         else
8243           gentop="$output_objdir/${obj}x"
8244 -         $show "${rm}r $gentop"
8245 -         $run ${rm}r "$gentop"
8246 -         $show "$mkdir $gentop"
8247 -         $run $mkdir "$gentop"
8248 -         status=$?
8249 -         if test "$status" -ne 0 && test ! -d "$gentop"; then
8250 -           exit $status
8251 -         fi
8252           generated="$generated $gentop"
8253  
8254 -         for xlib in $convenience; do
8255 -           # Extract the objects.
8256 -           case $xlib in
8257 -           [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8258 -           *) xabs=`pwd`"/$xlib" ;;
8259 -           esac
8260 -           xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8261 -           xdir="$gentop/$xlib"
8262 -
8263 -           $show "${rm}r $xdir"
8264 -           $run ${rm}r "$xdir"
8265 -           $show "$mkdir $xdir"
8266 -           $run $mkdir "$xdir"
8267 -           status=$?
8268 -           if test "$status" -ne 0 && test ! -d "$xdir"; then
8269 -             exit $status
8270 -           fi
8271 -           # We will extract separately just the conflicting names and we will no
8272 -           # longer touch any unique names. It is faster to leave these extract
8273 -           # automatically by $AR in one run.
8274 -           $show "(cd $xdir && $AR x $xabs)"
8275 -           $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8276 -           if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
8277 -             :
8278 -           else
8279 -             $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
8280 -             $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
8281 -             $AR t "$xabs" | sort | uniq -cd | while read -r count name
8282 -             do
8283 -               i=1
8284 -               while test "$i" -le "$count"
8285 -               do
8286 -                # Put our $i before any first dot (extension)
8287 -                # Never overwrite any file
8288 -                name_to="$name"
8289 -                while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
8290 -                do
8291 -                  name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
8292 -                done
8293 -                $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
8294 -                $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
8295 -                i=`expr $i + 1`
8296 -               done
8297 -             done
8298 -           fi
8299 -
8300 -           reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
8301 -         done
8302 +         func_extract_archives $gentop $convenience
8303 +         reload_conv_objs="$reload_objs $func_extract_archives_result"
8304         fi
8305        fi
8306  
8307 @@ -4134,6 +4434,35 @@ EOF
8308          ;;
8309        esac
8310  
8311 +
8312 +      # move library search paths that coincide with paths to not yet
8313 +      # installed libraries to the beginning of the library search list
8314 +      new_libs=
8315 +      for path in $notinst_path; do
8316 +       case " $new_libs " in
8317 +       *" -L$path/$objdir "*) ;;
8318 +       *)
8319 +         case " $compile_deplibs " in
8320 +         *" -L$path/$objdir "*)
8321 +           new_libs="$new_libs -L$path/$objdir" ;;
8322 +         esac
8323 +         ;;
8324 +       esac
8325 +      done
8326 +      for deplib in $compile_deplibs; do
8327 +       case $deplib in
8328 +       -L*)
8329 +         case " $new_libs " in
8330 +         *" $deplib "*) ;;
8331 +         *) new_libs="$new_libs $deplib" ;;
8332 +         esac
8333 +         ;;
8334 +       *) new_libs="$new_libs $deplib" ;;
8335 +       esac
8336 +      done
8337 +      compile_deplibs="$new_libs"
8338 +
8339 +
8340        compile_command="$compile_command $compile_deplibs"
8341        finalize_command="$finalize_command $finalize_deplibs"
8342  
8343 @@ -4178,10 +4507,15 @@ EOF
8344         fi
8345         case $host in
8346         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
8347 +         testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
8348           case :$dllsearchpath: in
8349           *":$libdir:"*) ;;
8350           *) dllsearchpath="$dllsearchpath:$libdir";;
8351           esac
8352 +         case :$dllsearchpath: in
8353 +         *":$testbindir:"*) ;;
8354 +         *) dllsearchpath="$dllsearchpath:$testbindir";;
8355 +         esac
8356           ;;
8357         esac
8358        done
8359 @@ -4295,13 +4629,25 @@ extern \"C\" {
8360  
8361             # Prepare the list of exported symbols
8362             if test -z "$export_symbols"; then
8363 -             export_symbols="$output_objdir/$output.exp"
8364 +             export_symbols="$output_objdir/$outputname.exp"
8365               $run $rm $export_symbols
8366 -             $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
8367 +             $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
8368 +              case $host in
8369 +              *cygwin* | *mingw* )
8370 +               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
8371 +               $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
8372 +                ;;
8373 +              esac
8374             else
8375 -             $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
8376 -             $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
8377 +             $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
8378 +             $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
8379               $run eval 'mv "$nlist"T "$nlist"'
8380 +              case $host in
8381 +              *cygwin* | *mingw* )
8382 +               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
8383 +               $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
8384 +                ;;
8385 +              esac
8386             fi
8387           fi
8388  
8389 @@ -4352,7 +4698,26 @@ extern \"C\" {
8390  #endif
8391  
8392  /* The mapping between symbol names and symbols. */
8393 +"
8394 +
8395 +           case $host in
8396 +           *cygwin* | *mingw* )
8397 +         $echo >> "$output_objdir/$dlsyms" "\
8398 +/* DATA imports from DLLs on WIN32 can't be const, because
8399 +   runtime relocations are performed -- see ld's documentation
8400 +   on pseudo-relocs */
8401 +struct {
8402 +"
8403 +             ;;
8404 +           * )
8405 +         $echo >> "$output_objdir/$dlsyms" "\
8406  const struct {
8407 +"
8408 +             ;;
8409 +           esac
8410 +
8411 +
8412 +         $echo >> "$output_objdir/$dlsyms" "\
8413    const char *name;
8414    lt_ptr address;
8415  }
8416 @@ -4399,16 +4764,29 @@ static const void *lt_preloaded_setup() {
8417           esac
8418  
8419           # Now compile the dynamic symbol file.
8420 -         $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
8421 -         $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
8422 +         $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
8423 +         $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
8424  
8425           # Clean up the generated files.
8426           $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
8427           $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
8428  
8429           # Transform the symbol file into the correct name.
8430 -         compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
8431 -         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
8432 +          case $host in
8433 +          *cygwin* | *mingw* )
8434 +            if test -f "$output_objdir/${outputname}.def" ; then
8435 +              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
8436 +              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
8437 +            else
8438 +              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8439 +              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8440 +             fi
8441 +            ;;
8442 +          * )
8443 +            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8444 +            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8445 +            ;;
8446 +          esac
8447           ;;
8448         *)
8449           $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
8450 @@ -4421,19 +4799,19 @@ static const void *lt_preloaded_setup() {
8451         # really was required.
8452  
8453         # Nullify the symbol file.
8454 -       compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
8455 -       finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
8456 +       compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
8457 +       finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
8458        fi
8459  
8460        if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8461         # Replace the output file specification.
8462 -       compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8463 +       compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
8464         link_command="$compile_command$compile_rpath"
8465  
8466         # We have no uninstalled library dependencies, so finalize right now.
8467         $show "$link_command"
8468         $run eval "$link_command"
8469 -       status=$?
8470 +       exit_status=$?
8471  
8472         # Delete the generated files.
8473         if test -n "$dlsyms"; then
8474 @@ -4441,7 +4819,7 @@ static const void *lt_preloaded_setup() {
8475           $run $rm "$output_objdir/${outputname}S.${objext}"
8476         fi
8477  
8478 -       exit $status
8479 +       exit $exit_status
8480        fi
8481  
8482        if test -n "$shlibpath_var"; then
8483 @@ -4514,7 +4892,7 @@ static const void *lt_preloaded_setup() {
8484         if test "$fast_install" != no; then
8485           link_command="$finalize_var$compile_command$finalize_rpath"
8486           if test "$fast_install" = yes; then
8487 -           relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
8488 +           relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
8489           else
8490             # fast_install is set to needless
8491             relink_command=
8492 @@ -4551,7 +4929,7 @@ static const void *lt_preloaded_setup() {
8493           fi
8494         done
8495         relink_command="(cd `pwd`; $relink_command)"
8496 -       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
8497 +       relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
8498        fi
8499  
8500        # Quote $echo for shipping.
8501 @@ -4581,10 +4959,12 @@ static const void *lt_preloaded_setup() {
8502         esac
8503         case $host in
8504           *cygwin* | *mingw* )
8505 -           cwrappersource=`$echo ${objdir}/lt-${output}.c`
8506 -           cwrapper=`$echo ${output}.exe`
8507 -           $rm $cwrappersource $cwrapper
8508 -           trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
8509 +            output_name=`basename $output`
8510 +            output_path=`dirname $output`
8511 +            cwrappersource="$output_path/$objdir/lt-$output_name.c"
8512 +            cwrapper="$output_path/$output_name.exe"
8513 +            $rm $cwrappersource $cwrapper
8514 +            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
8515  
8516             cat > $cwrappersource <<EOF
8517  
8518 @@ -4609,6 +4989,9 @@ EOF
8519  #include <malloc.h>
8520  #include <stdarg.h>
8521  #include <assert.h>
8522 +#include <string.h>
8523 +#include <ctype.h>
8524 +#include <sys/stat.h>
8525  
8526  #if defined(PATH_MAX)
8527  # define LT_PATHMAX PATH_MAX
8528 @@ -4619,15 +5002,19 @@ EOF
8529  #endif
8530  
8531  #ifndef DIR_SEPARATOR
8532 -#define DIR_SEPARATOR '/'
8533 +# define DIR_SEPARATOR '/'
8534 +# define PATH_SEPARATOR ':'
8535  #endif
8536  
8537  #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
8538    defined (__OS2__)
8539 -#define HAVE_DOS_BASED_FILE_SYSTEM
8540 -#ifndef DIR_SEPARATOR_2
8541 -#define DIR_SEPARATOR_2 '\\'
8542 -#endif
8543 +# define HAVE_DOS_BASED_FILE_SYSTEM
8544 +# ifndef DIR_SEPARATOR_2
8545 +#  define DIR_SEPARATOR_2 '\\'
8546 +# endif
8547 +# ifndef PATH_SEPARATOR_2
8548 +#  define PATH_SEPARATOR_2 ';'
8549 +# endif
8550  #endif
8551  
8552  #ifndef DIR_SEPARATOR_2
8553 @@ -4637,17 +5024,32 @@ EOF
8554          (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
8555  #endif /* DIR_SEPARATOR_2 */
8556  
8557 +#ifndef PATH_SEPARATOR_2
8558 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
8559 +#else /* PATH_SEPARATOR_2 */
8560 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
8561 +#endif /* PATH_SEPARATOR_2 */
8562 +
8563  #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
8564  #define XFREE(stale) do { \
8565    if (stale) { free ((void *) stale); stale = 0; } \
8566  } while (0)
8567  
8568 +/* -DDEBUG is fairly common in CFLAGS.  */
8569 +#undef DEBUG
8570 +#if defined DEBUGWRAPPER
8571 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
8572 +#else
8573 +# define DEBUG(format, ...)
8574 +#endif
8575 +
8576  const char *program_name = NULL;
8577  
8578  void * xmalloc (size_t num);
8579  char * xstrdup (const char *string);
8580 -char * basename (const char *name);
8581 -char * fnqualify(const char *path);
8582 +const char * base_name (const char *name);
8583 +char * find_executable(const char *wrapper);
8584 +int    check_executable(const char *path);
8585  char * strendzap(char *str, const char *pat);
8586  void lt_fatal (const char *message, ...);
8587  
8588 @@ -4657,29 +5059,51 @@ main (int argc, char *argv[])
8589    char **newargz;
8590    int i;
8591  
8592 -  program_name = (char *) xstrdup ((char *) basename (argv[0]));
8593 +  program_name = (char *) xstrdup (base_name (argv[0]));
8594 +  DEBUG("(main) argv[0]      : %s\n",argv[0]);
8595 +  DEBUG("(main) program_name : %s\n",program_name);
8596    newargz = XMALLOC(char *, argc+2);
8597  EOF
8598  
8599 -           cat >> $cwrappersource <<EOF
8600 -  newargz[0] = "$SHELL";
8601 +            cat >> $cwrappersource <<EOF
8602 +  newargz[0] = (char *) xstrdup("$SHELL");
8603  EOF
8604  
8605 -           cat >> $cwrappersource <<"EOF"
8606 -  newargz[1] = fnqualify(argv[0]);
8607 +            cat >> $cwrappersource <<"EOF"
8608 +  newargz[1] = find_executable(argv[0]);
8609 +  if (newargz[1] == NULL)
8610 +    lt_fatal("Couldn't find %s", argv[0]);
8611 +  DEBUG("(main) found exe at : %s\n",newargz[1]);
8612    /* we know the script has the same name, without the .exe */
8613    /* so make sure newargz[1] doesn't end in .exe */
8614    strendzap(newargz[1],".exe");
8615    for (i = 1; i < argc; i++)
8616      newargz[i+1] = xstrdup(argv[i]);
8617    newargz[argc+1] = NULL;
8618 +
8619 +  for (i=0; i<argc+1; i++)
8620 +  {
8621 +    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
8622 +    ;
8623 +  }
8624 +
8625  EOF
8626  
8627 -           cat >> $cwrappersource <<EOF
8628 +            case $host_os in
8629 +              mingw*)
8630 +                cat >> $cwrappersource <<EOF
8631 +  execv("$SHELL",(char const **)newargz);
8632 +EOF
8633 +              ;;
8634 +              *)
8635 +                cat >> $cwrappersource <<EOF
8636    execv("$SHELL",newargz);
8637  EOF
8638 +              ;;
8639 +            esac
8640  
8641 -           cat >> $cwrappersource <<"EOF"
8642 +            cat >> $cwrappersource <<"EOF"
8643 +  return 127;
8644  }
8645  
8646  void *
8647 @@ -4699,48 +5123,148 @@ xstrdup (const char *string)
8648  ;
8649  }
8650  
8651 -char *
8652 -basename (const char *name)
8653 +const char *
8654 +base_name (const char *name)
8655  {
8656    const char *base;
8657  
8658  #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8659    /* Skip over the disk name in MSDOS pathnames. */
8660 -  if (isalpha (name[0]) && name[1] == ':')
8661 +  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
8662      name += 2;
8663  #endif
8664  
8665    for (base = name; *name; name++)
8666      if (IS_DIR_SEPARATOR (*name))
8667        base = name + 1;
8668 -  return (char *) base;
8669 +  return base;
8670  }
8671  
8672 +int
8673 +check_executable(const char * path)
8674 +{
8675 +  struct stat st;
8676 +
8677 +  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
8678 +  if ((!path) || (!*path))
8679 +    return 0;
8680 +
8681 +  if ((stat (path, &st) >= 0) &&
8682 +      (
8683 +        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
8684 +#if defined (S_IXOTH)
8685 +       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
8686 +#endif
8687 +#if defined (S_IXGRP)
8688 +       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
8689 +#endif
8690 +       ((st.st_mode & S_IXUSR) == S_IXUSR))
8691 +      )
8692 +    return 1;
8693 +  else
8694 +    return 0;
8695 +}
8696 +
8697 +/* Searches for the full path of the wrapper.  Returns
8698 +   newly allocated full path name if found, NULL otherwise */
8699  char *
8700 -fnqualify(const char *path)
8701 +find_executable (const char* wrapper)
8702  {
8703 -  size_t size;
8704 -  char *p;
8705 +  int has_slash = 0;
8706 +  const char* p;
8707 +  const char* p_next;
8708 +  /* static buffer for getcwd */
8709    char tmp[LT_PATHMAX + 1];
8710 +  int tmp_len;
8711 +  char* concat_name;
8712 +
8713 +  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
8714  
8715 -  assert(path != NULL);
8716 +  if ((wrapper == NULL) || (*wrapper == '\0'))
8717 +    return NULL;
8718  
8719 -  /* Is it qualified already? */
8720 +  /* Absolute path? */
8721 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8722 +  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
8723 +  {
8724 +    concat_name = xstrdup (wrapper);
8725 +    if (check_executable(concat_name))
8726 +      return concat_name;
8727 +    XFREE(concat_name);
8728 +  }
8729 +  else
8730 +  {
8731 +#endif
8732 +    if (IS_DIR_SEPARATOR (wrapper[0]))
8733 +    {
8734 +      concat_name = xstrdup (wrapper);
8735 +      if (check_executable(concat_name))
8736 +        return concat_name;
8737 +      XFREE(concat_name);
8738 +    }
8739  #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8740 -  if (isalpha (path[0]) && path[1] == ':')
8741 -    return xstrdup (path);
8742 +  }
8743  #endif
8744 -  if (IS_DIR_SEPARATOR (path[0]))
8745 -    return xstrdup (path);
8746  
8747 -  /* prepend the current directory */
8748 -  /* doesn't handle '~' */
8749 +  for (p = wrapper; *p; p++)
8750 +    if (*p == '/')
8751 +    {
8752 +      has_slash = 1;
8753 +      break;
8754 +    }
8755 +  if (!has_slash)
8756 +  {
8757 +    /* no slashes; search PATH */
8758 +    const char* path = getenv ("PATH");
8759 +    if (path != NULL)
8760 +    {
8761 +      for (p = path; *p; p = p_next)
8762 +      {
8763 +        const char* q;
8764 +        size_t p_len;
8765 +        for (q = p; *q; q++)
8766 +          if (IS_PATH_SEPARATOR(*q))
8767 +            break;
8768 +        p_len = q - p;
8769 +        p_next = (*q == '\0' ? q : q + 1);
8770 +        if (p_len == 0)
8771 +        {
8772 +          /* empty path: current directory */
8773 +          if (getcwd (tmp, LT_PATHMAX) == NULL)
8774 +            lt_fatal ("getcwd failed");
8775 +          tmp_len = strlen(tmp);
8776 +          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
8777 +          memcpy (concat_name, tmp, tmp_len);
8778 +          concat_name[tmp_len] = '/';
8779 +          strcpy (concat_name + tmp_len + 1, wrapper);
8780 +        }
8781 +        else
8782 +        {
8783 +          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
8784 +          memcpy (concat_name, p, p_len);
8785 +          concat_name[p_len] = '/';
8786 +          strcpy (concat_name + p_len + 1, wrapper);
8787 +        }
8788 +        if (check_executable(concat_name))
8789 +          return concat_name;
8790 +        XFREE(concat_name);
8791 +      }
8792 +    }
8793 +    /* not found in PATH; assume curdir */
8794 +  }
8795 +  /* Relative path | not found in path: prepend cwd */
8796    if (getcwd (tmp, LT_PATHMAX) == NULL)
8797      lt_fatal ("getcwd failed");
8798 -  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
8799 -  p = XMALLOC(char, size);
8800 -  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
8801 -  return p;
8802 +  tmp_len = strlen(tmp);
8803 +  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
8804 +  memcpy (concat_name, tmp, tmp_len);
8805 +  concat_name[tmp_len] = '/';
8806 +  strcpy (concat_name + tmp_len + 1, wrapper);
8807 +
8808 +  if (check_executable(concat_name))
8809 +    return concat_name;
8810 +  XFREE(concat_name);
8811 +  return NULL;
8812  }
8813  
8814  char *
8815 @@ -4784,16 +5308,16 @@ lt_fatal (const char *message, ...)
8816    va_end (ap);
8817  }
8818  EOF
8819 -         # we should really use a build-platform specific compiler
8820 -         # here, but OTOH, the wrappers (shell script and this C one)
8821 -         # are only useful if you want to execute the "real" binary.
8822 -         # Since the "real" binary is built for $host, then this
8823 -         # wrapper might as well be built for $host, too.
8824 -         $run $LTCC -s -o $cwrapper $cwrappersource
8825 -         ;;
8826 -       esac
8827 -       $rm $output
8828 -       trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
8829 +          # we should really use a build-platform specific compiler
8830 +          # here, but OTOH, the wrappers (shell script and this C one)
8831 +          # are only useful if you want to execute the "real" binary.
8832 +          # Since the "real" binary is built for $host, then this
8833 +          # wrapper might as well be built for $host, too.
8834 +          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
8835 +          ;;
8836 +        esac
8837 +        $rm $output
8838 +        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
8839  
8840         $echo > $output "\
8841  #! $SHELL
8842 @@ -4812,9 +5336,23 @@ EOF
8843  Xsed='${SED} -e 1s/^X//'
8844  sed_quote_subst='$sed_quote_subst'
8845  
8846 +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
8847 +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
8848 +  emulate sh
8849 +  NULLCMD=:
8850 +  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
8851 +  # is contrary to our usage.  Disable this feature.
8852 +  alias -g '\${1+\"\$@\"}'='\"\$@\"'
8853 +  setopt NO_GLOB_SUBST
8854 +else
8855 +  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
8856 +fi
8857 +BIN_SH=xpg4; export BIN_SH # for Tru64
8858 +DUALCASE=1; export DUALCASE # for MKS sh
8859 +
8860  # The HP-UX ksh and POSIX shell print the target directory to stdout
8861  # if CDPATH is set.
8862 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
8863 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8864  
8865  relink_command=\"$relink_command\"
8866  
8867 @@ -4943,23 +5481,23 @@ else
8868         # Backslashes separate directories on plain windows
8869         *-*-mingw | *-*-os2*)
8870           $echo >> $output "\
8871 -      exec \$progdir\\\\\$program \${1+\"\$@\"}
8872 +      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
8873  "
8874           ;;
8875  
8876         *)
8877           $echo >> $output "\
8878 -      exec \$progdir/\$program \${1+\"\$@\"}
8879 +      exec \"\$progdir/\$program\" \${1+\"\$@\"}
8880  "
8881           ;;
8882         esac
8883         $echo >> $output "\
8884 -      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
8885 +      \$echo \"\$0: cannot exec \$program \$*\"
8886        exit $EXIT_FAILURE
8887      fi
8888    else
8889      # The program doesn't exist.
8890 -    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
8891 +    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
8892      \$echo \"This script is just a wrapper for \$program.\" 1>&2
8893      $echo \"See the $PACKAGE documentation for more information.\" 1>&2
8894      exit $EXIT_FAILURE
8895 @@ -4991,71 +5529,73 @@ fi\
8896  
8897        if test -n "$addlibs"; then
8898         gentop="$output_objdir/${outputname}x"
8899 -       $show "${rm}r $gentop"
8900 -       $run ${rm}r "$gentop"
8901 -       $show "$mkdir $gentop"
8902 -       $run $mkdir "$gentop"
8903 -       status=$?
8904 -       if test "$status" -ne 0 && test ! -d "$gentop"; then
8905 -         exit $status
8906 -       fi
8907         generated="$generated $gentop"
8908  
8909 -       # Add in members from convenience archives.
8910 -       for xlib in $addlibs; do
8911 -         # Extract the objects.
8912 -         case $xlib in
8913 -         [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8914 -         *) xabs=`pwd`"/$xlib" ;;
8915 -         esac
8916 -         xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8917 -         xdir="$gentop/$xlib"
8918 -
8919 -         $show "${rm}r $xdir"
8920 -         $run ${rm}r "$xdir"
8921 -         $show "$mkdir $xdir"
8922 -         $run $mkdir "$xdir"
8923 -         status=$?
8924 -         if test "$status" -ne 0 && test ! -d "$xdir"; then
8925 -           exit $status
8926 -         fi
8927 -         # We will extract separately just the conflicting names and we will no
8928 -         # longer touch any unique names. It is faster to leave these extract
8929 -         # automatically by $AR in one run.
8930 -         $show "(cd $xdir && $AR x $xabs)"
8931 -         $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8932 -         if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
8933 -           :
8934 -         else
8935 -           $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
8936 -           $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
8937 -           $AR t "$xabs" | sort | uniq -cd | while read -r count name
8938 -           do
8939 -             i=1
8940 -             while test "$i" -le "$count"
8941 -             do
8942 -              # Put our $i before any first dot (extension)
8943 -              # Never overwrite any file
8944 -              name_to="$name"
8945 -              while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
8946 -              do
8947 -                name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
8948 -              done
8949 -              $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
8950 -              $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
8951 -              i=`expr $i + 1`
8952 -             done
8953 -           done
8954 -         fi
8955 -
8956 -         oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
8957 -       done
8958 +       func_extract_archives $gentop $addlibs
8959 +       oldobjs="$oldobjs $func_extract_archives_result"
8960        fi
8961  
8962        # Do each command in the archive commands.
8963        if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
8964         cmds=$old_archive_from_new_cmds
8965        else
8966 +       # POSIX demands no paths to be encoded in archives.  We have
8967 +       # to avoid creating archives with duplicate basenames if we
8968 +       # might have to extract them afterwards, e.g., when creating a
8969 +       # static archive out of a convenience library, or when linking
8970 +       # the entirety of a libtool archive into another (currently
8971 +       # not supported by libtool).
8972 +       if (for obj in $oldobjs
8973 +           do
8974 +             $echo "X$obj" | $Xsed -e 's%^.*/%%'
8975 +           done | sort | sort -uc >/dev/null 2>&1); then
8976 +         :
8977 +       else
8978 +         $echo "copying selected object files to avoid basename conflicts..."
8979 +
8980 +         if test -z "$gentop"; then
8981 +           gentop="$output_objdir/${outputname}x"
8982 +           generated="$generated $gentop"
8983 +
8984 +           $show "${rm}r $gentop"
8985 +           $run ${rm}r "$gentop"
8986 +           $show "$mkdir $gentop"
8987 +           $run $mkdir "$gentop"
8988 +           exit_status=$?
8989 +           if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
8990 +             exit $exit_status
8991 +           fi
8992 +         fi
8993 +
8994 +         save_oldobjs=$oldobjs
8995 +         oldobjs=
8996 +         counter=1
8997 +         for obj in $save_oldobjs
8998 +         do
8999 +           objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
9000 +           case " $oldobjs " in
9001 +           " ") oldobjs=$obj ;;
9002 +           *[\ /]"$objbase "*)
9003 +             while :; do
9004 +               # Make sure we don't pick an alternate name that also
9005 +               # overlaps.
9006 +               newobj=lt$counter-$objbase
9007 +               counter=`expr $counter + 1`
9008 +               case " $oldobjs " in
9009 +               *[\ /]"$newobj "*) ;;
9010 +               *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9011 +               esac
9012 +             done
9013 +             $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9014 +             $run ln "$obj" "$gentop/$newobj" ||
9015 +             $run cp "$obj" "$gentop/$newobj"
9016 +             oldobjs="$oldobjs $gentop/$newobj"
9017 +             ;;
9018 +           *) oldobjs="$oldobjs $obj" ;;
9019 +           esac
9020 +         done
9021 +       fi
9022 +
9023         eval cmds=\"$old_archive_cmds\"
9024  
9025         if len=`expr "X$cmds" : ".*"` &&
9026 @@ -5069,20 +5609,7 @@ fi\
9027           objlist=
9028           concat_cmds=
9029           save_oldobjs=$oldobjs
9030 -         # GNU ar 2.10+ was changed to match POSIX; thus no paths are
9031 -         # encoded into archives.  This makes 'ar r' malfunction in
9032 -         # this piecewise linking case whenever conflicting object
9033 -         # names appear in distinct ar calls; check, warn and compensate.
9034 -           if (for obj in $save_oldobjs
9035 -           do
9036 -             $echo "X$obj" | $Xsed -e 's%^.*/%%'
9037 -           done | sort | sort -uc >/dev/null 2>&1); then
9038 -           :
9039 -         else
9040 -           $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
9041 -           $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
9042 -           AR_FLAGS=cq
9043 -         fi
9044 +
9045           # Is there a better way of finding the last object in the list?
9046           for obj in $save_oldobjs
9047           do
9048 @@ -5093,7 +5620,7 @@ fi\
9049             oldobjs="$objlist $obj"
9050             objlist="$objlist $obj"
9051             eval test_cmds=\"$old_archive_cmds\"
9052 -           if len=`expr "X$test_cmds" : ".*"` &&
9053 +           if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
9054                test "$len" -le "$max_cmd_len"; then
9055               :
9056             else
9057 @@ -5151,7 +5678,7 @@ fi\
9058        done
9059        # Quote the link command for shipping.
9060        relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9061 -      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9062 +      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
9063        if test "$hardcode_automatic" = yes ; then
9064         relink_command=
9065        fi
9066 @@ -5290,11 +5817,11 @@ relink_command=\"$relink_command\""
9067      # install_prog (especially on Windows NT).
9068      if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
9069         # Allow the use of GNU shtool's install command.
9070 -       $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
9071 +       $echo "X$nonopt" | grep shtool > /dev/null; then
9072        # Aesthetically quote it.
9073        arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
9074        case $arg in
9075 -      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
9076 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
9077         arg="\"$arg\""
9078         ;;
9079        esac
9080 @@ -5303,14 +5830,14 @@ relink_command=\"$relink_command\""
9081        shift
9082      else
9083        install_prog=
9084 -      arg="$nonopt"
9085 +      arg=$nonopt
9086      fi
9087  
9088      # The real first argument should be the name of the installation program.
9089      # Aesthetically quote it.
9090      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9091      case $arg in
9092 -    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*)
9093 +    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*|"")
9094        arg="\"$arg\""
9095        ;;
9096      esac
9097 @@ -5328,28 +5855,31 @@ relink_command=\"$relink_command\""
9098      do
9099        if test -n "$dest"; then
9100         files="$files $dest"
9101 -       dest="$arg"
9102 +       dest=$arg
9103         continue
9104        fi
9105  
9106        case $arg in
9107        -d) isdir=yes ;;
9108 -      -f) prev="-f" ;;
9109 -      -g) prev="-g" ;;
9110 -      -m) prev="-m" ;;
9111 -      -o) prev="-o" ;;
9112 +      -f) 
9113 +       case " $install_prog " in
9114 +       *[\\\ /]cp\ *) ;;
9115 +       *) prev=$arg ;;
9116 +       esac
9117 +       ;;
9118 +      -g | -m | -o) prev=$arg ;;
9119        -s)
9120         stripme=" -s"
9121         continue
9122         ;;
9123 -      -*) ;;
9124 -
9125 +      -*)
9126 +       ;;
9127        *)
9128         # If the previous option needed an argument, then skip it.
9129         if test -n "$prev"; then
9130           prev=
9131         else
9132 -         dest="$arg"
9133 +         dest=$arg
9134           continue
9135         fi
9136         ;;
9137 @@ -5358,7 +5888,7 @@ relink_command=\"$relink_command\""
9138        # Aesthetically quote the argument.
9139        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9140        case $arg in
9141 -      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
9142 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
9143         arg="\"$arg\""
9144         ;;
9145        esac
9146 @@ -5493,9 +6023,9 @@ relink_command=\"$relink_command\""
9147  
9148           if test -n "$inst_prefix_dir"; then
9149             # Stick the inst_prefix_dir data into the link command.
9150 -           relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
9151 +           relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
9152           else
9153 -           relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
9154 +           relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
9155           fi
9156  
9157           $echo "$modename: warning: relinking \`$file'" 1>&2
9158 @@ -5527,11 +6057,14 @@ relink_command=\"$relink_command\""
9159  
9160           if test "$#" -gt 0; then
9161             # Delete the old symlinks, and create new ones.
9162 +           # Try `ln -sf' first, because the `ln' binary might depend on
9163 +           # the symlink we replace!  Solaris /bin/ln does not understand -f,
9164 +           # so we also need to try rm && ln -s.
9165             for linkname
9166             do
9167               if test "$linkname" != "$realname"; then
9168 -               $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
9169 -               $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
9170 +                $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
9171 +                $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
9172               fi
9173             done
9174           fi
9175 @@ -5544,7 +6077,16 @@ relink_command=\"$relink_command\""
9176             IFS="$save_ifs"
9177             eval cmd=\"$cmd\"
9178             $show "$cmd"
9179 -           $run eval "$cmd" || exit $?
9180 +           $run eval "$cmd" || {
9181 +             lt_exit=$?
9182 +
9183 +             # Restore the uninstalled library and exit
9184 +             if test "$mode" = relink; then
9185 +               $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
9186 +             fi
9187 +
9188 +             exit $lt_exit
9189 +           }
9190           done
9191           IFS="$save_ifs"
9192         fi
9193 @@ -5638,17 +6180,15 @@ relink_command=\"$relink_command\""
9194           notinst_deplibs=
9195           relink_command=
9196  
9197 -         # To insure that "foo" is sourced, and not "foo.exe",
9198 -         # finese the cygwin/MSYS system by explicitly sourcing "foo."
9199 -         # which disallows the automatic-append-.exe behavior.
9200 -         case $build in
9201 -         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
9202 -         *) wrapperdot=${wrapper} ;;
9203 -         esac
9204 +         # Note that it is not necessary on cygwin/mingw to append a dot to
9205 +         # foo even if both foo and FILE.exe exist: automatic-append-.exe
9206 +         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
9207 +         # `FILE.' does not work on cygwin managed mounts.
9208 +         #
9209           # If there is no directory component, then add one.
9210 -         case $file in
9211 -         */* | *\\*) . ${wrapperdot} ;;
9212 -         *) . ./${wrapperdot} ;;
9213 +         case $wrapper in
9214 +         */* | *\\*) . ${wrapper} ;;
9215 +         *) . ./${wrapper} ;;
9216           esac
9217  
9218           # Check the variables that should have been set.
9219 @@ -5676,38 +6216,25 @@ relink_command=\"$relink_command\""
9220           done
9221  
9222           relink_command=
9223 -         # To insure that "foo" is sourced, and not "foo.exe",
9224 -         # finese the cygwin/MSYS system by explicitly sourcing "foo."
9225 -         # which disallows the automatic-append-.exe behavior.
9226 -         case $build in
9227 -         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
9228 -         *) wrapperdot=${wrapper} ;;
9229 -         esac
9230 +         # Note that it is not necessary on cygwin/mingw to append a dot to
9231 +         # foo even if both foo and FILE.exe exist: automatic-append-.exe
9232 +         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
9233 +         # `FILE.' does not work on cygwin managed mounts.
9234 +         #
9235           # If there is no directory component, then add one.
9236 -         case $file in
9237 -         */* | *\\*) . ${wrapperdot} ;;
9238 -         *) . ./${wrapperdot} ;;
9239 +         case $wrapper in
9240 +         */* | *\\*) . ${wrapper} ;;
9241 +         *) . ./${wrapper} ;;
9242           esac
9243  
9244           outputname=
9245           if test "$fast_install" = no && test -n "$relink_command"; then
9246             if test "$finalize" = yes && test -z "$run"; then
9247 -             tmpdir="/tmp"
9248 -             test -n "$TMPDIR" && tmpdir="$TMPDIR"
9249 -             tmpdir="$tmpdir/libtool-$$"
9250 -             save_umask=`umask`
9251 -             umask 0077
9252 -             if $mkdir "$tmpdir"; then
9253 -               umask $save_umask
9254 -             else
9255 -               umask $save_umask
9256 -               $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
9257 -               continue
9258 -             fi
9259 +             tmpdir=`func_mktempdir`
9260               file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
9261               outputname="$tmpdir/$file"
9262               # Replace the output file specification.
9263 -             relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
9264 +             relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
9265  
9266               $show "$relink_command"
9267               if $run eval "$relink_command"; then :
9268 @@ -5727,7 +6254,7 @@ relink_command=\"$relink_command\""
9269         fi
9270  
9271         # remove .exe since cygwin /usr/bin/install will append another
9272 -       # one anyways
9273 +       # one anyway 
9274         case $install_prog,$host in
9275         */usr/bin/install*,*cygwin*)
9276           case $file:$destfile in
9277 @@ -5827,7 +6354,7 @@ relink_command=\"$relink_command\""
9278      # Exit here if they wanted silent mode.
9279      test "$show" = : && exit $EXIT_SUCCESS
9280  
9281 -    $echo "----------------------------------------------------------------------"
9282 +    $echo "X----------------------------------------------------------------------" | $Xsed
9283      $echo "Libraries have been installed in:"
9284      for libdir in $libdirs; do
9285        $echo "   $libdir"
9286 @@ -5860,7 +6387,7 @@ relink_command=\"$relink_command\""
9287      $echo
9288      $echo "See any operating system documentation about shared libraries for"
9289      $echo "more information, such as the ld(1) and ld.so(8) manual pages."
9290 -    $echo "----------------------------------------------------------------------"
9291 +    $echo "X----------------------------------------------------------------------" | $Xsed
9292      exit $EXIT_SUCCESS
9293      ;;
9294  
9295 @@ -5918,8 +6445,10 @@ relink_command=\"$relink_command\""
9296         if test -f "$dir/$objdir/$dlname"; then
9297           dir="$dir/$objdir"
9298         else
9299 -         $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
9300 -         exit $EXIT_FAILURE
9301 +         if test ! -f "$dir/$dlname"; then
9302 +           $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
9303 +           exit $EXIT_FAILURE
9304 +         fi
9305         fi
9306         ;;
9307  
9308 @@ -5983,12 +6512,12 @@ relink_command=\"$relink_command\""
9309        fi
9310  
9311        # Restore saved environment variables
9312 -      if test "${save_LC_ALL+set}" = set; then
9313 -       LC_ALL="$save_LC_ALL"; export LC_ALL
9314 -      fi
9315 -      if test "${save_LANG+set}" = set; then
9316 -       LANG="$save_LANG"; export LANG
9317 -      fi
9318 +      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
9319 +      do
9320 +       eval "if test \"\${save_$lt_var+set}\" = set; then
9321 +               $lt_var=\$save_$lt_var; export $lt_var
9322 +             fi"
9323 +      done
9324  
9325        # Now prepare to actually exec the command.
9326        exec_cmd="\$cmd$args"
9327 @@ -6077,9 +6606,17 @@ relink_command=\"$relink_command\""
9328             rmfiles="$rmfiles $objdir/$n"
9329           done
9330           test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
9331 -         test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9332  
9333 -         if test "$mode" = uninstall; then
9334 +         case "$mode" in
9335 +         clean)
9336 +           case "  $library_names " in
9337 +           # "  " in the beginning catches empty $dlname
9338 +           *" $dlname "*) ;;
9339 +           *) rmfiles="$rmfiles $objdir/$dlname" ;;
9340 +           esac
9341 +            test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9342 +           ;;
9343 +         uninstall)
9344             if test -n "$library_names"; then
9345               # Do each command in the postuninstall commands.
9346               cmds=$postuninstall_cmds
9347 @@ -6112,7 +6649,8 @@ relink_command=\"$relink_command\""
9348               IFS="$save_ifs"
9349             fi
9350             # FIXME: should reinstall the best remaining shared library.
9351 -         fi
9352 +           ;;
9353 +         esac
9354         fi
9355         ;;
9356  
9357 @@ -6336,9 +6874,9 @@ The following components of LINK-COMMAND are treated specially:
9358    -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
9359    -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
9360    -export-symbols SYMFILE
9361 -                   try to export only the symbols listed in SYMFILE
9362 +                    try to export only the symbols listed in SYMFILE
9363    -export-symbols-regex REGEX
9364 -                   try to export only the symbols matching REGEX
9365 +                    try to export only the symbols matching REGEX
9366    -LLIBDIR          search LIBDIR for required installed libraries
9367    -lNAME            OUTPUT-FILE requires the installed library libNAME
9368    -module           build a library that can dlopened
9369 @@ -6352,9 +6890,11 @@ The following components of LINK-COMMAND are treated specially:
9370    -release RELEASE  specify package release information
9371    -rpath LIBDIR     the created library will eventually be installed in LIBDIR
9372    -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
9373 -  -static           do not do any dynamic linking of libtool libraries
9374 +  -static           do not do any dynamic linking of uninstalled libtool libraries
9375 +  -static-libtool-libs
9376 +                    do not do any dynamic linking of libtool libraries
9377    -version-info CURRENT[:REVISION[:AGE]]
9378 -                   specify library version info [each variable defaults to 0]
9379 +                    specify library version info [each variable defaults to 0]
9380  
9381  All other options (arguments beginning with \`-') are ignored.
9382  
9383 @@ -6397,7 +6937,7 @@ esac
9384  $echo
9385  $echo "Try \`$modename --help' for more information about other modes."
9386  
9387 -exit $EXIT_SUCCESS
9388 +exit $?
9389  
9390  # The TAGs below are defined such that we never get into a situation
9391  # in which we disable both kinds of libraries.  Given conflicting
9392 @@ -6411,12 +6951,11 @@ exit $EXIT_SUCCESS
9393  # configuration.  But we'll never go from static-only to shared-only.
9394  
9395  # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9396 -build_libtool_libs=no
9397 -build_old_libs=yes
9398 +disable_libs=shared
9399  # ### END LIBTOOL TAG CONFIG: disable-shared
9400  
9401  # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9402 -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
9403 +disable_libs=static
9404  # ### END LIBTOOL TAG CONFIG: disable-static
9405  
9406  # Local Variables:
9407 diff --git a/configure b/configure
9408 index 977dba8..2935f10 100755
9409 --- a/configure
9410 +++ b/configure
9411 @@ -1,26 +1,83 @@
9412  #! /bin/sh
9413  # From configure.in Revision: 1.56 .
9414  # Guess values for system-dependent variables and create Makefiles.
9415 -# Generated by GNU Autoconf 2.59.
9416 +# Generated by GNU Autoconf 2.63.
9417  #
9418 -# Copyright (C) 2003 Free Software Foundation, Inc.
9419 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9420 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9421  # This configure script is free software; the Free Software Foundation
9422  # gives unlimited permission to copy, distribute and modify it.
9423  ## --------------------- ##
9424  ## M4sh Initialization.  ##
9425  ## --------------------- ##
9426  
9427 -# Be Bourne compatible
9428 +# Be more Bourne compatible
9429 +DUALCASE=1; export DUALCASE # for MKS sh
9430  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9431    emulate sh
9432    NULLCMD=:
9433 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9434 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9435    # is contrary to our usage.  Disable this feature.
9436    alias -g '${1+"$@"}'='"$@"'
9437 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9438 -  set -o posix
9439 +  setopt NO_GLOB_SUBST
9440 +else
9441 +  case `(set -o) 2>/dev/null` in
9442 +  *posix*) set -o posix ;;
9443 +esac
9444 +
9445 +fi
9446 +
9447 +
9448 +
9449 +
9450 +# PATH needs CR
9451 +# Avoid depending upon Character Ranges.
9452 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9453 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9454 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9455 +as_cr_digits='0123456789'
9456 +as_cr_alnum=$as_cr_Letters$as_cr_digits
9457 +
9458 +as_nl='
9459 +'
9460 +export as_nl
9461 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
9462 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9463 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9464 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9465 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9466 +  as_echo='printf %s\n'
9467 +  as_echo_n='printf %s'
9468 +else
9469 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9470 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9471 +    as_echo_n='/usr/ucb/echo -n'
9472 +  else
9473 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9474 +    as_echo_n_body='eval
9475 +      arg=$1;
9476 +      case $arg in
9477 +      *"$as_nl"*)
9478 +       expr "X$arg" : "X\\(.*\\)$as_nl";
9479 +       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9480 +      esac;
9481 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9482 +    '
9483 +    export as_echo_n_body
9484 +    as_echo_n='sh -c $as_echo_n_body as_echo'
9485 +  fi
9486 +  export as_echo_body
9487 +  as_echo='sh -c $as_echo_body as_echo'
9488 +fi
9489 +
9490 +# The user is always right.
9491 +if test "${PATH_SEPARATOR+set}" != set; then
9492 +  PATH_SEPARATOR=:
9493 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9494 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9495 +      PATH_SEPARATOR=';'
9496 +  }
9497  fi
9498 -DUALCASE=1; export DUALCASE # for MKS sh
9499  
9500  # Support unset when possible.
9501  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9502 @@ -30,33 +87,60 @@ else
9503  fi
9504  
9505  
9506 +# IFS
9507 +# We need space, tab and new line, in precisely that order.  Quoting is
9508 +# there to prevent editors from complaining about space-tab.
9509 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9510 +# splitting by setting IFS to empty value.)
9511 +IFS=" ""       $as_nl"
9512 +
9513 +# Find who we are.  Look in the path if we contain no directory separator.
9514 +case $0 in
9515 +  *[\\/]* ) as_myself=$0 ;;
9516 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 +for as_dir in $PATH
9518 +do
9519 +  IFS=$as_save_IFS
9520 +  test -z "$as_dir" && as_dir=.
9521 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9522 +done
9523 +IFS=$as_save_IFS
9524 +
9525 +     ;;
9526 +esac
9527 +# We did not find ourselves, most probably we were run as `sh COMMAND'
9528 +# in which case we are not to be found in the path.
9529 +if test "x$as_myself" = x; then
9530 +  as_myself=$0
9531 +fi
9532 +if test ! -f "$as_myself"; then
9533 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9534 +  { (exit 1); exit 1; }
9535 +fi
9536 +
9537  # Work around bugs in pre-3.0 UWIN ksh.
9538 -$as_unset ENV MAIL MAILPATH
9539 +for as_var in ENV MAIL MAILPATH
9540 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9541 +done
9542  PS1='$ '
9543  PS2='> '
9544  PS4='+ '
9545  
9546  # NLS nuisances.
9547 -for as_var in \
9548 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9549 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9550 -  LC_TELEPHONE LC_TIME
9551 -do
9552 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9553 -    eval $as_var=C; export $as_var
9554 -  else
9555 -    $as_unset $as_var
9556 -  fi
9557 -done
9558 +LC_ALL=C
9559 +export LC_ALL
9560 +LANGUAGE=C
9561 +export LANGUAGE
9562  
9563  # Required to use basename.
9564 -if expr a : '\(a\)' >/dev/null 2>&1; then
9565 +if expr a : '\(a\)' >/dev/null 2>&1 &&
9566 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9567    as_expr=expr
9568  else
9569    as_expr=false
9570  fi
9571  
9572 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9573 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9574    as_basename=basename
9575  else
9576    as_basename=false
9577 @@ -64,157 +148,391 @@ fi
9578  
9579  
9580  # Name of the executable.
9581 -as_me=`$as_basename "$0" ||
9582 +as_me=`$as_basename -- "$0" ||
9583  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9584          X"$0" : 'X\(//\)$' \| \
9585 -        X"$0" : 'X\(/\)$' \| \
9586 -        .     : '\(.\)' 2>/dev/null ||
9587 -echo X/"$0" |
9588 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9589 -         /^X\/\(\/\/\)$/{ s//\1/; q; }
9590 -         /^X\/\(\/\).*/{ s//\1/; q; }
9591 -         s/.*/./; q'`
9592 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9593 +$as_echo X/"$0" |
9594 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
9595 +           s//\1/
9596 +           q
9597 +         }
9598 +         /^X\/\(\/\/\)$/{
9599 +           s//\1/
9600 +           q
9601 +         }
9602 +         /^X\/\(\/\).*/{
9603 +           s//\1/
9604 +           q
9605 +         }
9606 +         s/.*/./; q'`
9607  
9608 +# CDPATH.
9609 +$as_unset CDPATH
9610  
9611 -# PATH needs CR, and LINENO needs CR and PATH.
9612 -# Avoid depending upon Character Ranges.
9613 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9614 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9615 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9616 -as_cr_digits='0123456789'
9617 -as_cr_alnum=$as_cr_Letters$as_cr_digits
9618  
9619 -# The user is always right.
9620 -if test "${PATH_SEPARATOR+set}" != set; then
9621 -  echo "#! /bin/sh" >conf$$.sh
9622 -  echo  "exit 0"   >>conf$$.sh
9623 -  chmod +x conf$$.sh
9624 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9625 -    PATH_SEPARATOR=';'
9626 -  else
9627 -    PATH_SEPARATOR=:
9628 -  fi
9629 -  rm -f conf$$.sh
9630 +if test "x$CONFIG_SHELL" = x; then
9631 +  if (eval ":") 2>/dev/null; then
9632 +  as_have_required=yes
9633 +else
9634 +  as_have_required=no
9635  fi
9636  
9637 +  if test $as_have_required = yes &&    (eval ":
9638 +(as_func_return () {
9639 +  (exit \$1)
9640 +}
9641 +as_func_success () {
9642 +  as_func_return 0
9643 +}
9644 +as_func_failure () {
9645 +  as_func_return 1
9646 +}
9647 +as_func_ret_success () {
9648 +  return 0
9649 +}
9650 +as_func_ret_failure () {
9651 +  return 1
9652 +}
9653  
9654 -  as_lineno_1=$LINENO
9655 -  as_lineno_2=$LINENO
9656 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9657 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
9658 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9659 -  # Find who we are.  Look in the path if we contain no path at all
9660 -  # relative or not.
9661 -  case $0 in
9662 -    *[\\/]* ) as_myself=$0 ;;
9663 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 -for as_dir in $PATH
9665 -do
9666 -  IFS=$as_save_IFS
9667 -  test -z "$as_dir" && as_dir=.
9668 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9669 -done
9670 +exitcode=0
9671 +if as_func_success; then
9672 +  :
9673 +else
9674 +  exitcode=1
9675 +  echo as_func_success failed.
9676 +fi
9677  
9678 -       ;;
9679 -  esac
9680 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
9681 -  # in which case we are not to be found in the path.
9682 -  if test "x$as_myself" = x; then
9683 -    as_myself=$0
9684 -  fi
9685 -  if test ! -f "$as_myself"; then
9686 -    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
9687 -   { (exit 1); exit 1; }; }
9688 -  fi
9689 -  case $CONFIG_SHELL in
9690 -  '')
9691 +if as_func_failure; then
9692 +  exitcode=1
9693 +  echo as_func_failure succeeded.
9694 +fi
9695 +
9696 +if as_func_ret_success; then
9697 +  :
9698 +else
9699 +  exitcode=1
9700 +  echo as_func_ret_success failed.
9701 +fi
9702 +
9703 +if as_func_ret_failure; then
9704 +  exitcode=1
9705 +  echo as_func_ret_failure succeeded.
9706 +fi
9707 +
9708 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
9709 +  :
9710 +else
9711 +  exitcode=1
9712 +  echo positional parameters were not saved.
9713 +fi
9714 +
9715 +test \$exitcode = 0) || { (exit 1); exit 1; }
9716 +
9717 +(
9718 +  as_lineno_1=\$LINENO
9719 +  as_lineno_2=\$LINENO
9720 +  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
9721 +  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
9722 +") 2> /dev/null; then
9723 +  :
9724 +else
9725 +  as_candidate_shells=
9726      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727  for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9728  do
9729    IFS=$as_save_IFS
9730    test -z "$as_dir" && as_dir=.
9731 -  for as_base in sh bash ksh sh5; do
9732 -        case $as_dir in
9733 +  case $as_dir in
9734          /*)
9735 -          if ("$as_dir/$as_base" -c '
9736 +          for as_base in sh bash ksh sh5; do
9737 +            as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
9738 +          done;;
9739 +       esac
9740 +done
9741 +IFS=$as_save_IFS
9742 +
9743 +
9744 +      for as_shell in $as_candidate_shells $SHELL; do
9745 +        # Try only shells that exist, to save several forks.
9746 +        if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
9747 +               { ("$as_shell") 2> /dev/null <<\_ASEOF
9748 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9749 +  emulate sh
9750 +  NULLCMD=:
9751 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9752 +  # is contrary to our usage.  Disable this feature.
9753 +  alias -g '${1+"$@"}'='"$@"'
9754 +  setopt NO_GLOB_SUBST
9755 +else
9756 +  case `(set -o) 2>/dev/null` in
9757 +  *posix*) set -o posix ;;
9758 +esac
9759 +
9760 +fi
9761 +
9762 +
9763 +:
9764 +_ASEOF
9765 +}; then
9766 +  CONFIG_SHELL=$as_shell
9767 +              as_have_required=yes
9768 +              if { "$as_shell" 2> /dev/null <<\_ASEOF
9769 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9770 +  emulate sh
9771 +  NULLCMD=:
9772 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9773 +  # is contrary to our usage.  Disable this feature.
9774 +  alias -g '${1+"$@"}'='"$@"'
9775 +  setopt NO_GLOB_SUBST
9776 +else
9777 +  case `(set -o) 2>/dev/null` in
9778 +  *posix*) set -o posix ;;
9779 +esac
9780 +
9781 +fi
9782 +
9783 +
9784 +:
9785 +(as_func_return () {
9786 +  (exit $1)
9787 +}
9788 +as_func_success () {
9789 +  as_func_return 0
9790 +}
9791 +as_func_failure () {
9792 +  as_func_return 1
9793 +}
9794 +as_func_ret_success () {
9795 +  return 0
9796 +}
9797 +as_func_ret_failure () {
9798 +  return 1
9799 +}
9800 +
9801 +exitcode=0
9802 +if as_func_success; then
9803 +  :
9804 +else
9805 +  exitcode=1
9806 +  echo as_func_success failed.
9807 +fi
9808 +
9809 +if as_func_failure; then
9810 +  exitcode=1
9811 +  echo as_func_failure succeeded.
9812 +fi
9813 +
9814 +if as_func_ret_success; then
9815 +  :
9816 +else
9817 +  exitcode=1
9818 +  echo as_func_ret_success failed.
9819 +fi
9820 +
9821 +if as_func_ret_failure; then
9822 +  exitcode=1
9823 +  echo as_func_ret_failure succeeded.
9824 +fi
9825 +
9826 +if ( set x; as_func_ret_success y && test x = "$1" ); then
9827 +  :
9828 +else
9829 +  exitcode=1
9830 +  echo positional parameters were not saved.
9831 +fi
9832 +
9833 +test $exitcode = 0) || { (exit 1); exit 1; }
9834 +
9835 +(
9836    as_lineno_1=$LINENO
9837    as_lineno_2=$LINENO
9838 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9839    test "x$as_lineno_1" != "x$as_lineno_2" &&
9840 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9841 -            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9842 -            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9843 -            CONFIG_SHELL=$as_dir/$as_base
9844 -            export CONFIG_SHELL
9845 -            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9846 -          fi;;
9847 -        esac
9848 -       done
9849 -done
9850 -;;
9851 -  esac
9852 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
9853 +
9854 +_ASEOF
9855 +}; then
9856 +  break
9857 +fi
9858 +
9859 +fi
9860 +
9861 +      done
9862 +
9863 +      if test "x$CONFIG_SHELL" != x; then
9864 +  for as_var in BASH_ENV ENV
9865 +       do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9866 +       done
9867 +       export CONFIG_SHELL
9868 +       exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
9869 +fi
9870 +
9871 +
9872 +    if test $as_have_required = no; then
9873 +  echo This script requires a shell more modern than all the
9874 +      echo shells that I found on your system.  Please install a
9875 +      echo modern shell, or manually run the script under such a
9876 +      echo shell if you do have one.
9877 +      { (exit 1); exit 1; }
9878 +fi
9879 +
9880 +
9881 +fi
9882 +
9883 +fi
9884 +
9885 +
9886 +
9887 +(eval "as_func_return () {
9888 +  (exit \$1)
9889 +}
9890 +as_func_success () {
9891 +  as_func_return 0
9892 +}
9893 +as_func_failure () {
9894 +  as_func_return 1
9895 +}
9896 +as_func_ret_success () {
9897 +  return 0
9898 +}
9899 +as_func_ret_failure () {
9900 +  return 1
9901 +}
9902 +
9903 +exitcode=0
9904 +if as_func_success; then
9905 +  :
9906 +else
9907 +  exitcode=1
9908 +  echo as_func_success failed.
9909 +fi
9910 +
9911 +if as_func_failure; then
9912 +  exitcode=1
9913 +  echo as_func_failure succeeded.
9914 +fi
9915 +
9916 +if as_func_ret_success; then
9917 +  :
9918 +else
9919 +  exitcode=1
9920 +  echo as_func_ret_success failed.
9921 +fi
9922 +
9923 +if as_func_ret_failure; then
9924 +  exitcode=1
9925 +  echo as_func_ret_failure succeeded.
9926 +fi
9927 +
9928 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
9929 +  :
9930 +else
9931 +  exitcode=1
9932 +  echo positional parameters were not saved.
9933 +fi
9934 +
9935 +test \$exitcode = 0") || {
9936 +  echo No shell found that supports shell functions.
9937 +  echo Please tell bug-autoconf@gnu.org about your system,
9938 +  echo including any error possibly output before this message.
9939 +  echo This can help us improve future autoconf versions.
9940 +  echo Configuration will now proceed without shell functions.
9941 +}
9942 +
9943 +
9944 +
9945 +  as_lineno_1=$LINENO
9946 +  as_lineno_2=$LINENO
9947 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
9948 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9949  
9950    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9951    # uniformly replaced by the line number.  The first 'sed' inserts a
9952 -  # line-number line before each line; the second 'sed' does the real
9953 -  # work.  The second script uses 'N' to pair each line-number line
9954 -  # with the numbered line, and appends trailing '-' during
9955 -  # substitution so that $LINENO is not a special case at line end.
9956 +  # line-number line after each line using $LINENO; the second 'sed'
9957 +  # does the real work.  The second script uses 'N' to pair each
9958 +  # line-number line with the line containing $LINENO, and appends
9959 +  # trailing '-' during substitution so that $LINENO is not a special
9960 +  # case at line end.
9961    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9962 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9963 -  sed '=' <$as_myself |
9964 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
9965 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
9966 +  sed -n '
9967 +    p
9968 +    /[$]LINENO/=
9969 +  ' <$as_myself |
9970      sed '
9971 +      s/[$]LINENO.*/&-/
9972 +      t lineno
9973 +      b
9974 +      :lineno
9975        N
9976 -      s,$,-,
9977 -      : loop
9978 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9979 +      :loop
9980 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9981        t loop
9982 -      s,-$,,
9983 -      s,^['$as_cr_digits']*\n,,
9984 +      s/-\n.*//
9985      ' >$as_me.lineno &&
9986 -  chmod +x $as_me.lineno ||
9987 -    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9988 +  chmod +x "$as_me.lineno" ||
9989 +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9990     { (exit 1); exit 1; }; }
9991  
9992    # Don't try to exec as it changes $[0], causing all sort of problems
9993    # (the dirname of $[0] is not the place where we might find the
9994 -  # original and so on.  Autoconf is especially sensible to this).
9995 -  . ./$as_me.lineno
9996 +  # original and so on.  Autoconf is especially sensitive to this).
9997 +  . "./$as_me.lineno"
9998    # Exit status is that of the last command.
9999    exit
10000  }
10001  
10002  
10003 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10004 -  *c*,-n*) ECHO_N= ECHO_C='
10005 -' ECHO_T='     ' ;;
10006 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10007 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10008 -esac
10009 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10010 +  as_dirname=dirname
10011 +else
10012 +  as_dirname=false
10013 +fi
10014  
10015 -if expr a : '\(a\)' >/dev/null 2>&1; then
10016 +ECHO_C= ECHO_N= ECHO_T=
10017 +case `echo -n x` in
10018 +-n*)
10019 +  case `echo 'x\c'` in
10020 +  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
10021 +  *)   ECHO_C='\c';;
10022 +  esac;;
10023 +*)
10024 +  ECHO_N='-n';;
10025 +esac
10026 +if expr a : '\(a\)' >/dev/null 2>&1 &&
10027 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10028    as_expr=expr
10029  else
10030    as_expr=false
10031  fi
10032  
10033  rm -f conf$$ conf$$.exe conf$$.file
10034 -echo >conf$$.file
10035 -if ln -s conf$$.file conf$$ 2>/dev/null; then
10036 -  # We could just check for DJGPP; but this test a) works b) is more generic
10037 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10038 -  if test -f conf$$.exe; then
10039 -    # Don't use ln at all; we don't have any links
10040 -    as_ln_s='cp -p'
10041 -  else
10042 +if test -d conf$$.dir; then
10043 +  rm -f conf$$.dir/conf$$.file
10044 +else
10045 +  rm -f conf$$.dir
10046 +  mkdir conf$$.dir 2>/dev/null
10047 +fi
10048 +if (echo >conf$$.file) 2>/dev/null; then
10049 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
10050      as_ln_s='ln -s'
10051 +    # ... but there are two gotchas:
10052 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10053 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10054 +    # In both cases, we have to default to `cp -p'.
10055 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10056 +      as_ln_s='cp -p'
10057 +  elif ln conf$$.file conf$$ 2>/dev/null; then
10058 +    as_ln_s=ln
10059 +  else
10060 +    as_ln_s='cp -p'
10061    fi
10062 -elif ln conf$$.file conf$$ 2>/dev/null; then
10063 -  as_ln_s=ln
10064  else
10065    as_ln_s='cp -p'
10066  fi
10067 -rm -f conf$$ conf$$.exe conf$$.file
10068 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10069 +rmdir conf$$.dir 2>/dev/null
10070  
10071  if mkdir -p . 2>/dev/null; then
10072    as_mkdir_p=:
10073 @@ -223,7 +541,28 @@ else
10074    as_mkdir_p=false
10075  fi
10076  
10077 -as_executable_p="test -f"
10078 +if test -x / >/dev/null 2>&1; then
10079 +  as_test_x='test -x'
10080 +else
10081 +  if ls -dL / >/dev/null 2>&1; then
10082 +    as_ls_L_option=L
10083 +  else
10084 +    as_ls_L_option=
10085 +  fi
10086 +  as_test_x='
10087 +    eval sh -c '\''
10088 +      if test -d "$1"; then
10089 +       test -d "$1/.";
10090 +      else
10091 +       case $1 in
10092 +       -*)set "./$1";;
10093 +       esac;
10094 +       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10095 +       ???[sx]*):;;*)false;;esac;fi
10096 +    '\'' sh
10097 +  '
10098 +fi
10099 +as_executable_p=$as_test_x
10100  
10101  # Sed expression to map a string onto a valid CPP name.
10102  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10103 @@ -232,15 +571,6 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10104  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10105  
10106  
10107 -# IFS
10108 -# We need space, tab and new line, in precisely that order.
10109 -as_nl='
10110 -'
10111 -IFS="  $as_nl"
10112 -
10113 -# CDPATH.
10114 -$as_unset CDPATH
10115 -
10116  
10117  
10118  # Check that we are running under the correct shell.
10119 @@ -279,15 +609,15 @@ fi
10120  
10121  # The HP-UX ksh and POSIX shell print the target directory to stdout
10122  # if CDPATH is set.
10123 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10124 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10125  
10126  if test -z "$ECHO"; then
10127  if test "X${echo_test_string+set}" != Xset; then
10128  # find a string as large as possible, as long as the shell can cope with it
10129    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
10130      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
10131 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
10132 -       echo_test_string="`eval $cmd`" &&
10133 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
10134 +       echo_test_string=`eval $cmd` &&
10135         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
10136      then
10137        break
10138 @@ -396,29 +726,26 @@ tagnames=${tagnames+${tagnames},}CXX
10139  
10140  tagnames=${tagnames+${tagnames},}F77
10141  
10142 +exec 7<&0 </dev/null 6>&1
10143 +
10144  # Name of the host.
10145  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
10146  # so uname gets run too.
10147  ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
10148  
10149 -exec 6>&1
10150 -
10151  #
10152  # Initializations.
10153  #
10154  ac_default_prefix=/usr/local
10155 +ac_clean_files=
10156  ac_config_libobj_dir=.
10157 +LIBOBJS=
10158  cross_compiling=no
10159  subdirs=
10160  MFLAGS=
10161  MAKEFLAGS=
10162  SHELL=${CONFIG_SHELL-/bin/sh}
10163  
10164 -# Maximum number of lines to put in a shell here document.
10165 -# This variable seems obsolete.  It should probably be removed, and
10166 -# only ac_max_sed_lines should be used.
10167 -: ${ac_max_here_lines=38}
10168 -
10169  # Identity of this package.
10170  PACKAGE_NAME=
10171  PACKAGE_TARNAME=
10172 @@ -431,46 +758,192 @@ ac_default_prefix=
10173  # Factoring default headers for most tests.
10174  ac_includes_default="\
10175  #include <stdio.h>
10176 -#if HAVE_SYS_TYPES_H
10177 +#ifdef HAVE_SYS_TYPES_H
10178  # include <sys/types.h>
10179  #endif
10180 -#if HAVE_SYS_STAT_H
10181 +#ifdef HAVE_SYS_STAT_H
10182  # include <sys/stat.h>
10183  #endif
10184 -#if STDC_HEADERS
10185 +#ifdef STDC_HEADERS
10186  # include <stdlib.h>
10187  # include <stddef.h>
10188  #else
10189 -# if HAVE_STDLIB_H
10190 +# ifdef HAVE_STDLIB_H
10191  #  include <stdlib.h>
10192  # endif
10193  #endif
10194 -#if HAVE_STRING_H
10195 -# if !STDC_HEADERS && HAVE_MEMORY_H
10196 +#ifdef HAVE_STRING_H
10197 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
10198  #  include <memory.h>
10199  # endif
10200  # include <string.h>
10201  #endif
10202 -#if HAVE_STRINGS_H
10203 +#ifdef HAVE_STRINGS_H
10204  # include <strings.h>
10205  #endif
10206 -#if HAVE_INTTYPES_H
10207 +#ifdef HAVE_INTTYPES_H
10208  # include <inttypes.h>
10209 -#else
10210 -# if HAVE_STDINT_H
10211 -#  include <stdint.h>
10212 -# endif
10213  #endif
10214 -#if HAVE_UNISTD_H
10215 +#ifdef HAVE_STDINT_H
10216 +# include <stdint.h>
10217 +#endif
10218 +#ifdef HAVE_UNISTD_H
10219  # include <unistd.h>
10220  #endif"
10221  
10222 -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'
10223 +ac_subst_vars='LTLIBOBJS
10224 +LIBOBJS
10225 +OS
10226 +LIBVER
10227 +RENAME_FALSE
10228 +RENAME_TRUE
10229 +LIBTOOL
10230 +ac_ct_F77
10231 +FFLAGS
10232 +F77
10233 +CXXCPP
10234 +am__fastdepCXX_FALSE
10235 +am__fastdepCXX_TRUE
10236 +CXXDEPMODE
10237 +ac_ct_CXX
10238 +CXXFLAGS
10239 +CXX
10240 +CPP
10241 +NMEDIT
10242 +DSYMUTIL
10243 +RANLIB
10244 +AR
10245 +ECHO
10246 +LN_S
10247 +EGREP
10248 +GREP
10249 +SED
10250 +am__fastdepCC_FALSE
10251 +am__fastdepCC_TRUE
10252 +CCDEPMODE
10253 +AMDEPBACKSLASH
10254 +AMDEP_FALSE
10255 +AMDEP_TRUE
10256 +am__quote
10257 +am__include
10258 +DEPDIR
10259 +OBJEXT
10260 +EXEEXT
10261 +ac_ct_CC
10262 +CPPFLAGS
10263 +LDFLAGS
10264 +CFLAGS
10265 +CC
10266 +MAINT
10267 +MAINTAINER_MODE_FALSE
10268 +MAINTAINER_MODE_TRUE
10269 +am__untar
10270 +am__tar
10271 +AMTAR
10272 +am__leading_dot
10273 +SET_MAKE
10274 +AWK
10275 +mkdir_p
10276 +INSTALL_STRIP_PROGRAM
10277 +STRIP
10278 +install_sh
10279 +MAKEINFO
10280 +AUTOHEADER
10281 +AUTOMAKE
10282 +AUTOCONF
10283 +ACLOCAL
10284 +VERSION
10285 +PACKAGE
10286 +CYGPATH_W
10287 +INSTALL_DATA
10288 +INSTALL_SCRIPT
10289 +INSTALL_PROGRAM
10290 +target_os
10291 +target_vendor
10292 +target_cpu
10293 +target
10294 +host_os
10295 +host_vendor
10296 +host_cpu
10297 +host
10298 +build_os
10299 +build_vendor
10300 +build_cpu
10301 +build
10302 +target_alias
10303 +host_alias
10304 +build_alias
10305 +LIBS
10306 +ECHO_T
10307 +ECHO_N
10308 +ECHO_C
10309 +DEFS
10310 +mandir
10311 +localedir
10312 +libdir
10313 +psdir
10314 +pdfdir
10315 +dvidir
10316 +htmldir
10317 +infodir
10318 +docdir
10319 +oldincludedir
10320 +includedir
10321 +localstatedir
10322 +sharedstatedir
10323 +sysconfdir
10324 +datadir
10325 +datarootdir
10326 +libexecdir
10327 +sbindir
10328 +bindir
10329 +program_transform_name
10330 +prefix
10331 +exec_prefix
10332 +PACKAGE_BUGREPORT
10333 +PACKAGE_STRING
10334 +PACKAGE_VERSION
10335 +PACKAGE_TARNAME
10336 +PACKAGE_NAME
10337 +PATH_SEPARATOR
10338 +SHELL'
10339  ac_subst_files=''
10340 +ac_user_opts='
10341 +enable_option_checking
10342 +enable_maintainer_mode
10343 +enable_dependency_tracking
10344 +enable_static
10345 +enable_shared
10346 +enable_fast_install
10347 +with_gnu_ld
10348 +enable_libtool_lock
10349 +with_pic
10350 +with_tags
10351 +with_mysql
10352 +enable_debug
10353 +'
10354 +      ac_precious_vars='build_alias
10355 +host_alias
10356 +target_alias
10357 +CC
10358 +CFLAGS
10359 +LDFLAGS
10360 +LIBS
10361 +CPPFLAGS
10362 +CPP
10363 +CXX
10364 +CXXFLAGS
10365 +CCC
10366 +CXXCPP
10367 +F77
10368 +FFLAGS'
10369 +
10370  
10371  # Initialize some variables set by options.
10372  ac_init_help=
10373  ac_init_version=false
10374 +ac_unrecognized_opts=
10375 +ac_unrecognized_sep=
10376  # The variables have the same names as the options, with
10377  # dashes changed to underlines.
10378  cache_file=/dev/null
10379 @@ -493,34 +966,48 @@ x_libraries=NONE
10380  # and all the variables that are supposed to be based on exec_prefix
10381  # by default will actually change.
10382  # Use braces instead of parens because sh, perl, etc. also accept them.
10383 +# (The list follows the same order as the GNU Coding Standards.)
10384  bindir='${exec_prefix}/bin'
10385  sbindir='${exec_prefix}/sbin'
10386  libexecdir='${exec_prefix}/libexec'
10387 -datadir='${prefix}/share'
10388 +datarootdir='${prefix}/share'
10389 +datadir='${datarootdir}'
10390  sysconfdir='${prefix}/etc'
10391  sharedstatedir='${prefix}/com'
10392  localstatedir='${prefix}/var'
10393 -libdir='${exec_prefix}/lib'
10394  includedir='${prefix}/include'
10395  oldincludedir='/usr/include'
10396 -infodir='${prefix}/info'
10397 -mandir='${prefix}/man'
10398 +docdir='${datarootdir}/doc/${PACKAGE}'
10399 +infodir='${datarootdir}/info'
10400 +htmldir='${docdir}'
10401 +dvidir='${docdir}'
10402 +pdfdir='${docdir}'
10403 +psdir='${docdir}'
10404 +libdir='${exec_prefix}/lib'
10405 +localedir='${datarootdir}/locale'
10406 +mandir='${datarootdir}/man'
10407  
10408  ac_prev=
10409 +ac_dashdash=
10410  for ac_option
10411  do
10412    # If the previous option needs an argument, assign it.
10413    if test -n "$ac_prev"; then
10414 -    eval "$ac_prev=\$ac_option"
10415 +    eval $ac_prev=\$ac_option
10416      ac_prev=
10417      continue
10418    fi
10419  
10420 -  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10421 +  case $ac_option in
10422 +  *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
10423 +  *)   ac_optarg=yes ;;
10424 +  esac
10425  
10426    # Accept the important Cygnus configure options, so we can diagnose typos.
10427  
10428 -  case $ac_option in
10429 +  case $ac_dashdash$ac_option in
10430 +  --)
10431 +    ac_dashdash=yes ;;
10432  
10433    -bindir | --bindir | --bindi | --bind | --bin | --bi)
10434      ac_prev=bindir ;;
10435 @@ -542,33 +1029,61 @@ do
10436    --config-cache | -C)
10437      cache_file=config.cache ;;
10438  
10439 -  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
10440 +  -datadir | --datadir | --datadi | --datad)
10441      ac_prev=datadir ;;
10442 -  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
10443 -  | --da=*)
10444 +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
10445      datadir=$ac_optarg ;;
10446  
10447 +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
10448 +  | --dataroo | --dataro | --datar)
10449 +    ac_prev=datarootdir ;;
10450 +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
10451 +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
10452 +    datarootdir=$ac_optarg ;;
10453 +
10454    -disable-* | --disable-*)
10455 -    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10456 +    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10457      # Reject names that are not valid shell variable names.
10458 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10459 -      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
10460 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10461 +      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
10462     { (exit 1); exit 1; }; }
10463 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
10464 -    eval "enable_$ac_feature=no" ;;
10465 +    ac_useropt_orig=$ac_useropt
10466 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10467 +    case $ac_user_opts in
10468 +      *"
10469 +"enable_$ac_useropt"
10470 +"*) ;;
10471 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
10472 +        ac_unrecognized_sep=', ';;
10473 +    esac
10474 +    eval enable_$ac_useropt=no ;;
10475 +
10476 +  -docdir | --docdir | --docdi | --doc | --do)
10477 +    ac_prev=docdir ;;
10478 +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
10479 +    docdir=$ac_optarg ;;
10480 +
10481 +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
10482 +    ac_prev=dvidir ;;
10483 +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
10484 +    dvidir=$ac_optarg ;;
10485  
10486    -enable-* | --enable-*)
10487 -    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10488 +    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10489      # Reject names that are not valid shell variable names.
10490 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10491 -      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
10492 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10493 +      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
10494     { (exit 1); exit 1; }; }
10495 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
10496 -    case $ac_option in
10497 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10498 -      *) ac_optarg=yes ;;
10499 +    ac_useropt_orig=$ac_useropt
10500 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10501 +    case $ac_user_opts in
10502 +      *"
10503 +"enable_$ac_useropt"
10504 +"*) ;;
10505 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
10506 +        ac_unrecognized_sep=', ';;
10507      esac
10508 -    eval "enable_$ac_feature='$ac_optarg'" ;;
10509 +    eval enable_$ac_useropt=\$ac_optarg ;;
10510  
10511    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
10512    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
10513 @@ -595,6 +1110,12 @@ do
10514    -host=* | --host=* | --hos=* | --ho=*)
10515      host_alias=$ac_optarg ;;
10516  
10517 +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
10518 +    ac_prev=htmldir ;;
10519 +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
10520 +  | --ht=*)
10521 +    htmldir=$ac_optarg ;;
10522 +
10523    -includedir | --includedir | --includedi | --included | --include \
10524    | --includ | --inclu | --incl | --inc)
10525      ac_prev=includedir ;;
10526 @@ -619,13 +1140,16 @@ do
10527    | --libexe=* | --libex=* | --libe=*)
10528      libexecdir=$ac_optarg ;;
10529  
10530 +  -localedir | --localedir | --localedi | --localed | --locale)
10531 +    ac_prev=localedir ;;
10532 +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
10533 +    localedir=$ac_optarg ;;
10534 +
10535    -localstatedir | --localstatedir | --localstatedi | --localstated \
10536 -  | --localstate | --localstat | --localsta | --localst \
10537 -  | --locals | --local | --loca | --loc | --lo)
10538 +  | --localstate | --localstat | --localsta | --localst | --locals)
10539      ac_prev=localstatedir ;;
10540    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
10541 -  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
10542 -  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
10543 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10544      localstatedir=$ac_optarg ;;
10545  
10546    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10547 @@ -690,6 +1214,16 @@ do
10548    | --progr-tra=* | --program-tr=* | --program-t=*)
10549      program_transform_name=$ac_optarg ;;
10550  
10551 +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10552 +    ac_prev=pdfdir ;;
10553 +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10554 +    pdfdir=$ac_optarg ;;
10555 +
10556 +  -psdir | --psdir | --psdi | --psd | --ps)
10557 +    ac_prev=psdir ;;
10558 +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10559 +    psdir=$ac_optarg ;;
10560 +
10561    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10562    | -silent | --silent | --silen | --sile | --sil)
10563      silent=yes ;;
10564 @@ -740,26 +1274,38 @@ do
10565      ac_init_version=: ;;
10566  
10567    -with-* | --with-*)
10568 -    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10569 +    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10570      # Reject names that are not valid shell variable names.
10571 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10572 -      { echo "$as_me: error: invalid package name: $ac_package" >&2
10573 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10574 +      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
10575     { (exit 1); exit 1; }; }
10576 -    ac_package=`echo $ac_package| sed 's/-/_/g'`
10577 -    case $ac_option in
10578 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10579 -      *) ac_optarg=yes ;;
10580 +    ac_useropt_orig=$ac_useropt
10581 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10582 +    case $ac_user_opts in
10583 +      *"
10584 +"with_$ac_useropt"
10585 +"*) ;;
10586 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10587 +        ac_unrecognized_sep=', ';;
10588      esac
10589 -    eval "with_$ac_package='$ac_optarg'" ;;
10590 +    eval with_$ac_useropt=\$ac_optarg ;;
10591  
10592    -without-* | --without-*)
10593 -    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10594 +    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10595      # Reject names that are not valid shell variable names.
10596 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10597 -      { echo "$as_me: error: invalid package name: $ac_package" >&2
10598 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10599 +      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
10600     { (exit 1); exit 1; }; }
10601 -    ac_package=`echo $ac_package | sed 's/-/_/g'`
10602 -    eval "with_$ac_package=no" ;;
10603 +    ac_useropt_orig=$ac_useropt
10604 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10605 +    case $ac_user_opts in
10606 +      *"
10607 +"with_$ac_useropt"
10608 +"*) ;;
10609 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
10610 +        ac_unrecognized_sep=', ';;
10611 +    esac
10612 +    eval with_$ac_useropt=no ;;
10613  
10614    --x)
10615      # Obsolete; use --with-x.
10616 @@ -779,7 +1325,7 @@ do
10617    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10618      x_libraries=$ac_optarg ;;
10619  
10620 -  -*) { echo "$as_me: error: unrecognized option: $ac_option
10621 +  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
10622  Try \`$0 --help' for more information." >&2
10623     { (exit 1); exit 1; }; }
10624      ;;
10625 @@ -788,17 +1334,16 @@ Try \`$0 --help' for more information." >&2
10626      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
10627      # Reject names that are not valid shell variable names.
10628      expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
10629 -      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
10630 +      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
10631     { (exit 1); exit 1; }; }
10632 -    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
10633 -    eval "$ac_envvar='$ac_optarg'"
10634 +    eval $ac_envvar=\$ac_optarg
10635      export $ac_envvar ;;
10636  
10637    *)
10638      # FIXME: should be removed in autoconf 3.0.
10639 -    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10640 +    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10641      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
10642 -      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10643 +      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10644      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10645      ;;
10646  
10647 @@ -807,31 +1352,39 @@ done
10648  
10649  if test -n "$ac_prev"; then
10650    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
10651 -  { echo "$as_me: error: missing argument to $ac_option" >&2
10652 +  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
10653     { (exit 1); exit 1; }; }
10654  fi
10655  
10656 -# Be sure to have absolute paths.
10657 -for ac_var in exec_prefix prefix
10658 -do
10659 -  eval ac_val=$`echo $ac_var`
10660 -  case $ac_val in
10661 -    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
10662 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10663 -   { (exit 1); exit 1; }; };;
10664 +if test -n "$ac_unrecognized_opts"; then
10665 +  case $enable_option_checking in
10666 +    no) ;;
10667 +    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
10668 +   { (exit 1); exit 1; }; } ;;
10669 +    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
10670    esac
10671 -done
10672 +fi
10673  
10674 -# Be sure to have absolute paths.
10675 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
10676 -             localstatedir libdir includedir oldincludedir infodir mandir
10677 +# Check all directory arguments for consistency.
10678 +for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
10679 +               datadir sysconfdir sharedstatedir localstatedir includedir \
10680 +               oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
10681 +               libdir localedir mandir
10682  do
10683 -  eval ac_val=$`echo $ac_var`
10684 +  eval ac_val=\$$ac_var
10685 +  # Remove trailing slashes.
10686    case $ac_val in
10687 -    [\\/$]* | ?:[\\/]* ) ;;
10688 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10689 -   { (exit 1); exit 1; }; };;
10690 +    */ )
10691 +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
10692 +      eval $ac_var=\$ac_val;;
10693 +  esac
10694 +  # Be sure to have absolute directory names.
10695 +  case $ac_val in
10696 +    [\\/$]* | ?:[\\/]* )  continue;;
10697 +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
10698    esac
10699 +  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10700 +   { (exit 1); exit 1; }; }
10701  done
10702  
10703  # There might be people who depend on the old broken behavior: `$host'
10704 @@ -845,7 +1398,7 @@ target=$target_alias
10705  if test "x$host_alias" != x; then
10706    if test "x$build_alias" = x; then
10707      cross_compiling=maybe
10708 -    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
10709 +    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
10710      If a cross compiler is detected then cross compile mode will be used." >&2
10711    elif test "x$build_alias" != "x$host_alias"; then
10712      cross_compiling=yes
10713 @@ -858,94 +1411,76 @@ test -n "$host_alias" && ac_tool_prefix=$host_alias-
10714  test "$silent" = yes && exec 6>/dev/null
10715  
10716  
10717 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
10718 +ac_ls_di=`ls -di .` &&
10719 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
10720 +  { $as_echo "$as_me: error: working directory cannot be determined" >&2
10721 +   { (exit 1); exit 1; }; }
10722 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
10723 +  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
10724 +   { (exit 1); exit 1; }; }
10725 +
10726 +
10727  # Find the source files, if location was not specified.
10728  if test -z "$srcdir"; then
10729    ac_srcdir_defaulted=yes
10730 -  # Try the directory containing this script, then its parent.
10731 -  ac_confdir=`(dirname "$0") 2>/dev/null ||
10732 -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10733 -        X"$0" : 'X\(//\)[^/]' \| \
10734 -        X"$0" : 'X\(//\)$' \| \
10735 -        X"$0" : 'X\(/\)' \| \
10736 -        .     : '\(.\)' 2>/dev/null ||
10737 -echo X"$0" |
10738 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10739 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10740 -         /^X\(\/\/\)$/{ s//\1/; q; }
10741 -         /^X\(\/\).*/{ s//\1/; q; }
10742 -         s/.*/./; q'`
10743 +  # Try the directory containing this script, then the parent directory.
10744 +  ac_confdir=`$as_dirname -- "$as_myself" ||
10745 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10746 +        X"$as_myself" : 'X\(//\)[^/]' \| \
10747 +        X"$as_myself" : 'X\(//\)$' \| \
10748 +        X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
10749 +$as_echo X"$as_myself" |
10750 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10751 +           s//\1/
10752 +           q
10753 +         }
10754 +         /^X\(\/\/\)[^/].*/{
10755 +           s//\1/
10756 +           q
10757 +         }
10758 +         /^X\(\/\/\)$/{
10759 +           s//\1/
10760 +           q
10761 +         }
10762 +         /^X\(\/\).*/{
10763 +           s//\1/
10764 +           q
10765 +         }
10766 +         s/.*/./; q'`
10767    srcdir=$ac_confdir
10768 -  if test ! -r $srcdir/$ac_unique_file; then
10769 +  if test ! -r "$srcdir/$ac_unique_file"; then
10770      srcdir=..
10771    fi
10772  else
10773    ac_srcdir_defaulted=no
10774  fi
10775 -if test ! -r $srcdir/$ac_unique_file; then
10776 -  if test "$ac_srcdir_defaulted" = yes; then
10777 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
10778 -   { (exit 1); exit 1; }; }
10779 -  else
10780 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
10781 +if test ! -r "$srcdir/$ac_unique_file"; then
10782 +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
10783 +  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
10784     { (exit 1); exit 1; }; }
10785 -  fi
10786  fi
10787 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
10788 -  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
10789 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
10790 +ac_abs_confdir=`(
10791 +       cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
10792     { (exit 1); exit 1; }; }
10793 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
10794 -ac_env_build_alias_set=${build_alias+set}
10795 -ac_env_build_alias_value=$build_alias
10796 -ac_cv_env_build_alias_set=${build_alias+set}
10797 -ac_cv_env_build_alias_value=$build_alias
10798 -ac_env_host_alias_set=${host_alias+set}
10799 -ac_env_host_alias_value=$host_alias
10800 -ac_cv_env_host_alias_set=${host_alias+set}
10801 -ac_cv_env_host_alias_value=$host_alias
10802 -ac_env_target_alias_set=${target_alias+set}
10803 -ac_env_target_alias_value=$target_alias
10804 -ac_cv_env_target_alias_set=${target_alias+set}
10805 -ac_cv_env_target_alias_value=$target_alias
10806 -ac_env_CC_set=${CC+set}
10807 -ac_env_CC_value=$CC
10808 -ac_cv_env_CC_set=${CC+set}
10809 -ac_cv_env_CC_value=$CC
10810 -ac_env_CFLAGS_set=${CFLAGS+set}
10811 -ac_env_CFLAGS_value=$CFLAGS
10812 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
10813 -ac_cv_env_CFLAGS_value=$CFLAGS
10814 -ac_env_LDFLAGS_set=${LDFLAGS+set}
10815 -ac_env_LDFLAGS_value=$LDFLAGS
10816 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
10817 -ac_cv_env_LDFLAGS_value=$LDFLAGS
10818 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
10819 -ac_env_CPPFLAGS_value=$CPPFLAGS
10820 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
10821 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
10822 -ac_env_CPP_set=${CPP+set}
10823 -ac_env_CPP_value=$CPP
10824 -ac_cv_env_CPP_set=${CPP+set}
10825 -ac_cv_env_CPP_value=$CPP
10826 -ac_env_CXX_set=${CXX+set}
10827 -ac_env_CXX_value=$CXX
10828 -ac_cv_env_CXX_set=${CXX+set}
10829 -ac_cv_env_CXX_value=$CXX
10830 -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
10831 -ac_env_CXXFLAGS_value=$CXXFLAGS
10832 -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
10833 -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
10834 -ac_env_CXXCPP_set=${CXXCPP+set}
10835 -ac_env_CXXCPP_value=$CXXCPP
10836 -ac_cv_env_CXXCPP_set=${CXXCPP+set}
10837 -ac_cv_env_CXXCPP_value=$CXXCPP
10838 -ac_env_F77_set=${F77+set}
10839 -ac_env_F77_value=$F77
10840 -ac_cv_env_F77_set=${F77+set}
10841 -ac_cv_env_F77_value=$F77
10842 -ac_env_FFLAGS_set=${FFLAGS+set}
10843 -ac_env_FFLAGS_value=$FFLAGS
10844 -ac_cv_env_FFLAGS_set=${FFLAGS+set}
10845 -ac_cv_env_FFLAGS_value=$FFLAGS
10846 +       pwd)`
10847 +# When building in place, set srcdir=.
10848 +if test "$ac_abs_confdir" = "$ac_pwd"; then
10849 +  srcdir=.
10850 +fi
10851 +# Remove unnecessary trailing slashes from srcdir.
10852 +# Double slashes in file names in object file debugging info
10853 +# mess up M-x gdb in Emacs.
10854 +case $srcdir in
10855 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
10856 +esac
10857 +for ac_var in $ac_precious_vars; do
10858 +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
10859 +  eval ac_env_${ac_var}_value=\$${ac_var}
10860 +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
10861 +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
10862 +done
10863  
10864  #
10865  # Report the --help message.
10866 @@ -974,14 +1509,11 @@ Configuration:
10867    -n, --no-create         do not create output files
10868        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
10869  
10870 -_ACEOF
10871 -
10872 -  cat <<_ACEOF
10873  Installation directories:
10874    --prefix=PREFIX         install architecture-independent files in PREFIX
10875 -                         [$ac_default_prefix]
10876 +                          [$ac_default_prefix]
10877    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
10878 -                         [PREFIX]
10879 +                          [PREFIX]
10880  
10881  By default, \`make install' will install all the files in
10882  \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
10883 @@ -991,18 +1523,25 @@ for instance \`--prefix=\$HOME'.
10884  For better control, use the options below.
10885  
10886  Fine tuning of the installation directories:
10887 -  --bindir=DIR           user executables [EPREFIX/bin]
10888 -  --sbindir=DIR          system admin executables [EPREFIX/sbin]
10889 -  --libexecdir=DIR       program executables [EPREFIX/libexec]
10890 -  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
10891 -  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
10892 -  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
10893 -  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
10894 -  --libdir=DIR           object code libraries [EPREFIX/lib]
10895 -  --includedir=DIR       C header files [PREFIX/include]
10896 -  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
10897 -  --infodir=DIR          info documentation [PREFIX/info]
10898 -  --mandir=DIR           man documentation [PREFIX/man]
10899 +  --bindir=DIR            user executables [EPREFIX/bin]
10900 +  --sbindir=DIR           system admin executables [EPREFIX/sbin]
10901 +  --libexecdir=DIR        program executables [EPREFIX/libexec]
10902 +  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
10903 +  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
10904 +  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
10905 +  --libdir=DIR            object code libraries [EPREFIX/lib]
10906 +  --includedir=DIR        C header files [PREFIX/include]
10907 +  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
10908 +  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
10909 +  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
10910 +  --infodir=DIR           info documentation [DATAROOTDIR/info]
10911 +  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
10912 +  --mandir=DIR            man documentation [DATAROOTDIR/man]
10913 +  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
10914 +  --htmldir=DIR           html documentation [DOCDIR]
10915 +  --dvidir=DIR            dvi documentation [DOCDIR]
10916 +  --pdfdir=DIR            pdf documentation [DOCDIR]
10917 +  --psdir=DIR             ps documentation [DOCDIR]
10918  _ACEOF
10919  
10920    cat <<\_ACEOF
10921 @@ -1024,16 +1563,15 @@ if test -n "$ac_init_help"; then
10922    cat <<\_ACEOF
10923  
10924  Optional Features:
10925 +  --disable-option-checking  ignore unrecognized --enable/--with options
10926    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
10927    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
10928    --enable-maintainer-mode  enable make rules and dependencies not useful
10929                           (and sometimes confusing) to the casual installer
10930    --disable-dependency-tracking  speeds up one-time build
10931    --enable-dependency-tracking   do not reject slow dependency extractors
10932 -  --enable-static[=PKGS]
10933 -                          build static libraries [default=no]
10934 -  --enable-shared[=PKGS]
10935 -                          build shared libraries [default=yes]
10936 +  --enable-static[=PKGS]  build static libraries [default=no]
10937 +  --enable-shared[=PKGS]  build shared libraries [default=yes]
10938    --enable-fast-install[=PKGS]
10939                            optimize for fast installation [default=yes]
10940    --disable-libtool-lock  avoid locking (might break parallel builds)
10941 @@ -1045,8 +1583,7 @@ Optional Packages:
10942    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
10943    --with-pic              try to use only PIC/non-PIC objects [default=use
10944                            both]
10945 -  --with-tags[=TAGS]
10946 -                          include additional configurations [automatic]
10947 +  --with-tags[=TAGS]      include additional configurations [automatic]
10948    --with-mysql=DIR        Location of your MySQL installation
10949  
10950  Some influential environment variables:
10951 @@ -1054,8 +1591,9 @@ Some influential environment variables:
10952    CFLAGS      C compiler flags
10953    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
10954                nonstandard directory <lib dir>
10955 -  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
10956 -              headers in a nonstandard directory <include dir>
10957 +  LIBS        libraries to pass to the linker, e.g. -l<library>
10958 +  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
10959 +              you have headers in a nonstandard directory <include dir>
10960    CPP         C preprocessor
10961    CXX         C++ compiler command
10962    CXXFLAGS    C++ compiler flags
10963 @@ -1067,118 +1605,88 @@ Use these variables to override the choices made by `configure' or to help
10964  it to find libraries and programs with nonstandard names/locations.
10965  
10966  _ACEOF
10967 +ac_status=$?
10968  fi
10969  
10970  if test "$ac_init_help" = "recursive"; then
10971    # If there are subdirs, report their specific --help.
10972 -  ac_popdir=`pwd`
10973    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
10974 -    test -d $ac_dir || continue
10975 +    test -d "$ac_dir" ||
10976 +      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
10977 +      continue
10978      ac_builddir=.
10979  
10980 -if test "$ac_dir" != .; then
10981 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10982 -  # A "../" for each directory in $ac_dir_suffix.
10983 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10984 -else
10985 -  ac_dir_suffix= ac_top_builddir=
10986 -fi
10987 +case "$ac_dir" in
10988 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10989 +*)
10990 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10991 +  # A ".." for each directory in $ac_dir_suffix.
10992 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10993 +  case $ac_top_builddir_sub in
10994 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10995 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10996 +  esac ;;
10997 +esac
10998 +ac_abs_top_builddir=$ac_pwd
10999 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
11000 +# for backward compatibility:
11001 +ac_top_builddir=$ac_top_build_prefix
11002  
11003  case $srcdir in
11004 -  .)  # No --srcdir option.  We are building in place.
11005 +  .)  # We are building in place.
11006      ac_srcdir=.
11007 -    if test -z "$ac_top_builddir"; then
11008 -       ac_top_srcdir=.
11009 -    else
11010 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11011 -    fi ;;
11012 -  [\\/]* | ?:[\\/]* )  # Absolute path.
11013 +    ac_top_srcdir=$ac_top_builddir_sub
11014 +    ac_abs_top_srcdir=$ac_pwd ;;
11015 +  [\\/]* | ?:[\\/]* )  # Absolute name.
11016      ac_srcdir=$srcdir$ac_dir_suffix;
11017 -    ac_top_srcdir=$srcdir ;;
11018 -  *) # Relative path.
11019 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11020 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11021 +    ac_top_srcdir=$srcdir
11022 +    ac_abs_top_srcdir=$srcdir ;;
11023 +  *) # Relative name.
11024 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11025 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
11026 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11027  esac
11028 -
11029 -# Do not use `cd foo && pwd` to compute absolute paths, because
11030 -# the directories may not exist.
11031 -case `pwd` in
11032 -.) ac_abs_builddir="$ac_dir";;
11033 -*)
11034 -  case "$ac_dir" in
11035 -  .) ac_abs_builddir=`pwd`;;
11036 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11037 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11038 -  esac;;
11039 -esac
11040 -case $ac_abs_builddir in
11041 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
11042 -*)
11043 -  case ${ac_top_builddir}. in
11044 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
11045 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11046 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11047 -  esac;;
11048 -esac
11049 -case $ac_abs_builddir in
11050 -.) ac_abs_srcdir=$ac_srcdir;;
11051 -*)
11052 -  case $ac_srcdir in
11053 -  .) ac_abs_srcdir=$ac_abs_builddir;;
11054 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11055 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11056 -  esac;;
11057 -esac
11058 -case $ac_abs_builddir in
11059 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
11060 -*)
11061 -  case $ac_top_srcdir in
11062 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11063 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11064 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11065 -  esac;;
11066 -esac
11067 -
11068 -    cd $ac_dir
11069 -    # Check for guested configure; otherwise get Cygnus style configure.
11070 -    if test -f $ac_srcdir/configure.gnu; then
11071 -      echo
11072 -      $SHELL $ac_srcdir/configure.gnu  --help=recursive
11073 -    elif test -f $ac_srcdir/configure; then
11074 -      echo
11075 -      $SHELL $ac_srcdir/configure  --help=recursive
11076 -    elif test -f $ac_srcdir/configure.ac ||
11077 -          test -f $ac_srcdir/configure.in; then
11078 -      echo
11079 -      $ac_configure --help
11080 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11081 +
11082 +    cd "$ac_dir" || { ac_status=$?; continue; }
11083 +    # Check for guested configure.
11084 +    if test -f "$ac_srcdir/configure.gnu"; then
11085 +      echo &&
11086 +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
11087 +    elif test -f "$ac_srcdir/configure"; then
11088 +      echo &&
11089 +      $SHELL "$ac_srcdir/configure" --help=recursive
11090      else
11091 -      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11092 -    fi
11093 -    cd $ac_popdir
11094 +      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11095 +    fi || ac_status=$?
11096 +    cd "$ac_pwd" || { ac_status=$?; break; }
11097    done
11098  fi
11099  
11100 -test -n "$ac_init_help" && exit 0
11101 +test -n "$ac_init_help" && exit $ac_status
11102  if $ac_init_version; then
11103    cat <<\_ACEOF
11104 +configure
11105 +generated by GNU Autoconf 2.63
11106  
11107 -Copyright (C) 2003 Free Software Foundation, Inc.
11108 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11109 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
11110  This configure script is free software; the Free Software Foundation
11111  gives unlimited permission to copy, distribute and modify it.
11112  _ACEOF
11113 -  exit 0
11114 +  exit
11115  fi
11116 -exec 5>config.log
11117 -cat >&5 <<_ACEOF
11118 +cat >config.log <<_ACEOF
11119  This file contains any messages produced by compilers while
11120  running configure, to aid debugging if configure makes a mistake.
11121  
11122  It was created by $as_me, which was
11123 -generated by GNU Autoconf 2.59.  Invocation command line was
11124 +generated by GNU Autoconf 2.63.  Invocation command line was
11125  
11126    $ $0 $@
11127  
11128  _ACEOF
11129 +exec 5>>config.log
11130  {
11131  cat <<_ASUNAME
11132  ## --------- ##
11133 @@ -1197,7 +1705,7 @@ uname -v = `(uname -v) 2>/dev/null || echo unknown`
11134  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
11135  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
11136  /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
11137 -hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
11138 +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
11139  /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
11140  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
11141  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
11142 @@ -1209,8 +1717,9 @@ for as_dir in $PATH
11143  do
11144    IFS=$as_save_IFS
11145    test -z "$as_dir" && as_dir=.
11146 -  echo "PATH: $as_dir"
11147 +  $as_echo "PATH: $as_dir"
11148  done
11149 +IFS=$as_save_IFS
11150  
11151  } >&5
11152  
11153 @@ -1232,7 +1741,6 @@ _ACEOF
11154  ac_configure_args=
11155  ac_configure_args0=
11156  ac_configure_args1=
11157 -ac_sep=
11158  ac_must_keep_next=false
11159  for ac_pass in 1 2
11160  do
11161 @@ -1243,8 +1751,8 @@ do
11162      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11163      | -silent | --silent | --silen | --sile | --sil)
11164        continue ;;
11165 -    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
11166 -      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11167 +    *\'*)
11168 +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11169      esac
11170      case $ac_pass in
11171      1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
11172 @@ -1265,9 +1773,7 @@ do
11173           -* ) ac_must_keep_next=true ;;
11174         esac
11175        fi
11176 -      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
11177 -      # Get rid of the leading space.
11178 -      ac_sep=" "
11179 +      ac_configure_args="$ac_configure_args '$ac_arg'"
11180        ;;
11181      esac
11182    done
11183 @@ -1278,8 +1784,8 @@ $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_
11184  # When interrupted or exit'd, cleanup temporary files, and complete
11185  # config.log.  We remove comments because anyway the quotes in there
11186  # would cause problems or look ugly.
11187 -# WARNING: Be sure not to use single quotes in there, as some shells,
11188 -# such as our DU 5.0 friend, will then `close' the trap.
11189 +# WARNING: Use '\'' to represent an apostrophe within the trap.
11190 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
11191  trap 'exit_status=$?
11192    # Save into config.log some information that might help in debugging.
11193    {
11194 @@ -1292,20 +1798,35 @@ trap 'exit_status=$?
11195  _ASBOX
11196      echo
11197      # The following way of writing the cache mishandles newlines in values,
11198 -{
11199 +(
11200 +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
11201 +    eval ac_val=\$$ac_var
11202 +    case $ac_val in #(
11203 +    *${as_nl}*)
11204 +      case $ac_var in #(
11205 +      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11206 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11207 +      esac
11208 +      case $ac_var in #(
11209 +      _ | IFS | as_nl) ;; #(
11210 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11211 +      *) $as_unset $ac_var ;;
11212 +      esac ;;
11213 +    esac
11214 +  done
11215    (set) 2>&1 |
11216 -    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
11217 -    *ac_space=\ *)
11218 +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
11219 +    *${as_nl}ac_space=\ *)
11220        sed -n \
11221 -       "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
11222 -         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
11223 -      ;;
11224 +       "s/'\''/'\''\\\\'\'''\''/g;
11225 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
11226 +      ;; #(
11227      *)
11228 -      sed -n \
11229 -       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11230 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11231        ;;
11232 -    esac;
11233 -}
11234 +    esac |
11235 +    sort
11236 +)
11237      echo
11238  
11239      cat <<\_ASBOX
11240 @@ -1316,22 +1837,28 @@ _ASBOX
11241      echo
11242      for ac_var in $ac_subst_vars
11243      do
11244 -      eval ac_val=$`echo $ac_var`
11245 -      echo "$ac_var='"'"'$ac_val'"'"'"
11246 +      eval ac_val=\$$ac_var
11247 +      case $ac_val in
11248 +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
11249 +      esac
11250 +      $as_echo "$ac_var='\''$ac_val'\''"
11251      done | sort
11252      echo
11253  
11254      if test -n "$ac_subst_files"; then
11255        cat <<\_ASBOX
11256 -## ------------- ##
11257 -## Output files. ##
11258 -## ------------- ##
11259 +## ------------------- ##
11260 +## File substitutions. ##
11261 +## ------------------- ##
11262  _ASBOX
11263        echo
11264        for ac_var in $ac_subst_files
11265        do
11266 -       eval ac_val=$`echo $ac_var`
11267 -       echo "$ac_var='"'"'$ac_val'"'"'"
11268 +       eval ac_val=\$$ac_var
11269 +       case $ac_val in
11270 +       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
11271 +       esac
11272 +       $as_echo "$ac_var='\''$ac_val'\''"
11273        done | sort
11274        echo
11275      fi
11276 @@ -1343,26 +1870,24 @@ _ASBOX
11277  ## ----------- ##
11278  _ASBOX
11279        echo
11280 -      sed "/^$/d" confdefs.h | sort
11281 +      cat confdefs.h
11282        echo
11283      fi
11284      test "$ac_signal" != 0 &&
11285 -      echo "$as_me: caught signal $ac_signal"
11286 -    echo "$as_me: exit $exit_status"
11287 +      $as_echo "$as_me: caught signal $ac_signal"
11288 +    $as_echo "$as_me: exit $exit_status"
11289    } >&5
11290 -  rm -f core *.core &&
11291 -  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
11292 +  rm -f core *.core core.conftest.* &&
11293 +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
11294      exit $exit_status
11295 -     ' 0
11296 +' 0
11297  for ac_signal in 1 2 13 15; do
11298    trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
11299  done
11300  ac_signal=0
11301  
11302  # confdefs.h avoids OS command line length limits that DEFS can exceed.
11303 -rm -rf conftest* confdefs.h
11304 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
11305 -echo >confdefs.h
11306 +rm -f -r conftest* confdefs.h
11307  
11308  # Predefined preprocessor variables.
11309  
11310 @@ -1392,18 +1917,24 @@ _ACEOF
11311  
11312  
11313  # Let the site file select an alternate cache file if it wants to.
11314 -# Prefer explicitly selected file to automatically selected ones.
11315 -if test -z "$CONFIG_SITE"; then
11316 -  if test "x$prefix" != xNONE; then
11317 -    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
11318 -  else
11319 -    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
11320 -  fi
11321 -fi
11322 -for ac_site_file in $CONFIG_SITE; do
11323 +# Prefer an explicitly selected file to automatically selected ones.
11324 +ac_site_file1=NONE
11325 +ac_site_file2=NONE
11326 +if test -n "$CONFIG_SITE"; then
11327 +  ac_site_file1=$CONFIG_SITE
11328 +elif test "x$prefix" != xNONE; then
11329 +  ac_site_file1=$prefix/share/config.site
11330 +  ac_site_file2=$prefix/etc/config.site
11331 +else
11332 +  ac_site_file1=$ac_default_prefix/share/config.site
11333 +  ac_site_file2=$ac_default_prefix/etc/config.site
11334 +fi
11335 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
11336 +do
11337 +  test "x$ac_site_file" = xNONE && continue
11338    if test -r "$ac_site_file"; then
11339 -    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11340 -echo "$as_me: loading site script $ac_site_file" >&6;}
11341 +    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11342 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
11343      sed 's/^/| /' "$ac_site_file" >&5
11344      . "$ac_site_file"
11345    fi
11346 @@ -1413,54 +1944,61 @@ if test -r "$cache_file"; then
11347    # Some versions of bash will fail to source /dev/null (special
11348    # files actually), so we avoid doing that.
11349    if test -f "$cache_file"; then
11350 -    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
11351 -echo "$as_me: loading cache $cache_file" >&6;}
11352 +    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
11353 +$as_echo "$as_me: loading cache $cache_file" >&6;}
11354      case $cache_file in
11355 -      [\\/]* | ?:[\\/]* ) . $cache_file;;
11356 -      *)                      . ./$cache_file;;
11357 +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
11358 +      *)                      . "./$cache_file";;
11359      esac
11360    fi
11361  else
11362 -  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
11363 -echo "$as_me: creating cache $cache_file" >&6;}
11364 +  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
11365 +$as_echo "$as_me: creating cache $cache_file" >&6;}
11366    >$cache_file
11367  fi
11368  
11369  # Check that the precious variables saved in the cache have kept the same
11370  # value.
11371  ac_cache_corrupted=false
11372 -for ac_var in `(set) 2>&1 |
11373 -              sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
11374 +for ac_var in $ac_precious_vars; do
11375    eval ac_old_set=\$ac_cv_env_${ac_var}_set
11376    eval ac_new_set=\$ac_env_${ac_var}_set
11377 -  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
11378 -  eval ac_new_val="\$ac_env_${ac_var}_value"
11379 +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
11380 +  eval ac_new_val=\$ac_env_${ac_var}_value
11381    case $ac_old_set,$ac_new_set in
11382      set,)
11383 -      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11384 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
11385 +      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11386 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
11387        ac_cache_corrupted=: ;;
11388      ,set)
11389 -      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
11390 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
11391 +      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
11392 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
11393        ac_cache_corrupted=: ;;
11394      ,);;
11395      *)
11396        if test "x$ac_old_val" != "x$ac_new_val"; then
11397 -       { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
11398 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
11399 -       { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
11400 -echo "$as_me:   former value:  $ac_old_val" >&2;}
11401 -       { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
11402 -echo "$as_me:   current value: $ac_new_val" >&2;}
11403 -       ac_cache_corrupted=:
11404 +       # differences in whitespace do not lead to failure.
11405 +       ac_old_val_w=`echo x $ac_old_val`
11406 +       ac_new_val_w=`echo x $ac_new_val`
11407 +       if test "$ac_old_val_w" != "$ac_new_val_w"; then
11408 +         { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
11409 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
11410 +         ac_cache_corrupted=:
11411 +       else
11412 +         { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
11413 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
11414 +         eval $ac_var=\$ac_old_val
11415 +       fi
11416 +       { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
11417 +$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
11418 +       { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
11419 +$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
11420        fi;;
11421    esac
11422    # Pass precious variables to config.status.
11423    if test "$ac_new_set" = set; then
11424      case $ac_new_val in
11425 -    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
11426 -      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
11427 +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
11428      *) ac_arg=$ac_var=$ac_new_val ;;
11429      esac
11430      case " $ac_configure_args " in
11431 @@ -1470,19 +2008,15 @@ echo "$as_me:   current value: $ac_new_val" >&2;}
11432    fi
11433  done
11434  if $ac_cache_corrupted; then
11435 -  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
11436 -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
11437 -  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
11438 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
11439 +  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11440 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11441 +  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
11442 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
11443 +  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
11444 +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
11445     { (exit 1); exit 1; }; }
11446  fi
11447  
11448 -ac_ext=c
11449 -ac_cpp='$CPP $CPPFLAGS'
11450 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11453 -
11454  
11455  
11456  
11457 @@ -1499,109 +2033,164 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
11458  
11459  
11460  
11461 +ac_ext=c
11462 +ac_cpp='$CPP $CPPFLAGS'
11463 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11464 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11465 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
11466  
11467  
11468  ac_aux_dir=
11469 -for ac_dir in aux $srcdir/aux; do
11470 -  if test -f $ac_dir/install-sh; then
11471 +for ac_dir in aux "$srcdir"/aux; do
11472 +  if test -f "$ac_dir/install-sh"; then
11473      ac_aux_dir=$ac_dir
11474      ac_install_sh="$ac_aux_dir/install-sh -c"
11475      break
11476 -  elif test -f $ac_dir/install.sh; then
11477 +  elif test -f "$ac_dir/install.sh"; then
11478      ac_aux_dir=$ac_dir
11479      ac_install_sh="$ac_aux_dir/install.sh -c"
11480      break
11481 -  elif test -f $ac_dir/shtool; then
11482 +  elif test -f "$ac_dir/shtool"; then
11483      ac_aux_dir=$ac_dir
11484      ac_install_sh="$ac_aux_dir/shtool install -c"
11485      break
11486    fi
11487  done
11488  if test -z "$ac_aux_dir"; then
11489 -  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
11490 -echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
11491 +  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux \"$srcdir\"/aux" >&5
11492 +$as_echo "$as_me: error: cannot find install-sh or install.sh in aux \"$srcdir\"/aux" >&2;}
11493     { (exit 1); exit 1; }; }
11494  fi
11495 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
11496 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
11497 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
11498 +
11499 +# These three variables are undocumented and unsupported,
11500 +# and are intended to be withdrawn in a future Autoconf release.
11501 +# They can cause serious problems if a builder's source tree is in a directory
11502 +# whose full name contains unusual characters.
11503 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
11504 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
11505 +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
11506 +
11507  
11508  
11509  
11510  # Make sure we can run config.sub.
11511 -$ac_config_sub sun4 >/dev/null 2>&1 ||
11512 -  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
11513 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
11514 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11515 +  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11516 +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11517     { (exit 1); exit 1; }; }
11518  
11519 -echo "$as_me:$LINENO: checking build system type" >&5
11520 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
11521 +{ $as_echo "$as_me:$LINENO: checking build system type" >&5
11522 +$as_echo_n "checking build system type... " >&6; }
11523  if test "${ac_cv_build+set}" = set; then
11524 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11525 -else
11526 -  ac_cv_build_alias=$build_alias
11527 -test -z "$ac_cv_build_alias" &&
11528 -  ac_cv_build_alias=`$ac_config_guess`
11529 -test -z "$ac_cv_build_alias" &&
11530 -  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11531 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11532 +  $as_echo_n "(cached) " >&6
11533 +else
11534 +  ac_build_alias=$build_alias
11535 +test "x$ac_build_alias" = x &&
11536 +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11537 +test "x$ac_build_alias" = x &&
11538 +  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11539 +$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11540     { (exit 1); exit 1; }; }
11541 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
11542 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
11543 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
11544 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11545 +  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11546 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11547     { (exit 1); exit 1; }; }
11548  
11549  fi
11550 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11551 -echo "${ECHO_T}$ac_cv_build" >&6
11552 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11553 +$as_echo "$ac_cv_build" >&6; }
11554 +case $ac_cv_build in
11555 +*-*-*) ;;
11556 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11557 +$as_echo "$as_me: error: invalid value of canonical build" >&2;}
11558 +   { (exit 1); exit 1; }; };;
11559 +esac
11560  build=$ac_cv_build
11561 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11562 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11563 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11564 -
11565 -
11566 -echo "$as_me:$LINENO: checking host system type" >&5
11567 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
11568 +ac_save_IFS=$IFS; IFS='-'
11569 +set x $ac_cv_build
11570 +shift
11571 +build_cpu=$1
11572 +build_vendor=$2
11573 +shift; shift
11574 +# Remember, the first character of IFS is used to create $*,
11575 +# except with old shells:
11576 +build_os=$*
11577 +IFS=$ac_save_IFS
11578 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11579 +
11580 +
11581 +{ $as_echo "$as_me:$LINENO: checking host system type" >&5
11582 +$as_echo_n "checking host system type... " >&6; }
11583  if test "${ac_cv_host+set}" = set; then
11584 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11585 -else
11586 -  ac_cv_host_alias=$host_alias
11587 -test -z "$ac_cv_host_alias" &&
11588 -  ac_cv_host_alias=$ac_cv_build_alias
11589 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
11590 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
11591 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
11592 +  $as_echo_n "(cached) " >&6
11593 +else
11594 +  if test "x$host_alias" = x; then
11595 +  ac_cv_host=$ac_cv_build
11596 +else
11597 +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11598 +    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11599 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11600     { (exit 1); exit 1; }; }
11601 +fi
11602  
11603  fi
11604 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11605 -echo "${ECHO_T}$ac_cv_host" >&6
11606 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11607 +$as_echo "$ac_cv_host" >&6; }
11608 +case $ac_cv_host in
11609 +*-*-*) ;;
11610 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11611 +$as_echo "$as_me: error: invalid value of canonical host" >&2;}
11612 +   { (exit 1); exit 1; }; };;
11613 +esac
11614  host=$ac_cv_host
11615 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11616 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11617 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11618 -
11619 -
11620 -echo "$as_me:$LINENO: checking target system type" >&5
11621 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
11622 +ac_save_IFS=$IFS; IFS='-'
11623 +set x $ac_cv_host
11624 +shift
11625 +host_cpu=$1
11626 +host_vendor=$2
11627 +shift; shift
11628 +# Remember, the first character of IFS is used to create $*,
11629 +# except with old shells:
11630 +host_os=$*
11631 +IFS=$ac_save_IFS
11632 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11633 +
11634 +
11635 +{ $as_echo "$as_me:$LINENO: checking target system type" >&5
11636 +$as_echo_n "checking target system type... " >&6; }
11637  if test "${ac_cv_target+set}" = set; then
11638 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11639 -else
11640 -  ac_cv_target_alias=$target_alias
11641 -test "x$ac_cv_target_alias" = "x" &&
11642 -  ac_cv_target_alias=$ac_cv_host_alias
11643 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
11644 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
11645 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
11646 +  $as_echo_n "(cached) " >&6
11647 +else
11648 +  if test "x$target_alias" = x; then
11649 +  ac_cv_target=$ac_cv_host
11650 +else
11651 +  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
11652 +    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
11653 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
11654     { (exit 1); exit 1; }; }
11655 +fi
11656  
11657  fi
11658 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
11659 -echo "${ECHO_T}$ac_cv_target" >&6
11660 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
11661 +$as_echo "$ac_cv_target" >&6; }
11662 +case $ac_cv_target in
11663 +*-*-*) ;;
11664 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
11665 +$as_echo "$as_me: error: invalid value of canonical target" >&2;}
11666 +   { (exit 1); exit 1; }; };;
11667 +esac
11668  target=$ac_cv_target
11669 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11670 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11671 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11672 +ac_save_IFS=$IFS; IFS='-'
11673 +set x $ac_cv_target
11674 +shift
11675 +target_cpu=$1
11676 +target_vendor=$2
11677 +shift; shift
11678 +# Remember, the first character of IFS is used to create $*,
11679 +# except with old shells:
11680 +target_os=$*
11681 +IFS=$ac_save_IFS
11682 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
11683  
11684  
11685  # The aliases save the names the user supplied, while $host etc.
11686 @@ -1625,11 +2214,12 @@ am__api_version="1.9"
11687  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11688  # OS/2's system install, which has a completely different semantic
11689  # ./install, which can be erroneously created by make from ./install.sh.
11690 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11691 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11692 +# Reject install programs that cannot install multiple files.
11693 +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11694 +$as_echo_n "checking for a BSD-compatible install... " >&6; }
11695  if test -z "$INSTALL"; then
11696  if test "${ac_cv_path_install+set}" = set; then
11697 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11698 +  $as_echo_n "(cached) " >&6
11699  else
11700    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701  for as_dir in $PATH
11702 @@ -1648,7 +2238,7 @@ case $as_dir/ in
11703      # by default.
11704      for ac_prog in ginstall scoinst install; do
11705        for ac_exec_ext in '' $ac_executable_extensions; do
11706 -       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11707 +       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11708           if test $ac_prog = install &&
11709             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11710             # AIX install.  It has an incompatible calling convention.
11711 @@ -1658,30 +2248,43 @@ case $as_dir/ in
11712             # program-specific install script used by HP pwplus--don't use.
11713             :
11714           else
11715 -           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11716 -           break 3
11717 +           rm -rf conftest.one conftest.two conftest.dir
11718 +           echo one > conftest.one
11719 +           echo two > conftest.two
11720 +           mkdir conftest.dir
11721 +           if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11722 +             test -s conftest.one && test -s conftest.two &&
11723 +             test -s conftest.dir/conftest.one &&
11724 +             test -s conftest.dir/conftest.two
11725 +           then
11726 +             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11727 +             break 3
11728 +           fi
11729           fi
11730         fi
11731        done
11732      done
11733      ;;
11734  esac
11735 +
11736  done
11737 +IFS=$as_save_IFS
11738  
11739 +rm -rf conftest.one conftest.two conftest.dir
11740  
11741  fi
11742    if test "${ac_cv_path_install+set}" = set; then
11743      INSTALL=$ac_cv_path_install
11744    else
11745 -    # As a last resort, use the slow shell script.  We don't cache a
11746 -    # path for INSTALL within a source directory, because that will
11747 +    # As a last resort, use the slow shell script.  Don't cache a
11748 +    # value for INSTALL within a source directory, because that will
11749      # break other packages using the cache if that directory is
11750 -    # removed, or if the path is relative.
11751 +    # removed, or if the value is a relative name.
11752      INSTALL=$ac_install_sh
11753    fi
11754  fi
11755 -echo "$as_me:$LINENO: result: $INSTALL" >&5
11756 -echo "${ECHO_T}$INSTALL" >&6
11757 +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11758 +$as_echo "$INSTALL" >&6; }
11759  
11760  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11761  # It thinks the first close brace ends the variable substitution.
11762 @@ -1691,8 +2294,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11763  
11764  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11765  
11766 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
11767 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
11768 +{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
11769 +$as_echo_n "checking whether build environment is sane... " >&6; }
11770  # Just in case
11771  sleep 1
11772  echo timestamp > conftest.file
11773 @@ -1715,9 +2318,9 @@ if (
11774        # if, for instance, CONFIG_SHELL is bash and it inherits a
11775        # broken ls alias from the environment.  This has actually
11776        # happened.  Such a system could not be considered "sane".
11777 -      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
11778 +      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
11779  alias in your environment" >&5
11780 -echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
11781 +$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
11782  alias in your environment" >&2;}
11783     { (exit 1); exit 1; }; }
11784     fi
11785 @@ -1728,26 +2331,23 @@ then
11786     # Ok.
11787     :
11788  else
11789 -   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
11790 +   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
11791  Check your system clock" >&5
11792 -echo "$as_me: error: newly created file is older than distributed files!
11793 +$as_echo "$as_me: error: newly created file is older than distributed files!
11794  Check your system clock" >&2;}
11795     { (exit 1); exit 1; }; }
11796  fi
11797 -echo "$as_me:$LINENO: result: yes" >&5
11798 -echo "${ECHO_T}yes" >&6
11799 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
11800 +$as_echo "yes" >&6; }
11801  test "$program_prefix" != NONE &&
11802 -  program_transform_name="s,^,$program_prefix,;$program_transform_name"
11803 +  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11804  # Use a double $ so make ignores it.
11805  test "$program_suffix" != NONE &&
11806 -  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
11807 -# Double any \ or $.  echo might interpret backslashes.
11808 +  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11809 +# Double any \ or $.
11810  # By default was `s,x,x', remove it if useless.
11811 -cat <<\_ACEOF >conftest.sed
11812 -s/[\\$]/&&/g;s/;s,x,x,$//
11813 -_ACEOF
11814 -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
11815 -rm conftest.sed
11816 +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11817 +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11818  
11819  # expand $ac_aux_dir to an absolute path
11820  am_aux_dir=`cd $ac_aux_dir && pwd`
11821 @@ -1758,8 +2358,8 @@ if eval "$MISSING --run true"; then
11822    am_missing_run="$MISSING --run "
11823  else
11824    am_missing_run=
11825 -  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
11826 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11827 +  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
11828 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11829  fi
11830  
11831  if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
11832 @@ -1799,10 +2399,10 @@ for ac_prog in gawk mawk nawk awk
11833  do
11834    # Extract the first word of "$ac_prog", so it can be a program name with args.
11835  set dummy $ac_prog; ac_word=$2
11836 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11837 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11838 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11839 +$as_echo_n "checking for $ac_word... " >&6; }
11840  if test "${ac_cv_prog_AWK+set}" = set; then
11841 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11842 +  $as_echo_n "(cached) " >&6
11843  else
11844    if test -n "$AWK"; then
11845    ac_cv_prog_AWK="$AWK" # Let the user override the test.
11846 @@ -1813,54 +2413,58 @@ do
11847    IFS=$as_save_IFS
11848    test -z "$as_dir" && as_dir=.
11849    for ac_exec_ext in '' $ac_executable_extensions; do
11850 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11852      ac_cv_prog_AWK="$ac_prog"
11853 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11855      break 2
11856    fi
11857  done
11858  done
11859 +IFS=$as_save_IFS
11860  
11861  fi
11862  fi
11863  AWK=$ac_cv_prog_AWK
11864  if test -n "$AWK"; then
11865 -  echo "$as_me:$LINENO: result: $AWK" >&5
11866 -echo "${ECHO_T}$AWK" >&6
11867 +  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11868 +$as_echo "$AWK" >&6; }
11869  else
11870 -  echo "$as_me:$LINENO: result: no" >&5
11871 -echo "${ECHO_T}no" >&6
11872 +  { $as_echo "$as_me:$LINENO: result: no" >&5
11873 +$as_echo "no" >&6; }
11874  fi
11875  
11876 +
11877    test -n "$AWK" && break
11878  done
11879  
11880 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11881 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
11882 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
11883 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
11884 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11885 +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11886 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11887 +set x ${MAKE-make}
11888 +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11889 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11890 +  $as_echo_n "(cached) " >&6
11891  else
11892    cat >conftest.make <<\_ACEOF
11893 +SHELL = /bin/sh
11894  all:
11895 -       @echo 'ac_maketemp="$(MAKE)"'
11896 +       @echo '@@@%%%=$(MAKE)=@@@%%%'
11897  _ACEOF
11898  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11899 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
11900 -if test -n "$ac_maketemp"; then
11901 -  eval ac_cv_prog_make_${ac_make}_set=yes
11902 -else
11903 -  eval ac_cv_prog_make_${ac_make}_set=no
11904 -fi
11905 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
11906 +  *@@@%%%=?*=@@@%%%*)
11907 +    eval ac_cv_prog_make_${ac_make}_set=yes;;
11908 +  *)
11909 +    eval ac_cv_prog_make_${ac_make}_set=no;;
11910 +esac
11911  rm -f conftest.make
11912  fi
11913 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11914 -  echo "$as_me:$LINENO: result: yes" >&5
11915 -echo "${ECHO_T}yes" >&6
11916 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11917 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
11918 +$as_echo "yes" >&6; }
11919    SET_MAKE=
11920  else
11921 -  echo "$as_me:$LINENO: result: no" >&5
11922 -echo "${ECHO_T}no" >&6
11923 +  { $as_echo "$as_me:$LINENO: result: no" >&5
11924 +$as_echo "no" >&6; }
11925    SET_MAKE="MAKE=${MAKE-make}"
11926  fi
11927  
11928 @@ -1876,8 +2480,8 @@ rmdir .tst 2>/dev/null
11929  # test to see if srcdir already configured
11930  if test "`cd $srcdir && pwd`" != "`pwd`" &&
11931     test -f $srcdir/config.status; then
11932 -  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11933 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11934 +  { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11935 +$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11936     { (exit 1); exit 1; }; }
11937  fi
11938  
11939 @@ -1931,10 +2535,10 @@ if test "$cross_compiling" != no; then
11940    if test -n "$ac_tool_prefix"; then
11941    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11942  set dummy ${ac_tool_prefix}strip; ac_word=$2
11943 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11944 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11945 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11946 +$as_echo_n "checking for $ac_word... " >&6; }
11947  if test "${ac_cv_prog_STRIP+set}" = set; then
11948 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11949 +  $as_echo_n "(cached) " >&6
11950  else
11951    if test -n "$STRIP"; then
11952    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11953 @@ -1945,34 +2549,36 @@ do
11954    IFS=$as_save_IFS
11955    test -z "$as_dir" && as_dir=.
11956    for ac_exec_ext in '' $ac_executable_extensions; do
11957 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11959      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11960 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11961 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11962      break 2
11963    fi
11964  done
11965  done
11966 +IFS=$as_save_IFS
11967  
11968  fi
11969  fi
11970  STRIP=$ac_cv_prog_STRIP
11971  if test -n "$STRIP"; then
11972 -  echo "$as_me:$LINENO: result: $STRIP" >&5
11973 -echo "${ECHO_T}$STRIP" >&6
11974 +  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11975 +$as_echo "$STRIP" >&6; }
11976  else
11977 -  echo "$as_me:$LINENO: result: no" >&5
11978 -echo "${ECHO_T}no" >&6
11979 +  { $as_echo "$as_me:$LINENO: result: no" >&5
11980 +$as_echo "no" >&6; }
11981  fi
11982  
11983 +
11984  fi
11985  if test -z "$ac_cv_prog_STRIP"; then
11986    ac_ct_STRIP=$STRIP
11987    # Extract the first word of "strip", so it can be a program name with args.
11988  set dummy strip; ac_word=$2
11989 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11990 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11991 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11992 +$as_echo_n "checking for $ac_word... " >&6; }
11993  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11994 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11995 +  $as_echo_n "(cached) " >&6
11996  else
11997    if test -n "$ac_ct_STRIP"; then
11998    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11999 @@ -1983,27 +2589,37 @@ do
12000    IFS=$as_save_IFS
12001    test -z "$as_dir" && as_dir=.
12002    for ac_exec_ext in '' $ac_executable_extensions; do
12003 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12005      ac_cv_prog_ac_ct_STRIP="strip"
12006 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12008      break 2
12009    fi
12010  done
12011  done
12012 +IFS=$as_save_IFS
12013  
12014 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12015  fi
12016  fi
12017  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12018  if test -n "$ac_ct_STRIP"; then
12019 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12020 -echo "${ECHO_T}$ac_ct_STRIP" >&6
12021 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12022 +$as_echo "$ac_ct_STRIP" >&6; }
12023  else
12024 -  echo "$as_me:$LINENO: result: no" >&5
12025 -echo "${ECHO_T}no" >&6
12026 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12027 +$as_echo "no" >&6; }
12028  fi
12029  
12030 -  STRIP=$ac_ct_STRIP
12031 +  if test "x$ac_ct_STRIP" = x; then
12032 +    STRIP=":"
12033 +  else
12034 +    case $cross_compiling:$ac_tool_warned in
12035 +yes:)
12036 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12037 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12038 +ac_tool_warned=yes ;;
12039 +esac
12040 +    STRIP=$ac_ct_STRIP
12041 +  fi
12042  else
12043    STRIP="$ac_cv_prog_STRIP"
12044  fi
12045 @@ -2023,19 +2639,19 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
12046  
12047  
12048  
12049 -          ac_config_headers="$ac_config_headers config.h"
12050 +ac_config_headers="$ac_config_headers config.h"
12051  
12052 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12053 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12054 -    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12055 +{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12056 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12057 +    # Check whether --enable-maintainer-mode was given.
12058  if test "${enable_maintainer_mode+set}" = set; then
12059 -  enableval="$enable_maintainer_mode"
12060 -  USE_MAINTAINER_MODE=$enableval
12061 +  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12062  else
12063    USE_MAINTAINER_MODE=no
12064 -fi;
12065 -  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12066 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12067 +fi
12068 +
12069 +  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12070 +$as_echo "$USE_MAINTAINER_MODE" >&6; }
12071  
12072  
12073  if test $USE_MAINTAINER_MODE = yes; then
12074 @@ -2058,10 +2674,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075  if test -n "$ac_tool_prefix"; then
12076    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12077  set dummy ${ac_tool_prefix}gcc; ac_word=$2
12078 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12079 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12080 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12081 +$as_echo_n "checking for $ac_word... " >&6; }
12082  if test "${ac_cv_prog_CC+set}" = set; then
12083 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12084 +  $as_echo_n "(cached) " >&6
12085  else
12086    if test -n "$CC"; then
12087    ac_cv_prog_CC="$CC" # Let the user override the test.
12088 @@ -2072,34 +2688,36 @@ do
12089    IFS=$as_save_IFS
12090    test -z "$as_dir" && as_dir=.
12091    for ac_exec_ext in '' $ac_executable_extensions; do
12092 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12093 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12094      ac_cv_prog_CC="${ac_tool_prefix}gcc"
12095 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12097      break 2
12098    fi
12099  done
12100  done
12101 +IFS=$as_save_IFS
12102  
12103  fi
12104  fi
12105  CC=$ac_cv_prog_CC
12106  if test -n "$CC"; then
12107 -  echo "$as_me:$LINENO: result: $CC" >&5
12108 -echo "${ECHO_T}$CC" >&6
12109 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12110 +$as_echo "$CC" >&6; }
12111  else
12112 -  echo "$as_me:$LINENO: result: no" >&5
12113 -echo "${ECHO_T}no" >&6
12114 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12115 +$as_echo "no" >&6; }
12116  fi
12117  
12118 +
12119  fi
12120  if test -z "$ac_cv_prog_CC"; then
12121    ac_ct_CC=$CC
12122    # Extract the first word of "gcc", so it can be a program name with args.
12123  set dummy gcc; ac_word=$2
12124 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12125 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12126 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12127 +$as_echo_n "checking for $ac_word... " >&6; }
12128  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12129 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12130 +  $as_echo_n "(cached) " >&6
12131  else
12132    if test -n "$ac_ct_CC"; then
12133    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12134 @@ -2110,38 +2728,49 @@ do
12135    IFS=$as_save_IFS
12136    test -z "$as_dir" && as_dir=.
12137    for ac_exec_ext in '' $ac_executable_extensions; do
12138 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12139 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140      ac_cv_prog_ac_ct_CC="gcc"
12141 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12143      break 2
12144    fi
12145  done
12146  done
12147 +IFS=$as_save_IFS
12148  
12149  fi
12150  fi
12151  ac_ct_CC=$ac_cv_prog_ac_ct_CC
12152  if test -n "$ac_ct_CC"; then
12153 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12154 -echo "${ECHO_T}$ac_ct_CC" >&6
12155 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12156 +$as_echo "$ac_ct_CC" >&6; }
12157  else
12158 -  echo "$as_me:$LINENO: result: no" >&5
12159 -echo "${ECHO_T}no" >&6
12160 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12161 +$as_echo "no" >&6; }
12162  fi
12163  
12164 -  CC=$ac_ct_CC
12165 +  if test "x$ac_ct_CC" = x; then
12166 +    CC=""
12167 +  else
12168 +    case $cross_compiling:$ac_tool_warned in
12169 +yes:)
12170 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12171 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12172 +ac_tool_warned=yes ;;
12173 +esac
12174 +    CC=$ac_ct_CC
12175 +  fi
12176  else
12177    CC="$ac_cv_prog_CC"
12178  fi
12179  
12180  if test -z "$CC"; then
12181 -  if test -n "$ac_tool_prefix"; then
12182 -  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12183 +          if test -n "$ac_tool_prefix"; then
12184 +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12185  set dummy ${ac_tool_prefix}cc; ac_word=$2
12186 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12187 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12188 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12189 +$as_echo_n "checking for $ac_word... " >&6; }
12190  if test "${ac_cv_prog_CC+set}" = set; then
12191 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12192 +  $as_echo_n "(cached) " >&6
12193  else
12194    if test -n "$CC"; then
12195    ac_cv_prog_CC="$CC" # Let the user override the test.
12196 @@ -2152,76 +2781,36 @@ do
12197    IFS=$as_save_IFS
12198    test -z "$as_dir" && as_dir=.
12199    for ac_exec_ext in '' $ac_executable_extensions; do
12200 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12201 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202      ac_cv_prog_CC="${ac_tool_prefix}cc"
12203 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12205      break 2
12206    fi
12207  done
12208  done
12209 +IFS=$as_save_IFS
12210  
12211  fi
12212  fi
12213  CC=$ac_cv_prog_CC
12214  if test -n "$CC"; then
12215 -  echo "$as_me:$LINENO: result: $CC" >&5
12216 -echo "${ECHO_T}$CC" >&6
12217 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12218 +$as_echo "$CC" >&6; }
12219  else
12220 -  echo "$as_me:$LINENO: result: no" >&5
12221 -echo "${ECHO_T}no" >&6
12222 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12223 +$as_echo "no" >&6; }
12224  fi
12225  
12226 -fi
12227 -if test -z "$ac_cv_prog_CC"; then
12228 -  ac_ct_CC=$CC
12229 -  # Extract the first word of "cc", so it can be a program name with args.
12230 -set dummy cc; ac_word=$2
12231 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12232 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12233 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12234 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12235 -else
12236 -  if test -n "$ac_ct_CC"; then
12237 -  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12238 -else
12239 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 -for as_dir in $PATH
12241 -do
12242 -  IFS=$as_save_IFS
12243 -  test -z "$as_dir" && as_dir=.
12244 -  for ac_exec_ext in '' $ac_executable_extensions; do
12245 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246 -    ac_cv_prog_ac_ct_CC="cc"
12247 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 -    break 2
12249 -  fi
12250 -done
12251 -done
12252 -
12253 -fi
12254 -fi
12255 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
12256 -if test -n "$ac_ct_CC"; then
12257 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12258 -echo "${ECHO_T}$ac_ct_CC" >&6
12259 -else
12260 -  echo "$as_me:$LINENO: result: no" >&5
12261 -echo "${ECHO_T}no" >&6
12262 -fi
12263 -
12264 -  CC=$ac_ct_CC
12265 -else
12266 -  CC="$ac_cv_prog_CC"
12267 -fi
12268  
12269 +  fi
12270  fi
12271  if test -z "$CC"; then
12272    # Extract the first word of "cc", so it can be a program name with args.
12273  set dummy cc; ac_word=$2
12274 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12275 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12276 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12277 +$as_echo_n "checking for $ac_word... " >&6; }
12278  if test "${ac_cv_prog_CC+set}" = set; then
12279 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12280 +  $as_echo_n "(cached) " >&6
12281  else
12282    if test -n "$CC"; then
12283    ac_cv_prog_CC="$CC" # Let the user override the test.
12284 @@ -2233,17 +2822,18 @@ do
12285    IFS=$as_save_IFS
12286    test -z "$as_dir" && as_dir=.
12287    for ac_exec_ext in '' $ac_executable_extensions; do
12288 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12290      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12291         ac_prog_rejected=yes
12292         continue
12293       fi
12294      ac_cv_prog_CC="cc"
12295 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12297      break 2
12298    fi
12299  done
12300  done
12301 +IFS=$as_save_IFS
12302  
12303  if test $ac_prog_rejected = yes; then
12304    # We found a bogon in the path, so make sure we never use it.
12305 @@ -2261,24 +2851,25 @@ fi
12306  fi
12307  CC=$ac_cv_prog_CC
12308  if test -n "$CC"; then
12309 -  echo "$as_me:$LINENO: result: $CC" >&5
12310 -echo "${ECHO_T}$CC" >&6
12311 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12312 +$as_echo "$CC" >&6; }
12313  else
12314 -  echo "$as_me:$LINENO: result: no" >&5
12315 -echo "${ECHO_T}no" >&6
12316 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12317 +$as_echo "no" >&6; }
12318  fi
12319  
12320 +
12321  fi
12322  if test -z "$CC"; then
12323    if test -n "$ac_tool_prefix"; then
12324 -  for ac_prog in cl
12325 +  for ac_prog in cl.exe
12326    do
12327      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12328  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12329 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12330 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12331 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12332 +$as_echo_n "checking for $ac_word... " >&6; }
12333  if test "${ac_cv_prog_CC+set}" = set; then
12334 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12335 +  $as_echo_n "(cached) " >&6
12336  else
12337    if test -n "$CC"; then
12338    ac_cv_prog_CC="$CC" # Let the user override the test.
12339 @@ -2289,38 +2880,40 @@ do
12340    IFS=$as_save_IFS
12341    test -z "$as_dir" && as_dir=.
12342    for ac_exec_ext in '' $ac_executable_extensions; do
12343 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12346 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12347 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12348      break 2
12349    fi
12350  done
12351  done
12352 +IFS=$as_save_IFS
12353  
12354  fi
12355  fi
12356  CC=$ac_cv_prog_CC
12357  if test -n "$CC"; then
12358 -  echo "$as_me:$LINENO: result: $CC" >&5
12359 -echo "${ECHO_T}$CC" >&6
12360 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12361 +$as_echo "$CC" >&6; }
12362  else
12363 -  echo "$as_me:$LINENO: result: no" >&5
12364 -echo "${ECHO_T}no" >&6
12365 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12366 +$as_echo "no" >&6; }
12367  fi
12368  
12369 +
12370      test -n "$CC" && break
12371    done
12372  fi
12373  if test -z "$CC"; then
12374    ac_ct_CC=$CC
12375 -  for ac_prog in cl
12376 +  for ac_prog in cl.exe
12377  do
12378    # Extract the first word of "$ac_prog", so it can be a program name with args.
12379  set dummy $ac_prog; ac_word=$2
12380 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12381 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12382 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12383 +$as_echo_n "checking for $ac_word... " >&6; }
12384  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12385 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12386 +  $as_echo_n "(cached) " >&6
12387  else
12388    if test -n "$ac_ct_CC"; then
12389    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12390 @@ -2331,58 +2924,90 @@ do
12391    IFS=$as_save_IFS
12392    test -z "$as_dir" && as_dir=.
12393    for ac_exec_ext in '' $ac_executable_extensions; do
12394 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12395 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12396      ac_cv_prog_ac_ct_CC="$ac_prog"
12397 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12398 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12399      break 2
12400    fi
12401  done
12402  done
12403 +IFS=$as_save_IFS
12404  
12405  fi
12406  fi
12407  ac_ct_CC=$ac_cv_prog_ac_ct_CC
12408  if test -n "$ac_ct_CC"; then
12409 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12410 -echo "${ECHO_T}$ac_ct_CC" >&6
12411 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12412 +$as_echo "$ac_ct_CC" >&6; }
12413  else
12414 -  echo "$as_me:$LINENO: result: no" >&5
12415 -echo "${ECHO_T}no" >&6
12416 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12417 +$as_echo "no" >&6; }
12418  fi
12419  
12420 +
12421    test -n "$ac_ct_CC" && break
12422  done
12423  
12424 -  CC=$ac_ct_CC
12425 +  if test "x$ac_ct_CC" = x; then
12426 +    CC=""
12427 +  else
12428 +    case $cross_compiling:$ac_tool_warned in
12429 +yes:)
12430 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12431 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12432 +ac_tool_warned=yes ;;
12433 +esac
12434 +    CC=$ac_ct_CC
12435 +  fi
12436  fi
12437  
12438  fi
12439  
12440  
12441 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12442 +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12443 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12444 +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12445  See \`config.log' for more details." >&5
12446 -echo "$as_me: error: no acceptable C compiler found in \$PATH
12447 +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
12448  See \`config.log' for more details." >&2;}
12449 -   { (exit 1); exit 1; }; }
12450 +   { (exit 1); exit 1; }; }; }
12451  
12452  # Provide some information about the compiler.
12453 -echo "$as_me:$LINENO:" \
12454 -     "checking for C compiler version" >&5
12455 -ac_compiler=`set X $ac_compile; echo $2`
12456 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12457 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
12458 +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
12459 +set X $ac_compile
12460 +ac_compiler=$2
12461 +{ (ac_try="$ac_compiler --version >&5"
12462 +case "(($ac_try" in
12463 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 +  *) ac_try_echo=$ac_try;;
12465 +esac
12466 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12467 +$as_echo "$ac_try_echo") >&5
12468 +  (eval "$ac_compiler --version >&5") 2>&5
12469    ac_status=$?
12470 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472    (exit $ac_status); }
12473 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12474 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
12475 +{ (ac_try="$ac_compiler -v >&5"
12476 +case "(($ac_try" in
12477 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 +  *) ac_try_echo=$ac_try;;
12479 +esac
12480 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12481 +$as_echo "$ac_try_echo") >&5
12482 +  (eval "$ac_compiler -v >&5") 2>&5
12483    ac_status=$?
12484 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486    (exit $ac_status); }
12487 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12488 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
12489 +{ (ac_try="$ac_compiler -V >&5"
12490 +case "(($ac_try" in
12491 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 +  *) ac_try_echo=$ac_try;;
12493 +esac
12494 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 +$as_echo "$ac_try_echo") >&5
12496 +  (eval "$ac_compiler -V >&5") 2>&5
12497    ac_status=$?
12498 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500    (exit $ac_status); }
12501  
12502  cat >conftest.$ac_ext <<_ACEOF
12503 @@ -2401,111 +3026,150 @@ main ()
12504  }
12505  _ACEOF
12506  ac_clean_files_save=$ac_clean_files
12507 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
12508 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
12509  # Try to create an executable without -o first, disregard a.out.
12510  # It will help us diagnose broken compilers, and finding out an intuition
12511  # of exeext.
12512 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12513 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12514 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12515 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12516 -  (eval $ac_link_default) 2>&5
12517 +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12518 +$as_echo_n "checking for C compiler default output file name... " >&6; }
12519 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12520 +
12521 +# The possible output files:
12522 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
12523 +
12524 +ac_rmfiles=
12525 +for ac_file in $ac_files
12526 +do
12527 +  case $ac_file in
12528 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
12529 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
12530 +  esac
12531 +done
12532 +rm -f $ac_rmfiles
12533 +
12534 +if { (ac_try="$ac_link_default"
12535 +case "(($ac_try" in
12536 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 +  *) ac_try_echo=$ac_try;;
12538 +esac
12539 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540 +$as_echo "$ac_try_echo") >&5
12541 +  (eval "$ac_link_default") 2>&5
12542    ac_status=$?
12543 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545    (exit $ac_status); }; then
12546 -  # Find the output, starting from the most likely.  This scheme is
12547 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12548 -# resort.
12549 -
12550 -# Be careful to initialize this variable, since it used to be cached.
12551 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12552 -ac_cv_exeext=
12553 -# b.out is created by i960 compilers.
12554 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12555 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
12556 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
12557 +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
12558 +# so that the user can short-circuit this test for compilers unknown to
12559 +# Autoconf.
12560 +for ac_file in $ac_files ''
12561  do
12562    test -f "$ac_file" || continue
12563    case $ac_file in
12564 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12565 -       ;;
12566 -    conftest.$ac_ext )
12567 -       # This is the source file.
12568 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
12569         ;;
12570      [ab].out )
12571         # We found the default executable, but exeext='' is most
12572         # certainly right.
12573         break;;
12574      *.* )
12575 -       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12576 -       # FIXME: I believe we export ac_cv_exeext for Libtool,
12577 -       # but it would be cool to find out if it's true.  Does anybody
12578 -       # maintain Libtool? --akim.
12579 -       export ac_cv_exeext
12580 +        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
12581 +       then :; else
12582 +          ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12583 +       fi
12584 +       # We set ac_cv_exeext here because the later test for it is not
12585 +       # safe: cross compilers may not add the suffix if given an `-o'
12586 +       # argument, so we may need to know it at that point already.
12587 +       # Even if this section looks crufty: it has the advantage of
12588 +       # actually working.
12589         break;;
12590      * )
12591         break;;
12592    esac
12593  done
12594 +test "$ac_cv_exeext" = no && ac_cv_exeext=
12595 +
12596  else
12597 -  echo "$as_me: failed program was:" >&5
12598 +  ac_file=''
12599 +fi
12600 +
12601 +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
12602 +$as_echo "$ac_file" >&6; }
12603 +if test -z "$ac_file"; then
12604 +  $as_echo "$as_me: failed program was:" >&5
12605  sed 's/^/| /' conftest.$ac_ext >&5
12606  
12607 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12608 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12609 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12610 +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
12611  See \`config.log' for more details." >&5
12612 -echo "$as_me: error: C compiler cannot create executables
12613 +$as_echo "$as_me: error: C compiler cannot create executables
12614  See \`config.log' for more details." >&2;}
12615 -   { (exit 77); exit 77; }; }
12616 +   { (exit 77); exit 77; }; }; }
12617  fi
12618  
12619  ac_exeext=$ac_cv_exeext
12620 -echo "$as_me:$LINENO: result: $ac_file" >&5
12621 -echo "${ECHO_T}$ac_file" >&6
12622  
12623 -# Check the compiler produces executables we can run.  If not, either
12624 +# Check that the compiler produces executables we can run.  If not, either
12625  # the compiler is broken, or we cross compile.
12626 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12627 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12628 +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12629 +$as_echo_n "checking whether the C compiler works... " >&6; }
12630  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12631  # If not cross compiling, check that we can run a simple program.
12632  if test "$cross_compiling" != yes; then
12633    if { ac_try='./$ac_file'
12634 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 -  (eval $ac_try) 2>&5
12636 +  { (case "(($ac_try" in
12637 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 +  *) ac_try_echo=$ac_try;;
12639 +esac
12640 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641 +$as_echo "$ac_try_echo") >&5
12642 +  (eval "$ac_try") 2>&5
12643    ac_status=$?
12644 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646    (exit $ac_status); }; }; then
12647      cross_compiling=no
12648    else
12649      if test "$cross_compiling" = maybe; then
12650         cross_compiling=yes
12651      else
12652 -       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12653 +       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12654 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12655 +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
12656  If you meant to cross compile, use \`--host'.
12657  See \`config.log' for more details." >&5
12658 -echo "$as_me: error: cannot run C compiled programs.
12659 +$as_echo "$as_me: error: cannot run C compiled programs.
12660  If you meant to cross compile, use \`--host'.
12661  See \`config.log' for more details." >&2;}
12662 -   { (exit 1); exit 1; }; }
12663 +   { (exit 1); exit 1; }; }; }
12664      fi
12665    fi
12666  fi
12667 -echo "$as_me:$LINENO: result: yes" >&5
12668 -echo "${ECHO_T}yes" >&6
12669 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
12670 +$as_echo "yes" >&6; }
12671  
12672 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
12673 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
12674  ac_clean_files=$ac_clean_files_save
12675 -# Check the compiler produces executables we can run.  If not, either
12676 +# Check that the compiler produces executables we can run.  If not, either
12677  # the compiler is broken, or we cross compile.
12678 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12679 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12680 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
12681 -echo "${ECHO_T}$cross_compiling" >&6
12682 -
12683 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
12684 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12685 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12686 -  (eval $ac_link) 2>&5
12687 +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12688 +$as_echo_n "checking whether we are cross compiling... " >&6; }
12689 +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
12690 +$as_echo "$cross_compiling" >&6; }
12691 +
12692 +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
12693 +$as_echo_n "checking for suffix of executables... " >&6; }
12694 +if { (ac_try="$ac_link"
12695 +case "(($ac_try" in
12696 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 +  *) ac_try_echo=$ac_try;;
12698 +esac
12699 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12700 +$as_echo "$ac_try_echo") >&5
12701 +  (eval "$ac_link") 2>&5
12702    ac_status=$?
12703 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705    (exit $ac_status); }; then
12706    # If both `conftest.exe' and `conftest' are `present' (well, observable)
12707  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12708 @@ -2514,32 +3178,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12709  for ac_file in conftest.exe conftest conftest.*; do
12710    test -f "$ac_file" || continue
12711    case $ac_file in
12712 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12713 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
12714      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12715 -         export ac_cv_exeext
12716           break;;
12717      * ) break;;
12718    esac
12719  done
12720  else
12721 -  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12722 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12723 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12724 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12725  See \`config.log' for more details." >&5
12726 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12727 +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12728  See \`config.log' for more details." >&2;}
12729 -   { (exit 1); exit 1; }; }
12730 +   { (exit 1); exit 1; }; }; }
12731  fi
12732  
12733  rm -f conftest$ac_cv_exeext
12734 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12735 -echo "${ECHO_T}$ac_cv_exeext" >&6
12736 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12737 +$as_echo "$ac_cv_exeext" >&6; }
12738  
12739  rm -f conftest.$ac_ext
12740  EXEEXT=$ac_cv_exeext
12741  ac_exeext=$EXEEXT
12742 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
12743 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12744 +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
12745 +$as_echo_n "checking for suffix of object files... " >&6; }
12746  if test "${ac_cv_objext+set}" = set; then
12747 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12748 +  $as_echo_n "(cached) " >&6
12749  else
12750    cat >conftest.$ac_ext <<_ACEOF
12751  /* confdefs.h.  */
12752 @@ -2557,39 +3222,48 @@ main ()
12753  }
12754  _ACEOF
12755  rm -f conftest.o conftest.obj
12756 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 -  (eval $ac_compile) 2>&5
12758 +if { (ac_try="$ac_compile"
12759 +case "(($ac_try" in
12760 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 +  *) ac_try_echo=$ac_try;;
12762 +esac
12763 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12764 +$as_echo "$ac_try_echo") >&5
12765 +  (eval "$ac_compile") 2>&5
12766    ac_status=$?
12767 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769    (exit $ac_status); }; then
12770 -  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12771 +  for ac_file in conftest.o conftest.obj conftest.*; do
12772 +  test -f "$ac_file" || continue;
12773    case $ac_file in
12774 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12775 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
12776      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12777         break;;
12778    esac
12779  done
12780  else
12781 -  echo "$as_me: failed program was:" >&5
12782 +  $as_echo "$as_me: failed program was:" >&5
12783  sed 's/^/| /' conftest.$ac_ext >&5
12784  
12785 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12786 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12787 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12788 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12789  See \`config.log' for more details." >&5
12790 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
12791 +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
12792  See \`config.log' for more details." >&2;}
12793 -   { (exit 1); exit 1; }; }
12794 +   { (exit 1); exit 1; }; }; }
12795  fi
12796  
12797  rm -f conftest.$ac_cv_objext conftest.$ac_ext
12798  fi
12799 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12800 -echo "${ECHO_T}$ac_cv_objext" >&6
12801 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12802 +$as_echo "$ac_cv_objext" >&6; }
12803  OBJEXT=$ac_cv_objext
12804  ac_objext=$OBJEXT
12805 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12806 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12807 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12808 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12809  if test "${ac_cv_c_compiler_gnu+set}" = set; then
12810 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12811 +  $as_echo_n "(cached) " >&6
12812  else
12813    cat >conftest.$ac_ext <<_ACEOF
12814  /* confdefs.h.  */
12815 @@ -2610,50 +3284,54 @@ main ()
12816  }
12817  _ACEOF
12818  rm -f conftest.$ac_objext
12819 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 -  (eval $ac_compile) 2>conftest.er1
12821 +if { (ac_try="$ac_compile"
12822 +case "(($ac_try" in
12823 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 +  *) ac_try_echo=$ac_try;;
12825 +esac
12826 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12827 +$as_echo "$ac_try_echo") >&5
12828 +  (eval "$ac_compile") 2>conftest.er1
12829    ac_status=$?
12830    grep -v '^ *+' conftest.er1 >conftest.err
12831    rm -f conftest.er1
12832    cat conftest.err >&5
12833 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 -  (exit $ac_status); } &&
12835 -        { ac_try='test -z "$ac_c_werror_flag"
12836 -                        || test ! -s conftest.err'
12837 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 -  (eval $ac_try) 2>&5
12839 -  ac_status=$?
12840 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 -  (exit $ac_status); }; } &&
12842 -        { ac_try='test -s conftest.$ac_objext'
12843 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 -  (eval $ac_try) 2>&5
12845 -  ac_status=$?
12846 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 -  (exit $ac_status); }; }; then
12848 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 +  (exit $ac_status); } && {
12850 +        test -z "$ac_c_werror_flag" ||
12851 +        test ! -s conftest.err
12852 +       } && test -s conftest.$ac_objext; then
12853    ac_compiler_gnu=yes
12854  else
12855 -  echo "$as_me: failed program was:" >&5
12856 +  $as_echo "$as_me: failed program was:" >&5
12857  sed 's/^/| /' conftest.$ac_ext >&5
12858  
12859 -ac_compiler_gnu=no
12860 +       ac_compiler_gnu=no
12861  fi
12862 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12863 +
12864 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865  ac_cv_c_compiler_gnu=$ac_compiler_gnu
12866  
12867  fi
12868 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12869 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12870 -GCC=`test $ac_compiler_gnu = yes && echo yes`
12871 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12872 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12873 +if test $ac_compiler_gnu = yes; then
12874 +  GCC=yes
12875 +else
12876 +  GCC=
12877 +fi
12878  ac_test_CFLAGS=${CFLAGS+set}
12879  ac_save_CFLAGS=$CFLAGS
12880 -CFLAGS="-g"
12881 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12882 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12883 +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12884 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
12885  if test "${ac_cv_prog_cc_g+set}" = set; then
12886 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12887 +  $as_echo_n "(cached) " >&6
12888  else
12889 -  cat >conftest.$ac_ext <<_ACEOF
12890 +  ac_save_c_werror_flag=$ac_c_werror_flag
12891 +   ac_c_werror_flag=yes
12892 +   ac_cv_prog_cc_g=no
12893 +   CFLAGS="-g"
12894 +   cat >conftest.$ac_ext <<_ACEOF
12895  /* confdefs.h.  */
12896  _ACEOF
12897  cat confdefs.h >>conftest.$ac_ext
12898 @@ -2669,38 +3347,121 @@ main ()
12899  }
12900  _ACEOF
12901  rm -f conftest.$ac_objext
12902 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 -  (eval $ac_compile) 2>conftest.er1
12904 +if { (ac_try="$ac_compile"
12905 +case "(($ac_try" in
12906 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 +  *) ac_try_echo=$ac_try;;
12908 +esac
12909 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12910 +$as_echo "$ac_try_echo") >&5
12911 +  (eval "$ac_compile") 2>conftest.er1
12912    ac_status=$?
12913    grep -v '^ *+' conftest.er1 >conftest.err
12914    rm -f conftest.er1
12915    cat conftest.err >&5
12916 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 -  (exit $ac_status); } &&
12918 -        { ac_try='test -z "$ac_c_werror_flag"
12919 -                        || test ! -s conftest.err'
12920 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 -  (eval $ac_try) 2>&5
12922 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 +  (exit $ac_status); } && {
12924 +        test -z "$ac_c_werror_flag" ||
12925 +        test ! -s conftest.err
12926 +       } && test -s conftest.$ac_objext; then
12927 +  ac_cv_prog_cc_g=yes
12928 +else
12929 +  $as_echo "$as_me: failed program was:" >&5
12930 +sed 's/^/| /' conftest.$ac_ext >&5
12931 +
12932 +       CFLAGS=""
12933 +      cat >conftest.$ac_ext <<_ACEOF
12934 +/* confdefs.h.  */
12935 +_ACEOF
12936 +cat confdefs.h >>conftest.$ac_ext
12937 +cat >>conftest.$ac_ext <<_ACEOF
12938 +/* end confdefs.h.  */
12939 +
12940 +int
12941 +main ()
12942 +{
12943 +
12944 +  ;
12945 +  return 0;
12946 +}
12947 +_ACEOF
12948 +rm -f conftest.$ac_objext
12949 +if { (ac_try="$ac_compile"
12950 +case "(($ac_try" in
12951 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 +  *) ac_try_echo=$ac_try;;
12953 +esac
12954 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12955 +$as_echo "$ac_try_echo") >&5
12956 +  (eval "$ac_compile") 2>conftest.er1
12957    ac_status=$?
12958 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 -  (exit $ac_status); }; } &&
12960 -        { ac_try='test -s conftest.$ac_objext'
12961 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 -  (eval $ac_try) 2>&5
12963 +  grep -v '^ *+' conftest.er1 >conftest.err
12964 +  rm -f conftest.er1
12965 +  cat conftest.err >&5
12966 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 +  (exit $ac_status); } && {
12968 +        test -z "$ac_c_werror_flag" ||
12969 +        test ! -s conftest.err
12970 +       } && test -s conftest.$ac_objext; then
12971 +  :
12972 +else
12973 +  $as_echo "$as_me: failed program was:" >&5
12974 +sed 's/^/| /' conftest.$ac_ext >&5
12975 +
12976 +       ac_c_werror_flag=$ac_save_c_werror_flag
12977 +        CFLAGS="-g"
12978 +        cat >conftest.$ac_ext <<_ACEOF
12979 +/* confdefs.h.  */
12980 +_ACEOF
12981 +cat confdefs.h >>conftest.$ac_ext
12982 +cat >>conftest.$ac_ext <<_ACEOF
12983 +/* end confdefs.h.  */
12984 +
12985 +int
12986 +main ()
12987 +{
12988 +
12989 +  ;
12990 +  return 0;
12991 +}
12992 +_ACEOF
12993 +rm -f conftest.$ac_objext
12994 +if { (ac_try="$ac_compile"
12995 +case "(($ac_try" in
12996 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 +  *) ac_try_echo=$ac_try;;
12998 +esac
12999 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13000 +$as_echo "$ac_try_echo") >&5
13001 +  (eval "$ac_compile") 2>conftest.er1
13002    ac_status=$?
13003 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 -  (exit $ac_status); }; }; then
13005 +  grep -v '^ *+' conftest.er1 >conftest.err
13006 +  rm -f conftest.er1
13007 +  cat conftest.err >&5
13008 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 +  (exit $ac_status); } && {
13010 +        test -z "$ac_c_werror_flag" ||
13011 +        test ! -s conftest.err
13012 +       } && test -s conftest.$ac_objext; then
13013    ac_cv_prog_cc_g=yes
13014  else
13015 -  echo "$as_me: failed program was:" >&5
13016 +  $as_echo "$as_me: failed program was:" >&5
13017  sed 's/^/| /' conftest.$ac_ext >&5
13018  
13019 -ac_cv_prog_cc_g=no
13020 +
13021 +fi
13022 +
13023 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 +fi
13025 +
13026 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027  fi
13028 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13029 +
13030 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 +   ac_c_werror_flag=$ac_save_c_werror_flag
13032  fi
13033 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13034 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13035 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13036 +$as_echo "$ac_cv_prog_cc_g" >&6; }
13037  if test "$ac_test_CFLAGS" = set; then
13038    CFLAGS=$ac_save_CFLAGS
13039  elif test $ac_cv_prog_cc_g = yes; then
13040 @@ -2716,12 +3477,12 @@ else
13041      CFLAGS=
13042    fi
13043  fi
13044 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
13045 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13046 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
13047 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13048 +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13049 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13050 +if test "${ac_cv_prog_cc_c89+set}" = set; then
13051 +  $as_echo_n "(cached) " >&6
13052  else
13053 -  ac_cv_prog_cc_stdc=no
13054 +  ac_cv_prog_cc_c89=no
13055  ac_save_CC=$CC
13056  cat >conftest.$ac_ext <<_ACEOF
13057  /* confdefs.h.  */
13058 @@ -2755,12 +3516,17 @@ static char *f (char * (*g) (char **, int), char **p, ...)
13059  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13060     function prototypes and stuff, but not '\xHH' hex character constants.
13061     These don't provoke an error unfortunately, instead are silently treated
13062 -   as 'x'.  The following induces an error, until -std1 is added to get
13063 +   as 'x'.  The following induces an error, until -std is added to get
13064     proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13065     array size at least.  It's necessary to write '\x00'==0 to get something
13066 -   that's true only with -std1.  */
13067 +   that's true only with -std.  */
13068  int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13069  
13070 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13071 +   inside strings and character constants.  */
13072 +#define FOO(x) 'x'
13073 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13074 +
13075  int test (int i, double x);
13076  struct s1 {int (*f) (int a);};
13077  struct s2 {int (*f) (double a);};
13078 @@ -2775,205 +3541,58 @@ return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13079    return 0;
13080  }
13081  _ACEOF
13082 -# Don't try gcc -ansi; that turns off useful extensions and
13083 -# breaks some systems' header files.
13084 -# AIX                  -qlanglvl=ansi
13085 -# Ultrix and OSF/1     -std1
13086 -# HP-UX 10.20 and later        -Ae
13087 -# HP-UX older versions -Aa -D_HPUX_SOURCE
13088 -# SVR4                 -Xc -D__EXTENSIONS__
13089 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13090 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13091 +       -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13092  do
13093    CC="$ac_save_CC $ac_arg"
13094    rm -f conftest.$ac_objext
13095 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 -  (eval $ac_compile) 2>conftest.er1
13097 +if { (ac_try="$ac_compile"
13098 +case "(($ac_try" in
13099 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 +  *) ac_try_echo=$ac_try;;
13101 +esac
13102 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13103 +$as_echo "$ac_try_echo") >&5
13104 +  (eval "$ac_compile") 2>conftest.er1
13105    ac_status=$?
13106    grep -v '^ *+' conftest.er1 >conftest.err
13107    rm -f conftest.er1
13108    cat conftest.err >&5
13109 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 -  (exit $ac_status); } &&
13111 -        { ac_try='test -z "$ac_c_werror_flag"
13112 -                        || test ! -s conftest.err'
13113 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 -  (eval $ac_try) 2>&5
13115 -  ac_status=$?
13116 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 -  (exit $ac_status); }; } &&
13118 -        { ac_try='test -s conftest.$ac_objext'
13119 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 -  (eval $ac_try) 2>&5
13121 -  ac_status=$?
13122 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 -  (exit $ac_status); }; }; then
13124 -  ac_cv_prog_cc_stdc=$ac_arg
13125 -break
13126 -else
13127 -  echo "$as_me: failed program was:" >&5
13128 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 +  (exit $ac_status); } && {
13130 +        test -z "$ac_c_werror_flag" ||
13131 +        test ! -s conftest.err
13132 +       } && test -s conftest.$ac_objext; then
13133 +  ac_cv_prog_cc_c89=$ac_arg
13134 +else
13135 +  $as_echo "$as_me: failed program was:" >&5
13136  sed 's/^/| /' conftest.$ac_ext >&5
13137  
13138 +
13139  fi
13140 -rm -f conftest.err conftest.$ac_objext
13141 +
13142 +rm -f core conftest.err conftest.$ac_objext
13143 +  test "x$ac_cv_prog_cc_c89" != "xno" && break
13144  done
13145 -rm -f conftest.$ac_ext conftest.$ac_objext
13146 +rm -f conftest.$ac_ext
13147  CC=$ac_save_CC
13148  
13149  fi
13150 -
13151 -case "x$ac_cv_prog_cc_stdc" in
13152 -  x|xno)
13153 -    echo "$as_me:$LINENO: result: none needed" >&5
13154 -echo "${ECHO_T}none needed" >&6 ;;
13155 +# AC_CACHE_VAL
13156 +case "x$ac_cv_prog_cc_c89" in
13157 +  x)
13158 +    { $as_echo "$as_me:$LINENO: result: none needed" >&5
13159 +$as_echo "none needed" >&6; } ;;
13160 +  xno)
13161 +    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
13162 +$as_echo "unsupported" >&6; } ;;
13163    *)
13164 -    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13165 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13166 -    CC="$CC $ac_cv_prog_cc_stdc" ;;
13167 +    CC="$CC $ac_cv_prog_cc_c89"
13168 +    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13169 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13170  esac
13171  
13172 -# Some people use a C++ compiler to compile C.  Since we use `exit',
13173 -# in C++ we need to declare it.  In case someone uses the same compiler
13174 -# for both compiling C and C++ we need to have the C++ compiler decide
13175 -# the declaration of exit, since it's the most demanding environment.
13176 -cat >conftest.$ac_ext <<_ACEOF
13177 -#ifndef __cplusplus
13178 -  choke me
13179 -#endif
13180 -_ACEOF
13181 -rm -f conftest.$ac_objext
13182 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13183 -  (eval $ac_compile) 2>conftest.er1
13184 -  ac_status=$?
13185 -  grep -v '^ *+' conftest.er1 >conftest.err
13186 -  rm -f conftest.er1
13187 -  cat conftest.err >&5
13188 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 -  (exit $ac_status); } &&
13190 -        { ac_try='test -z "$ac_c_werror_flag"
13191 -                        || test ! -s conftest.err'
13192 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 -  (eval $ac_try) 2>&5
13194 -  ac_status=$?
13195 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 -  (exit $ac_status); }; } &&
13197 -        { ac_try='test -s conftest.$ac_objext'
13198 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 -  (eval $ac_try) 2>&5
13200 -  ac_status=$?
13201 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 -  (exit $ac_status); }; }; then
13203 -  for ac_declaration in \
13204 -   '' \
13205 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
13206 -   'extern "C" void std::exit (int); using std::exit;' \
13207 -   'extern "C" void exit (int) throw ();' \
13208 -   'extern "C" void exit (int);' \
13209 -   'void exit (int);'
13210 -do
13211 -  cat >conftest.$ac_ext <<_ACEOF
13212 -/* confdefs.h.  */
13213 -_ACEOF
13214 -cat confdefs.h >>conftest.$ac_ext
13215 -cat >>conftest.$ac_ext <<_ACEOF
13216 -/* end confdefs.h.  */
13217 -$ac_declaration
13218 -#include <stdlib.h>
13219 -int
13220 -main ()
13221 -{
13222 -exit (42);
13223 -  ;
13224 -  return 0;
13225 -}
13226 -_ACEOF
13227 -rm -f conftest.$ac_objext
13228 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229 -  (eval $ac_compile) 2>conftest.er1
13230 -  ac_status=$?
13231 -  grep -v '^ *+' conftest.er1 >conftest.err
13232 -  rm -f conftest.er1
13233 -  cat conftest.err >&5
13234 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 -  (exit $ac_status); } &&
13236 -        { ac_try='test -z "$ac_c_werror_flag"
13237 -                        || test ! -s conftest.err'
13238 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 -  (eval $ac_try) 2>&5
13240 -  ac_status=$?
13241 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 -  (exit $ac_status); }; } &&
13243 -        { ac_try='test -s conftest.$ac_objext'
13244 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 -  (eval $ac_try) 2>&5
13246 -  ac_status=$?
13247 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 -  (exit $ac_status); }; }; then
13249 -  :
13250 -else
13251 -  echo "$as_me: failed program was:" >&5
13252 -sed 's/^/| /' conftest.$ac_ext >&5
13253 -
13254 -continue
13255 -fi
13256 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13257 -  cat >conftest.$ac_ext <<_ACEOF
13258 -/* confdefs.h.  */
13259 -_ACEOF
13260 -cat confdefs.h >>conftest.$ac_ext
13261 -cat >>conftest.$ac_ext <<_ACEOF
13262 -/* end confdefs.h.  */
13263 -$ac_declaration
13264 -int
13265 -main ()
13266 -{
13267 -exit (42);
13268 -  ;
13269 -  return 0;
13270 -}
13271 -_ACEOF
13272 -rm -f conftest.$ac_objext
13273 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13274 -  (eval $ac_compile) 2>conftest.er1
13275 -  ac_status=$?
13276 -  grep -v '^ *+' conftest.er1 >conftest.err
13277 -  rm -f conftest.er1
13278 -  cat conftest.err >&5
13279 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 -  (exit $ac_status); } &&
13281 -        { ac_try='test -z "$ac_c_werror_flag"
13282 -                        || test ! -s conftest.err'
13283 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 -  (eval $ac_try) 2>&5
13285 -  ac_status=$?
13286 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 -  (exit $ac_status); }; } &&
13288 -        { ac_try='test -s conftest.$ac_objext'
13289 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 -  (eval $ac_try) 2>&5
13291 -  ac_status=$?
13292 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 -  (exit $ac_status); }; }; then
13294 -  break
13295 -else
13296 -  echo "$as_me: failed program was:" >&5
13297 -sed 's/^/| /' conftest.$ac_ext >&5
13298 -
13299 -fi
13300 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13301 -done
13302 -rm -f conftest*
13303 -if test -n "$ac_declaration"; then
13304 -  echo '#ifdef __cplusplus' >>confdefs.h
13305 -  echo $ac_declaration      >>confdefs.h
13306 -  echo '#endif'             >>confdefs.h
13307 -fi
13308  
13309 -else
13310 -  echo "$as_me: failed program was:" >&5
13311 -sed 's/^/| /' conftest.$ac_ext >&5
13312 -
13313 -fi
13314 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13315  ac_ext=c
13316  ac_cpp='$CPP $CPPFLAGS'
13317  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318 @@ -2981,7 +3600,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
13319  ac_compiler_gnu=$ac_cv_c_compiler_gnu
13320  DEPDIR="${am__leading_dot}deps"
13321  
13322 -          ac_config_commands="$ac_config_commands depfiles"
13323 +ac_config_commands="$ac_config_commands depfiles"
13324  
13325  
13326  am_make=${MAKE-make}
13327 @@ -2991,8 +3610,8 @@ am__doit:
13328  .PHONY: am__doit
13329  END
13330  # If we don't find an include directive, just comment out the code.
13331 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
13332 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
13333 +{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
13334 +$as_echo_n "checking for style of include used by $am_make... " >&6; }
13335  am__include="#"
13336  am__quote=
13337  _am_result=none
13338 @@ -3019,15 +3638,15 @@ if test "$am__include" = "#"; then
13339  fi
13340  
13341  
13342 -echo "$as_me:$LINENO: result: $_am_result" >&5
13343 -echo "${ECHO_T}$_am_result" >&6
13344 +{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
13345 +$as_echo "$_am_result" >&6; }
13346  rm -f confinc confmf
13347  
13348 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
13349 +# Check whether --enable-dependency-tracking was given.
13350  if test "${enable_dependency_tracking+set}" = set; then
13351 -  enableval="$enable_dependency_tracking"
13352 +  enableval=$enable_dependency_tracking;
13353 +fi
13354  
13355 -fi;
13356  if test "x$enable_dependency_tracking" != xno; then
13357    am_depcomp="$ac_aux_dir/depcomp"
13358    AMDEPBACKSLASH='\'
13359 @@ -3047,10 +3666,10 @@ fi
13360  
13361  depcc="$CC"   am_compiler_list=
13362  
13363 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13364 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13365 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13366 +$as_echo_n "checking dependency style of $depcc... " >&6; }
13367  if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13368 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13369 +  $as_echo_n "(cached) " >&6
13370  else
13371    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13372    # We make a subdir and do the tests there.  Otherwise we can end up
13373 @@ -3137,8 +3756,8 @@ else
13374  fi
13375  
13376  fi
13377 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13378 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
13379 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13380 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13381  CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13382  
13383  
13384 @@ -3155,10 +3774,9 @@ fi
13385  
13386  
13387  
13388 -# Check whether --enable-static or --disable-static was given.
13389 +# Check whether --enable-static was given.
13390  if test "${enable_static+set}" = set; then
13391 -  enableval="$enable_static"
13392 -  p=${PACKAGE-default}
13393 +  enableval=$enable_static; p=${PACKAGE-default}
13394      case $enableval in
13395      yes) enable_static=yes ;;
13396      no) enable_static=no ;;
13397 @@ -3177,13 +3795,13 @@ if test "${enable_static+set}" = set; then
13398      esac
13399  else
13400    enable_static=no
13401 -fi;
13402 +fi
13403  
13404  
13405 -# Check whether --enable-shared or --disable-shared was given.
13406 +
13407 +# Check whether --enable-shared was given.
13408  if test "${enable_shared+set}" = set; then
13409 -  enableval="$enable_shared"
13410 -  p=${PACKAGE-default}
13411 +  enableval=$enable_shared; p=${PACKAGE-default}
13412      case $enableval in
13413      yes) enable_shared=yes ;;
13414      no) enable_shared=no ;;
13415 @@ -3202,12 +3820,12 @@ if test "${enable_shared+set}" = set; then
13416      esac
13417  else
13418    enable_shared=yes
13419 -fi;
13420 +fi
13421  
13422 -# Check whether --enable-fast-install or --disable-fast-install was given.
13423 +
13424 +# Check whether --enable-fast-install was given.
13425  if test "${enable_fast_install+set}" = set; then
13426 -  enableval="$enable_fast_install"
13427 -  p=${PACKAGE-default}
13428 +  enableval=$enable_fast_install; p=${PACKAGE-default}
13429      case $enableval in
13430      yes) enable_fast_install=yes ;;
13431      no) enable_fast_install=no ;;
13432 @@ -3226,12 +3844,13 @@ if test "${enable_fast_install+set}" = set; then
13433      esac
13434  else
13435    enable_fast_install=yes
13436 -fi;
13437 +fi
13438  
13439 -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13440 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13441 +
13442 +{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13443 +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13444  if test "${lt_cv_path_SED+set}" = set; then
13445 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13446 +  $as_echo_n "(cached) " >&6
13447  else
13448    # Loop through the user's path and test for sed and gsed.
13449  # Then use that list of sed's as ones to test for truncation.
13450 @@ -3242,18 +3861,19 @@ do
13451    test -z "$as_dir" && as_dir=.
13452    for lt_ac_prog in sed gsed; do
13453      for ac_exec_ext in '' $ac_executable_extensions; do
13454 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13455 +      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
13456          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13457        fi
13458      done
13459    done
13460  done
13461 +IFS=$as_save_IFS
13462  lt_ac_max=0
13463  lt_ac_count=0
13464  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
13465  # along with /bin/sed that truncates output.
13466  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13467 -  test ! -f $lt_ac_sed && break
13468 +  test ! -f $lt_ac_sed && continue
13469    cat /dev/null > conftest.in
13470    lt_ac_count=0
13471    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13472 @@ -3278,41 +3898,161 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13473      fi
13474    done
13475  done
13476 +
13477 +fi
13478 +
13479  SED=$lt_cv_path_SED
13480  
13481 +{ $as_echo "$as_me:$LINENO: result: $SED" >&5
13482 +$as_echo "$SED" >&6; }
13483 +
13484 +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
13485 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13486 +if test "${ac_cv_path_GREP+set}" = set; then
13487 +  $as_echo_n "(cached) " >&6
13488 +else
13489 +  if test -z "$GREP"; then
13490 +  ac_path_GREP_found=false
13491 +  # Loop through the user's path and test for each of PROGNAME-LIST
13492 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13494 +do
13495 +  IFS=$as_save_IFS
13496 +  test -z "$as_dir" && as_dir=.
13497 +  for ac_prog in grep ggrep; do
13498 +    for ac_exec_ext in '' $ac_executable_extensions; do
13499 +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13500 +      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
13501 +# Check for GNU ac_path_GREP and select it if it is found.
13502 +  # Check for GNU $ac_path_GREP
13503 +case `"$ac_path_GREP" --version 2>&1` in
13504 +*GNU*)
13505 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13506 +*)
13507 +  ac_count=0
13508 +  $as_echo_n 0123456789 >"conftest.in"
13509 +  while :
13510 +  do
13511 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
13512 +    mv "conftest.tmp" "conftest.in"
13513 +    cp "conftest.in" "conftest.nl"
13514 +    $as_echo 'GREP' >> "conftest.nl"
13515 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13516 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13517 +    ac_count=`expr $ac_count + 1`
13518 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
13519 +      # Best one so far, save it but keep looking for a better one
13520 +      ac_cv_path_GREP="$ac_path_GREP"
13521 +      ac_path_GREP_max=$ac_count
13522 +    fi
13523 +    # 10*(2^10) chars as input seems more than enough
13524 +    test $ac_count -gt 10 && break
13525 +  done
13526 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13527 +esac
13528 +
13529 +      $ac_path_GREP_found && break 3
13530 +    done
13531 +  done
13532 +done
13533 +IFS=$as_save_IFS
13534 +  if test -z "$ac_cv_path_GREP"; then
13535 +    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
13536 +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
13537 +   { (exit 1); exit 1; }; }
13538 +  fi
13539 +else
13540 +  ac_cv_path_GREP=$GREP
13541  fi
13542  
13543 -echo "$as_me:$LINENO: result: $SED" >&5
13544 -echo "${ECHO_T}$SED" >&6
13545 +fi
13546 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
13547 +$as_echo "$ac_cv_path_GREP" >&6; }
13548 + GREP="$ac_cv_path_GREP"
13549  
13550 -echo "$as_me:$LINENO: checking for egrep" >&5
13551 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13552 -if test "${ac_cv_prog_egrep+set}" = set; then
13553 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13554 +
13555 +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
13556 +$as_echo_n "checking for egrep... " >&6; }
13557 +if test "${ac_cv_path_EGREP+set}" = set; then
13558 +  $as_echo_n "(cached) " >&6
13559  else
13560 -  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13561 -    then ac_cv_prog_egrep='grep -E'
13562 -    else ac_cv_prog_egrep='egrep'
13563 +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13564 +   then ac_cv_path_EGREP="$GREP -E"
13565 +   else
13566 +     if test -z "$EGREP"; then
13567 +  ac_path_EGREP_found=false
13568 +  # Loop through the user's path and test for each of PROGNAME-LIST
13569 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13571 +do
13572 +  IFS=$as_save_IFS
13573 +  test -z "$as_dir" && as_dir=.
13574 +  for ac_prog in egrep; do
13575 +    for ac_exec_ext in '' $ac_executable_extensions; do
13576 +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13577 +      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
13578 +# Check for GNU ac_path_EGREP and select it if it is found.
13579 +  # Check for GNU $ac_path_EGREP
13580 +case `"$ac_path_EGREP" --version 2>&1` in
13581 +*GNU*)
13582 +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13583 +*)
13584 +  ac_count=0
13585 +  $as_echo_n 0123456789 >"conftest.in"
13586 +  while :
13587 +  do
13588 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
13589 +    mv "conftest.tmp" "conftest.in"
13590 +    cp "conftest.in" "conftest.nl"
13591 +    $as_echo 'EGREP' >> "conftest.nl"
13592 +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13593 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13594 +    ac_count=`expr $ac_count + 1`
13595 +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13596 +      # Best one so far, save it but keep looking for a better one
13597 +      ac_cv_path_EGREP="$ac_path_EGREP"
13598 +      ac_path_EGREP_max=$ac_count
13599      fi
13600 +    # 10*(2^10) chars as input seems more than enough
13601 +    test $ac_count -gt 10 && break
13602 +  done
13603 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13604 +esac
13605 +
13606 +      $ac_path_EGREP_found && break 3
13607 +    done
13608 +  done
13609 +done
13610 +IFS=$as_save_IFS
13611 +  if test -z "$ac_cv_path_EGREP"; then
13612 +    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
13613 +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
13614 +   { (exit 1); exit 1; }; }
13615 +  fi
13616 +else
13617 +  ac_cv_path_EGREP=$EGREP
13618  fi
13619 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13620 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13621 - EGREP=$ac_cv_prog_egrep
13622 +
13623 +   fi
13624 +fi
13625 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
13626 +$as_echo "$ac_cv_path_EGREP" >&6; }
13627 + EGREP="$ac_cv_path_EGREP"
13628  
13629  
13630  
13631 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
13632 +# Check whether --with-gnu-ld was given.
13633  if test "${with_gnu_ld+set}" = set; then
13634 -  withval="$with_gnu_ld"
13635 -  test "$withval" = no || with_gnu_ld=yes
13636 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13637  else
13638    with_gnu_ld=no
13639 -fi;
13640 +fi
13641 +
13642  ac_prog=ld
13643  if test "$GCC" = yes; then
13644    # Check if gcc -print-prog-name=ld gives a path.
13645 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13646 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13647 +  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13648 +$as_echo_n "checking for ld used by $CC... " >&6; }
13649    case $host in
13650    *-*-mingw*)
13651      # gcc leaves a trailing carriage return which upsets mingw
13652 @@ -3341,14 +4081,14 @@ echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13653      ;;
13654    esac
13655  elif test "$with_gnu_ld" = yes; then
13656 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
13657 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13658 +  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13659 +$as_echo_n "checking for GNU ld... " >&6; }
13660  else
13661 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13662 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13663 +  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13664 +$as_echo_n "checking for non-GNU ld... " >&6; }
13665  fi
13666  if test "${lt_cv_path_LD+set}" = set; then
13667 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13668 +  $as_echo_n "(cached) " >&6
13669  else
13670    if test -z "$LD"; then
13671    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13672 @@ -3358,7 +4098,7 @@ else
13673      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13674        lt_cv_path_LD="$ac_dir/$ac_prog"
13675        # Check to see if the program is GNU ld.  I'd rather use --version,
13676 -      # but apparently some GNU ld's only accept -v.
13677 +      # but apparently some variants of GNU ld only accept -v.
13678        # Break only if it was the GNU/non-GNU ld that we prefer.
13679        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13680        *GNU* | *'with BFD'*)
13681 @@ -3378,21 +4118,21 @@ fi
13682  
13683  LD="$lt_cv_path_LD"
13684  if test -n "$LD"; then
13685 -  echo "$as_me:$LINENO: result: $LD" >&5
13686 -echo "${ECHO_T}$LD" >&6
13687 +  { $as_echo "$as_me:$LINENO: result: $LD" >&5
13688 +$as_echo "$LD" >&6; }
13689  else
13690 -  echo "$as_me:$LINENO: result: no" >&5
13691 -echo "${ECHO_T}no" >&6
13692 +  { $as_echo "$as_me:$LINENO: result: no" >&5
13693 +$as_echo "no" >&6; }
13694  fi
13695 -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13696 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13697 +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13698 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13699     { (exit 1); exit 1; }; }
13700 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13701 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13702 +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13703 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13704  if test "${lt_cv_prog_gnu_ld+set}" = set; then
13705 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13706 +  $as_echo_n "(cached) " >&6
13707  else
13708 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13709 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13710  case `$LD -v 2>&1 </dev/null` in
13711  *GNU* | *'with BFD'*)
13712    lt_cv_prog_gnu_ld=yes
13713 @@ -3402,88 +4142,104 @@ case `$LD -v 2>&1 </dev/null` in
13714    ;;
13715  esac
13716  fi
13717 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13718 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13719 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13720 +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13721  with_gnu_ld=$lt_cv_prog_gnu_ld
13722  
13723  
13724 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13725 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
13726 +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13727 +$as_echo_n "checking for $LD option to reload object files... " >&6; }
13728  if test "${lt_cv_ld_reload_flag+set}" = set; then
13729 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13730 +  $as_echo_n "(cached) " >&6
13731  else
13732    lt_cv_ld_reload_flag='-r'
13733  fi
13734 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13735 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
13736 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13737 +$as_echo "$lt_cv_ld_reload_flag" >&6; }
13738  reload_flag=$lt_cv_ld_reload_flag
13739  case $reload_flag in
13740  "" | " "*) ;;
13741  *) reload_flag=" $reload_flag" ;;
13742  esac
13743  reload_cmds='$LD$reload_flag -o $output$reload_objs'
13744 +case $host_os in
13745 +  darwin*)
13746 +    if test "$GCC" = yes; then
13747 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13748 +    else
13749 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13750 +    fi
13751 +    ;;
13752 +esac
13753  
13754 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13755 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
13756 +{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13757 +$as_echo_n "checking for BSD-compatible nm... " >&6; }
13758  if test "${lt_cv_path_NM+set}" = set; then
13759 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13760 +  $as_echo_n "(cached) " >&6
13761  else
13762    if test -n "$NM"; then
13763    # Let the user override the test.
13764    lt_cv_path_NM="$NM"
13765  else
13766 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13767 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
13768 -    IFS="$lt_save_ifs"
13769 -    test -z "$ac_dir" && ac_dir=.
13770 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
13771 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13772 -      # Check to see if the nm accepts a BSD-compat flag.
13773 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13774 -      #   nm: unknown option "B" ignored
13775 -      # Tru64's nm complains that /dev/null is an invalid object file
13776 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13777 -      */dev/null* | *'Invalid file or object type'*)
13778 -       lt_cv_path_NM="$tmp_nm -B"
13779 -       break
13780 -        ;;
13781 -      *)
13782 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13783 -       */dev/null*)
13784 -         lt_cv_path_NM="$tmp_nm -p"
13785 +  lt_nm_to_check="${ac_tool_prefix}nm"
13786 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13787 +    lt_nm_to_check="$lt_nm_to_check nm"
13788 +  fi
13789 +  for lt_tmp_nm in $lt_nm_to_check; do
13790 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13791 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13792 +      IFS="$lt_save_ifs"
13793 +      test -z "$ac_dir" && ac_dir=.
13794 +      tmp_nm="$ac_dir/$lt_tmp_nm"
13795 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13796 +       # Check to see if the nm accepts a BSD-compat flag.
13797 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13798 +       #   nm: unknown option "B" ignored
13799 +       # Tru64's nm complains that /dev/null is an invalid object file
13800 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13801 +       */dev/null* | *'Invalid file or object type'*)
13802 +         lt_cv_path_NM="$tmp_nm -B"
13803           break
13804           ;;
13805         *)
13806 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13807 -         continue # so that we can try to find one that supports BSD flags
13808 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13809 +         */dev/null*)
13810 +           lt_cv_path_NM="$tmp_nm -p"
13811 +           break
13812 +           ;;
13813 +         *)
13814 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13815 +           continue # so that we can try to find one that supports BSD flags
13816 +           ;;
13817 +         esac
13818           ;;
13819         esac
13820 -      esac
13821 -    fi
13822 +      fi
13823 +    done
13824 +    IFS="$lt_save_ifs"
13825    done
13826 -  IFS="$lt_save_ifs"
13827    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
13828  fi
13829  fi
13830 -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13831 -echo "${ECHO_T}$lt_cv_path_NM" >&6
13832 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13833 +$as_echo "$lt_cv_path_NM" >&6; }
13834  NM="$lt_cv_path_NM"
13835  
13836 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
13837 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13838 +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
13839 +$as_echo_n "checking whether ln -s works... " >&6; }
13840  LN_S=$as_ln_s
13841  if test "$LN_S" = "ln -s"; then
13842 -  echo "$as_me:$LINENO: result: yes" >&5
13843 -echo "${ECHO_T}yes" >&6
13844 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
13845 +$as_echo "yes" >&6; }
13846  else
13847 -  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13848 -echo "${ECHO_T}no, using $LN_S" >&6
13849 +  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13850 +$as_echo "no, using $LN_S" >&6; }
13851  fi
13852  
13853 -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13854 -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
13855 +{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
13856 +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
13857  if test "${lt_cv_deplibs_check_method+set}" = set; then
13858 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13859 +  $as_echo_n "(cached) " >&6
13860  else
13861    lt_cv_file_magic_cmd='$MAGIC_CMD'
13862  lt_cv_file_magic_test_file=
13863 @@ -3500,7 +4256,7 @@ lt_cv_deplibs_check_method='unknown'
13864  # whether `pass_all' will *always* work, you probably want this one.
13865  
13866  case $host_os in
13867 -aix4* | aix5*)
13868 +aix[4-9]*)
13869    lt_cv_deplibs_check_method=pass_all
13870    ;;
13871  
13872 @@ -3508,7 +4264,7 @@ beos*)
13873    lt_cv_deplibs_check_method=pass_all
13874    ;;
13875  
13876 -bsdi4*)
13877 +bsdi[45]*)
13878    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13879    lt_cv_file_magic_cmd='/usr/bin/file -L'
13880    lt_cv_file_magic_test_file=/shlib/libc.so
13881 @@ -3522,22 +4278,28 @@ cygwin*)
13882  
13883  mingw* | pw32*)
13884    # Base MSYS/MinGW do not provide the 'file' command needed by
13885 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13886 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13887 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
13888 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13889 +  # unless we find 'file', for example because we are cross-compiling.
13890 +  if ( file / ) >/dev/null 2>&1; then
13891 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13892 +    lt_cv_file_magic_cmd='func_win32_libid'
13893 +  else
13894 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13895 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
13896 +  fi
13897    ;;
13898  
13899  darwin* | rhapsody*)
13900    lt_cv_deplibs_check_method=pass_all
13901    ;;
13902  
13903 -freebsd* | kfreebsd*-gnu)
13904 +freebsd* | dragonfly*)
13905    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13906      case $host_cpu in
13907      i*86 )
13908        # Not sure whether the presence of OpenBSD here was a mistake.
13909        # Let's accept both of them until this is cleared up.
13910 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
13911 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13912        lt_cv_file_magic_cmd=/usr/bin/file
13913        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13914        ;;
13915 @@ -3553,7 +4315,7 @@ gnu*)
13916  
13917  hpux10.20* | hpux11*)
13918    lt_cv_file_magic_cmd=/usr/bin/file
13919 -  case "$host_cpu" in
13920 +  case $host_cpu in
13921    ia64*)
13922      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13923      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13924 @@ -3569,6 +4331,11 @@ hpux10.20* | hpux11*)
13925    esac
13926    ;;
13927  
13928 +interix[3-9]*)
13929 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13930 +  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13931 +  ;;
13932 +
13933  irix5* | irix6* | nonstopux*)
13934    case $LD in
13935    *-32|*"-32 ") libmagic=32-bit;;
13936 @@ -3580,20 +4347,11 @@ irix5* | irix6* | nonstopux*)
13937    ;;
13938  
13939  # This must be Linux ELF.
13940 -linux*)
13941 -  case $host_cpu in
13942 -  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
13943 -    lt_cv_deplibs_check_method=pass_all ;;
13944 -  *)
13945 -    # glibc up to 2.1.1 does not perform some relocations on ARM
13946 -    # this will be overridden with pass_all, but let us keep it just in case
13947 -    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
13948 -  esac
13949 -  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
13950 +linux* | k*bsd*-gnu)
13951    lt_cv_deplibs_check_method=pass_all
13952    ;;
13953  
13954 -netbsd*)
13955 +netbsd* | netbsdelf*-gnu)
13956    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13957      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13958    else
13959 @@ -3612,12 +4370,10 @@ nto-qnx*)
13960    ;;
13961  
13962  openbsd*)
13963 -  lt_cv_file_magic_cmd=/usr/bin/file
13964 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13965    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13966 -    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
13967 +    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13968    else
13969 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
13970 +    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13971    fi
13972    ;;
13973  
13974 @@ -3625,7 +4381,7 @@ osf3* | osf4* | osf5*)
13975    lt_cv_deplibs_check_method=pass_all
13976    ;;
13977  
13978 -sco3.2v5*)
13979 +rdos*)
13980    lt_cv_deplibs_check_method=pass_all
13981    ;;
13982  
13983 @@ -3633,7 +4389,7 @@ solaris*)
13984    lt_cv_deplibs_check_method=pass_all
13985    ;;
13986  
13987 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13988 +sysv4 | sysv4.3*)
13989    case $host_vendor in
13990    motorola)
13991      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]'
13992 @@ -3654,17 +4410,20 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13993    siemens)
13994      lt_cv_deplibs_check_method=pass_all
13995      ;;
13996 +  pc)
13997 +    lt_cv_deplibs_check_method=pass_all
13998 +    ;;
13999    esac
14000    ;;
14001  
14002 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
14003 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14004    lt_cv_deplibs_check_method=pass_all
14005    ;;
14006  esac
14007  
14008  fi
14009 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14010 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14011 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14012 +$as_echo "$lt_cv_deplibs_check_method" >&6; }
14013  file_magic_cmd=$lt_cv_file_magic_cmd
14014  deplibs_check_method=$lt_cv_deplibs_check_method
14015  test -z "$deplibs_check_method" && deplibs_check_method=unknown
14016 @@ -3675,15 +4434,18 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
14017  # If no C compiler was specified, use CC.
14018  LTCC=${LTCC-"$CC"}
14019  
14020 +# If no C compiler flags were specified, use CFLAGS.
14021 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14022 +
14023  # Allow CC to be a program name with arguments.
14024  compiler=$CC
14025  
14026  
14027 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14028 +# Check whether --enable-libtool-lock was given.
14029  if test "${enable_libtool_lock+set}" = set; then
14030 -  enableval="$enable_libtool_lock"
14031 +  enableval=$enable_libtool_lock;
14032 +fi
14033  
14034 -fi;
14035  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14036  
14037  # Some flags need to be propagated to the compiler or linker for good
14038 @@ -3695,7 +4457,7 @@ ia64-*-hpux*)
14039    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040    (eval $ac_compile) 2>&5
14041    ac_status=$?
14042 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044    (exit $ac_status); }; then
14045      case `/usr/bin/file conftest.$ac_objext` in
14046      *ELF-32*)
14047 @@ -3710,11 +4472,11 @@ ia64-*-hpux*)
14048    ;;
14049  *-*-irix6*)
14050    # Find out which ABI we are using.
14051 -  echo '#line 3713 "configure"' > conftest.$ac_ext
14052 +  echo '#line 4475 "configure"' > conftest.$ac_ext
14053    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054    (eval $ac_compile) 2>&5
14055    ac_status=$?
14056 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058    (exit $ac_status); }; then
14059     if test "$lt_cv_prog_gnu_ld" = yes; then
14060      case `/usr/bin/file conftest.$ac_objext` in
14061 @@ -3745,17 +4507,21 @@ ia64-*-hpux*)
14062    rm -rf conftest*
14063    ;;
14064  
14065 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14066 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
14067 +s390*-*linux*|sparc*-*linux*)
14068    # Find out which ABI we are using.
14069    echo 'int i;' > conftest.$ac_ext
14070    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071    (eval $ac_compile) 2>&5
14072    ac_status=$?
14073 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075    (exit $ac_status); }; then
14076 -    case "`/usr/bin/file conftest.o`" in
14077 +    case `/usr/bin/file conftest.o` in
14078      *32-bit*)
14079        case $host in
14080 +        x86_64-*kfreebsd*-gnu)
14081 +          LD="${LD-ld} -m elf_i386_fbsd"
14082 +          ;;
14083          x86_64-*linux*)
14084            LD="${LD-ld} -m elf_i386"
14085            ;;
14086 @@ -3772,6 +4538,9 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14087        ;;
14088      *64-bit*)
14089        case $host in
14090 +        x86_64-*kfreebsd*-gnu)
14091 +          LD="${LD-ld} -m elf_x86_64_fbsd"
14092 +          ;;
14093          x86_64-*linux*)
14094            LD="${LD-ld} -m elf_x86_64"
14095            ;;
14096 @@ -3795,10 +4564,10 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14097    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14098    SAVE_CFLAGS="$CFLAGS"
14099    CFLAGS="$CFLAGS -belf"
14100 -  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14101 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
14102 +  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14103 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14104  if test "${lt_cv_cc_needs_belf+set}" = set; then
14105 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14106 +  $as_echo_n "(cached) " >&6
14107  else
14108    ac_ext=c
14109  ac_cpp='$CPP $CPPFLAGS'
14110 @@ -3822,35 +4591,36 @@ main ()
14111  }
14112  _ACEOF
14113  rm -f conftest.$ac_objext conftest$ac_exeext
14114 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115 -  (eval $ac_link) 2>conftest.er1
14116 +if { (ac_try="$ac_link"
14117 +case "(($ac_try" in
14118 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 +  *) ac_try_echo=$ac_try;;
14120 +esac
14121 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14122 +$as_echo "$ac_try_echo") >&5
14123 +  (eval "$ac_link") 2>conftest.er1
14124    ac_status=$?
14125    grep -v '^ *+' conftest.er1 >conftest.err
14126    rm -f conftest.er1
14127    cat conftest.err >&5
14128 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 -  (exit $ac_status); } &&
14130 -        { ac_try='test -z "$ac_c_werror_flag"
14131 -                        || test ! -s conftest.err'
14132 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 -  (eval $ac_try) 2>&5
14134 -  ac_status=$?
14135 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 -  (exit $ac_status); }; } &&
14137 -        { ac_try='test -s conftest$ac_exeext'
14138 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 -  (eval $ac_try) 2>&5
14140 -  ac_status=$?
14141 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 -  (exit $ac_status); }; }; then
14143 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 +  (exit $ac_status); } && {
14145 +        test -z "$ac_c_werror_flag" ||
14146 +        test ! -s conftest.err
14147 +       } && test -s conftest$ac_exeext && {
14148 +        test "$cross_compiling" = yes ||
14149 +        $as_test_x conftest$ac_exeext
14150 +       }; then
14151    lt_cv_cc_needs_belf=yes
14152  else
14153 -  echo "$as_me: failed program was:" >&5
14154 +  $as_echo "$as_me: failed program was:" >&5
14155  sed 's/^/| /' conftest.$ac_ext >&5
14156  
14157 -lt_cv_cc_needs_belf=no
14158 +       lt_cv_cc_needs_belf=no
14159  fi
14160 -rm -f conftest.err conftest.$ac_objext \
14161 +
14162 +rm -rf conftest.dSYM
14163 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14164        conftest$ac_exeext conftest.$ac_ext
14165       ac_ext=c
14166  ac_cpp='$CPP $CPPFLAGS'
14167 @@ -3859,13 +4629,37 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
14168  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14169  
14170  fi
14171 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14172 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
14173 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14174 +$as_echo "$lt_cv_cc_needs_belf" >&6; }
14175    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14176      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14177      CFLAGS="$SAVE_CFLAGS"
14178    fi
14179    ;;
14180 +sparc*-*solaris*)
14181 +  # Find out which ABI we are using.
14182 +  echo 'int i;' > conftest.$ac_ext
14183 +  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14184 +  (eval $ac_compile) 2>&5
14185 +  ac_status=$?
14186 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 +  (exit $ac_status); }; then
14188 +    case `/usr/bin/file conftest.o` in
14189 +    *64-bit*)
14190 +      case $lt_cv_prog_gnu_ld in
14191 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
14192 +      *)
14193 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14194 +         LD="${LD-ld} -64"
14195 +       fi
14196 +       ;;
14197 +      esac
14198 +      ;;
14199 +    esac
14200 +  fi
14201 +  rm -rf conftest*
14202 +  ;;
14203 +
14204  
14205  esac
14206  
14207 @@ -3877,15 +4671,15 @@ ac_cpp='$CPP $CPPFLAGS'
14208  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14211 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14212 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
14213 +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14214 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
14215  # On Suns, sometimes $CPP names a directory.
14216  if test -n "$CPP" && test -d "$CPP"; then
14217    CPP=
14218  fi
14219  if test -z "$CPP"; then
14220    if test "${ac_cv_prog_CPP+set}" = set; then
14221 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14222 +  $as_echo_n "(cached) " >&6
14223  else
14224        # Double quotes because CPP needs to be expanded
14225      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14226 @@ -3912,35 +4706,35 @@ cat >>conftest.$ac_ext <<_ACEOF
14227  #endif
14228                      Syntax error
14229  _ACEOF
14230 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14231 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14232 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14233 +case "(($ac_try" in
14234 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 +  *) ac_try_echo=$ac_try;;
14236 +esac
14237 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14238 +$as_echo "$ac_try_echo") >&5
14239 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14240    ac_status=$?
14241    grep -v '^ *+' conftest.er1 >conftest.err
14242    rm -f conftest.er1
14243    cat conftest.err >&5
14244 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 -  (exit $ac_status); } >/dev/null; then
14246 -  if test -s conftest.err; then
14247 -    ac_cpp_err=$ac_c_preproc_warn_flag
14248 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14249 -  else
14250 -    ac_cpp_err=
14251 -  fi
14252 -else
14253 -  ac_cpp_err=yes
14254 -fi
14255 -if test -z "$ac_cpp_err"; then
14256 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 +  (exit $ac_status); } >/dev/null && {
14258 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14259 +        test ! -s conftest.err
14260 +       }; then
14261    :
14262  else
14263 -  echo "$as_me: failed program was:" >&5
14264 +  $as_echo "$as_me: failed program was:" >&5
14265  sed 's/^/| /' conftest.$ac_ext >&5
14266  
14267    # Broken: fails on valid input.
14268  continue
14269  fi
14270 +
14271  rm -f conftest.err conftest.$ac_ext
14272  
14273 -  # OK, works on sane cases.  Now check whether non-existent headers
14274 +  # OK, works on sane cases.  Now check whether nonexistent headers
14275    # can be detected and how.
14276    cat >conftest.$ac_ext <<_ACEOF
14277  /* confdefs.h.  */
14278 @@ -3950,34 +4744,34 @@ cat >>conftest.$ac_ext <<_ACEOF
14279  /* end confdefs.h.  */
14280  #include <ac_nonexistent.h>
14281  _ACEOF
14282 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14283 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14284 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14285 +case "(($ac_try" in
14286 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 +  *) ac_try_echo=$ac_try;;
14288 +esac
14289 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14290 +$as_echo "$ac_try_echo") >&5
14291 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14292    ac_status=$?
14293    grep -v '^ *+' conftest.er1 >conftest.err
14294    rm -f conftest.er1
14295    cat conftest.err >&5
14296 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 -  (exit $ac_status); } >/dev/null; then
14298 -  if test -s conftest.err; then
14299 -    ac_cpp_err=$ac_c_preproc_warn_flag
14300 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14301 -  else
14302 -    ac_cpp_err=
14303 -  fi
14304 -else
14305 -  ac_cpp_err=yes
14306 -fi
14307 -if test -z "$ac_cpp_err"; then
14308 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 +  (exit $ac_status); } >/dev/null && {
14310 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14311 +        test ! -s conftest.err
14312 +       }; then
14313    # Broken: success on invalid input.
14314  continue
14315  else
14316 -  echo "$as_me: failed program was:" >&5
14317 +  $as_echo "$as_me: failed program was:" >&5
14318  sed 's/^/| /' conftest.$ac_ext >&5
14319  
14320    # Passes both tests.
14321  ac_preproc_ok=:
14322  break
14323  fi
14324 +
14325  rm -f conftest.err conftest.$ac_ext
14326  
14327  done
14328 @@ -3995,8 +4789,8 @@ fi
14329  else
14330    ac_cv_prog_CPP=$CPP
14331  fi
14332 -echo "$as_me:$LINENO: result: $CPP" >&5
14333 -echo "${ECHO_T}$CPP" >&6
14334 +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
14335 +$as_echo "$CPP" >&6; }
14336  ac_preproc_ok=false
14337  for ac_c_preproc_warn_flag in '' yes
14338  do
14339 @@ -4019,35 +4813,35 @@ cat >>conftest.$ac_ext <<_ACEOF
14340  #endif
14341                      Syntax error
14342  _ACEOF
14343 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14344 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14345 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14346 +case "(($ac_try" in
14347 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 +  *) ac_try_echo=$ac_try;;
14349 +esac
14350 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14351 +$as_echo "$ac_try_echo") >&5
14352 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14353    ac_status=$?
14354    grep -v '^ *+' conftest.er1 >conftest.err
14355    rm -f conftest.er1
14356    cat conftest.err >&5
14357 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 -  (exit $ac_status); } >/dev/null; then
14359 -  if test -s conftest.err; then
14360 -    ac_cpp_err=$ac_c_preproc_warn_flag
14361 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14362 -  else
14363 -    ac_cpp_err=
14364 -  fi
14365 -else
14366 -  ac_cpp_err=yes
14367 -fi
14368 -if test -z "$ac_cpp_err"; then
14369 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 +  (exit $ac_status); } >/dev/null && {
14371 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14372 +        test ! -s conftest.err
14373 +       }; then
14374    :
14375  else
14376 -  echo "$as_me: failed program was:" >&5
14377 +  $as_echo "$as_me: failed program was:" >&5
14378  sed 's/^/| /' conftest.$ac_ext >&5
14379  
14380    # Broken: fails on valid input.
14381  continue
14382  fi
14383 +
14384  rm -f conftest.err conftest.$ac_ext
14385  
14386 -  # OK, works on sane cases.  Now check whether non-existent headers
14387 +  # OK, works on sane cases.  Now check whether nonexistent headers
14388    # can be detected and how.
14389    cat >conftest.$ac_ext <<_ACEOF
14390  /* confdefs.h.  */
14391 @@ -4057,34 +4851,34 @@ cat >>conftest.$ac_ext <<_ACEOF
14392  /* end confdefs.h.  */
14393  #include <ac_nonexistent.h>
14394  _ACEOF
14395 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14396 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14397 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14398 +case "(($ac_try" in
14399 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 +  *) ac_try_echo=$ac_try;;
14401 +esac
14402 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14403 +$as_echo "$ac_try_echo") >&5
14404 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14405    ac_status=$?
14406    grep -v '^ *+' conftest.er1 >conftest.err
14407    rm -f conftest.er1
14408    cat conftest.err >&5
14409 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 -  (exit $ac_status); } >/dev/null; then
14411 -  if test -s conftest.err; then
14412 -    ac_cpp_err=$ac_c_preproc_warn_flag
14413 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14414 -  else
14415 -    ac_cpp_err=
14416 -  fi
14417 -else
14418 -  ac_cpp_err=yes
14419 -fi
14420 -if test -z "$ac_cpp_err"; then
14421 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 +  (exit $ac_status); } >/dev/null && {
14423 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14424 +        test ! -s conftest.err
14425 +       }; then
14426    # Broken: success on invalid input.
14427  continue
14428  else
14429 -  echo "$as_me: failed program was:" >&5
14430 +  $as_echo "$as_me: failed program was:" >&5
14431  sed 's/^/| /' conftest.$ac_ext >&5
14432  
14433    # Passes both tests.
14434  ac_preproc_ok=:
14435  break
14436  fi
14437 +
14438  rm -f conftest.err conftest.$ac_ext
14439  
14440  done
14441 @@ -4093,11 +4887,13 @@ rm -f conftest.err conftest.$ac_ext
14442  if $ac_preproc_ok; then
14443    :
14444  else
14445 -  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14446 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14447 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14448 +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14449  See \`config.log' for more details." >&5
14450 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14451 +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14452  See \`config.log' for more details." >&2;}
14453 -   { (exit 1); exit 1; }; }
14454 +   { (exit 1); exit 1; }; }; }
14455  fi
14456  
14457  ac_ext=c
14458 @@ -4107,10 +4903,10 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
14459  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14460  
14461  
14462 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14463 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14464 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14465 +$as_echo_n "checking for ANSI C header files... " >&6; }
14466  if test "${ac_cv_header_stdc+set}" = set; then
14467 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14468 +  $as_echo_n "(cached) " >&6
14469  else
14470    cat >conftest.$ac_ext <<_ACEOF
14471  /* confdefs.h.  */
14472 @@ -4132,35 +4928,32 @@ main ()
14473  }
14474  _ACEOF
14475  rm -f conftest.$ac_objext
14476 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 -  (eval $ac_compile) 2>conftest.er1
14478 +if { (ac_try="$ac_compile"
14479 +case "(($ac_try" in
14480 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 +  *) ac_try_echo=$ac_try;;
14482 +esac
14483 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14484 +$as_echo "$ac_try_echo") >&5
14485 +  (eval "$ac_compile") 2>conftest.er1
14486    ac_status=$?
14487    grep -v '^ *+' conftest.er1 >conftest.err
14488    rm -f conftest.er1
14489    cat conftest.err >&5
14490 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 -  (exit $ac_status); } &&
14492 -        { ac_try='test -z "$ac_c_werror_flag"
14493 -                        || test ! -s conftest.err'
14494 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 -  (eval $ac_try) 2>&5
14496 -  ac_status=$?
14497 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 -  (exit $ac_status); }; } &&
14499 -        { ac_try='test -s conftest.$ac_objext'
14500 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 -  (eval $ac_try) 2>&5
14502 -  ac_status=$?
14503 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 -  (exit $ac_status); }; }; then
14505 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 +  (exit $ac_status); } && {
14507 +        test -z "$ac_c_werror_flag" ||
14508 +        test ! -s conftest.err
14509 +       } && test -s conftest.$ac_objext; then
14510    ac_cv_header_stdc=yes
14511  else
14512 -  echo "$as_me: failed program was:" >&5
14513 +  $as_echo "$as_me: failed program was:" >&5
14514  sed 's/^/| /' conftest.$ac_ext >&5
14515  
14516 -ac_cv_header_stdc=no
14517 +       ac_cv_header_stdc=no
14518  fi
14519 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14520 +
14521 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14522  
14523  if test $ac_cv_header_stdc = yes; then
14524    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14525 @@ -4216,6 +5009,7 @@ cat confdefs.h >>conftest.$ac_ext
14526  cat >>conftest.$ac_ext <<_ACEOF
14527  /* end confdefs.h.  */
14528  #include <ctype.h>
14529 +#include <stdlib.h>
14530  #if ((' ' & 0x0FF) == 0x020)
14531  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14532  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14533 @@ -4235,36 +5029,50 @@ main ()
14534    for (i = 0; i < 256; i++)
14535      if (XOR (islower (i), ISLOWER (i))
14536         || toupper (i) != TOUPPER (i))
14537 -      exit(2);
14538 -  exit (0);
14539 +      return 2;
14540 +  return 0;
14541  }
14542  _ACEOF
14543  rm -f conftest$ac_exeext
14544 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14545 -  (eval $ac_link) 2>&5
14546 +if { (ac_try="$ac_link"
14547 +case "(($ac_try" in
14548 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 +  *) ac_try_echo=$ac_try;;
14550 +esac
14551 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14552 +$as_echo "$ac_try_echo") >&5
14553 +  (eval "$ac_link") 2>&5
14554    ac_status=$?
14555 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14558 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 -  (eval $ac_try) 2>&5
14560 +  { (case "(($ac_try" in
14561 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 +  *) ac_try_echo=$ac_try;;
14563 +esac
14564 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14565 +$as_echo "$ac_try_echo") >&5
14566 +  (eval "$ac_try") 2>&5
14567    ac_status=$?
14568 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570    (exit $ac_status); }; }; then
14571    :
14572  else
14573 -  echo "$as_me: program exited with status $ac_status" >&5
14574 -echo "$as_me: failed program was:" >&5
14575 +  $as_echo "$as_me: program exited with status $ac_status" >&5
14576 +$as_echo "$as_me: failed program was:" >&5
14577  sed 's/^/| /' conftest.$ac_ext >&5
14578  
14579  ( exit $ac_status )
14580  ac_cv_header_stdc=no
14581  fi
14582 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14583 +rm -rf conftest.dSYM
14584 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14585  fi
14586 +
14587 +
14588  fi
14589  fi
14590 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14591 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
14592 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14593 +$as_echo "$ac_cv_header_stdc" >&6; }
14594  if test $ac_cv_header_stdc = yes; then
14595  
14596  cat >>confdefs.h <<\_ACEOF
14597 @@ -4286,11 +5094,11 @@ fi
14598  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14599                   inttypes.h stdint.h unistd.h
14600  do
14601 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14602 -echo "$as_me:$LINENO: checking for $ac_header" >&5
14603 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14604 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14605 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14606 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14607 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14608 +$as_echo_n "checking for $ac_header... " >&6; }
14609 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14610 +  $as_echo_n "(cached) " >&6
14611  else
14612    cat >conftest.$ac_ext <<_ACEOF
14613  /* confdefs.h.  */
14614 @@ -4303,41 +5111,42 @@ $ac_includes_default
14615  #include <$ac_header>
14616  _ACEOF
14617  rm -f conftest.$ac_objext
14618 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619 -  (eval $ac_compile) 2>conftest.er1
14620 +if { (ac_try="$ac_compile"
14621 +case "(($ac_try" in
14622 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 +  *) ac_try_echo=$ac_try;;
14624 +esac
14625 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14626 +$as_echo "$ac_try_echo") >&5
14627 +  (eval "$ac_compile") 2>conftest.er1
14628    ac_status=$?
14629    grep -v '^ *+' conftest.er1 >conftest.err
14630    rm -f conftest.er1
14631    cat conftest.err >&5
14632 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 -  (exit $ac_status); } &&
14634 -        { ac_try='test -z "$ac_c_werror_flag"
14635 -                        || test ! -s conftest.err'
14636 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 -  (eval $ac_try) 2>&5
14638 -  ac_status=$?
14639 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 -  (exit $ac_status); }; } &&
14641 -        { ac_try='test -s conftest.$ac_objext'
14642 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 -  (eval $ac_try) 2>&5
14644 -  ac_status=$?
14645 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 -  (exit $ac_status); }; }; then
14647 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 +  (exit $ac_status); } && {
14649 +        test -z "$ac_c_werror_flag" ||
14650 +        test ! -s conftest.err
14651 +       } && test -s conftest.$ac_objext; then
14652    eval "$as_ac_Header=yes"
14653  else
14654 -  echo "$as_me: failed program was:" >&5
14655 +  $as_echo "$as_me: failed program was:" >&5
14656  sed 's/^/| /' conftest.$ac_ext >&5
14657  
14658 -eval "$as_ac_Header=no"
14659 +       eval "$as_ac_Header=no"
14660  fi
14661 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14662 +
14663 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664  fi
14665 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14666 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14667 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
14668 +ac_res=`eval 'as_val=${'$as_ac_Header'}
14669 +                $as_echo "$as_val"'`
14670 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14671 +$as_echo "$ac_res" >&6; }
14672 +as_val=`eval 'as_val=${'$as_ac_Header'}
14673 +                $as_echo "$as_val"'`
14674 +   if test "x$as_val" = x""yes; then
14675    cat >>confdefs.h <<_ACEOF
14676 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14677 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14678  _ACEOF
14679  
14680  fi
14681 @@ -4348,19 +5157,21 @@ done
14682  
14683  for ac_header in dlfcn.h
14684  do
14685 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14686 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14687 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
14688 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14689 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14690 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14691 -fi
14692 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14693 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14694 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14695 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 +  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14697 +$as_echo_n "checking for $ac_header... " >&6; }
14698 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14699 +  $as_echo_n "(cached) " >&6
14700 +fi
14701 +ac_res=`eval 'as_val=${'$as_ac_Header'}
14702 +                $as_echo "$as_val"'`
14703 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14704 +$as_echo "$ac_res" >&6; }
14705  else
14706    # Is the header compilable?
14707 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
14708 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14709 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14710 +$as_echo_n "checking $ac_header usability... " >&6; }
14711  cat >conftest.$ac_ext <<_ACEOF
14712  /* confdefs.h.  */
14713  _ACEOF
14714 @@ -4371,41 +5182,38 @@ $ac_includes_default
14715  #include <$ac_header>
14716  _ACEOF
14717  rm -f conftest.$ac_objext
14718 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719 -  (eval $ac_compile) 2>conftest.er1
14720 +if { (ac_try="$ac_compile"
14721 +case "(($ac_try" in
14722 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 +  *) ac_try_echo=$ac_try;;
14724 +esac
14725 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14726 +$as_echo "$ac_try_echo") >&5
14727 +  (eval "$ac_compile") 2>conftest.er1
14728    ac_status=$?
14729    grep -v '^ *+' conftest.er1 >conftest.err
14730    rm -f conftest.er1
14731    cat conftest.err >&5
14732 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 -  (exit $ac_status); } &&
14734 -        { ac_try='test -z "$ac_c_werror_flag"
14735 -                        || test ! -s conftest.err'
14736 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 -  (eval $ac_try) 2>&5
14738 -  ac_status=$?
14739 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 -  (exit $ac_status); }; } &&
14741 -        { ac_try='test -s conftest.$ac_objext'
14742 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 -  (eval $ac_try) 2>&5
14744 -  ac_status=$?
14745 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 -  (exit $ac_status); }; }; then
14747 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 +  (exit $ac_status); } && {
14749 +        test -z "$ac_c_werror_flag" ||
14750 +        test ! -s conftest.err
14751 +       } && test -s conftest.$ac_objext; then
14752    ac_header_compiler=yes
14753  else
14754 -  echo "$as_me: failed program was:" >&5
14755 +  $as_echo "$as_me: failed program was:" >&5
14756  sed 's/^/| /' conftest.$ac_ext >&5
14757  
14758 -ac_header_compiler=no
14759 +       ac_header_compiler=no
14760  fi
14761 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14762 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14763 -echo "${ECHO_T}$ac_header_compiler" >&6
14764 +
14765 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14767 +$as_echo "$ac_header_compiler" >&6; }
14768  
14769  # Is the header present?
14770 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
14771 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14772 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14773 +$as_echo_n "checking $ac_header presence... " >&6; }
14774  cat >conftest.$ac_ext <<_ACEOF
14775  /* confdefs.h.  */
14776  _ACEOF
14777 @@ -4414,101 +5222,102 @@ cat >>conftest.$ac_ext <<_ACEOF
14778  /* end confdefs.h.  */
14779  #include <$ac_header>
14780  _ACEOF
14781 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14782 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14783 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14784 +case "(($ac_try" in
14785 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 +  *) ac_try_echo=$ac_try;;
14787 +esac
14788 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14789 +$as_echo "$ac_try_echo") >&5
14790 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14791    ac_status=$?
14792    grep -v '^ *+' conftest.er1 >conftest.err
14793    rm -f conftest.er1
14794    cat conftest.err >&5
14795 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 -  (exit $ac_status); } >/dev/null; then
14797 -  if test -s conftest.err; then
14798 -    ac_cpp_err=$ac_c_preproc_warn_flag
14799 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14800 -  else
14801 -    ac_cpp_err=
14802 -  fi
14803 -else
14804 -  ac_cpp_err=yes
14805 -fi
14806 -if test -z "$ac_cpp_err"; then
14807 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 +  (exit $ac_status); } >/dev/null && {
14809 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14810 +        test ! -s conftest.err
14811 +       }; then
14812    ac_header_preproc=yes
14813  else
14814 -  echo "$as_me: failed program was:" >&5
14815 +  $as_echo "$as_me: failed program was:" >&5
14816  sed 's/^/| /' conftest.$ac_ext >&5
14817  
14818    ac_header_preproc=no
14819  fi
14820 +
14821  rm -f conftest.err conftest.$ac_ext
14822 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 -echo "${ECHO_T}$ac_header_preproc" >&6
14824 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14825 +$as_echo "$ac_header_preproc" >&6; }
14826  
14827  # So?  What about this header?
14828  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14829    yes:no: )
14830 -    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14831 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14832 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14833 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14834 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14835 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14836 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14837 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14838      ac_header_preproc=yes
14839      ;;
14840    no:yes:* )
14841 -    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14842 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14843 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14844 -echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14845 -    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14846 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14847 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14848 -echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14849 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14850 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14851 -    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14852 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14853 -    (
14854 -      cat <<\_ASBOX
14855 -## ------------------------------------------ ##
14856 -## Report this to the AC_PACKAGE_NAME lists.  ##
14857 -## ------------------------------------------ ##
14858 -_ASBOX
14859 -    ) |
14860 -      sed "s/^/$as_me: WARNING:     /" >&2
14861 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14862 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14863 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14864 +$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14865 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14866 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14867 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14868 +$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14869 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14870 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14871 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14872 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14873 +
14874      ;;
14875  esac
14876 -echo "$as_me:$LINENO: checking for $ac_header" >&5
14877 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14878 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14879 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14880 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14881 +$as_echo_n "checking for $ac_header... " >&6; }
14882 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883 +  $as_echo_n "(cached) " >&6
14884  else
14885    eval "$as_ac_Header=\$ac_header_preproc"
14886  fi
14887 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14888 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14889 +ac_res=`eval 'as_val=${'$as_ac_Header'}
14890 +                $as_echo "$as_val"'`
14891 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14892 +$as_echo "$ac_res" >&6; }
14893  
14894  fi
14895 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
14896 +as_val=`eval 'as_val=${'$as_ac_Header'}
14897 +                $as_echo "$as_val"'`
14898 +   if test "x$as_val" = x""yes; then
14899    cat >>confdefs.h <<_ACEOF
14900 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14901 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14902  _ACEOF
14903  
14904  fi
14905  
14906  done
14907  
14908 -ac_ext=cc
14909 +ac_ext=cpp
14910  ac_cpp='$CXXCPP $CPPFLAGS'
14911  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14914 -if test -n "$ac_tool_prefix"; then
14915 -  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14916 +if test -z "$CXX"; then
14917 +  if test -n "$CCC"; then
14918 +    CXX=$CCC
14919 +  else
14920 +    if test -n "$ac_tool_prefix"; then
14921 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14922    do
14923      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14924  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14925 -echo "$as_me:$LINENO: checking for $ac_word" >&5
14926 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14927 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14928 +$as_echo_n "checking for $ac_word... " >&6; }
14929  if test "${ac_cv_prog_CXX+set}" = set; then
14930 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14931 +  $as_echo_n "(cached) " >&6
14932  else
14933    if test -n "$CXX"; then
14934    ac_cv_prog_CXX="$CXX" # Let the user override the test.
14935 @@ -4519,38 +5328,40 @@ do
14936    IFS=$as_save_IFS
14937    test -z "$as_dir" && as_dir=.
14938    for ac_exec_ext in '' $ac_executable_extensions; do
14939 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14940 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14941      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14942 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14943 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14944      break 2
14945    fi
14946  done
14947  done
14948 +IFS=$as_save_IFS
14949  
14950  fi
14951  fi
14952  CXX=$ac_cv_prog_CXX
14953  if test -n "$CXX"; then
14954 -  echo "$as_me:$LINENO: result: $CXX" >&5
14955 -echo "${ECHO_T}$CXX" >&6
14956 +  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
14957 +$as_echo "$CXX" >&6; }
14958  else
14959 -  echo "$as_me:$LINENO: result: no" >&5
14960 -echo "${ECHO_T}no" >&6
14961 +  { $as_echo "$as_me:$LINENO: result: no" >&5
14962 +$as_echo "no" >&6; }
14963  fi
14964  
14965 +
14966      test -n "$CXX" && break
14967    done
14968  fi
14969  if test -z "$CXX"; then
14970    ac_ct_CXX=$CXX
14971 -  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14972 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14973  do
14974    # Extract the first word of "$ac_prog", so it can be a program name with args.
14975  set dummy $ac_prog; ac_word=$2
14976 -echo "$as_me:$LINENO: checking for $ac_word" >&5
14977 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14978 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14979 +$as_echo_n "checking for $ac_word... " >&6; }
14980  if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14981 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14982 +  $as_echo_n "(cached) " >&6
14983  else
14984    if test -n "$ac_ct_CXX"; then
14985    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14986 @@ -4561,57 +5372,87 @@ do
14987    IFS=$as_save_IFS
14988    test -z "$as_dir" && as_dir=.
14989    for ac_exec_ext in '' $ac_executable_extensions; do
14990 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14991 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14992      ac_cv_prog_ac_ct_CXX="$ac_prog"
14993 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14994 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14995      break 2
14996    fi
14997  done
14998  done
14999 +IFS=$as_save_IFS
15000  
15001  fi
15002  fi
15003  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15004  if test -n "$ac_ct_CXX"; then
15005 -  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15006 -echo "${ECHO_T}$ac_ct_CXX" >&6
15007 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15008 +$as_echo "$ac_ct_CXX" >&6; }
15009  else
15010 -  echo "$as_me:$LINENO: result: no" >&5
15011 -echo "${ECHO_T}no" >&6
15012 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15013 +$as_echo "no" >&6; }
15014  fi
15015  
15016 +
15017    test -n "$ac_ct_CXX" && break
15018  done
15019 -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15020  
15021 -  CXX=$ac_ct_CXX
15022 +  if test "x$ac_ct_CXX" = x; then
15023 +    CXX="g++"
15024 +  else
15025 +    case $cross_compiling:$ac_tool_warned in
15026 +yes:)
15027 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15028 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15029 +ac_tool_warned=yes ;;
15030 +esac
15031 +    CXX=$ac_ct_CXX
15032 +  fi
15033  fi
15034  
15035 -
15036 +  fi
15037 +fi
15038  # Provide some information about the compiler.
15039 -echo "$as_me:$LINENO:" \
15040 -     "checking for C++ compiler version" >&5
15041 -ac_compiler=`set X $ac_compile; echo $2`
15042 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15043 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
15044 +$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
15045 +set X $ac_compile
15046 +ac_compiler=$2
15047 +{ (ac_try="$ac_compiler --version >&5"
15048 +case "(($ac_try" in
15049 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 +  *) ac_try_echo=$ac_try;;
15051 +esac
15052 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15053 +$as_echo "$ac_try_echo") >&5
15054 +  (eval "$ac_compiler --version >&5") 2>&5
15055    ac_status=$?
15056 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058    (exit $ac_status); }
15059 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15060 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
15061 +{ (ac_try="$ac_compiler -v >&5"
15062 +case "(($ac_try" in
15063 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 +  *) ac_try_echo=$ac_try;;
15065 +esac
15066 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15067 +$as_echo "$ac_try_echo") >&5
15068 +  (eval "$ac_compiler -v >&5") 2>&5
15069    ac_status=$?
15070 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072    (exit $ac_status); }
15073 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15074 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
15075 +{ (ac_try="$ac_compiler -V >&5"
15076 +case "(($ac_try" in
15077 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 +  *) ac_try_echo=$ac_try;;
15079 +esac
15080 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15081 +$as_echo "$ac_try_echo") >&5
15082 +  (eval "$ac_compiler -V >&5") 2>&5
15083    ac_status=$?
15084 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086    (exit $ac_status); }
15087  
15088 -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15089 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15090 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15091 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15092  if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15093 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15094 +  $as_echo_n "(cached) " >&6
15095  else
15096    cat >conftest.$ac_ext <<_ACEOF
15097  /* confdefs.h.  */
15098 @@ -4632,50 +5473,54 @@ main ()
15099  }
15100  _ACEOF
15101  rm -f conftest.$ac_objext
15102 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15103 -  (eval $ac_compile) 2>conftest.er1
15104 +if { (ac_try="$ac_compile"
15105 +case "(($ac_try" in
15106 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 +  *) ac_try_echo=$ac_try;;
15108 +esac
15109 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15110 +$as_echo "$ac_try_echo") >&5
15111 +  (eval "$ac_compile") 2>conftest.er1
15112    ac_status=$?
15113    grep -v '^ *+' conftest.er1 >conftest.err
15114    rm -f conftest.er1
15115    cat conftest.err >&5
15116 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 -  (exit $ac_status); } &&
15118 -        { ac_try='test -z "$ac_cxx_werror_flag"
15119 -                        || test ! -s conftest.err'
15120 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 -  (eval $ac_try) 2>&5
15122 -  ac_status=$?
15123 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 -  (exit $ac_status); }; } &&
15125 -        { ac_try='test -s conftest.$ac_objext'
15126 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 -  (eval $ac_try) 2>&5
15128 -  ac_status=$?
15129 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 -  (exit $ac_status); }; }; then
15131 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 +  (exit $ac_status); } && {
15133 +        test -z "$ac_cxx_werror_flag" ||
15134 +        test ! -s conftest.err
15135 +       } && test -s conftest.$ac_objext; then
15136    ac_compiler_gnu=yes
15137  else
15138 -  echo "$as_me: failed program was:" >&5
15139 +  $as_echo "$as_me: failed program was:" >&5
15140  sed 's/^/| /' conftest.$ac_ext >&5
15141  
15142 -ac_compiler_gnu=no
15143 +       ac_compiler_gnu=no
15144  fi
15145 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15146 +
15147 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148  ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15149  
15150  fi
15151 -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15152 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15153 -GXX=`test $ac_compiler_gnu = yes && echo yes`
15154 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15155 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15156 +if test $ac_compiler_gnu = yes; then
15157 +  GXX=yes
15158 +else
15159 +  GXX=
15160 +fi
15161  ac_test_CXXFLAGS=${CXXFLAGS+set}
15162  ac_save_CXXFLAGS=$CXXFLAGS
15163 -CXXFLAGS="-g"
15164 -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15165 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15166 +{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15167 +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
15168  if test "${ac_cv_prog_cxx_g+set}" = set; then
15169 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15170 +  $as_echo_n "(cached) " >&6
15171  else
15172 -  cat >conftest.$ac_ext <<_ACEOF
15173 +  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15174 +   ac_cxx_werror_flag=yes
15175 +   ac_cv_prog_cxx_g=no
15176 +   CXXFLAGS="-g"
15177 +   cat >conftest.$ac_ext <<_ACEOF
15178  /* confdefs.h.  */
15179  _ACEOF
15180  cat confdefs.h >>conftest.$ac_ext
15181 @@ -4691,160 +5536,137 @@ main ()
15182  }
15183  _ACEOF
15184  rm -f conftest.$ac_objext
15185 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186 -  (eval $ac_compile) 2>conftest.er1
15187 +if { (ac_try="$ac_compile"
15188 +case "(($ac_try" in
15189 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 +  *) ac_try_echo=$ac_try;;
15191 +esac
15192 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15193 +$as_echo "$ac_try_echo") >&5
15194 +  (eval "$ac_compile") 2>conftest.er1
15195    ac_status=$?
15196    grep -v '^ *+' conftest.er1 >conftest.err
15197    rm -f conftest.er1
15198    cat conftest.err >&5
15199 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 -  (exit $ac_status); } &&
15201 -        { ac_try='test -z "$ac_cxx_werror_flag"
15202 -                        || test ! -s conftest.err'
15203 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 -  (eval $ac_try) 2>&5
15205 -  ac_status=$?
15206 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 -  (exit $ac_status); }; } &&
15208 -        { ac_try='test -s conftest.$ac_objext'
15209 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 -  (eval $ac_try) 2>&5
15211 -  ac_status=$?
15212 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 -  (exit $ac_status); }; }; then
15214 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 +  (exit $ac_status); } && {
15216 +        test -z "$ac_cxx_werror_flag" ||
15217 +        test ! -s conftest.err
15218 +       } && test -s conftest.$ac_objext; then
15219    ac_cv_prog_cxx_g=yes
15220  else
15221 -  echo "$as_me: failed program was:" >&5
15222 +  $as_echo "$as_me: failed program was:" >&5
15223  sed 's/^/| /' conftest.$ac_ext >&5
15224  
15225 -ac_cv_prog_cxx_g=no
15226 -fi
15227 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15228 -fi
15229 -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15230 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15231 -if test "$ac_test_CXXFLAGS" = set; then
15232 -  CXXFLAGS=$ac_save_CXXFLAGS
15233 -elif test $ac_cv_prog_cxx_g = yes; then
15234 -  if test "$GXX" = yes; then
15235 -    CXXFLAGS="-g -O2"
15236 -  else
15237 -    CXXFLAGS="-g"
15238 -  fi
15239 -else
15240 -  if test "$GXX" = yes; then
15241 -    CXXFLAGS="-O2"
15242 -  else
15243 -    CXXFLAGS=
15244 -  fi
15245 -fi
15246 -for ac_declaration in \
15247 -   '' \
15248 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
15249 -   'extern "C" void std::exit (int); using std::exit;' \
15250 -   'extern "C" void exit (int) throw ();' \
15251 -   'extern "C" void exit (int);' \
15252 -   'void exit (int);'
15253 -do
15254 -  cat >conftest.$ac_ext <<_ACEOF
15255 +       CXXFLAGS=""
15256 +      cat >conftest.$ac_ext <<_ACEOF
15257  /* confdefs.h.  */
15258  _ACEOF
15259  cat confdefs.h >>conftest.$ac_ext
15260  cat >>conftest.$ac_ext <<_ACEOF
15261  /* end confdefs.h.  */
15262 -$ac_declaration
15263 -#include <stdlib.h>
15264 +
15265  int
15266  main ()
15267  {
15268 -exit (42);
15269 +
15270    ;
15271    return 0;
15272  }
15273  _ACEOF
15274  rm -f conftest.$ac_objext
15275 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15276 -  (eval $ac_compile) 2>conftest.er1
15277 +if { (ac_try="$ac_compile"
15278 +case "(($ac_try" in
15279 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 +  *) ac_try_echo=$ac_try;;
15281 +esac
15282 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15283 +$as_echo "$ac_try_echo") >&5
15284 +  (eval "$ac_compile") 2>conftest.er1
15285    ac_status=$?
15286    grep -v '^ *+' conftest.er1 >conftest.err
15287    rm -f conftest.er1
15288    cat conftest.err >&5
15289 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 -  (exit $ac_status); } &&
15291 -        { ac_try='test -z "$ac_cxx_werror_flag"
15292 -                        || test ! -s conftest.err'
15293 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 -  (eval $ac_try) 2>&5
15295 -  ac_status=$?
15296 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 -  (exit $ac_status); }; } &&
15298 -        { ac_try='test -s conftest.$ac_objext'
15299 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 -  (eval $ac_try) 2>&5
15301 -  ac_status=$?
15302 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 -  (exit $ac_status); }; }; then
15304 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 +  (exit $ac_status); } && {
15306 +        test -z "$ac_cxx_werror_flag" ||
15307 +        test ! -s conftest.err
15308 +       } && test -s conftest.$ac_objext; then
15309    :
15310  else
15311 -  echo "$as_me: failed program was:" >&5
15312 +  $as_echo "$as_me: failed program was:" >&5
15313  sed 's/^/| /' conftest.$ac_ext >&5
15314  
15315 -continue
15316 -fi
15317 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15318 -  cat >conftest.$ac_ext <<_ACEOF
15319 +       ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15320 +        CXXFLAGS="-g"
15321 +        cat >conftest.$ac_ext <<_ACEOF
15322  /* confdefs.h.  */
15323  _ACEOF
15324  cat confdefs.h >>conftest.$ac_ext
15325  cat >>conftest.$ac_ext <<_ACEOF
15326  /* end confdefs.h.  */
15327 -$ac_declaration
15328 +
15329  int
15330  main ()
15331  {
15332 -exit (42);
15333 +
15334    ;
15335    return 0;
15336  }
15337  _ACEOF
15338  rm -f conftest.$ac_objext
15339 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 -  (eval $ac_compile) 2>conftest.er1
15341 +if { (ac_try="$ac_compile"
15342 +case "(($ac_try" in
15343 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 +  *) ac_try_echo=$ac_try;;
15345 +esac
15346 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15347 +$as_echo "$ac_try_echo") >&5
15348 +  (eval "$ac_compile") 2>conftest.er1
15349    ac_status=$?
15350    grep -v '^ *+' conftest.er1 >conftest.err
15351    rm -f conftest.er1
15352    cat conftest.err >&5
15353 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 -  (exit $ac_status); } &&
15355 -        { ac_try='test -z "$ac_cxx_werror_flag"
15356 -                        || test ! -s conftest.err'
15357 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 -  (eval $ac_try) 2>&5
15359 -  ac_status=$?
15360 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 -  (exit $ac_status); }; } &&
15362 -        { ac_try='test -s conftest.$ac_objext'
15363 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 -  (eval $ac_try) 2>&5
15365 -  ac_status=$?
15366 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 -  (exit $ac_status); }; }; then
15368 -  break
15369 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 +  (exit $ac_status); } && {
15371 +        test -z "$ac_cxx_werror_flag" ||
15372 +        test ! -s conftest.err
15373 +       } && test -s conftest.$ac_objext; then
15374 +  ac_cv_prog_cxx_g=yes
15375  else
15376 -  echo "$as_me: failed program was:" >&5
15377 +  $as_echo "$as_me: failed program was:" >&5
15378  sed 's/^/| /' conftest.$ac_ext >&5
15379  
15380 +
15381  fi
15382 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15383 -done
15384 -rm -f conftest*
15385 -if test -n "$ac_declaration"; then
15386 -  echo '#ifdef __cplusplus' >>confdefs.h
15387 -  echo $ac_declaration      >>confdefs.h
15388 -  echo '#endif'             >>confdefs.h
15389 +
15390 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391  fi
15392  
15393 -ac_ext=cc
15394 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395 +fi
15396 +
15397 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 +   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15399 +fi
15400 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15401 +$as_echo "$ac_cv_prog_cxx_g" >&6; }
15402 +if test "$ac_test_CXXFLAGS" = set; then
15403 +  CXXFLAGS=$ac_save_CXXFLAGS
15404 +elif test $ac_cv_prog_cxx_g = yes; then
15405 +  if test "$GXX" = yes; then
15406 +    CXXFLAGS="-g -O2"
15407 +  else
15408 +    CXXFLAGS="-g"
15409 +  fi
15410 +else
15411 +  if test "$GXX" = yes; then
15412 +    CXXFLAGS="-O2"
15413 +  else
15414 +    CXXFLAGS=
15415 +  fi
15416 +fi
15417 +ac_ext=cpp
15418  ac_cpp='$CXXCPP $CPPFLAGS'
15419  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15420  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15421 @@ -4852,10 +5674,10 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15422  
15423  depcc="$CXX"  am_compiler_list=
15424  
15425 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15426 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15427 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15428 +$as_echo_n "checking dependency style of $depcc... " >&6; }
15429  if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15430 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15431 +  $as_echo_n "(cached) " >&6
15432  else
15433    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15434    # We make a subdir and do the tests there.  Otherwise we can end up
15435 @@ -4942,8 +5764,8 @@ else
15436  fi
15437  
15438  fi
15439 -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15440 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15441 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15442 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15443  CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15444  
15445  
15446 @@ -4959,16 +5781,21 @@ else
15447  fi
15448  
15449  
15450 -ac_ext=cc
15451 +
15452 +
15453 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15454 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15455 +    (test "X$CXX" != "Xg++"))) ; then
15456 +  ac_ext=cpp
15457  ac_cpp='$CXXCPP $CPPFLAGS'
15458  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15459  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15460  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15461 -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15462 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15463 +{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15464 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15465  if test -z "$CXXCPP"; then
15466    if test "${ac_cv_prog_CXXCPP+set}" = set; then
15467 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15468 +  $as_echo_n "(cached) " >&6
15469  else
15470        # Double quotes because CXXCPP needs to be expanded
15471      for CXXCPP in "$CXX -E" "/lib/cpp"
15472 @@ -4995,35 +5822,35 @@ cat >>conftest.$ac_ext <<_ACEOF
15473  #endif
15474                      Syntax error
15475  _ACEOF
15476 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15477 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15478 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15479 +case "(($ac_try" in
15480 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 +  *) ac_try_echo=$ac_try;;
15482 +esac
15483 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15484 +$as_echo "$ac_try_echo") >&5
15485 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15486    ac_status=$?
15487    grep -v '^ *+' conftest.er1 >conftest.err
15488    rm -f conftest.er1
15489    cat conftest.err >&5
15490 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 -  (exit $ac_status); } >/dev/null; then
15492 -  if test -s conftest.err; then
15493 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15494 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15495 -  else
15496 -    ac_cpp_err=
15497 -  fi
15498 -else
15499 -  ac_cpp_err=yes
15500 -fi
15501 -if test -z "$ac_cpp_err"; then
15502 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 +  (exit $ac_status); } >/dev/null && {
15504 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15505 +        test ! -s conftest.err
15506 +       }; then
15507    :
15508  else
15509 -  echo "$as_me: failed program was:" >&5
15510 +  $as_echo "$as_me: failed program was:" >&5
15511  sed 's/^/| /' conftest.$ac_ext >&5
15512  
15513    # Broken: fails on valid input.
15514  continue
15515  fi
15516 +
15517  rm -f conftest.err conftest.$ac_ext
15518  
15519 -  # OK, works on sane cases.  Now check whether non-existent headers
15520 +  # OK, works on sane cases.  Now check whether nonexistent headers
15521    # can be detected and how.
15522    cat >conftest.$ac_ext <<_ACEOF
15523  /* confdefs.h.  */
15524 @@ -5033,34 +5860,34 @@ cat >>conftest.$ac_ext <<_ACEOF
15525  /* end confdefs.h.  */
15526  #include <ac_nonexistent.h>
15527  _ACEOF
15528 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15529 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15530 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15531 +case "(($ac_try" in
15532 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 +  *) ac_try_echo=$ac_try;;
15534 +esac
15535 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15536 +$as_echo "$ac_try_echo") >&5
15537 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15538    ac_status=$?
15539    grep -v '^ *+' conftest.er1 >conftest.err
15540    rm -f conftest.er1
15541    cat conftest.err >&5
15542 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 -  (exit $ac_status); } >/dev/null; then
15544 -  if test -s conftest.err; then
15545 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15546 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15547 -  else
15548 -    ac_cpp_err=
15549 -  fi
15550 -else
15551 -  ac_cpp_err=yes
15552 -fi
15553 -if test -z "$ac_cpp_err"; then
15554 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 +  (exit $ac_status); } >/dev/null && {
15556 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15557 +        test ! -s conftest.err
15558 +       }; then
15559    # Broken: success on invalid input.
15560  continue
15561  else
15562 -  echo "$as_me: failed program was:" >&5
15563 +  $as_echo "$as_me: failed program was:" >&5
15564  sed 's/^/| /' conftest.$ac_ext >&5
15565  
15566    # Passes both tests.
15567  ac_preproc_ok=:
15568  break
15569  fi
15570 +
15571  rm -f conftest.err conftest.$ac_ext
15572  
15573  done
15574 @@ -5078,8 +5905,8 @@ fi
15575  else
15576    ac_cv_prog_CXXCPP=$CXXCPP
15577  fi
15578 -echo "$as_me:$LINENO: result: $CXXCPP" >&5
15579 -echo "${ECHO_T}$CXXCPP" >&6
15580 +{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
15581 +$as_echo "$CXXCPP" >&6; }
15582  ac_preproc_ok=false
15583  for ac_cxx_preproc_warn_flag in '' yes
15584  do
15585 @@ -5102,35 +5929,35 @@ cat >>conftest.$ac_ext <<_ACEOF
15586  #endif
15587                      Syntax error
15588  _ACEOF
15589 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15590 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15591 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15592 +case "(($ac_try" in
15593 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 +  *) ac_try_echo=$ac_try;;
15595 +esac
15596 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15597 +$as_echo "$ac_try_echo") >&5
15598 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15599    ac_status=$?
15600    grep -v '^ *+' conftest.er1 >conftest.err
15601    rm -f conftest.er1
15602    cat conftest.err >&5
15603 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 -  (exit $ac_status); } >/dev/null; then
15605 -  if test -s conftest.err; then
15606 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15607 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15608 -  else
15609 -    ac_cpp_err=
15610 -  fi
15611 -else
15612 -  ac_cpp_err=yes
15613 -fi
15614 -if test -z "$ac_cpp_err"; then
15615 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 +  (exit $ac_status); } >/dev/null && {
15617 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15618 +        test ! -s conftest.err
15619 +       }; then
15620    :
15621  else
15622 -  echo "$as_me: failed program was:" >&5
15623 +  $as_echo "$as_me: failed program was:" >&5
15624  sed 's/^/| /' conftest.$ac_ext >&5
15625  
15626    # Broken: fails on valid input.
15627  continue
15628  fi
15629 +
15630  rm -f conftest.err conftest.$ac_ext
15631  
15632 -  # OK, works on sane cases.  Now check whether non-existent headers
15633 +  # OK, works on sane cases.  Now check whether nonexistent headers
15634    # can be detected and how.
15635    cat >conftest.$ac_ext <<_ACEOF
15636  /* confdefs.h.  */
15637 @@ -5140,34 +5967,34 @@ cat >>conftest.$ac_ext <<_ACEOF
15638  /* end confdefs.h.  */
15639  #include <ac_nonexistent.h>
15640  _ACEOF
15641 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15642 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15643 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15644 +case "(($ac_try" in
15645 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 +  *) ac_try_echo=$ac_try;;
15647 +esac
15648 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649 +$as_echo "$ac_try_echo") >&5
15650 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15651    ac_status=$?
15652    grep -v '^ *+' conftest.er1 >conftest.err
15653    rm -f conftest.er1
15654    cat conftest.err >&5
15655 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 -  (exit $ac_status); } >/dev/null; then
15657 -  if test -s conftest.err; then
15658 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15659 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15660 -  else
15661 -    ac_cpp_err=
15662 -  fi
15663 -else
15664 -  ac_cpp_err=yes
15665 -fi
15666 -if test -z "$ac_cpp_err"; then
15667 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 +  (exit $ac_status); } >/dev/null && {
15669 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15670 +        test ! -s conftest.err
15671 +       }; then
15672    # Broken: success on invalid input.
15673  continue
15674  else
15675 -  echo "$as_me: failed program was:" >&5
15676 +  $as_echo "$as_me: failed program was:" >&5
15677  sed 's/^/| /' conftest.$ac_ext >&5
15678  
15679    # Passes both tests.
15680  ac_preproc_ok=:
15681  break
15682  fi
15683 +
15684  rm -f conftest.err conftest.$ac_ext
15685  
15686  done
15687 @@ -5176,33 +6003,37 @@ rm -f conftest.err conftest.$ac_ext
15688  if $ac_preproc_ok; then
15689    :
15690  else
15691 -  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15692 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15693 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15694 +{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15695  See \`config.log' for more details." >&5
15696 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15697 +$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15698  See \`config.log' for more details." >&2;}
15699 -   { (exit 1); exit 1; }; }
15700 +   { (exit 1); exit 1; }; }; }
15701  fi
15702  
15703 -ac_ext=cc
15704 +ac_ext=cpp
15705  ac_cpp='$CXXCPP $CPPFLAGS'
15706  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15707  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15708  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15709  
15710 +fi
15711 +
15712  
15713  ac_ext=f
15714  ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15715  ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15716  ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15717  if test -n "$ac_tool_prefix"; then
15718 -  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15719 +  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
15720    do
15721      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15722  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15723 -echo "$as_me:$LINENO: checking for $ac_word" >&5
15724 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15725 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15726 +$as_echo_n "checking for $ac_word... " >&6; }
15727  if test "${ac_cv_prog_F77+set}" = set; then
15728 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15729 +  $as_echo_n "(cached) " >&6
15730  else
15731    if test -n "$F77"; then
15732    ac_cv_prog_F77="$F77" # Let the user override the test.
15733 @@ -5213,38 +6044,40 @@ do
15734    IFS=$as_save_IFS
15735    test -z "$as_dir" && as_dir=.
15736    for ac_exec_ext in '' $ac_executable_extensions; do
15737 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15738 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15739      ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
15740 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15741 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15742      break 2
15743    fi
15744  done
15745  done
15746 +IFS=$as_save_IFS
15747  
15748  fi
15749  fi
15750  F77=$ac_cv_prog_F77
15751  if test -n "$F77"; then
15752 -  echo "$as_me:$LINENO: result: $F77" >&5
15753 -echo "${ECHO_T}$F77" >&6
15754 +  { $as_echo "$as_me:$LINENO: result: $F77" >&5
15755 +$as_echo "$F77" >&6; }
15756  else
15757 -  echo "$as_me:$LINENO: result: no" >&5
15758 -echo "${ECHO_T}no" >&6
15759 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15760 +$as_echo "no" >&6; }
15761  fi
15762  
15763 +
15764      test -n "$F77" && break
15765    done
15766  fi
15767  if test -z "$F77"; then
15768    ac_ct_F77=$F77
15769 -  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15770 +  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
15771  do
15772    # Extract the first word of "$ac_prog", so it can be a program name with args.
15773  set dummy $ac_prog; ac_word=$2
15774 -echo "$as_me:$LINENO: checking for $ac_word" >&5
15775 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15776 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15777 +$as_echo_n "checking for $ac_word... " >&6; }
15778  if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
15779 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15780 +  $as_echo_n "(cached) " >&6
15781  else
15782    if test -n "$ac_ct_F77"; then
15783    ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
15784 @@ -5255,50 +6088,80 @@ do
15785    IFS=$as_save_IFS
15786    test -z "$as_dir" && as_dir=.
15787    for ac_exec_ext in '' $ac_executable_extensions; do
15788 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15789 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15790      ac_cv_prog_ac_ct_F77="$ac_prog"
15791 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15792 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15793      break 2
15794    fi
15795  done
15796  done
15797 +IFS=$as_save_IFS
15798  
15799  fi
15800  fi
15801  ac_ct_F77=$ac_cv_prog_ac_ct_F77
15802  if test -n "$ac_ct_F77"; then
15803 -  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
15804 -echo "${ECHO_T}$ac_ct_F77" >&6
15805 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
15806 +$as_echo "$ac_ct_F77" >&6; }
15807  else
15808 -  echo "$as_me:$LINENO: result: no" >&5
15809 -echo "${ECHO_T}no" >&6
15810 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15811 +$as_echo "no" >&6; }
15812  fi
15813  
15814 +
15815    test -n "$ac_ct_F77" && break
15816  done
15817  
15818 -  F77=$ac_ct_F77
15819 +  if test "x$ac_ct_F77" = x; then
15820 +    F77=""
15821 +  else
15822 +    case $cross_compiling:$ac_tool_warned in
15823 +yes:)
15824 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15825 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15826 +ac_tool_warned=yes ;;
15827 +esac
15828 +    F77=$ac_ct_F77
15829 +  fi
15830  fi
15831  
15832  
15833  # Provide some information about the compiler.
15834 -echo "$as_me:5285:" \
15835 -     "checking for Fortran 77 compiler version" >&5
15836 -ac_compiler=`set X $ac_compile; echo $2`
15837 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15838 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
15839 +$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
15840 +set X $ac_compile
15841 +ac_compiler=$2
15842 +{ (ac_try="$ac_compiler --version >&5"
15843 +case "(($ac_try" in
15844 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 +  *) ac_try_echo=$ac_try;;
15846 +esac
15847 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15848 +$as_echo "$ac_try_echo") >&5
15849 +  (eval "$ac_compiler --version >&5") 2>&5
15850    ac_status=$?
15851 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853    (exit $ac_status); }
15854 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15855 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
15856 +{ (ac_try="$ac_compiler -v >&5"
15857 +case "(($ac_try" in
15858 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 +  *) ac_try_echo=$ac_try;;
15860 +esac
15861 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15862 +$as_echo "$ac_try_echo") >&5
15863 +  (eval "$ac_compiler -v >&5") 2>&5
15864    ac_status=$?
15865 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867    (exit $ac_status); }
15868 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15869 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
15870 +{ (ac_try="$ac_compiler -V >&5"
15871 +case "(($ac_try" in
15872 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873 +  *) ac_try_echo=$ac_try;;
15874 +esac
15875 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15876 +$as_echo "$ac_try_echo") >&5
15877 +  (eval "$ac_compiler -V >&5") 2>&5
15878    ac_status=$?
15879 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881    (exit $ac_status); }
15882  rm -f a.out
15883  
15884 @@ -5306,10 +6169,10 @@ rm -f a.out
15885  # input file.  (Note that this only needs to work for GNU compilers.)
15886  ac_save_ext=$ac_ext
15887  ac_ext=F
15888 -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
15889 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
15890 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
15891 +$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
15892  if test "${ac_cv_f77_compiler_gnu+set}" = set; then
15893 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15894 +  $as_echo_n "(cached) " >&6
15895  else
15896    cat >conftest.$ac_ext <<_ACEOF
15897        program main
15898 @@ -5320,48 +6183,45 @@ else
15899        end
15900  _ACEOF
15901  rm -f conftest.$ac_objext
15902 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15903 -  (eval $ac_compile) 2>conftest.er1
15904 +if { (ac_try="$ac_compile"
15905 +case "(($ac_try" in
15906 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 +  *) ac_try_echo=$ac_try;;
15908 +esac
15909 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15910 +$as_echo "$ac_try_echo") >&5
15911 +  (eval "$ac_compile") 2>conftest.er1
15912    ac_status=$?
15913    grep -v '^ *+' conftest.er1 >conftest.err
15914    rm -f conftest.er1
15915    cat conftest.err >&5
15916 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 -  (exit $ac_status); } &&
15918 -        { ac_try='test -z "$ac_f77_werror_flag"
15919 -                        || test ! -s conftest.err'
15920 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 -  (eval $ac_try) 2>&5
15922 -  ac_status=$?
15923 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 -  (exit $ac_status); }; } &&
15925 -        { ac_try='test -s conftest.$ac_objext'
15926 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 -  (eval $ac_try) 2>&5
15928 -  ac_status=$?
15929 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 -  (exit $ac_status); }; }; then
15931 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 +  (exit $ac_status); } && {
15933 +        test -z "$ac_f77_werror_flag" ||
15934 +        test ! -s conftest.err
15935 +       } && test -s conftest.$ac_objext; then
15936    ac_compiler_gnu=yes
15937  else
15938 -  echo "$as_me: failed program was:" >&5
15939 +  $as_echo "$as_me: failed program was:" >&5
15940  sed 's/^/| /' conftest.$ac_ext >&5
15941  
15942 -ac_compiler_gnu=no
15943 +       ac_compiler_gnu=no
15944  fi
15945 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15946 +
15947 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948  ac_cv_f77_compiler_gnu=$ac_compiler_gnu
15949  
15950  fi
15951 -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
15952 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
15953 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
15954 +$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
15955  ac_ext=$ac_save_ext
15956  ac_test_FFLAGS=${FFLAGS+set}
15957  ac_save_FFLAGS=$FFLAGS
15958  FFLAGS=
15959 -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
15960 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
15961 +{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
15962 +$as_echo_n "checking whether $F77 accepts -g... " >&6; }
15963  if test "${ac_cv_prog_f77_g+set}" = set; then
15964 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15965 +  $as_echo_n "(cached) " >&6
15966  else
15967    FFLAGS=-g
15968  cat >conftest.$ac_ext <<_ACEOF
15969 @@ -5370,39 +6230,36 @@ cat >conftest.$ac_ext <<_ACEOF
15970        end
15971  _ACEOF
15972  rm -f conftest.$ac_objext
15973 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15974 -  (eval $ac_compile) 2>conftest.er1
15975 +if { (ac_try="$ac_compile"
15976 +case "(($ac_try" in
15977 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 +  *) ac_try_echo=$ac_try;;
15979 +esac
15980 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15981 +$as_echo "$ac_try_echo") >&5
15982 +  (eval "$ac_compile") 2>conftest.er1
15983    ac_status=$?
15984    grep -v '^ *+' conftest.er1 >conftest.err
15985    rm -f conftest.er1
15986    cat conftest.err >&5
15987 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 -  (exit $ac_status); } &&
15989 -        { ac_try='test -z "$ac_f77_werror_flag"
15990 -                        || test ! -s conftest.err'
15991 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 -  (eval $ac_try) 2>&5
15993 -  ac_status=$?
15994 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 -  (exit $ac_status); }; } &&
15996 -        { ac_try='test -s conftest.$ac_objext'
15997 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 -  (eval $ac_try) 2>&5
15999 -  ac_status=$?
16000 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 -  (exit $ac_status); }; }; then
16002 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 +  (exit $ac_status); } && {
16004 +        test -z "$ac_f77_werror_flag" ||
16005 +        test ! -s conftest.err
16006 +       } && test -s conftest.$ac_objext; then
16007    ac_cv_prog_f77_g=yes
16008  else
16009 -  echo "$as_me: failed program was:" >&5
16010 +  $as_echo "$as_me: failed program was:" >&5
16011  sed 's/^/| /' conftest.$ac_ext >&5
16012  
16013 -ac_cv_prog_f77_g=no
16014 +       ac_cv_prog_f77_g=no
16015  fi
16016 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16017 +
16018 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019  
16020  fi
16021 -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16022 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
16023 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16024 +$as_echo "$ac_cv_prog_f77_g" >&6; }
16025  if test "$ac_test_FFLAGS" = set; then
16026    FFLAGS=$ac_save_FFLAGS
16027  elif test $ac_cv_prog_f77_g = yes; then
16028 @@ -5419,7 +6276,11 @@ else
16029    fi
16030  fi
16031  
16032 -G77=`test $ac_compiler_gnu = yes && echo yes`
16033 +if test $ac_compiler_gnu = yes; then
16034 +  G77=yes
16035 +else
16036 +  G77=
16037 +fi
16038  ac_ext=c
16039  ac_cpp='$CPP $CPPFLAGS'
16040  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16041 @@ -5429,12 +6290,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
16042  
16043  
16044  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
16045 -
16046  # find the maximum length of command line arguments
16047 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16048 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
16049 +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16050 +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
16051  if test "${lt_cv_sys_max_cmd_len+set}" = set; then
16052 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16053 +  $as_echo_n "(cached) " >&6
16054  else
16055      i=0
16056    teststring="ABCD"
16057 @@ -5472,45 +6332,93 @@ else
16058      lt_cv_sys_max_cmd_len=8192;
16059      ;;
16060  
16061 - *)
16062 -    # If test is not a shell built-in, we'll probably end up computing a
16063 -    # maximum length that is only half of the actual maximum length, but
16064 -    # we can't tell.
16065 -    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16066 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16067 +    # This has been around since 386BSD, at least.  Likely further.
16068 +    if test -x /sbin/sysctl; then
16069 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16070 +    elif test -x /usr/sbin/sysctl; then
16071 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16072 +    else
16073 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
16074 +    fi
16075 +    # And add a safety zone
16076 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16077 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16078 +    ;;
16079 +
16080 +  interix*)
16081 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
16082 +    lt_cv_sys_max_cmd_len=196608
16083 +    ;;
16084 +
16085 +  osf*)
16086 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16087 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16088 +    # nice to cause kernel panics so lets avoid the loop below.
16089 +    # First set a reasonable default.
16090 +    lt_cv_sys_max_cmd_len=16384
16091 +    #
16092 +    if test -x /sbin/sysconfig; then
16093 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16094 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
16095 +      esac
16096 +    fi
16097 +    ;;
16098 +  sco3.2v5*)
16099 +    lt_cv_sys_max_cmd_len=102400
16100 +    ;;
16101 +  sysv5* | sco5v6* | sysv4.2uw2*)
16102 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16103 +    if test -n "$kargmax"; then
16104 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
16105 +    else
16106 +      lt_cv_sys_max_cmd_len=32768
16107 +    fi
16108 +    ;;
16109 +  *)
16110 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16111 +    if test -n "$lt_cv_sys_max_cmd_len"; then
16112 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16113 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16114 +    else
16115 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16116 +      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16117                = "XX$teststring") >/dev/null 2>&1 &&
16118 -           new_result=`expr "X$teststring" : ".*" 2>&1` &&
16119 -           lt_cv_sys_max_cmd_len=$new_result &&
16120 -           test $i != 17 # 1/2 MB should be enough
16121 -    do
16122 -      i=`expr $i + 1`
16123 -      teststring=$teststring$teststring
16124 -    done
16125 -    teststring=
16126 -    # Add a significant safety factor because C++ compilers can tack on massive
16127 -    # amounts of additional arguments before passing them to the linker.
16128 -    # It appears as though 1/2 is a usable value.
16129 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16130 +             new_result=`expr "X$teststring" : ".*" 2>&1` &&
16131 +             lt_cv_sys_max_cmd_len=$new_result &&
16132 +             test $i != 17 # 1/2 MB should be enough
16133 +      do
16134 +        i=`expr $i + 1`
16135 +        teststring=$teststring$teststring
16136 +      done
16137 +      teststring=
16138 +      # Add a significant safety factor because C++ compilers can tack on massive
16139 +      # amounts of additional arguments before passing them to the linker.
16140 +      # It appears as though 1/2 is a usable value.
16141 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16142 +    fi
16143      ;;
16144    esac
16145  
16146  fi
16147  
16148  if test -n $lt_cv_sys_max_cmd_len ; then
16149 -  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16150 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16151 +  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16152 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16153  else
16154 -  echo "$as_me:$LINENO: result: none" >&5
16155 -echo "${ECHO_T}none" >&6
16156 +  { $as_echo "$as_me:$LINENO: result: none" >&5
16157 +$as_echo "none" >&6; }
16158  fi
16159  
16160  
16161  
16162  
16163 +
16164  # Check for command to grab the raw symbol name followed by C symbol from nm.
16165 -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16166 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16167 +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16168 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16169  if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16170 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16171 +  $as_echo_n "(cached) " >&6
16172  else
16173  
16174  # These are sane defaults that work on at least a few old systems.
16175 @@ -5522,9 +6430,6 @@ symcode='[BCDEGRST]'
16176  # Regexp to match symbols that can be accessed directly from C.
16177  sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16178  
16179 -# Transform the above into a raw symbol and a C symbol.
16180 -symxfrm='\1 \2\3 \3'
16181 -
16182  # Transform an extracted symbol line into a proper C declaration
16183  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16184  
16185 @@ -5546,15 +6451,31 @@ hpux*) # Its linker distinguishes data from code symbols
16186    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16187    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'"
16188    ;;
16189 +linux* | k*bsd*-gnu)
16190 +  if test "$host_cpu" = ia64; then
16191 +    symcode='[ABCDGIRSTW]'
16192 +    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16193 +    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'"
16194 +  fi
16195 +  ;;
16196  irix* | nonstopux*)
16197    symcode='[BCDEGRST]'
16198    ;;
16199  osf*)
16200    symcode='[BCDEGQRST]'
16201    ;;
16202 -solaris* | sysv5*)
16203 +solaris*)
16204    symcode='[BDRT]'
16205    ;;
16206 +sco3.2v5*)
16207 +  symcode='[DT]'
16208 +  ;;
16209 +sysv4.2uw2*)
16210 +  symcode='[DT]'
16211 +  ;;
16212 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
16213 +  symcode='[ABDT]'
16214 +  ;;
16215  sysv4)
16216    symcode='[DFNSTU]'
16217    ;;
16218 @@ -5577,8 +6498,11 @@ esac
16219  # Try without a prefix undercore, then with it.
16220  for ac_symprfx in "" "_"; do
16221  
16222 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16223 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
16224 +
16225    # Write the raw and C identifiers.
16226 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
16227 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16228  
16229    # Check to see that the pipe works correctly.
16230    pipe_works=no
16231 @@ -5599,14 +6523,14 @@ EOF
16232    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16233    (eval $ac_compile) 2>&5
16234    ac_status=$?
16235 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237    (exit $ac_status); }; then
16238      # Now try to grab the symbols.
16239      nlist=conftest.nm
16240      if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16241    (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16242    ac_status=$?
16243 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245    (exit $ac_status); } && test -s "$nlist"; then
16246        # Try sorting and uniquifying the output.
16247        if sort "$nlist" | uniq > "$nlist"T; then
16248 @@ -5661,7 +6585,7 @@ EOF
16249           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250    (eval $ac_link) 2>&5
16251    ac_status=$?
16252 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254    (exit $ac_status); } && test -s conftest${ac_exeext}; then
16255             pipe_works=yes
16256           fi
16257 @@ -5680,7 +6604,7 @@ EOF
16258      echo "$progname: failed program was:" >&5
16259      cat conftest.$ac_ext >&5
16260    fi
16261 -  rm -f conftest* conftst*
16262 +  rm -rf conftest* conftst*
16263  
16264    # Do not use the global_symbol_pipe unless it works.
16265    if test "$pipe_works" = yes; then
16266 @@ -5696,17 +6620,17 @@ if test -z "$lt_cv_sys_global_symbol_pipe"; then
16267    lt_cv_sys_global_symbol_to_cdecl=
16268  fi
16269  if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16270 -  echo "$as_me:$LINENO: result: failed" >&5
16271 -echo "${ECHO_T}failed" >&6
16272 +  { $as_echo "$as_me:$LINENO: result: failed" >&5
16273 +$as_echo "failed" >&6; }
16274  else
16275 -  echo "$as_me:$LINENO: result: ok" >&5
16276 -echo "${ECHO_T}ok" >&6
16277 +  { $as_echo "$as_me:$LINENO: result: ok" >&5
16278 +$as_echo "ok" >&6; }
16279  fi
16280  
16281 -echo "$as_me:$LINENO: checking for objdir" >&5
16282 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16283 +{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
16284 +$as_echo_n "checking for objdir... " >&6; }
16285  if test "${lt_cv_objdir+set}" = set; then
16286 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16287 +  $as_echo_n "(cached) " >&6
16288  else
16289    rm -f .libs 2>/dev/null
16290  mkdir .libs 2>/dev/null
16291 @@ -5718,8 +6642,8 @@ else
16292  fi
16293  rmdir .libs 2>/dev/null
16294  fi
16295 -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16296 -echo "${ECHO_T}$lt_cv_objdir" >&6
16297 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16298 +$as_echo "$lt_cv_objdir" >&6; }
16299  objdir=$lt_cv_objdir
16300  
16301  
16302 @@ -5740,7 +6664,7 @@ esac
16303  
16304  # Sed substitution that helps us do robust quoting.  It backslashifies
16305  # metacharacters that are still active within double-quoted strings.
16306 -Xsed='sed -e s/^X//'
16307 +Xsed='sed -e 1s/^X//'
16308  sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16309  
16310  # Same as above, but do not quote variable references.
16311 @@ -5760,7 +6684,7 @@ rm="rm -f"
16312  default_ofile=libtool
16313  can_build_shared=yes
16314  
16315 -# All known linkers require a `.a' archive for static linking (except M$VC,
16316 +# All known linkers require a `.a' archive for static linking (except MSVC,
16317  # which needs '.lib').
16318  libext=a
16319  ltmain="$ac_aux_dir/ltmain.sh"
16320 @@ -5770,10 +6694,10 @@ with_gnu_ld="$lt_cv_prog_gnu_ld"
16321  if test -n "$ac_tool_prefix"; then
16322    # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16323  set dummy ${ac_tool_prefix}ar; ac_word=$2
16324 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16325 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16326 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16327 +$as_echo_n "checking for $ac_word... " >&6; }
16328  if test "${ac_cv_prog_AR+set}" = set; then
16329 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16330 +  $as_echo_n "(cached) " >&6
16331  else
16332    if test -n "$AR"; then
16333    ac_cv_prog_AR="$AR" # Let the user override the test.
16334 @@ -5784,34 +6708,36 @@ do
16335    IFS=$as_save_IFS
16336    test -z "$as_dir" && as_dir=.
16337    for ac_exec_ext in '' $ac_executable_extensions; do
16338 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16339 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16340      ac_cv_prog_AR="${ac_tool_prefix}ar"
16341 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16342 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16343      break 2
16344    fi
16345  done
16346  done
16347 +IFS=$as_save_IFS
16348  
16349  fi
16350  fi
16351  AR=$ac_cv_prog_AR
16352  if test -n "$AR"; then
16353 -  echo "$as_me:$LINENO: result: $AR" >&5
16354 -echo "${ECHO_T}$AR" >&6
16355 +  { $as_echo "$as_me:$LINENO: result: $AR" >&5
16356 +$as_echo "$AR" >&6; }
16357  else
16358 -  echo "$as_me:$LINENO: result: no" >&5
16359 -echo "${ECHO_T}no" >&6
16360 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16361 +$as_echo "no" >&6; }
16362  fi
16363  
16364 +
16365  fi
16366  if test -z "$ac_cv_prog_AR"; then
16367    ac_ct_AR=$AR
16368    # Extract the first word of "ar", so it can be a program name with args.
16369  set dummy ar; ac_word=$2
16370 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16371 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16372 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16373 +$as_echo_n "checking for $ac_word... " >&6; }
16374  if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16375 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16376 +  $as_echo_n "(cached) " >&6
16377  else
16378    if test -n "$ac_ct_AR"; then
16379    ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16380 @@ -5822,27 +6748,37 @@ do
16381    IFS=$as_save_IFS
16382    test -z "$as_dir" && as_dir=.
16383    for ac_exec_ext in '' $ac_executable_extensions; do
16384 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16385 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16386      ac_cv_prog_ac_ct_AR="ar"
16387 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16388 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16389      break 2
16390    fi
16391  done
16392  done
16393 +IFS=$as_save_IFS
16394  
16395 -  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16396  fi
16397  fi
16398  ac_ct_AR=$ac_cv_prog_ac_ct_AR
16399  if test -n "$ac_ct_AR"; then
16400 -  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16401 -echo "${ECHO_T}$ac_ct_AR" >&6
16402 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16403 +$as_echo "$ac_ct_AR" >&6; }
16404  else
16405 -  echo "$as_me:$LINENO: result: no" >&5
16406 -echo "${ECHO_T}no" >&6
16407 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16408 +$as_echo "no" >&6; }
16409  fi
16410  
16411 -  AR=$ac_ct_AR
16412 +  if test "x$ac_ct_AR" = x; then
16413 +    AR="false"
16414 +  else
16415 +    case $cross_compiling:$ac_tool_warned in
16416 +yes:)
16417 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16418 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16419 +ac_tool_warned=yes ;;
16420 +esac
16421 +    AR=$ac_ct_AR
16422 +  fi
16423  else
16424    AR="$ac_cv_prog_AR"
16425  fi
16426 @@ -5850,10 +6786,10 @@ fi
16427  if test -n "$ac_tool_prefix"; then
16428    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16429  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16430 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16431 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16432 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16433 +$as_echo_n "checking for $ac_word... " >&6; }
16434  if test "${ac_cv_prog_RANLIB+set}" = set; then
16435 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16436 +  $as_echo_n "(cached) " >&6
16437  else
16438    if test -n "$RANLIB"; then
16439    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16440 @@ -5864,34 +6800,36 @@ do
16441    IFS=$as_save_IFS
16442    test -z "$as_dir" && as_dir=.
16443    for ac_exec_ext in '' $ac_executable_extensions; do
16444 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16445 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16446      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16447 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16448 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16449      break 2
16450    fi
16451  done
16452  done
16453 +IFS=$as_save_IFS
16454  
16455  fi
16456  fi
16457  RANLIB=$ac_cv_prog_RANLIB
16458  if test -n "$RANLIB"; then
16459 -  echo "$as_me:$LINENO: result: $RANLIB" >&5
16460 -echo "${ECHO_T}$RANLIB" >&6
16461 +  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
16462 +$as_echo "$RANLIB" >&6; }
16463  else
16464 -  echo "$as_me:$LINENO: result: no" >&5
16465 -echo "${ECHO_T}no" >&6
16466 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16467 +$as_echo "no" >&6; }
16468  fi
16469  
16470 +
16471  fi
16472  if test -z "$ac_cv_prog_RANLIB"; then
16473    ac_ct_RANLIB=$RANLIB
16474    # Extract the first word of "ranlib", so it can be a program name with args.
16475  set dummy ranlib; ac_word=$2
16476 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16477 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16478 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16479 +$as_echo_n "checking for $ac_word... " >&6; }
16480  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16481 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16482 +  $as_echo_n "(cached) " >&6
16483  else
16484    if test -n "$ac_ct_RANLIB"; then
16485    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16486 @@ -5902,27 +6840,37 @@ do
16487    IFS=$as_save_IFS
16488    test -z "$as_dir" && as_dir=.
16489    for ac_exec_ext in '' $ac_executable_extensions; do
16490 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16491 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16492      ac_cv_prog_ac_ct_RANLIB="ranlib"
16493 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16494 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16495      break 2
16496    fi
16497  done
16498  done
16499 +IFS=$as_save_IFS
16500  
16501 -  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16502  fi
16503  fi
16504  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16505  if test -n "$ac_ct_RANLIB"; then
16506 -  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16507 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
16508 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16509 +$as_echo "$ac_ct_RANLIB" >&6; }
16510  else
16511 -  echo "$as_me:$LINENO: result: no" >&5
16512 -echo "${ECHO_T}no" >&6
16513 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16514 +$as_echo "no" >&6; }
16515  fi
16516  
16517 -  RANLIB=$ac_ct_RANLIB
16518 +  if test "x$ac_ct_RANLIB" = x; then
16519 +    RANLIB=":"
16520 +  else
16521 +    case $cross_compiling:$ac_tool_warned in
16522 +yes:)
16523 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16524 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16525 +ac_tool_warned=yes ;;
16526 +esac
16527 +    RANLIB=$ac_ct_RANLIB
16528 +  fi
16529  else
16530    RANLIB="$ac_cv_prog_RANLIB"
16531  fi
16532 @@ -5930,10 +6878,10 @@ fi
16533  if test -n "$ac_tool_prefix"; then
16534    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16535  set dummy ${ac_tool_prefix}strip; ac_word=$2
16536 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16537 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16538 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16539 +$as_echo_n "checking for $ac_word... " >&6; }
16540  if test "${ac_cv_prog_STRIP+set}" = set; then
16541 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16542 +  $as_echo_n "(cached) " >&6
16543  else
16544    if test -n "$STRIP"; then
16545    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16546 @@ -5944,34 +6892,36 @@ do
16547    IFS=$as_save_IFS
16548    test -z "$as_dir" && as_dir=.
16549    for ac_exec_ext in '' $ac_executable_extensions; do
16550 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16551 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16552      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16553 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16554 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16555      break 2
16556    fi
16557  done
16558  done
16559 +IFS=$as_save_IFS
16560  
16561  fi
16562  fi
16563  STRIP=$ac_cv_prog_STRIP
16564  if test -n "$STRIP"; then
16565 -  echo "$as_me:$LINENO: result: $STRIP" >&5
16566 -echo "${ECHO_T}$STRIP" >&6
16567 +  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
16568 +$as_echo "$STRIP" >&6; }
16569  else
16570 -  echo "$as_me:$LINENO: result: no" >&5
16571 -echo "${ECHO_T}no" >&6
16572 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16573 +$as_echo "no" >&6; }
16574  fi
16575  
16576 +
16577  fi
16578  if test -z "$ac_cv_prog_STRIP"; then
16579    ac_ct_STRIP=$STRIP
16580    # Extract the first word of "strip", so it can be a program name with args.
16581  set dummy strip; ac_word=$2
16582 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16583 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16584 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16585 +$as_echo_n "checking for $ac_word... " >&6; }
16586  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16587 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16588 +  $as_echo_n "(cached) " >&6
16589  else
16590    if test -n "$ac_ct_STRIP"; then
16591    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16592 @@ -5982,27 +6932,37 @@ do
16593    IFS=$as_save_IFS
16594    test -z "$as_dir" && as_dir=.
16595    for ac_exec_ext in '' $ac_executable_extensions; do
16596 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16597 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16598      ac_cv_prog_ac_ct_STRIP="strip"
16599 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16600 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16601      break 2
16602    fi
16603  done
16604  done
16605 +IFS=$as_save_IFS
16606  
16607 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16608  fi
16609  fi
16610  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16611  if test -n "$ac_ct_STRIP"; then
16612 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16613 -echo "${ECHO_T}$ac_ct_STRIP" >&6
16614 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16615 +$as_echo "$ac_ct_STRIP" >&6; }
16616  else
16617 -  echo "$as_me:$LINENO: result: no" >&5
16618 -echo "${ECHO_T}no" >&6
16619 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16620 +$as_echo "no" >&6; }
16621  fi
16622  
16623 -  STRIP=$ac_ct_STRIP
16624 +  if test "x$ac_ct_STRIP" = x; then
16625 +    STRIP=":"
16626 +  else
16627 +    case $cross_compiling:$ac_tool_warned in
16628 +yes:)
16629 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16630 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16631 +ac_tool_warned=yes ;;
16632 +esac
16633 +    STRIP=$ac_ct_STRIP
16634 +  fi
16635  else
16636    STRIP="$ac_cv_prog_STRIP"
16637  fi
16638 @@ -6017,6 +6977,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
16639  test -z "$AS" && AS=as
16640  test -z "$CC" && CC=cc
16641  test -z "$LTCC" && LTCC=$CC
16642 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16643  test -z "$DLLTOOL" && DLLTOOL=dlltool
16644  test -z "$LD" && LD=ld
16645  test -z "$LN_S" && LN_S="ln -s"
16646 @@ -6029,30 +6990,41 @@ test -z "$STRIP" && STRIP=:
16647  test -z "$ac_objext" && ac_objext=o
16648  
16649  # Determine commands to create old-style static archives.
16650 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16651 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16652  old_postinstall_cmds='chmod 644 $oldlib'
16653  old_postuninstall_cmds=
16654  
16655  if test -n "$RANLIB"; then
16656    case $host_os in
16657    openbsd*)
16658 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
16659 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16660      ;;
16661    *)
16662 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
16663 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16664      ;;
16665    esac
16666    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16667  fi
16668  
16669 +for cc_temp in $compiler""; do
16670 +  case $cc_temp in
16671 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16672 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16673 +    \-*) ;;
16674 +    *) break;;
16675 +  esac
16676 +done
16677 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16678 +
16679 +
16680  # Only perform the check for file, if the check method requires it
16681  case $deplibs_check_method in
16682  file_magic*)
16683    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16684 -    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16685 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16686 +    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16687 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16688  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16689 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16690 +  $as_echo_n "(cached) " >&6
16691  else
16692    case $MAGIC_CMD in
16693  [\\/*] |  ?:[\\/]*)
16694 @@ -6070,7 +7042,7 @@ else
16695        if test -n "$file_magic_test_file"; then
16696         case $deplibs_check_method in
16697         "file_magic "*)
16698 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
16699 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16700           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16701           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16702             $EGREP "$file_magic_regex" > /dev/null; then
16703 @@ -6102,19 +7074,19 @@ fi
16704  
16705  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16706  if test -n "$MAGIC_CMD"; then
16707 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16708 -echo "${ECHO_T}$MAGIC_CMD" >&6
16709 +  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16710 +$as_echo "$MAGIC_CMD" >&6; }
16711  else
16712 -  echo "$as_me:$LINENO: result: no" >&5
16713 -echo "${ECHO_T}no" >&6
16714 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16715 +$as_echo "no" >&6; }
16716  fi
16717  
16718  if test -z "$lt_cv_path_MAGIC_CMD"; then
16719    if test -n "$ac_tool_prefix"; then
16720 -    echo "$as_me:$LINENO: checking for file" >&5
16721 -echo $ECHO_N "checking for file... $ECHO_C" >&6
16722 +    { $as_echo "$as_me:$LINENO: checking for file" >&5
16723 +$as_echo_n "checking for file... " >&6; }
16724  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16725 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16726 +  $as_echo_n "(cached) " >&6
16727  else
16728    case $MAGIC_CMD in
16729  [\\/*] |  ?:[\\/]*)
16730 @@ -6132,7 +7104,7 @@ else
16731        if test -n "$file_magic_test_file"; then
16732         case $deplibs_check_method in
16733         "file_magic "*)
16734 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
16735 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16736           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16737           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16738             $EGREP "$file_magic_regex" > /dev/null; then
16739 @@ -6164,11 +7136,11 @@ fi
16740  
16741  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16742  if test -n "$MAGIC_CMD"; then
16743 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16744 -echo "${ECHO_T}$MAGIC_CMD" >&6
16745 +  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16746 +$as_echo "$MAGIC_CMD" >&6; }
16747  else
16748 -  echo "$as_me:$LINENO: result: no" >&5
16749 -echo "${ECHO_T}no" >&6
16750 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16751 +$as_echo "no" >&6; }
16752  fi
16753  
16754    else
16755 @@ -6180,24 +7152,332 @@ fi
16756    ;;
16757  esac
16758  
16759 +
16760 +  case $host_os in
16761 +    rhapsody* | darwin*)
16762 +    if test -n "$ac_tool_prefix"; then
16763 +  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
16764 +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
16765 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16766 +$as_echo_n "checking for $ac_word... " >&6; }
16767 +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
16768 +  $as_echo_n "(cached) " >&6
16769 +else
16770 +  if test -n "$DSYMUTIL"; then
16771 +  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
16772 +else
16773 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16774 +for as_dir in $PATH
16775 +do
16776 +  IFS=$as_save_IFS
16777 +  test -z "$as_dir" && as_dir=.
16778 +  for ac_exec_ext in '' $ac_executable_extensions; do
16779 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16780 +    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
16781 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16782 +    break 2
16783 +  fi
16784 +done
16785 +done
16786 +IFS=$as_save_IFS
16787 +
16788 +fi
16789 +fi
16790 +DSYMUTIL=$ac_cv_prog_DSYMUTIL
16791 +if test -n "$DSYMUTIL"; then
16792 +  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
16793 +$as_echo "$DSYMUTIL" >&6; }
16794 +else
16795 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16796 +$as_echo "no" >&6; }
16797 +fi
16798 +
16799 +
16800 +fi
16801 +if test -z "$ac_cv_prog_DSYMUTIL"; then
16802 +  ac_ct_DSYMUTIL=$DSYMUTIL
16803 +  # Extract the first word of "dsymutil", so it can be a program name with args.
16804 +set dummy dsymutil; ac_word=$2
16805 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16806 +$as_echo_n "checking for $ac_word... " >&6; }
16807 +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
16808 +  $as_echo_n "(cached) " >&6
16809 +else
16810 +  if test -n "$ac_ct_DSYMUTIL"; then
16811 +  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
16812 +else
16813 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16814 +for as_dir in $PATH
16815 +do
16816 +  IFS=$as_save_IFS
16817 +  test -z "$as_dir" && as_dir=.
16818 +  for ac_exec_ext in '' $ac_executable_extensions; do
16819 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16820 +    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
16821 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16822 +    break 2
16823 +  fi
16824 +done
16825 +done
16826 +IFS=$as_save_IFS
16827 +
16828 +fi
16829 +fi
16830 +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
16831 +if test -n "$ac_ct_DSYMUTIL"; then
16832 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
16833 +$as_echo "$ac_ct_DSYMUTIL" >&6; }
16834 +else
16835 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16836 +$as_echo "no" >&6; }
16837 +fi
16838 +
16839 +  if test "x$ac_ct_DSYMUTIL" = x; then
16840 +    DSYMUTIL=":"
16841 +  else
16842 +    case $cross_compiling:$ac_tool_warned in
16843 +yes:)
16844 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16845 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16846 +ac_tool_warned=yes ;;
16847 +esac
16848 +    DSYMUTIL=$ac_ct_DSYMUTIL
16849 +  fi
16850 +else
16851 +  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16852 +fi
16853 +
16854 +    if test -n "$ac_tool_prefix"; then
16855 +  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16856 +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16857 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16858 +$as_echo_n "checking for $ac_word... " >&6; }
16859 +if test "${ac_cv_prog_NMEDIT+set}" = set; then
16860 +  $as_echo_n "(cached) " >&6
16861 +else
16862 +  if test -n "$NMEDIT"; then
16863 +  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16864 +else
16865 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16866 +for as_dir in $PATH
16867 +do
16868 +  IFS=$as_save_IFS
16869 +  test -z "$as_dir" && as_dir=.
16870 +  for ac_exec_ext in '' $ac_executable_extensions; do
16871 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16872 +    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16873 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16874 +    break 2
16875 +  fi
16876 +done
16877 +done
16878 +IFS=$as_save_IFS
16879 +
16880 +fi
16881 +fi
16882 +NMEDIT=$ac_cv_prog_NMEDIT
16883 +if test -n "$NMEDIT"; then
16884 +  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
16885 +$as_echo "$NMEDIT" >&6; }
16886 +else
16887 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16888 +$as_echo "no" >&6; }
16889 +fi
16890 +
16891 +
16892 +fi
16893 +if test -z "$ac_cv_prog_NMEDIT"; then
16894 +  ac_ct_NMEDIT=$NMEDIT
16895 +  # Extract the first word of "nmedit", so it can be a program name with args.
16896 +set dummy nmedit; ac_word=$2
16897 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16898 +$as_echo_n "checking for $ac_word... " >&6; }
16899 +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
16900 +  $as_echo_n "(cached) " >&6
16901 +else
16902 +  if test -n "$ac_ct_NMEDIT"; then
16903 +  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16904 +else
16905 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16906 +for as_dir in $PATH
16907 +do
16908 +  IFS=$as_save_IFS
16909 +  test -z "$as_dir" && as_dir=.
16910 +  for ac_exec_ext in '' $ac_executable_extensions; do
16911 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16912 +    ac_cv_prog_ac_ct_NMEDIT="nmedit"
16913 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16914 +    break 2
16915 +  fi
16916 +done
16917 +done
16918 +IFS=$as_save_IFS
16919 +
16920 +fi
16921 +fi
16922 +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16923 +if test -n "$ac_ct_NMEDIT"; then
16924 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
16925 +$as_echo "$ac_ct_NMEDIT" >&6; }
16926 +else
16927 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16928 +$as_echo "no" >&6; }
16929 +fi
16930 +
16931 +  if test "x$ac_ct_NMEDIT" = x; then
16932 +    NMEDIT=":"
16933 +  else
16934 +    case $cross_compiling:$ac_tool_warned in
16935 +yes:)
16936 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16937 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16938 +ac_tool_warned=yes ;;
16939 +esac
16940 +    NMEDIT=$ac_ct_NMEDIT
16941 +  fi
16942 +else
16943 +  NMEDIT="$ac_cv_prog_NMEDIT"
16944 +fi
16945 +
16946 +
16947 +    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16948 +$as_echo_n "checking for -single_module linker flag... " >&6; }
16949 +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16950 +  $as_echo_n "(cached) " >&6
16951 +else
16952 +  lt_cv_apple_cc_single_mod=no
16953 +      if test -z "${LT_MULTI_MODULE}"; then
16954 +   # By default we will add the -single_module flag. You can override
16955 +   # by either setting the environment variable LT_MULTI_MODULE
16956 +   # non-empty at configure time, or by adding -multi_module to the
16957 +   # link flags.
16958 +   echo "int foo(void){return 1;}" > conftest.c
16959 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16960 +     -dynamiclib ${wl}-single_module conftest.c
16961 +   if test -f libconftest.dylib; then
16962 +     lt_cv_apple_cc_single_mod=yes
16963 +     rm -rf libconftest.dylib*
16964 +   fi
16965 +   rm conftest.c
16966 +      fi
16967 +fi
16968 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16969 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16970 +    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16971 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16972 +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16973 +  $as_echo_n "(cached) " >&6
16974 +else
16975 +  lt_cv_ld_exported_symbols_list=no
16976 +      save_LDFLAGS=$LDFLAGS
16977 +      echo "_main" > conftest.sym
16978 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16979 +      cat >conftest.$ac_ext <<_ACEOF
16980 +/* confdefs.h.  */
16981 +_ACEOF
16982 +cat confdefs.h >>conftest.$ac_ext
16983 +cat >>conftest.$ac_ext <<_ACEOF
16984 +/* end confdefs.h.  */
16985 +
16986 +int
16987 +main ()
16988 +{
16989 +
16990 +  ;
16991 +  return 0;
16992 +}
16993 +_ACEOF
16994 +rm -f conftest.$ac_objext conftest$ac_exeext
16995 +if { (ac_try="$ac_link"
16996 +case "(($ac_try" in
16997 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 +  *) ac_try_echo=$ac_try;;
16999 +esac
17000 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17001 +$as_echo "$ac_try_echo") >&5
17002 +  (eval "$ac_link") 2>conftest.er1
17003 +  ac_status=$?
17004 +  grep -v '^ *+' conftest.er1 >conftest.err
17005 +  rm -f conftest.er1
17006 +  cat conftest.err >&5
17007 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 +  (exit $ac_status); } && {
17009 +        test -z "$ac_c_werror_flag" ||
17010 +        test ! -s conftest.err
17011 +       } && test -s conftest$ac_exeext && {
17012 +        test "$cross_compiling" = yes ||
17013 +        $as_test_x conftest$ac_exeext
17014 +       }; then
17015 +  lt_cv_ld_exported_symbols_list=yes
17016 +else
17017 +  $as_echo "$as_me: failed program was:" >&5
17018 +sed 's/^/| /' conftest.$ac_ext >&5
17019 +
17020 +       lt_cv_ld_exported_symbols_list=no
17021 +fi
17022 +
17023 +rm -rf conftest.dSYM
17024 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17025 +      conftest$ac_exeext conftest.$ac_ext
17026 +   LDFLAGS="$save_LDFLAGS"
17027 +
17028 +fi
17029 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
17030 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17031 +    case $host_os in
17032 +    rhapsody* | darwin1.[0123])
17033 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17034 +    darwin1.*)
17035 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17036 +    darwin*)
17037 +      # if running on 10.5 or later, the deployment target defaults
17038 +      # to the OS version, if on x86, and 10.4, the deployment
17039 +      # target defaults to 10.4. Don't you love it?
17040 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17041 +   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
17042 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17043 +   10.[012]*)
17044 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17045 +   10.*)
17046 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17047 +      esac
17048 +    ;;
17049 +  esac
17050 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17051 +      _lt_dar_single_mod='$single_module'
17052 +    fi
17053 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17054 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17055 +    else
17056 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
17057 +    fi
17058 +    if test "$DSYMUTIL" != ":"; then
17059 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
17060 +    else
17061 +      _lt_dsymutil=
17062 +    fi
17063 +    ;;
17064 +  esac
17065 +
17066 +
17067  enable_dlopen=no
17068  enable_win32_dll=no
17069  
17070 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
17071 +# Check whether --enable-libtool-lock was given.
17072  if test "${enable_libtool_lock+set}" = set; then
17073 -  enableval="$enable_libtool_lock"
17074 +  enableval=$enable_libtool_lock;
17075 +fi
17076  
17077 -fi;
17078  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17079  
17080  
17081 -# Check whether --with-pic or --without-pic was given.
17082 +# Check whether --with-pic was given.
17083  if test "${with_pic+set}" = set; then
17084 -  withval="$with_pic"
17085 -  pic_mode="$withval"
17086 +  withval=$with_pic; pic_mode="$withval"
17087  else
17088    pic_mode=default
17089 -fi;
17090 +fi
17091 +
17092  test -z "$pic_mode" && pic_mode=default
17093  
17094  # Use C for the default configuration in the libtool script
17095 @@ -6218,77 +7498,34 @@ objext=o
17096  objext=$objext
17097  
17098  # Code to be used in simple compile tests
17099 -lt_simple_compile_test_code="int some_variable = 0;\n"
17100 +lt_simple_compile_test_code="int some_variable = 0;"
17101  
17102  # Code to be used in simple link tests
17103 -lt_simple_link_test_code='int main(){return(0);}\n'
17104 +lt_simple_link_test_code='int main(){return(0);}'
17105  
17106  
17107  # If no C compiler was specified, use CC.
17108  LTCC=${LTCC-"$CC"}
17109  
17110 +# If no C compiler flags were specified, use CFLAGS.
17111 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17112 +
17113  # Allow CC to be a program name with arguments.
17114  compiler=$CC
17115  
17116  
17117 -#
17118 -# Check for any special shared library compilation flags.
17119 -#
17120 -lt_prog_cc_shlib=
17121 -if test "$GCC" = no; then
17122 -  case $host_os in
17123 -  sco3.2v5*)
17124 -    lt_prog_cc_shlib='-belf'
17125 -    ;;
17126 -  esac
17127 -fi
17128 -if test -n "$lt_prog_cc_shlib"; then
17129 -  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
17130 -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
17131 -  if echo "$old_CC $old_CFLAGS " | grep "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
17132 -  else
17133 -    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
17134 -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
17135 -    lt_cv_prog_cc_can_build_shared=no
17136 -  fi
17137 -fi
17138 -
17139 -
17140 -#
17141 -# Check to make sure the static flag actually works.
17142 -#
17143 -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
17144 -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
17145 -if test "${lt_prog_compiler_static_works+set}" = set; then
17146 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17147 -else
17148 -  lt_prog_compiler_static_works=no
17149 -   save_LDFLAGS="$LDFLAGS"
17150 -   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
17151 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17152 -   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17153 -     # The compiler can only warn and ignore the option if not recognized
17154 -     # So say no if there are warnings
17155 -     if test -s conftest.err; then
17156 -       # Append any errors to the config.log.
17157 -       cat conftest.err 1>&5
17158 -     else
17159 -       lt_prog_compiler_static_works=yes
17160 -     fi
17161 -   fi
17162 -   $rm conftest*
17163 -   LDFLAGS="$save_LDFLAGS"
17164 -
17165 -fi
17166 -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17167 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17168 -
17169 -if test x"$lt_prog_compiler_static_works" = xyes; then
17170 -    :
17171 -else
17172 -    lt_prog_compiler_static=
17173 -fi
17174 +# save warnings/boilerplate of simple test code
17175 +ac_outfile=conftest.$ac_objext
17176 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17177 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17178 +_lt_compiler_boilerplate=`cat conftest.err`
17179 +$rm conftest*
17180  
17181 +ac_outfile=conftest.$ac_objext
17182 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
17183 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17184 +_lt_linker_boilerplate=`cat conftest.err`
17185 +$rm -r conftest*
17186  
17187  
17188  
17189 @@ -6298,14 +7535,14 @@ if test "$GCC" = yes; then
17190    lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17191  
17192  
17193 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17194 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17195 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17196 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17197  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17198 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17199 +  $as_echo_n "(cached) " >&6
17200  else
17201    lt_cv_prog_compiler_rtti_exceptions=no
17202    ac_outfile=conftest.$ac_objext
17203 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17204 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17205     lt_compiler_flag="-fno-rtti -fno-exceptions"
17206     # Insert the option either (1) after the last *FLAGS variable, or
17207     # (2) before a word containing "conftest.", or (3) at the end.
17208 @@ -6313,26 +7550,28 @@ else
17209     # with a dollar sign (not a hyphen), so the echo should work correctly.
17210     # The option is referenced via a variable to avoid confusing sed.
17211     lt_compile=`echo "$ac_compile" | $SED \
17212 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17213 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17214     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17215     -e 's:$: $lt_compiler_flag:'`
17216 -   (eval echo "\"\$as_me:6319: $lt_compile\"" >&5)
17217 +   (eval echo "\"\$as_me:7556: $lt_compile\"" >&5)
17218     (eval "$lt_compile" 2>conftest.err)
17219     ac_status=$?
17220     cat conftest.err >&5
17221 -   echo "$as_me:6323: \$? = $ac_status" >&5
17222 +   echo "$as_me:7560: \$? = $ac_status" >&5
17223     if (exit $ac_status) && test -s "$ac_outfile"; then
17224       # The compiler can only warn and ignore the option if not recognized
17225 -     # So say no if there are warnings
17226 -     if test ! -s conftest.err; then
17227 +     # So say no if there are warnings other than the usual output.
17228 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17229 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17230 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17231         lt_cv_prog_compiler_rtti_exceptions=yes
17232       fi
17233     fi
17234     $rm conftest*
17235  
17236  fi
17237 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17238 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17239 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17240 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17241  
17242  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17243      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17244 @@ -6346,8 +7585,8 @@ lt_prog_compiler_wl=
17245  lt_prog_compiler_pic=
17246  lt_prog_compiler_static=
17247  
17248 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17249 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17250 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17251 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17252  
17253    if test "$GCC" = yes; then
17254      lt_prog_compiler_wl='-Wl,'
17255 @@ -6369,13 +7608,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17256        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17257        ;;
17258  
17259 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17260 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17261        # PIC is the default for these OSes.
17262        ;;
17263  
17264 -    mingw* | pw32* | os2*)
17265 +    mingw* | cygwin* | pw32* | os2*)
17266        # This hack is so that the source file can tell whether it is being
17267        # built for inclusion in a dll (and should export symbols for example).
17268 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17269 +      # (--disable-auto-import) libraries
17270        lt_prog_compiler_pic='-DDLL_EXPORT'
17271        ;;
17272  
17273 @@ -6385,6 +7626,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17274        lt_prog_compiler_pic='-fno-common'
17275        ;;
17276  
17277 +    interix[3-9]*)
17278 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17279 +      # Instead, we relocate shared libraries at runtime.
17280 +      ;;
17281 +
17282      msdosdjgpp*)
17283        # Just because we use GCC doesn't mean we suddenly get shared libraries
17284        # on systems that don't support them.
17285 @@ -6401,7 +7647,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17286      hpux*)
17287        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17288        # not for PA HP-UX.
17289 -      case "$host_cpu" in
17290 +      case $host_cpu in
17291        hppa*64*|ia64*)
17292         # +Z the default
17293         ;;
17294 @@ -6427,8 +7673,18 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17295         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17296        fi
17297        ;;
17298 +      darwin*)
17299 +        # PIC is the default on this platform
17300 +        # Common symbols not allowed in MH_DYLIB files
17301 +       case $cc_basename in
17302 +         xlc*)
17303 +         lt_prog_compiler_pic='-qnocommon'
17304 +         lt_prog_compiler_wl='-Wl,'
17305 +         ;;
17306 +       esac
17307 +       ;;
17308  
17309 -    mingw* | pw32* | os2*)
17310 +    mingw* | cygwin* | pw32* | os2*)
17311        # This hack is so that the source file can tell whether it is being
17312        # built for inclusion in a dll (and should export symbols for example).
17313        lt_prog_compiler_pic='-DDLL_EXPORT'
17314 @@ -6438,7 +7694,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17315        lt_prog_compiler_wl='-Wl,'
17316        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17317        # not for PA HP-UX.
17318 -      case "$host_cpu" in
17319 +      case $host_cpu in
17320        hppa*64*|ia64*)
17321         # +Z the default
17322         ;;
17323 @@ -6461,18 +7717,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17324        lt_prog_compiler_static='-Bstatic'
17325        ;;
17326  
17327 -    linux*)
17328 -      case $CC in
17329 +    linux* | k*bsd*-gnu)
17330 +      case $cc_basename in
17331        icc* | ecc*)
17332         lt_prog_compiler_wl='-Wl,'
17333         lt_prog_compiler_pic='-KPIC'
17334         lt_prog_compiler_static='-static'
17335          ;;
17336 +      pgcc* | pgf77* | pgf90* | pgf95*)
17337 +        # Portland Group compilers (*not* the Pentium gcc compiler,
17338 +       # which looks to be a dead project)
17339 +       lt_prog_compiler_wl='-Wl,'
17340 +       lt_prog_compiler_pic='-fpic'
17341 +       lt_prog_compiler_static='-Bstatic'
17342 +        ;;
17343        ccc*)
17344          lt_prog_compiler_wl='-Wl,'
17345          # All Alpha code is PIC.
17346          lt_prog_compiler_static='-non_shared'
17347          ;;
17348 +      *)
17349 +        case `$CC -V 2>&1 | sed 5q` in
17350 +       *Sun\ C*)
17351 +         # Sun C 5.9
17352 +         lt_prog_compiler_pic='-KPIC'
17353 +         lt_prog_compiler_static='-Bstatic'
17354 +         lt_prog_compiler_wl='-Wl,'
17355 +         ;;
17356 +       *Sun\ F*)
17357 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
17358 +         lt_prog_compiler_pic='-KPIC'
17359 +         lt_prog_compiler_static='-Bstatic'
17360 +         lt_prog_compiler_wl=''
17361 +         ;;
17362 +       esac
17363 +       ;;
17364        esac
17365        ;;
17366  
17367 @@ -6482,15 +7761,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17368        lt_prog_compiler_static='-non_shared'
17369        ;;
17370  
17371 -    sco3.2v5*)
17372 -      lt_prog_compiler_pic='-Kpic'
17373 -      lt_prog_compiler_static='-dn'
17374 +    rdos*)
17375 +      lt_prog_compiler_static='-non_shared'
17376        ;;
17377  
17378      solaris*)
17379 -      lt_prog_compiler_wl='-Wl,'
17380        lt_prog_compiler_pic='-KPIC'
17381        lt_prog_compiler_static='-Bstatic'
17382 +      case $cc_basename in
17383 +      f77* | f90* | f95*)
17384 +       lt_prog_compiler_wl='-Qoption ld ';;
17385 +      *)
17386 +       lt_prog_compiler_wl='-Wl,';;
17387 +      esac
17388        ;;
17389  
17390      sunos4*)
17391 @@ -6499,7 +7782,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17392        lt_prog_compiler_static='-Bstatic'
17393        ;;
17394  
17395 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17396 +    sysv4 | sysv4.2uw2* | sysv4.3*)
17397        lt_prog_compiler_wl='-Wl,'
17398        lt_prog_compiler_pic='-KPIC'
17399        lt_prog_compiler_static='-Bstatic'
17400 @@ -6512,6 +7795,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17401        fi
17402        ;;
17403  
17404 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17405 +      lt_prog_compiler_wl='-Wl,'
17406 +      lt_prog_compiler_pic='-KPIC'
17407 +      lt_prog_compiler_static='-Bstatic'
17408 +      ;;
17409 +
17410 +    unicos*)
17411 +      lt_prog_compiler_wl='-Wl,'
17412 +      lt_prog_compiler_can_build_shared=no
17413 +      ;;
17414 +
17415      uts4*)
17416        lt_prog_compiler_pic='-pic'
17417        lt_prog_compiler_static='-Bstatic'
17418 @@ -6523,22 +7817,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17419      esac
17420    fi
17421  
17422 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17423 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17424 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17425 +$as_echo "$lt_prog_compiler_pic" >&6; }
17426  
17427  #
17428  # Check to make sure the PIC flag actually works.
17429  #
17430  if test -n "$lt_prog_compiler_pic"; then
17431  
17432 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17433 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17434 -if test "${lt_prog_compiler_pic_works+set}" = set; then
17435 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17436 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17437 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17438 +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17439 +  $as_echo_n "(cached) " >&6
17440  else
17441 -  lt_prog_compiler_pic_works=no
17442 +  lt_cv_prog_compiler_pic_works=no
17443    ac_outfile=conftest.$ac_objext
17444 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17445 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17446     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17447     # Insert the option either (1) after the last *FLAGS variable, or
17448     # (2) before a word containing "conftest.", or (3) at the end.
17449 @@ -6546,28 +7840,30 @@ else
17450     # with a dollar sign (not a hyphen), so the echo should work correctly.
17451     # The option is referenced via a variable to avoid confusing sed.
17452     lt_compile=`echo "$ac_compile" | $SED \
17453 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17454 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17455     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17456     -e 's:$: $lt_compiler_flag:'`
17457 -   (eval echo "\"\$as_me:6552: $lt_compile\"" >&5)
17458 +   (eval echo "\"\$as_me:7846: $lt_compile\"" >&5)
17459     (eval "$lt_compile" 2>conftest.err)
17460     ac_status=$?
17461     cat conftest.err >&5
17462 -   echo "$as_me:6556: \$? = $ac_status" >&5
17463 +   echo "$as_me:7850: \$? = $ac_status" >&5
17464     if (exit $ac_status) && test -s "$ac_outfile"; then
17465       # The compiler can only warn and ignore the option if not recognized
17466 -     # So say no if there are warnings
17467 -     if test ! -s conftest.err; then
17468 -       lt_prog_compiler_pic_works=yes
17469 +     # So say no if there are warnings other than the usual output.
17470 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17471 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17472 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17473 +       lt_cv_prog_compiler_pic_works=yes
17474       fi
17475     fi
17476     $rm conftest*
17477  
17478  fi
17479 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17480 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17481 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17482 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17483  
17484 -if test x"$lt_prog_compiler_pic_works" = xyes; then
17485 +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17486      case $lt_prog_compiler_pic in
17487       "" | " "*) ;;
17488       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17489 @@ -6578,7 +7874,7 @@ else
17490  fi
17491  
17492  fi
17493 -case "$host_os" in
17494 +case $host_os in
17495    # For platforms which do not support PIC, -DPIC is meaningless:
17496    *djgpp*)
17497      lt_prog_compiler_pic=
17498 @@ -6588,17 +7884,59 @@ case "$host_os" in
17499      ;;
17500  esac
17501  
17502 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17503 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17504 +#
17505 +# Check to make sure the static flag actually works.
17506 +#
17507 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17508 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17509 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17510 +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17511 +  $as_echo_n "(cached) " >&6
17512 +else
17513 +  lt_cv_prog_compiler_static_works=no
17514 +   save_LDFLAGS="$LDFLAGS"
17515 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17516 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17517 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17518 +     # The linker can only warn and ignore the option if not recognized
17519 +     # So say no if there are warnings
17520 +     if test -s conftest.err; then
17521 +       # Append any errors to the config.log.
17522 +       cat conftest.err 1>&5
17523 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17524 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17525 +       if diff conftest.exp conftest.er2 >/dev/null; then
17526 +         lt_cv_prog_compiler_static_works=yes
17527 +       fi
17528 +     else
17529 +       lt_cv_prog_compiler_static_works=yes
17530 +     fi
17531 +   fi
17532 +   $rm -r conftest*
17533 +   LDFLAGS="$save_LDFLAGS"
17534 +
17535 +fi
17536 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17537 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17538 +
17539 +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17540 +    :
17541 +else
17542 +    lt_prog_compiler_static=
17543 +fi
17544 +
17545 +
17546 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17547 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17548  if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17549 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17550 +  $as_echo_n "(cached) " >&6
17551  else
17552    lt_cv_prog_compiler_c_o=no
17553     $rm -r conftest 2>/dev/null
17554     mkdir conftest
17555     cd conftest
17556     mkdir out
17557 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17558 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17559  
17560     lt_compiler_flag="-o out/conftest2.$ac_objext"
17561     # Insert the option either (1) after the last *FLAGS variable, or
17562 @@ -6606,23 +7944,25 @@ else
17563     # Note that $ac_compile itself does not contain backslashes and begins
17564     # with a dollar sign (not a hyphen), so the echo should work correctly.
17565     lt_compile=`echo "$ac_compile" | $SED \
17566 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17567 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17568     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17569     -e 's:$: $lt_compiler_flag:'`
17570 -   (eval echo "\"\$as_me:6612: $lt_compile\"" >&5)
17571 +   (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
17572     (eval "$lt_compile" 2>out/conftest.err)
17573     ac_status=$?
17574     cat out/conftest.err >&5
17575 -   echo "$as_me:6616: \$? = $ac_status" >&5
17576 +   echo "$as_me:7954: \$? = $ac_status" >&5
17577     if (exit $ac_status) && test -s out/conftest2.$ac_objext
17578     then
17579       # The compiler can only warn and ignore the option if not recognized
17580       # So say no if there are warnings
17581 -     if test ! -s out/conftest.err; then
17582 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17583 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17584 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17585         lt_cv_prog_compiler_c_o=yes
17586       fi
17587     fi
17588 -   chmod u+w .
17589 +   chmod u+w . 2>&5
17590     $rm conftest*
17591     # SGI C++ compiler will create directory out/ii_files/ for
17592     # template instantiation
17593 @@ -6633,34 +7973,34 @@ else
17594     $rm conftest*
17595  
17596  fi
17597 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17598 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17599 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17600 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17601  
17602  
17603  hard_links="nottested"
17604  if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17605    # do not overwrite the value of need_locks provided by the user
17606 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17607 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17608 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17609 +$as_echo_n "checking if we can lock with hard links... " >&6; }
17610    hard_links=yes
17611    $rm conftest*
17612    ln conftest.a conftest.b 2>/dev/null && hard_links=no
17613    touch conftest.a
17614    ln conftest.a conftest.b 2>&5 || hard_links=no
17615    ln conftest.a conftest.b 2>/dev/null && hard_links=no
17616 -  echo "$as_me:$LINENO: result: $hard_links" >&5
17617 -echo "${ECHO_T}$hard_links" >&6
17618 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17619 +$as_echo "$hard_links" >&6; }
17620    if test "$hard_links" = no; then
17621 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17622 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17623 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17624 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17625      need_locks=warn
17626    fi
17627  else
17628    need_locks=no
17629  fi
17630  
17631 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17632 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17633 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17634 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17635  
17636    runpath_var=
17637    allow_undefined_flag=
17638 @@ -6691,13 +8031,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17639    # it will be wrapped by ` (' and `)$', so one must not match beginning or
17640    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17641    # as well as any symbol that contains `d'.
17642 -  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17643 +  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17644    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17645    # platforms (ab)use it in PIC code, but their linkers get confused if
17646    # the symbol is explicitly referenced.  Since portable code cannot
17647    # rely on this symbol name, it's probably fine to never include it in
17648    # preloaded symbol tables.
17649 +  # Exclude shared library initialization/finalization symbols.
17650    extract_expsyms_cmds=
17651 +  # Just being paranoid about ensuring that cc_basename is set.
17652 +  for cc_temp in $compiler""; do
17653 +  case $cc_temp in
17654 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17655 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17656 +    \-*) ;;
17657 +    *) break;;
17658 +  esac
17659 +done
17660 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17661  
17662    case $host_os in
17663    cygwin* | mingw* | pw32*)
17664 @@ -6708,6 +8059,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17665        with_gnu_ld=no
17666      fi
17667      ;;
17668 +  interix*)
17669 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
17670 +    with_gnu_ld=yes
17671 +    ;;
17672    openbsd*)
17673      with_gnu_ld=no
17674      ;;
17675 @@ -6718,9 +8073,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17676      # If archive_cmds runs LD, not CC, wlarc should be empty
17677      wlarc='${wl}'
17678  
17679 +    # Set some defaults for GNU ld with shared library support. These
17680 +    # are reset later if shared libraries are not supported. Putting them
17681 +    # here allows them to be overridden if necessary.
17682 +    runpath_var=LD_RUN_PATH
17683 +    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17684 +    export_dynamic_flag_spec='${wl}--export-dynamic'
17685 +    # ancient GNU ld didn't support --whole-archive et. al.
17686 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17687 +       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17688 +      else
17689 +       whole_archive_flag_spec=
17690 +    fi
17691 +    supports_anon_versioning=no
17692 +    case `$LD -v 2>/dev/null` in
17693 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17694 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17695 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17696 +      *\ 2.11.*) ;; # other 2.11 versions
17697 +      *) supports_anon_versioning=yes ;;
17698 +    esac
17699 +
17700      # See if GNU ld supports shared libraries.
17701      case $host_os in
17702 -    aix3* | aix4* | aix5*)
17703 +    aix[3-9]*)
17704        # On AIX/PPC, the GNU linker is very broken
17705        if test "$host_cpu" != ia64; then
17706         ld_shlibs=no
17707 @@ -6768,10 +8144,10 @@ EOF
17708        allow_undefined_flag=unsupported
17709        always_export_symbols=no
17710        enable_shared_with_static_runtimes=yes
17711 -      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17712 +      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17713  
17714        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17715 -        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17716 +        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17717         # If the export-symbols file already is a .def file (1st line
17718         # is EXPORTS), use it as is; otherwise, prepend...
17719         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17720 @@ -6780,13 +8156,69 @@ EOF
17721           echo EXPORTS > $output_objdir/$soname.def;
17722           cat $export_symbols >> $output_objdir/$soname.def;
17723         fi~
17724 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17725 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17726 +      else
17727 +       ld_shlibs=no
17728 +      fi
17729 +      ;;
17730 +
17731 +    interix[3-9]*)
17732 +      hardcode_direct=no
17733 +      hardcode_shlibpath_var=no
17734 +      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17735 +      export_dynamic_flag_spec='${wl}-E'
17736 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17737 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
17738 +      # default) and relocated if they conflict, which is a slow very memory
17739 +      # consuming and fragmenting process.  To avoid this, we pick a random,
17740 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17741 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17742 +      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17743 +      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'
17744 +      ;;
17745 +
17746 +    gnu* | linux* | k*bsd*-gnu)
17747 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17748 +       tmp_addflag=
17749 +       case $cc_basename,$host_cpu in
17750 +       pgcc*)                          # Portland Group C compiler
17751 +         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'
17752 +         tmp_addflag=' $pic_flag'
17753 +         ;;
17754 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17755 +         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'
17756 +         tmp_addflag=' $pic_flag -Mnomain' ;;
17757 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17758 +         tmp_addflag=' -i_dynamic' ;;
17759 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17760 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
17761 +       ifc* | ifort*)                  # Intel Fortran compiler
17762 +         tmp_addflag=' -nofor_main' ;;
17763 +       esac
17764 +       case `$CC -V 2>&1 | sed 5q` in
17765 +       *Sun\ C*)                       # Sun C 5.9
17766 +         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'
17767 +         tmp_sharedflag='-G' ;;
17768 +       *Sun\ F*)                       # Sun Fortran 8.3
17769 +         tmp_sharedflag='-G' ;;
17770 +       *)
17771 +         tmp_sharedflag='-shared' ;;
17772 +       esac
17773 +       archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17774 +
17775 +       if test $supports_anon_versioning = yes; then
17776 +         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17777 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17778 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
17779 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17780 +       fi
17781 +       link_all_deplibs=no
17782        else
17783         ld_shlibs=no
17784        fi
17785        ;;
17786  
17787 -    netbsd*)
17788 +    netbsd* | netbsdelf*-gnu)
17789        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17790         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17791         wlarc=
17792 @@ -6796,7 +8228,7 @@ EOF
17793        fi
17794        ;;
17795  
17796 -    solaris* | sysv5*)
17797 +    solaris*)
17798        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17799         ld_shlibs=no
17800         cat <<EOF 1>&2
17801 @@ -6817,6 +8249,33 @@ EOF
17802        fi
17803        ;;
17804  
17805 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17806 +      case `$LD -v 2>&1` in
17807 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17808 +       ld_shlibs=no
17809 +       cat <<_LT_EOF 1>&2
17810 +
17811 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17812 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
17813 +*** is disabling shared libraries support.  We urge you to upgrade GNU
17814 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17815 +*** your PATH or compiler configuration so that the native linker is
17816 +*** used, and then restart.
17817 +
17818 +_LT_EOF
17819 +       ;;
17820 +       *)
17821 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17822 +           hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17823 +           archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17824 +           archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17825 +         else
17826 +           ld_shlibs=no
17827 +         fi
17828 +       ;;
17829 +      esac
17830 +      ;;
17831 +
17832      sunos4*)
17833        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17834        wlarc=
17835 @@ -6824,31 +8283,6 @@ EOF
17836        hardcode_shlibpath_var=no
17837        ;;
17838  
17839 -  linux*)
17840 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17841 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17842 -       archive_cmds="$tmp_archive_cmds"
17843 -      supports_anon_versioning=no
17844 -      case `$LD -v 2>/dev/null` in
17845 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17846 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17847 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17848 -        *\ 2.11.*) ;; # other 2.11 versions
17849 -        *) supports_anon_versioning=yes ;;
17850 -      esac
17851 -      if test $supports_anon_versioning = yes; then
17852 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17853 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17854 -$echo "local: *; };" >> $output_objdir/$libname.ver~
17855 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17856 -      else
17857 -        archive_expsym_cmds="$tmp_archive_cmds"
17858 -      fi
17859 -    else
17860 -      ld_shlibs=no
17861 -    fi
17862 -    ;;
17863 -
17864      *)
17865        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17866         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17867 @@ -6859,16 +8293,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17868        ;;
17869      esac
17870  
17871 -    if test "$ld_shlibs" = yes; then
17872 -      runpath_var=LD_RUN_PATH
17873 -      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17874 -      export_dynamic_flag_spec='${wl}--export-dynamic'
17875 -      # ancient GNU ld didn't support --whole-archive et. al.
17876 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17877 -       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17878 -      else
17879 -       whole_archive_flag_spec=
17880 -      fi
17881 +    if test "$ld_shlibs" = no; then
17882 +      runpath_var=
17883 +      hardcode_libdir_flag_spec=
17884 +      export_dynamic_flag_spec=
17885 +      whole_archive_flag_spec=
17886      fi
17887    else
17888      # PORTME fill in a description of your system's linker (not GNU ld)
17889 @@ -6880,14 +8309,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17890        # Note: this linker hardcodes the directories in LIBPATH if there
17891        # are no directories specified by -L.
17892        hardcode_minus_L=yes
17893 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
17894 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17895         # Neither direct hardcoding nor static linking is supported with a
17896         # broken collect2.
17897         hardcode_direct=unsupported
17898        fi
17899        ;;
17900  
17901 -    aix4* | aix5*)
17902 +    aix[4-9]*)
17903        if test "$host_cpu" = ia64; then
17904         # On IA64, the linker does run time linking by default, so we don't
17905         # have to do anything special.
17906 @@ -6907,13 +8336,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17907         # Test if we are trying to use run time linking or normal
17908         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17909         # need to do runtime linking.
17910 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17911 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17912           for ld_flag in $LDFLAGS; do
17913           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17914             aix_use_runtimelinking=yes
17915             break
17916           fi
17917           done
17918 +         ;;
17919         esac
17920  
17921         exp_sym_flag='-bexport'
17922 @@ -6932,7 +8362,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17923        link_all_deplibs=yes
17924  
17925        if test "$GCC" = yes; then
17926 -       case $host_os in aix4.012|aix4.012.*)
17927 +       case $host_os in aix4.[012]|aix4.[012].*)
17928         # We only want to do this on AIX 4.2 and lower, the check
17929         # below for broken collect2 doesn't work under 4.3+
17930           collect2name=`${CC} -print-prog-name=collect2`
17931 @@ -6940,7 +8370,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17932            strings "$collect2name" | grep resolve_lib_name >/dev/null
17933           then
17934           # We have reworked collect2
17935 -         hardcode_direct=yes
17936 +         :
17937           else
17938           # We have old collect2
17939           hardcode_direct=unsupported
17940 @@ -6951,8 +8381,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17941           hardcode_libdir_flag_spec='-L$libdir'
17942           hardcode_libdir_separator=
17943           fi
17944 +         ;;
17945         esac
17946         shared_flag='-shared'
17947 +       if test "$aix_use_runtimelinking" = yes; then
17948 +         shared_flag="$shared_flag "'${wl}-G'
17949 +       fi
17950        else
17951         # not using gcc
17952         if test "$host_cpu" = ia64; then
17953 @@ -6960,11 +8394,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
17954         # chokes on -Wl,-G. The following line is correct:
17955           shared_flag='-G'
17956         else
17957 -       if test "$aix_use_runtimelinking" = yes; then
17958 +         if test "$aix_use_runtimelinking" = yes; then
17959             shared_flag='${wl}-G'
17960           else
17961             shared_flag='${wl}-bM:SRE'
17962 -       fi
17963 +         fi
17964         fi
17965        fi
17966  
17967 @@ -6992,49 +8426,58 @@ main ()
17968  }
17969  _ACEOF
17970  rm -f conftest.$ac_objext conftest$ac_exeext
17971 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17972 -  (eval $ac_link) 2>conftest.er1
17973 +if { (ac_try="$ac_link"
17974 +case "(($ac_try" in
17975 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 +  *) ac_try_echo=$ac_try;;
17977 +esac
17978 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17979 +$as_echo "$ac_try_echo") >&5
17980 +  (eval "$ac_link") 2>conftest.er1
17981    ac_status=$?
17982    grep -v '^ *+' conftest.er1 >conftest.err
17983    rm -f conftest.er1
17984    cat conftest.err >&5
17985 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 -  (exit $ac_status); } &&
17987 -        { ac_try='test -z "$ac_c_werror_flag"
17988 -                        || test ! -s conftest.err'
17989 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 -  (eval $ac_try) 2>&5
17991 -  ac_status=$?
17992 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 -  (exit $ac_status); }; } &&
17994 -        { ac_try='test -s conftest$ac_exeext'
17995 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 -  (eval $ac_try) 2>&5
17997 -  ac_status=$?
17998 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 -  (exit $ac_status); }; }; then
18000 -
18001 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18002 -}'`
18003 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 +  (exit $ac_status); } && {
18005 +        test -z "$ac_c_werror_flag" ||
18006 +        test ! -s conftest.err
18007 +       } && test -s conftest$ac_exeext && {
18008 +        test "$cross_compiling" = yes ||
18009 +        $as_test_x conftest$ac_exeext
18010 +       }; then
18011 +
18012 +lt_aix_libpath_sed='
18013 +    /Import File Strings/,/^$/ {
18014 +       /^0/ {
18015 +           s/^0  *\(.*\)$/\1/
18016 +           p
18017 +       }
18018 +    }'
18019 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18020  # Check for a 64-bit object if we didn't find anything.
18021 -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; }
18022 -}'`; fi
18023 +if test -z "$aix_libpath"; then
18024 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18025 +fi
18026  else
18027 -  echo "$as_me: failed program was:" >&5
18028 +  $as_echo "$as_me: failed program was:" >&5
18029  sed 's/^/| /' conftest.$ac_ext >&5
18030  
18031 +
18032  fi
18033 -rm -f conftest.err conftest.$ac_objext \
18034 +
18035 +rm -rf conftest.dSYM
18036 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037        conftest$ac_exeext conftest.$ac_ext
18038  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18039  
18040         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18041 -       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"
18042 +       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"
18043         else
18044         if test "$host_cpu" = ia64; then
18045           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18046           allow_undefined_flag="-z nodefs"
18047 -         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"
18048 +         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"
18049         else
18050          # Determine the default libpath from the value encoded in an empty executable.
18051          cat >conftest.$ac_ext <<_ACEOF
18052 @@ -7053,39 +8496,48 @@ main ()
18053  }
18054  _ACEOF
18055  rm -f conftest.$ac_objext conftest$ac_exeext
18056 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18057 -  (eval $ac_link) 2>conftest.er1
18058 +if { (ac_try="$ac_link"
18059 +case "(($ac_try" in
18060 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 +  *) ac_try_echo=$ac_try;;
18062 +esac
18063 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18064 +$as_echo "$ac_try_echo") >&5
18065 +  (eval "$ac_link") 2>conftest.er1
18066    ac_status=$?
18067    grep -v '^ *+' conftest.er1 >conftest.err
18068    rm -f conftest.er1
18069    cat conftest.err >&5
18070 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 -  (exit $ac_status); } &&
18072 -        { ac_try='test -z "$ac_c_werror_flag"
18073 -                        || test ! -s conftest.err'
18074 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 -  (eval $ac_try) 2>&5
18076 -  ac_status=$?
18077 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 -  (exit $ac_status); }; } &&
18079 -        { ac_try='test -s conftest$ac_exeext'
18080 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 -  (eval $ac_try) 2>&5
18082 -  ac_status=$?
18083 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 -  (exit $ac_status); }; }; then
18085 -
18086 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18087 -}'`
18088 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 +  (exit $ac_status); } && {
18090 +        test -z "$ac_c_werror_flag" ||
18091 +        test ! -s conftest.err
18092 +       } && test -s conftest$ac_exeext && {
18093 +        test "$cross_compiling" = yes ||
18094 +        $as_test_x conftest$ac_exeext
18095 +       }; then
18096 +
18097 +lt_aix_libpath_sed='
18098 +    /Import File Strings/,/^$/ {
18099 +       /^0/ {
18100 +           s/^0  *\(.*\)$/\1/
18101 +           p
18102 +       }
18103 +    }'
18104 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18105  # Check for a 64-bit object if we didn't find anything.
18106 -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; }
18107 -}'`; fi
18108 +if test -z "$aix_libpath"; then
18109 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18110 +fi
18111  else
18112 -  echo "$as_me: failed program was:" >&5
18113 +  $as_echo "$as_me: failed program was:" >&5
18114  sed 's/^/| /' conftest.$ac_ext >&5
18115  
18116 +
18117  fi
18118 -rm -f conftest.err conftest.$ac_objext \
18119 +
18120 +rm -rf conftest.dSYM
18121 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18122        conftest$ac_exeext conftest.$ac_ext
18123  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18124  
18125 @@ -7094,13 +8546,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18126           # -berok will link without error, but may produce a broken library.
18127           no_undefined_flag=' ${wl}-bernotok'
18128           allow_undefined_flag=' ${wl}-berok'
18129 -         # -bexpall does not export symbols beginning with underscore (_)
18130 -         always_export_symbols=yes
18131           # Exported symbols can be pulled into shared objects from archives
18132 -         whole_archive_flag_spec=' '
18133 +         whole_archive_flag_spec='$convenience'
18134           archive_cmds_need_lc=yes
18135 -         # This is similar to how AIX traditionally builds it's shared libraries.
18136 -         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'
18137 +         # This is similar to how AIX traditionally builds its shared libraries.
18138 +         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'
18139         fi
18140        fi
18141        ;;
18142 @@ -7113,7 +8563,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18143        ld_shlibs=no
18144        ;;
18145  
18146 -    bsdi4*)
18147 +    bsdi[45]*)
18148        export_dynamic_flag_spec=-rdynamic
18149        ;;
18150  
18151 @@ -7133,58 +8583,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18152        # The linker will automatically build a .lib file if we build a DLL.
18153        old_archive_From_new_cmds='true'
18154        # FIXME: Should let the user specify the lib program.
18155 -      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
18156 +      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18157        fix_srcfile_path='`cygpath -w "$srcfile"`'
18158        enable_shared_with_static_runtimes=yes
18159        ;;
18160  
18161      darwin* | rhapsody*)
18162 -    if test "$GXX" = yes ; then
18163 -      archive_cmds_need_lc=no
18164 -      case "$host_os" in
18165 -      rhapsody* | darwin1.[012])
18166 -       allow_undefined_flag='-undefined suppress'
18167 -       ;;
18168 -      *) # Darwin 1.3 on
18169 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18170 -       allow_undefined_flag='-flat_namespace -undefined suppress'
18171 -      else
18172 -        case ${MACOSX_DEPLOYMENT_TARGET} in
18173 -          10.[012])
18174 -            allow_undefined_flag='-flat_namespace -undefined suppress'
18175 -            ;;
18176 -          10.*)
18177 -            allow_undefined_flag='-undefined dynamic_lookup'
18178 -            ;;
18179 -        esac
18180 -      fi
18181 -       ;;
18182 +      case $host_os in
18183 +        rhapsody* | darwin1.[012])
18184 +         allow_undefined_flag='${wl}-undefined ${wl}suppress'
18185 +         ;;
18186 +       *) # Darwin 1.3 on
18187 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18188 +           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18189 +         else
18190 +           case ${MACOSX_DEPLOYMENT_TARGET} in
18191 +             10.[012])
18192 +               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18193 +               ;;
18194 +             10.*)
18195 +               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
18196 +               ;;
18197 +           esac
18198 +         fi
18199 +         ;;
18200        esac
18201 -       lt_int_apple_cc_single_mod=no
18202 -       output_verbose_link_cmd='echo'
18203 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18204 -         lt_int_apple_cc_single_mod=yes
18205 -       fi
18206 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18207 -         archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18208 -       else
18209 -        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'
18210 -      fi
18211 -      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18212 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18213 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18214 -          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}'
18215 -        else
18216 -          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}'
18217 -        fi
18218 -          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}'
18219 +      archive_cmds_need_lc=no
18220        hardcode_direct=no
18221        hardcode_automatic=yes
18222        hardcode_shlibpath_var=unsupported
18223 -      whole_archive_flag_spec='-all_load $convenience'
18224 +      whole_archive_flag_spec=''
18225        link_all_deplibs=yes
18226 +    if test "$GCC" = yes ; then
18227 +       output_verbose_link_cmd='echo'
18228 +        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18229 +        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18230 +        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}"
18231 +        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}"
18232      else
18233 -      ld_shlibs=no
18234 +      case $cc_basename in
18235 +        xlc*)
18236 +         output_verbose_link_cmd='echo'
18237 +         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18238 +         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18239 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18240 +         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}'
18241 +          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}'
18242 +          ;;
18243 +       *)
18244 +         ld_shlibs=no
18245 +          ;;
18246 +      esac
18247      fi
18248        ;;
18249  
18250 @@ -7218,7 +8667,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18251        ;;
18252  
18253      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18254 -    freebsd* | kfreebsd*-gnu)
18255 +    freebsd* | dragonfly*)
18256        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18257        hardcode_libdir_flag_spec='-R$libdir'
18258        hardcode_direct=yes
18259 @@ -7241,47 +8690,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18260        export_dynamic_flag_spec='${wl}-E'
18261        ;;
18262  
18263 -    hpux10* | hpux11*)
18264 +    hpux10*)
18265        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18266 -       case "$host_cpu" in
18267 -       hppa*64*|ia64*)
18268 +       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18269 +      else
18270 +       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18271 +      fi
18272 +      if test "$with_gnu_ld" = no; then
18273 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18274 +       hardcode_libdir_separator=:
18275 +
18276 +       hardcode_direct=yes
18277 +       export_dynamic_flag_spec='${wl}-E'
18278 +
18279 +       # hardcode_minus_L: Not really in the search PATH,
18280 +       # but as the default location of the library.
18281 +       hardcode_minus_L=yes
18282 +      fi
18283 +      ;;
18284 +
18285 +    hpux11*)
18286 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18287 +       case $host_cpu in
18288 +       hppa*64*)
18289           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18290           ;;
18291 +       ia64*)
18292 +         archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18293 +         ;;
18294         *)
18295           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18296           ;;
18297         esac
18298        else
18299 -       case "$host_cpu" in
18300 -       hppa*64*|ia64*)
18301 -         archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18302 +       case $host_cpu in
18303 +       hppa*64*)
18304 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18305 +         ;;
18306 +       ia64*)
18307 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18308           ;;
18309         *)
18310 -         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18311 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18312           ;;
18313         esac
18314        fi
18315        if test "$with_gnu_ld" = no; then
18316 -       case "$host_cpu" in
18317 -       hppa*64*)
18318 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18319 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18320 +       hardcode_libdir_separator=:
18321 +
18322 +       case $host_cpu in
18323 +       hppa*64*|ia64*)
18324           hardcode_libdir_flag_spec_ld='+b $libdir'
18325 -         hardcode_libdir_separator=:
18326 -         hardcode_direct=no
18327 -         hardcode_shlibpath_var=no
18328 -         ;;
18329 -       ia64*)
18330 -         hardcode_libdir_flag_spec='-L$libdir'
18331           hardcode_direct=no
18332           hardcode_shlibpath_var=no
18333 -
18334 -         # hardcode_minus_L: Not really in the search PATH,
18335 -         # but as the default location of the library.
18336 -         hardcode_minus_L=yes
18337           ;;
18338         *)
18339 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18340 -         hardcode_libdir_separator=:
18341           hardcode_direct=yes
18342           export_dynamic_flag_spec='${wl}-E'
18343  
18344 @@ -7305,7 +8769,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18345        link_all_deplibs=yes
18346        ;;
18347  
18348 -    netbsd*)
18349 +    netbsd* | netbsdelf*-gnu)
18350        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18351         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18352        else
18353 @@ -7325,23 +8789,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18354        ;;
18355  
18356      openbsd*)
18357 -      hardcode_direct=yes
18358 -      hardcode_shlibpath_var=no
18359 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18360 -       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18361 -       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18362 -       export_dynamic_flag_spec='${wl}-E'
18363 +      if test -f /usr/libexec/ld.so; then
18364 +       hardcode_direct=yes
18365 +       hardcode_shlibpath_var=no
18366 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18367 +         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18368 +         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18369 +         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18370 +         export_dynamic_flag_spec='${wl}-E'
18371 +       else
18372 +         case $host_os in
18373 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18374 +            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18375 +            hardcode_libdir_flag_spec='-R$libdir'
18376 +            ;;
18377 +          *)
18378 +            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18379 +            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18380 +            ;;
18381 +         esac
18382 +        fi
18383        else
18384 -       case $host_os in
18385 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18386 -          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18387 -          hardcode_libdir_flag_spec='-R$libdir'
18388 -          ;;
18389 -        *)
18390 -          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18391 -          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18392 -          ;;
18393 -       esac
18394 +       ld_shlibs=no
18395        fi
18396        ;;
18397  
18398 @@ -7374,7 +8843,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18399         allow_undefined_flag=' -expect_unresolved \*'
18400         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'
18401         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18402 -       $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'
18403 +       $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'
18404  
18405         # Both c and cxx compiler support -rpath directly
18406         hardcode_libdir_flag_spec='-rpath $libdir'
18407 @@ -7382,21 +8851,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18408        hardcode_libdir_separator=:
18409        ;;
18410  
18411 -    sco3.2v5*)
18412 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18413 -      hardcode_shlibpath_var=no
18414 -      export_dynamic_flag_spec='${wl}-Bexport'
18415 -      runpath_var=LD_RUN_PATH
18416 -      hardcode_runpath_var=yes
18417 -      ;;
18418 -
18419      solaris*)
18420        no_undefined_flag=' -z text'
18421        if test "$GCC" = yes; then
18422 +       wlarc='${wl}'
18423         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18424         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18425           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18426        else
18427 +       wlarc=''
18428         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18429         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18430         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18431 @@ -7405,8 +8868,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18432        hardcode_shlibpath_var=no
18433        case $host_os in
18434        solaris2.[0-5] | solaris2.[0-5].*) ;;
18435 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18436 -       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18437 +      *)
18438 +       # The compiler driver will combine and reorder linker options,
18439 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
18440 +       # but is careful enough not to reorder.
18441 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
18442 +       if test "$GCC" = yes; then
18443 +         whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18444 +       else
18445 +         whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18446 +       fi
18447 +       ;;
18448        esac
18449        link_all_deplibs=yes
18450        ;;
18451 @@ -7463,36 +8935,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18452        fi
18453        ;;
18454  
18455 -    sysv4.2uw2*)
18456 -      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18457 -      hardcode_direct=yes
18458 -      hardcode_minus_L=no
18459 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18460 +      no_undefined_flag='${wl}-z,text'
18461 +      archive_cmds_need_lc=no
18462        hardcode_shlibpath_var=no
18463 -      hardcode_runpath_var=yes
18464 -      runpath_var=LD_RUN_PATH
18465 -      ;;
18466 +      runpath_var='LD_RUN_PATH'
18467  
18468 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18469 -      no_undefined_flag='${wl}-z ${wl}text'
18470        if test "$GCC" = yes; then
18471 -       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18472 +       archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18473 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18474        else
18475 -       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18476 +       archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18477 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18478        fi
18479 -      runpath_var='LD_RUN_PATH'
18480 -      hardcode_shlibpath_var=no
18481        ;;
18482  
18483 -    sysv5*)
18484 -      no_undefined_flag=' -z text'
18485 -      # $CC -shared without GNU ld will not create a library from C++
18486 -      # object files and a static libstdc++, better avoid it by now
18487 -      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18488 -      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18489 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18490 -      hardcode_libdir_flag_spec=
18491 +    sysv5* | sco3.2v5* | sco5v6*)
18492 +      # Note: We can NOT use -z defs as we might desire, because we do not
18493 +      # link with -lc, and that would cause any symbols used from libc to
18494 +      # always be unresolved, which means just about no library would
18495 +      # ever link correctly.  If we're not using GNU ld we use -z text
18496 +      # though, which does catch some bad symbols but isn't as heavy-handed
18497 +      # as -z defs.
18498 +      no_undefined_flag='${wl}-z,text'
18499 +      allow_undefined_flag='${wl}-z,nodefs'
18500 +      archive_cmds_need_lc=no
18501        hardcode_shlibpath_var=no
18502 +      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18503 +      hardcode_libdir_separator=':'
18504 +      link_all_deplibs=yes
18505 +      export_dynamic_flag_spec='${wl}-Bexport'
18506        runpath_var='LD_RUN_PATH'
18507 +
18508 +      if test "$GCC" = yes; then
18509 +       archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 +      else
18512 +       archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18513 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18514 +      fi
18515        ;;
18516  
18517      uts4*)
18518 @@ -7507,15 +8988,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18519      esac
18520    fi
18521  
18522 -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18523 -echo "${ECHO_T}$ld_shlibs" >&6
18524 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18525 +$as_echo "$ld_shlibs" >&6; }
18526  test "$ld_shlibs" = no && can_build_shared=no
18527  
18528 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18529 -if test "$GCC" = yes; then
18530 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18531 -fi
18532 -
18533  #
18534  # Do we need to explicitly link libc?
18535  #
18536 @@ -7533,21 +9009,22 @@ x|xyes)
18537        # Test whether the compiler implicitly links with -lc since on some
18538        # systems, -lgcc has to come before -lc. If gcc already passes -lc
18539        # to ld, don't add -lc before -lgcc.
18540 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18541 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18542 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18543 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18544        $rm conftest*
18545 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18546 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18547  
18548        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18549    (eval $ac_compile) 2>&5
18550    ac_status=$?
18551 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553    (exit $ac_status); } 2>conftest.err; then
18554          soname=conftest
18555          lib=conftest
18556          libobjs=conftest.$ac_objext
18557          deplibs=
18558          wl=$lt_prog_compiler_wl
18559 +       pic_flag=$lt_prog_compiler_pic
18560          compiler_flags=-v
18561          linker_flags=-v
18562          verstring=
18563 @@ -7558,7 +9035,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
18564          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18565    (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18566    ac_status=$?
18567 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569    (exit $ac_status); }
18570          then
18571           archive_cmds_need_lc=no
18572 @@ -7570,16 +9047,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
18573          cat conftest.err 1>&5
18574        fi
18575        $rm conftest*
18576 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18577 -echo "${ECHO_T}$archive_cmds_need_lc" >&6
18578 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18579 +$as_echo "$archive_cmds_need_lc" >&6; }
18580        ;;
18581      esac
18582    fi
18583    ;;
18584  esac
18585  
18586 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18587 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18588 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18589 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
18590  library_names_spec=
18591  libname_spec='lib$name'
18592  soname_spec=
18593 @@ -7593,17 +9070,55 @@ shlibpath_overrides_runpath=unknown
18594  version_type=none
18595  dynamic_linker="$host_os ld.so"
18596  sys_lib_dlsearch_path_spec="/lib /usr/lib"
18597 +
18598  if test "$GCC" = yes; then
18599 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18600 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18601 +  case $host_os in
18602 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18603 +    *) lt_awk_arg="/^libraries:/" ;;
18604 +  esac
18605 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18606 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
18607      # if the path contains ";" then we assume it to be the separator
18608      # otherwise default to the standard path separator (i.e. ":") - it is
18609      # assumed that no part of a normal pathname contains ";" but that should
18610      # okay in the real world where ";" in dirpaths is itself problematic.
18611 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18612 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18613    else
18614 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18615 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18616    fi
18617 +  # Ok, now we have the path, separated by spaces, we can step through it
18618 +  # and add multilib dir if necessary.
18619 +  lt_tmp_lt_search_path_spec=
18620 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18621 +  for lt_sys_path in $lt_search_path_spec; do
18622 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18623 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18624 +    else
18625 +      test -d "$lt_sys_path" && \
18626 +       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18627 +    fi
18628 +  done
18629 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
18630 +BEGIN {RS=" "; FS="/|\n";} {
18631 +  lt_foo="";
18632 +  lt_count=0;
18633 +  for (lt_i = NF; lt_i > 0; lt_i--) {
18634 +    if ($lt_i != "" && $lt_i != ".") {
18635 +      if ($lt_i == "..") {
18636 +        lt_count++;
18637 +      } else {
18638 +        if (lt_count == 0) {
18639 +          lt_foo="/" $lt_i lt_foo;
18640 +        } else {
18641 +          lt_count--;
18642 +        }
18643 +      }
18644 +    }
18645 +  }
18646 +  if (lt_foo != "") { lt_freq[lt_foo]++; }
18647 +  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18648 +}'`
18649 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
18650  else
18651    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18652  fi
18653 @@ -7624,7 +9139,7 @@ aix3*)
18654    soname_spec='${libname}${release}${shared_ext}$major'
18655    ;;
18656  
18657 -aix4* | aix5*)
18658 +aix[4-9]*)
18659    version_type=linux
18660    need_lib_prefix=no
18661    need_version=no
18662 @@ -7680,7 +9195,7 @@ beos*)
18663    shlibpath_var=LIBRARY_PATH
18664    ;;
18665  
18666 -bsdi4*)
18667 +bsdi[45]*)
18668    version_type=linux
18669    need_version=no
18670    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671 @@ -7708,7 +9223,8 @@ cygwin* | mingw* | pw32*)
18672        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18673        dldir=$destdir/`dirname \$dlpath`~
18674        test -d \$dldir || mkdir -p \$dldir~
18675 -      $install_prog $dir/$dlname \$dldir/$dlname'
18676 +      $install_prog $dir/$dlname \$dldir/$dlname~
18677 +      chmod a+x \$dldir/$dlname'
18678      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18679        dlpath=$dir/\$dldll~
18680         $rm \$dlpath'
18681 @@ -7738,7 +9254,7 @@ cygwin* | mingw* | pw32*)
18682        ;;
18683      pw32*)
18684        # pw32 DLLs use 'pw' prefix rather than 'lib'
18685 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18686 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18687        ;;
18688      esac
18689      ;;
18690 @@ -7761,13 +9277,9 @@ darwin* | rhapsody*)
18691    soname_spec='${libname}${release}${major}$shared_ext'
18692    shlibpath_overrides_runpath=yes
18693    shlibpath_var=DYLD_LIBRARY_PATH
18694 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18695 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18696 -  if test "$GCC" = yes; then
18697 -    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"`
18698 -  else
18699 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18700 -  fi
18701 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18702 +
18703 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18704    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18705    ;;
18706  
18707 @@ -7784,20 +9296,17 @@ freebsd1*)
18708    dynamic_linker=no
18709    ;;
18710  
18711 -kfreebsd*-gnu)
18712 -  version_type=linux
18713 -  need_lib_prefix=no
18714 -  need_version=no
18715 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18716 -  soname_spec='${libname}${release}${shared_ext}$major'
18717 -  shlibpath_var=LD_LIBRARY_PATH
18718 -  shlibpath_overrides_runpath=no
18719 -  hardcode_into_libs=yes
18720 -  dynamic_linker='GNU ld.so'
18721 -  ;;
18722 -
18723 -freebsd*)
18724 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18725 +freebsd* | dragonfly*)
18726 +  # DragonFly does not have aout.  When/if they implement a new
18727 +  # versioning mechanism, adjust this.
18728 +  if test -x /usr/bin/objformat; then
18729 +    objformat=`/usr/bin/objformat`
18730 +  else
18731 +    case $host_os in
18732 +    freebsd[123]*) objformat=aout ;;
18733 +    *) objformat=elf ;;
18734 +    esac
18735 +  fi
18736    version_type=freebsd-$objformat
18737    case $version_type in
18738      freebsd-elf*)
18739 @@ -7815,14 +9324,19 @@ freebsd*)
18740    freebsd2*)
18741      shlibpath_overrides_runpath=yes
18742      ;;
18743 -  freebsd3.01* | freebsdelf3.01*)
18744 +  freebsd3.[01]* | freebsdelf3.[01]*)
18745      shlibpath_overrides_runpath=yes
18746      hardcode_into_libs=yes
18747      ;;
18748 -  *) # from 3.2 on
18749 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18750 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18751      shlibpath_overrides_runpath=no
18752      hardcode_into_libs=yes
18753      ;;
18754 +  *) # from 4.6 on, and DragonFly
18755 +    shlibpath_overrides_runpath=yes
18756 +    hardcode_into_libs=yes
18757 +    ;;
18758    esac
18759    ;;
18760  
18761 @@ -7842,7 +9356,7 @@ hpux9* | hpux10* | hpux11*)
18762    version_type=sunos
18763    need_lib_prefix=no
18764    need_version=no
18765 -  case "$host_cpu" in
18766 +  case $host_cpu in
18767    ia64*)
18768      shrext_cmds='.so'
18769      hardcode_into_libs=yes
18770 @@ -7882,6 +9396,18 @@ hpux9* | hpux10* | hpux11*)
18771    postinstall_cmds='chmod 555 $lib'
18772    ;;
18773  
18774 +interix[3-9]*)
18775 +  version_type=linux
18776 +  need_lib_prefix=no
18777 +  need_version=no
18778 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18779 +  soname_spec='${libname}${release}${shared_ext}$major'
18780 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18781 +  shlibpath_var=LD_LIBRARY_PATH
18782 +  shlibpath_overrides_runpath=no
18783 +  hardcode_into_libs=yes
18784 +  ;;
18785 +
18786  irix5* | irix6* | nonstopux*)
18787    case $host_os in
18788      nonstopux*) version_type=nonstopux ;;
18789 @@ -7925,7 +9451,7 @@ linux*oldld* | linux*aout* | linux*coff*)
18790    ;;
18791  
18792  # This must be Linux ELF.
18793 -linux*)
18794 +linux* | k*bsd*-gnu)
18795    version_type=linux
18796    need_lib_prefix=no
18797    need_version=no
18798 @@ -7939,31 +9465,10 @@ linux*)
18799    # before this can be enabled.
18800    hardcode_into_libs=yes
18801  
18802 -  # find out which ABI we are using
18803 -  libsuff=
18804 -  case "$host_cpu" in
18805 -  x86_64*|s390x*|powerpc64*)
18806 -    echo '#line 7946 "configure"' > conftest.$ac_ext
18807 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18808 -  (eval $ac_compile) 2>&5
18809 -  ac_status=$?
18810 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 -  (exit $ac_status); }; then
18812 -      case `/usr/bin/file conftest.$ac_objext` in
18813 -      *64-bit*)
18814 -        libsuff=64
18815 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18816 -        ;;
18817 -      esac
18818 -    fi
18819 -    rm -rf conftest*
18820 -    ;;
18821 -  esac
18822 -
18823    # Append ld.so.conf contents to the search path
18824    if test -f /etc/ld.so.conf; then
18825 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18826 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18827 +    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' ' '`
18828 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18829    fi
18830  
18831    # We used to test for /lib/ld.so.1 and disable shared libraries on
18832 @@ -7975,7 +9480,7 @@ linux*)
18833    dynamic_linker='GNU/Linux ld.so'
18834    ;;
18835  
18836 -knetbsd*-gnu)
18837 +netbsdelf*-gnu)
18838    version_type=linux
18839    need_lib_prefix=no
18840    need_version=no
18841 @@ -7984,7 +9489,7 @@ knetbsd*-gnu)
18842    shlibpath_var=LD_LIBRARY_PATH
18843    shlibpath_overrides_runpath=no
18844    hardcode_into_libs=yes
18845 -  dynamic_linker='GNU ld.so'
18846 +  dynamic_linker='NetBSD ld.elf_so'
18847    ;;
18848  
18849  netbsd*)
18850 @@ -8024,8 +9529,13 @@ nto-qnx*)
18851  
18852  openbsd*)
18853    version_type=sunos
18854 +  sys_lib_dlsearch_path_spec="/usr/lib"
18855    need_lib_prefix=no
18856 -  need_version=yes
18857 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18858 +  case $host_os in
18859 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18860 +    *)                         need_version=no  ;;
18861 +  esac
18862    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18863    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18864    shlibpath_var=LD_LIBRARY_PATH
18865 @@ -8063,11 +9573,8 @@ osf3* | osf4* | osf5*)
18866    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18867    ;;
18868  
18869 -sco3.2v5*)
18870 -  version_type=osf
18871 -  soname_spec='${libname}${release}${shared_ext}$major'
18872 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873 -  shlibpath_var=LD_LIBRARY_PATH
18874 +rdos*)
18875 +  dynamic_linker=no
18876    ;;
18877  
18878  solaris*)
18879 @@ -8095,7 +9602,7 @@ sunos4*)
18880    need_version=yes
18881    ;;
18882  
18883 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18884 +sysv4 | sysv4.3*)
18885    version_type=linux
18886    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18887    soname_spec='${libname}${release}${shared_ext}$major'
18888 @@ -8128,6 +9635,29 @@ sysv4*MP*)
18889    fi
18890    ;;
18891  
18892 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18893 +  version_type=freebsd-elf
18894 +  need_lib_prefix=no
18895 +  need_version=no
18896 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18897 +  soname_spec='${libname}${release}${shared_ext}$major'
18898 +  shlibpath_var=LD_LIBRARY_PATH
18899 +  hardcode_into_libs=yes
18900 +  if test "$with_gnu_ld" = yes; then
18901 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18902 +    shlibpath_overrides_runpath=no
18903 +  else
18904 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18905 +    shlibpath_overrides_runpath=yes
18906 +    case $host_os in
18907 +      sco3.2v5*)
18908 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18909 +       ;;
18910 +    esac
18911 +  fi
18912 +  sys_lib_dlsearch_path_spec='/usr/lib'
18913 +  ;;
18914 +
18915  uts4*)
18916    version_type=linux
18917    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18918 @@ -8139,16 +9669,36 @@ uts4*)
18919    dynamic_linker=no
18920    ;;
18921  esac
18922 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18923 -echo "${ECHO_T}$dynamic_linker" >&6
18924 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18925 +$as_echo "$dynamic_linker" >&6; }
18926  test "$dynamic_linker" = no && can_build_shared=no
18927  
18928 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18929 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18930 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18931 +  $as_echo_n "(cached) " >&6
18932 +else
18933 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18934 +fi
18935 +
18936 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18937 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18938 +  $as_echo_n "(cached) " >&6
18939 +else
18940 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18941 +fi
18942 +
18943 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18944 +
18945 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18946 +if test "$GCC" = yes; then
18947 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18948 +fi
18949 +
18950 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18951 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18952  hardcode_action=
18953  if test -n "$hardcode_libdir_flag_spec" || \
18954 -   test -n "$runpath_var " || \
18955 -   test "X$hardcode_automatic"="Xyes" ; then
18956 +   test -n "$runpath_var" || \
18957 +   test "X$hardcode_automatic" = "Xyes" ; then
18958  
18959    # We can hardcode non-existant directories.
18960    if test "$hardcode_direct" != no &&
18961 @@ -8168,8 +9718,8 @@ else
18962    # directories.
18963    hardcode_action=unsupported
18964  fi
18965 -echo "$as_me:$LINENO: result: $hardcode_action" >&5
18966 -echo "${ECHO_T}$hardcode_action" >&6
18967 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
18968 +$as_echo "$hardcode_action" >&6; }
18969  
18970  if test "$hardcode_action" = relink; then
18971    # Fast installation is not supported
18972 @@ -8182,29 +9732,30 @@ fi
18973  
18974  striplib=
18975  old_striplib=
18976 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18977 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18978 +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18979 +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18980  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18981    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18982    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18983 -  echo "$as_me:$LINENO: result: yes" >&5
18984 -echo "${ECHO_T}yes" >&6
18985 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
18986 +$as_echo "yes" >&6; }
18987  else
18988  # FIXME - insert some real tests, host_os isn't really good enough
18989    case $host_os in
18990     darwin*)
18991         if test -n "$STRIP" ; then
18992           striplib="$STRIP -x"
18993 -         echo "$as_me:$LINENO: result: yes" >&5
18994 -echo "${ECHO_T}yes" >&6
18995 +         old_striplib="$STRIP -S"
18996 +         { $as_echo "$as_me:$LINENO: result: yes" >&5
18997 +$as_echo "yes" >&6; }
18998         else
18999 -  echo "$as_me:$LINENO: result: no" >&5
19000 -echo "${ECHO_T}no" >&6
19001 +  { $as_echo "$as_me:$LINENO: result: no" >&5
19002 +$as_echo "no" >&6; }
19003  fi
19004         ;;
19005     *)
19006 -  echo "$as_me:$LINENO: result: no" >&5
19007 -echo "${ECHO_T}no" >&6
19008 +  { $as_echo "$as_me:$LINENO: result: no" >&5
19009 +$as_echo "no" >&6; }
19010      ;;
19011    esac
19012  fi
19013 @@ -8236,10 +9787,10 @@ else
19014  
19015    darwin*)
19016    # if libdl is installed we need to link against it
19017 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19018 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19019 +    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19020 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
19021  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19022 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19023 +  $as_echo_n "(cached) " >&6
19024  else
19025    ac_check_lib_save_LIBS=$LIBS
19026  LIBS="-ldl  $LIBS"
19027 @@ -8250,57 +9801,58 @@ cat confdefs.h >>conftest.$ac_ext
19028  cat >>conftest.$ac_ext <<_ACEOF
19029  /* end confdefs.h.  */
19030  
19031 -/* Override any gcc2 internal prototype to avoid an error.  */
19032 +/* Override any GCC internal prototype to avoid an error.
19033 +   Use char because int might match the return type of a GCC
19034 +   builtin and then its argument prototype would still apply.  */
19035  #ifdef __cplusplus
19036  extern "C"
19037  #endif
19038 -/* We use char because int might match the return type of a gcc2
19039 -   builtin and then its argument prototype would still apply.  */
19040  char dlopen ();
19041  int
19042  main ()
19043  {
19044 -dlopen ();
19045 +return dlopen ();
19046    ;
19047    return 0;
19048  }
19049  _ACEOF
19050  rm -f conftest.$ac_objext conftest$ac_exeext
19051 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19052 -  (eval $ac_link) 2>conftest.er1
19053 +if { (ac_try="$ac_link"
19054 +case "(($ac_try" in
19055 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 +  *) ac_try_echo=$ac_try;;
19057 +esac
19058 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19059 +$as_echo "$ac_try_echo") >&5
19060 +  (eval "$ac_link") 2>conftest.er1
19061    ac_status=$?
19062    grep -v '^ *+' conftest.er1 >conftest.err
19063    rm -f conftest.er1
19064    cat conftest.err >&5
19065 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 -  (exit $ac_status); } &&
19067 -        { ac_try='test -z "$ac_c_werror_flag"
19068 -                        || test ! -s conftest.err'
19069 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 -  (eval $ac_try) 2>&5
19071 -  ac_status=$?
19072 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 -  (exit $ac_status); }; } &&
19074 -        { ac_try='test -s conftest$ac_exeext'
19075 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 -  (eval $ac_try) 2>&5
19077 -  ac_status=$?
19078 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 -  (exit $ac_status); }; }; then
19080 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 +  (exit $ac_status); } && {
19082 +        test -z "$ac_c_werror_flag" ||
19083 +        test ! -s conftest.err
19084 +       } && test -s conftest$ac_exeext && {
19085 +        test "$cross_compiling" = yes ||
19086 +        $as_test_x conftest$ac_exeext
19087 +       }; then
19088    ac_cv_lib_dl_dlopen=yes
19089  else
19090 -  echo "$as_me: failed program was:" >&5
19091 +  $as_echo "$as_me: failed program was:" >&5
19092  sed 's/^/| /' conftest.$ac_ext >&5
19093  
19094 -ac_cv_lib_dl_dlopen=no
19095 +       ac_cv_lib_dl_dlopen=no
19096  fi
19097 -rm -f conftest.err conftest.$ac_objext \
19098 +
19099 +rm -rf conftest.dSYM
19100 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19101        conftest$ac_exeext conftest.$ac_ext
19102  LIBS=$ac_check_lib_save_LIBS
19103  fi
19104 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19105 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19106 -if test $ac_cv_lib_dl_dlopen = yes; then
19107 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19108 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19109 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19110    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19111  else
19112  
19113 @@ -8313,10 +9865,10 @@ fi
19114     ;;
19115  
19116    *)
19117 -    echo "$as_me:$LINENO: checking for shl_load" >&5
19118 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19119 +    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
19120 +$as_echo_n "checking for shl_load... " >&6; }
19121  if test "${ac_cv_func_shl_load+set}" = set; then
19122 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19123 +  $as_echo_n "(cached) " >&6
19124  else
19125    cat >conftest.$ac_ext <<_ACEOF
19126  /* confdefs.h.  */
19127 @@ -8341,75 +9893,70 @@ cat >>conftest.$ac_ext <<_ACEOF
19128  
19129  #undef shl_load
19130  
19131 -/* Override any gcc2 internal prototype to avoid an error.  */
19132 +/* Override any GCC internal prototype to avoid an error.
19133 +   Use char because int might match the return type of a GCC
19134 +   builtin and then its argument prototype would still apply.  */
19135  #ifdef __cplusplus
19136  extern "C"
19137 -{
19138  #endif
19139 -/* We use char because int might match the return type of a gcc2
19140 -   builtin and then its argument prototype would still apply.  */
19141  char shl_load ();
19142  /* The GNU C library defines this for functions which it implements
19143      to always fail with ENOSYS.  Some functions are actually named
19144      something starting with __ and the normal name is an alias.  */
19145 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
19146 +#if defined __stub_shl_load || defined __stub___shl_load
19147  choke me
19148 -#else
19149 -char (*f) () = shl_load;
19150 -#endif
19151 -#ifdef __cplusplus
19152 -}
19153  #endif
19154  
19155  int
19156  main ()
19157  {
19158 -return f != shl_load;
19159 +return shl_load ();
19160    ;
19161    return 0;
19162  }
19163  _ACEOF
19164  rm -f conftest.$ac_objext conftest$ac_exeext
19165 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 -  (eval $ac_link) 2>conftest.er1
19167 +if { (ac_try="$ac_link"
19168 +case "(($ac_try" in
19169 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 +  *) ac_try_echo=$ac_try;;
19171 +esac
19172 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19173 +$as_echo "$ac_try_echo") >&5
19174 +  (eval "$ac_link") 2>conftest.er1
19175    ac_status=$?
19176    grep -v '^ *+' conftest.er1 >conftest.err
19177    rm -f conftest.er1
19178    cat conftest.err >&5
19179 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 -  (exit $ac_status); } &&
19181 -        { ac_try='test -z "$ac_c_werror_flag"
19182 -                        || test ! -s conftest.err'
19183 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 -  (eval $ac_try) 2>&5
19185 -  ac_status=$?
19186 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 -  (exit $ac_status); }; } &&
19188 -        { ac_try='test -s conftest$ac_exeext'
19189 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 -  (eval $ac_try) 2>&5
19191 -  ac_status=$?
19192 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 -  (exit $ac_status); }; }; then
19194 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 +  (exit $ac_status); } && {
19196 +        test -z "$ac_c_werror_flag" ||
19197 +        test ! -s conftest.err
19198 +       } && test -s conftest$ac_exeext && {
19199 +        test "$cross_compiling" = yes ||
19200 +        $as_test_x conftest$ac_exeext
19201 +       }; then
19202    ac_cv_func_shl_load=yes
19203  else
19204 -  echo "$as_me: failed program was:" >&5
19205 +  $as_echo "$as_me: failed program was:" >&5
19206  sed 's/^/| /' conftest.$ac_ext >&5
19207  
19208 -ac_cv_func_shl_load=no
19209 +       ac_cv_func_shl_load=no
19210  fi
19211 -rm -f conftest.err conftest.$ac_objext \
19212 +
19213 +rm -rf conftest.dSYM
19214 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215        conftest$ac_exeext conftest.$ac_ext
19216  fi
19217 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19218 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19219 -if test $ac_cv_func_shl_load = yes; then
19220 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19221 +$as_echo "$ac_cv_func_shl_load" >&6; }
19222 +if test "x$ac_cv_func_shl_load" = x""yes; then
19223    lt_cv_dlopen="shl_load"
19224  else
19225 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19226 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19227 +  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19228 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
19229  if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19230 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19231 +  $as_echo_n "(cached) " >&6
19232  else
19233    ac_check_lib_save_LIBS=$LIBS
19234  LIBS="-ldld  $LIBS"
19235 @@ -8420,63 +9967,64 @@ cat confdefs.h >>conftest.$ac_ext
19236  cat >>conftest.$ac_ext <<_ACEOF
19237  /* end confdefs.h.  */
19238  
19239 -/* Override any gcc2 internal prototype to avoid an error.  */
19240 +/* Override any GCC internal prototype to avoid an error.
19241 +   Use char because int might match the return type of a GCC
19242 +   builtin and then its argument prototype would still apply.  */
19243  #ifdef __cplusplus
19244  extern "C"
19245  #endif
19246 -/* We use char because int might match the return type of a gcc2
19247 -   builtin and then its argument prototype would still apply.  */
19248  char shl_load ();
19249  int
19250  main ()
19251  {
19252 -shl_load ();
19253 +return shl_load ();
19254    ;
19255    return 0;
19256  }
19257  _ACEOF
19258  rm -f conftest.$ac_objext conftest$ac_exeext
19259 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19260 -  (eval $ac_link) 2>conftest.er1
19261 +if { (ac_try="$ac_link"
19262 +case "(($ac_try" in
19263 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 +  *) ac_try_echo=$ac_try;;
19265 +esac
19266 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19267 +$as_echo "$ac_try_echo") >&5
19268 +  (eval "$ac_link") 2>conftest.er1
19269    ac_status=$?
19270    grep -v '^ *+' conftest.er1 >conftest.err
19271    rm -f conftest.er1
19272    cat conftest.err >&5
19273 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 -  (exit $ac_status); } &&
19275 -        { ac_try='test -z "$ac_c_werror_flag"
19276 -                        || test ! -s conftest.err'
19277 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 -  (eval $ac_try) 2>&5
19279 -  ac_status=$?
19280 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 -  (exit $ac_status); }; } &&
19282 -        { ac_try='test -s conftest$ac_exeext'
19283 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 -  (eval $ac_try) 2>&5
19285 -  ac_status=$?
19286 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 -  (exit $ac_status); }; }; then
19288 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 +  (exit $ac_status); } && {
19290 +        test -z "$ac_c_werror_flag" ||
19291 +        test ! -s conftest.err
19292 +       } && test -s conftest$ac_exeext && {
19293 +        test "$cross_compiling" = yes ||
19294 +        $as_test_x conftest$ac_exeext
19295 +       }; then
19296    ac_cv_lib_dld_shl_load=yes
19297  else
19298 -  echo "$as_me: failed program was:" >&5
19299 +  $as_echo "$as_me: failed program was:" >&5
19300  sed 's/^/| /' conftest.$ac_ext >&5
19301  
19302 -ac_cv_lib_dld_shl_load=no
19303 +       ac_cv_lib_dld_shl_load=no
19304  fi
19305 -rm -f conftest.err conftest.$ac_objext \
19306 +
19307 +rm -rf conftest.dSYM
19308 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19309        conftest$ac_exeext conftest.$ac_ext
19310  LIBS=$ac_check_lib_save_LIBS
19311  fi
19312 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19313 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19314 -if test $ac_cv_lib_dld_shl_load = yes; then
19315 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19316 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19317 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19318 +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
19319 +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19320  else
19321 -  echo "$as_me:$LINENO: checking for dlopen" >&5
19322 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19323 +  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
19324 +$as_echo_n "checking for dlopen... " >&6; }
19325  if test "${ac_cv_func_dlopen+set}" = set; then
19326 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19327 +  $as_echo_n "(cached) " >&6
19328  else
19329    cat >conftest.$ac_ext <<_ACEOF
19330  /* confdefs.h.  */
19331 @@ -8501,75 +10049,70 @@ cat >>conftest.$ac_ext <<_ACEOF
19332  
19333  #undef dlopen
19334  
19335 -/* Override any gcc2 internal prototype to avoid an error.  */
19336 +/* Override any GCC internal prototype to avoid an error.
19337 +   Use char because int might match the return type of a GCC
19338 +   builtin and then its argument prototype would still apply.  */
19339  #ifdef __cplusplus
19340  extern "C"
19341 -{
19342  #endif
19343 -/* We use char because int might match the return type of a gcc2
19344 -   builtin and then its argument prototype would still apply.  */
19345  char dlopen ();
19346  /* The GNU C library defines this for functions which it implements
19347      to always fail with ENOSYS.  Some functions are actually named
19348      something starting with __ and the normal name is an alias.  */
19349 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
19350 +#if defined __stub_dlopen || defined __stub___dlopen
19351  choke me
19352 -#else
19353 -char (*f) () = dlopen;
19354 -#endif
19355 -#ifdef __cplusplus
19356 -}
19357  #endif
19358  
19359  int
19360  main ()
19361  {
19362 -return f != dlopen;
19363 +return dlopen ();
19364    ;
19365    return 0;
19366  }
19367  _ACEOF
19368  rm -f conftest.$ac_objext conftest$ac_exeext
19369 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19370 -  (eval $ac_link) 2>conftest.er1
19371 +if { (ac_try="$ac_link"
19372 +case "(($ac_try" in
19373 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 +  *) ac_try_echo=$ac_try;;
19375 +esac
19376 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19377 +$as_echo "$ac_try_echo") >&5
19378 +  (eval "$ac_link") 2>conftest.er1
19379    ac_status=$?
19380    grep -v '^ *+' conftest.er1 >conftest.err
19381    rm -f conftest.er1
19382    cat conftest.err >&5
19383 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 -  (exit $ac_status); } &&
19385 -        { ac_try='test -z "$ac_c_werror_flag"
19386 -                        || test ! -s conftest.err'
19387 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 -  (eval $ac_try) 2>&5
19389 -  ac_status=$?
19390 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 -  (exit $ac_status); }; } &&
19392 -        { ac_try='test -s conftest$ac_exeext'
19393 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 -  (eval $ac_try) 2>&5
19395 -  ac_status=$?
19396 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 -  (exit $ac_status); }; }; then
19398 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 +  (exit $ac_status); } && {
19400 +        test -z "$ac_c_werror_flag" ||
19401 +        test ! -s conftest.err
19402 +       } && test -s conftest$ac_exeext && {
19403 +        test "$cross_compiling" = yes ||
19404 +        $as_test_x conftest$ac_exeext
19405 +       }; then
19406    ac_cv_func_dlopen=yes
19407  else
19408 -  echo "$as_me: failed program was:" >&5
19409 +  $as_echo "$as_me: failed program was:" >&5
19410  sed 's/^/| /' conftest.$ac_ext >&5
19411  
19412 -ac_cv_func_dlopen=no
19413 +       ac_cv_func_dlopen=no
19414  fi
19415 -rm -f conftest.err conftest.$ac_objext \
19416 +
19417 +rm -rf conftest.dSYM
19418 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19419        conftest$ac_exeext conftest.$ac_ext
19420  fi
19421 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19422 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19423 -if test $ac_cv_func_dlopen = yes; then
19424 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19425 +$as_echo "$ac_cv_func_dlopen" >&6; }
19426 +if test "x$ac_cv_func_dlopen" = x""yes; then
19427    lt_cv_dlopen="dlopen"
19428  else
19429 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19430 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19431 +  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19432 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
19433  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19434 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19435 +  $as_echo_n "(cached) " >&6
19436  else
19437    ac_check_lib_save_LIBS=$LIBS
19438  LIBS="-ldl  $LIBS"
19439 @@ -8580,63 +10123,64 @@ cat confdefs.h >>conftest.$ac_ext
19440  cat >>conftest.$ac_ext <<_ACEOF
19441  /* end confdefs.h.  */
19442  
19443 -/* Override any gcc2 internal prototype to avoid an error.  */
19444 +/* Override any GCC internal prototype to avoid an error.
19445 +   Use char because int might match the return type of a GCC
19446 +   builtin and then its argument prototype would still apply.  */
19447  #ifdef __cplusplus
19448  extern "C"
19449  #endif
19450 -/* We use char because int might match the return type of a gcc2
19451 -   builtin and then its argument prototype would still apply.  */
19452  char dlopen ();
19453  int
19454  main ()
19455  {
19456 -dlopen ();
19457 +return dlopen ();
19458    ;
19459    return 0;
19460  }
19461  _ACEOF
19462  rm -f conftest.$ac_objext conftest$ac_exeext
19463 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19464 -  (eval $ac_link) 2>conftest.er1
19465 +if { (ac_try="$ac_link"
19466 +case "(($ac_try" in
19467 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 +  *) ac_try_echo=$ac_try;;
19469 +esac
19470 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19471 +$as_echo "$ac_try_echo") >&5
19472 +  (eval "$ac_link") 2>conftest.er1
19473    ac_status=$?
19474    grep -v '^ *+' conftest.er1 >conftest.err
19475    rm -f conftest.er1
19476    cat conftest.err >&5
19477 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 -  (exit $ac_status); } &&
19479 -        { ac_try='test -z "$ac_c_werror_flag"
19480 -                        || test ! -s conftest.err'
19481 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 -  (eval $ac_try) 2>&5
19483 -  ac_status=$?
19484 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 -  (exit $ac_status); }; } &&
19486 -        { ac_try='test -s conftest$ac_exeext'
19487 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 -  (eval $ac_try) 2>&5
19489 -  ac_status=$?
19490 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 -  (exit $ac_status); }; }; then
19492 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 +  (exit $ac_status); } && {
19494 +        test -z "$ac_c_werror_flag" ||
19495 +        test ! -s conftest.err
19496 +       } && test -s conftest$ac_exeext && {
19497 +        test "$cross_compiling" = yes ||
19498 +        $as_test_x conftest$ac_exeext
19499 +       }; then
19500    ac_cv_lib_dl_dlopen=yes
19501  else
19502 -  echo "$as_me: failed program was:" >&5
19503 +  $as_echo "$as_me: failed program was:" >&5
19504  sed 's/^/| /' conftest.$ac_ext >&5
19505  
19506 -ac_cv_lib_dl_dlopen=no
19507 +       ac_cv_lib_dl_dlopen=no
19508  fi
19509 -rm -f conftest.err conftest.$ac_objext \
19510 +
19511 +rm -rf conftest.dSYM
19512 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19513        conftest$ac_exeext conftest.$ac_ext
19514  LIBS=$ac_check_lib_save_LIBS
19515  fi
19516 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19517 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19518 -if test $ac_cv_lib_dl_dlopen = yes; then
19519 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19520 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19521 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19522    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19523  else
19524 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19525 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19526 +  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19527 +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19528  if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19529 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19530 +  $as_echo_n "(cached) " >&6
19531  else
19532    ac_check_lib_save_LIBS=$LIBS
19533  LIBS="-lsvld  $LIBS"
19534 @@ -8647,63 +10191,64 @@ cat confdefs.h >>conftest.$ac_ext
19535  cat >>conftest.$ac_ext <<_ACEOF
19536  /* end confdefs.h.  */
19537  
19538 -/* Override any gcc2 internal prototype to avoid an error.  */
19539 +/* Override any GCC internal prototype to avoid an error.
19540 +   Use char because int might match the return type of a GCC
19541 +   builtin and then its argument prototype would still apply.  */
19542  #ifdef __cplusplus
19543  extern "C"
19544  #endif
19545 -/* We use char because int might match the return type of a gcc2
19546 -   builtin and then its argument prototype would still apply.  */
19547  char dlopen ();
19548  int
19549  main ()
19550  {
19551 -dlopen ();
19552 +return dlopen ();
19553    ;
19554    return 0;
19555  }
19556  _ACEOF
19557  rm -f conftest.$ac_objext conftest$ac_exeext
19558 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19559 -  (eval $ac_link) 2>conftest.er1
19560 +if { (ac_try="$ac_link"
19561 +case "(($ac_try" in
19562 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 +  *) ac_try_echo=$ac_try;;
19564 +esac
19565 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19566 +$as_echo "$ac_try_echo") >&5
19567 +  (eval "$ac_link") 2>conftest.er1
19568    ac_status=$?
19569    grep -v '^ *+' conftest.er1 >conftest.err
19570    rm -f conftest.er1
19571    cat conftest.err >&5
19572 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 -  (exit $ac_status); } &&
19574 -        { ac_try='test -z "$ac_c_werror_flag"
19575 -                        || test ! -s conftest.err'
19576 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 -  (eval $ac_try) 2>&5
19578 -  ac_status=$?
19579 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 -  (exit $ac_status); }; } &&
19581 -        { ac_try='test -s conftest$ac_exeext'
19582 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 -  (eval $ac_try) 2>&5
19584 -  ac_status=$?
19585 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 -  (exit $ac_status); }; }; then
19587 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 +  (exit $ac_status); } && {
19589 +        test -z "$ac_c_werror_flag" ||
19590 +        test ! -s conftest.err
19591 +       } && test -s conftest$ac_exeext && {
19592 +        test "$cross_compiling" = yes ||
19593 +        $as_test_x conftest$ac_exeext
19594 +       }; then
19595    ac_cv_lib_svld_dlopen=yes
19596  else
19597 -  echo "$as_me: failed program was:" >&5
19598 +  $as_echo "$as_me: failed program was:" >&5
19599  sed 's/^/| /' conftest.$ac_ext >&5
19600  
19601 -ac_cv_lib_svld_dlopen=no
19602 +       ac_cv_lib_svld_dlopen=no
19603  fi
19604 -rm -f conftest.err conftest.$ac_objext \
19605 +
19606 +rm -rf conftest.dSYM
19607 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19608        conftest$ac_exeext conftest.$ac_ext
19609  LIBS=$ac_check_lib_save_LIBS
19610  fi
19611 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19612 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19613 -if test $ac_cv_lib_svld_dlopen = yes; then
19614 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19615 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19616 +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19617    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19618  else
19619 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19620 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19621 +  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19622 +$as_echo_n "checking for dld_link in -ldld... " >&6; }
19623  if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19624 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19625 +  $as_echo_n "(cached) " >&6
19626  else
19627    ac_check_lib_save_LIBS=$LIBS
19628  LIBS="-ldld  $LIBS"
19629 @@ -8714,58 +10259,59 @@ cat confdefs.h >>conftest.$ac_ext
19630  cat >>conftest.$ac_ext <<_ACEOF
19631  /* end confdefs.h.  */
19632  
19633 -/* Override any gcc2 internal prototype to avoid an error.  */
19634 +/* Override any GCC internal prototype to avoid an error.
19635 +   Use char because int might match the return type of a GCC
19636 +   builtin and then its argument prototype would still apply.  */
19637  #ifdef __cplusplus
19638  extern "C"
19639  #endif
19640 -/* We use char because int might match the return type of a gcc2
19641 -   builtin and then its argument prototype would still apply.  */
19642  char dld_link ();
19643  int
19644  main ()
19645  {
19646 -dld_link ();
19647 +return dld_link ();
19648    ;
19649    return 0;
19650  }
19651  _ACEOF
19652  rm -f conftest.$ac_objext conftest$ac_exeext
19653 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654 -  (eval $ac_link) 2>conftest.er1
19655 +if { (ac_try="$ac_link"
19656 +case "(($ac_try" in
19657 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 +  *) ac_try_echo=$ac_try;;
19659 +esac
19660 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19661 +$as_echo "$ac_try_echo") >&5
19662 +  (eval "$ac_link") 2>conftest.er1
19663    ac_status=$?
19664    grep -v '^ *+' conftest.er1 >conftest.err
19665    rm -f conftest.er1
19666    cat conftest.err >&5
19667 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 -  (exit $ac_status); } &&
19669 -        { ac_try='test -z "$ac_c_werror_flag"
19670 -                        || test ! -s conftest.err'
19671 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 -  (eval $ac_try) 2>&5
19673 -  ac_status=$?
19674 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 -  (exit $ac_status); }; } &&
19676 -        { ac_try='test -s conftest$ac_exeext'
19677 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 -  (eval $ac_try) 2>&5
19679 -  ac_status=$?
19680 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 -  (exit $ac_status); }; }; then
19682 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 +  (exit $ac_status); } && {
19684 +        test -z "$ac_c_werror_flag" ||
19685 +        test ! -s conftest.err
19686 +       } && test -s conftest$ac_exeext && {
19687 +        test "$cross_compiling" = yes ||
19688 +        $as_test_x conftest$ac_exeext
19689 +       }; then
19690    ac_cv_lib_dld_dld_link=yes
19691  else
19692 -  echo "$as_me: failed program was:" >&5
19693 +  $as_echo "$as_me: failed program was:" >&5
19694  sed 's/^/| /' conftest.$ac_ext >&5
19695  
19696 -ac_cv_lib_dld_dld_link=no
19697 +       ac_cv_lib_dld_dld_link=no
19698  fi
19699 -rm -f conftest.err conftest.$ac_objext \
19700 +
19701 +rm -rf conftest.dSYM
19702 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19703        conftest$ac_exeext conftest.$ac_ext
19704  LIBS=$ac_check_lib_save_LIBS
19705  fi
19706 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19707 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19708 -if test $ac_cv_lib_dld_dld_link = yes; then
19709 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19710 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19711 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19712 +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
19713 +  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19714  fi
19715  
19716  
19717 @@ -8798,15 +10344,15 @@ fi
19718      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19719  
19720      save_LDFLAGS="$LDFLAGS"
19721 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19722 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19723  
19724      save_LIBS="$LIBS"
19725      LIBS="$lt_cv_dlopen_libs $LIBS"
19726  
19727 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19728 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19729 +    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19730 +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
19731  if test "${lt_cv_dlopen_self+set}" = set; then
19732 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19733 +  $as_echo_n "(cached) " >&6
19734  else
19735           if test "$cross_compiling" = yes; then :
19736    lt_cv_dlopen_self=cross
19737 @@ -8814,7 +10360,7 @@ else
19738    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19739    lt_status=$lt_dlunknown
19740    cat > conftest.$ac_ext <<EOF
19741 -#line 8817 "configure"
19742 +#line 10363 "configure"
19743  #include "confdefs.h"
19744  
19745  #if HAVE_DLFCN_H
19746 @@ -8871,6 +10417,8 @@ int main ()
19747        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19748        /* dlclose (self); */
19749      }
19750 +  else
19751 +    puts (dlerror ());
19752  
19753      exit (status);
19754  }
19755 @@ -8878,14 +10426,14 @@ EOF
19756    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19757    (eval $ac_link) 2>&5
19758    ac_status=$?
19759 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19762 -    (./conftest; exit; ) 2>/dev/null
19763 +    (./conftest; exit; ) >&5 2>/dev/null
19764      lt_status=$?
19765      case x$lt_status in
19766        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19767        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19768 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19769 +      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19770      esac
19771    else :
19772      # compilation failed
19773 @@ -8896,15 +10444,15 @@ rm -fr conftest*
19774  
19775  
19776  fi
19777 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19778 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19779 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19780 +$as_echo "$lt_cv_dlopen_self" >&6; }
19781  
19782      if test "x$lt_cv_dlopen_self" = xyes; then
19783 -      LDFLAGS="$LDFLAGS $link_static_flag"
19784 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19785 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19786 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19787 +      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19788 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19789  if test "${lt_cv_dlopen_self_static+set}" = set; then
19790 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19791 +  $as_echo_n "(cached) " >&6
19792  else
19793           if test "$cross_compiling" = yes; then :
19794    lt_cv_dlopen_self_static=cross
19795 @@ -8912,7 +10460,7 @@ else
19796    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19797    lt_status=$lt_dlunknown
19798    cat > conftest.$ac_ext <<EOF
19799 -#line 8915 "configure"
19800 +#line 10463 "configure"
19801  #include "confdefs.h"
19802  
19803  #if HAVE_DLFCN_H
19804 @@ -8969,6 +10517,8 @@ int main ()
19805        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19806        /* dlclose (self); */
19807      }
19808 +  else
19809 +    puts (dlerror ());
19810  
19811      exit (status);
19812  }
19813 @@ -8976,14 +10526,14 @@ EOF
19814    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815    (eval $ac_link) 2>&5
19816    ac_status=$?
19817 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19820 -    (./conftest; exit; ) 2>/dev/null
19821 +    (./conftest; exit; ) >&5 2>/dev/null
19822      lt_status=$?
19823      case x$lt_status in
19824        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19825        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19826 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19827 +      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19828      esac
19829    else :
19830      # compilation failed
19831 @@ -8994,8 +10544,8 @@ rm -fr conftest*
19832  
19833  
19834  fi
19835 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19836 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19837 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19838 +$as_echo "$lt_cv_dlopen_self_static" >&6; }
19839      fi
19840  
19841      CPPFLAGS="$save_CPPFLAGS"
19842 @@ -9016,19 +10566,19 @@ echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19843  fi
19844  
19845  
19846 -# Report which librarie types wil actually be built
19847 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19848 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19849 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
19850 -echo "${ECHO_T}$can_build_shared" >&6
19851 +# Report which library types will actually be built
19852 +{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19853 +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19854 +{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
19855 +$as_echo "$can_build_shared" >&6; }
19856  
19857 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19858 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19859 +{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19860 +$as_echo_n "checking whether to build shared libraries... " >&6; }
19861  test "$can_build_shared" = "no" && enable_shared=no
19862  
19863  # On AIX, shared libraries and static libraries use the same namespace, and
19864  # are all built from PIC.
19865 -case "$host_os" in
19866 +case $host_os in
19867  aix3*)
19868    test "$enable_shared" = yes && enable_static=no
19869    if test -n "$RANLIB"; then
19870 @@ -9037,58 +10587,21 @@ aix3*)
19871    fi
19872    ;;
19873  
19874 -aix4* | aix5*)
19875 +aix[4-9]*)
19876    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19877      test "$enable_shared" = yes && enable_static=no
19878    fi
19879 -  ;;
19880 -  darwin* | rhapsody*)
19881 -  if test "$GCC" = yes; then
19882 -    archive_cmds_need_lc=no
19883 -    case "$host_os" in
19884 -    rhapsody* | darwin1.[012])
19885 -      allow_undefined_flag='-undefined suppress'
19886 -      ;;
19887 -    *) # Darwin 1.3 on
19888 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19889 -       allow_undefined_flag='-flat_namespace -undefined suppress'
19890 -      else
19891 -        case ${MACOSX_DEPLOYMENT_TARGET} in
19892 -          10.[012])
19893 -            allow_undefined_flag='-flat_namespace -undefined suppress'
19894 -            ;;
19895 -          10.*)
19896 -            allow_undefined_flag='-undefined dynamic_lookup'
19897 -            ;;
19898 -        esac
19899 -      fi
19900 -      ;;
19901 -    esac
19902 -    output_verbose_link_cmd='echo'
19903 -    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
19904 -    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19905 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19906 -    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}'
19907 -    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}'
19908 -    hardcode_direct=no
19909 -    hardcode_automatic=yes
19910 -    hardcode_shlibpath_var=unsupported
19911 -    whole_archive_flag_spec='-all_load $convenience'
19912 -    link_all_deplibs=yes
19913 -  else
19914 -    ld_shlibs=no
19915 -  fi
19916      ;;
19917  esac
19918 -echo "$as_me:$LINENO: result: $enable_shared" >&5
19919 -echo "${ECHO_T}$enable_shared" >&6
19920 +{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
19921 +$as_echo "$enable_shared" >&6; }
19922  
19923 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19924 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19925 +{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19926 +$as_echo_n "checking whether to build static libraries... " >&6; }
19927  # Make sure either enable_shared or enable_static is yes.
19928  test "$enable_shared" = yes || enable_static=yes
19929 -echo "$as_me:$LINENO: result: $enable_static" >&5
19930 -echo "${ECHO_T}$enable_static" >&6
19931 +{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
19932 +$as_echo "$enable_static" >&6; }
19933  
19934  # The else clause should only fire when bootstrapping the
19935  # libtool distribution, otherwise you forgot to ship ltmain.sh
19936 @@ -9103,7 +10616,7 @@ if test -f "$ltmain"; then
19937    # Now quote all the things that may contain metacharacters while being
19938    # careful not to overquote the AC_SUBSTed values.  We take copies of the
19939    # variables and quote the copies for generation of the libtool script.
19940 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19941 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19942      SED SHELL STRIP \
19943      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19944      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19945 @@ -9130,6 +10643,7 @@ if test -f "$ltmain"; then
19946      predeps \
19947      postdeps \
19948      compiler_lib_search_path \
19949 +    compiler_lib_search_dirs \
19950      archive_cmds \
19951      archive_expsym_cmds \
19952      postinstall_cmds \
19953 @@ -9145,6 +10659,7 @@ if test -f "$ltmain"; then
19954      module_cmds \
19955      module_expsym_cmds \
19956      lt_cv_prog_compiler_c_o \
19957 +    fix_srcfile_path \
19958      exclude_expsyms \
19959      include_expsyms; do
19960  
19961 @@ -9179,8 +10694,8 @@ if test -f "$ltmain"; then
19962  cfgfile="${ofile}T"
19963    trap "$rm \"$cfgfile\"; exit 1" 1 2 15
19964    $rm -f "$cfgfile"
19965 -  { echo "$as_me:$LINENO: creating $ofile" >&5
19966 -echo "$as_me: creating $ofile" >&6;}
19967 +  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
19968 +$as_echo "$as_me: creating $ofile" >&6;}
19969  
19970    cat <<__EOF__ >> "$cfgfile"
19971  #! $SHELL
19972 @@ -9189,7 +10704,7 @@ echo "$as_me: creating $ofile" >&6;}
19973  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
19974  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19975  #
19976 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
19977 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
19978  # Free Software Foundation, Inc.
19979  #
19980  # This file is part of GNU Libtool:
19981 @@ -9207,7 +10722,7 @@ echo "$as_me: creating $ofile" >&6;}
19982  #
19983  # You should have received a copy of the GNU General Public License
19984  # along with this program; if not, write to the Free Software
19985 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19986 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19987  #
19988  # As a special exception to the GNU General Public License, if you
19989  # distribute this file as part of a program that contains a
19990 @@ -9218,11 +10733,11 @@ echo "$as_me: creating $ofile" >&6;}
19991  SED=$lt_SED
19992  
19993  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19994 -Xsed="$SED -e s/^X//"
19995 +Xsed="$SED -e 1s/^X//"
19996  
19997  # The HP-UX ksh and POSIX shell print the target directory to stdout
19998  # if CDPATH is set.
19999 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
20000 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20001  
20002  # The names of the tagged configurations supported by this script.
20003  available_tags=
20004 @@ -9252,6 +10767,12 @@ fast_install=$enable_fast_install
20005  # The host system.
20006  host_alias=$host_alias
20007  host=$host
20008 +host_os=$host_os
20009 +
20010 +# The build system.
20011 +build_alias=$build_alias
20012 +build=$build
20013 +build_os=$build_os
20014  
20015  # An echo program that does not interpret backslashes.
20016  echo=$lt_echo
20017 @@ -9263,6 +10784,9 @@ AR_FLAGS=$lt_AR_FLAGS
20018  # A C compiler.
20019  LTCC=$lt_LTCC
20020  
20021 +# LTCC compiler flags.
20022 +LTCFLAGS=$lt_LTCFLAGS
20023 +
20024  # A language-specific compiler.
20025  CC=$lt_compiler
20026  
20027 @@ -9328,7 +10852,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
20028  # Does compiler simultaneously support -c and -o options?
20029  compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20030  
20031 -# Must we lock files when doing compilation ?
20032 +# Must we lock files when doing compilation?
20033  need_locks=$lt_need_locks
20034  
20035  # Do we need the lib prefix for modules?
20036 @@ -9416,6 +10940,10 @@ predeps=$lt_predeps
20037  # shared library.
20038  postdeps=$lt_postdeps
20039  
20040 +# The directories searched by this compiler when creating a shared
20041 +# library
20042 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20043 +
20044  # The library search path used internally by the compiler when linking
20045  # a shared library.
20046  compiler_lib_search_path=$lt_compiler_lib_search_path
20047 @@ -9504,7 +11032,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20048  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20049  
20050  # Fix the shell variable \$srcfile for the compiler.
20051 -fix_srcfile_path="$fix_srcfile_path"
20052 +fix_srcfile_path=$lt_fix_srcfile_path
20053  
20054  # Set to yes if exported symbols are required.
20055  always_export_symbols=$always_export_symbols
20056 @@ -9571,28 +11099,31 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
20057  CC="$lt_save_CC"
20058  
20059  
20060 -# Check whether --with-tags or --without-tags was given.
20061 +# Check whether --with-tags was given.
20062  if test "${with_tags+set}" = set; then
20063 -  withval="$with_tags"
20064 -  tagnames="$withval"
20065 -fi;
20066 +  withval=$with_tags; tagnames="$withval"
20067 +fi
20068 +
20069  
20070  if test -f "$ltmain" && test -n "$tagnames"; then
20071    if test ! -f "${ofile}"; then
20072 -    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20073 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20074 +    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20075 +$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20076    fi
20077  
20078    if test -z "$LTCC"; then
20079      eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20080      if test -z "$LTCC"; then
20081 -      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20082 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20083 +      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20084 +$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20085      else
20086 -      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20087 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20088 +      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20089 +$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20090      fi
20091    fi
20092 +  if test -z "$LTCFLAGS"; then
20093 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
20094 +  fi
20095  
20096    # Extract list of available tagged configurations in $ofile.
20097    # Note that this assumes the entire list is on one line.
20098 @@ -9604,16 +11135,16 @@ echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20099      # Check whether tagname contains only valid characters
20100      case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20101      "") ;;
20102 -    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20103 -echo "$as_me: error: invalid tag name: $tagname" >&2;}
20104 +    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20105 +$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
20106     { (exit 1); exit 1; }; }
20107         ;;
20108      esac
20109  
20110      if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20111      then
20112 -      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20113 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20114 +      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20115 +$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20116     { (exit 1); exit 1; }; }
20117      fi
20118  
20119 @@ -9623,8 +11154,10 @@ echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20120  
20121        case $tagname in
20122        CXX)
20123 -       if test -n "$CXX" && test "X$CXX" != "Xno"; then
20124 -         ac_ext=cc
20125 +       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20126 +           ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20127 +           (test "X$CXX" != "Xg++"))) ; then
20128 +         ac_ext=cpp
20129  ac_cpp='$CXXCPP $CPPFLAGS'
20130  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132 @@ -9643,6 +11176,7 @@ hardcode_libdir_flag_spec_CXX=
20133  hardcode_libdir_flag_spec_ld_CXX=
20134  hardcode_libdir_separator_CXX=
20135  hardcode_minus_L_CXX=no
20136 +hardcode_shlibpath_var_CXX=unsupported
20137  hardcode_automatic_CXX=no
20138  module_cmds_CXX=
20139  module_expsym_cmds_CXX=
20140 @@ -9658,29 +11192,47 @@ postdep_objects_CXX=
20141  predeps_CXX=
20142  postdeps_CXX=
20143  compiler_lib_search_path_CXX=
20144 +compiler_lib_search_dirs_CXX=
20145  
20146  # Source file extension for C++ test sources.
20147 -ac_ext=cc
20148 +ac_ext=cpp
20149  
20150  # Object file extension for compiled C++ test sources.
20151  objext=o
20152  objext_CXX=$objext
20153  
20154  # Code to be used in simple compile tests
20155 -lt_simple_compile_test_code="int some_variable = 0;\n"
20156 +lt_simple_compile_test_code="int some_variable = 0;"
20157  
20158  # Code to be used in simple link tests
20159 -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
20160 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20161  
20162  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20163  
20164  # If no C compiler was specified, use CC.
20165  LTCC=${LTCC-"$CC"}
20166  
20167 +# If no C compiler flags were specified, use CFLAGS.
20168 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20169 +
20170  # Allow CC to be a program name with arguments.
20171  compiler=$CC
20172  
20173  
20174 +# save warnings/boilerplate of simple test code
20175 +ac_outfile=conftest.$ac_objext
20176 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20177 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20178 +_lt_compiler_boilerplate=`cat conftest.err`
20179 +$rm conftest*
20180 +
20181 +ac_outfile=conftest.$ac_objext
20182 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
20183 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20184 +_lt_linker_boilerplate=`cat conftest.err`
20185 +$rm -r conftest*
20186 +
20187 +
20188  # Allow CC to be a program name with arguments.
20189  lt_save_CC=$CC
20190  lt_save_LD=$LD
20191 @@ -9691,18 +11243,27 @@ lt_save_path_LD=$lt_cv_path_LD
20192  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20193    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20194  else
20195 -  unset lt_cv_prog_gnu_ld
20196 +  $as_unset lt_cv_prog_gnu_ld
20197  fi
20198  if test -n "${lt_cv_path_LDCXX+set}"; then
20199    lt_cv_path_LD=$lt_cv_path_LDCXX
20200  else
20201 -  unset lt_cv_path_LD
20202 +  $as_unset lt_cv_path_LD
20203  fi
20204  test -z "${LDCXX+set}" || LD=$LDCXX
20205  CC=${CXX-"c++"}
20206  compiler=$CC
20207  compiler_CXX=$CC
20208 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
20209 +for cc_temp in $compiler""; do
20210 +  case $cc_temp in
20211 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20212 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20213 +    \-*) ;;
20214 +    *) break;;
20215 +  esac
20216 +done
20217 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20218 +
20219  
20220  # We don't want -fno-exception wen compiling C++ code, so set the
20221  # no_builtin_flag separately
20222 @@ -9716,18 +11277,18 @@ if test "$GXX" = yes; then
20223    # Set up default GNU C++ configuration
20224  
20225  
20226 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
20227 +# Check whether --with-gnu-ld was given.
20228  if test "${with_gnu_ld+set}" = set; then
20229 -  withval="$with_gnu_ld"
20230 -  test "$withval" = no || with_gnu_ld=yes
20231 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20232  else
20233    with_gnu_ld=no
20234 -fi;
20235 +fi
20236 +
20237  ac_prog=ld
20238  if test "$GCC" = yes; then
20239    # Check if gcc -print-prog-name=ld gives a path.
20240 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20241 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20242 +  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20243 +$as_echo_n "checking for ld used by $CC... " >&6; }
20244    case $host in
20245    *-*-mingw*)
20246      # gcc leaves a trailing carriage return which upsets mingw
20247 @@ -9756,14 +11317,14 @@ echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20248      ;;
20249    esac
20250  elif test "$with_gnu_ld" = yes; then
20251 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
20252 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20253 +  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20254 +$as_echo_n "checking for GNU ld... " >&6; }
20255  else
20256 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20257 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20258 +  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20259 +$as_echo_n "checking for non-GNU ld... " >&6; }
20260  fi
20261  if test "${lt_cv_path_LD+set}" = set; then
20262 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20263 +  $as_echo_n "(cached) " >&6
20264  else
20265    if test -z "$LD"; then
20266    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20267 @@ -9773,7 +11334,7 @@ else
20268      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20269        lt_cv_path_LD="$ac_dir/$ac_prog"
20270        # Check to see if the program is GNU ld.  I'd rather use --version,
20271 -      # but apparently some GNU ld's only accept -v.
20272 +      # but apparently some variants of GNU ld only accept -v.
20273        # Break only if it was the GNU/non-GNU ld that we prefer.
20274        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20275        *GNU* | *'with BFD'*)
20276 @@ -9793,21 +11354,21 @@ fi
20277  
20278  LD="$lt_cv_path_LD"
20279  if test -n "$LD"; then
20280 -  echo "$as_me:$LINENO: result: $LD" >&5
20281 -echo "${ECHO_T}$LD" >&6
20282 +  { $as_echo "$as_me:$LINENO: result: $LD" >&5
20283 +$as_echo "$LD" >&6; }
20284  else
20285 -  echo "$as_me:$LINENO: result: no" >&5
20286 -echo "${ECHO_T}no" >&6
20287 +  { $as_echo "$as_me:$LINENO: result: no" >&5
20288 +$as_echo "no" >&6; }
20289  fi
20290 -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20291 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20292 +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20293 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20294     { (exit 1); exit 1; }; }
20295 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20296 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20297 +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20298 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20299  if test "${lt_cv_prog_gnu_ld+set}" = set; then
20300 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20301 +  $as_echo_n "(cached) " >&6
20302  else
20303 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20304 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20305  case `$LD -v 2>&1 </dev/null` in
20306  *GNU* | *'with BFD'*)
20307    lt_cv_prog_gnu_ld=yes
20308 @@ -9817,8 +11378,8 @@ case `$LD -v 2>&1 </dev/null` in
20309    ;;
20310  esac
20311  fi
20312 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20313 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20314 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20315 +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20316  with_gnu_ld=$lt_cv_prog_gnu_ld
20317  
20318  
20319 @@ -9868,15 +11429,15 @@ else
20320  fi
20321  
20322  # PORTME: fill in a description of your system's C++ link characteristics
20323 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20324 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20325 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20326 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20327  ld_shlibs_CXX=yes
20328  case $host_os in
20329    aix3*)
20330      # FIXME: insert proper C++ library support
20331      ld_shlibs_CXX=no
20332      ;;
20333 -  aix4* | aix5*)
20334 +  aix[4-9]*)
20335      if test "$host_cpu" = ia64; then
20336        # On IA64, the linker does run time linking by default, so we don't
20337        # have to do anything special.
20338 @@ -9889,7 +11450,7 @@ case $host_os in
20339        # Test if we are trying to use run time linking or normal
20340        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20341        # need to do runtime linking.
20342 -      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20343 +      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20344         for ld_flag in $LDFLAGS; do
20345           case $ld_flag in
20346           *-brtl*)
20347 @@ -9898,6 +11459,7 @@ case $host_os in
20348             ;;
20349           esac
20350         done
20351 +       ;;
20352        esac
20353  
20354        exp_sym_flag='-bexport'
20355 @@ -9916,7 +11478,7 @@ case $host_os in
20356      link_all_deplibs_CXX=yes
20357  
20358      if test "$GXX" = yes; then
20359 -      case $host_os in aix4.012|aix4.012.*)
20360 +      case $host_os in aix4.[012]|aix4.[012].*)
20361        # We only want to do this on AIX 4.2 and lower, the check
20362        # below for broken collect2 doesn't work under 4.3+
20363         collect2name=`${CC} -print-prog-name=collect2`
20364 @@ -9924,7 +11486,7 @@ case $host_os in
20365            strings "$collect2name" | grep resolve_lib_name >/dev/null
20366         then
20367           # We have reworked collect2
20368 -         hardcode_direct_CXX=yes
20369 +         :
20370         else
20371           # We have old collect2
20372           hardcode_direct_CXX=unsupported
20373 @@ -9935,8 +11497,12 @@ case $host_os in
20374           hardcode_libdir_flag_spec_CXX='-L$libdir'
20375           hardcode_libdir_separator_CXX=
20376         fi
20377 +       ;;
20378        esac
20379        shared_flag='-shared'
20380 +      if test "$aix_use_runtimelinking" = yes; then
20381 +       shared_flag="$shared_flag "'${wl}-G'
20382 +      fi
20383      else
20384        # not using gcc
20385        if test "$host_cpu" = ia64; then
20386 @@ -9976,50 +11542,59 @@ main ()
20387  }
20388  _ACEOF
20389  rm -f conftest.$ac_objext conftest$ac_exeext
20390 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20391 -  (eval $ac_link) 2>conftest.er1
20392 +if { (ac_try="$ac_link"
20393 +case "(($ac_try" in
20394 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 +  *) ac_try_echo=$ac_try;;
20396 +esac
20397 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20398 +$as_echo "$ac_try_echo") >&5
20399 +  (eval "$ac_link") 2>conftest.er1
20400    ac_status=$?
20401    grep -v '^ *+' conftest.er1 >conftest.err
20402    rm -f conftest.er1
20403    cat conftest.err >&5
20404 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 -  (exit $ac_status); } &&
20406 -        { ac_try='test -z "$ac_cxx_werror_flag"
20407 -                        || test ! -s conftest.err'
20408 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 -  (eval $ac_try) 2>&5
20410 -  ac_status=$?
20411 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 -  (exit $ac_status); }; } &&
20413 -        { ac_try='test -s conftest$ac_exeext'
20414 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 -  (eval $ac_try) 2>&5
20416 -  ac_status=$?
20417 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 -  (exit $ac_status); }; }; then
20419 -
20420 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20421 -}'`
20422 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 +  (exit $ac_status); } && {
20424 +        test -z "$ac_cxx_werror_flag" ||
20425 +        test ! -s conftest.err
20426 +       } && test -s conftest$ac_exeext && {
20427 +        test "$cross_compiling" = yes ||
20428 +        $as_test_x conftest$ac_exeext
20429 +       }; then
20430 +
20431 +lt_aix_libpath_sed='
20432 +    /Import File Strings/,/^$/ {
20433 +       /^0/ {
20434 +           s/^0  *\(.*\)$/\1/
20435 +           p
20436 +       }
20437 +    }'
20438 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20439  # Check for a 64-bit object if we didn't find anything.
20440 -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; }
20441 -}'`; fi
20442 +if test -z "$aix_libpath"; then
20443 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20444 +fi
20445  else
20446 -  echo "$as_me: failed program was:" >&5
20447 +  $as_echo "$as_me: failed program was:" >&5
20448  sed 's/^/| /' conftest.$ac_ext >&5
20449  
20450 +
20451  fi
20452 -rm -f conftest.err conftest.$ac_objext \
20453 +
20454 +rm -rf conftest.dSYM
20455 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20456        conftest$ac_exeext conftest.$ac_ext
20457  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20458  
20459        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20460  
20461 -      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"
20462 +      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"
20463       else
20464        if test "$host_cpu" = ia64; then
20465         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20466         allow_undefined_flag_CXX="-z nodefs"
20467 -       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"
20468 +       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"
20469        else
20470         # Determine the default libpath from the value encoded in an empty executable.
20471         cat >conftest.$ac_ext <<_ACEOF
20472 @@ -10038,39 +11613,48 @@ main ()
20473  }
20474  _ACEOF
20475  rm -f conftest.$ac_objext conftest$ac_exeext
20476 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20477 -  (eval $ac_link) 2>conftest.er1
20478 +if { (ac_try="$ac_link"
20479 +case "(($ac_try" in
20480 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 +  *) ac_try_echo=$ac_try;;
20482 +esac
20483 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20484 +$as_echo "$ac_try_echo") >&5
20485 +  (eval "$ac_link") 2>conftest.er1
20486    ac_status=$?
20487    grep -v '^ *+' conftest.er1 >conftest.err
20488    rm -f conftest.er1
20489    cat conftest.err >&5
20490 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 -  (exit $ac_status); } &&
20492 -        { ac_try='test -z "$ac_cxx_werror_flag"
20493 -                        || test ! -s conftest.err'
20494 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 -  (eval $ac_try) 2>&5
20496 -  ac_status=$?
20497 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 -  (exit $ac_status); }; } &&
20499 -        { ac_try='test -s conftest$ac_exeext'
20500 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 -  (eval $ac_try) 2>&5
20502 -  ac_status=$?
20503 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 -  (exit $ac_status); }; }; then
20505 -
20506 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20507 -}'`
20508 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 +  (exit $ac_status); } && {
20510 +        test -z "$ac_cxx_werror_flag" ||
20511 +        test ! -s conftest.err
20512 +       } && test -s conftest$ac_exeext && {
20513 +        test "$cross_compiling" = yes ||
20514 +        $as_test_x conftest$ac_exeext
20515 +       }; then
20516 +
20517 +lt_aix_libpath_sed='
20518 +    /Import File Strings/,/^$/ {
20519 +       /^0/ {
20520 +           s/^0  *\(.*\)$/\1/
20521 +           p
20522 +       }
20523 +    }'
20524 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20525  # Check for a 64-bit object if we didn't find anything.
20526 -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; }
20527 -}'`; fi
20528 +if test -z "$aix_libpath"; then
20529 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20530 +fi
20531  else
20532 -  echo "$as_me: failed program was:" >&5
20533 +  $as_echo "$as_me: failed program was:" >&5
20534  sed 's/^/| /' conftest.$ac_ext >&5
20535  
20536 +
20537  fi
20538 -rm -f conftest.err conftest.$ac_objext \
20539 +
20540 +rm -rf conftest.dSYM
20541 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20542        conftest$ac_exeext conftest.$ac_ext
20543  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20544  
20545 @@ -10079,16 +11663,26 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20546         # -berok will link without error, but may produce a broken library.
20547         no_undefined_flag_CXX=' ${wl}-bernotok'
20548         allow_undefined_flag_CXX=' ${wl}-berok'
20549 -       # -bexpall does not export symbols beginning with underscore (_)
20550 -       always_export_symbols_CXX=yes
20551         # Exported symbols can be pulled into shared objects from archives
20552 -       whole_archive_flag_spec_CXX=' '
20553 +       whole_archive_flag_spec_CXX='$convenience'
20554         archive_cmds_need_lc_CXX=yes
20555 -       # This is similar to how AIX traditionally builds it's shared libraries.
20556 -       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'
20557 +       # This is similar to how AIX traditionally builds its shared libraries.
20558 +       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'
20559        fi
20560      fi
20561      ;;
20562 +
20563 +  beos*)
20564 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20565 +      allow_undefined_flag_CXX=unsupported
20566 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20567 +      # support --undefined.  This deserves some investigation.  FIXME
20568 +      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20569 +    else
20570 +      ld_shlibs_CXX=no
20571 +    fi
20572 +    ;;
20573 +
20574    chorus*)
20575      case $cc_basename in
20576        *)
20577 @@ -10107,7 +11701,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20578      enable_shared_with_static_runtimes_CXX=yes
20579  
20580      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20581 -      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'
20582 +      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'
20583        # If the export-symbols file already is a .def file (1st line
20584        # is EXPORTS), use it as is; otherwise, prepend...
20585        archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20586 @@ -10116,70 +11710,53 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20587         echo EXPORTS > $output_objdir/$soname.def;
20588         cat $export_symbols >> $output_objdir/$soname.def;
20589        fi~
20590 -      $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'
20591 +      $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'
20592      else
20593        ld_shlibs_CXX=no
20594      fi
20595    ;;
20596 -
20597 -  darwin* | rhapsody*)
20598 -  if test "$GXX" = yes; then
20599 -    archive_cmds_need_lc_CXX=no
20600 -    case "$host_os" in
20601 -    rhapsody* | darwin1.[012])
20602 -      allow_undefined_flag_CXX='-undefined suppress'
20603 -      ;;
20604 -    *) # Darwin 1.3 on
20605 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20606 -       allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
20607 +      darwin* | rhapsody*)
20608 +      archive_cmds_need_lc_CXX=no
20609 +      hardcode_direct_CXX=no
20610 +      hardcode_automatic_CXX=yes
20611 +      hardcode_shlibpath_var_CXX=unsupported
20612 +      whole_archive_flag_spec_CXX=''
20613 +      link_all_deplibs_CXX=yes
20614 +      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20615 +      if test "$GXX" = yes ; then
20616 +      output_verbose_link_cmd='echo'
20617 +      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}"
20618 +      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20619 +      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}"
20620 +      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}"
20621 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20622 +        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}"
20623 +        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}"
20624 +      fi
20625        else
20626 -        case ${MACOSX_DEPLOYMENT_TARGET} in
20627 -          10.[012])
20628 -            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
20629 -            ;;
20630 -          10.*)
20631 -            allow_undefined_flag_CXX='-undefined dynamic_lookup'
20632 -            ;;
20633 -        esac
20634 +      case $cc_basename in
20635 +        xlc*)
20636 +         output_verbose_link_cmd='echo'
20637 +          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'
20638 +          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20639 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20640 +          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}'
20641 +          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}'
20642 +          ;;
20643 +       *)
20644 +         ld_shlibs_CXX=no
20645 +          ;;
20646 +      esac
20647        fi
20648 -      ;;
20649 -    esac
20650 -    lt_int_apple_cc_single_mod=no
20651 -    output_verbose_link_cmd='echo'
20652 -    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20653 -      lt_int_apple_cc_single_mod=yes
20654 -    fi
20655 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20656 -      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20657 -    else
20658 -      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'
20659 -    fi
20660 -    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20661 -
20662 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20663 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20664 -      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}'
20665 -    else
20666 -      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}'
20667 -    fi
20668 -    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}'
20669 -    hardcode_direct_CXX=no
20670 -    hardcode_automatic_CXX=yes
20671 -    hardcode_shlibpath_var_CXX=unsupported
20672 -    whole_archive_flag_spec_CXX='-all_load $convenience'
20673 -    link_all_deplibs_CXX=yes
20674 -  else
20675 -    ld_shlibs_CXX=no
20676 -  fi
20677 -    ;;
20678 +        ;;
20679  
20680    dgux*)
20681      case $cc_basename in
20682 -      ec++)
20683 +      ec++*)
20684         # FIXME: insert proper C++ library support
20685         ld_shlibs_CXX=no
20686         ;;
20687 -      ghcx)
20688 +      ghcx*)
20689         # Green Hills C++ Compiler
20690         # FIXME: insert proper C++ library support
20691         ld_shlibs_CXX=no
20692 @@ -10190,14 +11767,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20693         ;;
20694      esac
20695      ;;
20696 -  freebsd12*)
20697 +  freebsd[12]*)
20698      # C++ shared libraries reported to be fairly broken before switch to ELF
20699      ld_shlibs_CXX=no
20700      ;;
20701    freebsd-elf*)
20702      archive_cmds_need_lc_CXX=no
20703      ;;
20704 -  freebsd* | kfreebsd*-gnu)
20705 +  freebsd* | dragonfly*)
20706      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20707      # conventions
20708      ld_shlibs_CXX=yes
20709 @@ -10214,11 +11791,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20710                                 # location of the library.
20711  
20712      case $cc_basename in
20713 -    CC)
20714 +    CC*)
20715        # FIXME: insert proper C++ library support
20716        ld_shlibs_CXX=no
20717        ;;
20718 -    aCC)
20719 +    aCC*)
20720        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'
20721        # Commands to make compiler produce verbose output that lists
20722        # what "hidden" libraries, object files and flags are used when
20723 @@ -10228,7 +11805,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20724        # explicitly linking system object files so we need to strip them
20725        # from the output so that they don't get included in the library
20726        # dependencies.
20727 -      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'
20728 +      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'
20729        ;;
20730      *)
20731        if test "$GXX" = yes; then
20732 @@ -10242,33 +11819,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20733      ;;
20734    hpux10*|hpux11*)
20735      if test $with_gnu_ld = no; then
20736 -      case "$host_cpu" in
20737 -      hppa*64*)
20738 -       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20739 -       hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
20740 -       hardcode_libdir_separator_CXX=:
20741 -        ;;
20742 -      ia64*)
20743 -       hardcode_libdir_flag_spec_CXX='-L$libdir'
20744 -        ;;
20745 +      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20746 +      hardcode_libdir_separator_CXX=:
20747 +
20748 +      case $host_cpu in
20749 +      hppa*64*|ia64*) ;;
20750        *)
20751 -       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20752 -       hardcode_libdir_separator_CXX=:
20753         export_dynamic_flag_spec_CXX='${wl}-E'
20754          ;;
20755        esac
20756      fi
20757 -    case "$host_cpu" in
20758 -    hppa*64*)
20759 -      hardcode_direct_CXX=no
20760 -      hardcode_shlibpath_var_CXX=no
20761 -      ;;
20762 -    ia64*)
20763 +    case $host_cpu in
20764 +    hppa*64*|ia64*)
20765        hardcode_direct_CXX=no
20766        hardcode_shlibpath_var_CXX=no
20767 -      hardcode_minus_L_CXX=yes # Not in the search PATH,
20768 -                                             # but as the default
20769 -                                             # location of the library.
20770        ;;
20771      *)
20772        hardcode_direct_CXX=yes
20773 @@ -10279,14 +11843,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20774      esac
20775  
20776      case $cc_basename in
20777 -      CC)
20778 +      CC*)
20779         # FIXME: insert proper C++ library support
20780         ld_shlibs_CXX=no
20781         ;;
20782 -      aCC)
20783 -       case "$host_cpu" in
20784 -       hppa*64*|ia64*)
20785 -         archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
20786 +      aCC*)
20787 +       case $host_cpu in
20788 +       hppa*64*)
20789 +         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20790 +         ;;
20791 +       ia64*)
20792 +         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20793           ;;
20794         *)
20795           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20796 @@ -10305,9 +11872,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20797        *)
20798         if test "$GXX" = yes; then
20799           if test $with_gnu_ld = no; then
20800 -           case "$host_cpu" in
20801 -           ia64*|hppa*64*)
20802 -             archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
20803 +           case $host_cpu in
20804 +           hppa*64*)
20805 +             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20806 +             ;;
20807 +           ia64*)
20808 +             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20809               ;;
20810             *)
20811               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'
20812 @@ -10321,11 +11891,25 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20813         ;;
20814      esac
20815      ;;
20816 +  interix[3-9]*)
20817 +    hardcode_direct_CXX=no
20818 +    hardcode_shlibpath_var_CXX=no
20819 +    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20820 +    export_dynamic_flag_spec_CXX='${wl}-E'
20821 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20822 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
20823 +    # default) and relocated if they conflict, which is a slow very memory
20824 +    # consuming and fragmenting process.  To avoid this, we pick a random,
20825 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20826 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20827 +    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'
20828 +    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'
20829 +    ;;
20830    irix5* | irix6*)
20831      case $cc_basename in
20832 -      CC)
20833 +      CC*)
20834         # SGI C++
20835 -       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'
20836 +       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'
20837  
20838         # Archives containing C++ object files must be created using
20839         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20840 @@ -10336,7 +11920,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20841        *)
20842         if test "$GXX" = yes; then
20843           if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
20845 +           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'
20846           else
20847             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'
20848           fi
20849 @@ -10347,9 +11931,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20850      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20851      hardcode_libdir_separator_CXX=:
20852      ;;
20853 -  linux*)
20854 +  linux* | k*bsd*-gnu)
20855      case $cc_basename in
20856 -      KCC)
20857 +      KCC*)
20858         # Kuck and Associates, Inc. (KAI) C++ Compiler
20859  
20860         # KCC will only create a shared library if the output file
20861 @@ -10374,17 +11958,41 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20862         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20863         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20864         ;;
20865 -      icpc)
20866 +      icpc*)
20867         # Intel C++
20868         with_gnu_ld=yes
20869 +       # version 8.0 and above of icpc choke on multiply defined symbols
20870 +       # if we add $predep_objects and $postdep_objects, however 7.1 and
20871 +       # earlier do not add the objects themselves.
20872 +       case `$CC -V 2>&1` in
20873 +       *"Version 7."*)
20874 +         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20875 +         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'
20876 +         ;;
20877 +       *)  # Version 8.0 or newer
20878 +         tmp_idyn=
20879 +         case $host_cpu in
20880 +           ia64*) tmp_idyn=' -i_dynamic';;
20881 +         esac
20882 +         archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20883 +         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'
20884 +         ;;
20885 +       esac
20886         archive_cmds_need_lc_CXX=no
20887 -       archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20888 -       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'
20889         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20890         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20891         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20892         ;;
20893 -      cxx)
20894 +      pgCC* | pgcpp*)
20895 +        # Portland Group C++ compiler
20896 +       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20897 +       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'
20898 +
20899 +       hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20900 +       export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20901 +       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'
20902 +        ;;
20903 +      cxx*)
20904         # Compaq C++
20905         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20906         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'
20907 @@ -10403,6 +12011,29 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20908         # dependencies.
20909         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'
20910         ;;
20911 +      *)
20912 +       case `$CC -V 2>&1 | sed 5q` in
20913 +       *Sun\ C*)
20914 +         # Sun C++ 5.9
20915 +         no_undefined_flag_CXX=' -zdefs'
20916 +         archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20917 +         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'
20918 +         hardcode_libdir_flag_spec_CXX='-R$libdir'
20919 +         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'
20920 +
20921 +         # Not sure whether something based on
20922 +         # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20923 +         # would be better.
20924 +         output_verbose_link_cmd='echo'
20925 +
20926 +         # Archives containing C++ object files must be created using
20927 +         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20928 +         # necessary to make sure instantiated templates are included
20929 +         # in the archive.
20930 +         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20931 +         ;;
20932 +       esac
20933 +       ;;
20934      esac
20935      ;;
20936    lynxos*)
20937 @@ -10415,7 +12046,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20938      ;;
20939    mvs*)
20940      case $cc_basename in
20941 -      cxx)
20942 +      cxx*)
20943         # FIXME: insert proper C++ library support
20944         ld_shlibs_CXX=no
20945         ;;
20946 @@ -10425,7 +12056,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20947         ;;
20948      esac
20949      ;;
20950 -  netbsd*)
20951 +  netbsd* | netbsdelf*-gnu)
20952      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20953        archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20954        wlarc=
20955 @@ -10436,9 +12067,29 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20956      # Workaround some broken pre-1.5 toolchains
20957      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20958      ;;
20959 +  openbsd2*)
20960 +    # C++ shared libraries are fairly broken
20961 +    ld_shlibs_CXX=no
20962 +    ;;
20963 +  openbsd*)
20964 +    if test -f /usr/libexec/ld.so; then
20965 +      hardcode_direct_CXX=yes
20966 +      hardcode_shlibpath_var_CXX=no
20967 +      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20968 +      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20969 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20970 +       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20971 +       export_dynamic_flag_spec_CXX='${wl}-E'
20972 +       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20973 +      fi
20974 +      output_verbose_link_cmd='echo'
20975 +    else
20976 +      ld_shlibs_CXX=no
20977 +    fi
20978 +    ;;
20979    osf3*)
20980      case $cc_basename in
20981 -      KCC)
20982 +      KCC*)
20983         # Kuck and Associates, Inc. (KAI) C++ Compiler
20984  
20985         # KCC will only create a shared library if the output file
20986 @@ -10454,14 +12105,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20987         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20988  
20989         ;;
20990 -      RCC)
20991 +      RCC*)
20992         # Rational C++ 2.4.1
20993         # FIXME: insert proper C++ library support
20994         ld_shlibs_CXX=no
20995         ;;
20996 -      cxx)
20997 +      cxx*)
20998         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20999 -       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'
21000 +       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'
21001  
21002         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21003         hardcode_libdir_separator_CXX=:
21004 @@ -10479,7 +12130,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21005        *)
21006         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21007           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21008 -         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'
21009 +         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'
21010  
21011           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21012           hardcode_libdir_separator_CXX=:
21013 @@ -10498,7 +12149,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21014      ;;
21015    osf4* | osf5*)
21016      case $cc_basename in
21017 -      KCC)
21018 +      KCC*)
21019         # Kuck and Associates, Inc. (KAI) C++ Compiler
21020  
21021         # KCC will only create a shared library if the output file
21022 @@ -10513,17 +12164,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21023         # the KAI C++ compiler.
21024         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21025         ;;
21026 -      RCC)
21027 +      RCC*)
21028         # Rational C++ 2.4.1
21029         # FIXME: insert proper C++ library support
21030         ld_shlibs_CXX=no
21031         ;;
21032 -      cxx)
21033 +      cxx*)
21034         allow_undefined_flag_CXX=' -expect_unresolved \*'
21035 -       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'
21036 +       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'
21037         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21038           echo "-hidden">> $lib.exp~
21039 -         $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~
21040 +         $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~
21041           $rm $lib.exp'
21042  
21043         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21044 @@ -10542,7 +12193,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21045        *)
21046         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21047           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21048 -        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'
21049 +        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'
21050  
21051           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21052           hardcode_libdir_separator_CXX=:
21053 @@ -10563,27 +12214,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21054      # FIXME: insert proper C++ library support
21055      ld_shlibs_CXX=no
21056      ;;
21057 -  sco*)
21058 -    archive_cmds_need_lc_CXX=no
21059 -    case $cc_basename in
21060 -      CC)
21061 -       # FIXME: insert proper C++ library support
21062 -       ld_shlibs_CXX=no
21063 -       ;;
21064 -      *)
21065 -       # FIXME: insert proper C++ library support
21066 -       ld_shlibs_CXX=no
21067 -       ;;
21068 -    esac
21069 -    ;;
21070    sunos4*)
21071      case $cc_basename in
21072 -      CC)
21073 +      CC*)
21074         # Sun C++ 4.x
21075         # FIXME: insert proper C++ library support
21076         ld_shlibs_CXX=no
21077         ;;
21078 -      lcc)
21079 +      lcc*)
21080         # Lucid
21081         # FIXME: insert proper C++ library support
21082         ld_shlibs_CXX=no
21083 @@ -10596,36 +12234,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21084      ;;
21085    solaris*)
21086      case $cc_basename in
21087 -      CC)
21088 +      CC*)
21089         # Sun C++ 4.2, 5.x and Centerline C++
21090 +        archive_cmds_need_lc_CXX=yes
21091         no_undefined_flag_CXX=' -zdefs'
21092 -       archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21093 +       archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21094         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21095 -       $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'
21096 +       $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'
21097  
21098         hardcode_libdir_flag_spec_CXX='-R$libdir'
21099         hardcode_shlibpath_var_CXX=no
21100         case $host_os in
21101 -         solaris2.0-5 | solaris2.0-5.*) ;;
21102 +         solaris2.[0-5] | solaris2.[0-5].*) ;;
21103           *)
21104 -           # The C++ compiler is used as linker so we must use $wl
21105 -           # flag to pass the commands to the underlying system
21106 -           # linker.
21107 +           # The compiler driver will combine and reorder linker options,
21108 +           # but understands `-z linker_flag'.
21109             # Supported since Solaris 2.6 (maybe 2.5.1?)
21110 -           whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21111 +           whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21112             ;;
21113         esac
21114         link_all_deplibs_CXX=yes
21115  
21116 -       # Commands to make compiler produce verbose output that lists
21117 -       # what "hidden" libraries, object files and flags are used when
21118 -       # linking a shared library.
21119 -       #
21120 -       # There doesn't appear to be a way to prevent this compiler from
21121 -       # explicitly linking system object files so we need to strip them
21122 -       # from the output so that they don't get included in the library
21123 -       # dependencies.
21124 -       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'
21125 +       output_verbose_link_cmd='echo'
21126  
21127         # Archives containing C++ object files must be created using
21128         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21129 @@ -10633,7 +12263,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21130         # in the archive.
21131         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21132         ;;
21133 -      gcx)
21134 +      gcx*)
21135         # Green Hills C++ Compiler
21136         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21137  
21138 @@ -10667,16 +12297,73 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21139           fi
21140  
21141           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21142 +         case $host_os in
21143 +         solaris2.[0-5] | solaris2.[0-5].*) ;;
21144 +         *)
21145 +           whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21146 +           ;;
21147 +         esac
21148         fi
21149         ;;
21150      esac
21151      ;;
21152 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21153 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21154 +    no_undefined_flag_CXX='${wl}-z,text'
21155 +    archive_cmds_need_lc_CXX=no
21156 +    hardcode_shlibpath_var_CXX=no
21157 +    runpath_var='LD_RUN_PATH'
21158 +
21159 +    case $cc_basename in
21160 +      CC*)
21161 +       archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21162 +       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21163 +       ;;
21164 +      *)
21165 +       archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21166 +       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21167 +       ;;
21168 +    esac
21169 +    ;;
21170 +  sysv5* | sco3.2v5* | sco5v6*)
21171 +    # Note: We can NOT use -z defs as we might desire, because we do not
21172 +    # link with -lc, and that would cause any symbols used from libc to
21173 +    # always be unresolved, which means just about no library would
21174 +    # ever link correctly.  If we're not using GNU ld we use -z text
21175 +    # though, which does catch some bad symbols but isn't as heavy-handed
21176 +    # as -z defs.
21177 +    # For security reasons, it is highly recommended that you always
21178 +    # use absolute paths for naming shared libraries, and exclude the
21179 +    # DT_RUNPATH tag from executables and libraries.  But doing so
21180 +    # requires that you compile everything twice, which is a pain.
21181 +    # So that behaviour is only enabled if SCOABSPATH is set to a
21182 +    # non-empty value in the environment.  Most likely only useful for
21183 +    # creating official distributions of packages.
21184 +    # This is a hack until libtool officially supports absolute path
21185 +    # names for shared libraries.
21186 +    no_undefined_flag_CXX='${wl}-z,text'
21187 +    allow_undefined_flag_CXX='${wl}-z,nodefs'
21188      archive_cmds_need_lc_CXX=no
21189 +    hardcode_shlibpath_var_CXX=no
21190 +    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21191 +    hardcode_libdir_separator_CXX=':'
21192 +    link_all_deplibs_CXX=yes
21193 +    export_dynamic_flag_spec_CXX='${wl}-Bexport'
21194 +    runpath_var='LD_RUN_PATH'
21195 +
21196 +    case $cc_basename in
21197 +      CC*)
21198 +       archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21199 +       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21200 +       ;;
21201 +      *)
21202 +       archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21203 +       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21204 +       ;;
21205 +    esac
21206      ;;
21207    tandem*)
21208      case $cc_basename in
21209 -      NCC)
21210 +      NCC*)
21211         # NonStop-UX NCC 3.20
21212         # FIXME: insert proper C++ library support
21213         ld_shlibs_CXX=no
21214 @@ -10696,14 +12383,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21215      ld_shlibs_CXX=no
21216      ;;
21217  esac
21218 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21219 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
21220 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21221 +$as_echo "$ld_shlibs_CXX" >&6; }
21222  test "$ld_shlibs_CXX" = no && can_build_shared=no
21223  
21224  GCC_CXX="$GXX"
21225  LD_CXX="$LD"
21226  
21227 -
21228  cat > conftest.$ac_ext <<EOF
21229  class Foo
21230  {
21231 @@ -10717,7 +12403,7 @@ EOF
21232  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233    (eval $ac_compile) 2>&5
21234    ac_status=$?
21235 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237    (exit $ac_status); }; then
21238    # Parse the compiler output and extract the necessary
21239    # objects, libraries and library flags.
21240 @@ -10729,7 +12415,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21241    # The `*' in the case matches for architectures that use `case' in
21242    # $output_verbose_cmd can trigger glob expansion during the loop
21243    # eval without this substitution.
21244 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
21245 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21246  
21247    for p in `eval $output_verbose_link_cmd`; do
21248      case $p in
21249 @@ -10805,6 +12491,66 @@ fi
21250  
21251  $rm -f confest.$objext
21252  
21253 +compiler_lib_search_dirs_CXX=
21254 +if test -n "$compiler_lib_search_path_CXX"; then
21255 +  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21256 +fi
21257 +
21258 +# PORTME: override above test on systems where it is broken
21259 +case $host_os in
21260 +interix[3-9]*)
21261 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
21262 +  # hack all around it, let's just trust "g++" to DTRT.
21263 +  predep_objects_CXX=
21264 +  postdep_objects_CXX=
21265 +  postdeps_CXX=
21266 +  ;;
21267 +
21268 +linux*)
21269 +  case `$CC -V 2>&1 | sed 5q` in
21270 +  *Sun\ C*)
21271 +    # Sun C++ 5.9
21272 +    #
21273 +    # The more standards-conforming stlport4 library is
21274 +    # incompatible with the Cstd library. Avoid specifying
21275 +    # it if it's in CXXFLAGS. Ignore libCrun as
21276 +    # -library=stlport4 depends on it.
21277 +    case " $CXX $CXXFLAGS " in
21278 +    *" -library=stlport4 "*)
21279 +      solaris_use_stlport4=yes
21280 +      ;;
21281 +    esac
21282 +    if test "$solaris_use_stlport4" != yes; then
21283 +      postdeps_CXX='-library=Cstd -library=Crun'
21284 +    fi
21285 +    ;;
21286 +  esac
21287 +  ;;
21288 +
21289 +solaris*)
21290 +  case $cc_basename in
21291 +  CC*)
21292 +    # The more standards-conforming stlport4 library is
21293 +    # incompatible with the Cstd library. Avoid specifying
21294 +    # it if it's in CXXFLAGS. Ignore libCrun as
21295 +    # -library=stlport4 depends on it.
21296 +    case " $CXX $CXXFLAGS " in
21297 +    *" -library=stlport4 "*)
21298 +      solaris_use_stlport4=yes
21299 +      ;;
21300 +    esac
21301 +
21302 +    # Adding this requires a known-good setup of shared libraries for
21303 +    # Sun compiler versions before 5.6, else PIC objects from an old
21304 +    # archive will be linked into the output, leading to subtle bugs.
21305 +    if test "$solaris_use_stlport4" != yes; then
21306 +      postdeps_CXX='-library=Cstd -library=Crun'
21307 +    fi
21308 +    ;;
21309 +  esac
21310 +  ;;
21311 +esac
21312 +
21313  case " $postdeps_CXX " in
21314  *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21315  esac
21316 @@ -10813,8 +12559,8 @@ lt_prog_compiler_wl_CXX=
21317  lt_prog_compiler_pic_CXX=
21318  lt_prog_compiler_static_CXX=
21319  
21320 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21321 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21322 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21323 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21324  
21325    # C++ specific cases for pic, static, wl, etc.
21326    if test "$GXX" = yes; then
21327 @@ -10835,12 +12581,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21328        # like `-m68040'.
21329        lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21330        ;;
21331 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21332 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21333        # PIC is the default for these OSes.
21334        ;;
21335 -    mingw* | os2* | pw32*)
21336 +    mingw* | cygwin* | os2* | pw32*)
21337        # This hack is so that the source file can tell whether it is being
21338        # built for inclusion in a dll (and should export symbols for example).
21339 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21340 +      # (--disable-auto-import) libraries
21341        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21342        ;;
21343      darwin* | rhapsody*)
21344 @@ -10852,6 +12600,10 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21345        # DJGPP does not support shared libraries at all
21346        lt_prog_compiler_pic_CXX=
21347        ;;
21348 +    interix[3-9]*)
21349 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21350 +      # Instead, we relocate shared libraries at runtime.
21351 +      ;;
21352      sysv4*MP*)
21353        if test -d /usr/nec; then
21354         lt_prog_compiler_pic_CXX=-Kconform_pic
21355 @@ -10860,7 +12612,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21356      hpux*)
21357        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21358        # not for PA HP-UX.
21359 -      case "$host_cpu" in
21360 +      case $host_cpu in
21361        hppa*64*|ia64*)
21362         ;;
21363        *)
21364 @@ -10874,7 +12626,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21365      esac
21366    else
21367      case $host_os in
21368 -      aix4* | aix5*)
21369 +      aix[4-9]*)
21370         # All AIX code is PIC.
21371         if test "$host_cpu" = ia64; then
21372           # AIX 5 now supports IA64 processor
21373 @@ -10885,18 +12637,28 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21374         ;;
21375        chorus*)
21376         case $cc_basename in
21377 -       cxch68)
21378 +       cxch68*)
21379           # Green Hills C++ Compiler
21380           # _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"
21381           ;;
21382         esac
21383         ;;
21384 +       darwin*)
21385 +         # PIC is the default on this platform
21386 +         # Common symbols not allowed in MH_DYLIB files
21387 +         case $cc_basename in
21388 +           xlc*)
21389 +           lt_prog_compiler_pic_CXX='-qnocommon'
21390 +           lt_prog_compiler_wl_CXX='-Wl,'
21391 +           ;;
21392 +         esac
21393 +       ;;
21394        dgux*)
21395         case $cc_basename in
21396 -         ec++)
21397 +         ec++*)
21398             lt_prog_compiler_pic_CXX='-KPIC'
21399             ;;
21400 -         ghcx)
21401 +         ghcx*)
21402             # Green Hills C++ Compiler
21403             lt_prog_compiler_pic_CXX='-pic'
21404             ;;
21405 @@ -10904,22 +12666,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21406             ;;
21407         esac
21408         ;;
21409 -      freebsd* | kfreebsd*-gnu)
21410 +      freebsd* | dragonfly*)
21411         # FreeBSD uses GNU C++
21412         ;;
21413        hpux9* | hpux10* | hpux11*)
21414         case $cc_basename in
21415 -         CC)
21416 +         CC*)
21417             lt_prog_compiler_wl_CXX='-Wl,'
21418 -           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21419 +           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21420             if test "$host_cpu" != ia64; then
21421               lt_prog_compiler_pic_CXX='+Z'
21422             fi
21423             ;;
21424 -         aCC)
21425 +         aCC*)
21426             lt_prog_compiler_wl_CXX='-Wl,'
21427 -           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21428 -           case "$host_cpu" in
21429 +           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21430 +           case $host_cpu in
21431             hppa*64*|ia64*)
21432               # +Z the default
21433               ;;
21434 @@ -10932,9 +12694,13 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21435             ;;
21436         esac
21437         ;;
21438 +      interix*)
21439 +       # This is c89, which is MS Visual C++ (no shared libs)
21440 +       # Anyone wants to do a port?
21441 +       ;;
21442        irix5* | irix6* | nonstopux*)
21443         case $cc_basename in
21444 -         CC)
21445 +         CC*)
21446             lt_prog_compiler_wl_CXX='-Wl,'
21447             lt_prog_compiler_static_CXX='-non_shared'
21448             # CC pic flag -KPIC is the default.
21449 @@ -10943,20 +12709,26 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21450             ;;
21451         esac
21452         ;;
21453 -      linux*)
21454 +      linux* | k*bsd*-gnu)
21455         case $cc_basename in
21456 -         KCC)
21457 +         KCC*)
21458             # KAI C++ Compiler
21459             lt_prog_compiler_wl_CXX='--backend -Wl,'
21460             lt_prog_compiler_pic_CXX='-fPIC'
21461             ;;
21462 -         icpc)
21463 +         icpc* | ecpc*)
21464             # Intel C++
21465             lt_prog_compiler_wl_CXX='-Wl,'
21466             lt_prog_compiler_pic_CXX='-KPIC'
21467             lt_prog_compiler_static_CXX='-static'
21468             ;;
21469 -         cxx)
21470 +         pgCC* | pgcpp*)
21471 +           # Portland Group C++ compiler.
21472 +           lt_prog_compiler_wl_CXX='-Wl,'
21473 +           lt_prog_compiler_pic_CXX='-fpic'
21474 +           lt_prog_compiler_static_CXX='-Bstatic'
21475 +           ;;
21476 +         cxx*)
21477             # Compaq C++
21478             # Make sure the PIC flag is empty.  It appears that all Alpha
21479             # Linux and Compaq Tru64 Unix objects are PIC.
21480 @@ -10964,6 +12736,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21481             lt_prog_compiler_static_CXX='-non_shared'
21482             ;;
21483           *)
21484 +           case `$CC -V 2>&1 | sed 5q` in
21485 +           *Sun\ C*)
21486 +             # Sun C++ 5.9
21487 +             lt_prog_compiler_pic_CXX='-KPIC'
21488 +             lt_prog_compiler_static_CXX='-Bstatic'
21489 +             lt_prog_compiler_wl_CXX='-Qoption ld '
21490 +             ;;
21491 +           esac
21492             ;;
21493         esac
21494         ;;
21495 @@ -10973,25 +12753,25 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21496         ;;
21497        mvs*)
21498         case $cc_basename in
21499 -         cxx)
21500 +         cxx*)
21501             lt_prog_compiler_pic_CXX='-W c,exportall'
21502             ;;
21503           *)
21504             ;;
21505         esac
21506         ;;
21507 -      netbsd*)
21508 +      netbsd* | netbsdelf*-gnu)
21509         ;;
21510        osf3* | osf4* | osf5*)
21511         case $cc_basename in
21512 -         KCC)
21513 +         KCC*)
21514             lt_prog_compiler_wl_CXX='--backend -Wl,'
21515             ;;
21516 -         RCC)
21517 +         RCC*)
21518             # Rational C++ 2.4.1
21519             lt_prog_compiler_pic_CXX='-pic'
21520             ;;
21521 -         cxx)
21522 +         cxx*)
21523             # Digital/Compaq C++
21524             lt_prog_compiler_wl_CXX='-Wl,'
21525             # Make sure the PIC flag is empty.  It appears that all Alpha
21526 @@ -11005,24 +12785,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21527         ;;
21528        psos*)
21529         ;;
21530 -      sco*)
21531 -       case $cc_basename in
21532 -         CC)
21533 -           lt_prog_compiler_pic_CXX='-fPIC'
21534 -           ;;
21535 -         *)
21536 -           ;;
21537 -       esac
21538 -       ;;
21539        solaris*)
21540         case $cc_basename in
21541 -         CC)
21542 +         CC*)
21543             # Sun C++ 4.2, 5.x and Centerline C++
21544             lt_prog_compiler_pic_CXX='-KPIC'
21545             lt_prog_compiler_static_CXX='-Bstatic'
21546             lt_prog_compiler_wl_CXX='-Qoption ld '
21547             ;;
21548 -         gcx)
21549 +         gcx*)
21550             # Green Hills C++ Compiler
21551             lt_prog_compiler_pic_CXX='-PIC'
21552             ;;
21553 @@ -11032,12 +12803,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21554         ;;
21555        sunos4*)
21556         case $cc_basename in
21557 -         CC)
21558 +         CC*)
21559             # Sun C++ 4.x
21560             lt_prog_compiler_pic_CXX='-pic'
21561             lt_prog_compiler_static_CXX='-Bstatic'
21562             ;;
21563 -         lcc)
21564 +         lcc*)
21565             # Lucid
21566             lt_prog_compiler_pic_CXX='-pic'
21567             ;;
21568 @@ -11047,7 +12818,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21569         ;;
21570        tandem*)
21571         case $cc_basename in
21572 -         NCC)
21573 +         NCC*)
21574             # NonStop-UX NCC 3.20
21575             lt_prog_compiler_pic_CXX='-KPIC'
21576             ;;
21577 @@ -11055,7 +12826,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21578             ;;
21579         esac
21580         ;;
21581 -      unixware*)
21582 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21583 +       case $cc_basename in
21584 +         CC*)
21585 +           lt_prog_compiler_wl_CXX='-Wl,'
21586 +           lt_prog_compiler_pic_CXX='-KPIC'
21587 +           lt_prog_compiler_static_CXX='-Bstatic'
21588 +           ;;
21589 +       esac
21590         ;;
21591        vxworks*)
21592         ;;
21593 @@ -11065,22 +12843,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21594      esac
21595    fi
21596  
21597 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
21598 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
21599 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
21600 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21601  
21602  #
21603  # Check to make sure the PIC flag actually works.
21604  #
21605  if test -n "$lt_prog_compiler_pic_CXX"; then
21606  
21607 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21608 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
21609 -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
21610 -  echo $ECHO_N "(cached) $ECHO_C" >&6
21611 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21612 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21613 +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
21614 +  $as_echo_n "(cached) " >&6
21615  else
21616 -  lt_prog_compiler_pic_works_CXX=no
21617 +  lt_cv_prog_compiler_pic_works_CXX=no
21618    ac_outfile=conftest.$ac_objext
21619 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21620 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21621     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21622     # Insert the option either (1) after the last *FLAGS variable, or
21623     # (2) before a word containing "conftest.", or (3) at the end.
21624 @@ -11088,28 +12866,30 @@ else
21625     # with a dollar sign (not a hyphen), so the echo should work correctly.
21626     # The option is referenced via a variable to avoid confusing sed.
21627     lt_compile=`echo "$ac_compile" | $SED \
21628 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21629 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21630     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21631     -e 's:$: $lt_compiler_flag:'`
21632 -   (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
21633 +   (eval echo "\"\$as_me:12872: $lt_compile\"" >&5)
21634     (eval "$lt_compile" 2>conftest.err)
21635     ac_status=$?
21636     cat conftest.err >&5
21637 -   echo "$as_me:11098: \$? = $ac_status" >&5
21638 +   echo "$as_me:12876: \$? = $ac_status" >&5
21639     if (exit $ac_status) && test -s "$ac_outfile"; then
21640       # The compiler can only warn and ignore the option if not recognized
21641 -     # So say no if there are warnings
21642 -     if test ! -s conftest.err; then
21643 -       lt_prog_compiler_pic_works_CXX=yes
21644 +     # So say no if there are warnings other than the usual output.
21645 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21646 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21647 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21648 +       lt_cv_prog_compiler_pic_works_CXX=yes
21649       fi
21650     fi
21651     $rm conftest*
21652  
21653  fi
21654 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
21655 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
21656 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21657 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21658  
21659 -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
21660 +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21661      case $lt_prog_compiler_pic_CXX in
21662       "" | " "*) ;;
21663       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21664 @@ -11120,7 +12900,7 @@ else
21665  fi
21666  
21667  fi
21668 -case "$host_os" in
21669 +case $host_os in
21670    # For platforms which do not support PIC, -DPIC is meaningless:
21671    *djgpp*)
21672      lt_prog_compiler_pic_CXX=
21673 @@ -11130,17 +12910,59 @@ case "$host_os" in
21674      ;;
21675  esac
21676  
21677 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21678 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21679 +#
21680 +# Check to make sure the static flag actually works.
21681 +#
21682 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21683 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21684 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21685 +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
21686 +  $as_echo_n "(cached) " >&6
21687 +else
21688 +  lt_cv_prog_compiler_static_works_CXX=no
21689 +   save_LDFLAGS="$LDFLAGS"
21690 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21691 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21692 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21693 +     # The linker can only warn and ignore the option if not recognized
21694 +     # So say no if there are warnings
21695 +     if test -s conftest.err; then
21696 +       # Append any errors to the config.log.
21697 +       cat conftest.err 1>&5
21698 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21699 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21700 +       if diff conftest.exp conftest.er2 >/dev/null; then
21701 +         lt_cv_prog_compiler_static_works_CXX=yes
21702 +       fi
21703 +     else
21704 +       lt_cv_prog_compiler_static_works_CXX=yes
21705 +     fi
21706 +   fi
21707 +   $rm -r conftest*
21708 +   LDFLAGS="$save_LDFLAGS"
21709 +
21710 +fi
21711 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21712 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21713 +
21714 +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21715 +    :
21716 +else
21717 +    lt_prog_compiler_static_CXX=
21718 +fi
21719 +
21720 +
21721 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21722 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21723  if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
21724 -  echo $ECHO_N "(cached) $ECHO_C" >&6
21725 +  $as_echo_n "(cached) " >&6
21726  else
21727    lt_cv_prog_compiler_c_o_CXX=no
21728     $rm -r conftest 2>/dev/null
21729     mkdir conftest
21730     cd conftest
21731     mkdir out
21732 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21733 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21734  
21735     lt_compiler_flag="-o out/conftest2.$ac_objext"
21736     # Insert the option either (1) after the last *FLAGS variable, or
21737 @@ -11148,23 +12970,25 @@ else
21738     # Note that $ac_compile itself does not contain backslashes and begins
21739     # with a dollar sign (not a hyphen), so the echo should work correctly.
21740     lt_compile=`echo "$ac_compile" | $SED \
21741 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21742 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21743     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21744     -e 's:$: $lt_compiler_flag:'`
21745 -   (eval echo "\"\$as_me:11154: $lt_compile\"" >&5)
21746 +   (eval echo "\"\$as_me:12976: $lt_compile\"" >&5)
21747     (eval "$lt_compile" 2>out/conftest.err)
21748     ac_status=$?
21749     cat out/conftest.err >&5
21750 -   echo "$as_me:11158: \$? = $ac_status" >&5
21751 +   echo "$as_me:12980: \$? = $ac_status" >&5
21752     if (exit $ac_status) && test -s out/conftest2.$ac_objext
21753     then
21754       # The compiler can only warn and ignore the option if not recognized
21755       # So say no if there are warnings
21756 -     if test ! -s out/conftest.err; then
21757 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21758 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21759 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21760         lt_cv_prog_compiler_c_o_CXX=yes
21761       fi
21762     fi
21763 -   chmod u+w .
21764 +   chmod u+w . 2>&5
21765     $rm conftest*
21766     # SGI C++ compiler will create directory out/ii_files/ for
21767     # template instantiation
21768 @@ -11175,38 +12999,38 @@ else
21769     $rm conftest*
21770  
21771  fi
21772 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21773 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
21774 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21775 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21776  
21777  
21778  hard_links="nottested"
21779  if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21780    # do not overwrite the value of need_locks provided by the user
21781 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21782 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21783 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21784 +$as_echo_n "checking if we can lock with hard links... " >&6; }
21785    hard_links=yes
21786    $rm conftest*
21787    ln conftest.a conftest.b 2>/dev/null && hard_links=no
21788    touch conftest.a
21789    ln conftest.a conftest.b 2>&5 || hard_links=no
21790    ln conftest.a conftest.b 2>/dev/null && hard_links=no
21791 -  echo "$as_me:$LINENO: result: $hard_links" >&5
21792 -echo "${ECHO_T}$hard_links" >&6
21793 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
21794 +$as_echo "$hard_links" >&6; }
21795    if test "$hard_links" = no; then
21796 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21797 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21798 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21799 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21800      need_locks=warn
21801    fi
21802  else
21803    need_locks=no
21804  fi
21805  
21806 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21807 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21808 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21809 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21810  
21811    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21812    case $host_os in
21813 -  aix4* | aix5*)
21814 +  aix[4-9]*)
21815      # If we're using GNU nm, then we don't want the "-C" option.
21816      # -C means demangle to AIX nm, but means don't demangle with GNU nm
21817      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21818 @@ -11219,22 +13043,21 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
21819      export_symbols_cmds_CXX="$ltdll_cmds"
21820    ;;
21821    cygwin* | mingw*)
21822 -    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21823 +    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'
21824 +  ;;
21825 +  linux* | k*bsd*-gnu)
21826 +    link_all_deplibs_CXX=no
21827    ;;
21828    *)
21829      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21830    ;;
21831    esac
21832 +  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21833  
21834 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21835 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
21836 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21837 +$as_echo "$ld_shlibs_CXX" >&6; }
21838  test "$ld_shlibs_CXX" = no && can_build_shared=no
21839  
21840 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21841 -if test "$GCC" = yes; then
21842 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21843 -fi
21844 -
21845  #
21846  # Do we need to explicitly link libc?
21847  #
21848 @@ -11252,21 +13075,22 @@ x|xyes)
21849        # Test whether the compiler implicitly links with -lc since on some
21850        # systems, -lgcc has to come before -lc. If gcc already passes -lc
21851        # to ld, don't add -lc before -lgcc.
21852 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21853 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21854 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21855 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21856        $rm conftest*
21857 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21858 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21859  
21860        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21861    (eval $ac_compile) 2>&5
21862    ac_status=$?
21863 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865    (exit $ac_status); } 2>conftest.err; then
21866          soname=conftest
21867          lib=conftest
21868          libobjs=conftest.$ac_objext
21869          deplibs=
21870          wl=$lt_prog_compiler_wl_CXX
21871 +       pic_flag=$lt_prog_compiler_pic_CXX
21872          compiler_flags=-v
21873          linker_flags=-v
21874          verstring=
21875 @@ -11277,7 +13101,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
21876          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21877    (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21878    ac_status=$?
21879 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881    (exit $ac_status); }
21882          then
21883           archive_cmds_need_lc_CXX=no
21884 @@ -11289,16 +13113,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
21885          cat conftest.err 1>&5
21886        fi
21887        $rm conftest*
21888 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
21889 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
21890 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
21891 +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
21892        ;;
21893      esac
21894    fi
21895    ;;
21896  esac
21897  
21898 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21899 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21900 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21901 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
21902  library_names_spec=
21903  libname_spec='lib$name'
21904  soname_spec=
21905 @@ -11312,20 +13136,7 @@ shlibpath_overrides_runpath=unknown
21906  version_type=none
21907  dynamic_linker="$host_os ld.so"
21908  sys_lib_dlsearch_path_spec="/lib /usr/lib"
21909 -if test "$GCC" = yes; then
21910 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21911 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21912 -    # if the path contains ";" then we assume it to be the separator
21913 -    # otherwise default to the standard path separator (i.e. ":") - it is
21914 -    # assumed that no part of a normal pathname contains ";" but that should
21915 -    # okay in the real world where ";" in dirpaths is itself problematic.
21916 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21917 -  else
21918 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21919 -  fi
21920 -else
21921 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21922 -fi
21923 +
21924  need_lib_prefix=unknown
21925  hardcode_into_libs=no
21926  
21927 @@ -11343,7 +13154,7 @@ aix3*)
21928    soname_spec='${libname}${release}${shared_ext}$major'
21929    ;;
21930  
21931 -aix4* | aix5*)
21932 +aix[4-9]*)
21933    version_type=linux
21934    need_lib_prefix=no
21935    need_version=no
21936 @@ -11399,7 +13210,7 @@ beos*)
21937    shlibpath_var=LIBRARY_PATH
21938    ;;
21939  
21940 -bsdi4*)
21941 +bsdi[45]*)
21942    version_type=linux
21943    need_version=no
21944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21945 @@ -11427,7 +13238,8 @@ cygwin* | mingw* | pw32*)
21946        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21947        dldir=$destdir/`dirname \$dlpath`~
21948        test -d \$dldir || mkdir -p \$dldir~
21949 -      $install_prog $dir/$dlname \$dldir/$dlname'
21950 +      $install_prog $dir/$dlname \$dldir/$dlname~
21951 +      chmod a+x \$dldir/$dlname'
21952      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21953        dlpath=$dir/\$dldll~
21954         $rm \$dlpath'
21955 @@ -11457,7 +13269,7 @@ cygwin* | mingw* | pw32*)
21956        ;;
21957      pw32*)
21958        # pw32 DLLs use 'pw' prefix rather than 'lib'
21959 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21960 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21961        ;;
21962      esac
21963      ;;
21964 @@ -11480,13 +13292,8 @@ darwin* | rhapsody*)
21965    soname_spec='${libname}${release}${major}$shared_ext'
21966    shlibpath_overrides_runpath=yes
21967    shlibpath_var=DYLD_LIBRARY_PATH
21968 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21969 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21970 -  if test "$GCC" = yes; then
21971 -    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"`
21972 -  else
21973 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21974 -  fi
21975 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21976 +
21977    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21978    ;;
21979  
21980 @@ -11503,20 +13310,17 @@ freebsd1*)
21981    dynamic_linker=no
21982    ;;
21983  
21984 -kfreebsd*-gnu)
21985 -  version_type=linux
21986 -  need_lib_prefix=no
21987 -  need_version=no
21988 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21989 -  soname_spec='${libname}${release}${shared_ext}$major'
21990 -  shlibpath_var=LD_LIBRARY_PATH
21991 -  shlibpath_overrides_runpath=no
21992 -  hardcode_into_libs=yes
21993 -  dynamic_linker='GNU ld.so'
21994 -  ;;
21995 -
21996 -freebsd*)
21997 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21998 +freebsd* | dragonfly*)
21999 +  # DragonFly does not have aout.  When/if they implement a new
22000 +  # versioning mechanism, adjust this.
22001 +  if test -x /usr/bin/objformat; then
22002 +    objformat=`/usr/bin/objformat`
22003 +  else
22004 +    case $host_os in
22005 +    freebsd[123]*) objformat=aout ;;
22006 +    *) objformat=elf ;;
22007 +    esac
22008 +  fi
22009    version_type=freebsd-$objformat
22010    case $version_type in
22011      freebsd-elf*)
22012 @@ -11534,14 +13338,19 @@ freebsd*)
22013    freebsd2*)
22014      shlibpath_overrides_runpath=yes
22015      ;;
22016 -  freebsd3.01* | freebsdelf3.01*)
22017 +  freebsd3.[01]* | freebsdelf3.[01]*)
22018      shlibpath_overrides_runpath=yes
22019      hardcode_into_libs=yes
22020      ;;
22021 -  *) # from 3.2 on
22022 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22023 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22024      shlibpath_overrides_runpath=no
22025      hardcode_into_libs=yes
22026      ;;
22027 +  *) # from 4.6 on, and DragonFly
22028 +    shlibpath_overrides_runpath=yes
22029 +    hardcode_into_libs=yes
22030 +    ;;
22031    esac
22032    ;;
22033  
22034 @@ -11561,7 +13370,7 @@ hpux9* | hpux10* | hpux11*)
22035    version_type=sunos
22036    need_lib_prefix=no
22037    need_version=no
22038 -  case "$host_cpu" in
22039 +  case $host_cpu in
22040    ia64*)
22041      shrext_cmds='.so'
22042      hardcode_into_libs=yes
22043 @@ -11601,6 +13410,18 @@ hpux9* | hpux10* | hpux11*)
22044    postinstall_cmds='chmod 555 $lib'
22045    ;;
22046  
22047 +interix[3-9]*)
22048 +  version_type=linux
22049 +  need_lib_prefix=no
22050 +  need_version=no
22051 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22052 +  soname_spec='${libname}${release}${shared_ext}$major'
22053 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22054 +  shlibpath_var=LD_LIBRARY_PATH
22055 +  shlibpath_overrides_runpath=no
22056 +  hardcode_into_libs=yes
22057 +  ;;
22058 +
22059  irix5* | irix6* | nonstopux*)
22060    case $host_os in
22061      nonstopux*) version_type=nonstopux ;;
22062 @@ -11644,7 +13465,7 @@ linux*oldld* | linux*aout* | linux*coff*)
22063    ;;
22064  
22065  # This must be Linux ELF.
22066 -linux*)
22067 +linux* | k*bsd*-gnu)
22068    version_type=linux
22069    need_lib_prefix=no
22070    need_version=no
22071 @@ -11658,31 +13479,10 @@ linux*)
22072    # before this can be enabled.
22073    hardcode_into_libs=yes
22074  
22075 -  # find out which ABI we are using
22076 -  libsuff=
22077 -  case "$host_cpu" in
22078 -  x86_64*|s390x*|powerpc64*)
22079 -    echo '#line 11665 "configure"' > conftest.$ac_ext
22080 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22081 -  (eval $ac_compile) 2>&5
22082 -  ac_status=$?
22083 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 -  (exit $ac_status); }; then
22085 -      case `/usr/bin/file conftest.$ac_objext` in
22086 -      *64-bit*)
22087 -        libsuff=64
22088 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22089 -        ;;
22090 -      esac
22091 -    fi
22092 -    rm -rf conftest*
22093 -    ;;
22094 -  esac
22095 -
22096    # Append ld.so.conf contents to the search path
22097    if test -f /etc/ld.so.conf; then
22098 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22099 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22100 +    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' ' '`
22101 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22102    fi
22103  
22104    # We used to test for /lib/ld.so.1 and disable shared libraries on
22105 @@ -11694,7 +13494,7 @@ linux*)
22106    dynamic_linker='GNU/Linux ld.so'
22107    ;;
22108  
22109 -knetbsd*-gnu)
22110 +netbsdelf*-gnu)
22111    version_type=linux
22112    need_lib_prefix=no
22113    need_version=no
22114 @@ -11703,7 +13503,7 @@ knetbsd*-gnu)
22115    shlibpath_var=LD_LIBRARY_PATH
22116    shlibpath_overrides_runpath=no
22117    hardcode_into_libs=yes
22118 -  dynamic_linker='GNU ld.so'
22119 +  dynamic_linker='NetBSD ld.elf_so'
22120    ;;
22121  
22122  netbsd*)
22123 @@ -11743,8 +13543,13 @@ nto-qnx*)
22124  
22125  openbsd*)
22126    version_type=sunos
22127 +  sys_lib_dlsearch_path_spec="/usr/lib"
22128    need_lib_prefix=no
22129 -  need_version=yes
22130 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22131 +  case $host_os in
22132 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22133 +    *)                         need_version=no  ;;
22134 +  esac
22135    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22136    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22137    shlibpath_var=LD_LIBRARY_PATH
22138 @@ -11782,11 +13587,8 @@ osf3* | osf4* | osf5*)
22139    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22140    ;;
22141  
22142 -sco3.2v5*)
22143 -  version_type=osf
22144 -  soname_spec='${libname}${release}${shared_ext}$major'
22145 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22146 -  shlibpath_var=LD_LIBRARY_PATH
22147 +rdos*)
22148 +  dynamic_linker=no
22149    ;;
22150  
22151  solaris*)
22152 @@ -11814,7 +13616,7 @@ sunos4*)
22153    need_version=yes
22154    ;;
22155  
22156 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22157 +sysv4 | sysv4.3*)
22158    version_type=linux
22159    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22160    soname_spec='${libname}${release}${shared_ext}$major'
22161 @@ -11847,6 +13649,29 @@ sysv4*MP*)
22162    fi
22163    ;;
22164  
22165 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22166 +  version_type=freebsd-elf
22167 +  need_lib_prefix=no
22168 +  need_version=no
22169 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22170 +  soname_spec='${libname}${release}${shared_ext}$major'
22171 +  shlibpath_var=LD_LIBRARY_PATH
22172 +  hardcode_into_libs=yes
22173 +  if test "$with_gnu_ld" = yes; then
22174 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22175 +    shlibpath_overrides_runpath=no
22176 +  else
22177 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22178 +    shlibpath_overrides_runpath=yes
22179 +    case $host_os in
22180 +      sco3.2v5*)
22181 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22182 +       ;;
22183 +    esac
22184 +  fi
22185 +  sys_lib_dlsearch_path_spec='/usr/lib'
22186 +  ;;
22187 +
22188  uts4*)
22189    version_type=linux
22190    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22191 @@ -11858,16 +13683,36 @@ uts4*)
22192    dynamic_linker=no
22193    ;;
22194  esac
22195 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22196 -echo "${ECHO_T}$dynamic_linker" >&6
22197 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22198 +$as_echo "$dynamic_linker" >&6; }
22199  test "$dynamic_linker" = no && can_build_shared=no
22200  
22201 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22202 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22203 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22204 +  $as_echo_n "(cached) " >&6
22205 +else
22206 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22207 +fi
22208 +
22209 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22210 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22211 +  $as_echo_n "(cached) " >&6
22212 +else
22213 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22214 +fi
22215 +
22216 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22217 +
22218 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22219 +if test "$GCC" = yes; then
22220 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22221 +fi
22222 +
22223 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22224 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22225  hardcode_action_CXX=
22226  if test -n "$hardcode_libdir_flag_spec_CXX" || \
22227 -   test -n "$runpath_var CXX" || \
22228 -   test "X$hardcode_automatic_CXX"="Xyes" ; then
22229 +   test -n "$runpath_var_CXX" || \
22230 +   test "X$hardcode_automatic_CXX" = "Xyes" ; then
22231  
22232    # We can hardcode non-existant directories.
22233    if test "$hardcode_direct_CXX" != no &&
22234 @@ -11887,8 +13732,8 @@ else
22235    # directories.
22236    hardcode_action_CXX=unsupported
22237  fi
22238 -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22239 -echo "${ECHO_T}$hardcode_action_CXX" >&6
22240 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22241 +$as_echo "$hardcode_action_CXX" >&6; }
22242  
22243  if test "$hardcode_action_CXX" = relink; then
22244    # Fast installation is not supported
22245 @@ -11899,841 +13744,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
22246    enable_fast_install=needless
22247  fi
22248  
22249 -striplib=
22250 -old_striplib=
22251 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22252 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22253 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22254 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22255 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22256 -  echo "$as_me:$LINENO: result: yes" >&5
22257 -echo "${ECHO_T}yes" >&6
22258 -else
22259 -# FIXME - insert some real tests, host_os isn't really good enough
22260 -  case $host_os in
22261 -   darwin*)
22262 -       if test -n "$STRIP" ; then
22263 -         striplib="$STRIP -x"
22264 -         echo "$as_me:$LINENO: result: yes" >&5
22265 -echo "${ECHO_T}yes" >&6
22266 -       else
22267 -  echo "$as_me:$LINENO: result: no" >&5
22268 -echo "${ECHO_T}no" >&6
22269 -fi
22270 -       ;;
22271 -   *)
22272 -  echo "$as_me:$LINENO: result: no" >&5
22273 -echo "${ECHO_T}no" >&6
22274 -    ;;
22275 -  esac
22276 -fi
22277 -
22278 -if test "x$enable_dlopen" != xyes; then
22279 -  enable_dlopen=unknown
22280 -  enable_dlopen_self=unknown
22281 -  enable_dlopen_self_static=unknown
22282 -else
22283 -  lt_cv_dlopen=no
22284 -  lt_cv_dlopen_libs=
22285 -
22286 -  case $host_os in
22287 -  beos*)
22288 -    lt_cv_dlopen="load_add_on"
22289 -    lt_cv_dlopen_libs=
22290 -    lt_cv_dlopen_self=yes
22291 -    ;;
22292 -
22293 -  mingw* | pw32*)
22294 -    lt_cv_dlopen="LoadLibrary"
22295 -    lt_cv_dlopen_libs=
22296 -   ;;
22297 -
22298 -  cygwin*)
22299 -    lt_cv_dlopen="dlopen"
22300 -    lt_cv_dlopen_libs=
22301 -   ;;
22302 -
22303 -  darwin*)
22304 -  # if libdl is installed we need to link against it
22305 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22306 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22307 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22308 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22309 -else
22310 -  ac_check_lib_save_LIBS=$LIBS
22311 -LIBS="-ldl  $LIBS"
22312 -cat >conftest.$ac_ext <<_ACEOF
22313 -/* confdefs.h.  */
22314 -_ACEOF
22315 -cat confdefs.h >>conftest.$ac_ext
22316 -cat >>conftest.$ac_ext <<_ACEOF
22317 -/* end confdefs.h.  */
22318 -
22319 -/* Override any gcc2 internal prototype to avoid an error.  */
22320 -#ifdef __cplusplus
22321 -extern "C"
22322 -#endif
22323 -/* We use char because int might match the return type of a gcc2
22324 -   builtin and then its argument prototype would still apply.  */
22325 -char dlopen ();
22326 -int
22327 -main ()
22328 -{
22329 -dlopen ();
22330 -  ;
22331 -  return 0;
22332 -}
22333 -_ACEOF
22334 -rm -f conftest.$ac_objext conftest$ac_exeext
22335 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22336 -  (eval $ac_link) 2>conftest.er1
22337 -  ac_status=$?
22338 -  grep -v '^ *+' conftest.er1 >conftest.err
22339 -  rm -f conftest.er1
22340 -  cat conftest.err >&5
22341 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 -  (exit $ac_status); } &&
22343 -        { ac_try='test -z "$ac_cxx_werror_flag"
22344 -                        || test ! -s conftest.err'
22345 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22346 -  (eval $ac_try) 2>&5
22347 -  ac_status=$?
22348 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 -  (exit $ac_status); }; } &&
22350 -        { ac_try='test -s conftest$ac_exeext'
22351 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 -  (eval $ac_try) 2>&5
22353 -  ac_status=$?
22354 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 -  (exit $ac_status); }; }; then
22356 -  ac_cv_lib_dl_dlopen=yes
22357 -else
22358 -  echo "$as_me: failed program was:" >&5
22359 -sed 's/^/| /' conftest.$ac_ext >&5
22360 -
22361 -ac_cv_lib_dl_dlopen=no
22362 -fi
22363 -rm -f conftest.err conftest.$ac_objext \
22364 -      conftest$ac_exeext conftest.$ac_ext
22365 -LIBS=$ac_check_lib_save_LIBS
22366 -fi
22367 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22368 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22369 -if test $ac_cv_lib_dl_dlopen = yes; then
22370 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22371 -else
22372 -
22373 -    lt_cv_dlopen="dyld"
22374 -    lt_cv_dlopen_libs=
22375 -    lt_cv_dlopen_self=yes
22376 -
22377 -fi
22378 -
22379 -   ;;
22380 -
22381 -  *)
22382 -    echo "$as_me:$LINENO: checking for shl_load" >&5
22383 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22384 -if test "${ac_cv_func_shl_load+set}" = set; then
22385 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22386 -else
22387 -  cat >conftest.$ac_ext <<_ACEOF
22388 -/* confdefs.h.  */
22389 -_ACEOF
22390 -cat confdefs.h >>conftest.$ac_ext
22391 -cat >>conftest.$ac_ext <<_ACEOF
22392 -/* end confdefs.h.  */
22393 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22394 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22395 -#define shl_load innocuous_shl_load
22396 -
22397 -/* System header to define __stub macros and hopefully few prototypes,
22398 -    which can conflict with char shl_load (); below.
22399 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22400 -    <limits.h> exists even on freestanding compilers.  */
22401 -
22402 -#ifdef __STDC__
22403 -# include <limits.h>
22404 -#else
22405 -# include <assert.h>
22406 -#endif
22407 -
22408 -#undef shl_load
22409 -
22410 -/* Override any gcc2 internal prototype to avoid an error.  */
22411 -#ifdef __cplusplus
22412 -extern "C"
22413 -{
22414 -#endif
22415 -/* We use char because int might match the return type of a gcc2
22416 -   builtin and then its argument prototype would still apply.  */
22417 -char shl_load ();
22418 -/* The GNU C library defines this for functions which it implements
22419 -    to always fail with ENOSYS.  Some functions are actually named
22420 -    something starting with __ and the normal name is an alias.  */
22421 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
22422 -choke me
22423 -#else
22424 -char (*f) () = shl_load;
22425 -#endif
22426 -#ifdef __cplusplus
22427 -}
22428 -#endif
22429 -
22430 -int
22431 -main ()
22432 -{
22433 -return f != shl_load;
22434 -  ;
22435 -  return 0;
22436 -}
22437 -_ACEOF
22438 -rm -f conftest.$ac_objext conftest$ac_exeext
22439 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22440 -  (eval $ac_link) 2>conftest.er1
22441 -  ac_status=$?
22442 -  grep -v '^ *+' conftest.er1 >conftest.err
22443 -  rm -f conftest.er1
22444 -  cat conftest.err >&5
22445 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 -  (exit $ac_status); } &&
22447 -        { ac_try='test -z "$ac_cxx_werror_flag"
22448 -                        || test ! -s conftest.err'
22449 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 -  (eval $ac_try) 2>&5
22451 -  ac_status=$?
22452 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 -  (exit $ac_status); }; } &&
22454 -        { ac_try='test -s conftest$ac_exeext'
22455 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 -  (eval $ac_try) 2>&5
22457 -  ac_status=$?
22458 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 -  (exit $ac_status); }; }; then
22460 -  ac_cv_func_shl_load=yes
22461 -else
22462 -  echo "$as_me: failed program was:" >&5
22463 -sed 's/^/| /' conftest.$ac_ext >&5
22464 -
22465 -ac_cv_func_shl_load=no
22466 -fi
22467 -rm -f conftest.err conftest.$ac_objext \
22468 -      conftest$ac_exeext conftest.$ac_ext
22469 -fi
22470 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22471 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22472 -if test $ac_cv_func_shl_load = yes; then
22473 -  lt_cv_dlopen="shl_load"
22474 -else
22475 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22476 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22477 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22478 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22479 -else
22480 -  ac_check_lib_save_LIBS=$LIBS
22481 -LIBS="-ldld  $LIBS"
22482 -cat >conftest.$ac_ext <<_ACEOF
22483 -/* confdefs.h.  */
22484 -_ACEOF
22485 -cat confdefs.h >>conftest.$ac_ext
22486 -cat >>conftest.$ac_ext <<_ACEOF
22487 -/* end confdefs.h.  */
22488 -
22489 -/* Override any gcc2 internal prototype to avoid an error.  */
22490 -#ifdef __cplusplus
22491 -extern "C"
22492 -#endif
22493 -/* We use char because int might match the return type of a gcc2
22494 -   builtin and then its argument prototype would still apply.  */
22495 -char shl_load ();
22496 -int
22497 -main ()
22498 -{
22499 -shl_load ();
22500 -  ;
22501 -  return 0;
22502 -}
22503 -_ACEOF
22504 -rm -f conftest.$ac_objext conftest$ac_exeext
22505 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22506 -  (eval $ac_link) 2>conftest.er1
22507 -  ac_status=$?
22508 -  grep -v '^ *+' conftest.er1 >conftest.err
22509 -  rm -f conftest.er1
22510 -  cat conftest.err >&5
22511 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 -  (exit $ac_status); } &&
22513 -        { ac_try='test -z "$ac_cxx_werror_flag"
22514 -                        || test ! -s conftest.err'
22515 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 -  (eval $ac_try) 2>&5
22517 -  ac_status=$?
22518 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 -  (exit $ac_status); }; } &&
22520 -        { ac_try='test -s conftest$ac_exeext'
22521 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 -  (eval $ac_try) 2>&5
22523 -  ac_status=$?
22524 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 -  (exit $ac_status); }; }; then
22526 -  ac_cv_lib_dld_shl_load=yes
22527 -else
22528 -  echo "$as_me: failed program was:" >&5
22529 -sed 's/^/| /' conftest.$ac_ext >&5
22530 -
22531 -ac_cv_lib_dld_shl_load=no
22532 -fi
22533 -rm -f conftest.err conftest.$ac_objext \
22534 -      conftest$ac_exeext conftest.$ac_ext
22535 -LIBS=$ac_check_lib_save_LIBS
22536 -fi
22537 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
22538 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
22539 -if test $ac_cv_lib_dld_shl_load = yes; then
22540 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
22541 -else
22542 -  echo "$as_me:$LINENO: checking for dlopen" >&5
22543 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
22544 -if test "${ac_cv_func_dlopen+set}" = set; then
22545 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22546 -else
22547 -  cat >conftest.$ac_ext <<_ACEOF
22548 -/* confdefs.h.  */
22549 -_ACEOF
22550 -cat confdefs.h >>conftest.$ac_ext
22551 -cat >>conftest.$ac_ext <<_ACEOF
22552 -/* end confdefs.h.  */
22553 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
22554 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22555 -#define dlopen innocuous_dlopen
22556 -
22557 -/* System header to define __stub macros and hopefully few prototypes,
22558 -    which can conflict with char dlopen (); below.
22559 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22560 -    <limits.h> exists even on freestanding compilers.  */
22561 -
22562 -#ifdef __STDC__
22563 -# include <limits.h>
22564 -#else
22565 -# include <assert.h>
22566 -#endif
22567 -
22568 -#undef dlopen
22569 -
22570 -/* Override any gcc2 internal prototype to avoid an error.  */
22571 -#ifdef __cplusplus
22572 -extern "C"
22573 -{
22574 -#endif
22575 -/* We use char because int might match the return type of a gcc2
22576 -   builtin and then its argument prototype would still apply.  */
22577 -char dlopen ();
22578 -/* The GNU C library defines this for functions which it implements
22579 -    to always fail with ENOSYS.  Some functions are actually named
22580 -    something starting with __ and the normal name is an alias.  */
22581 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
22582 -choke me
22583 -#else
22584 -char (*f) () = dlopen;
22585 -#endif
22586 -#ifdef __cplusplus
22587 -}
22588 -#endif
22589 -
22590 -int
22591 -main ()
22592 -{
22593 -return f != dlopen;
22594 -  ;
22595 -  return 0;
22596 -}
22597 -_ACEOF
22598 -rm -f conftest.$ac_objext conftest$ac_exeext
22599 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22600 -  (eval $ac_link) 2>conftest.er1
22601 -  ac_status=$?
22602 -  grep -v '^ *+' conftest.er1 >conftest.err
22603 -  rm -f conftest.er1
22604 -  cat conftest.err >&5
22605 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 -  (exit $ac_status); } &&
22607 -        { ac_try='test -z "$ac_cxx_werror_flag"
22608 -                        || test ! -s conftest.err'
22609 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 -  (eval $ac_try) 2>&5
22611 -  ac_status=$?
22612 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 -  (exit $ac_status); }; } &&
22614 -        { ac_try='test -s conftest$ac_exeext'
22615 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 -  (eval $ac_try) 2>&5
22617 -  ac_status=$?
22618 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 -  (exit $ac_status); }; }; then
22620 -  ac_cv_func_dlopen=yes
22621 -else
22622 -  echo "$as_me: failed program was:" >&5
22623 -sed 's/^/| /' conftest.$ac_ext >&5
22624 -
22625 -ac_cv_func_dlopen=no
22626 -fi
22627 -rm -f conftest.err conftest.$ac_objext \
22628 -      conftest$ac_exeext conftest.$ac_ext
22629 -fi
22630 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
22631 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
22632 -if test $ac_cv_func_dlopen = yes; then
22633 -  lt_cv_dlopen="dlopen"
22634 -else
22635 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22636 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22637 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22638 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22639 -else
22640 -  ac_check_lib_save_LIBS=$LIBS
22641 -LIBS="-ldl  $LIBS"
22642 -cat >conftest.$ac_ext <<_ACEOF
22643 -/* confdefs.h.  */
22644 -_ACEOF
22645 -cat confdefs.h >>conftest.$ac_ext
22646 -cat >>conftest.$ac_ext <<_ACEOF
22647 -/* end confdefs.h.  */
22648 -
22649 -/* Override any gcc2 internal prototype to avoid an error.  */
22650 -#ifdef __cplusplus
22651 -extern "C"
22652 -#endif
22653 -/* We use char because int might match the return type of a gcc2
22654 -   builtin and then its argument prototype would still apply.  */
22655 -char dlopen ();
22656 -int
22657 -main ()
22658 -{
22659 -dlopen ();
22660 -  ;
22661 -  return 0;
22662 -}
22663 -_ACEOF
22664 -rm -f conftest.$ac_objext conftest$ac_exeext
22665 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22666 -  (eval $ac_link) 2>conftest.er1
22667 -  ac_status=$?
22668 -  grep -v '^ *+' conftest.er1 >conftest.err
22669 -  rm -f conftest.er1
22670 -  cat conftest.err >&5
22671 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 -  (exit $ac_status); } &&
22673 -        { ac_try='test -z "$ac_cxx_werror_flag"
22674 -                        || test ! -s conftest.err'
22675 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676 -  (eval $ac_try) 2>&5
22677 -  ac_status=$?
22678 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 -  (exit $ac_status); }; } &&
22680 -        { ac_try='test -s conftest$ac_exeext'
22681 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 -  (eval $ac_try) 2>&5
22683 -  ac_status=$?
22684 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 -  (exit $ac_status); }; }; then
22686 -  ac_cv_lib_dl_dlopen=yes
22687 -else
22688 -  echo "$as_me: failed program was:" >&5
22689 -sed 's/^/| /' conftest.$ac_ext >&5
22690 -
22691 -ac_cv_lib_dl_dlopen=no
22692 -fi
22693 -rm -f conftest.err conftest.$ac_objext \
22694 -      conftest$ac_exeext conftest.$ac_ext
22695 -LIBS=$ac_check_lib_save_LIBS
22696 -fi
22697 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22698 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22699 -if test $ac_cv_lib_dl_dlopen = yes; then
22700 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22701 -else
22702 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
22703 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
22704 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
22705 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22706 -else
22707 -  ac_check_lib_save_LIBS=$LIBS
22708 -LIBS="-lsvld  $LIBS"
22709 -cat >conftest.$ac_ext <<_ACEOF
22710 -/* confdefs.h.  */
22711 -_ACEOF
22712 -cat confdefs.h >>conftest.$ac_ext
22713 -cat >>conftest.$ac_ext <<_ACEOF
22714 -/* end confdefs.h.  */
22715 -
22716 -/* Override any gcc2 internal prototype to avoid an error.  */
22717 -#ifdef __cplusplus
22718 -extern "C"
22719 -#endif
22720 -/* We use char because int might match the return type of a gcc2
22721 -   builtin and then its argument prototype would still apply.  */
22722 -char dlopen ();
22723 -int
22724 -main ()
22725 -{
22726 -dlopen ();
22727 -  ;
22728 -  return 0;
22729 -}
22730 -_ACEOF
22731 -rm -f conftest.$ac_objext conftest$ac_exeext
22732 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22733 -  (eval $ac_link) 2>conftest.er1
22734 -  ac_status=$?
22735 -  grep -v '^ *+' conftest.er1 >conftest.err
22736 -  rm -f conftest.er1
22737 -  cat conftest.err >&5
22738 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 -  (exit $ac_status); } &&
22740 -        { ac_try='test -z "$ac_cxx_werror_flag"
22741 -                        || test ! -s conftest.err'
22742 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 -  (eval $ac_try) 2>&5
22744 -  ac_status=$?
22745 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 -  (exit $ac_status); }; } &&
22747 -        { ac_try='test -s conftest$ac_exeext'
22748 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 -  (eval $ac_try) 2>&5
22750 -  ac_status=$?
22751 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 -  (exit $ac_status); }; }; then
22753 -  ac_cv_lib_svld_dlopen=yes
22754 -else
22755 -  echo "$as_me: failed program was:" >&5
22756 -sed 's/^/| /' conftest.$ac_ext >&5
22757 -
22758 -ac_cv_lib_svld_dlopen=no
22759 -fi
22760 -rm -f conftest.err conftest.$ac_objext \
22761 -      conftest$ac_exeext conftest.$ac_ext
22762 -LIBS=$ac_check_lib_save_LIBS
22763 -fi
22764 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
22765 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
22766 -if test $ac_cv_lib_svld_dlopen = yes; then
22767 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22768 -else
22769 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
22770 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
22771 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
22772 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22773 -else
22774 -  ac_check_lib_save_LIBS=$LIBS
22775 -LIBS="-ldld  $LIBS"
22776 -cat >conftest.$ac_ext <<_ACEOF
22777 -/* confdefs.h.  */
22778 -_ACEOF
22779 -cat confdefs.h >>conftest.$ac_ext
22780 -cat >>conftest.$ac_ext <<_ACEOF
22781 -/* end confdefs.h.  */
22782 -
22783 -/* Override any gcc2 internal prototype to avoid an error.  */
22784 -#ifdef __cplusplus
22785 -extern "C"
22786 -#endif
22787 -/* We use char because int might match the return type of a gcc2
22788 -   builtin and then its argument prototype would still apply.  */
22789 -char dld_link ();
22790 -int
22791 -main ()
22792 -{
22793 -dld_link ();
22794 -  ;
22795 -  return 0;
22796 -}
22797 -_ACEOF
22798 -rm -f conftest.$ac_objext conftest$ac_exeext
22799 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 -  (eval $ac_link) 2>conftest.er1
22801 -  ac_status=$?
22802 -  grep -v '^ *+' conftest.er1 >conftest.err
22803 -  rm -f conftest.er1
22804 -  cat conftest.err >&5
22805 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 -  (exit $ac_status); } &&
22807 -        { ac_try='test -z "$ac_cxx_werror_flag"
22808 -                        || test ! -s conftest.err'
22809 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 -  (eval $ac_try) 2>&5
22811 -  ac_status=$?
22812 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 -  (exit $ac_status); }; } &&
22814 -        { ac_try='test -s conftest$ac_exeext'
22815 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 -  (eval $ac_try) 2>&5
22817 -  ac_status=$?
22818 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 -  (exit $ac_status); }; }; then
22820 -  ac_cv_lib_dld_dld_link=yes
22821 -else
22822 -  echo "$as_me: failed program was:" >&5
22823 -sed 's/^/| /' conftest.$ac_ext >&5
22824 -
22825 -ac_cv_lib_dld_dld_link=no
22826 -fi
22827 -rm -f conftest.err conftest.$ac_objext \
22828 -      conftest$ac_exeext conftest.$ac_ext
22829 -LIBS=$ac_check_lib_save_LIBS
22830 -fi
22831 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
22832 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
22833 -if test $ac_cv_lib_dld_dld_link = yes; then
22834 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
22835 -fi
22836 -
22837 -
22838 -fi
22839 -
22840 -
22841 -fi
22842 -
22843 -
22844 -fi
22845 -
22846 -
22847 -fi
22848 -
22849 -
22850 -fi
22851 -
22852 -    ;;
22853 -  esac
22854 -
22855 -  if test "x$lt_cv_dlopen" != xno; then
22856 -    enable_dlopen=yes
22857 -  else
22858 -    enable_dlopen=no
22859 -  fi
22860 -
22861 -  case $lt_cv_dlopen in
22862 -  dlopen)
22863 -    save_CPPFLAGS="$CPPFLAGS"
22864 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22865 -
22866 -    save_LDFLAGS="$LDFLAGS"
22867 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22868 -
22869 -    save_LIBS="$LIBS"
22870 -    LIBS="$lt_cv_dlopen_libs $LIBS"
22871 -
22872 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
22873 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
22874 -if test "${lt_cv_dlopen_self+set}" = set; then
22875 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22876 -else
22877 -         if test "$cross_compiling" = yes; then :
22878 -  lt_cv_dlopen_self=cross
22879 -else
22880 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22881 -  lt_status=$lt_dlunknown
22882 -  cat > conftest.$ac_ext <<EOF
22883 -#line 12536 "configure"
22884 -#include "confdefs.h"
22885 -
22886 -#if HAVE_DLFCN_H
22887 -#include <dlfcn.h>
22888 -#endif
22889 -
22890 -#include <stdio.h>
22891 -
22892 -#ifdef RTLD_GLOBAL
22893 -#  define LT_DLGLOBAL          RTLD_GLOBAL
22894 -#else
22895 -#  ifdef DL_GLOBAL
22896 -#    define LT_DLGLOBAL                DL_GLOBAL
22897 -#  else
22898 -#    define LT_DLGLOBAL                0
22899 -#  endif
22900 -#endif
22901 -
22902 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22903 -   find out it does not work in some platform. */
22904 -#ifndef LT_DLLAZY_OR_NOW
22905 -#  ifdef RTLD_LAZY
22906 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
22907 -#  else
22908 -#    ifdef DL_LAZY
22909 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
22910 -#    else
22911 -#      ifdef RTLD_NOW
22912 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
22913 -#      else
22914 -#        ifdef DL_NOW
22915 -#          define LT_DLLAZY_OR_NOW     DL_NOW
22916 -#        else
22917 -#          define LT_DLLAZY_OR_NOW     0
22918 -#        endif
22919 -#      endif
22920 -#    endif
22921 -#  endif
22922 -#endif
22923 -
22924 -#ifdef __cplusplus
22925 -extern "C" void exit (int);
22926 -#endif
22927 -
22928 -void fnord() { int i=42;}
22929 -int main ()
22930 -{
22931 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22932 -  int status = $lt_dlunknown;
22933 -
22934 -  if (self)
22935 -    {
22936 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
22937 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22938 -      /* dlclose (self); */
22939 -    }
22940 -
22941 -    exit (status);
22942 -}
22943 -EOF
22944 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22945 -  (eval $ac_link) 2>&5
22946 -  ac_status=$?
22947 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22949 -    (./conftest; exit; ) 2>/dev/null
22950 -    lt_status=$?
22951 -    case x$lt_status in
22952 -      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22953 -      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22954 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
22955 -    esac
22956 -  else :
22957 -    # compilation failed
22958 -    lt_cv_dlopen_self=no
22959 -  fi
22960 -fi
22961 -rm -fr conftest*
22962 -
22963 -
22964 -fi
22965 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
22966 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
22967 -
22968 -    if test "x$lt_cv_dlopen_self" = xyes; then
22969 -      LDFLAGS="$LDFLAGS $link_static_flag"
22970 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
22971 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
22972 -if test "${lt_cv_dlopen_self_static+set}" = set; then
22973 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22974 -else
22975 -         if test "$cross_compiling" = yes; then :
22976 -  lt_cv_dlopen_self_static=cross
22977 -else
22978 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22979 -  lt_status=$lt_dlunknown
22980 -  cat > conftest.$ac_ext <<EOF
22981 -#line 12634 "configure"
22982 -#include "confdefs.h"
22983 -
22984 -#if HAVE_DLFCN_H
22985 -#include <dlfcn.h>
22986 -#endif
22987 -
22988 -#include <stdio.h>
22989 -
22990 -#ifdef RTLD_GLOBAL
22991 -#  define LT_DLGLOBAL          RTLD_GLOBAL
22992 -#else
22993 -#  ifdef DL_GLOBAL
22994 -#    define LT_DLGLOBAL                DL_GLOBAL
22995 -#  else
22996 -#    define LT_DLGLOBAL                0
22997 -#  endif
22998 -#endif
22999 -
23000 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23001 -   find out it does not work in some platform. */
23002 -#ifndef LT_DLLAZY_OR_NOW
23003 -#  ifdef RTLD_LAZY
23004 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
23005 -#  else
23006 -#    ifdef DL_LAZY
23007 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
23008 -#    else
23009 -#      ifdef RTLD_NOW
23010 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
23011 -#      else
23012 -#        ifdef DL_NOW
23013 -#          define LT_DLLAZY_OR_NOW     DL_NOW
23014 -#        else
23015 -#          define LT_DLLAZY_OR_NOW     0
23016 -#        endif
23017 -#      endif
23018 -#    endif
23019 -#  endif
23020 -#endif
23021 -
23022 -#ifdef __cplusplus
23023 -extern "C" void exit (int);
23024 -#endif
23025 -
23026 -void fnord() { int i=42;}
23027 -int main ()
23028 -{
23029 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23030 -  int status = $lt_dlunknown;
23031 -
23032 -  if (self)
23033 -    {
23034 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23035 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23036 -      /* dlclose (self); */
23037 -    }
23038 -
23039 -    exit (status);
23040 -}
23041 -EOF
23042 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23043 -  (eval $ac_link) 2>&5
23044 -  ac_status=$?
23045 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23047 -    (./conftest; exit; ) 2>/dev/null
23048 -    lt_status=$?
23049 -    case x$lt_status in
23050 -      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23051 -      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23052 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23053 -    esac
23054 -  else :
23055 -    # compilation failed
23056 -    lt_cv_dlopen_self_static=no
23057 -  fi
23058 -fi
23059 -rm -fr conftest*
23060 -
23061 -
23062 -fi
23063 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23064 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23065 -    fi
23066 -
23067 -    CPPFLAGS="$save_CPPFLAGS"
23068 -    LDFLAGS="$save_LDFLAGS"
23069 -    LIBS="$save_LIBS"
23070 -    ;;
23071 -  esac
23072 -
23073 -  case $lt_cv_dlopen_self in
23074 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23075 -  *) enable_dlopen_self=unknown ;;
23076 -  esac
23077 -
23078 -  case $lt_cv_dlopen_self_static in
23079 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23080 -  *) enable_dlopen_self_static=unknown ;;
23081 -  esac
23082 -fi
23083 -
23084  
23085  # The else clause should only fire when bootstrapping the
23086  # libtool distribution, otherwise you forgot to ship ltmain.sh
23087 @@ -12748,7 +13758,7 @@ if test -f "$ltmain"; then
23088    # Now quote all the things that may contain metacharacters while being
23089    # careful not to overquote the AC_SUBSTed values.  We take copies of the
23090    # variables and quote the copies for generation of the libtool script.
23091 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23092 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23093      SED SHELL STRIP \
23094      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23095      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23096 @@ -12775,6 +13785,7 @@ if test -f "$ltmain"; then
23097      predeps_CXX \
23098      postdeps_CXX \
23099      compiler_lib_search_path_CXX \
23100 +    compiler_lib_search_dirs_CXX \
23101      archive_cmds_CXX \
23102      archive_expsym_cmds_CXX \
23103      postinstall_cmds_CXX \
23104 @@ -12790,6 +13801,7 @@ if test -f "$ltmain"; then
23105      module_cmds_CXX \
23106      module_expsym_cmds_CXX \
23107      lt_cv_prog_compiler_c_o_CXX \
23108 +    fix_srcfile_path_CXX \
23109      exclude_expsyms_CXX \
23110      include_expsyms_CXX; do
23111  
23112 @@ -12849,6 +13861,12 @@ fast_install=$enable_fast_install
23113  # The host system.
23114  host_alias=$host_alias
23115  host=$host
23116 +host_os=$host_os
23117 +
23118 +# The build system.
23119 +build_alias=$build_alias
23120 +build=$build
23121 +build_os=$build_os
23122  
23123  # An echo program that does not interpret backslashes.
23124  echo=$lt_echo
23125 @@ -12860,6 +13878,9 @@ AR_FLAGS=$lt_AR_FLAGS
23126  # A C compiler.
23127  LTCC=$lt_LTCC
23128  
23129 +# LTCC compiler flags.
23130 +LTCFLAGS=$lt_LTCFLAGS
23131 +
23132  # A language-specific compiler.
23133  CC=$lt_compiler_CXX
23134  
23135 @@ -12925,7 +13946,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
23136  # Does compiler simultaneously support -c and -o options?
23137  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23138  
23139 -# Must we lock files when doing compilation ?
23140 +# Must we lock files when doing compilation?
23141  need_locks=$lt_need_locks
23142  
23143  # Do we need the lib prefix for modules?
23144 @@ -13013,6 +14034,10 @@ predeps=$lt_predeps_CXX
23145  # shared library.
23146  postdeps=$lt_postdeps_CXX
23147  
23148 +# The directories searched by this compiler when creating a shared
23149 +# library
23150 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23151 +
23152  # The library search path used internally by the compiler when linking
23153  # a shared library.
23154  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23155 @@ -13101,7 +14126,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23156  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23157  
23158  # Fix the shell variable \$srcfile for the compiler.
23159 -fix_srcfile_path="$fix_srcfile_path_CXX"
23160 +fix_srcfile_path=$lt_fix_srcfile_path
23161  
23162  # Set to yes if exported symbols are required.
23163  always_export_symbols=$always_export_symbols_CXX
23164 @@ -13192,39 +14217,72 @@ objext=o
23165  objext_F77=$objext
23166  
23167  # Code to be used in simple compile tests
23168 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
23169 +lt_simple_compile_test_code="\
23170 +      subroutine t
23171 +      return
23172 +      end
23173 +"
23174  
23175  # Code to be used in simple link tests
23176 -lt_simple_link_test_code="      program t\n      end\n"
23177 +lt_simple_link_test_code="\
23178 +      program t
23179 +      end
23180 +"
23181  
23182  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23183  
23184  # If no C compiler was specified, use CC.
23185  LTCC=${LTCC-"$CC"}
23186  
23187 +# If no C compiler flags were specified, use CFLAGS.
23188 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23189 +
23190  # Allow CC to be a program name with arguments.
23191  compiler=$CC
23192  
23193  
23194 +# save warnings/boilerplate of simple test code
23195 +ac_outfile=conftest.$ac_objext
23196 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23197 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23198 +_lt_compiler_boilerplate=`cat conftest.err`
23199 +$rm conftest*
23200 +
23201 +ac_outfile=conftest.$ac_objext
23202 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
23203 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23204 +_lt_linker_boilerplate=`cat conftest.err`
23205 +$rm -r conftest*
23206 +
23207 +
23208  # Allow CC to be a program name with arguments.
23209  lt_save_CC="$CC"
23210  CC=${F77-"f77"}
23211  compiler=$CC
23212  compiler_F77=$CC
23213 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
23214 +for cc_temp in $compiler""; do
23215 +  case $cc_temp in
23216 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23217 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23218 +    \-*) ;;
23219 +    *) break;;
23220 +  esac
23221 +done
23222 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23223 +
23224  
23225 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23226 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
23227 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
23228 -echo "${ECHO_T}$can_build_shared" >&6
23229 +{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23230 +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
23231 +{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
23232 +$as_echo "$can_build_shared" >&6; }
23233  
23234 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23235 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
23236 +{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23237 +$as_echo_n "checking whether to build shared libraries... " >&6; }
23238  test "$can_build_shared" = "no" && enable_shared=no
23239  
23240  # On AIX, shared libraries and static libraries use the same namespace, and
23241  # are all built from PIC.
23242 -case "$host_os" in
23243 +case $host_os in
23244  aix3*)
23245    test "$enable_shared" = yes && enable_static=no
23246    if test -n "$RANLIB"; then
23247 @@ -13232,21 +14290,21 @@ aix3*)
23248      postinstall_cmds='$RANLIB $lib'
23249    fi
23250    ;;
23251 -aix4* | aix5*)
23252 -  test "$enable_shared" = yes && enable_static=no
23253 +aix[4-9]*)
23254 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23255 +    test "$enable_shared" = yes && enable_static=no
23256 +  fi
23257    ;;
23258  esac
23259 -echo "$as_me:$LINENO: result: $enable_shared" >&5
23260 -echo "${ECHO_T}$enable_shared" >&6
23261 +{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
23262 +$as_echo "$enable_shared" >&6; }
23263  
23264 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23265 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
23266 +{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23267 +$as_echo_n "checking whether to build static libraries... " >&6; }
23268  # Make sure either enable_shared or enable_static is yes.
23269  test "$enable_shared" = yes || enable_static=yes
23270 -echo "$as_me:$LINENO: result: $enable_static" >&5
23271 -echo "${ECHO_T}$enable_static" >&6
23272 -
23273 -test "$ld_shlibs_F77" = no && can_build_shared=no
23274 +{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
23275 +$as_echo "$enable_static" >&6; }
23276  
23277  GCC_F77="$G77"
23278  LD_F77="$LD"
23279 @@ -13255,8 +14313,8 @@ lt_prog_compiler_wl_F77=
23280  lt_prog_compiler_pic_F77=
23281  lt_prog_compiler_static_F77=
23282  
23283 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23284 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23285 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23286 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23287  
23288    if test "$GCC" = yes; then
23289      lt_prog_compiler_wl_F77='-Wl,'
23290 @@ -13278,13 +14336,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23291        lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
23292        ;;
23293  
23294 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23295 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23296        # PIC is the default for these OSes.
23297        ;;
23298  
23299 -    mingw* | pw32* | os2*)
23300 +    mingw* | cygwin* | pw32* | os2*)
23301        # This hack is so that the source file can tell whether it is being
23302        # built for inclusion in a dll (and should export symbols for example).
23303 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
23304 +      # (--disable-auto-import) libraries
23305        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23306        ;;
23307  
23308 @@ -13294,6 +14354,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23309        lt_prog_compiler_pic_F77='-fno-common'
23310        ;;
23311  
23312 +    interix[3-9]*)
23313 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23314 +      # Instead, we relocate shared libraries at runtime.
23315 +      ;;
23316 +
23317      msdosdjgpp*)
23318        # Just because we use GCC doesn't mean we suddenly get shared libraries
23319        # on systems that don't support them.
23320 @@ -13310,7 +14375,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23321      hpux*)
23322        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23323        # not for PA HP-UX.
23324 -      case "$host_cpu" in
23325 +      case $host_cpu in
23326        hppa*64*|ia64*)
23327         # +Z the default
23328         ;;
23329 @@ -13336,8 +14401,18 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23330         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
23331        fi
23332        ;;
23333 +      darwin*)
23334 +        # PIC is the default on this platform
23335 +        # Common symbols not allowed in MH_DYLIB files
23336 +       case $cc_basename in
23337 +         xlc*)
23338 +         lt_prog_compiler_pic_F77='-qnocommon'
23339 +         lt_prog_compiler_wl_F77='-Wl,'
23340 +         ;;
23341 +       esac
23342 +       ;;
23343  
23344 -    mingw* | pw32* | os2*)
23345 +    mingw* | cygwin* | pw32* | os2*)
23346        # This hack is so that the source file can tell whether it is being
23347        # built for inclusion in a dll (and should export symbols for example).
23348        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23349 @@ -13347,7 +14422,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23350        lt_prog_compiler_wl_F77='-Wl,'
23351        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23352        # not for PA HP-UX.
23353 -      case "$host_cpu" in
23354 +      case $host_cpu in
23355        hppa*64*|ia64*)
23356         # +Z the default
23357         ;;
23358 @@ -13370,18 +14445,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23359        lt_prog_compiler_static_F77='-Bstatic'
23360        ;;
23361  
23362 -    linux*)
23363 -      case $CC in
23364 +    linux* | k*bsd*-gnu)
23365 +      case $cc_basename in
23366        icc* | ecc*)
23367         lt_prog_compiler_wl_F77='-Wl,'
23368         lt_prog_compiler_pic_F77='-KPIC'
23369         lt_prog_compiler_static_F77='-static'
23370          ;;
23371 +      pgcc* | pgf77* | pgf90* | pgf95*)
23372 +        # Portland Group compilers (*not* the Pentium gcc compiler,
23373 +       # which looks to be a dead project)
23374 +       lt_prog_compiler_wl_F77='-Wl,'
23375 +       lt_prog_compiler_pic_F77='-fpic'
23376 +       lt_prog_compiler_static_F77='-Bstatic'
23377 +        ;;
23378        ccc*)
23379          lt_prog_compiler_wl_F77='-Wl,'
23380          # All Alpha code is PIC.
23381          lt_prog_compiler_static_F77='-non_shared'
23382          ;;
23383 +      *)
23384 +        case `$CC -V 2>&1 | sed 5q` in
23385 +       *Sun\ C*)
23386 +         # Sun C 5.9
23387 +         lt_prog_compiler_pic_F77='-KPIC'
23388 +         lt_prog_compiler_static_F77='-Bstatic'
23389 +         lt_prog_compiler_wl_F77='-Wl,'
23390 +         ;;
23391 +       *Sun\ F*)
23392 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
23393 +         lt_prog_compiler_pic_F77='-KPIC'
23394 +         lt_prog_compiler_static_F77='-Bstatic'
23395 +         lt_prog_compiler_wl_F77=''
23396 +         ;;
23397 +       esac
23398 +       ;;
23399        esac
23400        ;;
23401  
23402 @@ -13391,15 +14489,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23403        lt_prog_compiler_static_F77='-non_shared'
23404        ;;
23405  
23406 -    sco3.2v5*)
23407 -      lt_prog_compiler_pic_F77='-Kpic'
23408 -      lt_prog_compiler_static_F77='-dn'
23409 +    rdos*)
23410 +      lt_prog_compiler_static_F77='-non_shared'
23411        ;;
23412  
23413      solaris*)
23414 -      lt_prog_compiler_wl_F77='-Wl,'
23415        lt_prog_compiler_pic_F77='-KPIC'
23416        lt_prog_compiler_static_F77='-Bstatic'
23417 +      case $cc_basename in
23418 +      f77* | f90* | f95*)
23419 +       lt_prog_compiler_wl_F77='-Qoption ld ';;
23420 +      *)
23421 +       lt_prog_compiler_wl_F77='-Wl,';;
23422 +      esac
23423        ;;
23424  
23425      sunos4*)
23426 @@ -13408,7 +14510,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23427        lt_prog_compiler_static_F77='-Bstatic'
23428        ;;
23429  
23430 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23431 +    sysv4 | sysv4.2uw2* | sysv4.3*)
23432        lt_prog_compiler_wl_F77='-Wl,'
23433        lt_prog_compiler_pic_F77='-KPIC'
23434        lt_prog_compiler_static_F77='-Bstatic'
23435 @@ -13421,6 +14523,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23436        fi
23437        ;;
23438  
23439 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23440 +      lt_prog_compiler_wl_F77='-Wl,'
23441 +      lt_prog_compiler_pic_F77='-KPIC'
23442 +      lt_prog_compiler_static_F77='-Bstatic'
23443 +      ;;
23444 +
23445 +    unicos*)
23446 +      lt_prog_compiler_wl_F77='-Wl,'
23447 +      lt_prog_compiler_can_build_shared_F77=no
23448 +      ;;
23449 +
23450      uts4*)
23451        lt_prog_compiler_pic_F77='-pic'
23452        lt_prog_compiler_static_F77='-Bstatic'
23453 @@ -13432,22 +14545,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23454      esac
23455    fi
23456  
23457 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
23458 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
23459 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
23460 +$as_echo "$lt_prog_compiler_pic_F77" >&6; }
23461  
23462  #
23463  # Check to make sure the PIC flag actually works.
23464  #
23465  if test -n "$lt_prog_compiler_pic_F77"; then
23466  
23467 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23468 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
23469 -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
23470 -  echo $ECHO_N "(cached) $ECHO_C" >&6
23471 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23472 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
23473 +if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
23474 +  $as_echo_n "(cached) " >&6
23475  else
23476 -  lt_prog_compiler_pic_works_F77=no
23477 +  lt_cv_prog_compiler_pic_works_F77=no
23478    ac_outfile=conftest.$ac_objext
23479 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23480 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23481     lt_compiler_flag="$lt_prog_compiler_pic_F77"
23482     # Insert the option either (1) after the last *FLAGS variable, or
23483     # (2) before a word containing "conftest.", or (3) at the end.
23484 @@ -13455,28 +14568,30 @@ else
23485     # with a dollar sign (not a hyphen), so the echo should work correctly.
23486     # The option is referenced via a variable to avoid confusing sed.
23487     lt_compile=`echo "$ac_compile" | $SED \
23488 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
23489 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23490     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23491     -e 's:$: $lt_compiler_flag:'`
23492 -   (eval echo "\"\$as_me:13461: $lt_compile\"" >&5)
23493 +   (eval echo "\"\$as_me:14574: $lt_compile\"" >&5)
23494     (eval "$lt_compile" 2>conftest.err)
23495     ac_status=$?
23496     cat conftest.err >&5
23497 -   echo "$as_me:13465: \$? = $ac_status" >&5
23498 +   echo "$as_me:14578: \$? = $ac_status" >&5
23499     if (exit $ac_status) && test -s "$ac_outfile"; then
23500       # The compiler can only warn and ignore the option if not recognized
23501 -     # So say no if there are warnings
23502 -     if test ! -s conftest.err; then
23503 -       lt_prog_compiler_pic_works_F77=yes
23504 +     # So say no if there are warnings other than the usual output.
23505 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23506 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23507 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23508 +       lt_cv_prog_compiler_pic_works_F77=yes
23509       fi
23510     fi
23511     $rm conftest*
23512  
23513  fi
23514 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
23515 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
23516 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
23517 +$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
23518  
23519 -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
23520 +if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
23521      case $lt_prog_compiler_pic_F77 in
23522       "" | " "*) ;;
23523       *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
23524 @@ -13487,7 +14602,7 @@ else
23525  fi
23526  
23527  fi
23528 -case "$host_os" in
23529 +case $host_os in
23530    # For platforms which do not support PIC, -DPIC is meaningless:
23531    *djgpp*)
23532      lt_prog_compiler_pic_F77=
23533 @@ -13497,17 +14612,59 @@ case "$host_os" in
23534      ;;
23535  esac
23536  
23537 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23538 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23539 +#
23540 +# Check to make sure the static flag actually works.
23541 +#
23542 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
23543 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23544 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23545 +if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
23546 +  $as_echo_n "(cached) " >&6
23547 +else
23548 +  lt_cv_prog_compiler_static_works_F77=no
23549 +   save_LDFLAGS="$LDFLAGS"
23550 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23551 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
23552 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23553 +     # The linker can only warn and ignore the option if not recognized
23554 +     # So say no if there are warnings
23555 +     if test -s conftest.err; then
23556 +       # Append any errors to the config.log.
23557 +       cat conftest.err 1>&5
23558 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23559 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23560 +       if diff conftest.exp conftest.er2 >/dev/null; then
23561 +         lt_cv_prog_compiler_static_works_F77=yes
23562 +       fi
23563 +     else
23564 +       lt_cv_prog_compiler_static_works_F77=yes
23565 +     fi
23566 +   fi
23567 +   $rm -r conftest*
23568 +   LDFLAGS="$save_LDFLAGS"
23569 +
23570 +fi
23571 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
23572 +$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
23573 +
23574 +if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
23575 +    :
23576 +else
23577 +    lt_prog_compiler_static_F77=
23578 +fi
23579 +
23580 +
23581 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23582 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23583  if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
23584 -  echo $ECHO_N "(cached) $ECHO_C" >&6
23585 +  $as_echo_n "(cached) " >&6
23586  else
23587    lt_cv_prog_compiler_c_o_F77=no
23588     $rm -r conftest 2>/dev/null
23589     mkdir conftest
23590     cd conftest
23591     mkdir out
23592 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23593 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23594  
23595     lt_compiler_flag="-o out/conftest2.$ac_objext"
23596     # Insert the option either (1) after the last *FLAGS variable, or
23597 @@ -13515,23 +14672,25 @@ else
23598     # Note that $ac_compile itself does not contain backslashes and begins
23599     # with a dollar sign (not a hyphen), so the echo should work correctly.
23600     lt_compile=`echo "$ac_compile" | $SED \
23601 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
23602 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23603     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23604     -e 's:$: $lt_compiler_flag:'`
23605 -   (eval echo "\"\$as_me:13521: $lt_compile\"" >&5)
23606 +   (eval echo "\"\$as_me:14678: $lt_compile\"" >&5)
23607     (eval "$lt_compile" 2>out/conftest.err)
23608     ac_status=$?
23609     cat out/conftest.err >&5
23610 -   echo "$as_me:13525: \$? = $ac_status" >&5
23611 +   echo "$as_me:14682: \$? = $ac_status" >&5
23612     if (exit $ac_status) && test -s out/conftest2.$ac_objext
23613     then
23614       # The compiler can only warn and ignore the option if not recognized
23615       # So say no if there are warnings
23616 -     if test ! -s out/conftest.err; then
23617 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23618 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23619 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23620         lt_cv_prog_compiler_c_o_F77=yes
23621       fi
23622     fi
23623 -   chmod u+w .
23624 +   chmod u+w . 2>&5
23625     $rm conftest*
23626     # SGI C++ compiler will create directory out/ii_files/ for
23627     # template instantiation
23628 @@ -13542,34 +14701,34 @@ else
23629     $rm conftest*
23630  
23631  fi
23632 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
23633 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
23634 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
23635 +$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
23636  
23637  
23638  hard_links="nottested"
23639  if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
23640    # do not overwrite the value of need_locks provided by the user
23641 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23642 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23643 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23644 +$as_echo_n "checking if we can lock with hard links... " >&6; }
23645    hard_links=yes
23646    $rm conftest*
23647    ln conftest.a conftest.b 2>/dev/null && hard_links=no
23648    touch conftest.a
23649    ln conftest.a conftest.b 2>&5 || hard_links=no
23650    ln conftest.a conftest.b 2>/dev/null && hard_links=no
23651 -  echo "$as_me:$LINENO: result: $hard_links" >&5
23652 -echo "${ECHO_T}$hard_links" >&6
23653 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
23654 +$as_echo "$hard_links" >&6; }
23655    if test "$hard_links" = no; then
23656 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23657 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23658 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23659 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23660      need_locks=warn
23661    fi
23662  else
23663    need_locks=no
23664  fi
23665  
23666 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23667 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23668 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23669 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23670  
23671    runpath_var=
23672    allow_undefined_flag_F77=
23673 @@ -13600,13 +14759,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23674    # it will be wrapped by ` (' and `)$', so one must not match beginning or
23675    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23676    # as well as any symbol that contains `d'.
23677 -  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
23678 +  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23679    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23680    # platforms (ab)use it in PIC code, but their linkers get confused if
23681    # the symbol is explicitly referenced.  Since portable code cannot
23682    # rely on this symbol name, it's probably fine to never include it in
23683    # preloaded symbol tables.
23684 +  # Exclude shared library initialization/finalization symbols.
23685    extract_expsyms_cmds=
23686 +  # Just being paranoid about ensuring that cc_basename is set.
23687 +  for cc_temp in $compiler""; do
23688 +  case $cc_temp in
23689 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23690 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23691 +    \-*) ;;
23692 +    *) break;;
23693 +  esac
23694 +done
23695 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23696  
23697    case $host_os in
23698    cygwin* | mingw* | pw32*)
23699 @@ -13617,6 +14787,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23700        with_gnu_ld=no
23701      fi
23702      ;;
23703 +  interix*)
23704 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
23705 +    with_gnu_ld=yes
23706 +    ;;
23707    openbsd*)
23708      with_gnu_ld=no
23709      ;;
23710 @@ -13627,9 +14801,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23711      # If archive_cmds runs LD, not CC, wlarc should be empty
23712      wlarc='${wl}'
23713  
23714 +    # Set some defaults for GNU ld with shared library support. These
23715 +    # are reset later if shared libraries are not supported. Putting them
23716 +    # here allows them to be overridden if necessary.
23717 +    runpath_var=LD_RUN_PATH
23718 +    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
23719 +    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
23720 +    # ancient GNU ld didn't support --whole-archive et. al.
23721 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23722 +       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23723 +      else
23724 +       whole_archive_flag_spec_F77=
23725 +    fi
23726 +    supports_anon_versioning=no
23727 +    case `$LD -v 2>/dev/null` in
23728 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23729 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23730 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23731 +      *\ 2.11.*) ;; # other 2.11 versions
23732 +      *) supports_anon_versioning=yes ;;
23733 +    esac
23734 +
23735      # See if GNU ld supports shared libraries.
23736      case $host_os in
23737 -    aix3* | aix4* | aix5*)
23738 +    aix[3-9]*)
23739        # On AIX/PPC, the GNU linker is very broken
23740        if test "$host_cpu" != ia64; then
23741         ld_shlibs_F77=no
23742 @@ -13677,10 +14872,10 @@ EOF
23743        allow_undefined_flag_F77=unsupported
23744        always_export_symbols_F77=no
23745        enable_shared_with_static_runtimes_F77=yes
23746 -      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23747 +      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23748  
23749        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23750 -        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
23751 +        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23752         # If the export-symbols file already is a .def file (1st line
23753         # is EXPORTS), use it as is; otherwise, prepend...
23754         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23755 @@ -13689,13 +14884,69 @@ EOF
23756           echo EXPORTS > $output_objdir/$soname.def;
23757           cat $export_symbols >> $output_objdir/$soname.def;
23758         fi~
23759 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
23760 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23761        else
23762 -       ld_shlibs=no
23763 +       ld_shlibs_F77=no
23764        fi
23765        ;;
23766  
23767 -    netbsd*)
23768 +    interix[3-9]*)
23769 +      hardcode_direct_F77=no
23770 +      hardcode_shlibpath_var_F77=no
23771 +      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23772 +      export_dynamic_flag_spec_F77='${wl}-E'
23773 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23774 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
23775 +      # default) and relocated if they conflict, which is a slow very memory
23776 +      # consuming and fragmenting process.  To avoid this, we pick a random,
23777 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23778 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23779 +      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'
23780 +      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'
23781 +      ;;
23782 +
23783 +    gnu* | linux* | k*bsd*-gnu)
23784 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23785 +       tmp_addflag=
23786 +       case $cc_basename,$host_cpu in
23787 +       pgcc*)                          # Portland Group C compiler
23788 +         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'
23789 +         tmp_addflag=' $pic_flag'
23790 +         ;;
23791 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23792 +         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'
23793 +         tmp_addflag=' $pic_flag -Mnomain' ;;
23794 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23795 +         tmp_addflag=' -i_dynamic' ;;
23796 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23797 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
23798 +       ifc* | ifort*)                  # Intel Fortran compiler
23799 +         tmp_addflag=' -nofor_main' ;;
23800 +       esac
23801 +       case `$CC -V 2>&1 | sed 5q` in
23802 +       *Sun\ C*)                       # Sun C 5.9
23803 +         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'
23804 +         tmp_sharedflag='-G' ;;
23805 +       *Sun\ F*)                       # Sun Fortran 8.3
23806 +         tmp_sharedflag='-G' ;;
23807 +       *)
23808 +         tmp_sharedflag='-shared' ;;
23809 +       esac
23810 +       archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23811 +
23812 +       if test $supports_anon_versioning = yes; then
23813 +         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
23814 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23815 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
23816 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23817 +       fi
23818 +       link_all_deplibs_F77=no
23819 +      else
23820 +       ld_shlibs_F77=no
23821 +      fi
23822 +      ;;
23823 +
23824 +    netbsd* | netbsdelf*-gnu)
23825        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23826         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23827         wlarc=
23828 @@ -13705,7 +14956,7 @@ EOF
23829        fi
23830        ;;
23831  
23832 -    solaris* | sysv5*)
23833 +    solaris*)
23834        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23835         ld_shlibs_F77=no
23836         cat <<EOF 1>&2
23837 @@ -13726,6 +14977,33 @@ EOF
23838        fi
23839        ;;
23840  
23841 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23842 +      case `$LD -v 2>&1` in
23843 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23844 +       ld_shlibs_F77=no
23845 +       cat <<_LT_EOF 1>&2
23846 +
23847 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23848 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
23849 +*** is disabling shared libraries support.  We urge you to upgrade GNU
23850 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23851 +*** your PATH or compiler configuration so that the native linker is
23852 +*** used, and then restart.
23853 +
23854 +_LT_EOF
23855 +       ;;
23856 +       *)
23857 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23858 +           hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23859 +           archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23860 +           archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23861 +         else
23862 +           ld_shlibs_F77=no
23863 +         fi
23864 +       ;;
23865 +      esac
23866 +      ;;
23867 +
23868      sunos4*)
23869        archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23870        wlarc=
23871 @@ -13733,31 +15011,6 @@ EOF
23872        hardcode_shlibpath_var_F77=no
23873        ;;
23874  
23875 -  linux*)
23876 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23877 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23878 -       archive_cmds_F77="$tmp_archive_cmds"
23879 -      supports_anon_versioning=no
23880 -      case `$LD -v 2>/dev/null` in
23881 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23882 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23883 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23884 -        *\ 2.11.*) ;; # other 2.11 versions
23885 -        *) supports_anon_versioning=yes ;;
23886 -      esac
23887 -      if test $supports_anon_versioning = yes; then
23888 -        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
23889 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23890 -$echo "local: *; };" >> $output_objdir/$libname.ver~
23891 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23892 -      else
23893 -        archive_expsym_cmds_F77="$tmp_archive_cmds"
23894 -      fi
23895 -    else
23896 -      ld_shlibs_F77=no
23897 -    fi
23898 -    ;;
23899 -
23900      *)
23901        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23902         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23903 @@ -13768,16 +15021,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23904        ;;
23905      esac
23906  
23907 -    if test "$ld_shlibs_F77" = yes; then
23908 -      runpath_var=LD_RUN_PATH
23909 -      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
23910 -      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
23911 -      # ancient GNU ld didn't support --whole-archive et. al.
23912 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23913 -       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23914 -      else
23915 -       whole_archive_flag_spec_F77=
23916 -      fi
23917 +    if test "$ld_shlibs_F77" = no; then
23918 +      runpath_var=
23919 +      hardcode_libdir_flag_spec_F77=
23920 +      export_dynamic_flag_spec_F77=
23921 +      whole_archive_flag_spec_F77=
23922      fi
23923    else
23924      # PORTME fill in a description of your system's linker (not GNU ld)
23925 @@ -13789,14 +15037,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23926        # Note: this linker hardcodes the directories in LIBPATH if there
23927        # are no directories specified by -L.
23928        hardcode_minus_L_F77=yes
23929 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
23930 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23931         # Neither direct hardcoding nor static linking is supported with a
23932         # broken collect2.
23933         hardcode_direct_F77=unsupported
23934        fi
23935        ;;
23936  
23937 -    aix4* | aix5*)
23938 +    aix[4-9]*)
23939        if test "$host_cpu" = ia64; then
23940         # On IA64, the linker does run time linking by default, so we don't
23941         # have to do anything special.
23942 @@ -13816,13 +15064,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23943         # Test if we are trying to use run time linking or normal
23944         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23945         # need to do runtime linking.
23946 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23947 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
23948           for ld_flag in $LDFLAGS; do
23949           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23950             aix_use_runtimelinking=yes
23951             break
23952           fi
23953           done
23954 +         ;;
23955         esac
23956  
23957         exp_sym_flag='-bexport'
23958 @@ -13841,7 +15090,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23959        link_all_deplibs_F77=yes
23960  
23961        if test "$GCC" = yes; then
23962 -       case $host_os in aix4.012|aix4.012.*)
23963 +       case $host_os in aix4.[012]|aix4.[012].*)
23964         # We only want to do this on AIX 4.2 and lower, the check
23965         # below for broken collect2 doesn't work under 4.3+
23966           collect2name=`${CC} -print-prog-name=collect2`
23967 @@ -13849,7 +15098,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23968            strings "$collect2name" | grep resolve_lib_name >/dev/null
23969           then
23970           # We have reworked collect2
23971 -         hardcode_direct_F77=yes
23972 +         :
23973           else
23974           # We have old collect2
23975           hardcode_direct_F77=unsupported
23976 @@ -13860,8 +15109,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23977           hardcode_libdir_flag_spec_F77='-L$libdir'
23978           hardcode_libdir_separator_F77=
23979           fi
23980 +         ;;
23981         esac
23982         shared_flag='-shared'
23983 +       if test "$aix_use_runtimelinking" = yes; then
23984 +         shared_flag="$shared_flag "'${wl}-G'
23985 +       fi
23986        else
23987         # not using gcc
23988         if test "$host_cpu" = ia64; then
23989 @@ -13869,11 +15122,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
23990         # chokes on -Wl,-G. The following line is correct:
23991           shared_flag='-G'
23992         else
23993 -       if test "$aix_use_runtimelinking" = yes; then
23994 +         if test "$aix_use_runtimelinking" = yes; then
23995             shared_flag='${wl}-G'
23996           else
23997             shared_flag='${wl}-bM:SRE'
23998 -       fi
23999 +         fi
24000         fi
24001        fi
24002  
24003 @@ -13891,49 +15144,58 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24004        end
24005  _ACEOF
24006  rm -f conftest.$ac_objext conftest$ac_exeext
24007 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24008 -  (eval $ac_link) 2>conftest.er1
24009 +if { (ac_try="$ac_link"
24010 +case "(($ac_try" in
24011 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012 +  *) ac_try_echo=$ac_try;;
24013 +esac
24014 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24015 +$as_echo "$ac_try_echo") >&5
24016 +  (eval "$ac_link") 2>conftest.er1
24017    ac_status=$?
24018    grep -v '^ *+' conftest.er1 >conftest.err
24019    rm -f conftest.er1
24020    cat conftest.err >&5
24021 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 -  (exit $ac_status); } &&
24023 -        { ac_try='test -z "$ac_f77_werror_flag"
24024 -                        || test ! -s conftest.err'
24025 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026 -  (eval $ac_try) 2>&5
24027 -  ac_status=$?
24028 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 -  (exit $ac_status); }; } &&
24030 -        { ac_try='test -s conftest$ac_exeext'
24031 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032 -  (eval $ac_try) 2>&5
24033 -  ac_status=$?
24034 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 -  (exit $ac_status); }; }; then
24036 -
24037 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24038 -}'`
24039 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 +  (exit $ac_status); } && {
24041 +        test -z "$ac_f77_werror_flag" ||
24042 +        test ! -s conftest.err
24043 +       } && test -s conftest$ac_exeext && {
24044 +        test "$cross_compiling" = yes ||
24045 +        $as_test_x conftest$ac_exeext
24046 +       }; then
24047 +
24048 +lt_aix_libpath_sed='
24049 +    /Import File Strings/,/^$/ {
24050 +       /^0/ {
24051 +           s/^0  *\(.*\)$/\1/
24052 +           p
24053 +       }
24054 +    }'
24055 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24056  # Check for a 64-bit object if we didn't find anything.
24057 -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; }
24058 -}'`; fi
24059 +if test -z "$aix_libpath"; then
24060 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24061 +fi
24062  else
24063 -  echo "$as_me: failed program was:" >&5
24064 +  $as_echo "$as_me: failed program was:" >&5
24065  sed 's/^/| /' conftest.$ac_ext >&5
24066  
24067 +
24068  fi
24069 -rm -f conftest.err conftest.$ac_objext \
24070 +
24071 +rm -rf conftest.dSYM
24072 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24073        conftest$ac_exeext conftest.$ac_ext
24074  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24075  
24076         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24077 -       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"
24078 +       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"
24079         else
24080         if test "$host_cpu" = ia64; then
24081           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
24082           allow_undefined_flag_F77="-z nodefs"
24083 -         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"
24084 +         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"
24085         else
24086          # Determine the default libpath from the value encoded in an empty executable.
24087          cat >conftest.$ac_ext <<_ACEOF
24088 @@ -13942,39 +15204,48 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24089        end
24090  _ACEOF
24091  rm -f conftest.$ac_objext conftest$ac_exeext
24092 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24093 -  (eval $ac_link) 2>conftest.er1
24094 +if { (ac_try="$ac_link"
24095 +case "(($ac_try" in
24096 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 +  *) ac_try_echo=$ac_try;;
24098 +esac
24099 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24100 +$as_echo "$ac_try_echo") >&5
24101 +  (eval "$ac_link") 2>conftest.er1
24102    ac_status=$?
24103    grep -v '^ *+' conftest.er1 >conftest.err
24104    rm -f conftest.er1
24105    cat conftest.err >&5
24106 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 -  (exit $ac_status); } &&
24108 -        { ac_try='test -z "$ac_f77_werror_flag"
24109 -                        || test ! -s conftest.err'
24110 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 -  (eval $ac_try) 2>&5
24112 -  ac_status=$?
24113 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 -  (exit $ac_status); }; } &&
24115 -        { ac_try='test -s conftest$ac_exeext'
24116 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117 -  (eval $ac_try) 2>&5
24118 -  ac_status=$?
24119 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 -  (exit $ac_status); }; }; then
24121 -
24122 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24123 -}'`
24124 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 +  (exit $ac_status); } && {
24126 +        test -z "$ac_f77_werror_flag" ||
24127 +        test ! -s conftest.err
24128 +       } && test -s conftest$ac_exeext && {
24129 +        test "$cross_compiling" = yes ||
24130 +        $as_test_x conftest$ac_exeext
24131 +       }; then
24132 +
24133 +lt_aix_libpath_sed='
24134 +    /Import File Strings/,/^$/ {
24135 +       /^0/ {
24136 +           s/^0  *\(.*\)$/\1/
24137 +           p
24138 +       }
24139 +    }'
24140 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24141  # Check for a 64-bit object if we didn't find anything.
24142 -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; }
24143 -}'`; fi
24144 +if test -z "$aix_libpath"; then
24145 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24146 +fi
24147  else
24148 -  echo "$as_me: failed program was:" >&5
24149 +  $as_echo "$as_me: failed program was:" >&5
24150  sed 's/^/| /' conftest.$ac_ext >&5
24151  
24152 +
24153  fi
24154 -rm -f conftest.err conftest.$ac_objext \
24155 +
24156 +rm -rf conftest.dSYM
24157 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24158        conftest$ac_exeext conftest.$ac_ext
24159  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24160  
24161 @@ -13983,13 +15254,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24162           # -berok will link without error, but may produce a broken library.
24163           no_undefined_flag_F77=' ${wl}-bernotok'
24164           allow_undefined_flag_F77=' ${wl}-berok'
24165 -         # -bexpall does not export symbols beginning with underscore (_)
24166 -         always_export_symbols_F77=yes
24167           # Exported symbols can be pulled into shared objects from archives
24168 -         whole_archive_flag_spec_F77=' '
24169 +         whole_archive_flag_spec_F77='$convenience'
24170           archive_cmds_need_lc_F77=yes
24171 -         # This is similar to how AIX traditionally builds it's shared libraries.
24172 -         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'
24173 +         # This is similar to how AIX traditionally builds its shared libraries.
24174 +         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'
24175         fi
24176        fi
24177        ;;
24178 @@ -14002,7 +15271,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24179        ld_shlibs_F77=no
24180        ;;
24181  
24182 -    bsdi4*)
24183 +    bsdi[45]*)
24184        export_dynamic_flag_spec_F77=-rdynamic
24185        ;;
24186  
24187 @@ -14022,58 +15291,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24188        # The linker will automatically build a .lib file if we build a DLL.
24189        old_archive_From_new_cmds_F77='true'
24190        # FIXME: Should let the user specify the lib program.
24191 -      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
24192 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
24193 +      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
24194 +      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
24195        enable_shared_with_static_runtimes_F77=yes
24196        ;;
24197  
24198      darwin* | rhapsody*)
24199 -    if test "$GXX" = yes ; then
24200 -      archive_cmds_need_lc_F77=no
24201 -      case "$host_os" in
24202 -      rhapsody* | darwin1.[012])
24203 -       allow_undefined_flag_F77='-undefined suppress'
24204 -       ;;
24205 -      *) # Darwin 1.3 on
24206 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24207 -       allow_undefined_flag_F77='-flat_namespace -undefined suppress'
24208 -      else
24209 -        case ${MACOSX_DEPLOYMENT_TARGET} in
24210 -          10.[012])
24211 -            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
24212 -            ;;
24213 -          10.*)
24214 -            allow_undefined_flag_F77='-undefined dynamic_lookup'
24215 -            ;;
24216 -        esac
24217 -      fi
24218 -       ;;
24219 +      case $host_os in
24220 +        rhapsody* | darwin1.[012])
24221 +         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
24222 +         ;;
24223 +       *) # Darwin 1.3 on
24224 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24225 +           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24226 +         else
24227 +           case ${MACOSX_DEPLOYMENT_TARGET} in
24228 +             10.[012])
24229 +               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24230 +               ;;
24231 +             10.*)
24232 +               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
24233 +               ;;
24234 +           esac
24235 +         fi
24236 +         ;;
24237        esac
24238 -       lt_int_apple_cc_single_mod=no
24239 -       output_verbose_link_cmd='echo'
24240 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
24241 -         lt_int_apple_cc_single_mod=yes
24242 -       fi
24243 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24244 -         archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24245 -       else
24246 -        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'
24247 -      fi
24248 -      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24249 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
24250 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24251 -          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}'
24252 -        else
24253 -          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}'
24254 -        fi
24255 -          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}'
24256 +      archive_cmds_need_lc_F77=no
24257        hardcode_direct_F77=no
24258        hardcode_automatic_F77=yes
24259        hardcode_shlibpath_var_F77=unsupported
24260 -      whole_archive_flag_spec_F77='-all_load $convenience'
24261 +      whole_archive_flag_spec_F77=''
24262        link_all_deplibs_F77=yes
24263 +    if test "$GCC" = yes ; then
24264 +       output_verbose_link_cmd='echo'
24265 +        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}"
24266 +        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24267 +        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}"
24268 +        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}"
24269      else
24270 -      ld_shlibs_F77=no
24271 +      case $cc_basename in
24272 +        xlc*)
24273 +         output_verbose_link_cmd='echo'
24274 +         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
24275 +         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24276 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24277 +         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}'
24278 +          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}'
24279 +          ;;
24280 +       *)
24281 +         ld_shlibs_F77=no
24282 +          ;;
24283 +      esac
24284      fi
24285        ;;
24286  
24287 @@ -14107,7 +15375,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24288        ;;
24289  
24290      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24291 -    freebsd* | kfreebsd*-gnu)
24292 +    freebsd* | dragonfly*)
24293        archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24294        hardcode_libdir_flag_spec_F77='-R$libdir'
24295        hardcode_direct_F77=yes
24296 @@ -14130,47 +15398,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24297        export_dynamic_flag_spec_F77='${wl}-E'
24298        ;;
24299  
24300 -    hpux10* | hpux11*)
24301 +    hpux10*)
24302        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24303 -       case "$host_cpu" in
24304 -       hppa*64*|ia64*)
24305 +       archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24306 +      else
24307 +       archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24308 +      fi
24309 +      if test "$with_gnu_ld" = no; then
24310 +       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24311 +       hardcode_libdir_separator_F77=:
24312 +
24313 +       hardcode_direct_F77=yes
24314 +       export_dynamic_flag_spec_F77='${wl}-E'
24315 +
24316 +       # hardcode_minus_L: Not really in the search PATH,
24317 +       # but as the default location of the library.
24318 +       hardcode_minus_L_F77=yes
24319 +      fi
24320 +      ;;
24321 +
24322 +    hpux11*)
24323 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24324 +       case $host_cpu in
24325 +       hppa*64*)
24326           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24327           ;;
24328 +       ia64*)
24329 +         archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24330 +         ;;
24331         *)
24332           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24333           ;;
24334         esac
24335        else
24336 -       case "$host_cpu" in
24337 -       hppa*64*|ia64*)
24338 -         archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
24339 +       case $host_cpu in
24340 +       hppa*64*)
24341 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24342 +         ;;
24343 +       ia64*)
24344 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24345           ;;
24346         *)
24347 -         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24348 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24349           ;;
24350         esac
24351        fi
24352        if test "$with_gnu_ld" = no; then
24353 -       case "$host_cpu" in
24354 -       hppa*64*)
24355 -         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24356 +       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24357 +       hardcode_libdir_separator_F77=:
24358 +
24359 +       case $host_cpu in
24360 +       hppa*64*|ia64*)
24361           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
24362 -         hardcode_libdir_separator_F77=:
24363           hardcode_direct_F77=no
24364           hardcode_shlibpath_var_F77=no
24365           ;;
24366 -       ia64*)
24367 -         hardcode_libdir_flag_spec_F77='-L$libdir'
24368 -         hardcode_direct_F77=no
24369 -         hardcode_shlibpath_var_F77=no
24370 -
24371 -         # hardcode_minus_L: Not really in the search PATH,
24372 -         # but as the default location of the library.
24373 -         hardcode_minus_L_F77=yes
24374 -         ;;
24375         *)
24376 -         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24377 -         hardcode_libdir_separator_F77=:
24378           hardcode_direct_F77=yes
24379           export_dynamic_flag_spec_F77='${wl}-E'
24380  
24381 @@ -14194,7 +15477,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24382        link_all_deplibs_F77=yes
24383        ;;
24384  
24385 -    netbsd*)
24386 +    netbsd* | netbsdelf*-gnu)
24387        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24388         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24389        else
24390 @@ -14214,23 +15497,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24391        ;;
24392  
24393      openbsd*)
24394 -      hardcode_direct_F77=yes
24395 -      hardcode_shlibpath_var_F77=no
24396 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24397 -       archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24398 -       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24399 -       export_dynamic_flag_spec_F77='${wl}-E'
24400 +      if test -f /usr/libexec/ld.so; then
24401 +       hardcode_direct_F77=yes
24402 +       hardcode_shlibpath_var_F77=no
24403 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24404 +         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24405 +         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24406 +         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24407 +         export_dynamic_flag_spec_F77='${wl}-E'
24408 +       else
24409 +         case $host_os in
24410 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24411 +            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24412 +            hardcode_libdir_flag_spec_F77='-R$libdir'
24413 +            ;;
24414 +          *)
24415 +            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24416 +            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24417 +            ;;
24418 +         esac
24419 +        fi
24420        else
24421 -       case $host_os in
24422 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24423 -          archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24424 -          hardcode_libdir_flag_spec_F77='-R$libdir'
24425 -          ;;
24426 -        *)
24427 -          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24428 -          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24429 -          ;;
24430 -       esac
24431 +       ld_shlibs_F77=no
24432        fi
24433        ;;
24434  
24435 @@ -14263,7 +15551,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24436         allow_undefined_flag_F77=' -expect_unresolved \*'
24437         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'
24438         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~
24439 -       $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'
24440 +       $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'
24441  
24442         # Both c and cxx compiler support -rpath directly
24443         hardcode_libdir_flag_spec_F77='-rpath $libdir'
24444 @@ -14271,21 +15559,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24445        hardcode_libdir_separator_F77=:
24446        ;;
24447  
24448 -    sco3.2v5*)
24449 -      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24450 -      hardcode_shlibpath_var_F77=no
24451 -      export_dynamic_flag_spec_F77='${wl}-Bexport'
24452 -      runpath_var=LD_RUN_PATH
24453 -      hardcode_runpath_var=yes
24454 -      ;;
24455 -
24456      solaris*)
24457        no_undefined_flag_F77=' -z text'
24458        if test "$GCC" = yes; then
24459 +       wlarc='${wl}'
24460         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24461         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24462           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24463        else
24464 +       wlarc=''
24465         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24466         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24467         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24468 @@ -14294,8 +15576,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24469        hardcode_shlibpath_var_F77=no
24470        case $host_os in
24471        solaris2.[0-5] | solaris2.[0-5].*) ;;
24472 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
24473 -       whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
24474 +      *)
24475 +       # The compiler driver will combine and reorder linker options,
24476 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
24477 +       # but is careful enough not to reorder.
24478 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
24479 +       if test "$GCC" = yes; then
24480 +         whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24481 +       else
24482 +         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
24483 +       fi
24484 +       ;;
24485        esac
24486        link_all_deplibs_F77=yes
24487        ;;
24488 @@ -14352,36 +15643,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24489        fi
24490        ;;
24491  
24492 -    sysv4.2uw2*)
24493 -      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24494 -      hardcode_direct_F77=yes
24495 -      hardcode_minus_L_F77=no
24496 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
24497 +      no_undefined_flag_F77='${wl}-z,text'
24498 +      archive_cmds_need_lc_F77=no
24499        hardcode_shlibpath_var_F77=no
24500 -      hardcode_runpath_var=yes
24501 -      runpath_var=LD_RUN_PATH
24502 -      ;;
24503 +      runpath_var='LD_RUN_PATH'
24504  
24505 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
24506 -      no_undefined_flag_F77='${wl}-z ${wl}text'
24507        if test "$GCC" = yes; then
24508 -       archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24509 +       archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24510 +       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24511        else
24512 -       archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24513 +       archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24514 +       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24515        fi
24516 -      runpath_var='LD_RUN_PATH'
24517 -      hardcode_shlibpath_var_F77=no
24518        ;;
24519  
24520 -    sysv5*)
24521 -      no_undefined_flag_F77=' -z text'
24522 -      # $CC -shared without GNU ld will not create a library from C++
24523 -      # object files and a static libstdc++, better avoid it by now
24524 -      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24525 -      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24526 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24527 -      hardcode_libdir_flag_spec_F77=
24528 +    sysv5* | sco3.2v5* | sco5v6*)
24529 +      # Note: We can NOT use -z defs as we might desire, because we do not
24530 +      # link with -lc, and that would cause any symbols used from libc to
24531 +      # always be unresolved, which means just about no library would
24532 +      # ever link correctly.  If we're not using GNU ld we use -z text
24533 +      # though, which does catch some bad symbols but isn't as heavy-handed
24534 +      # as -z defs.
24535 +      no_undefined_flag_F77='${wl}-z,text'
24536 +      allow_undefined_flag_F77='${wl}-z,nodefs'
24537 +      archive_cmds_need_lc_F77=no
24538        hardcode_shlibpath_var_F77=no
24539 +      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24540 +      hardcode_libdir_separator_F77=':'
24541 +      link_all_deplibs_F77=yes
24542 +      export_dynamic_flag_spec_F77='${wl}-Bexport'
24543        runpath_var='LD_RUN_PATH'
24544 +
24545 +      if test "$GCC" = yes; then
24546 +       archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24547 +       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24548 +      else
24549 +       archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24550 +       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24551 +      fi
24552        ;;
24553  
24554      uts4*)
24555 @@ -14396,15 +15696,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24556      esac
24557    fi
24558  
24559 -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
24560 -echo "${ECHO_T}$ld_shlibs_F77" >&6
24561 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
24562 +$as_echo "$ld_shlibs_F77" >&6; }
24563  test "$ld_shlibs_F77" = no && can_build_shared=no
24564  
24565 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24566 -if test "$GCC" = yes; then
24567 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24568 -fi
24569 -
24570  #
24571  # Do we need to explicitly link libc?
24572  #
24573 @@ -14422,21 +15717,22 @@ x|xyes)
24574        # Test whether the compiler implicitly links with -lc since on some
24575        # systems, -lgcc has to come before -lc. If gcc already passes -lc
24576        # to ld, don't add -lc before -lgcc.
24577 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24578 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24579 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24580 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24581        $rm conftest*
24582 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24583 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24584  
24585        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24586    (eval $ac_compile) 2>&5
24587    ac_status=$?
24588 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590    (exit $ac_status); } 2>conftest.err; then
24591          soname=conftest
24592          lib=conftest
24593          libobjs=conftest.$ac_objext
24594          deplibs=
24595          wl=$lt_prog_compiler_wl_F77
24596 +       pic_flag=$lt_prog_compiler_pic_F77
24597          compiler_flags=-v
24598          linker_flags=-v
24599          verstring=
24600 @@ -14447,7 +15743,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
24601          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24602    (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24603    ac_status=$?
24604 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606    (exit $ac_status); }
24607          then
24608           archive_cmds_need_lc_F77=no
24609 @@ -14459,16 +15755,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
24610          cat conftest.err 1>&5
24611        fi
24612        $rm conftest*
24613 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
24614 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
24615 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
24616 +$as_echo "$archive_cmds_need_lc_F77" >&6; }
24617        ;;
24618      esac
24619    fi
24620    ;;
24621  esac
24622  
24623 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24624 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
24625 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24626 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
24627  library_names_spec=
24628  libname_spec='lib$name'
24629  soname_spec=
24630 @@ -14482,20 +15778,7 @@ shlibpath_overrides_runpath=unknown
24631  version_type=none
24632  dynamic_linker="$host_os ld.so"
24633  sys_lib_dlsearch_path_spec="/lib /usr/lib"
24634 -if test "$GCC" = yes; then
24635 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24636 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24637 -    # if the path contains ";" then we assume it to be the separator
24638 -    # otherwise default to the standard path separator (i.e. ":") - it is
24639 -    # assumed that no part of a normal pathname contains ";" but that should
24640 -    # okay in the real world where ";" in dirpaths is itself problematic.
24641 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24642 -  else
24643 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24644 -  fi
24645 -else
24646 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24647 -fi
24648 +
24649  need_lib_prefix=unknown
24650  hardcode_into_libs=no
24651  
24652 @@ -14513,7 +15796,7 @@ aix3*)
24653    soname_spec='${libname}${release}${shared_ext}$major'
24654    ;;
24655  
24656 -aix4* | aix5*)
24657 +aix[4-9]*)
24658    version_type=linux
24659    need_lib_prefix=no
24660    need_version=no
24661 @@ -14569,7 +15852,7 @@ beos*)
24662    shlibpath_var=LIBRARY_PATH
24663    ;;
24664  
24665 -bsdi4*)
24666 +bsdi[45]*)
24667    version_type=linux
24668    need_version=no
24669    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24670 @@ -14597,7 +15880,8 @@ cygwin* | mingw* | pw32*)
24671        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24672        dldir=$destdir/`dirname \$dlpath`~
24673        test -d \$dldir || mkdir -p \$dldir~
24674 -      $install_prog $dir/$dlname \$dldir/$dlname'
24675 +      $install_prog $dir/$dlname \$dldir/$dlname~
24676 +      chmod a+x \$dldir/$dlname'
24677      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24678        dlpath=$dir/\$dldll~
24679         $rm \$dlpath'
24680 @@ -14627,7 +15911,7 @@ cygwin* | mingw* | pw32*)
24681        ;;
24682      pw32*)
24683        # pw32 DLLs use 'pw' prefix rather than 'lib'
24684 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
24685 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24686        ;;
24687      esac
24688      ;;
24689 @@ -14650,13 +15934,8 @@ darwin* | rhapsody*)
24690    soname_spec='${libname}${release}${major}$shared_ext'
24691    shlibpath_overrides_runpath=yes
24692    shlibpath_var=DYLD_LIBRARY_PATH
24693 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
24694 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24695 -  if test "$GCC" = yes; then
24696 -    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"`
24697 -  else
24698 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24699 -  fi
24700 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24701 +
24702    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24703    ;;
24704  
24705 @@ -14673,20 +15952,17 @@ freebsd1*)
24706    dynamic_linker=no
24707    ;;
24708  
24709 -kfreebsd*-gnu)
24710 -  version_type=linux
24711 -  need_lib_prefix=no
24712 -  need_version=no
24713 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24714 -  soname_spec='${libname}${release}${shared_ext}$major'
24715 -  shlibpath_var=LD_LIBRARY_PATH
24716 -  shlibpath_overrides_runpath=no
24717 -  hardcode_into_libs=yes
24718 -  dynamic_linker='GNU ld.so'
24719 -  ;;
24720 -
24721 -freebsd*)
24722 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
24723 +freebsd* | dragonfly*)
24724 +  # DragonFly does not have aout.  When/if they implement a new
24725 +  # versioning mechanism, adjust this.
24726 +  if test -x /usr/bin/objformat; then
24727 +    objformat=`/usr/bin/objformat`
24728 +  else
24729 +    case $host_os in
24730 +    freebsd[123]*) objformat=aout ;;
24731 +    *) objformat=elf ;;
24732 +    esac
24733 +  fi
24734    version_type=freebsd-$objformat
24735    case $version_type in
24736      freebsd-elf*)
24737 @@ -14704,14 +15980,19 @@ freebsd*)
24738    freebsd2*)
24739      shlibpath_overrides_runpath=yes
24740      ;;
24741 -  freebsd3.01* | freebsdelf3.01*)
24742 +  freebsd3.[01]* | freebsdelf3.[01]*)
24743      shlibpath_overrides_runpath=yes
24744      hardcode_into_libs=yes
24745      ;;
24746 -  *) # from 3.2 on
24747 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24748 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24749      shlibpath_overrides_runpath=no
24750      hardcode_into_libs=yes
24751      ;;
24752 +  *) # from 4.6 on, and DragonFly
24753 +    shlibpath_overrides_runpath=yes
24754 +    hardcode_into_libs=yes
24755 +    ;;
24756    esac
24757    ;;
24758  
24759 @@ -14731,7 +16012,7 @@ hpux9* | hpux10* | hpux11*)
24760    version_type=sunos
24761    need_lib_prefix=no
24762    need_version=no
24763 -  case "$host_cpu" in
24764 +  case $host_cpu in
24765    ia64*)
24766      shrext_cmds='.so'
24767      hardcode_into_libs=yes
24768 @@ -14771,6 +16052,18 @@ hpux9* | hpux10* | hpux11*)
24769    postinstall_cmds='chmod 555 $lib'
24770    ;;
24771  
24772 +interix[3-9]*)
24773 +  version_type=linux
24774 +  need_lib_prefix=no
24775 +  need_version=no
24776 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24777 +  soname_spec='${libname}${release}${shared_ext}$major'
24778 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24779 +  shlibpath_var=LD_LIBRARY_PATH
24780 +  shlibpath_overrides_runpath=no
24781 +  hardcode_into_libs=yes
24782 +  ;;
24783 +
24784  irix5* | irix6* | nonstopux*)
24785    case $host_os in
24786      nonstopux*) version_type=nonstopux ;;
24787 @@ -14814,7 +16107,7 @@ linux*oldld* | linux*aout* | linux*coff*)
24788    ;;
24789  
24790  # This must be Linux ELF.
24791 -linux*)
24792 +linux* | k*bsd*-gnu)
24793    version_type=linux
24794    need_lib_prefix=no
24795    need_version=no
24796 @@ -14828,31 +16121,10 @@ linux*)
24797    # before this can be enabled.
24798    hardcode_into_libs=yes
24799  
24800 -  # find out which ABI we are using
24801 -  libsuff=
24802 -  case "$host_cpu" in
24803 -  x86_64*|s390x*|powerpc64*)
24804 -    echo '#line 14835 "configure"' > conftest.$ac_ext
24805 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24806 -  (eval $ac_compile) 2>&5
24807 -  ac_status=$?
24808 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 -  (exit $ac_status); }; then
24810 -      case `/usr/bin/file conftest.$ac_objext` in
24811 -      *64-bit*)
24812 -        libsuff=64
24813 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24814 -        ;;
24815 -      esac
24816 -    fi
24817 -    rm -rf conftest*
24818 -    ;;
24819 -  esac
24820 -
24821    # Append ld.so.conf contents to the search path
24822    if test -f /etc/ld.so.conf; then
24823 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
24824 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24825 +    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' ' '`
24826 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24827    fi
24828  
24829    # We used to test for /lib/ld.so.1 and disable shared libraries on
24830 @@ -14864,7 +16136,7 @@ linux*)
24831    dynamic_linker='GNU/Linux ld.so'
24832    ;;
24833  
24834 -knetbsd*-gnu)
24835 +netbsdelf*-gnu)
24836    version_type=linux
24837    need_lib_prefix=no
24838    need_version=no
24839 @@ -14873,7 +16145,7 @@ knetbsd*-gnu)
24840    shlibpath_var=LD_LIBRARY_PATH
24841    shlibpath_overrides_runpath=no
24842    hardcode_into_libs=yes
24843 -  dynamic_linker='GNU ld.so'
24844 +  dynamic_linker='NetBSD ld.elf_so'
24845    ;;
24846  
24847  netbsd*)
24848 @@ -14913,8 +16185,13 @@ nto-qnx*)
24849  
24850  openbsd*)
24851    version_type=sunos
24852 +  sys_lib_dlsearch_path_spec="/usr/lib"
24853    need_lib_prefix=no
24854 -  need_version=yes
24855 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24856 +  case $host_os in
24857 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24858 +    *)                         need_version=no  ;;
24859 +  esac
24860    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24861    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24862    shlibpath_var=LD_LIBRARY_PATH
24863 @@ -14952,11 +16229,8 @@ osf3* | osf4* | osf5*)
24864    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24865    ;;
24866  
24867 -sco3.2v5*)
24868 -  version_type=osf
24869 -  soname_spec='${libname}${release}${shared_ext}$major'
24870 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24871 -  shlibpath_var=LD_LIBRARY_PATH
24872 +rdos*)
24873 +  dynamic_linker=no
24874    ;;
24875  
24876  solaris*)
24877 @@ -14984,7 +16258,7 @@ sunos4*)
24878    need_version=yes
24879    ;;
24880  
24881 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24882 +sysv4 | sysv4.3*)
24883    version_type=linux
24884    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24885    soname_spec='${libname}${release}${shared_ext}$major'
24886 @@ -15017,6 +16291,29 @@ sysv4*MP*)
24887    fi
24888    ;;
24889  
24890 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24891 +  version_type=freebsd-elf
24892 +  need_lib_prefix=no
24893 +  need_version=no
24894 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24895 +  soname_spec='${libname}${release}${shared_ext}$major'
24896 +  shlibpath_var=LD_LIBRARY_PATH
24897 +  hardcode_into_libs=yes
24898 +  if test "$with_gnu_ld" = yes; then
24899 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24900 +    shlibpath_overrides_runpath=no
24901 +  else
24902 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24903 +    shlibpath_overrides_runpath=yes
24904 +    case $host_os in
24905 +      sco3.2v5*)
24906 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24907 +       ;;
24908 +    esac
24909 +  fi
24910 +  sys_lib_dlsearch_path_spec='/usr/lib'
24911 +  ;;
24912 +
24913  uts4*)
24914    version_type=linux
24915    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24916 @@ -15028,16 +16325,36 @@ uts4*)
24917    dynamic_linker=no
24918    ;;
24919  esac
24920 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24921 -echo "${ECHO_T}$dynamic_linker" >&6
24922 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24923 +$as_echo "$dynamic_linker" >&6; }
24924  test "$dynamic_linker" = no && can_build_shared=no
24925  
24926 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24927 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24928 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24929 +  $as_echo_n "(cached) " >&6
24930 +else
24931 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
24932 +fi
24933 +
24934 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24935 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24936 +  $as_echo_n "(cached) " >&6
24937 +else
24938 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
24939 +fi
24940 +
24941 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24942 +
24943 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24944 +if test "$GCC" = yes; then
24945 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24946 +fi
24947 +
24948 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24949 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24950  hardcode_action_F77=
24951  if test -n "$hardcode_libdir_flag_spec_F77" || \
24952 -   test -n "$runpath_var F77" || \
24953 -   test "X$hardcode_automatic_F77"="Xyes" ; then
24954 +   test -n "$runpath_var_F77" || \
24955 +   test "X$hardcode_automatic_F77" = "Xyes" ; then
24956  
24957    # We can hardcode non-existant directories.
24958    if test "$hardcode_direct_F77" != no &&
24959 @@ -15057,8 +16374,8 @@ else
24960    # directories.
24961    hardcode_action_F77=unsupported
24962  fi
24963 -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24964 -echo "${ECHO_T}$hardcode_action_F77" >&6
24965 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24966 +$as_echo "$hardcode_action_F77" >&6; }
24967  
24968  if test "$hardcode_action_F77" = relink; then
24969    # Fast installation is not supported
24970 @@ -15069,36 +16386,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
24971    enable_fast_install=needless
24972  fi
24973  
24974 -striplib=
24975 -old_striplib=
24976 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24977 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24978 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24979 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24980 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24981 -  echo "$as_me:$LINENO: result: yes" >&5
24982 -echo "${ECHO_T}yes" >&6
24983 -else
24984 -# FIXME - insert some real tests, host_os isn't really good enough
24985 -  case $host_os in
24986 -   darwin*)
24987 -       if test -n "$STRIP" ; then
24988 -         striplib="$STRIP -x"
24989 -         echo "$as_me:$LINENO: result: yes" >&5
24990 -echo "${ECHO_T}yes" >&6
24991 -       else
24992 -  echo "$as_me:$LINENO: result: no" >&5
24993 -echo "${ECHO_T}no" >&6
24994 -fi
24995 -       ;;
24996 -   *)
24997 -  echo "$as_me:$LINENO: result: no" >&5
24998 -echo "${ECHO_T}no" >&6
24999 -    ;;
25000 -  esac
25001 -fi
25002 -
25003 -
25004  
25005  # The else clause should only fire when bootstrapping the
25006  # libtool distribution, otherwise you forgot to ship ltmain.sh
25007 @@ -15113,7 +16400,7 @@ if test -f "$ltmain"; then
25008    # Now quote all the things that may contain metacharacters while being
25009    # careful not to overquote the AC_SUBSTed values.  We take copies of the
25010    # variables and quote the copies for generation of the libtool script.
25011 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25012 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25013      SED SHELL STRIP \
25014      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25015      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25016 @@ -15140,6 +16427,7 @@ if test -f "$ltmain"; then
25017      predeps_F77 \
25018      postdeps_F77 \
25019      compiler_lib_search_path_F77 \
25020 +    compiler_lib_search_dirs_F77 \
25021      archive_cmds_F77 \
25022      archive_expsym_cmds_F77 \
25023      postinstall_cmds_F77 \
25024 @@ -15155,6 +16443,7 @@ if test -f "$ltmain"; then
25025      module_cmds_F77 \
25026      module_expsym_cmds_F77 \
25027      lt_cv_prog_compiler_c_o_F77 \
25028 +    fix_srcfile_path_F77 \
25029      exclude_expsyms_F77 \
25030      include_expsyms_F77; do
25031  
25032 @@ -15214,6 +16503,12 @@ fast_install=$enable_fast_install
25033  # The host system.
25034  host_alias=$host_alias
25035  host=$host
25036 +host_os=$host_os
25037 +
25038 +# The build system.
25039 +build_alias=$build_alias
25040 +build=$build
25041 +build_os=$build_os
25042  
25043  # An echo program that does not interpret backslashes.
25044  echo=$lt_echo
25045 @@ -15225,6 +16520,9 @@ AR_FLAGS=$lt_AR_FLAGS
25046  # A C compiler.
25047  LTCC=$lt_LTCC
25048  
25049 +# LTCC compiler flags.
25050 +LTCFLAGS=$lt_LTCFLAGS
25051 +
25052  # A language-specific compiler.
25053  CC=$lt_compiler_F77
25054  
25055 @@ -15290,7 +16588,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
25056  # Does compiler simultaneously support -c and -o options?
25057  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
25058  
25059 -# Must we lock files when doing compilation ?
25060 +# Must we lock files when doing compilation?
25061  need_locks=$lt_need_locks
25062  
25063  # Do we need the lib prefix for modules?
25064 @@ -15378,6 +16676,10 @@ predeps=$lt_predeps_F77
25065  # shared library.
25066  postdeps=$lt_postdeps_F77
25067  
25068 +# The directories searched by this compiler when creating a shared
25069 +# library
25070 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
25071 +
25072  # The library search path used internally by the compiler when linking
25073  # a shared library.
25074  compiler_lib_search_path=$lt_compiler_lib_search_path_F77
25075 @@ -15466,7 +16768,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25076  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25077  
25078  # Fix the shell variable \$srcfile for the compiler.
25079 -fix_srcfile_path="$fix_srcfile_path_F77"
25080 +fix_srcfile_path=$lt_fix_srcfile_path
25081  
25082  # Set to yes if exported symbols are required.
25083  always_export_symbols=$always_export_symbols_F77
25084 @@ -15516,7 +16818,6 @@ CC="$lt_save_CC"
25085         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
25086  
25087  
25088 -
25089  # Source file extension for Java test sources.
25090  ac_ext=java
25091  
25092 @@ -15525,29 +16826,58 @@ objext=o
25093  objext_GCJ=$objext
25094  
25095  # Code to be used in simple compile tests
25096 -lt_simple_compile_test_code="class foo {}\n"
25097 +lt_simple_compile_test_code="class foo {}"
25098  
25099  # Code to be used in simple link tests
25100 -lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
25101 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
25102  
25103  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25104  
25105  # If no C compiler was specified, use CC.
25106  LTCC=${LTCC-"$CC"}
25107  
25108 +# If no C compiler flags were specified, use CFLAGS.
25109 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25110 +
25111  # Allow CC to be a program name with arguments.
25112  compiler=$CC
25113  
25114  
25115 +# save warnings/boilerplate of simple test code
25116 +ac_outfile=conftest.$ac_objext
25117 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25118 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25119 +_lt_compiler_boilerplate=`cat conftest.err`
25120 +$rm conftest*
25121 +
25122 +ac_outfile=conftest.$ac_objext
25123 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
25124 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25125 +_lt_linker_boilerplate=`cat conftest.err`
25126 +$rm -r conftest*
25127 +
25128 +
25129  # Allow CC to be a program name with arguments.
25130  lt_save_CC="$CC"
25131  CC=${GCJ-"gcj"}
25132  compiler=$CC
25133  compiler_GCJ=$CC
25134 +for cc_temp in $compiler""; do
25135 +  case $cc_temp in
25136 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25137 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25138 +    \-*) ;;
25139 +    *) break;;
25140 +  esac
25141 +done
25142 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25143 +
25144  
25145  # GCJ did not exist at the time GCC didn't implicitly link libc in.
25146  archive_cmds_need_lc_GCJ=no
25147  
25148 +old_archive_cmds_GCJ=$old_archive_cmds
25149 +
25150  
25151  lt_prog_compiler_no_builtin_flag_GCJ=
25152  
25153 @@ -15555,14 +16885,14 @@ if test "$GCC" = yes; then
25154    lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
25155  
25156  
25157 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25158 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
25159 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25160 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
25161  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
25162 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25163 +  $as_echo_n "(cached) " >&6
25164  else
25165    lt_cv_prog_compiler_rtti_exceptions=no
25166    ac_outfile=conftest.$ac_objext
25167 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25168 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25169     lt_compiler_flag="-fno-rtti -fno-exceptions"
25170     # Insert the option either (1) after the last *FLAGS variable, or
25171     # (2) before a word containing "conftest.", or (3) at the end.
25172 @@ -15570,26 +16900,28 @@ else
25173     # with a dollar sign (not a hyphen), so the echo should work correctly.
25174     # The option is referenced via a variable to avoid confusing sed.
25175     lt_compile=`echo "$ac_compile" | $SED \
25176 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25177 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25178     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25179     -e 's:$: $lt_compiler_flag:'`
25180 -   (eval echo "\"\$as_me:15576: $lt_compile\"" >&5)
25181 +   (eval echo "\"\$as_me:16906: $lt_compile\"" >&5)
25182     (eval "$lt_compile" 2>conftest.err)
25183     ac_status=$?
25184     cat conftest.err >&5
25185 -   echo "$as_me:15580: \$? = $ac_status" >&5
25186 +   echo "$as_me:16910: \$? = $ac_status" >&5
25187     if (exit $ac_status) && test -s "$ac_outfile"; then
25188       # The compiler can only warn and ignore the option if not recognized
25189 -     # So say no if there are warnings
25190 -     if test ! -s conftest.err; then
25191 +     # So say no if there are warnings other than the usual output.
25192 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25193 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25194 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25195         lt_cv_prog_compiler_rtti_exceptions=yes
25196       fi
25197     fi
25198     $rm conftest*
25199  
25200  fi
25201 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25202 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
25203 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25204 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
25205  
25206  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25207      lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
25208 @@ -15603,8 +16935,8 @@ lt_prog_compiler_wl_GCJ=
25209  lt_prog_compiler_pic_GCJ=
25210  lt_prog_compiler_static_GCJ=
25211  
25212 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25213 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25214 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25215 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25216  
25217    if test "$GCC" = yes; then
25218      lt_prog_compiler_wl_GCJ='-Wl,'
25219 @@ -15626,14 +16958,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25220        lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
25221        ;;
25222  
25223 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25224 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25225        # PIC is the default for these OSes.
25226        ;;
25227  
25228 -    mingw* | pw32* | os2*)
25229 +    mingw* | cygwin* | pw32* | os2*)
25230        # This hack is so that the source file can tell whether it is being
25231        # built for inclusion in a dll (and should export symbols for example).
25232 -      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25233 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
25234 +      # (--disable-auto-import) libraries
25235 +
25236        ;;
25237  
25238      darwin* | rhapsody*)
25239 @@ -15642,6 +16976,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25240        lt_prog_compiler_pic_GCJ='-fno-common'
25241        ;;
25242  
25243 +    interix[3-9]*)
25244 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
25245 +      # Instead, we relocate shared libraries at runtime.
25246 +      ;;
25247 +
25248      msdosdjgpp*)
25249        # Just because we use GCC doesn't mean we suddenly get shared libraries
25250        # on systems that don't support them.
25251 @@ -15658,7 +16997,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25252      hpux*)
25253        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25254        # not for PA HP-UX.
25255 -      case "$host_cpu" in
25256 +      case $host_cpu in
25257        hppa*64*|ia64*)
25258         # +Z the default
25259         ;;
25260 @@ -15684,18 +17023,28 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25261         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
25262        fi
25263        ;;
25264 +      darwin*)
25265 +        # PIC is the default on this platform
25266 +        # Common symbols not allowed in MH_DYLIB files
25267 +       case $cc_basename in
25268 +         xlc*)
25269 +         lt_prog_compiler_pic_GCJ='-qnocommon'
25270 +         lt_prog_compiler_wl_GCJ='-Wl,'
25271 +         ;;
25272 +       esac
25273 +       ;;
25274  
25275 -    mingw* | pw32* | os2*)
25276 +    mingw* | cygwin* | pw32* | os2*)
25277        # This hack is so that the source file can tell whether it is being
25278        # built for inclusion in a dll (and should export symbols for example).
25279 -      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25280 +
25281        ;;
25282  
25283      hpux9* | hpux10* | hpux11*)
25284        lt_prog_compiler_wl_GCJ='-Wl,'
25285        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25286        # not for PA HP-UX.
25287 -      case "$host_cpu" in
25288 +      case $host_cpu in
25289        hppa*64*|ia64*)
25290         # +Z the default
25291         ;;
25292 @@ -15718,18 +17067,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25293        lt_prog_compiler_static_GCJ='-Bstatic'
25294        ;;
25295  
25296 -    linux*)
25297 -      case $CC in
25298 +    linux* | k*bsd*-gnu)
25299 +      case $cc_basename in
25300        icc* | ecc*)
25301         lt_prog_compiler_wl_GCJ='-Wl,'
25302         lt_prog_compiler_pic_GCJ='-KPIC'
25303         lt_prog_compiler_static_GCJ='-static'
25304          ;;
25305 +      pgcc* | pgf77* | pgf90* | pgf95*)
25306 +        # Portland Group compilers (*not* the Pentium gcc compiler,
25307 +       # which looks to be a dead project)
25308 +       lt_prog_compiler_wl_GCJ='-Wl,'
25309 +       lt_prog_compiler_pic_GCJ='-fpic'
25310 +       lt_prog_compiler_static_GCJ='-Bstatic'
25311 +        ;;
25312        ccc*)
25313          lt_prog_compiler_wl_GCJ='-Wl,'
25314          # All Alpha code is PIC.
25315          lt_prog_compiler_static_GCJ='-non_shared'
25316          ;;
25317 +      *)
25318 +        case `$CC -V 2>&1 | sed 5q` in
25319 +       *Sun\ C*)
25320 +         # Sun C 5.9
25321 +         lt_prog_compiler_pic_GCJ='-KPIC'
25322 +         lt_prog_compiler_static_GCJ='-Bstatic'
25323 +         lt_prog_compiler_wl_GCJ='-Wl,'
25324 +         ;;
25325 +       *Sun\ F*)
25326 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
25327 +         lt_prog_compiler_pic_GCJ='-KPIC'
25328 +         lt_prog_compiler_static_GCJ='-Bstatic'
25329 +         lt_prog_compiler_wl_GCJ=''
25330 +         ;;
25331 +       esac
25332 +       ;;
25333        esac
25334        ;;
25335  
25336 @@ -15739,15 +17111,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25337        lt_prog_compiler_static_GCJ='-non_shared'
25338        ;;
25339  
25340 -    sco3.2v5*)
25341 -      lt_prog_compiler_pic_GCJ='-Kpic'
25342 -      lt_prog_compiler_static_GCJ='-dn'
25343 +    rdos*)
25344 +      lt_prog_compiler_static_GCJ='-non_shared'
25345        ;;
25346  
25347      solaris*)
25348 -      lt_prog_compiler_wl_GCJ='-Wl,'
25349        lt_prog_compiler_pic_GCJ='-KPIC'
25350        lt_prog_compiler_static_GCJ='-Bstatic'
25351 +      case $cc_basename in
25352 +      f77* | f90* | f95*)
25353 +       lt_prog_compiler_wl_GCJ='-Qoption ld ';;
25354 +      *)
25355 +       lt_prog_compiler_wl_GCJ='-Wl,';;
25356 +      esac
25357        ;;
25358  
25359      sunos4*)
25360 @@ -15756,7 +17132,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25361        lt_prog_compiler_static_GCJ='-Bstatic'
25362        ;;
25363  
25364 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25365 +    sysv4 | sysv4.2uw2* | sysv4.3*)
25366        lt_prog_compiler_wl_GCJ='-Wl,'
25367        lt_prog_compiler_pic_GCJ='-KPIC'
25368        lt_prog_compiler_static_GCJ='-Bstatic'
25369 @@ -15769,6 +17145,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25370        fi
25371        ;;
25372  
25373 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
25374 +      lt_prog_compiler_wl_GCJ='-Wl,'
25375 +      lt_prog_compiler_pic_GCJ='-KPIC'
25376 +      lt_prog_compiler_static_GCJ='-Bstatic'
25377 +      ;;
25378 +
25379 +    unicos*)
25380 +      lt_prog_compiler_wl_GCJ='-Wl,'
25381 +      lt_prog_compiler_can_build_shared_GCJ=no
25382 +      ;;
25383 +
25384      uts4*)
25385        lt_prog_compiler_pic_GCJ='-pic'
25386        lt_prog_compiler_static_GCJ='-Bstatic'
25387 @@ -15780,22 +17167,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25388      esac
25389    fi
25390  
25391 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
25392 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
25393 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
25394 +$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
25395  
25396  #
25397  # Check to make sure the PIC flag actually works.
25398  #
25399  if test -n "$lt_prog_compiler_pic_GCJ"; then
25400  
25401 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
25402 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
25403 -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
25404 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25405 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
25406 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
25407 +if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
25408 +  $as_echo_n "(cached) " >&6
25409  else
25410 -  lt_prog_compiler_pic_works_GCJ=no
25411 +  lt_cv_prog_compiler_pic_works_GCJ=no
25412    ac_outfile=conftest.$ac_objext
25413 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25414 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25415     lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
25416     # Insert the option either (1) after the last *FLAGS variable, or
25417     # (2) before a word containing "conftest.", or (3) at the end.
25418 @@ -15803,28 +17190,30 @@ else
25419     # with a dollar sign (not a hyphen), so the echo should work correctly.
25420     # The option is referenced via a variable to avoid confusing sed.
25421     lt_compile=`echo "$ac_compile" | $SED \
25422 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25423 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25424     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25425     -e 's:$: $lt_compiler_flag:'`
25426 -   (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
25427 +   (eval echo "\"\$as_me:17196: $lt_compile\"" >&5)
25428     (eval "$lt_compile" 2>conftest.err)
25429     ac_status=$?
25430     cat conftest.err >&5
25431 -   echo "$as_me:15813: \$? = $ac_status" >&5
25432 +   echo "$as_me:17200: \$? = $ac_status" >&5
25433     if (exit $ac_status) && test -s "$ac_outfile"; then
25434       # The compiler can only warn and ignore the option if not recognized
25435 -     # So say no if there are warnings
25436 -     if test ! -s conftest.err; then
25437 -       lt_prog_compiler_pic_works_GCJ=yes
25438 +     # So say no if there are warnings other than the usual output.
25439 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25440 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25441 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25442 +       lt_cv_prog_compiler_pic_works_GCJ=yes
25443       fi
25444     fi
25445     $rm conftest*
25446  
25447  fi
25448 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
25449 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
25450 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
25451 +$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
25452  
25453 -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
25454 +if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
25455      case $lt_prog_compiler_pic_GCJ in
25456       "" | " "*) ;;
25457       *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
25458 @@ -15835,7 +17224,7 @@ else
25459  fi
25460  
25461  fi
25462 -case "$host_os" in
25463 +case $host_os in
25464    # For platforms which do not support PIC, -DPIC is meaningless:
25465    *djgpp*)
25466      lt_prog_compiler_pic_GCJ=
25467 @@ -15845,17 +17234,59 @@ case "$host_os" in
25468      ;;
25469  esac
25470  
25471 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25472 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25473 +#
25474 +# Check to make sure the static flag actually works.
25475 +#
25476 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
25477 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25478 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25479 +if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
25480 +  $as_echo_n "(cached) " >&6
25481 +else
25482 +  lt_cv_prog_compiler_static_works_GCJ=no
25483 +   save_LDFLAGS="$LDFLAGS"
25484 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
25485 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
25486 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25487 +     # The linker can only warn and ignore the option if not recognized
25488 +     # So say no if there are warnings
25489 +     if test -s conftest.err; then
25490 +       # Append any errors to the config.log.
25491 +       cat conftest.err 1>&5
25492 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
25493 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25494 +       if diff conftest.exp conftest.er2 >/dev/null; then
25495 +         lt_cv_prog_compiler_static_works_GCJ=yes
25496 +       fi
25497 +     else
25498 +       lt_cv_prog_compiler_static_works_GCJ=yes
25499 +     fi
25500 +   fi
25501 +   $rm -r conftest*
25502 +   LDFLAGS="$save_LDFLAGS"
25503 +
25504 +fi
25505 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
25506 +$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
25507 +
25508 +if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
25509 +    :
25510 +else
25511 +    lt_prog_compiler_static_GCJ=
25512 +fi
25513 +
25514 +
25515 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25516 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25517  if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
25518 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25519 +  $as_echo_n "(cached) " >&6
25520  else
25521    lt_cv_prog_compiler_c_o_GCJ=no
25522     $rm -r conftest 2>/dev/null
25523     mkdir conftest
25524     cd conftest
25525     mkdir out
25526 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25527 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25528  
25529     lt_compiler_flag="-o out/conftest2.$ac_objext"
25530     # Insert the option either (1) after the last *FLAGS variable, or
25531 @@ -15863,23 +17294,25 @@ else
25532     # Note that $ac_compile itself does not contain backslashes and begins
25533     # with a dollar sign (not a hyphen), so the echo should work correctly.
25534     lt_compile=`echo "$ac_compile" | $SED \
25535 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25536 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25537     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25538     -e 's:$: $lt_compiler_flag:'`
25539 -   (eval echo "\"\$as_me:15869: $lt_compile\"" >&5)
25540 +   (eval echo "\"\$as_me:17300: $lt_compile\"" >&5)
25541     (eval "$lt_compile" 2>out/conftest.err)
25542     ac_status=$?
25543     cat out/conftest.err >&5
25544 -   echo "$as_me:15873: \$? = $ac_status" >&5
25545 +   echo "$as_me:17304: \$? = $ac_status" >&5
25546     if (exit $ac_status) && test -s out/conftest2.$ac_objext
25547     then
25548       # The compiler can only warn and ignore the option if not recognized
25549       # So say no if there are warnings
25550 -     if test ! -s out/conftest.err; then
25551 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
25552 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25553 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25554         lt_cv_prog_compiler_c_o_GCJ=yes
25555       fi
25556     fi
25557 -   chmod u+w .
25558 +   chmod u+w . 2>&5
25559     $rm conftest*
25560     # SGI C++ compiler will create directory out/ii_files/ for
25561     # template instantiation
25562 @@ -15890,34 +17323,34 @@ else
25563     $rm conftest*
25564  
25565  fi
25566 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25567 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
25568 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25569 +$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
25570  
25571  
25572  hard_links="nottested"
25573  if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25574    # do not overwrite the value of need_locks provided by the user
25575 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25576 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
25577 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25578 +$as_echo_n "checking if we can lock with hard links... " >&6; }
25579    hard_links=yes
25580    $rm conftest*
25581    ln conftest.a conftest.b 2>/dev/null && hard_links=no
25582    touch conftest.a
25583    ln conftest.a conftest.b 2>&5 || hard_links=no
25584    ln conftest.a conftest.b 2>/dev/null && hard_links=no
25585 -  echo "$as_me:$LINENO: result: $hard_links" >&5
25586 -echo "${ECHO_T}$hard_links" >&6
25587 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
25588 +$as_echo "$hard_links" >&6; }
25589    if test "$hard_links" = no; then
25590 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25591 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25592 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25593 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25594      need_locks=warn
25595    fi
25596  else
25597    need_locks=no
25598  fi
25599  
25600 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25601 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
25602 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25603 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25604  
25605    runpath_var=
25606    allow_undefined_flag_GCJ=
25607 @@ -15948,13 +17381,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25608    # it will be wrapped by ` (' and `)$', so one must not match beginning or
25609    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25610    # as well as any symbol that contains `d'.
25611 -  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
25612 +  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25613    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25614    # platforms (ab)use it in PIC code, but their linkers get confused if
25615    # the symbol is explicitly referenced.  Since portable code cannot
25616    # rely on this symbol name, it's probably fine to never include it in
25617    # preloaded symbol tables.
25618 +  # Exclude shared library initialization/finalization symbols.
25619    extract_expsyms_cmds=
25620 +  # Just being paranoid about ensuring that cc_basename is set.
25621 +  for cc_temp in $compiler""; do
25622 +  case $cc_temp in
25623 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25624 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25625 +    \-*) ;;
25626 +    *) break;;
25627 +  esac
25628 +done
25629 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25630  
25631    case $host_os in
25632    cygwin* | mingw* | pw32*)
25633 @@ -15965,6 +17409,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25634        with_gnu_ld=no
25635      fi
25636      ;;
25637 +  interix*)
25638 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
25639 +    with_gnu_ld=yes
25640 +    ;;
25641    openbsd*)
25642      with_gnu_ld=no
25643      ;;
25644 @@ -15975,9 +17423,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25645      # If archive_cmds runs LD, not CC, wlarc should be empty
25646      wlarc='${wl}'
25647  
25648 +    # Set some defaults for GNU ld with shared library support. These
25649 +    # are reset later if shared libraries are not supported. Putting them
25650 +    # here allows them to be overridden if necessary.
25651 +    runpath_var=LD_RUN_PATH
25652 +    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25653 +    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25654 +    # ancient GNU ld didn't support --whole-archive et. al.
25655 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25656 +       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25657 +      else
25658 +       whole_archive_flag_spec_GCJ=
25659 +    fi
25660 +    supports_anon_versioning=no
25661 +    case `$LD -v 2>/dev/null` in
25662 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25663 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25664 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25665 +      *\ 2.11.*) ;; # other 2.11 versions
25666 +      *) supports_anon_versioning=yes ;;
25667 +    esac
25668 +
25669      # See if GNU ld supports shared libraries.
25670      case $host_os in
25671 -    aix3* | aix4* | aix5*)
25672 +    aix[3-9]*)
25673        # On AIX/PPC, the GNU linker is very broken
25674        if test "$host_cpu" != ia64; then
25675         ld_shlibs_GCJ=no
25676 @@ -16025,10 +17494,10 @@ EOF
25677        allow_undefined_flag_GCJ=unsupported
25678        always_export_symbols_GCJ=no
25679        enable_shared_with_static_runtimes_GCJ=yes
25680 -      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25681 +      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25682  
25683        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25684 -        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25685 +        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25686         # If the export-symbols file already is a .def file (1st line
25687         # is EXPORTS), use it as is; otherwise, prepend...
25688         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25689 @@ -16037,13 +17506,69 @@ EOF
25690           echo EXPORTS > $output_objdir/$soname.def;
25691           cat $export_symbols >> $output_objdir/$soname.def;
25692         fi~
25693 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
25694 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25695        else
25696 -       ld_shlibs=no
25697 +       ld_shlibs_GCJ=no
25698 +      fi
25699 +      ;;
25700 +
25701 +    interix[3-9]*)
25702 +      hardcode_direct_GCJ=no
25703 +      hardcode_shlibpath_var_GCJ=no
25704 +      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25705 +      export_dynamic_flag_spec_GCJ='${wl}-E'
25706 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25707 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
25708 +      # default) and relocated if they conflict, which is a slow very memory
25709 +      # consuming and fragmenting process.  To avoid this, we pick a random,
25710 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25711 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25712 +      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'
25713 +      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'
25714 +      ;;
25715 +
25716 +    gnu* | linux* | k*bsd*-gnu)
25717 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25718 +       tmp_addflag=
25719 +       case $cc_basename,$host_cpu in
25720 +       pgcc*)                          # Portland Group C compiler
25721 +         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'
25722 +         tmp_addflag=' $pic_flag'
25723 +         ;;
25724 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
25725 +         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'
25726 +         tmp_addflag=' $pic_flag -Mnomain' ;;
25727 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
25728 +         tmp_addflag=' -i_dynamic' ;;
25729 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25730 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
25731 +       ifc* | ifort*)                  # Intel Fortran compiler
25732 +         tmp_addflag=' -nofor_main' ;;
25733 +       esac
25734 +       case `$CC -V 2>&1 | sed 5q` in
25735 +       *Sun\ C*)                       # Sun C 5.9
25736 +         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'
25737 +         tmp_sharedflag='-G' ;;
25738 +       *Sun\ F*)                       # Sun Fortran 8.3
25739 +         tmp_sharedflag='-G' ;;
25740 +       *)
25741 +         tmp_sharedflag='-shared' ;;
25742 +       esac
25743 +       archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25744 +
25745 +       if test $supports_anon_versioning = yes; then
25746 +         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25747 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25748 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
25749 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25750 +       fi
25751 +       link_all_deplibs_GCJ=no
25752 +      else
25753 +       ld_shlibs_GCJ=no
25754        fi
25755        ;;
25756  
25757 -    netbsd*)
25758 +    netbsd* | netbsdelf*-gnu)
25759        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25760         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25761         wlarc=
25762 @@ -16053,7 +17578,7 @@ EOF
25763        fi
25764        ;;
25765  
25766 -    solaris* | sysv5*)
25767 +    solaris*)
25768        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25769         ld_shlibs_GCJ=no
25770         cat <<EOF 1>&2
25771 @@ -16074,6 +17599,33 @@ EOF
25772        fi
25773        ;;
25774  
25775 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25776 +      case `$LD -v 2>&1` in
25777 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25778 +       ld_shlibs_GCJ=no
25779 +       cat <<_LT_EOF 1>&2
25780 +
25781 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25782 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
25783 +*** is disabling shared libraries support.  We urge you to upgrade GNU
25784 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
25785 +*** your PATH or compiler configuration so that the native linker is
25786 +*** used, and then restart.
25787 +
25788 +_LT_EOF
25789 +       ;;
25790 +       *)
25791 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25792 +           hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25793 +           archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25794 +           archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25795 +         else
25796 +           ld_shlibs_GCJ=no
25797 +         fi
25798 +       ;;
25799 +      esac
25800 +      ;;
25801 +
25802      sunos4*)
25803        archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25804        wlarc=
25805 @@ -16081,31 +17633,6 @@ EOF
25806        hardcode_shlibpath_var_GCJ=no
25807        ;;
25808  
25809 -  linux*)
25810 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25811 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25812 -       archive_cmds_GCJ="$tmp_archive_cmds"
25813 -      supports_anon_versioning=no
25814 -      case `$LD -v 2>/dev/null` in
25815 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25816 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25817 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25818 -        *\ 2.11.*) ;; # other 2.11 versions
25819 -        *) supports_anon_versioning=yes ;;
25820 -      esac
25821 -      if test $supports_anon_versioning = yes; then
25822 -        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25823 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25824 -$echo "local: *; };" >> $output_objdir/$libname.ver~
25825 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25826 -      else
25827 -        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
25828 -      fi
25829 -    else
25830 -      ld_shlibs_GCJ=no
25831 -    fi
25832 -    ;;
25833 -
25834      *)
25835        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25836         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25837 @@ -16116,16 +17643,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25838        ;;
25839      esac
25840  
25841 -    if test "$ld_shlibs_GCJ" = yes; then
25842 -      runpath_var=LD_RUN_PATH
25843 -      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25844 -      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25845 -      # ancient GNU ld didn't support --whole-archive et. al.
25846 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25847 -       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25848 -      else
25849 -       whole_archive_flag_spec_GCJ=
25850 -      fi
25851 +    if test "$ld_shlibs_GCJ" = no; then
25852 +      runpath_var=
25853 +      hardcode_libdir_flag_spec_GCJ=
25854 +      export_dynamic_flag_spec_GCJ=
25855 +      whole_archive_flag_spec_GCJ=
25856      fi
25857    else
25858      # PORTME fill in a description of your system's linker (not GNU ld)
25859 @@ -16137,14 +17659,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25860        # Note: this linker hardcodes the directories in LIBPATH if there
25861        # are no directories specified by -L.
25862        hardcode_minus_L_GCJ=yes
25863 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
25864 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25865         # Neither direct hardcoding nor static linking is supported with a
25866         # broken collect2.
25867         hardcode_direct_GCJ=unsupported
25868        fi
25869        ;;
25870  
25871 -    aix4* | aix5*)
25872 +    aix[4-9]*)
25873        if test "$host_cpu" = ia64; then
25874         # On IA64, the linker does run time linking by default, so we don't
25875         # have to do anything special.
25876 @@ -16164,13 +17686,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25877         # Test if we are trying to use run time linking or normal
25878         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25879         # need to do runtime linking.
25880 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25881 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
25882           for ld_flag in $LDFLAGS; do
25883           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25884             aix_use_runtimelinking=yes
25885             break
25886           fi
25887           done
25888 +         ;;
25889         esac
25890  
25891         exp_sym_flag='-bexport'
25892 @@ -16189,7 +17712,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25893        link_all_deplibs_GCJ=yes
25894  
25895        if test "$GCC" = yes; then
25896 -       case $host_os in aix4.012|aix4.012.*)
25897 +       case $host_os in aix4.[012]|aix4.[012].*)
25898         # We only want to do this on AIX 4.2 and lower, the check
25899         # below for broken collect2 doesn't work under 4.3+
25900           collect2name=`${CC} -print-prog-name=collect2`
25901 @@ -16197,7 +17720,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25902            strings "$collect2name" | grep resolve_lib_name >/dev/null
25903           then
25904           # We have reworked collect2
25905 -         hardcode_direct_GCJ=yes
25906 +         :
25907           else
25908           # We have old collect2
25909           hardcode_direct_GCJ=unsupported
25910 @@ -16208,8 +17731,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25911           hardcode_libdir_flag_spec_GCJ='-L$libdir'
25912           hardcode_libdir_separator_GCJ=
25913           fi
25914 +         ;;
25915         esac
25916         shared_flag='-shared'
25917 +       if test "$aix_use_runtimelinking" = yes; then
25918 +         shared_flag="$shared_flag "'${wl}-G'
25919 +       fi
25920        else
25921         # not using gcc
25922         if test "$host_cpu" = ia64; then
25923 @@ -16217,11 +17744,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25924         # chokes on -Wl,-G. The following line is correct:
25925           shared_flag='-G'
25926         else
25927 -       if test "$aix_use_runtimelinking" = yes; then
25928 +         if test "$aix_use_runtimelinking" = yes; then
25929             shared_flag='${wl}-G'
25930           else
25931             shared_flag='${wl}-bM:SRE'
25932 -       fi
25933 +         fi
25934         fi
25935        fi
25936  
25937 @@ -16249,49 +17776,58 @@ main ()
25938  }
25939  _ACEOF
25940  rm -f conftest.$ac_objext conftest$ac_exeext
25941 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25942 -  (eval $ac_link) 2>conftest.er1
25943 +if { (ac_try="$ac_link"
25944 +case "(($ac_try" in
25945 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946 +  *) ac_try_echo=$ac_try;;
25947 +esac
25948 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25949 +$as_echo "$ac_try_echo") >&5
25950 +  (eval "$ac_link") 2>conftest.er1
25951    ac_status=$?
25952    grep -v '^ *+' conftest.er1 >conftest.err
25953    rm -f conftest.er1
25954    cat conftest.err >&5
25955 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 -  (exit $ac_status); } &&
25957 -        { ac_try='test -z "$ac_c_werror_flag"
25958 -                        || test ! -s conftest.err'
25959 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 -  (eval $ac_try) 2>&5
25961 -  ac_status=$?
25962 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 -  (exit $ac_status); }; } &&
25964 -        { ac_try='test -s conftest$ac_exeext'
25965 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 -  (eval $ac_try) 2>&5
25967 -  ac_status=$?
25968 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 -  (exit $ac_status); }; }; then
25970 -
25971 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25972 -}'`
25973 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 +  (exit $ac_status); } && {
25975 +        test -z "$ac_c_werror_flag" ||
25976 +        test ! -s conftest.err
25977 +       } && test -s conftest$ac_exeext && {
25978 +        test "$cross_compiling" = yes ||
25979 +        $as_test_x conftest$ac_exeext
25980 +       }; then
25981 +
25982 +lt_aix_libpath_sed='
25983 +    /Import File Strings/,/^$/ {
25984 +       /^0/ {
25985 +           s/^0  *\(.*\)$/\1/
25986 +           p
25987 +       }
25988 +    }'
25989 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25990  # Check for a 64-bit object if we didn't find anything.
25991 -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; }
25992 -}'`; fi
25993 +if test -z "$aix_libpath"; then
25994 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25995 +fi
25996  else
25997 -  echo "$as_me: failed program was:" >&5
25998 +  $as_echo "$as_me: failed program was:" >&5
25999  sed 's/^/| /' conftest.$ac_ext >&5
26000  
26001 +
26002  fi
26003 -rm -f conftest.err conftest.$ac_objext \
26004 +
26005 +rm -rf conftest.dSYM
26006 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26007        conftest$ac_exeext conftest.$ac_ext
26008  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26009  
26010         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
26011 -       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"
26012 +       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"
26013         else
26014         if test "$host_cpu" = ia64; then
26015           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
26016           allow_undefined_flag_GCJ="-z nodefs"
26017 -         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"
26018 +         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"
26019         else
26020          # Determine the default libpath from the value encoded in an empty executable.
26021          cat >conftest.$ac_ext <<_ACEOF
26022 @@ -16310,39 +17846,48 @@ main ()
26023  }
26024  _ACEOF
26025  rm -f conftest.$ac_objext conftest$ac_exeext
26026 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26027 -  (eval $ac_link) 2>conftest.er1
26028 +if { (ac_try="$ac_link"
26029 +case "(($ac_try" in
26030 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031 +  *) ac_try_echo=$ac_try;;
26032 +esac
26033 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26034 +$as_echo "$ac_try_echo") >&5
26035 +  (eval "$ac_link") 2>conftest.er1
26036    ac_status=$?
26037    grep -v '^ *+' conftest.er1 >conftest.err
26038    rm -f conftest.er1
26039    cat conftest.err >&5
26040 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 -  (exit $ac_status); } &&
26042 -        { ac_try='test -z "$ac_c_werror_flag"
26043 -                        || test ! -s conftest.err'
26044 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 -  (eval $ac_try) 2>&5
26046 -  ac_status=$?
26047 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 -  (exit $ac_status); }; } &&
26049 -        { ac_try='test -s conftest$ac_exeext'
26050 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051 -  (eval $ac_try) 2>&5
26052 -  ac_status=$?
26053 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 -  (exit $ac_status); }; }; then
26055 -
26056 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26057 -}'`
26058 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 +  (exit $ac_status); } && {
26060 +        test -z "$ac_c_werror_flag" ||
26061 +        test ! -s conftest.err
26062 +       } && test -s conftest$ac_exeext && {
26063 +        test "$cross_compiling" = yes ||
26064 +        $as_test_x conftest$ac_exeext
26065 +       }; then
26066 +
26067 +lt_aix_libpath_sed='
26068 +    /Import File Strings/,/^$/ {
26069 +       /^0/ {
26070 +           s/^0  *\(.*\)$/\1/
26071 +           p
26072 +       }
26073 +    }'
26074 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26075  # Check for a 64-bit object if we didn't find anything.
26076 -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; }
26077 -}'`; fi
26078 +if test -z "$aix_libpath"; then
26079 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26080 +fi
26081  else
26082 -  echo "$as_me: failed program was:" >&5
26083 +  $as_echo "$as_me: failed program was:" >&5
26084  sed 's/^/| /' conftest.$ac_ext >&5
26085  
26086 +
26087  fi
26088 -rm -f conftest.err conftest.$ac_objext \
26089 +
26090 +rm -rf conftest.dSYM
26091 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26092        conftest$ac_exeext conftest.$ac_ext
26093  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26094  
26095 @@ -16351,13 +17896,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26096           # -berok will link without error, but may produce a broken library.
26097           no_undefined_flag_GCJ=' ${wl}-bernotok'
26098           allow_undefined_flag_GCJ=' ${wl}-berok'
26099 -         # -bexpall does not export symbols beginning with underscore (_)
26100 -         always_export_symbols_GCJ=yes
26101           # Exported symbols can be pulled into shared objects from archives
26102 -         whole_archive_flag_spec_GCJ=' '
26103 +         whole_archive_flag_spec_GCJ='$convenience'
26104           archive_cmds_need_lc_GCJ=yes
26105 -         # This is similar to how AIX traditionally builds it's shared libraries.
26106 -         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'
26107 +         # This is similar to how AIX traditionally builds its shared libraries.
26108 +         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'
26109         fi
26110        fi
26111        ;;
26112 @@ -16370,7 +17913,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26113        ld_shlibs_GCJ=no
26114        ;;
26115  
26116 -    bsdi4*)
26117 +    bsdi[45]*)
26118        export_dynamic_flag_spec_GCJ=-rdynamic
26119        ;;
26120  
26121 @@ -16390,58 +17933,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26122        # The linker will automatically build a .lib file if we build a DLL.
26123        old_archive_From_new_cmds_GCJ='true'
26124        # FIXME: Should let the user specify the lib program.
26125 -      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
26126 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
26127 +      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
26128 +      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
26129        enable_shared_with_static_runtimes_GCJ=yes
26130        ;;
26131  
26132      darwin* | rhapsody*)
26133 -    if test "$GXX" = yes ; then
26134 -      archive_cmds_need_lc_GCJ=no
26135 -      case "$host_os" in
26136 -      rhapsody* | darwin1.[012])
26137 -       allow_undefined_flag_GCJ='-undefined suppress'
26138 -       ;;
26139 -      *) # Darwin 1.3 on
26140 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26141 -       allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
26142 -      else
26143 -        case ${MACOSX_DEPLOYMENT_TARGET} in
26144 -          10.[012])
26145 -            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
26146 -            ;;
26147 -          10.*)
26148 -            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
26149 -            ;;
26150 -        esac
26151 -      fi
26152 -       ;;
26153 +      case $host_os in
26154 +        rhapsody* | darwin1.[012])
26155 +         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
26156 +         ;;
26157 +       *) # Darwin 1.3 on
26158 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26159 +           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26160 +         else
26161 +           case ${MACOSX_DEPLOYMENT_TARGET} in
26162 +             10.[012])
26163 +               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26164 +               ;;
26165 +             10.*)
26166 +               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
26167 +               ;;
26168 +           esac
26169 +         fi
26170 +         ;;
26171        esac
26172 -       lt_int_apple_cc_single_mod=no
26173 -       output_verbose_link_cmd='echo'
26174 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
26175 -         lt_int_apple_cc_single_mod=yes
26176 -       fi
26177 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
26178 -         archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26179 -       else
26180 -        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'
26181 -      fi
26182 -      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26183 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
26184 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
26185 -          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}'
26186 -        else
26187 -          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}'
26188 -        fi
26189 -          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}'
26190 +      archive_cmds_need_lc_GCJ=no
26191        hardcode_direct_GCJ=no
26192        hardcode_automatic_GCJ=yes
26193        hardcode_shlibpath_var_GCJ=unsupported
26194 -      whole_archive_flag_spec_GCJ='-all_load $convenience'
26195 +      whole_archive_flag_spec_GCJ=''
26196        link_all_deplibs_GCJ=yes
26197 +    if test "$GCC" = yes ; then
26198 +       output_verbose_link_cmd='echo'
26199 +        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}"
26200 +        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
26201 +        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}"
26202 +        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}"
26203      else
26204 -      ld_shlibs_GCJ=no
26205 +      case $cc_basename in
26206 +        xlc*)
26207 +         output_verbose_link_cmd='echo'
26208 +         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
26209 +         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26210 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26211 +         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}'
26212 +          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}'
26213 +          ;;
26214 +       *)
26215 +         ld_shlibs_GCJ=no
26216 +          ;;
26217 +      esac
26218      fi
26219        ;;
26220  
26221 @@ -16475,7 +18017,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26222        ;;
26223  
26224      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26225 -    freebsd* | kfreebsd*-gnu)
26226 +    freebsd* | dragonfly*)
26227        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26228        hardcode_libdir_flag_spec_GCJ='-R$libdir'
26229        hardcode_direct_GCJ=yes
26230 @@ -16498,47 +18040,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26231        export_dynamic_flag_spec_GCJ='${wl}-E'
26232        ;;
26233  
26234 -    hpux10* | hpux11*)
26235 +    hpux10*)
26236        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26237 -       case "$host_cpu" in
26238 -       hppa*64*|ia64*)
26239 +       archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26240 +      else
26241 +       archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26242 +      fi
26243 +      if test "$with_gnu_ld" = no; then
26244 +       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26245 +       hardcode_libdir_separator_GCJ=:
26246 +
26247 +       hardcode_direct_GCJ=yes
26248 +       export_dynamic_flag_spec_GCJ='${wl}-E'
26249 +
26250 +       # hardcode_minus_L: Not really in the search PATH,
26251 +       # but as the default location of the library.
26252 +       hardcode_minus_L_GCJ=yes
26253 +      fi
26254 +      ;;
26255 +
26256 +    hpux11*)
26257 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26258 +       case $host_cpu in
26259 +       hppa*64*)
26260           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26261           ;;
26262 +       ia64*)
26263 +         archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26264 +         ;;
26265         *)
26266           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26267           ;;
26268         esac
26269        else
26270 -       case "$host_cpu" in
26271 -       hppa*64*|ia64*)
26272 -         archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
26273 +       case $host_cpu in
26274 +       hppa*64*)
26275 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26276 +         ;;
26277 +       ia64*)
26278 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26279           ;;
26280         *)
26281 -         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26282 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26283           ;;
26284         esac
26285        fi
26286        if test "$with_gnu_ld" = no; then
26287 -       case "$host_cpu" in
26288 -       hppa*64*)
26289 -         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26290 +       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26291 +       hardcode_libdir_separator_GCJ=:
26292 +
26293 +       case $host_cpu in
26294 +       hppa*64*|ia64*)
26295           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
26296 -         hardcode_libdir_separator_GCJ=:
26297 -         hardcode_direct_GCJ=no
26298 -         hardcode_shlibpath_var_GCJ=no
26299 -         ;;
26300 -       ia64*)
26301 -         hardcode_libdir_flag_spec_GCJ='-L$libdir'
26302           hardcode_direct_GCJ=no
26303           hardcode_shlibpath_var_GCJ=no
26304 -
26305 -         # hardcode_minus_L: Not really in the search PATH,
26306 -         # but as the default location of the library.
26307 -         hardcode_minus_L_GCJ=yes
26308           ;;
26309         *)
26310 -         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26311 -         hardcode_libdir_separator_GCJ=:
26312           hardcode_direct_GCJ=yes
26313           export_dynamic_flag_spec_GCJ='${wl}-E'
26314  
26315 @@ -16562,7 +18119,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26316        link_all_deplibs_GCJ=yes
26317        ;;
26318  
26319 -    netbsd*)
26320 +    netbsd* | netbsdelf*-gnu)
26321        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26322         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
26323        else
26324 @@ -16582,23 +18139,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26325        ;;
26326  
26327      openbsd*)
26328 -      hardcode_direct_GCJ=yes
26329 -      hardcode_shlibpath_var_GCJ=no
26330 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26331 -       archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26332 -       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26333 -       export_dynamic_flag_spec_GCJ='${wl}-E'
26334 +      if test -f /usr/libexec/ld.so; then
26335 +       hardcode_direct_GCJ=yes
26336 +       hardcode_shlibpath_var_GCJ=no
26337 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26338 +         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26339 +         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26340 +         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26341 +         export_dynamic_flag_spec_GCJ='${wl}-E'
26342 +       else
26343 +         case $host_os in
26344 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26345 +            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26346 +            hardcode_libdir_flag_spec_GCJ='-R$libdir'
26347 +            ;;
26348 +          *)
26349 +            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26350 +            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26351 +            ;;
26352 +         esac
26353 +        fi
26354        else
26355 -       case $host_os in
26356 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26357 -          archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26358 -          hardcode_libdir_flag_spec_GCJ='-R$libdir'
26359 -          ;;
26360 -        *)
26361 -          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26362 -          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26363 -          ;;
26364 -       esac
26365 +       ld_shlibs_GCJ=no
26366        fi
26367        ;;
26368  
26369 @@ -16631,7 +18193,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26370         allow_undefined_flag_GCJ=' -expect_unresolved \*'
26371         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'
26372         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~
26373 -       $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'
26374 +       $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'
26375  
26376         # Both c and cxx compiler support -rpath directly
26377         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
26378 @@ -16639,21 +18201,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26379        hardcode_libdir_separator_GCJ=:
26380        ;;
26381  
26382 -    sco3.2v5*)
26383 -      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26384 -      hardcode_shlibpath_var_GCJ=no
26385 -      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26386 -      runpath_var=LD_RUN_PATH
26387 -      hardcode_runpath_var=yes
26388 -      ;;
26389 -
26390      solaris*)
26391        no_undefined_flag_GCJ=' -z text'
26392        if test "$GCC" = yes; then
26393 +       wlarc='${wl}'
26394         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26395         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26396           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26397        else
26398 +       wlarc=''
26399         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26400         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26401         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26402 @@ -16662,8 +18218,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26403        hardcode_shlibpath_var_GCJ=no
26404        case $host_os in
26405        solaris2.[0-5] | solaris2.[0-5].*) ;;
26406 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
26407 -       whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
26408 +      *)
26409 +       # The compiler driver will combine and reorder linker options,
26410 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
26411 +       # but is careful enough not to reorder.
26412 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
26413 +       if test "$GCC" = yes; then
26414 +         whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
26415 +       else
26416 +         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
26417 +       fi
26418 +       ;;
26419        esac
26420        link_all_deplibs_GCJ=yes
26421        ;;
26422 @@ -16720,36 +18285,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26423        fi
26424        ;;
26425  
26426 -    sysv4.2uw2*)
26427 -      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26428 -      hardcode_direct_GCJ=yes
26429 -      hardcode_minus_L_GCJ=no
26430 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26431 +      no_undefined_flag_GCJ='${wl}-z,text'
26432 +      archive_cmds_need_lc_GCJ=no
26433        hardcode_shlibpath_var_GCJ=no
26434 -      hardcode_runpath_var=yes
26435 -      runpath_var=LD_RUN_PATH
26436 -      ;;
26437 +      runpath_var='LD_RUN_PATH'
26438  
26439 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
26440 -      no_undefined_flag_GCJ='${wl}-z ${wl}text'
26441        if test "$GCC" = yes; then
26442 -       archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26443 +       archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26444 +       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26445        else
26446 -       archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26447 +       archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26448 +       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26449        fi
26450 -      runpath_var='LD_RUN_PATH'
26451 -      hardcode_shlibpath_var_GCJ=no
26452        ;;
26453  
26454 -    sysv5*)
26455 -      no_undefined_flag_GCJ=' -z text'
26456 -      # $CC -shared without GNU ld will not create a library from C++
26457 -      # object files and a static libstdc++, better avoid it by now
26458 -      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26459 -      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26460 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26461 -      hardcode_libdir_flag_spec_GCJ=
26462 +    sysv5* | sco3.2v5* | sco5v6*)
26463 +      # Note: We can NOT use -z defs as we might desire, because we do not
26464 +      # link with -lc, and that would cause any symbols used from libc to
26465 +      # always be unresolved, which means just about no library would
26466 +      # ever link correctly.  If we're not using GNU ld we use -z text
26467 +      # though, which does catch some bad symbols but isn't as heavy-handed
26468 +      # as -z defs.
26469 +      no_undefined_flag_GCJ='${wl}-z,text'
26470 +      allow_undefined_flag_GCJ='${wl}-z,nodefs'
26471 +      archive_cmds_need_lc_GCJ=no
26472        hardcode_shlibpath_var_GCJ=no
26473 +      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
26474 +      hardcode_libdir_separator_GCJ=':'
26475 +      link_all_deplibs_GCJ=yes
26476 +      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26477        runpath_var='LD_RUN_PATH'
26478 +
26479 +      if test "$GCC" = yes; then
26480 +       archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26481 +       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26482 +      else
26483 +       archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26484 +       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26485 +      fi
26486        ;;
26487  
26488      uts4*)
26489 @@ -16764,15 +18338,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26490      esac
26491    fi
26492  
26493 -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26494 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
26495 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26496 +$as_echo "$ld_shlibs_GCJ" >&6; }
26497  test "$ld_shlibs_GCJ" = no && can_build_shared=no
26498  
26499 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26500 -if test "$GCC" = yes; then
26501 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26502 -fi
26503 -
26504  #
26505  # Do we need to explicitly link libc?
26506  #
26507 @@ -16790,21 +18359,22 @@ x|xyes)
26508        # Test whether the compiler implicitly links with -lc since on some
26509        # systems, -lgcc has to come before -lc. If gcc already passes -lc
26510        # to ld, don't add -lc before -lgcc.
26511 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26512 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26513 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26514 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26515        $rm conftest*
26516 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26517 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26518  
26519        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26520    (eval $ac_compile) 2>&5
26521    ac_status=$?
26522 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524    (exit $ac_status); } 2>conftest.err; then
26525          soname=conftest
26526          lib=conftest
26527          libobjs=conftest.$ac_objext
26528          deplibs=
26529          wl=$lt_prog_compiler_wl_GCJ
26530 +       pic_flag=$lt_prog_compiler_pic_GCJ
26531          compiler_flags=-v
26532          linker_flags=-v
26533          verstring=
26534 @@ -16815,7 +18385,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
26535          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26536    (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26537    ac_status=$?
26538 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540    (exit $ac_status); }
26541          then
26542           archive_cmds_need_lc_GCJ=no
26543 @@ -16827,16 +18397,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
26544          cat conftest.err 1>&5
26545        fi
26546        $rm conftest*
26547 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26548 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
26549 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26550 +$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
26551        ;;
26552      esac
26553    fi
26554    ;;
26555  esac
26556  
26557 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26558 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26559 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26560 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
26561  library_names_spec=
26562  libname_spec='lib$name'
26563  soname_spec=
26564 @@ -16850,20 +18420,7 @@ shlibpath_overrides_runpath=unknown
26565  version_type=none
26566  dynamic_linker="$host_os ld.so"
26567  sys_lib_dlsearch_path_spec="/lib /usr/lib"
26568 -if test "$GCC" = yes; then
26569 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26570 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26571 -    # if the path contains ";" then we assume it to be the separator
26572 -    # otherwise default to the standard path separator (i.e. ":") - it is
26573 -    # assumed that no part of a normal pathname contains ";" but that should
26574 -    # okay in the real world where ";" in dirpaths is itself problematic.
26575 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26576 -  else
26577 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26578 -  fi
26579 -else
26580 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26581 -fi
26582 +
26583  need_lib_prefix=unknown
26584  hardcode_into_libs=no
26585  
26586 @@ -16881,7 +18438,7 @@ aix3*)
26587    soname_spec='${libname}${release}${shared_ext}$major'
26588    ;;
26589  
26590 -aix4* | aix5*)
26591 +aix[4-9]*)
26592    version_type=linux
26593    need_lib_prefix=no
26594    need_version=no
26595 @@ -16937,7 +18494,7 @@ beos*)
26596    shlibpath_var=LIBRARY_PATH
26597    ;;
26598  
26599 -bsdi4*)
26600 +bsdi[45]*)
26601    version_type=linux
26602    need_version=no
26603    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26604 @@ -16965,7 +18522,8 @@ cygwin* | mingw* | pw32*)
26605        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26606        dldir=$destdir/`dirname \$dlpath`~
26607        test -d \$dldir || mkdir -p \$dldir~
26608 -      $install_prog $dir/$dlname \$dldir/$dlname'
26609 +      $install_prog $dir/$dlname \$dldir/$dlname~
26610 +      chmod a+x \$dldir/$dlname'
26611      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26612        dlpath=$dir/\$dldll~
26613         $rm \$dlpath'
26614 @@ -16995,7 +18553,7 @@ cygwin* | mingw* | pw32*)
26615        ;;
26616      pw32*)
26617        # pw32 DLLs use 'pw' prefix rather than 'lib'
26618 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
26619 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26620        ;;
26621      esac
26622      ;;
26623 @@ -17018,13 +18576,8 @@ darwin* | rhapsody*)
26624    soname_spec='${libname}${release}${major}$shared_ext'
26625    shlibpath_overrides_runpath=yes
26626    shlibpath_var=DYLD_LIBRARY_PATH
26627 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
26628 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26629 -  if test "$GCC" = yes; then
26630 -    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"`
26631 -  else
26632 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26633 -  fi
26634 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26635 +
26636    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26637    ;;
26638  
26639 @@ -17041,20 +18594,17 @@ freebsd1*)
26640    dynamic_linker=no
26641    ;;
26642  
26643 -kfreebsd*-gnu)
26644 -  version_type=linux
26645 -  need_lib_prefix=no
26646 -  need_version=no
26647 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26648 -  soname_spec='${libname}${release}${shared_ext}$major'
26649 -  shlibpath_var=LD_LIBRARY_PATH
26650 -  shlibpath_overrides_runpath=no
26651 -  hardcode_into_libs=yes
26652 -  dynamic_linker='GNU ld.so'
26653 -  ;;
26654 -
26655 -freebsd*)
26656 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
26657 +freebsd* | dragonfly*)
26658 +  # DragonFly does not have aout.  When/if they implement a new
26659 +  # versioning mechanism, adjust this.
26660 +  if test -x /usr/bin/objformat; then
26661 +    objformat=`/usr/bin/objformat`
26662 +  else
26663 +    case $host_os in
26664 +    freebsd[123]*) objformat=aout ;;
26665 +    *) objformat=elf ;;
26666 +    esac
26667 +  fi
26668    version_type=freebsd-$objformat
26669    case $version_type in
26670      freebsd-elf*)
26671 @@ -17072,14 +18622,19 @@ freebsd*)
26672    freebsd2*)
26673      shlibpath_overrides_runpath=yes
26674      ;;
26675 -  freebsd3.01* | freebsdelf3.01*)
26676 +  freebsd3.[01]* | freebsdelf3.[01]*)
26677      shlibpath_overrides_runpath=yes
26678      hardcode_into_libs=yes
26679      ;;
26680 -  *) # from 3.2 on
26681 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26682 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26683      shlibpath_overrides_runpath=no
26684      hardcode_into_libs=yes
26685      ;;
26686 +  *) # from 4.6 on, and DragonFly
26687 +    shlibpath_overrides_runpath=yes
26688 +    hardcode_into_libs=yes
26689 +    ;;
26690    esac
26691    ;;
26692  
26693 @@ -17099,7 +18654,7 @@ hpux9* | hpux10* | hpux11*)
26694    version_type=sunos
26695    need_lib_prefix=no
26696    need_version=no
26697 -  case "$host_cpu" in
26698 +  case $host_cpu in
26699    ia64*)
26700      shrext_cmds='.so'
26701      hardcode_into_libs=yes
26702 @@ -17139,6 +18694,18 @@ hpux9* | hpux10* | hpux11*)
26703    postinstall_cmds='chmod 555 $lib'
26704    ;;
26705  
26706 +interix[3-9]*)
26707 +  version_type=linux
26708 +  need_lib_prefix=no
26709 +  need_version=no
26710 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26711 +  soname_spec='${libname}${release}${shared_ext}$major'
26712 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26713 +  shlibpath_var=LD_LIBRARY_PATH
26714 +  shlibpath_overrides_runpath=no
26715 +  hardcode_into_libs=yes
26716 +  ;;
26717 +
26718  irix5* | irix6* | nonstopux*)
26719    case $host_os in
26720      nonstopux*) version_type=nonstopux ;;
26721 @@ -17182,7 +18749,7 @@ linux*oldld* | linux*aout* | linux*coff*)
26722    ;;
26723  
26724  # This must be Linux ELF.
26725 -linux*)
26726 +linux* | k*bsd*-gnu)
26727    version_type=linux
26728    need_lib_prefix=no
26729    need_version=no
26730 @@ -17196,31 +18763,10 @@ linux*)
26731    # before this can be enabled.
26732    hardcode_into_libs=yes
26733  
26734 -  # find out which ABI we are using
26735 -  libsuff=
26736 -  case "$host_cpu" in
26737 -  x86_64*|s390x*|powerpc64*)
26738 -    echo '#line 17203 "configure"' > conftest.$ac_ext
26739 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26740 -  (eval $ac_compile) 2>&5
26741 -  ac_status=$?
26742 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 -  (exit $ac_status); }; then
26744 -      case `/usr/bin/file conftest.$ac_objext` in
26745 -      *64-bit*)
26746 -        libsuff=64
26747 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
26748 -        ;;
26749 -      esac
26750 -    fi
26751 -    rm -rf conftest*
26752 -    ;;
26753 -  esac
26754 -
26755    # Append ld.so.conf contents to the search path
26756    if test -f /etc/ld.so.conf; then
26757 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
26758 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
26759 +    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' ' '`
26760 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26761    fi
26762  
26763    # We used to test for /lib/ld.so.1 and disable shared libraries on
26764 @@ -17232,7 +18778,7 @@ linux*)
26765    dynamic_linker='GNU/Linux ld.so'
26766    ;;
26767  
26768 -knetbsd*-gnu)
26769 +netbsdelf*-gnu)
26770    version_type=linux
26771    need_lib_prefix=no
26772    need_version=no
26773 @@ -17241,7 +18787,7 @@ knetbsd*-gnu)
26774    shlibpath_var=LD_LIBRARY_PATH
26775    shlibpath_overrides_runpath=no
26776    hardcode_into_libs=yes
26777 -  dynamic_linker='GNU ld.so'
26778 +  dynamic_linker='NetBSD ld.elf_so'
26779    ;;
26780  
26781  netbsd*)
26782 @@ -17281,8 +18827,13 @@ nto-qnx*)
26783  
26784  openbsd*)
26785    version_type=sunos
26786 +  sys_lib_dlsearch_path_spec="/usr/lib"
26787    need_lib_prefix=no
26788 -  need_version=yes
26789 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26790 +  case $host_os in
26791 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26792 +    *)                         need_version=no  ;;
26793 +  esac
26794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26795    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26796    shlibpath_var=LD_LIBRARY_PATH
26797 @@ -17320,11 +18871,8 @@ osf3* | osf4* | osf5*)
26798    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26799    ;;
26800  
26801 -sco3.2v5*)
26802 -  version_type=osf
26803 -  soname_spec='${libname}${release}${shared_ext}$major'
26804 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26805 -  shlibpath_var=LD_LIBRARY_PATH
26806 +rdos*)
26807 +  dynamic_linker=no
26808    ;;
26809  
26810  solaris*)
26811 @@ -17352,7 +18900,7 @@ sunos4*)
26812    need_version=yes
26813    ;;
26814  
26815 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26816 +sysv4 | sysv4.3*)
26817    version_type=linux
26818    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26819    soname_spec='${libname}${release}${shared_ext}$major'
26820 @@ -17385,6 +18933,29 @@ sysv4*MP*)
26821    fi
26822    ;;
26823  
26824 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26825 +  version_type=freebsd-elf
26826 +  need_lib_prefix=no
26827 +  need_version=no
26828 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26829 +  soname_spec='${libname}${release}${shared_ext}$major'
26830 +  shlibpath_var=LD_LIBRARY_PATH
26831 +  hardcode_into_libs=yes
26832 +  if test "$with_gnu_ld" = yes; then
26833 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26834 +    shlibpath_overrides_runpath=no
26835 +  else
26836 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26837 +    shlibpath_overrides_runpath=yes
26838 +    case $host_os in
26839 +      sco3.2v5*)
26840 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26841 +       ;;
26842 +    esac
26843 +  fi
26844 +  sys_lib_dlsearch_path_spec='/usr/lib'
26845 +  ;;
26846 +
26847  uts4*)
26848    version_type=linux
26849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26850 @@ -17396,16 +18967,36 @@ uts4*)
26851    dynamic_linker=no
26852    ;;
26853  esac
26854 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26855 -echo "${ECHO_T}$dynamic_linker" >&6
26856 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26857 +$as_echo "$dynamic_linker" >&6; }
26858  test "$dynamic_linker" = no && can_build_shared=no
26859  
26860 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26861 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26862 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
26863 +  $as_echo_n "(cached) " >&6
26864 +else
26865 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
26866 +fi
26867 +
26868 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
26869 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
26870 +  $as_echo_n "(cached) " >&6
26871 +else
26872 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
26873 +fi
26874 +
26875 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
26876 +
26877 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26878 +if test "$GCC" = yes; then
26879 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26880 +fi
26881 +
26882 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26883 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
26884  hardcode_action_GCJ=
26885  if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26886 -   test -n "$runpath_var GCJ" || \
26887 -   test "X$hardcode_automatic_GCJ"="Xyes" ; then
26888 +   test -n "$runpath_var_GCJ" || \
26889 +   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26890  
26891    # We can hardcode non-existant directories.
26892    if test "$hardcode_direct_GCJ" != no &&
26893 @@ -17425,8 +19016,8 @@ else
26894    # directories.
26895    hardcode_action_GCJ=unsupported
26896  fi
26897 -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26898 -echo "${ECHO_T}$hardcode_action_GCJ" >&6
26899 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26900 +$as_echo "$hardcode_action_GCJ" >&6; }
26901  
26902  if test "$hardcode_action_GCJ" = relink; then
26903    # Fast installation is not supported
26904 @@ -17437,841 +19028,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
26905    enable_fast_install=needless
26906  fi
26907  
26908 -striplib=
26909 -old_striplib=
26910 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26911 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26912 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26913 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26914 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26915 -  echo "$as_me:$LINENO: result: yes" >&5
26916 -echo "${ECHO_T}yes" >&6
26917 -else
26918 -# FIXME - insert some real tests, host_os isn't really good enough
26919 -  case $host_os in
26920 -   darwin*)
26921 -       if test -n "$STRIP" ; then
26922 -         striplib="$STRIP -x"
26923 -         echo "$as_me:$LINENO: result: yes" >&5
26924 -echo "${ECHO_T}yes" >&6
26925 -       else
26926 -  echo "$as_me:$LINENO: result: no" >&5
26927 -echo "${ECHO_T}no" >&6
26928 -fi
26929 -       ;;
26930 -   *)
26931 -  echo "$as_me:$LINENO: result: no" >&5
26932 -echo "${ECHO_T}no" >&6
26933 -    ;;
26934 -  esac
26935 -fi
26936 -
26937 -if test "x$enable_dlopen" != xyes; then
26938 -  enable_dlopen=unknown
26939 -  enable_dlopen_self=unknown
26940 -  enable_dlopen_self_static=unknown
26941 -else
26942 -  lt_cv_dlopen=no
26943 -  lt_cv_dlopen_libs=
26944 -
26945 -  case $host_os in
26946 -  beos*)
26947 -    lt_cv_dlopen="load_add_on"
26948 -    lt_cv_dlopen_libs=
26949 -    lt_cv_dlopen_self=yes
26950 -    ;;
26951 -
26952 -  mingw* | pw32*)
26953 -    lt_cv_dlopen="LoadLibrary"
26954 -    lt_cv_dlopen_libs=
26955 -   ;;
26956 -
26957 -  cygwin*)
26958 -    lt_cv_dlopen="dlopen"
26959 -    lt_cv_dlopen_libs=
26960 -   ;;
26961 -
26962 -  darwin*)
26963 -  # if libdl is installed we need to link against it
26964 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26965 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26966 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26967 -  echo $ECHO_N "(cached) $ECHO_C" >&6
26968 -else
26969 -  ac_check_lib_save_LIBS=$LIBS
26970 -LIBS="-ldl  $LIBS"
26971 -cat >conftest.$ac_ext <<_ACEOF
26972 -/* confdefs.h.  */
26973 -_ACEOF
26974 -cat confdefs.h >>conftest.$ac_ext
26975 -cat >>conftest.$ac_ext <<_ACEOF
26976 -/* end confdefs.h.  */
26977 -
26978 -/* Override any gcc2 internal prototype to avoid an error.  */
26979 -#ifdef __cplusplus
26980 -extern "C"
26981 -#endif
26982 -/* We use char because int might match the return type of a gcc2
26983 -   builtin and then its argument prototype would still apply.  */
26984 -char dlopen ();
26985 -int
26986 -main ()
26987 -{
26988 -dlopen ();
26989 -  ;
26990 -  return 0;
26991 -}
26992 -_ACEOF
26993 -rm -f conftest.$ac_objext conftest$ac_exeext
26994 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26995 -  (eval $ac_link) 2>conftest.er1
26996 -  ac_status=$?
26997 -  grep -v '^ *+' conftest.er1 >conftest.err
26998 -  rm -f conftest.er1
26999 -  cat conftest.err >&5
27000 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 -  (exit $ac_status); } &&
27002 -        { ac_try='test -z "$ac_c_werror_flag"
27003 -                        || test ! -s conftest.err'
27004 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27005 -  (eval $ac_try) 2>&5
27006 -  ac_status=$?
27007 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008 -  (exit $ac_status); }; } &&
27009 -        { ac_try='test -s conftest$ac_exeext'
27010 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27011 -  (eval $ac_try) 2>&5
27012 -  ac_status=$?
27013 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 -  (exit $ac_status); }; }; then
27015 -  ac_cv_lib_dl_dlopen=yes
27016 -else
27017 -  echo "$as_me: failed program was:" >&5
27018 -sed 's/^/| /' conftest.$ac_ext >&5
27019 -
27020 -ac_cv_lib_dl_dlopen=no
27021 -fi
27022 -rm -f conftest.err conftest.$ac_objext \
27023 -      conftest$ac_exeext conftest.$ac_ext
27024 -LIBS=$ac_check_lib_save_LIBS
27025 -fi
27026 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27027 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27028 -if test $ac_cv_lib_dl_dlopen = yes; then
27029 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27030 -else
27031 -
27032 -    lt_cv_dlopen="dyld"
27033 -    lt_cv_dlopen_libs=
27034 -    lt_cv_dlopen_self=yes
27035 -
27036 -fi
27037 -
27038 -   ;;
27039 -
27040 -  *)
27041 -    echo "$as_me:$LINENO: checking for shl_load" >&5
27042 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
27043 -if test "${ac_cv_func_shl_load+set}" = set; then
27044 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27045 -else
27046 -  cat >conftest.$ac_ext <<_ACEOF
27047 -/* confdefs.h.  */
27048 -_ACEOF
27049 -cat confdefs.h >>conftest.$ac_ext
27050 -cat >>conftest.$ac_ext <<_ACEOF
27051 -/* end confdefs.h.  */
27052 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
27053 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27054 -#define shl_load innocuous_shl_load
27055 -
27056 -/* System header to define __stub macros and hopefully few prototypes,
27057 -    which can conflict with char shl_load (); below.
27058 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27059 -    <limits.h> exists even on freestanding compilers.  */
27060 -
27061 -#ifdef __STDC__
27062 -# include <limits.h>
27063 -#else
27064 -# include <assert.h>
27065 -#endif
27066 -
27067 -#undef shl_load
27068 -
27069 -/* Override any gcc2 internal prototype to avoid an error.  */
27070 -#ifdef __cplusplus
27071 -extern "C"
27072 -{
27073 -#endif
27074 -/* We use char because int might match the return type of a gcc2
27075 -   builtin and then its argument prototype would still apply.  */
27076 -char shl_load ();
27077 -/* The GNU C library defines this for functions which it implements
27078 -    to always fail with ENOSYS.  Some functions are actually named
27079 -    something starting with __ and the normal name is an alias.  */
27080 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
27081 -choke me
27082 -#else
27083 -char (*f) () = shl_load;
27084 -#endif
27085 -#ifdef __cplusplus
27086 -}
27087 -#endif
27088 -
27089 -int
27090 -main ()
27091 -{
27092 -return f != shl_load;
27093 -  ;
27094 -  return 0;
27095 -}
27096 -_ACEOF
27097 -rm -f conftest.$ac_objext conftest$ac_exeext
27098 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27099 -  (eval $ac_link) 2>conftest.er1
27100 -  ac_status=$?
27101 -  grep -v '^ *+' conftest.er1 >conftest.err
27102 -  rm -f conftest.er1
27103 -  cat conftest.err >&5
27104 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 -  (exit $ac_status); } &&
27106 -        { ac_try='test -z "$ac_c_werror_flag"
27107 -                        || test ! -s conftest.err'
27108 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27109 -  (eval $ac_try) 2>&5
27110 -  ac_status=$?
27111 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 -  (exit $ac_status); }; } &&
27113 -        { ac_try='test -s conftest$ac_exeext'
27114 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115 -  (eval $ac_try) 2>&5
27116 -  ac_status=$?
27117 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 -  (exit $ac_status); }; }; then
27119 -  ac_cv_func_shl_load=yes
27120 -else
27121 -  echo "$as_me: failed program was:" >&5
27122 -sed 's/^/| /' conftest.$ac_ext >&5
27123 -
27124 -ac_cv_func_shl_load=no
27125 -fi
27126 -rm -f conftest.err conftest.$ac_objext \
27127 -      conftest$ac_exeext conftest.$ac_ext
27128 -fi
27129 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
27130 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
27131 -if test $ac_cv_func_shl_load = yes; then
27132 -  lt_cv_dlopen="shl_load"
27133 -else
27134 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
27135 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
27136 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
27137 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27138 -else
27139 -  ac_check_lib_save_LIBS=$LIBS
27140 -LIBS="-ldld  $LIBS"
27141 -cat >conftest.$ac_ext <<_ACEOF
27142 -/* confdefs.h.  */
27143 -_ACEOF
27144 -cat confdefs.h >>conftest.$ac_ext
27145 -cat >>conftest.$ac_ext <<_ACEOF
27146 -/* end confdefs.h.  */
27147 -
27148 -/* Override any gcc2 internal prototype to avoid an error.  */
27149 -#ifdef __cplusplus
27150 -extern "C"
27151 -#endif
27152 -/* We use char because int might match the return type of a gcc2
27153 -   builtin and then its argument prototype would still apply.  */
27154 -char shl_load ();
27155 -int
27156 -main ()
27157 -{
27158 -shl_load ();
27159 -  ;
27160 -  return 0;
27161 -}
27162 -_ACEOF
27163 -rm -f conftest.$ac_objext conftest$ac_exeext
27164 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27165 -  (eval $ac_link) 2>conftest.er1
27166 -  ac_status=$?
27167 -  grep -v '^ *+' conftest.er1 >conftest.err
27168 -  rm -f conftest.er1
27169 -  cat conftest.err >&5
27170 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 -  (exit $ac_status); } &&
27172 -        { ac_try='test -z "$ac_c_werror_flag"
27173 -                        || test ! -s conftest.err'
27174 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175 -  (eval $ac_try) 2>&5
27176 -  ac_status=$?
27177 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 -  (exit $ac_status); }; } &&
27179 -        { ac_try='test -s conftest$ac_exeext'
27180 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 -  (eval $ac_try) 2>&5
27182 -  ac_status=$?
27183 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 -  (exit $ac_status); }; }; then
27185 -  ac_cv_lib_dld_shl_load=yes
27186 -else
27187 -  echo "$as_me: failed program was:" >&5
27188 -sed 's/^/| /' conftest.$ac_ext >&5
27189 -
27190 -ac_cv_lib_dld_shl_load=no
27191 -fi
27192 -rm -f conftest.err conftest.$ac_objext \
27193 -      conftest$ac_exeext conftest.$ac_ext
27194 -LIBS=$ac_check_lib_save_LIBS
27195 -fi
27196 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
27197 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
27198 -if test $ac_cv_lib_dld_shl_load = yes; then
27199 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
27200 -else
27201 -  echo "$as_me:$LINENO: checking for dlopen" >&5
27202 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
27203 -if test "${ac_cv_func_dlopen+set}" = set; then
27204 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27205 -else
27206 -  cat >conftest.$ac_ext <<_ACEOF
27207 -/* confdefs.h.  */
27208 -_ACEOF
27209 -cat confdefs.h >>conftest.$ac_ext
27210 -cat >>conftest.$ac_ext <<_ACEOF
27211 -/* end confdefs.h.  */
27212 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
27213 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27214 -#define dlopen innocuous_dlopen
27215 -
27216 -/* System header to define __stub macros and hopefully few prototypes,
27217 -    which can conflict with char dlopen (); below.
27218 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27219 -    <limits.h> exists even on freestanding compilers.  */
27220 -
27221 -#ifdef __STDC__
27222 -# include <limits.h>
27223 -#else
27224 -# include <assert.h>
27225 -#endif
27226 -
27227 -#undef dlopen
27228 -
27229 -/* Override any gcc2 internal prototype to avoid an error.  */
27230 -#ifdef __cplusplus
27231 -extern "C"
27232 -{
27233 -#endif
27234 -/* We use char because int might match the return type of a gcc2
27235 -   builtin and then its argument prototype would still apply.  */
27236 -char dlopen ();
27237 -/* The GNU C library defines this for functions which it implements
27238 -    to always fail with ENOSYS.  Some functions are actually named
27239 -    something starting with __ and the normal name is an alias.  */
27240 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
27241 -choke me
27242 -#else
27243 -char (*f) () = dlopen;
27244 -#endif
27245 -#ifdef __cplusplus
27246 -}
27247 -#endif
27248 -
27249 -int
27250 -main ()
27251 -{
27252 -return f != dlopen;
27253 -  ;
27254 -  return 0;
27255 -}
27256 -_ACEOF
27257 -rm -f conftest.$ac_objext conftest$ac_exeext
27258 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27259 -  (eval $ac_link) 2>conftest.er1
27260 -  ac_status=$?
27261 -  grep -v '^ *+' conftest.er1 >conftest.err
27262 -  rm -f conftest.er1
27263 -  cat conftest.err >&5
27264 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 -  (exit $ac_status); } &&
27266 -        { ac_try='test -z "$ac_c_werror_flag"
27267 -                        || test ! -s conftest.err'
27268 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 -  (eval $ac_try) 2>&5
27270 -  ac_status=$?
27271 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 -  (exit $ac_status); }; } &&
27273 -        { ac_try='test -s conftest$ac_exeext'
27274 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275 -  (eval $ac_try) 2>&5
27276 -  ac_status=$?
27277 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 -  (exit $ac_status); }; }; then
27279 -  ac_cv_func_dlopen=yes
27280 -else
27281 -  echo "$as_me: failed program was:" >&5
27282 -sed 's/^/| /' conftest.$ac_ext >&5
27283 -
27284 -ac_cv_func_dlopen=no
27285 -fi
27286 -rm -f conftest.err conftest.$ac_objext \
27287 -      conftest$ac_exeext conftest.$ac_ext
27288 -fi
27289 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27290 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
27291 -if test $ac_cv_func_dlopen = yes; then
27292 -  lt_cv_dlopen="dlopen"
27293 -else
27294 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27295 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27296 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27297 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27298 -else
27299 -  ac_check_lib_save_LIBS=$LIBS
27300 -LIBS="-ldl  $LIBS"
27301 -cat >conftest.$ac_ext <<_ACEOF
27302 -/* confdefs.h.  */
27303 -_ACEOF
27304 -cat confdefs.h >>conftest.$ac_ext
27305 -cat >>conftest.$ac_ext <<_ACEOF
27306 -/* end confdefs.h.  */
27307 -
27308 -/* Override any gcc2 internal prototype to avoid an error.  */
27309 -#ifdef __cplusplus
27310 -extern "C"
27311 -#endif
27312 -/* We use char because int might match the return type of a gcc2
27313 -   builtin and then its argument prototype would still apply.  */
27314 -char dlopen ();
27315 -int
27316 -main ()
27317 -{
27318 -dlopen ();
27319 -  ;
27320 -  return 0;
27321 -}
27322 -_ACEOF
27323 -rm -f conftest.$ac_objext conftest$ac_exeext
27324 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27325 -  (eval $ac_link) 2>conftest.er1
27326 -  ac_status=$?
27327 -  grep -v '^ *+' conftest.er1 >conftest.err
27328 -  rm -f conftest.er1
27329 -  cat conftest.err >&5
27330 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 -  (exit $ac_status); } &&
27332 -        { ac_try='test -z "$ac_c_werror_flag"
27333 -                        || test ! -s conftest.err'
27334 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 -  (eval $ac_try) 2>&5
27336 -  ac_status=$?
27337 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 -  (exit $ac_status); }; } &&
27339 -        { ac_try='test -s conftest$ac_exeext'
27340 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341 -  (eval $ac_try) 2>&5
27342 -  ac_status=$?
27343 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 -  (exit $ac_status); }; }; then
27345 -  ac_cv_lib_dl_dlopen=yes
27346 -else
27347 -  echo "$as_me: failed program was:" >&5
27348 -sed 's/^/| /' conftest.$ac_ext >&5
27349 -
27350 -ac_cv_lib_dl_dlopen=no
27351 -fi
27352 -rm -f conftest.err conftest.$ac_objext \
27353 -      conftest$ac_exeext conftest.$ac_ext
27354 -LIBS=$ac_check_lib_save_LIBS
27355 -fi
27356 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27357 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27358 -if test $ac_cv_lib_dl_dlopen = yes; then
27359 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27360 -else
27361 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27362 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
27363 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27364 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27365 -else
27366 -  ac_check_lib_save_LIBS=$LIBS
27367 -LIBS="-lsvld  $LIBS"
27368 -cat >conftest.$ac_ext <<_ACEOF
27369 -/* confdefs.h.  */
27370 -_ACEOF
27371 -cat confdefs.h >>conftest.$ac_ext
27372 -cat >>conftest.$ac_ext <<_ACEOF
27373 -/* end confdefs.h.  */
27374 -
27375 -/* Override any gcc2 internal prototype to avoid an error.  */
27376 -#ifdef __cplusplus
27377 -extern "C"
27378 -#endif
27379 -/* We use char because int might match the return type of a gcc2
27380 -   builtin and then its argument prototype would still apply.  */
27381 -char dlopen ();
27382 -int
27383 -main ()
27384 -{
27385 -dlopen ();
27386 -  ;
27387 -  return 0;
27388 -}
27389 -_ACEOF
27390 -rm -f conftest.$ac_objext conftest$ac_exeext
27391 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27392 -  (eval $ac_link) 2>conftest.er1
27393 -  ac_status=$?
27394 -  grep -v '^ *+' conftest.er1 >conftest.err
27395 -  rm -f conftest.er1
27396 -  cat conftest.err >&5
27397 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 -  (exit $ac_status); } &&
27399 -        { ac_try='test -z "$ac_c_werror_flag"
27400 -                        || test ! -s conftest.err'
27401 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402 -  (eval $ac_try) 2>&5
27403 -  ac_status=$?
27404 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 -  (exit $ac_status); }; } &&
27406 -        { ac_try='test -s conftest$ac_exeext'
27407 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 -  (eval $ac_try) 2>&5
27409 -  ac_status=$?
27410 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 -  (exit $ac_status); }; }; then
27412 -  ac_cv_lib_svld_dlopen=yes
27413 -else
27414 -  echo "$as_me: failed program was:" >&5
27415 -sed 's/^/| /' conftest.$ac_ext >&5
27416 -
27417 -ac_cv_lib_svld_dlopen=no
27418 -fi
27419 -rm -f conftest.err conftest.$ac_objext \
27420 -      conftest$ac_exeext conftest.$ac_ext
27421 -LIBS=$ac_check_lib_save_LIBS
27422 -fi
27423 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27424 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
27425 -if test $ac_cv_lib_svld_dlopen = yes; then
27426 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27427 -else
27428 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27429 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
27430 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27431 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27432 -else
27433 -  ac_check_lib_save_LIBS=$LIBS
27434 -LIBS="-ldld  $LIBS"
27435 -cat >conftest.$ac_ext <<_ACEOF
27436 -/* confdefs.h.  */
27437 -_ACEOF
27438 -cat confdefs.h >>conftest.$ac_ext
27439 -cat >>conftest.$ac_ext <<_ACEOF
27440 -/* end confdefs.h.  */
27441 -
27442 -/* Override any gcc2 internal prototype to avoid an error.  */
27443 -#ifdef __cplusplus
27444 -extern "C"
27445 -#endif
27446 -/* We use char because int might match the return type of a gcc2
27447 -   builtin and then its argument prototype would still apply.  */
27448 -char dld_link ();
27449 -int
27450 -main ()
27451 -{
27452 -dld_link ();
27453 -  ;
27454 -  return 0;
27455 -}
27456 -_ACEOF
27457 -rm -f conftest.$ac_objext conftest$ac_exeext
27458 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27459 -  (eval $ac_link) 2>conftest.er1
27460 -  ac_status=$?
27461 -  grep -v '^ *+' conftest.er1 >conftest.err
27462 -  rm -f conftest.er1
27463 -  cat conftest.err >&5
27464 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 -  (exit $ac_status); } &&
27466 -        { ac_try='test -z "$ac_c_werror_flag"
27467 -                        || test ! -s conftest.err'
27468 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 -  (eval $ac_try) 2>&5
27470 -  ac_status=$?
27471 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 -  (exit $ac_status); }; } &&
27473 -        { ac_try='test -s conftest$ac_exeext'
27474 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27475 -  (eval $ac_try) 2>&5
27476 -  ac_status=$?
27477 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 -  (exit $ac_status); }; }; then
27479 -  ac_cv_lib_dld_dld_link=yes
27480 -else
27481 -  echo "$as_me: failed program was:" >&5
27482 -sed 's/^/| /' conftest.$ac_ext >&5
27483 -
27484 -ac_cv_lib_dld_dld_link=no
27485 -fi
27486 -rm -f conftest.err conftest.$ac_objext \
27487 -      conftest$ac_exeext conftest.$ac_ext
27488 -LIBS=$ac_check_lib_save_LIBS
27489 -fi
27490 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27491 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
27492 -if test $ac_cv_lib_dld_dld_link = yes; then
27493 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
27494 -fi
27495 -
27496 -
27497 -fi
27498 -
27499 -
27500 -fi
27501 -
27502 -
27503 -fi
27504 -
27505 -
27506 -fi
27507 -
27508 -
27509 -fi
27510 -
27511 -    ;;
27512 -  esac
27513 -
27514 -  if test "x$lt_cv_dlopen" != xno; then
27515 -    enable_dlopen=yes
27516 -  else
27517 -    enable_dlopen=no
27518 -  fi
27519 -
27520 -  case $lt_cv_dlopen in
27521 -  dlopen)
27522 -    save_CPPFLAGS="$CPPFLAGS"
27523 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27524 -
27525 -    save_LDFLAGS="$LDFLAGS"
27526 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27527 -
27528 -    save_LIBS="$LIBS"
27529 -    LIBS="$lt_cv_dlopen_libs $LIBS"
27530 -
27531 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27532 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
27533 -if test "${lt_cv_dlopen_self+set}" = set; then
27534 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27535 -else
27536 -         if test "$cross_compiling" = yes; then :
27537 -  lt_cv_dlopen_self=cross
27538 -else
27539 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27540 -  lt_status=$lt_dlunknown
27541 -  cat > conftest.$ac_ext <<EOF
27542 -#line 18074 "configure"
27543 -#include "confdefs.h"
27544 -
27545 -#if HAVE_DLFCN_H
27546 -#include <dlfcn.h>
27547 -#endif
27548 -
27549 -#include <stdio.h>
27550 -
27551 -#ifdef RTLD_GLOBAL
27552 -#  define LT_DLGLOBAL          RTLD_GLOBAL
27553 -#else
27554 -#  ifdef DL_GLOBAL
27555 -#    define LT_DLGLOBAL                DL_GLOBAL
27556 -#  else
27557 -#    define LT_DLGLOBAL                0
27558 -#  endif
27559 -#endif
27560 -
27561 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27562 -   find out it does not work in some platform. */
27563 -#ifndef LT_DLLAZY_OR_NOW
27564 -#  ifdef RTLD_LAZY
27565 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
27566 -#  else
27567 -#    ifdef DL_LAZY
27568 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
27569 -#    else
27570 -#      ifdef RTLD_NOW
27571 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
27572 -#      else
27573 -#        ifdef DL_NOW
27574 -#          define LT_DLLAZY_OR_NOW     DL_NOW
27575 -#        else
27576 -#          define LT_DLLAZY_OR_NOW     0
27577 -#        endif
27578 -#      endif
27579 -#    endif
27580 -#  endif
27581 -#endif
27582 -
27583 -#ifdef __cplusplus
27584 -extern "C" void exit (int);
27585 -#endif
27586 -
27587 -void fnord() { int i=42;}
27588 -int main ()
27589 -{
27590 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27591 -  int status = $lt_dlunknown;
27592 -
27593 -  if (self)
27594 -    {
27595 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27596 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27597 -      /* dlclose (self); */
27598 -    }
27599 -
27600 -    exit (status);
27601 -}
27602 -EOF
27603 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27604 -  (eval $ac_link) 2>&5
27605 -  ac_status=$?
27606 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27608 -    (./conftest; exit; ) 2>/dev/null
27609 -    lt_status=$?
27610 -    case x$lt_status in
27611 -      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27612 -      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27613 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
27614 -    esac
27615 -  else :
27616 -    # compilation failed
27617 -    lt_cv_dlopen_self=no
27618 -  fi
27619 -fi
27620 -rm -fr conftest*
27621 -
27622 -
27623 -fi
27624 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27625 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
27626 -
27627 -    if test "x$lt_cv_dlopen_self" = xyes; then
27628 -      LDFLAGS="$LDFLAGS $link_static_flag"
27629 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27630 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
27631 -if test "${lt_cv_dlopen_self_static+set}" = set; then
27632 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27633 -else
27634 -         if test "$cross_compiling" = yes; then :
27635 -  lt_cv_dlopen_self_static=cross
27636 -else
27637 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27638 -  lt_status=$lt_dlunknown
27639 -  cat > conftest.$ac_ext <<EOF
27640 -#line 18172 "configure"
27641 -#include "confdefs.h"
27642 -
27643 -#if HAVE_DLFCN_H
27644 -#include <dlfcn.h>
27645 -#endif
27646 -
27647 -#include <stdio.h>
27648 -
27649 -#ifdef RTLD_GLOBAL
27650 -#  define LT_DLGLOBAL          RTLD_GLOBAL
27651 -#else
27652 -#  ifdef DL_GLOBAL
27653 -#    define LT_DLGLOBAL                DL_GLOBAL
27654 -#  else
27655 -#    define LT_DLGLOBAL                0
27656 -#  endif
27657 -#endif
27658 -
27659 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27660 -   find out it does not work in some platform. */
27661 -#ifndef LT_DLLAZY_OR_NOW
27662 -#  ifdef RTLD_LAZY
27663 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
27664 -#  else
27665 -#    ifdef DL_LAZY
27666 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
27667 -#    else
27668 -#      ifdef RTLD_NOW
27669 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
27670 -#      else
27671 -#        ifdef DL_NOW
27672 -#          define LT_DLLAZY_OR_NOW     DL_NOW
27673 -#        else
27674 -#          define LT_DLLAZY_OR_NOW     0
27675 -#        endif
27676 -#      endif
27677 -#    endif
27678 -#  endif
27679 -#endif
27680 -
27681 -#ifdef __cplusplus
27682 -extern "C" void exit (int);
27683 -#endif
27684 -
27685 -void fnord() { int i=42;}
27686 -int main ()
27687 -{
27688 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27689 -  int status = $lt_dlunknown;
27690 -
27691 -  if (self)
27692 -    {
27693 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27694 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27695 -      /* dlclose (self); */
27696 -    }
27697 -
27698 -    exit (status);
27699 -}
27700 -EOF
27701 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27702 -  (eval $ac_link) 2>&5
27703 -  ac_status=$?
27704 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27706 -    (./conftest; exit; ) 2>/dev/null
27707 -    lt_status=$?
27708 -    case x$lt_status in
27709 -      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27710 -      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27711 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
27712 -    esac
27713 -  else :
27714 -    # compilation failed
27715 -    lt_cv_dlopen_self_static=no
27716 -  fi
27717 -fi
27718 -rm -fr conftest*
27719 -
27720 -
27721 -fi
27722 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27723 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
27724 -    fi
27725 -
27726 -    CPPFLAGS="$save_CPPFLAGS"
27727 -    LDFLAGS="$save_LDFLAGS"
27728 -    LIBS="$save_LIBS"
27729 -    ;;
27730 -  esac
27731 -
27732 -  case $lt_cv_dlopen_self in
27733 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27734 -  *) enable_dlopen_self=unknown ;;
27735 -  esac
27736 -
27737 -  case $lt_cv_dlopen_self_static in
27738 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27739 -  *) enable_dlopen_self_static=unknown ;;
27740 -  esac
27741 -fi
27742 -
27743  
27744  # The else clause should only fire when bootstrapping the
27745  # libtool distribution, otherwise you forgot to ship ltmain.sh
27746 @@ -18286,7 +19042,7 @@ if test -f "$ltmain"; then
27747    # Now quote all the things that may contain metacharacters while being
27748    # careful not to overquote the AC_SUBSTed values.  We take copies of the
27749    # variables and quote the copies for generation of the libtool script.
27750 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27751 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27752      SED SHELL STRIP \
27753      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27754      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27755 @@ -18313,6 +19069,7 @@ if test -f "$ltmain"; then
27756      predeps_GCJ \
27757      postdeps_GCJ \
27758      compiler_lib_search_path_GCJ \
27759 +    compiler_lib_search_dirs_GCJ \
27760      archive_cmds_GCJ \
27761      archive_expsym_cmds_GCJ \
27762      postinstall_cmds_GCJ \
27763 @@ -18328,6 +19085,7 @@ if test -f "$ltmain"; then
27764      module_cmds_GCJ \
27765      module_expsym_cmds_GCJ \
27766      lt_cv_prog_compiler_c_o_GCJ \
27767 +    fix_srcfile_path_GCJ \
27768      exclude_expsyms_GCJ \
27769      include_expsyms_GCJ; do
27770  
27771 @@ -18387,6 +19145,12 @@ fast_install=$enable_fast_install
27772  # The host system.
27773  host_alias=$host_alias
27774  host=$host
27775 +host_os=$host_os
27776 +
27777 +# The build system.
27778 +build_alias=$build_alias
27779 +build=$build
27780 +build_os=$build_os
27781  
27782  # An echo program that does not interpret backslashes.
27783  echo=$lt_echo
27784 @@ -18398,6 +19162,9 @@ AR_FLAGS=$lt_AR_FLAGS
27785  # A C compiler.
27786  LTCC=$lt_LTCC
27787  
27788 +# LTCC compiler flags.
27789 +LTCFLAGS=$lt_LTCFLAGS
27790 +
27791  # A language-specific compiler.
27792  CC=$lt_compiler_GCJ
27793  
27794 @@ -18463,7 +19230,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
27795  # Does compiler simultaneously support -c and -o options?
27796  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27797  
27798 -# Must we lock files when doing compilation ?
27799 +# Must we lock files when doing compilation?
27800  need_locks=$lt_need_locks
27801  
27802  # Do we need the lib prefix for modules?
27803 @@ -18551,6 +19318,10 @@ predeps=$lt_predeps_GCJ
27804  # shared library.
27805  postdeps=$lt_postdeps_GCJ
27806  
27807 +# The directories searched by this compiler when creating a shared
27808 +# library
27809 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27810 +
27811  # The library search path used internally by the compiler when linking
27812  # a shared library.
27813  compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27814 @@ -18639,7 +19410,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27815  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27816  
27817  # Fix the shell variable \$srcfile for the compiler.
27818 -fix_srcfile_path="$fix_srcfile_path_GCJ"
27819 +fix_srcfile_path=$lt_fix_srcfile_path
27820  
27821  # Set to yes if exported symbols are required.
27822  always_export_symbols=$always_export_symbols_GCJ
27823 @@ -18688,7 +19459,6 @@ CC="$lt_save_CC"
27824        RC)
27825  
27826  
27827 -
27828  # Source file extension for RC test sources.
27829  ac_ext=rc
27830  
27831 @@ -18697,7 +19467,7 @@ objext=o
27832  objext_RC=$objext
27833  
27834  # Code to be used in simple compile tests
27835 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
27836 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
27837  
27838  # Code to be used in simple link tests
27839  lt_simple_link_test_code="$lt_simple_compile_test_code"
27840 @@ -18707,15 +19477,42 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
27841  # If no C compiler was specified, use CC.
27842  LTCC=${LTCC-"$CC"}
27843  
27844 +# If no C compiler flags were specified, use CFLAGS.
27845 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27846 +
27847  # Allow CC to be a program name with arguments.
27848  compiler=$CC
27849  
27850  
27851 +# save warnings/boilerplate of simple test code
27852 +ac_outfile=conftest.$ac_objext
27853 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27854 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27855 +_lt_compiler_boilerplate=`cat conftest.err`
27856 +$rm conftest*
27857 +
27858 +ac_outfile=conftest.$ac_objext
27859 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
27860 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27861 +_lt_linker_boilerplate=`cat conftest.err`
27862 +$rm -r conftest*
27863 +
27864 +
27865  # Allow CC to be a program name with arguments.
27866  lt_save_CC="$CC"
27867  CC=${RC-"windres"}
27868  compiler=$CC
27869  compiler_RC=$CC
27870 +for cc_temp in $compiler""; do
27871 +  case $cc_temp in
27872 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27873 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27874 +    \-*) ;;
27875 +    *) break;;
27876 +  esac
27877 +done
27878 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27879 +
27880  lt_cv_prog_compiler_c_o_RC=yes
27881  
27882  # The else clause should only fire when bootstrapping the
27883 @@ -18731,7 +19528,7 @@ if test -f "$ltmain"; then
27884    # Now quote all the things that may contain metacharacters while being
27885    # careful not to overquote the AC_SUBSTed values.  We take copies of the
27886    # variables and quote the copies for generation of the libtool script.
27887 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27888 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27889      SED SHELL STRIP \
27890      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27891      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27892 @@ -18758,6 +19555,7 @@ if test -f "$ltmain"; then
27893      predeps_RC \
27894      postdeps_RC \
27895      compiler_lib_search_path_RC \
27896 +    compiler_lib_search_dirs_RC \
27897      archive_cmds_RC \
27898      archive_expsym_cmds_RC \
27899      postinstall_cmds_RC \
27900 @@ -18773,6 +19571,7 @@ if test -f "$ltmain"; then
27901      module_cmds_RC \
27902      module_expsym_cmds_RC \
27903      lt_cv_prog_compiler_c_o_RC \
27904 +    fix_srcfile_path_RC \
27905      exclude_expsyms_RC \
27906      include_expsyms_RC; do
27907  
27908 @@ -18832,6 +19631,12 @@ fast_install=$enable_fast_install
27909  # The host system.
27910  host_alias=$host_alias
27911  host=$host
27912 +host_os=$host_os
27913 +
27914 +# The build system.
27915 +build_alias=$build_alias
27916 +build=$build
27917 +build_os=$build_os
27918  
27919  # An echo program that does not interpret backslashes.
27920  echo=$lt_echo
27921 @@ -18843,6 +19648,9 @@ AR_FLAGS=$lt_AR_FLAGS
27922  # A C compiler.
27923  LTCC=$lt_LTCC
27924  
27925 +# LTCC compiler flags.
27926 +LTCFLAGS=$lt_LTCFLAGS
27927 +
27928  # A language-specific compiler.
27929  CC=$lt_compiler_RC
27930  
27931 @@ -18908,7 +19716,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
27932  # Does compiler simultaneously support -c and -o options?
27933  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27934  
27935 -# Must we lock files when doing compilation ?
27936 +# Must we lock files when doing compilation?
27937  need_locks=$lt_need_locks
27938  
27939  # Do we need the lib prefix for modules?
27940 @@ -18996,6 +19804,10 @@ predeps=$lt_predeps_RC
27941  # shared library.
27942  postdeps=$lt_postdeps_RC
27943  
27944 +# The directories searched by this compiler when creating a shared
27945 +# library
27946 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
27947 +
27948  # The library search path used internally by the compiler when linking
27949  # a shared library.
27950  compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27951 @@ -19084,7 +19896,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27952  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27953  
27954  # Fix the shell variable \$srcfile for the compiler.
27955 -fix_srcfile_path="$fix_srcfile_path_RC"
27956 +fix_srcfile_path=$lt_fix_srcfile_path
27957  
27958  # Set to yes if exported symbols are required.
27959  always_export_symbols=$always_export_symbols_RC
27960 @@ -19128,8 +19940,8 @@ CC="$lt_save_CC"
27961         ;;
27962  
27963        *)
27964 -       { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27965 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27966 +       { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27967 +$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27968     { (exit 1); exit 1; }; }
27969         ;;
27970        esac
27971 @@ -19148,8 +19960,8 @@ echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27972      chmod +x "$ofile"
27973    else
27974      rm -f "${ofile}T"
27975 -    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27976 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27977 +    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27978 +$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27979     { (exit 1); exit 1; }; }
27980    fi
27981  fi
27982 @@ -19185,20 +19997,20 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27983  
27984  
27985  
27986 -# Check whether --with-mysql or --without-mysql was given.
27987 +# Check whether --with-mysql was given.
27988  if test "${with_mysql+set}" = set; then
27989 -  withval="$with_mysql"
27990 +  withval=$with_mysql;
27991 +fi
27992  
27993 -fi;
27994 -# Check whether --enable-debug or --disable-debug was given.
27995 +# Check whether --enable-debug was given.
27996  if test "${enable_debug+set}" = set; then
27997 -  enableval="$enable_debug"
27998 -
27999 +  enableval=$enable_debug;
28000  cat >>confdefs.h <<\_ACEOF
28001  #define DEBUG 1
28002  _ACEOF
28003  
28004 -fi;
28005 +fi
28006 +
28007  
28008  case "$target_os" in
28009  linux*)
28010 @@ -19237,10 +20049,10 @@ else
28011  fi
28012  
28013  
28014 -echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
28015 -echo $ECHO_N "checking whether the linker accepts -znodelete... $ECHO_C" >&6
28016 +{ $as_echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
28017 +$as_echo_n "checking whether the linker accepts -znodelete... " >&6; }
28018  if test "${nss_mysql_cv_cc_znodelete+set}" = set; then
28019 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28020 +  $as_echo_n "(cached) " >&6
28021  else
28022  
28023      SAVELIBS=$LIBS
28024 @@ -19261,40 +20073,41 @@ main ()
28025  }
28026  _ACEOF
28027  rm -f conftest.$ac_objext conftest$ac_exeext
28028 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28029 -  (eval $ac_link) 2>conftest.er1
28030 +if { (ac_try="$ac_link"
28031 +case "(($ac_try" in
28032 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033 +  *) ac_try_echo=$ac_try;;
28034 +esac
28035 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28036 +$as_echo "$ac_try_echo") >&5
28037 +  (eval "$ac_link") 2>conftest.er1
28038    ac_status=$?
28039    grep -v '^ *+' conftest.er1 >conftest.err
28040    rm -f conftest.er1
28041    cat conftest.err >&5
28042 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 -  (exit $ac_status); } &&
28044 -        { ac_try='test -z "$ac_c_werror_flag"
28045 -                        || test ! -s conftest.err'
28046 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28047 -  (eval $ac_try) 2>&5
28048 -  ac_status=$?
28049 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 -  (exit $ac_status); }; } &&
28051 -        { ac_try='test -s conftest$ac_exeext'
28052 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053 -  (eval $ac_try) 2>&5
28054 -  ac_status=$?
28055 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 -  (exit $ac_status); }; }; then
28057 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 +  (exit $ac_status); } && {
28059 +        test -z "$ac_c_werror_flag" ||
28060 +        test ! -s conftest.err
28061 +       } && test -s conftest$ac_exeext && {
28062 +        test "$cross_compiling" = yes ||
28063 +        $as_test_x conftest$ac_exeext
28064 +       }; then
28065    nss_mysql_cv_cc_znodelete=yes
28066  else
28067 -  echo "$as_me: failed program was:" >&5
28068 +  $as_echo "$as_me: failed program was:" >&5
28069  sed 's/^/| /' conftest.$ac_ext >&5
28070  
28071 -nss_mysql_cv_cc_znodelete=no
28072 +       nss_mysql_cv_cc_znodelete=no
28073  fi
28074 -rm -f conftest.err conftest.$ac_objext \
28075 +
28076 +rm -rf conftest.dSYM
28077 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28078        conftest$ac_exeext conftest.$ac_ext
28079      LIBS=$SAVELIBS
28080  fi
28081 -echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
28082 -echo "${ECHO_T}$nss_mysql_cv_cc_znodelete" >&6
28083 +{ $as_echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
28084 +$as_echo "$nss_mysql_cv_cc_znodelete" >&6; }
28085  if test $nss_mysql_cv_cc_znodelete = "yes"; then
28086      LIBS="-Wl,-znodelete $SAVELIBS"
28087  fi
28088 @@ -19311,8 +20124,8 @@ baselist="$with_mysql \
28089            /opt/local \
28090            /opt/local/mysql"
28091  
28092 -echo "$as_me:$LINENO: checking for MySQL headers" >&5
28093 -echo $ECHO_N "checking for MySQL headers... $ECHO_C" >&6
28094 +{ $as_echo "$as_me:$LINENO: checking for MySQL headers" >&5
28095 +$as_echo_n "checking for MySQL headers... " >&6; }
28096  for f in $baselist; do
28097      if test -f "$f/include/mysql/mysql.h"
28098      then
28099 @@ -19329,17 +20142,17 @@ done
28100  
28101  if test -n "$MYSQL_INC_DIR"
28102  then
28103 -    echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
28104 -echo "${ECHO_T}$MYSQL_INC_DIR" >&6
28105 +    { $as_echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
28106 +$as_echo "$MYSQL_INC_DIR" >&6; }
28107      CPPFLAGS="-I $MYSQL_INC_DIR $CPPFLAGS"
28108  else
28109 -    { { echo "$as_me:$LINENO: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&5
28110 -echo "$as_me: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&2;}
28111 +    { { $as_echo "$as_me:$LINENO: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&5
28112 +$as_echo "$as_me: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&2;}
28113     { (exit 1); exit 1; }; }
28114  fi
28115  
28116 -echo "$as_me:$LINENO: checking for MySQL libraries" >&5
28117 -echo $ECHO_N "checking for MySQL libraries... $ECHO_C" >&6
28118 +{ $as_echo "$as_me:$LINENO: checking for MySQL libraries" >&5
28119 +$as_echo_n "checking for MySQL libraries... " >&6; }
28120  for f in $baselist; do
28121      if test -f "$f/lib/libmysqlclient.so"
28122      then
28123 @@ -19370,22 +20183,22 @@ done
28124  
28125  if test -n "$MYSQL_LIB_DIR"
28126  then
28127 -    echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
28128 -echo "${ECHO_T}$MYSQL_LIB_DIR" >&6
28129 +    { $as_echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
28130 +$as_echo "$MYSQL_LIB_DIR" >&6; }
28131      LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS"
28132  else
28133 -    { { echo "$as_me:$LINENO: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&5
28134 -echo "$as_me: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&2;}
28135 +    { { $as_echo "$as_me:$LINENO: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&5
28136 +$as_echo "$as_me: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&2;}
28137     { (exit 1); exit 1; }; }
28138  fi
28139  
28140  
28141  
28142  
28143 -echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
28144 -echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
28145 +{ $as_echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
28146 +$as_echo_n "checking for getsockname in -lsocket... " >&6; }
28147  if test "${ac_cv_lib_socket_getsockname+set}" = set; then
28148 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28149 +  $as_echo_n "(cached) " >&6
28150  else
28151    ac_check_lib_save_LIBS=$LIBS
28152  LIBS="-lsocket  $LIBS"
28153 @@ -19396,57 +20209,58 @@ cat confdefs.h >>conftest.$ac_ext
28154  cat >>conftest.$ac_ext <<_ACEOF
28155  /* end confdefs.h.  */
28156  
28157 -/* Override any gcc2 internal prototype to avoid an error.  */
28158 +/* Override any GCC internal prototype to avoid an error.
28159 +   Use char because int might match the return type of a GCC
28160 +   builtin and then its argument prototype would still apply.  */
28161  #ifdef __cplusplus
28162  extern "C"
28163  #endif
28164 -/* We use char because int might match the return type of a gcc2
28165 -   builtin and then its argument prototype would still apply.  */
28166  char getsockname ();
28167  int
28168  main ()
28169  {
28170 -getsockname ();
28171 +return getsockname ();
28172    ;
28173    return 0;
28174  }
28175  _ACEOF
28176  rm -f conftest.$ac_objext conftest$ac_exeext
28177 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28178 -  (eval $ac_link) 2>conftest.er1
28179 +if { (ac_try="$ac_link"
28180 +case "(($ac_try" in
28181 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 +  *) ac_try_echo=$ac_try;;
28183 +esac
28184 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28185 +$as_echo "$ac_try_echo") >&5
28186 +  (eval "$ac_link") 2>conftest.er1
28187    ac_status=$?
28188    grep -v '^ *+' conftest.er1 >conftest.err
28189    rm -f conftest.er1
28190    cat conftest.err >&5
28191 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 -  (exit $ac_status); } &&
28193 -        { ac_try='test -z "$ac_c_werror_flag"
28194 -                        || test ! -s conftest.err'
28195 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196 -  (eval $ac_try) 2>&5
28197 -  ac_status=$?
28198 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 -  (exit $ac_status); }; } &&
28200 -        { ac_try='test -s conftest$ac_exeext'
28201 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 -  (eval $ac_try) 2>&5
28203 -  ac_status=$?
28204 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 -  (exit $ac_status); }; }; then
28206 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 +  (exit $ac_status); } && {
28208 +        test -z "$ac_c_werror_flag" ||
28209 +        test ! -s conftest.err
28210 +       } && test -s conftest$ac_exeext && {
28211 +        test "$cross_compiling" = yes ||
28212 +        $as_test_x conftest$ac_exeext
28213 +       }; then
28214    ac_cv_lib_socket_getsockname=yes
28215  else
28216 -  echo "$as_me: failed program was:" >&5
28217 +  $as_echo "$as_me: failed program was:" >&5
28218  sed 's/^/| /' conftest.$ac_ext >&5
28219  
28220 -ac_cv_lib_socket_getsockname=no
28221 +       ac_cv_lib_socket_getsockname=no
28222  fi
28223 -rm -f conftest.err conftest.$ac_objext \
28224 +
28225 +rm -rf conftest.dSYM
28226 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28227        conftest$ac_exeext conftest.$ac_ext
28228  LIBS=$ac_check_lib_save_LIBS
28229  fi
28230 -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
28231 -echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
28232 -if test $ac_cv_lib_socket_getsockname = yes; then
28233 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
28234 +$as_echo "$ac_cv_lib_socket_getsockname" >&6; }
28235 +if test "x$ac_cv_lib_socket_getsockname" = x""yes; then
28236    cat >>confdefs.h <<_ACEOF
28237  #define HAVE_LIBSOCKET 1
28238  _ACEOF
28239 @@ -19456,10 +20270,10 @@ _ACEOF
28240  fi
28241  
28242  
28243 -echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28244 -echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28245 +{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28246 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
28247  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28248 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28249 +  $as_echo_n "(cached) " >&6
28250  else
28251    ac_check_lib_save_LIBS=$LIBS
28252  LIBS="-lnsl  $LIBS"
28253 @@ -19470,57 +20284,58 @@ cat confdefs.h >>conftest.$ac_ext
28254  cat >>conftest.$ac_ext <<_ACEOF
28255  /* end confdefs.h.  */
28256  
28257 -/* Override any gcc2 internal prototype to avoid an error.  */
28258 +/* Override any GCC internal prototype to avoid an error.
28259 +   Use char because int might match the return type of a GCC
28260 +   builtin and then its argument prototype would still apply.  */
28261  #ifdef __cplusplus
28262  extern "C"
28263  #endif
28264 -/* We use char because int might match the return type of a gcc2
28265 -   builtin and then its argument prototype would still apply.  */
28266  char gethostbyname ();
28267  int
28268  main ()
28269  {
28270 -gethostbyname ();
28271 +return gethostbyname ();
28272    ;
28273    return 0;
28274  }
28275  _ACEOF
28276  rm -f conftest.$ac_objext conftest$ac_exeext
28277 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28278 -  (eval $ac_link) 2>conftest.er1
28279 +if { (ac_try="$ac_link"
28280 +case "(($ac_try" in
28281 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28282 +  *) ac_try_echo=$ac_try;;
28283 +esac
28284 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28285 +$as_echo "$ac_try_echo") >&5
28286 +  (eval "$ac_link") 2>conftest.er1
28287    ac_status=$?
28288    grep -v '^ *+' conftest.er1 >conftest.err
28289    rm -f conftest.er1
28290    cat conftest.err >&5
28291 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 -  (exit $ac_status); } &&
28293 -        { ac_try='test -z "$ac_c_werror_flag"
28294 -                        || test ! -s conftest.err'
28295 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 -  (eval $ac_try) 2>&5
28297 -  ac_status=$?
28298 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 -  (exit $ac_status); }; } &&
28300 -        { ac_try='test -s conftest$ac_exeext'
28301 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302 -  (eval $ac_try) 2>&5
28303 -  ac_status=$?
28304 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 -  (exit $ac_status); }; }; then
28306 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 +  (exit $ac_status); } && {
28308 +        test -z "$ac_c_werror_flag" ||
28309 +        test ! -s conftest.err
28310 +       } && test -s conftest$ac_exeext && {
28311 +        test "$cross_compiling" = yes ||
28312 +        $as_test_x conftest$ac_exeext
28313 +       }; then
28314    ac_cv_lib_nsl_gethostbyname=yes
28315  else
28316 -  echo "$as_me: failed program was:" >&5
28317 +  $as_echo "$as_me: failed program was:" >&5
28318  sed 's/^/| /' conftest.$ac_ext >&5
28319  
28320 -ac_cv_lib_nsl_gethostbyname=no
28321 +       ac_cv_lib_nsl_gethostbyname=no
28322  fi
28323 -rm -f conftest.err conftest.$ac_objext \
28324 +
28325 +rm -rf conftest.dSYM
28326 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28327        conftest$ac_exeext conftest.$ac_ext
28328  LIBS=$ac_check_lib_save_LIBS
28329  fi
28330 -echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28331 -echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28332 -if test $ac_cv_lib_nsl_gethostbyname = yes; then
28333 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28334 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
28335 +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
28336    cat >>confdefs.h <<_ACEOF
28337  #define HAVE_LIBNSL 1
28338  _ACEOF
28339 @@ -19530,10 +20345,10 @@ _ACEOF
28340  fi
28341  
28342  
28343 -echo "$as_me:$LINENO: checking for floor in -lm" >&5
28344 -echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
28345 +{ $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5
28346 +$as_echo_n "checking for floor in -lm... " >&6; }
28347  if test "${ac_cv_lib_m_floor+set}" = set; then
28348 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28349 +  $as_echo_n "(cached) " >&6
28350  else
28351    ac_check_lib_save_LIBS=$LIBS
28352  LIBS="-lm  $LIBS"
28353 @@ -19544,57 +20359,58 @@ cat confdefs.h >>conftest.$ac_ext
28354  cat >>conftest.$ac_ext <<_ACEOF
28355  /* end confdefs.h.  */
28356  
28357 -/* Override any gcc2 internal prototype to avoid an error.  */
28358 +/* Override any GCC internal prototype to avoid an error.
28359 +   Use char because int might match the return type of a GCC
28360 +   builtin and then its argument prototype would still apply.  */
28361  #ifdef __cplusplus
28362  extern "C"
28363  #endif
28364 -/* We use char because int might match the return type of a gcc2
28365 -   builtin and then its argument prototype would still apply.  */
28366  char floor ();
28367  int
28368  main ()
28369  {
28370 -floor ();
28371 +return floor ();
28372    ;
28373    return 0;
28374  }
28375  _ACEOF
28376  rm -f conftest.$ac_objext conftest$ac_exeext
28377 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28378 -  (eval $ac_link) 2>conftest.er1
28379 +if { (ac_try="$ac_link"
28380 +case "(($ac_try" in
28381 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 +  *) ac_try_echo=$ac_try;;
28383 +esac
28384 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28385 +$as_echo "$ac_try_echo") >&5
28386 +  (eval "$ac_link") 2>conftest.er1
28387    ac_status=$?
28388    grep -v '^ *+' conftest.er1 >conftest.err
28389    rm -f conftest.er1
28390    cat conftest.err >&5
28391 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 -  (exit $ac_status); } &&
28393 -        { ac_try='test -z "$ac_c_werror_flag"
28394 -                        || test ! -s conftest.err'
28395 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 -  (eval $ac_try) 2>&5
28397 -  ac_status=$?
28398 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 -  (exit $ac_status); }; } &&
28400 -        { ac_try='test -s conftest$ac_exeext'
28401 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 -  (eval $ac_try) 2>&5
28403 -  ac_status=$?
28404 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 -  (exit $ac_status); }; }; then
28406 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 +  (exit $ac_status); } && {
28408 +        test -z "$ac_c_werror_flag" ||
28409 +        test ! -s conftest.err
28410 +       } && test -s conftest$ac_exeext && {
28411 +        test "$cross_compiling" = yes ||
28412 +        $as_test_x conftest$ac_exeext
28413 +       }; then
28414    ac_cv_lib_m_floor=yes
28415  else
28416 -  echo "$as_me: failed program was:" >&5
28417 +  $as_echo "$as_me: failed program was:" >&5
28418  sed 's/^/| /' conftest.$ac_ext >&5
28419  
28420 -ac_cv_lib_m_floor=no
28421 +       ac_cv_lib_m_floor=no
28422  fi
28423 -rm -f conftest.err conftest.$ac_objext \
28424 +
28425 +rm -rf conftest.dSYM
28426 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28427        conftest$ac_exeext conftest.$ac_ext
28428  LIBS=$ac_check_lib_save_LIBS
28429  fi
28430 -echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
28431 -echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
28432 -if test $ac_cv_lib_m_floor = yes; then
28433 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
28434 +$as_echo "$ac_cv_lib_m_floor" >&6; }
28435 +if test "x$ac_cv_lib_m_floor" = x""yes; then
28436    cat >>confdefs.h <<_ACEOF
28437  #define HAVE_LIBM 1
28438  _ACEOF
28439 @@ -19604,10 +20420,10 @@ _ACEOF
28440  fi
28441  
28442  
28443 -echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
28444 -echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
28445 +{ $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
28446 +$as_echo_n "checking for dlsym in -ldl... " >&6; }
28447  if test "${ac_cv_lib_dl_dlsym+set}" = set; then
28448 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28449 +  $as_echo_n "(cached) " >&6
28450  else
28451    ac_check_lib_save_LIBS=$LIBS
28452  LIBS="-ldl  $LIBS"
28453 @@ -19618,57 +20434,58 @@ cat confdefs.h >>conftest.$ac_ext
28454  cat >>conftest.$ac_ext <<_ACEOF
28455  /* end confdefs.h.  */
28456  
28457 -/* Override any gcc2 internal prototype to avoid an error.  */
28458 +/* Override any GCC internal prototype to avoid an error.
28459 +   Use char because int might match the return type of a GCC
28460 +   builtin and then its argument prototype would still apply.  */
28461  #ifdef __cplusplus
28462  extern "C"
28463  #endif
28464 -/* We use char because int might match the return type of a gcc2
28465 -   builtin and then its argument prototype would still apply.  */
28466  char dlsym ();
28467  int
28468  main ()
28469  {
28470 -dlsym ();
28471 +return dlsym ();
28472    ;
28473    return 0;
28474  }
28475  _ACEOF
28476  rm -f conftest.$ac_objext conftest$ac_exeext
28477 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28478 -  (eval $ac_link) 2>conftest.er1
28479 +if { (ac_try="$ac_link"
28480 +case "(($ac_try" in
28481 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 +  *) ac_try_echo=$ac_try;;
28483 +esac
28484 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28485 +$as_echo "$ac_try_echo") >&5
28486 +  (eval "$ac_link") 2>conftest.er1
28487    ac_status=$?
28488    grep -v '^ *+' conftest.er1 >conftest.err
28489    rm -f conftest.er1
28490    cat conftest.err >&5
28491 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 -  (exit $ac_status); } &&
28493 -        { ac_try='test -z "$ac_c_werror_flag"
28494 -                        || test ! -s conftest.err'
28495 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28496 -  (eval $ac_try) 2>&5
28497 -  ac_status=$?
28498 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 -  (exit $ac_status); }; } &&
28500 -        { ac_try='test -s conftest$ac_exeext'
28501 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28502 -  (eval $ac_try) 2>&5
28503 -  ac_status=$?
28504 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 -  (exit $ac_status); }; }; then
28506 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 +  (exit $ac_status); } && {
28508 +        test -z "$ac_c_werror_flag" ||
28509 +        test ! -s conftest.err
28510 +       } && test -s conftest$ac_exeext && {
28511 +        test "$cross_compiling" = yes ||
28512 +        $as_test_x conftest$ac_exeext
28513 +       }; then
28514    ac_cv_lib_dl_dlsym=yes
28515  else
28516 -  echo "$as_me: failed program was:" >&5
28517 +  $as_echo "$as_me: failed program was:" >&5
28518  sed 's/^/| /' conftest.$ac_ext >&5
28519  
28520 -ac_cv_lib_dl_dlsym=no
28521 +       ac_cv_lib_dl_dlsym=no
28522  fi
28523 -rm -f conftest.err conftest.$ac_objext \
28524 +
28525 +rm -rf conftest.dSYM
28526 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28527        conftest$ac_exeext conftest.$ac_ext
28528  LIBS=$ac_check_lib_save_LIBS
28529  fi
28530 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
28531 -echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
28532 -if test $ac_cv_lib_dl_dlsym = yes; then
28533 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
28534 +$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
28535 +if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
28536    cat >>confdefs.h <<_ACEOF
28537  #define HAVE_LIBDL 1
28538  _ACEOF
28539 @@ -19678,10 +20495,10 @@ _ACEOF
28540  fi
28541  
28542  
28543 -echo "$as_me:$LINENO: checking for compress in -lz" >&5
28544 -echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
28545 +{ $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
28546 +$as_echo_n "checking for compress in -lz... " >&6; }
28547  if test "${ac_cv_lib_z_compress+set}" = set; then
28548 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28549 +  $as_echo_n "(cached) " >&6
28550  else
28551    ac_check_lib_save_LIBS=$LIBS
28552  LIBS="-lz  $LIBS"
28553 @@ -19692,57 +20509,58 @@ cat confdefs.h >>conftest.$ac_ext
28554  cat >>conftest.$ac_ext <<_ACEOF
28555  /* end confdefs.h.  */
28556  
28557 -/* Override any gcc2 internal prototype to avoid an error.  */
28558 +/* Override any GCC internal prototype to avoid an error.
28559 +   Use char because int might match the return type of a GCC
28560 +   builtin and then its argument prototype would still apply.  */
28561  #ifdef __cplusplus
28562  extern "C"
28563  #endif
28564 -/* We use char because int might match the return type of a gcc2
28565 -   builtin and then its argument prototype would still apply.  */
28566  char compress ();
28567  int
28568  main ()
28569  {
28570 -compress ();
28571 +return compress ();
28572    ;
28573    return 0;
28574  }
28575  _ACEOF
28576  rm -f conftest.$ac_objext conftest$ac_exeext
28577 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28578 -  (eval $ac_link) 2>conftest.er1
28579 +if { (ac_try="$ac_link"
28580 +case "(($ac_try" in
28581 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582 +  *) ac_try_echo=$ac_try;;
28583 +esac
28584 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28585 +$as_echo "$ac_try_echo") >&5
28586 +  (eval "$ac_link") 2>conftest.er1
28587    ac_status=$?
28588    grep -v '^ *+' conftest.er1 >conftest.err
28589    rm -f conftest.er1
28590    cat conftest.err >&5
28591 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 -  (exit $ac_status); } &&
28593 -        { ac_try='test -z "$ac_c_werror_flag"
28594 -                        || test ! -s conftest.err'
28595 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 -  (eval $ac_try) 2>&5
28597 -  ac_status=$?
28598 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 -  (exit $ac_status); }; } &&
28600 -        { ac_try='test -s conftest$ac_exeext'
28601 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602 -  (eval $ac_try) 2>&5
28603 -  ac_status=$?
28604 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 -  (exit $ac_status); }; }; then
28606 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 +  (exit $ac_status); } && {
28608 +        test -z "$ac_c_werror_flag" ||
28609 +        test ! -s conftest.err
28610 +       } && test -s conftest$ac_exeext && {
28611 +        test "$cross_compiling" = yes ||
28612 +        $as_test_x conftest$ac_exeext
28613 +       }; then
28614    ac_cv_lib_z_compress=yes
28615  else
28616 -  echo "$as_me: failed program was:" >&5
28617 +  $as_echo "$as_me: failed program was:" >&5
28618  sed 's/^/| /' conftest.$ac_ext >&5
28619  
28620 -ac_cv_lib_z_compress=no
28621 +       ac_cv_lib_z_compress=no
28622  fi
28623 -rm -f conftest.err conftest.$ac_objext \
28624 +
28625 +rm -rf conftest.dSYM
28626 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28627        conftest$ac_exeext conftest.$ac_ext
28628  LIBS=$ac_check_lib_save_LIBS
28629  fi
28630 -echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28631 -echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
28632 -if test $ac_cv_lib_z_compress = yes; then
28633 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28634 +$as_echo "$ac_cv_lib_z_compress" >&6; }
28635 +if test "x$ac_cv_lib_z_compress" = x""yes; then
28636    cat >>confdefs.h <<_ACEOF
28637  #define HAVE_LIBZ 1
28638  _ACEOF
28639 @@ -19753,10 +20571,10 @@ fi
28640  
28641  
28642  
28643 -echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
28644 -echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
28645 +{ $as_echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
28646 +$as_echo_n "checking for main in -lmysqlclient... " >&6; }
28647  if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
28648 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28649 +  $as_echo_n "(cached) " >&6
28650  else
28651    ac_check_lib_save_LIBS=$LIBS
28652  LIBS="-lmysqlclient  $LIBS"
28653 @@ -19771,47 +20589,48 @@ cat >>conftest.$ac_ext <<_ACEOF
28654  int
28655  main ()
28656  {
28657 -main ();
28658 +return main ();
28659    ;
28660    return 0;
28661  }
28662  _ACEOF
28663  rm -f conftest.$ac_objext conftest$ac_exeext
28664 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28665 -  (eval $ac_link) 2>conftest.er1
28666 +if { (ac_try="$ac_link"
28667 +case "(($ac_try" in
28668 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 +  *) ac_try_echo=$ac_try;;
28670 +esac
28671 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28672 +$as_echo "$ac_try_echo") >&5
28673 +  (eval "$ac_link") 2>conftest.er1
28674    ac_status=$?
28675    grep -v '^ *+' conftest.er1 >conftest.err
28676    rm -f conftest.er1
28677    cat conftest.err >&5
28678 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 -  (exit $ac_status); } &&
28680 -        { ac_try='test -z "$ac_c_werror_flag"
28681 -                        || test ! -s conftest.err'
28682 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 -  (eval $ac_try) 2>&5
28684 -  ac_status=$?
28685 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 -  (exit $ac_status); }; } &&
28687 -        { ac_try='test -s conftest$ac_exeext'
28688 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28689 -  (eval $ac_try) 2>&5
28690 -  ac_status=$?
28691 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 -  (exit $ac_status); }; }; then
28693 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 +  (exit $ac_status); } && {
28695 +        test -z "$ac_c_werror_flag" ||
28696 +        test ! -s conftest.err
28697 +       } && test -s conftest$ac_exeext && {
28698 +        test "$cross_compiling" = yes ||
28699 +        $as_test_x conftest$ac_exeext
28700 +       }; then
28701    ac_cv_lib_mysqlclient_main=yes
28702  else
28703 -  echo "$as_me: failed program was:" >&5
28704 +  $as_echo "$as_me: failed program was:" >&5
28705  sed 's/^/| /' conftest.$ac_ext >&5
28706  
28707 -ac_cv_lib_mysqlclient_main=no
28708 +       ac_cv_lib_mysqlclient_main=no
28709  fi
28710 -rm -f conftest.err conftest.$ac_objext \
28711 +
28712 +rm -rf conftest.dSYM
28713 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28714        conftest$ac_exeext conftest.$ac_ext
28715  LIBS=$ac_check_lib_save_LIBS
28716  fi
28717 -echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
28718 -echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
28719 -if test $ac_cv_lib_mysqlclient_main = yes; then
28720 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
28721 +$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
28722 +if test "x$ac_cv_lib_mysqlclient_main" = x""yes; then
28723    cat >>confdefs.h <<_ACEOF
28724  #define HAVE_LIBMYSQLCLIENT 1
28725  _ACEOF
28726 @@ -19819,16 +20638,16 @@ _ACEOF
28727    LIBS="-lmysqlclient $LIBS"
28728  
28729  else
28730 -  { { echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
28731 -echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
28732 +  { { $as_echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
28733 +$as_echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
28734     { (exit 1); exit 1; }; }
28735  fi
28736  
28737  
28738 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28739 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
28740 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28741 +$as_echo_n "checking for ANSI C header files... " >&6; }
28742  if test "${ac_cv_header_stdc+set}" = set; then
28743 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28744 +  $as_echo_n "(cached) " >&6
28745  else
28746    cat >conftest.$ac_ext <<_ACEOF
28747  /* confdefs.h.  */
28748 @@ -19850,35 +20669,32 @@ main ()
28749  }
28750  _ACEOF
28751  rm -f conftest.$ac_objext
28752 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28753 -  (eval $ac_compile) 2>conftest.er1
28754 +if { (ac_try="$ac_compile"
28755 +case "(($ac_try" in
28756 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 +  *) ac_try_echo=$ac_try;;
28758 +esac
28759 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28760 +$as_echo "$ac_try_echo") >&5
28761 +  (eval "$ac_compile") 2>conftest.er1
28762    ac_status=$?
28763    grep -v '^ *+' conftest.er1 >conftest.err
28764    rm -f conftest.er1
28765    cat conftest.err >&5
28766 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767 -  (exit $ac_status); } &&
28768 -        { ac_try='test -z "$ac_c_werror_flag"
28769 -                        || test ! -s conftest.err'
28770 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771 -  (eval $ac_try) 2>&5
28772 -  ac_status=$?
28773 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 -  (exit $ac_status); }; } &&
28775 -        { ac_try='test -s conftest.$ac_objext'
28776 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28777 -  (eval $ac_try) 2>&5
28778 -  ac_status=$?
28779 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 -  (exit $ac_status); }; }; then
28781 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 +  (exit $ac_status); } && {
28783 +        test -z "$ac_c_werror_flag" ||
28784 +        test ! -s conftest.err
28785 +       } && test -s conftest.$ac_objext; then
28786    ac_cv_header_stdc=yes
28787  else
28788 -  echo "$as_me: failed program was:" >&5
28789 +  $as_echo "$as_me: failed program was:" >&5
28790  sed 's/^/| /' conftest.$ac_ext >&5
28791  
28792 -ac_cv_header_stdc=no
28793 +       ac_cv_header_stdc=no
28794  fi
28795 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28796 +
28797 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28798  
28799  if test $ac_cv_header_stdc = yes; then
28800    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28801 @@ -19934,6 +20750,7 @@ cat confdefs.h >>conftest.$ac_ext
28802  cat >>conftest.$ac_ext <<_ACEOF
28803  /* end confdefs.h.  */
28804  #include <ctype.h>
28805 +#include <stdlib.h>
28806  #if ((' ' & 0x0FF) == 0x020)
28807  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28808  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28809 @@ -19953,36 +20770,50 @@ main ()
28810    for (i = 0; i < 256; i++)
28811      if (XOR (islower (i), ISLOWER (i))
28812         || toupper (i) != TOUPPER (i))
28813 -      exit(2);
28814 -  exit (0);
28815 +      return 2;
28816 +  return 0;
28817  }
28818  _ACEOF
28819  rm -f conftest$ac_exeext
28820 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28821 -  (eval $ac_link) 2>&5
28822 +if { (ac_try="$ac_link"
28823 +case "(($ac_try" in
28824 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28825 +  *) ac_try_echo=$ac_try;;
28826 +esac
28827 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28828 +$as_echo "$ac_try_echo") >&5
28829 +  (eval "$ac_link") 2>&5
28830    ac_status=$?
28831 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28834 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835 -  (eval $ac_try) 2>&5
28836 +  { (case "(($ac_try" in
28837 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838 +  *) ac_try_echo=$ac_try;;
28839 +esac
28840 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28841 +$as_echo "$ac_try_echo") >&5
28842 +  (eval "$ac_try") 2>&5
28843    ac_status=$?
28844 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846    (exit $ac_status); }; }; then
28847    :
28848  else
28849 -  echo "$as_me: program exited with status $ac_status" >&5
28850 -echo "$as_me: failed program was:" >&5
28851 +  $as_echo "$as_me: program exited with status $ac_status" >&5
28852 +$as_echo "$as_me: failed program was:" >&5
28853  sed 's/^/| /' conftest.$ac_ext >&5
28854  
28855  ( exit $ac_status )
28856  ac_cv_header_stdc=no
28857  fi
28858 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28859 +rm -rf conftest.dSYM
28860 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28861  fi
28862 +
28863 +
28864  fi
28865  fi
28866 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28867 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
28868 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28869 +$as_echo "$ac_cv_header_stdc" >&6; }
28870  if test $ac_cv_header_stdc = yes; then
28871  
28872  cat >>confdefs.h <<\_ACEOF
28873 @@ -19992,17 +20823,17 @@ _ACEOF
28874  fi
28875  
28876  if test "${ac_cv_header_mysql_h+set}" = set; then
28877 -  echo "$as_me:$LINENO: checking for mysql.h" >&5
28878 -echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
28879 +  { $as_echo "$as_me:$LINENO: checking for mysql.h" >&5
28880 +$as_echo_n "checking for mysql.h... " >&6; }
28881  if test "${ac_cv_header_mysql_h+set}" = set; then
28882 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28883 +  $as_echo_n "(cached) " >&6
28884  fi
28885 -echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
28886 -echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
28887 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
28888 +$as_echo "$ac_cv_header_mysql_h" >&6; }
28889  else
28890    # Is the header compilable?
28891 -echo "$as_me:$LINENO: checking mysql.h usability" >&5
28892 -echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
28893 +{ $as_echo "$as_me:$LINENO: checking mysql.h usability" >&5
28894 +$as_echo_n "checking mysql.h usability... " >&6; }
28895  cat >conftest.$ac_ext <<_ACEOF
28896  /* confdefs.h.  */
28897  _ACEOF
28898 @@ -20013,41 +20844,38 @@ $ac_includes_default
28899  #include <mysql.h>
28900  _ACEOF
28901  rm -f conftest.$ac_objext
28902 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28903 -  (eval $ac_compile) 2>conftest.er1
28904 +if { (ac_try="$ac_compile"
28905 +case "(($ac_try" in
28906 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 +  *) ac_try_echo=$ac_try;;
28908 +esac
28909 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28910 +$as_echo "$ac_try_echo") >&5
28911 +  (eval "$ac_compile") 2>conftest.er1
28912    ac_status=$?
28913    grep -v '^ *+' conftest.er1 >conftest.err
28914    rm -f conftest.er1
28915    cat conftest.err >&5
28916 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 -  (exit $ac_status); } &&
28918 -        { ac_try='test -z "$ac_c_werror_flag"
28919 -                        || test ! -s conftest.err'
28920 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28921 -  (eval $ac_try) 2>&5
28922 -  ac_status=$?
28923 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 -  (exit $ac_status); }; } &&
28925 -        { ac_try='test -s conftest.$ac_objext'
28926 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927 -  (eval $ac_try) 2>&5
28928 -  ac_status=$?
28929 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 -  (exit $ac_status); }; }; then
28931 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 +  (exit $ac_status); } && {
28933 +        test -z "$ac_c_werror_flag" ||
28934 +        test ! -s conftest.err
28935 +       } && test -s conftest.$ac_objext; then
28936    ac_header_compiler=yes
28937  else
28938 -  echo "$as_me: failed program was:" >&5
28939 +  $as_echo "$as_me: failed program was:" >&5
28940  sed 's/^/| /' conftest.$ac_ext >&5
28941  
28942 -ac_header_compiler=no
28943 +       ac_header_compiler=no
28944  fi
28945 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28946 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28947 -echo "${ECHO_T}$ac_header_compiler" >&6
28948 +
28949 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28950 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28951 +$as_echo "$ac_header_compiler" >&6; }
28952  
28953  # Is the header present?
28954 -echo "$as_me:$LINENO: checking mysql.h presence" >&5
28955 -echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
28956 +{ $as_echo "$as_me:$LINENO: checking mysql.h presence" >&5
28957 +$as_echo_n "checking mysql.h presence... " >&6; }
28958  cat >conftest.$ac_ext <<_ACEOF
28959  /* confdefs.h.  */
28960  _ACEOF
28961 @@ -20056,83 +20884,76 @@ cat >>conftest.$ac_ext <<_ACEOF
28962  /* end confdefs.h.  */
28963  #include <mysql.h>
28964  _ACEOF
28965 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28966 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28967 +if { (ac_try="$ac_cpp conftest.$ac_ext"
28968 +case "(($ac_try" in
28969 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970 +  *) ac_try_echo=$ac_try;;
28971 +esac
28972 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28973 +$as_echo "$ac_try_echo") >&5
28974 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28975    ac_status=$?
28976    grep -v '^ *+' conftest.er1 >conftest.err
28977    rm -f conftest.er1
28978    cat conftest.err >&5
28979 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 -  (exit $ac_status); } >/dev/null; then
28981 -  if test -s conftest.err; then
28982 -    ac_cpp_err=$ac_c_preproc_warn_flag
28983 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28984 -  else
28985 -    ac_cpp_err=
28986 -  fi
28987 -else
28988 -  ac_cpp_err=yes
28989 -fi
28990 -if test -z "$ac_cpp_err"; then
28991 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 +  (exit $ac_status); } >/dev/null && {
28993 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28994 +        test ! -s conftest.err
28995 +       }; then
28996    ac_header_preproc=yes
28997  else
28998 -  echo "$as_me: failed program was:" >&5
28999 +  $as_echo "$as_me: failed program was:" >&5
29000  sed 's/^/| /' conftest.$ac_ext >&5
29001  
29002    ac_header_preproc=no
29003  fi
29004 +
29005  rm -f conftest.err conftest.$ac_ext
29006 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29007 -echo "${ECHO_T}$ac_header_preproc" >&6
29008 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29009 +$as_echo "$ac_header_preproc" >&6; }
29010  
29011  # So?  What about this header?
29012  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29013    yes:no: )
29014 -    { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29015 -echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29016 -    { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
29017 -echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
29018 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29019 +$as_echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29020 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
29021 +$as_echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
29022      ac_header_preproc=yes
29023      ;;
29024    no:yes:* )
29025 -    { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
29026 -echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
29027 -    { echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
29028 -echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
29029 -    { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
29030 -echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
29031 -    { echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
29032 -echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29033 -    { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
29034 -echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
29035 -    { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
29036 -echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
29037 -    (
29038 -      cat <<\_ASBOX
29039 -## ------------------------------------------ ##
29040 -## Report this to the AC_PACKAGE_NAME lists.  ##
29041 -## ------------------------------------------ ##
29042 -_ASBOX
29043 -    ) |
29044 -      sed "s/^/$as_me: WARNING:     /" >&2
29045 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
29046 +$as_echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
29047 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
29048 +$as_echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
29049 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
29050 +$as_echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
29051 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
29052 +$as_echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29053 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
29054 +$as_echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
29055 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
29056 +$as_echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
29057 +
29058      ;;
29059  esac
29060 -echo "$as_me:$LINENO: checking for mysql.h" >&5
29061 -echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
29062 +{ $as_echo "$as_me:$LINENO: checking for mysql.h" >&5
29063 +$as_echo_n "checking for mysql.h... " >&6; }
29064  if test "${ac_cv_header_mysql_h+set}" = set; then
29065 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29066 +  $as_echo_n "(cached) " >&6
29067  else
29068    ac_cv_header_mysql_h=$ac_header_preproc
29069  fi
29070 -echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
29071 -echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
29072 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
29073 +$as_echo "$ac_cv_header_mysql_h" >&6; }
29074  
29075  fi
29076 -if test $ac_cv_header_mysql_h = yes; then
29077 +if test "x$ac_cv_header_mysql_h" = x""yes; then
29078    :
29079  else
29080 -  { { echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
29081 -echo "$as_me: error: Unable to find mysql.h" >&2;}
29082 +  { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
29083 +$as_echo "$as_me: error: Unable to find mysql.h" >&2;}
29084     { (exit 1); exit 1; }; }
29085  fi
29086  
29087 @@ -20144,19 +20965,21 @@ fi
29088  
29089  for ac_header in syslog.h stdint.h nss.h nss_common.h shadow.h
29090  do
29091 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29092 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29093 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
29094 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29095 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29096 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29097 -fi
29098 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29099 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29100 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29101 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29102 +  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29103 +$as_echo_n "checking for $ac_header... " >&6; }
29104 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29105 +  $as_echo_n "(cached) " >&6
29106 +fi
29107 +ac_res=`eval 'as_val=${'$as_ac_Header'}
29108 +                $as_echo "$as_val"'`
29109 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29110 +$as_echo "$ac_res" >&6; }
29111  else
29112    # Is the header compilable?
29113 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
29114 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29115 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29116 +$as_echo_n "checking $ac_header usability... " >&6; }
29117  cat >conftest.$ac_ext <<_ACEOF
29118  /* confdefs.h.  */
29119  _ACEOF
29120 @@ -20167,41 +20990,38 @@ $ac_includes_default
29121  #include <$ac_header>
29122  _ACEOF
29123  rm -f conftest.$ac_objext
29124 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29125 -  (eval $ac_compile) 2>conftest.er1
29126 +if { (ac_try="$ac_compile"
29127 +case "(($ac_try" in
29128 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 +  *) ac_try_echo=$ac_try;;
29130 +esac
29131 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29132 +$as_echo "$ac_try_echo") >&5
29133 +  (eval "$ac_compile") 2>conftest.er1
29134    ac_status=$?
29135    grep -v '^ *+' conftest.er1 >conftest.err
29136    rm -f conftest.er1
29137    cat conftest.err >&5
29138 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 -  (exit $ac_status); } &&
29140 -        { ac_try='test -z "$ac_c_werror_flag"
29141 -                        || test ! -s conftest.err'
29142 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29143 -  (eval $ac_try) 2>&5
29144 -  ac_status=$?
29145 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 -  (exit $ac_status); }; } &&
29147 -        { ac_try='test -s conftest.$ac_objext'
29148 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 -  (eval $ac_try) 2>&5
29150 -  ac_status=$?
29151 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 -  (exit $ac_status); }; }; then
29153 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 +  (exit $ac_status); } && {
29155 +        test -z "$ac_c_werror_flag" ||
29156 +        test ! -s conftest.err
29157 +       } && test -s conftest.$ac_objext; then
29158    ac_header_compiler=yes
29159  else
29160 -  echo "$as_me: failed program was:" >&5
29161 +  $as_echo "$as_me: failed program was:" >&5
29162  sed 's/^/| /' conftest.$ac_ext >&5
29163  
29164 -ac_header_compiler=no
29165 +       ac_header_compiler=no
29166  fi
29167 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29168 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29169 -echo "${ECHO_T}$ac_header_compiler" >&6
29170 +
29171 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29172 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29173 +$as_echo "$ac_header_compiler" >&6; }
29174  
29175  # Is the header present?
29176 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
29177 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29178 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29179 +$as_echo_n "checking $ac_header presence... " >&6; }
29180  cat >conftest.$ac_ext <<_ACEOF
29181  /* confdefs.h.  */
29182  _ACEOF
29183 @@ -20210,81 +21030,78 @@ cat >>conftest.$ac_ext <<_ACEOF
29184  /* end confdefs.h.  */
29185  #include <$ac_header>
29186  _ACEOF
29187 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29188 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29189 +if { (ac_try="$ac_cpp conftest.$ac_ext"
29190 +case "(($ac_try" in
29191 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29192 +  *) ac_try_echo=$ac_try;;
29193 +esac
29194 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29195 +$as_echo "$ac_try_echo") >&5
29196 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29197    ac_status=$?
29198    grep -v '^ *+' conftest.er1 >conftest.err
29199    rm -f conftest.er1
29200    cat conftest.err >&5
29201 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 -  (exit $ac_status); } >/dev/null; then
29203 -  if test -s conftest.err; then
29204 -    ac_cpp_err=$ac_c_preproc_warn_flag
29205 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29206 -  else
29207 -    ac_cpp_err=
29208 -  fi
29209 -else
29210 -  ac_cpp_err=yes
29211 -fi
29212 -if test -z "$ac_cpp_err"; then
29213 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 +  (exit $ac_status); } >/dev/null && {
29215 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29216 +        test ! -s conftest.err
29217 +       }; then
29218    ac_header_preproc=yes
29219  else
29220 -  echo "$as_me: failed program was:" >&5
29221 +  $as_echo "$as_me: failed program was:" >&5
29222  sed 's/^/| /' conftest.$ac_ext >&5
29223  
29224    ac_header_preproc=no
29225  fi
29226 +
29227  rm -f conftest.err conftest.$ac_ext
29228 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29229 -echo "${ECHO_T}$ac_header_preproc" >&6
29230 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29231 +$as_echo "$ac_header_preproc" >&6; }
29232  
29233  # So?  What about this header?
29234  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29235    yes:no: )
29236 -    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29237 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29238 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29239 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29240 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29241 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29242 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29243 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29244      ac_header_preproc=yes
29245      ;;
29246    no:yes:* )
29247 -    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29248 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29249 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29250 -echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29251 -    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29252 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29253 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29254 -echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29255 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29256 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29257 -    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29258 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29259 -    (
29260 -      cat <<\_ASBOX
29261 -## ------------------------------------------ ##
29262 -## Report this to the AC_PACKAGE_NAME lists.  ##
29263 -## ------------------------------------------ ##
29264 -_ASBOX
29265 -    ) |
29266 -      sed "s/^/$as_me: WARNING:     /" >&2
29267 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29268 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29269 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29270 +$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29271 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29272 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29273 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29274 +$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29275 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29276 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29277 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29278 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29279 +
29280      ;;
29281  esac
29282 -echo "$as_me:$LINENO: checking for $ac_header" >&5
29283 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29284 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29285 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29286 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29287 +$as_echo_n "checking for $ac_header... " >&6; }
29288 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29289 +  $as_echo_n "(cached) " >&6
29290  else
29291    eval "$as_ac_Header=\$ac_header_preproc"
29292  fi
29293 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29294 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29295 +ac_res=`eval 'as_val=${'$as_ac_Header'}
29296 +                $as_echo "$as_val"'`
29297 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29298 +$as_echo "$ac_res" >&6; }
29299  
29300  fi
29301 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
29302 +as_val=`eval 'as_val=${'$as_ac_Header'}
29303 +                $as_echo "$as_val"'`
29304 +   if test "x$as_val" = x""yes; then
29305    cat >>confdefs.h <<_ACEOF
29306 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29307 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29308  _ACEOF
29309  
29310  fi
29311 @@ -20292,10 +21109,10 @@ fi
29312  done
29313  
29314  
29315 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29316 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
29317 +{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29318 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29319  if test "${ac_cv_c_const+set}" = set; then
29320 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29321 +  $as_echo_n "(cached) " >&6
29322  else
29323    cat >conftest.$ac_ext <<_ACEOF
29324  /* confdefs.h.  */
29325 @@ -20311,10 +21128,10 @@ main ()
29326  #ifndef __cplusplus
29327    /* Ultrix mips cc rejects this.  */
29328    typedef int charset[2];
29329 -  const charset x;
29330 +  const charset cs;
29331    /* SunOS 4.1.1 cc rejects this.  */
29332 -  char const *const *ccp;
29333 -  char **p;
29334 +  char const *const *pcpcc;
29335 +  char **ppc;
29336    /* NEC SVR4.0.2 mips cc rejects this.  */
29337    struct point {int x, y;};
29338    static struct point const zero = {0,0};
29339 @@ -20323,16 +21140,17 @@ main ()
29340       an arm of an if-expression whose if-part is not a constant
29341       expression */
29342    const char *g = "string";
29343 -  ccp = &g + (g ? g-g : 0);
29344 +  pcpcc = &g + (g ? g-g : 0);
29345    /* HPUX 7.0 cc rejects these. */
29346 -  ++ccp;
29347 -  p = (char**) ccp;
29348 -  ccp = (char const *const *) p;
29349 +  ++pcpcc;
29350 +  ppc = (char**) pcpcc;
29351 +  pcpcc = (char const *const *) ppc;
29352    { /* SCO 3.2v4 cc rejects this.  */
29353      char *t;
29354      char const *s = 0 ? (char *) 0 : (char const *) 0;
29355  
29356      *t++ = 0;
29357 +    if (s) return 0;
29358    }
29359    { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29360      int x[] = {25, 17};
29361 @@ -20351,7 +21169,9 @@ main ()
29362    }
29363    { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29364      const int foo = 10;
29365 +    if (!foo) return 0;
29366    }
29367 +  return !cs[0] && !zero.x;
29368  #endif
29369  
29370    ;
29371 @@ -20359,50 +21179,47 @@ main ()
29372  }
29373  _ACEOF
29374  rm -f conftest.$ac_objext
29375 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29376 -  (eval $ac_compile) 2>conftest.er1
29377 +if { (ac_try="$ac_compile"
29378 +case "(($ac_try" in
29379 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 +  *) ac_try_echo=$ac_try;;
29381 +esac
29382 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29383 +$as_echo "$ac_try_echo") >&5
29384 +  (eval "$ac_compile") 2>conftest.er1
29385    ac_status=$?
29386    grep -v '^ *+' conftest.er1 >conftest.err
29387    rm -f conftest.er1
29388    cat conftest.err >&5
29389 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 -  (exit $ac_status); } &&
29391 -        { ac_try='test -z "$ac_c_werror_flag"
29392 -                        || test ! -s conftest.err'
29393 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 -  (eval $ac_try) 2>&5
29395 -  ac_status=$?
29396 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 -  (exit $ac_status); }; } &&
29398 -        { ac_try='test -s conftest.$ac_objext'
29399 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 -  (eval $ac_try) 2>&5
29401 -  ac_status=$?
29402 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 -  (exit $ac_status); }; }; then
29404 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 +  (exit $ac_status); } && {
29406 +        test -z "$ac_c_werror_flag" ||
29407 +        test ! -s conftest.err
29408 +       } && test -s conftest.$ac_objext; then
29409    ac_cv_c_const=yes
29410  else
29411 -  echo "$as_me: failed program was:" >&5
29412 +  $as_echo "$as_me: failed program was:" >&5
29413  sed 's/^/| /' conftest.$ac_ext >&5
29414  
29415 -ac_cv_c_const=no
29416 +       ac_cv_c_const=no
29417  fi
29418 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29419 +
29420 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29421  fi
29422 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29423 -echo "${ECHO_T}$ac_cv_c_const" >&6
29424 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29425 +$as_echo "$ac_cv_c_const" >&6; }
29426  if test $ac_cv_c_const = no; then
29427  
29428  cat >>confdefs.h <<\_ACEOF
29429 -#define const
29430 +#define const /**/
29431  _ACEOF
29432  
29433  fi
29434  
29435 -echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29436 -echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29437 +{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29438 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
29439  if test "${ac_cv_type_uid_t+set}" = set; then
29440 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29441 +  $as_echo_n "(cached) " >&6
29442  else
29443    cat >conftest.$ac_ext <<_ACEOF
29444  /* confdefs.h.  */
29445 @@ -20422,8 +21239,8 @@ fi
29446  rm -f conftest*
29447  
29448  fi
29449 -echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29450 -echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29451 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29452 +$as_echo "$ac_cv_type_uid_t" >&6; }
29453  if test $ac_cv_type_uid_t = no; then
29454  
29455  cat >>confdefs.h <<\_ACEOF
29456 @@ -20437,12 +21254,13 @@ _ACEOF
29457  
29458  fi
29459  
29460 -echo "$as_me:$LINENO: checking for size_t" >&5
29461 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29462 +{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
29463 +$as_echo_n "checking for size_t... " >&6; }
29464  if test "${ac_cv_type_size_t+set}" = set; then
29465 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29466 +  $as_echo_n "(cached) " >&6
29467  else
29468 -  cat >conftest.$ac_ext <<_ACEOF
29469 +  ac_cv_type_size_t=no
29470 +cat >conftest.$ac_ext <<_ACEOF
29471  /* confdefs.h.  */
29472  _ACEOF
29473  cat confdefs.h >>conftest.$ac_ext
29474 @@ -20452,63 +21270,101 @@ $ac_includes_default
29475  int
29476  main ()
29477  {
29478 -if ((size_t *) 0)
29479 -  return 0;
29480  if (sizeof (size_t))
29481 -  return 0;
29482 +       return 0;
29483    ;
29484    return 0;
29485  }
29486  _ACEOF
29487  rm -f conftest.$ac_objext
29488 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29489 -  (eval $ac_compile) 2>conftest.er1
29490 +if { (ac_try="$ac_compile"
29491 +case "(($ac_try" in
29492 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 +  *) ac_try_echo=$ac_try;;
29494 +esac
29495 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29496 +$as_echo "$ac_try_echo") >&5
29497 +  (eval "$ac_compile") 2>conftest.er1
29498    ac_status=$?
29499    grep -v '^ *+' conftest.er1 >conftest.err
29500    rm -f conftest.er1
29501    cat conftest.err >&5
29502 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 -  (exit $ac_status); } &&
29504 -        { ac_try='test -z "$ac_c_werror_flag"
29505 -                        || test ! -s conftest.err'
29506 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507 -  (eval $ac_try) 2>&5
29508 -  ac_status=$?
29509 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 -  (exit $ac_status); }; } &&
29511 -        { ac_try='test -s conftest.$ac_objext'
29512 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 -  (eval $ac_try) 2>&5
29514 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 +  (exit $ac_status); } && {
29516 +        test -z "$ac_c_werror_flag" ||
29517 +        test ! -s conftest.err
29518 +       } && test -s conftest.$ac_objext; then
29519 +  cat >conftest.$ac_ext <<_ACEOF
29520 +/* confdefs.h.  */
29521 +_ACEOF
29522 +cat confdefs.h >>conftest.$ac_ext
29523 +cat >>conftest.$ac_ext <<_ACEOF
29524 +/* end confdefs.h.  */
29525 +$ac_includes_default
29526 +int
29527 +main ()
29528 +{
29529 +if (sizeof ((size_t)))
29530 +         return 0;
29531 +  ;
29532 +  return 0;
29533 +}
29534 +_ACEOF
29535 +rm -f conftest.$ac_objext
29536 +if { (ac_try="$ac_compile"
29537 +case "(($ac_try" in
29538 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29539 +  *) ac_try_echo=$ac_try;;
29540 +esac
29541 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29542 +$as_echo "$ac_try_echo") >&5
29543 +  (eval "$ac_compile") 2>conftest.er1
29544    ac_status=$?
29545 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 -  (exit $ac_status); }; }; then
29547 -  ac_cv_type_size_t=yes
29548 +  grep -v '^ *+' conftest.er1 >conftest.err
29549 +  rm -f conftest.er1
29550 +  cat conftest.err >&5
29551 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 +  (exit $ac_status); } && {
29553 +        test -z "$ac_c_werror_flag" ||
29554 +        test ! -s conftest.err
29555 +       } && test -s conftest.$ac_objext; then
29556 +  :
29557  else
29558 -  echo "$as_me: failed program was:" >&5
29559 +  $as_echo "$as_me: failed program was:" >&5
29560  sed 's/^/| /' conftest.$ac_ext >&5
29561  
29562 -ac_cv_type_size_t=no
29563 +       ac_cv_type_size_t=yes
29564  fi
29565 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29566 +
29567 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29568 +else
29569 +  $as_echo "$as_me: failed program was:" >&5
29570 +sed 's/^/| /' conftest.$ac_ext >&5
29571 +
29572 +
29573 +fi
29574 +
29575 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29576  fi
29577 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29578 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
29579 -if test $ac_cv_type_size_t = yes; then
29580 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29581 +$as_echo "$ac_cv_type_size_t" >&6; }
29582 +if test "x$ac_cv_type_size_t" = x""yes; then
29583    :
29584  else
29585  
29586  cat >>confdefs.h <<_ACEOF
29587 -#define size_t unsigned
29588 +#define size_t unsigned int
29589  _ACEOF
29590  
29591  fi
29592  
29593 -echo "$as_me:$LINENO: checking for socklen_t" >&5
29594 -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
29595 +{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
29596 +$as_echo_n "checking for socklen_t... " >&6; }
29597  if test "${ac_cv_type_socklen_t+set}" = set; then
29598 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29599 +  $as_echo_n "(cached) " >&6
29600  else
29601 -  cat >conftest.$ac_ext <<_ACEOF
29602 +  ac_cv_type_socklen_t=no
29603 +cat >conftest.$ac_ext <<_ACEOF
29604  /* confdefs.h.  */
29605  _ACEOF
29606  cat confdefs.h >>conftest.$ac_ext
29607 @@ -20522,48 +21378,89 @@ cat >>conftest.$ac_ext <<_ACEOF
29608  int
29609  main ()
29610  {
29611 -if ((socklen_t *) 0)
29612 -  return 0;
29613  if (sizeof (socklen_t))
29614 -  return 0;
29615 +       return 0;
29616    ;
29617    return 0;
29618  }
29619  _ACEOF
29620  rm -f conftest.$ac_objext
29621 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29622 -  (eval $ac_compile) 2>conftest.er1
29623 +if { (ac_try="$ac_compile"
29624 +case "(($ac_try" in
29625 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 +  *) ac_try_echo=$ac_try;;
29627 +esac
29628 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29629 +$as_echo "$ac_try_echo") >&5
29630 +  (eval "$ac_compile") 2>conftest.er1
29631    ac_status=$?
29632    grep -v '^ *+' conftest.er1 >conftest.err
29633    rm -f conftest.er1
29634    cat conftest.err >&5
29635 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 -  (exit $ac_status); } &&
29637 -        { ac_try='test -z "$ac_c_werror_flag"
29638 -                        || test ! -s conftest.err'
29639 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640 -  (eval $ac_try) 2>&5
29641 -  ac_status=$?
29642 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 -  (exit $ac_status); }; } &&
29644 -        { ac_try='test -s conftest.$ac_objext'
29645 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29646 -  (eval $ac_try) 2>&5
29647 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 +  (exit $ac_status); } && {
29649 +        test -z "$ac_c_werror_flag" ||
29650 +        test ! -s conftest.err
29651 +       } && test -s conftest.$ac_objext; then
29652 +  cat >conftest.$ac_ext <<_ACEOF
29653 +/* confdefs.h.  */
29654 +_ACEOF
29655 +cat confdefs.h >>conftest.$ac_ext
29656 +cat >>conftest.$ac_ext <<_ACEOF
29657 +/* end confdefs.h.  */
29658 +
29659 +#include <unistd.h>
29660 +#include <sys/socket.h>
29661 +
29662 +
29663 +int
29664 +main ()
29665 +{
29666 +if (sizeof ((socklen_t)))
29667 +         return 0;
29668 +  ;
29669 +  return 0;
29670 +}
29671 +_ACEOF
29672 +rm -f conftest.$ac_objext
29673 +if { (ac_try="$ac_compile"
29674 +case "(($ac_try" in
29675 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 +  *) ac_try_echo=$ac_try;;
29677 +esac
29678 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29679 +$as_echo "$ac_try_echo") >&5
29680 +  (eval "$ac_compile") 2>conftest.er1
29681    ac_status=$?
29682 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 -  (exit $ac_status); }; }; then
29684 -  ac_cv_type_socklen_t=yes
29685 +  grep -v '^ *+' conftest.er1 >conftest.err
29686 +  rm -f conftest.er1
29687 +  cat conftest.err >&5
29688 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 +  (exit $ac_status); } && {
29690 +        test -z "$ac_c_werror_flag" ||
29691 +        test ! -s conftest.err
29692 +       } && test -s conftest.$ac_objext; then
29693 +  :
29694 +else
29695 +  $as_echo "$as_me: failed program was:" >&5
29696 +sed 's/^/| /' conftest.$ac_ext >&5
29697 +
29698 +       ac_cv_type_socklen_t=yes
29699 +fi
29700 +
29701 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29702  else
29703 -  echo "$as_me: failed program was:" >&5
29704 +  $as_echo "$as_me: failed program was:" >&5
29705  sed 's/^/| /' conftest.$ac_ext >&5
29706  
29707 -ac_cv_type_socklen_t=no
29708 +
29709  fi
29710 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29711 +
29712 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713  fi
29714 -echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29715 -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
29716 -if test $ac_cv_type_socklen_t = yes; then
29717 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29718 +$as_echo "$ac_cv_type_socklen_t" >&6; }
29719 +if test "x$ac_cv_type_socklen_t" = x""yes; then
29720  
29721  cat >>confdefs.h <<_ACEOF
29722  #define HAVE_SOCKLEN_T 1
29723 @@ -20585,7 +21482,7 @@ cat >>confdefs.h <<_ACEOF
29724  _ACEOF
29725  
29726  
29727 -                              ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
29728 +ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
29729  
29730  cat >confcache <<\_ACEOF
29731  # This file is a shell script that caches the results of configure
29732 @@ -20605,39 +21502,59 @@ _ACEOF
29733  
29734  # The following way of writing the cache mishandles newlines in values,
29735  # but we know of no workaround that is simple, portable, and efficient.
29736 -# So, don't put newlines in cache variables' values.
29737 +# So, we kill variables containing newlines.
29738  # Ultrix sh set writes to stderr and can't be redirected directly,
29739  # and sets the high bit in the cache file unless we assign to the vars.
29740 -{
29741 +(
29742 +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29743 +    eval ac_val=\$$ac_var
29744 +    case $ac_val in #(
29745 +    *${as_nl}*)
29746 +      case $ac_var in #(
29747 +      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29748 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29749 +      esac
29750 +      case $ac_var in #(
29751 +      _ | IFS | as_nl) ;; #(
29752 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29753 +      *) $as_unset $ac_var ;;
29754 +      esac ;;
29755 +    esac
29756 +  done
29757 +
29758    (set) 2>&1 |
29759 -    case `(ac_space=' '; set | grep ac_space) 2>&1` in
29760 -    *ac_space=\ *)
29761 +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
29762 +    *${as_nl}ac_space=\ *)
29763        # `set' does not quote correctly, so add quotes (double-quote
29764        # substitution turns \\\\ into \\, and sed turns \\ into \).
29765        sed -n \
29766         "s/'/'\\\\''/g;
29767           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29768 -      ;;
29769 +      ;; #(
29770      *)
29771        # `set' quotes correctly as required by POSIX, so do not add quotes.
29772 -      sed -n \
29773 -       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29774 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29775        ;;
29776 -    esac;
29777 -} |
29778 +    esac |
29779 +    sort
29780 +) |
29781    sed '
29782 +     /^ac_cv_env_/b end
29783       t clear
29784 -     : clear
29785 +     :clear
29786       s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29787       t end
29788 -     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29789 -     : end' >>confcache
29790 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
29791 -  if test -w $cache_file; then
29792 -    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29793 +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29794 +     :end' >>confcache
29795 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29796 +  if test -w "$cache_file"; then
29797 +    test "x$cache_file" != "x/dev/null" &&
29798 +      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29799 +$as_echo "$as_me: updating cache $cache_file" >&6;}
29800      cat confcache >$cache_file
29801    else
29802 -    echo "not updating unwritable cache $cache_file"
29803 +    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29804 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29805    fi
29806  fi
29807  rm -f confcache
29808 @@ -20646,32 +21563,18 @@ test "x$prefix" = xNONE && prefix=$ac_default_prefix
29809  # Let make expand exec_prefix.
29810  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29811  
29812 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
29813 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29814 -# trailing colons and then remove the whole line if VPATH becomes empty
29815 -# (actually we leave an empty line to preserve line numbers).
29816 -if test "x$srcdir" = x.; then
29817 -  ac_vpsub='/^[         ]*VPATH[        ]*=/{
29818 -s/:*\$(srcdir):*/:/;
29819 -s/:*\${srcdir}:*/:/;
29820 -s/:*@srcdir@:*/:/;
29821 -s/^\([^=]*=[    ]*\):*/\1/;
29822 -s/:*$//;
29823 -s/^[^=]*=[      ]*$//;
29824 -}'
29825 -fi
29826 -
29827  DEFS=-DHAVE_CONFIG_H
29828  
29829  ac_libobjs=
29830  ac_ltlibobjs=
29831  for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29832    # 1. Remove the extension, and $U if already installed.
29833 -  ac_i=`echo "$ac_i" |
29834 -        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29835 -  # 2. Add them.
29836 -  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29837 -  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29838 +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29839 +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29840 +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29841 +  #    will be set to the directory where LIBOBJS objects are built.
29842 +  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29843 +  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29844  done
29845  LIBOBJS=$ac_libobjs
29846  
29847 @@ -20679,47 +21582,48 @@ LTLIBOBJS=$ac_ltlibobjs
29848  
29849  
29850  if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29851 -  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29852 +  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29853  Usually this means the macro was only invoked conditionally." >&5
29854 -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29855 +$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29856  Usually this means the macro was only invoked conditionally." >&2;}
29857     { (exit 1); exit 1; }; }
29858  fi
29859  if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29860 -  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29861 +  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29862  Usually this means the macro was only invoked conditionally." >&5
29863 -echo "$as_me: error: conditional \"AMDEP\" was never defined.
29864 +$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
29865  Usually this means the macro was only invoked conditionally." >&2;}
29866     { (exit 1); exit 1; }; }
29867  fi
29868  if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29869 -  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29870 +  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29871  Usually this means the macro was only invoked conditionally." >&5
29872 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29873 +$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29874  Usually this means the macro was only invoked conditionally." >&2;}
29875     { (exit 1); exit 1; }; }
29876  fi
29877  if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29878 -  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29879 +  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29880  Usually this means the macro was only invoked conditionally." >&5
29881 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29882 +$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29883  Usually this means the macro was only invoked conditionally." >&2;}
29884     { (exit 1); exit 1; }; }
29885  fi
29886  if test -z "${RENAME_TRUE}" && test -z "${RENAME_FALSE}"; then
29887 -  { { echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
29888 +  { { $as_echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
29889  Usually this means the macro was only invoked conditionally." >&5
29890 -echo "$as_me: error: conditional \"RENAME\" was never defined.
29891 +$as_echo "$as_me: error: conditional \"RENAME\" was never defined.
29892  Usually this means the macro was only invoked conditionally." >&2;}
29893     { (exit 1); exit 1; }; }
29894  fi
29895  
29896  : ${CONFIG_STATUS=./config.status}
29897 +ac_write_fail=0
29898  ac_clean_files_save=$ac_clean_files
29899  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29900 -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29901 -echo "$as_me: creating $CONFIG_STATUS" >&6;}
29902 -cat >$CONFIG_STATUS <<_ACEOF
29903 +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29904 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29905 +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29906  #! $SHELL
29907  # Generated by $as_me.
29908  # Run this file to recreate the current configuration.
29909 @@ -20732,22 +21636,78 @@ ac_cs_silent=false
29910  SHELL=\${CONFIG_SHELL-$SHELL}
29911  _ACEOF
29912  
29913 -cat >>$CONFIG_STATUS <<\_ACEOF
29914 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29915  ## --------------------- ##
29916  ## M4sh Initialization.  ##
29917  ## --------------------- ##
29918  
29919 -# Be Bourne compatible
29920 +# Be more Bourne compatible
29921 +DUALCASE=1; export DUALCASE # for MKS sh
29922  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29923    emulate sh
29924    NULLCMD=:
29925 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29926 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29927    # is contrary to our usage.  Disable this feature.
29928    alias -g '${1+"$@"}'='"$@"'
29929 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29930 -  set -o posix
29931 +  setopt NO_GLOB_SUBST
29932 +else
29933 +  case `(set -o) 2>/dev/null` in
29934 +  *posix*) set -o posix ;;
29935 +esac
29936 +
29937 +fi
29938 +
29939 +
29940 +
29941 +
29942 +# PATH needs CR
29943 +# Avoid depending upon Character Ranges.
29944 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29945 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29946 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29947 +as_cr_digits='0123456789'
29948 +as_cr_alnum=$as_cr_Letters$as_cr_digits
29949 +
29950 +as_nl='
29951 +'
29952 +export as_nl
29953 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
29954 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29955 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29956 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29957 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29958 +  as_echo='printf %s\n'
29959 +  as_echo_n='printf %s'
29960 +else
29961 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29962 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29963 +    as_echo_n='/usr/ucb/echo -n'
29964 +  else
29965 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29966 +    as_echo_n_body='eval
29967 +      arg=$1;
29968 +      case $arg in
29969 +      *"$as_nl"*)
29970 +       expr "X$arg" : "X\\(.*\\)$as_nl";
29971 +       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29972 +      esac;
29973 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29974 +    '
29975 +    export as_echo_n_body
29976 +    as_echo_n='sh -c $as_echo_n_body as_echo'
29977 +  fi
29978 +  export as_echo_body
29979 +  as_echo='sh -c $as_echo_body as_echo'
29980 +fi
29981 +
29982 +# The user is always right.
29983 +if test "${PATH_SEPARATOR+set}" != set; then
29984 +  PATH_SEPARATOR=:
29985 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29986 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29987 +      PATH_SEPARATOR=';'
29988 +  }
29989  fi
29990 -DUALCASE=1; export DUALCASE # for MKS sh
29991  
29992  # Support unset when possible.
29993  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29994 @@ -20757,33 +21717,60 @@ else
29995  fi
29996  
29997  
29998 +# IFS
29999 +# We need space, tab and new line, in precisely that order.  Quoting is
30000 +# there to prevent editors from complaining about space-tab.
30001 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30002 +# splitting by setting IFS to empty value.)
30003 +IFS=" ""       $as_nl"
30004 +
30005 +# Find who we are.  Look in the path if we contain no directory separator.
30006 +case $0 in
30007 +  *[\\/]* ) as_myself=$0 ;;
30008 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30009 +for as_dir in $PATH
30010 +do
30011 +  IFS=$as_save_IFS
30012 +  test -z "$as_dir" && as_dir=.
30013 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30014 +done
30015 +IFS=$as_save_IFS
30016 +
30017 +     ;;
30018 +esac
30019 +# We did not find ourselves, most probably we were run as `sh COMMAND'
30020 +# in which case we are not to be found in the path.
30021 +if test "x$as_myself" = x; then
30022 +  as_myself=$0
30023 +fi
30024 +if test ! -f "$as_myself"; then
30025 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30026 +  { (exit 1); exit 1; }
30027 +fi
30028 +
30029  # Work around bugs in pre-3.0 UWIN ksh.
30030 -$as_unset ENV MAIL MAILPATH
30031 +for as_var in ENV MAIL MAILPATH
30032 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30033 +done
30034  PS1='$ '
30035  PS2='> '
30036  PS4='+ '
30037  
30038  # NLS nuisances.
30039 -for as_var in \
30040 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30041 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30042 -  LC_TELEPHONE LC_TIME
30043 -do
30044 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30045 -    eval $as_var=C; export $as_var
30046 -  else
30047 -    $as_unset $as_var
30048 -  fi
30049 -done
30050 +LC_ALL=C
30051 +export LC_ALL
30052 +LANGUAGE=C
30053 +export LANGUAGE
30054  
30055  # Required to use basename.
30056 -if expr a : '\(a\)' >/dev/null 2>&1; then
30057 +if expr a : '\(a\)' >/dev/null 2>&1 &&
30058 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30059    as_expr=expr
30060  else
30061    as_expr=false
30062  fi
30063  
30064 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30065 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30066    as_basename=basename
30067  else
30068    as_basename=false
30069 @@ -20791,159 +21778,122 @@ fi
30070  
30071  
30072  # Name of the executable.
30073 -as_me=`$as_basename "$0" ||
30074 +as_me=`$as_basename -- "$0" ||
30075  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30076          X"$0" : 'X\(//\)$' \| \
30077 -        X"$0" : 'X\(/\)$' \| \
30078 -        .     : '\(.\)' 2>/dev/null ||
30079 -echo X/"$0" |
30080 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30081 -         /^X\/\(\/\/\)$/{ s//\1/; q; }
30082 -         /^X\/\(\/\).*/{ s//\1/; q; }
30083 -         s/.*/./; q'`
30084 -
30085 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30086 +$as_echo X/"$0" |
30087 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
30088 +           s//\1/
30089 +           q
30090 +         }
30091 +         /^X\/\(\/\/\)$/{
30092 +           s//\1/
30093 +           q
30094 +         }
30095 +         /^X\/\(\/\).*/{
30096 +           s//\1/
30097 +           q
30098 +         }
30099 +         s/.*/./; q'`
30100  
30101 -# PATH needs CR, and LINENO needs CR and PATH.
30102 -# Avoid depending upon Character Ranges.
30103 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30104 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30105 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30106 -as_cr_digits='0123456789'
30107 -as_cr_alnum=$as_cr_Letters$as_cr_digits
30108 +# CDPATH.
30109 +$as_unset CDPATH
30110  
30111 -# The user is always right.
30112 -if test "${PATH_SEPARATOR+set}" != set; then
30113 -  echo "#! /bin/sh" >conf$$.sh
30114 -  echo  "exit 0"   >>conf$$.sh
30115 -  chmod +x conf$$.sh
30116 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30117 -    PATH_SEPARATOR=';'
30118 -  else
30119 -    PATH_SEPARATOR=:
30120 -  fi
30121 -  rm -f conf$$.sh
30122 -fi
30123  
30124  
30125    as_lineno_1=$LINENO
30126    as_lineno_2=$LINENO
30127 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30128    test "x$as_lineno_1" != "x$as_lineno_2" &&
30129 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30130 -  # Find who we are.  Look in the path if we contain no path at all
30131 -  # relative or not.
30132 -  case $0 in
30133 -    *[\\/]* ) as_myself=$0 ;;
30134 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30135 -for as_dir in $PATH
30136 -do
30137 -  IFS=$as_save_IFS
30138 -  test -z "$as_dir" && as_dir=.
30139 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30140 -done
30141 -
30142 -       ;;
30143 -  esac
30144 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
30145 -  # in which case we are not to be found in the path.
30146 -  if test "x$as_myself" = x; then
30147 -    as_myself=$0
30148 -  fi
30149 -  if test ! -f "$as_myself"; then
30150 -    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30151 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30152 -   { (exit 1); exit 1; }; }
30153 -  fi
30154 -  case $CONFIG_SHELL in
30155 -  '')
30156 -    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30157 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30158 -do
30159 -  IFS=$as_save_IFS
30160 -  test -z "$as_dir" && as_dir=.
30161 -  for as_base in sh bash ksh sh5; do
30162 -        case $as_dir in
30163 -        /*)
30164 -          if ("$as_dir/$as_base" -c '
30165 -  as_lineno_1=$LINENO
30166 -  as_lineno_2=$LINENO
30167 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30168 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
30169 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30170 -            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30171 -            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30172 -            CONFIG_SHELL=$as_dir/$as_base
30173 -            export CONFIG_SHELL
30174 -            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30175 -          fi;;
30176 -        esac
30177 -       done
30178 -done
30179 -;;
30180 -  esac
30181 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30182  
30183    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30184    # uniformly replaced by the line number.  The first 'sed' inserts a
30185 -  # line-number line before each line; the second 'sed' does the real
30186 -  # work.  The second script uses 'N' to pair each line-number line
30187 -  # with the numbered line, and appends trailing '-' during
30188 -  # substitution so that $LINENO is not a special case at line end.
30189 +  # line-number line after each line using $LINENO; the second 'sed'
30190 +  # does the real work.  The second script uses 'N' to pair each
30191 +  # line-number line with the line containing $LINENO, and appends
30192 +  # trailing '-' during substitution so that $LINENO is not a special
30193 +  # case at line end.
30194    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30195 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30196 -  sed '=' <$as_myself |
30197 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
30198 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
30199 +  sed -n '
30200 +    p
30201 +    /[$]LINENO/=
30202 +  ' <$as_myself |
30203      sed '
30204 +      s/[$]LINENO.*/&-/
30205 +      t lineno
30206 +      b
30207 +      :lineno
30208        N
30209 -      s,$,-,
30210 -      : loop
30211 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30212 +      :loop
30213 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30214        t loop
30215 -      s,-$,,
30216 -      s,^['$as_cr_digits']*\n,,
30217 +      s/-\n.*//
30218      ' >$as_me.lineno &&
30219 -  chmod +x $as_me.lineno ||
30220 -    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30221 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30222 +  chmod +x "$as_me.lineno" ||
30223 +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30224     { (exit 1); exit 1; }; }
30225  
30226    # Don't try to exec as it changes $[0], causing all sort of problems
30227    # (the dirname of $[0] is not the place where we might find the
30228 -  # original and so on.  Autoconf is especially sensible to this).
30229 -  . ./$as_me.lineno
30230 +  # original and so on.  Autoconf is especially sensitive to this).
30231 +  . "./$as_me.lineno"
30232    # Exit status is that of the last command.
30233    exit
30234  }
30235  
30236  
30237 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30238 -  *c*,-n*) ECHO_N= ECHO_C='
30239 -' ECHO_T='     ' ;;
30240 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30241 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30242 -esac
30243 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30244 +  as_dirname=dirname
30245 +else
30246 +  as_dirname=false
30247 +fi
30248  
30249 -if expr a : '\(a\)' >/dev/null 2>&1; then
30250 +ECHO_C= ECHO_N= ECHO_T=
30251 +case `echo -n x` in
30252 +-n*)
30253 +  case `echo 'x\c'` in
30254 +  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
30255 +  *)   ECHO_C='\c';;
30256 +  esac;;
30257 +*)
30258 +  ECHO_N='-n';;
30259 +esac
30260 +if expr a : '\(a\)' >/dev/null 2>&1 &&
30261 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30262    as_expr=expr
30263  else
30264    as_expr=false
30265  fi
30266  
30267  rm -f conf$$ conf$$.exe conf$$.file
30268 -echo >conf$$.file
30269 -if ln -s conf$$.file conf$$ 2>/dev/null; then
30270 -  # We could just check for DJGPP; but this test a) works b) is more generic
30271 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30272 -  if test -f conf$$.exe; then
30273 -    # Don't use ln at all; we don't have any links
30274 -    as_ln_s='cp -p'
30275 -  else
30276 +if test -d conf$$.dir; then
30277 +  rm -f conf$$.dir/conf$$.file
30278 +else
30279 +  rm -f conf$$.dir
30280 +  mkdir conf$$.dir 2>/dev/null
30281 +fi
30282 +if (echo >conf$$.file) 2>/dev/null; then
30283 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
30284      as_ln_s='ln -s'
30285 +    # ... but there are two gotchas:
30286 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30287 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30288 +    # In both cases, we have to default to `cp -p'.
30289 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30290 +      as_ln_s='cp -p'
30291 +  elif ln conf$$.file conf$$ 2>/dev/null; then
30292 +    as_ln_s=ln
30293 +  else
30294 +    as_ln_s='cp -p'
30295    fi
30296 -elif ln conf$$.file conf$$ 2>/dev/null; then
30297 -  as_ln_s=ln
30298  else
30299    as_ln_s='cp -p'
30300  fi
30301 -rm -f conf$$ conf$$.exe conf$$.file
30302 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30303 +rmdir conf$$.dir 2>/dev/null
30304  
30305  if mkdir -p . 2>/dev/null; then
30306    as_mkdir_p=:
30307 @@ -20952,7 +21902,28 @@ else
30308    as_mkdir_p=false
30309  fi
30310  
30311 -as_executable_p="test -f"
30312 +if test -x / >/dev/null 2>&1; then
30313 +  as_test_x='test -x'
30314 +else
30315 +  if ls -dL / >/dev/null 2>&1; then
30316 +    as_ls_L_option=L
30317 +  else
30318 +    as_ls_L_option=
30319 +  fi
30320 +  as_test_x='
30321 +    eval sh -c '\''
30322 +      if test -d "$1"; then
30323 +       test -d "$1/.";
30324 +      else
30325 +       case $1 in
30326 +       -*)set "./$1";;
30327 +       esac;
30328 +       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30329 +       ???[sx]*):;;*)false;;esac;fi
30330 +    '\'' sh
30331 +  '
30332 +fi
30333 +as_executable_p=$as_test_x
30334  
30335  # Sed expression to map a string onto a valid CPP name.
30336  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30337 @@ -20961,31 +21932,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30338  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30339  
30340  
30341 -# IFS
30342 -# We need space, tab and new line, in precisely that order.
30343 -as_nl='
30344 -'
30345 -IFS="  $as_nl"
30346 -
30347 -# CDPATH.
30348 -$as_unset CDPATH
30349 -
30350  exec 6>&1
30351  
30352 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
30353 +# Save the log message, to keep $[0] and so on meaningful, and to
30354  # report actual input values of CONFIG_FILES etc. instead of their
30355 -# values after options handling.  Logging --version etc. is OK.
30356 -exec 5>>config.log
30357 -{
30358 -  echo
30359 -  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30360 -## Running $as_me. ##
30361 -_ASBOX
30362 -} >&5
30363 -cat >&5 <<_CSEOF
30364 -
30365 +# values after options handling.
30366 +ac_log="
30367  This file was extended by $as_me, which was
30368 -generated by GNU Autoconf 2.59.  Invocation command line was
30369 +generated by GNU Autoconf 2.63.  Invocation command line was
30370  
30371    CONFIG_FILES    = $CONFIG_FILES
30372    CONFIG_HEADERS  = $CONFIG_HEADERS
30373 @@ -20993,45 +21947,45 @@ generated by GNU Autoconf 2.59.  Invocation command line was
30374    CONFIG_COMMANDS = $CONFIG_COMMANDS
30375    $ $0 $@
30376  
30377 -_CSEOF
30378 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30379 -echo >&5
30380 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
30381 +"
30382 +
30383  _ACEOF
30384  
30385 -# Files that config.status was made for.
30386 -if test -n "$ac_config_files"; then
30387 -  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30388 -fi
30389 +case $ac_config_files in *"
30390 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
30391 +esac
30392  
30393 -if test -n "$ac_config_headers"; then
30394 -  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30395 -fi
30396 +case $ac_config_headers in *"
30397 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30398 +esac
30399  
30400 -if test -n "$ac_config_links"; then
30401 -  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30402 -fi
30403  
30404 -if test -n "$ac_config_commands"; then
30405 -  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30406 -fi
30407 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30408 +# Files that config.status was made for.
30409 +config_files="$ac_config_files"
30410 +config_headers="$ac_config_headers"
30411 +config_commands="$ac_config_commands"
30412  
30413 -cat >>$CONFIG_STATUS <<\_ACEOF
30414 +_ACEOF
30415  
30416 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30417  ac_cs_usage="\
30418  \`$as_me' instantiates files from templates according to the
30419  current configuration.
30420  
30421 -Usage: $0 [OPTIONS] [FILE]...
30422 +Usage: $0 [OPTION]... [FILE]...
30423  
30424    -h, --help       print this help, then exit
30425 -  -V, --version    print version number, then exit
30426 -  -q, --quiet      do not print progress messages
30427 +  -V, --version    print version number and configuration settings, then exit
30428 +  -q, --quiet, --silent
30429 +                   do not print progress messages
30430    -d, --debug      don't remove temporary files
30431        --recheck    update $as_me by reconfiguring in the same conditions
30432 -  --file=FILE[:TEMPLATE]
30433 -                  instantiate the configuration file FILE
30434 -  --header=FILE[:TEMPLATE]
30435 -                  instantiate the configuration header FILE
30436 +      --file=FILE[:TEMPLATE]
30437 +                   instantiate the configuration file FILE
30438 +      --header=FILE[:TEMPLATE]
30439 +                   instantiate the configuration header FILE
30440  
30441  Configuration files:
30442  $config_files
30443 @@ -21043,83 +21997,83 @@ Configuration commands:
30444  $config_commands
30445  
30446  Report bugs to <bug-autoconf@gnu.org>."
30447 -_ACEOF
30448  
30449 -cat >>$CONFIG_STATUS <<_ACEOF
30450 +_ACEOF
30451 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30452  ac_cs_version="\\
30453  config.status
30454 -configured by $0, generated by GNU Autoconf 2.59,
30455 -  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30456 +configured by $0, generated by GNU Autoconf 2.63,
30457 +  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30458  
30459 -Copyright (C) 2003 Free Software Foundation, Inc.
30460 +Copyright (C) 2008 Free Software Foundation, Inc.
30461  This config.status script is free software; the Free Software Foundation
30462  gives unlimited permission to copy, distribute and modify it."
30463 -srcdir=$srcdir
30464 -INSTALL="$INSTALL"
30465 +
30466 +ac_pwd='$ac_pwd'
30467 +srcdir='$srcdir'
30468 +INSTALL='$INSTALL'
30469 +AWK='$AWK'
30470 +test -n "\$AWK" || AWK=awk
30471  _ACEOF
30472  
30473 -cat >>$CONFIG_STATUS <<\_ACEOF
30474 -# If no file are specified by the user, then we need to provide default
30475 -# value.  By we need to know if files were specified by the user.
30476 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30477 +# The default lists apply if the user does not specify any file.
30478  ac_need_defaults=:
30479  while test $# != 0
30480  do
30481    case $1 in
30482    --*=*)
30483 -    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30484 -    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30485 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30486 +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30487      ac_shift=:
30488      ;;
30489 -  -*)
30490 +  *)
30491      ac_option=$1
30492      ac_optarg=$2
30493      ac_shift=shift
30494      ;;
30495 -  *) # This is not an option, so the user has probably given explicit
30496 -     # arguments.
30497 -     ac_option=$1
30498 -     ac_need_defaults=false;;
30499    esac
30500  
30501    case $ac_option in
30502    # Handling of the options.
30503 -_ACEOF
30504 -cat >>$CONFIG_STATUS <<\_ACEOF
30505    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30506      ac_cs_recheck=: ;;
30507 -  --version | --vers* | -V )
30508 -    echo "$ac_cs_version"; exit 0 ;;
30509 -  --he | --h)
30510 -    # Conflict between --help and --header
30511 -    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30512 -Try \`$0 --help' for more information." >&5
30513 -echo "$as_me: error: ambiguous option: $1
30514 -Try \`$0 --help' for more information." >&2;}
30515 -   { (exit 1); exit 1; }; };;
30516 -  --help | --hel | -h )
30517 -    echo "$ac_cs_usage"; exit 0 ;;
30518 -  --debug | --d* | -d )
30519 +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30520 +    $as_echo "$ac_cs_version"; exit ;;
30521 +  --debug | --debu | --deb | --de | --d | -d )
30522      debug=: ;;
30523    --file | --fil | --fi | --f )
30524      $ac_shift
30525 -    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30526 +    case $ac_optarg in
30527 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30528 +    esac
30529 +    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30530      ac_need_defaults=false;;
30531    --header | --heade | --head | --hea )
30532      $ac_shift
30533 -    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30534 +    case $ac_optarg in
30535 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30536 +    esac
30537 +    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30538      ac_need_defaults=false;;
30539 +  --he | --h)
30540 +    # Conflict between --help and --header
30541 +    { $as_echo "$as_me: error: ambiguous option: $1
30542 +Try \`$0 --help' for more information." >&2
30543 +   { (exit 1); exit 1; }; };;
30544 +  --help | --hel | -h )
30545 +    $as_echo "$ac_cs_usage"; exit ;;
30546    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30547    | -silent | --silent | --silen | --sile | --sil | --si | --s)
30548      ac_cs_silent=: ;;
30549  
30550    # This is an error.
30551 -  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30552 -Try \`$0 --help' for more information." >&5
30553 -echo "$as_me: error: unrecognized option: $1
30554 -Try \`$0 --help' for more information." >&2;}
30555 +  -*) { $as_echo "$as_me: error: unrecognized option: $1
30556 +Try \`$0 --help' for more information." >&2
30557     { (exit 1); exit 1; }; } ;;
30558  
30559 -  *) ac_config_targets="$ac_config_targets $1" ;;
30560 +  *) ac_config_targets="$ac_config_targets $1"
30561 +     ac_need_defaults=false ;;
30562  
30563    esac
30564    shift
30565 @@ -21133,41 +22087,55 @@ if $ac_cs_silent; then
30566  fi
30567  
30568  _ACEOF
30569 -cat >>$CONFIG_STATUS <<_ACEOF
30570 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30571  if \$ac_cs_recheck; then
30572 -  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30573 -  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30574 +  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30575 +  shift
30576 +  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30577 +  CONFIG_SHELL='$SHELL'
30578 +  export CONFIG_SHELL
30579 +  exec "\$@"
30580  fi
30581  
30582  _ACEOF
30583 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30584 +exec 5>>config.log
30585 +{
30586 +  echo
30587 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30588 +## Running $as_me. ##
30589 +_ASBOX
30590 +  $as_echo "$ac_log"
30591 +} >&5
30592  
30593 -cat >>$CONFIG_STATUS <<_ACEOF
30594 +_ACEOF
30595 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30596  #
30597 -# INIT-COMMANDS section.
30598 +# INIT-COMMANDS
30599  #
30600 -
30601  AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30602  
30603  _ACEOF
30604  
30605 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30606  
30607 -
30608 -cat >>$CONFIG_STATUS <<\_ACEOF
30609 +# Handling of arguments.
30610  for ac_config_target in $ac_config_targets
30611  do
30612 -  case "$ac_config_target" in
30613 -  # Handling of arguments.
30614 -  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30615 -  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30616 -  "src/version.c" ) CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
30617 -  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30618 -  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30619 -  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30620 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30621 +  case $ac_config_target in
30622 +    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30623 +    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30624 +    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30625 +    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30626 +    "src/version.c") CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
30627 +
30628 +  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30629 +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30630     { (exit 1); exit 1; }; };;
30631    esac
30632  done
30633  
30634 +
30635  # If the user did not use the arguments to specify the items to instantiate,
30636  # then the envvar interface is used.  Set only those that are not.
30637  # We use the long form for the default assignment because of an extremely
30638 @@ -21179,750 +22147,635 @@ if $ac_need_defaults; then
30639  fi
30640  
30641  # Have a temporary directory for convenience.  Make it in the build tree
30642 -# simply because there is no reason to put it here, and in addition,
30643 +# simply because there is no reason against having it here, and in addition,
30644  # creating and moving files from /tmp can sometimes cause problems.
30645 -# Create a temporary directory, and hook for its removal unless debugging.
30646 +# Hook for its removal unless debugging.
30647 +# Note that there is a small window in which the directory will not be cleaned:
30648 +# after its creation but before its name has been assigned to `$tmp'.
30649  $debug ||
30650  {
30651 -  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30652 +  tmp=
30653 +  trap 'exit_status=$?
30654 +  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30655 +' 0
30656    trap '{ (exit 1); exit 1; }' 1 2 13 15
30657  }
30658 -
30659  # Create a (secure) tmp directory for tmp files.
30660  
30661  {
30662 -  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30663 +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30664    test -n "$tmp" && test -d "$tmp"
30665  }  ||
30666  {
30667 -  tmp=./confstat$$-$RANDOM
30668 -  (umask 077 && mkdir $tmp)
30669 +  tmp=./conf$$-$RANDOM
30670 +  (umask 077 && mkdir "$tmp")
30671  } ||
30672  {
30673 -   echo "$me: cannot create a temporary directory in ." >&2
30674 +   $as_echo "$as_me: cannot create a temporary directory in ." >&2
30675     { (exit 1); exit 1; }
30676  }
30677  
30678 +# Set up the scripts for CONFIG_FILES section.
30679 +# No need to generate them if there are no CONFIG_FILES.
30680 +# This happens for instance with `./config.status config.h'.
30681 +if test -n "$CONFIG_FILES"; then
30682 +
30683 +
30684 +ac_cr='\r'
30685 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30686 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30687 +  ac_cs_awk_cr='\\r'
30688 +else
30689 +  ac_cs_awk_cr=$ac_cr
30690 +fi
30691 +
30692 +echo 'BEGIN {' >"$tmp/subs1.awk" &&
30693  _ACEOF
30694  
30695 -cat >>$CONFIG_STATUS <<_ACEOF
30696  
30697 -#
30698 -# CONFIG_FILES section.
30699 -#
30700 +{
30701 +  echo "cat >conf$$subs.awk <<_ACEOF" &&
30702 +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30703 +  echo "_ACEOF"
30704 +} >conf$$subs.sh ||
30705 +  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30706 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30707 +   { (exit 1); exit 1; }; }
30708 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30709 +ac_delim='%!_!# '
30710 +for ac_last_try in false false false false false :; do
30711 +  . ./conf$$subs.sh ||
30712 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30713 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30714 +   { (exit 1); exit 1; }; }
30715  
30716 -# No need to generate the scripts if there are no CONFIG_FILES.
30717 -# This happens for instance when ./config.status config.h
30718 -if test -n "\$CONFIG_FILES"; then
30719 -  # Protect against being on the right side of a sed subst in config.status.
30720 -  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30721 -   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30722 -s,@SHELL@,$SHELL,;t t
30723 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30724 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30725 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30726 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30727 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30728 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30729 -s,@exec_prefix@,$exec_prefix,;t t
30730 -s,@prefix@,$prefix,;t t
30731 -s,@program_transform_name@,$program_transform_name,;t t
30732 -s,@bindir@,$bindir,;t t
30733 -s,@sbindir@,$sbindir,;t t
30734 -s,@libexecdir@,$libexecdir,;t t
30735 -s,@datadir@,$datadir,;t t
30736 -s,@sysconfdir@,$sysconfdir,;t t
30737 -s,@sharedstatedir@,$sharedstatedir,;t t
30738 -s,@localstatedir@,$localstatedir,;t t
30739 -s,@libdir@,$libdir,;t t
30740 -s,@includedir@,$includedir,;t t
30741 -s,@oldincludedir@,$oldincludedir,;t t
30742 -s,@infodir@,$infodir,;t t
30743 -s,@mandir@,$mandir,;t t
30744 -s,@build_alias@,$build_alias,;t t
30745 -s,@host_alias@,$host_alias,;t t
30746 -s,@target_alias@,$target_alias,;t t
30747 -s,@DEFS@,$DEFS,;t t
30748 -s,@ECHO_C@,$ECHO_C,;t t
30749 -s,@ECHO_N@,$ECHO_N,;t t
30750 -s,@ECHO_T@,$ECHO_T,;t t
30751 -s,@LIBS@,$LIBS,;t t
30752 -s,@build@,$build,;t t
30753 -s,@build_cpu@,$build_cpu,;t t
30754 -s,@build_vendor@,$build_vendor,;t t
30755 -s,@build_os@,$build_os,;t t
30756 -s,@host@,$host,;t t
30757 -s,@host_cpu@,$host_cpu,;t t
30758 -s,@host_vendor@,$host_vendor,;t t
30759 -s,@host_os@,$host_os,;t t
30760 -s,@target@,$target,;t t
30761 -s,@target_cpu@,$target_cpu,;t t
30762 -s,@target_vendor@,$target_vendor,;t t
30763 -s,@target_os@,$target_os,;t t
30764 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30765 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30766 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30767 -s,@CYGPATH_W@,$CYGPATH_W,;t t
30768 -s,@PACKAGE@,$PACKAGE,;t t
30769 -s,@VERSION@,$VERSION,;t t
30770 -s,@ACLOCAL@,$ACLOCAL,;t t
30771 -s,@AUTOCONF@,$AUTOCONF,;t t
30772 -s,@AUTOMAKE@,$AUTOMAKE,;t t
30773 -s,@AUTOHEADER@,$AUTOHEADER,;t t
30774 -s,@MAKEINFO@,$MAKEINFO,;t t
30775 -s,@install_sh@,$install_sh,;t t
30776 -s,@STRIP@,$STRIP,;t t
30777 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30778 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30779 -s,@mkdir_p@,$mkdir_p,;t t
30780 -s,@AWK@,$AWK,;t t
30781 -s,@SET_MAKE@,$SET_MAKE,;t t
30782 -s,@am__leading_dot@,$am__leading_dot,;t t
30783 -s,@AMTAR@,$AMTAR,;t t
30784 -s,@am__tar@,$am__tar,;t t
30785 -s,@am__untar@,$am__untar,;t t
30786 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
30787 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
30788 -s,@MAINT@,$MAINT,;t t
30789 -s,@CC@,$CC,;t t
30790 -s,@CFLAGS@,$CFLAGS,;t t
30791 -s,@LDFLAGS@,$LDFLAGS,;t t
30792 -s,@CPPFLAGS@,$CPPFLAGS,;t t
30793 -s,@ac_ct_CC@,$ac_ct_CC,;t t
30794 -s,@EXEEXT@,$EXEEXT,;t t
30795 -s,@OBJEXT@,$OBJEXT,;t t
30796 -s,@DEPDIR@,$DEPDIR,;t t
30797 -s,@am__include@,$am__include,;t t
30798 -s,@am__quote@,$am__quote,;t t
30799 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
30800 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
30801 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
30802 -s,@CCDEPMODE@,$CCDEPMODE,;t t
30803 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
30804 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
30805 -s,@EGREP@,$EGREP,;t t
30806 -s,@LN_S@,$LN_S,;t t
30807 -s,@ECHO@,$ECHO,;t t
30808 -s,@AR@,$AR,;t t
30809 -s,@ac_ct_AR@,$ac_ct_AR,;t t
30810 -s,@RANLIB@,$RANLIB,;t t
30811 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30812 -s,@CPP@,$CPP,;t t
30813 -s,@CXX@,$CXX,;t t
30814 -s,@CXXFLAGS@,$CXXFLAGS,;t t
30815 -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30816 -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
30817 -s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
30818 -s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
30819 -s,@CXXCPP@,$CXXCPP,;t t
30820 -s,@F77@,$F77,;t t
30821 -s,@FFLAGS@,$FFLAGS,;t t
30822 -s,@ac_ct_F77@,$ac_ct_F77,;t t
30823 -s,@LIBTOOL@,$LIBTOOL,;t t
30824 -s,@RENAME_TRUE@,$RENAME_TRUE,;t t
30825 -s,@RENAME_FALSE@,$RENAME_FALSE,;t t
30826 -s,@LIBVER@,$LIBVER,;t t
30827 -s,@OS@,$OS,;t t
30828 -s,@LIBOBJS@,$LIBOBJS,;t t
30829 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30830 -CEOF
30831 +  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30832 +  if test $ac_delim_n = $ac_delim_num; then
30833 +    break
30834 +  elif $ac_last_try; then
30835 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30836 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30837 +   { (exit 1); exit 1; }; }
30838 +  else
30839 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30840 +  fi
30841 +done
30842 +rm -f conf$$subs.sh
30843  
30844 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30845 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30846  _ACEOF
30847 +sed -n '
30848 +h
30849 +s/^/S["/; s/!.*/"]=/
30850 +p
30851 +g
30852 +s/^[^!]*!//
30853 +:repl
30854 +t repl
30855 +s/'"$ac_delim"'$//
30856 +t delim
30857 +:nl
30858 +h
30859 +s/\(.\{148\}\).*/\1/
30860 +t more1
30861 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30862 +p
30863 +n
30864 +b repl
30865 +:more1
30866 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30867 +p
30868 +g
30869 +s/.\{148\}//
30870 +t nl
30871 +:delim
30872 +h
30873 +s/\(.\{148\}\).*/\1/
30874 +t more2
30875 +s/["\\]/\\&/g; s/^/"/; s/$/"/
30876 +p
30877 +b
30878 +:more2
30879 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30880 +p
30881 +g
30882 +s/.\{148\}//
30883 +t delim
30884 +' <conf$$subs.awk | sed '
30885 +/^[^""]/{
30886 +  N
30887 +  s/\n//
30888 +}
30889 +' >>$CONFIG_STATUS || ac_write_fail=1
30890 +rm -f conf$$subs.awk
30891 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30892 +_ACAWK
30893 +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30894 +  for (key in S) S_is_set[key] = 1
30895 +  FS = "\a"
30896  
30897 -  cat >>$CONFIG_STATUS <<\_ACEOF
30898 -  # Split the substitutions into bite-sized pieces for seds with
30899 -  # small command number limits, like on Digital OSF/1 and HP-UX.
30900 -  ac_max_sed_lines=48
30901 -  ac_sed_frag=1 # Number of current file.
30902 -  ac_beg=1 # First line for current file.
30903 -  ac_end=$ac_max_sed_lines # Line after last line for current file.
30904 -  ac_more_lines=:
30905 -  ac_sed_cmds=
30906 -  while $ac_more_lines; do
30907 -    if test $ac_beg -gt 1; then
30908 -      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30909 -    else
30910 -      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30911 -    fi
30912 -    if test ! -s $tmp/subs.frag; then
30913 -      ac_more_lines=false
30914 -    else
30915 -      # The purpose of the label and of the branching condition is to
30916 -      # speed up the sed processing (if there are no `@' at all, there
30917 -      # is no need to browse any of the substitutions).
30918 -      # These are the two extra sed commands mentioned above.
30919 -      (echo ':t
30920 -  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30921 -      if test -z "$ac_sed_cmds"; then
30922 -       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30923 -      else
30924 -       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30925 -      fi
30926 -      ac_sed_frag=`expr $ac_sed_frag + 1`
30927 -      ac_beg=$ac_end
30928 -      ac_end=`expr $ac_end + $ac_max_sed_lines`
30929 -    fi
30930 -  done
30931 -  if test -z "$ac_sed_cmds"; then
30932 -    ac_sed_cmds=cat
30933 -  fi
30934 +}
30935 +{
30936 +  line = $ 0
30937 +  nfields = split(line, field, "@")
30938 +  substed = 0
30939 +  len = length(field[1])
30940 +  for (i = 2; i < nfields; i++) {
30941 +    key = field[i]
30942 +    keylen = length(key)
30943 +    if (S_is_set[key]) {
30944 +      value = S[key]
30945 +      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30946 +      len += length(value) + length(field[++i])
30947 +      substed = 1
30948 +    } else
30949 +      len += 1 + keylen
30950 +  }
30951 +
30952 +  print line
30953 +}
30954 +
30955 +_ACAWK
30956 +_ACEOF
30957 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30958 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30959 +  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30960 +else
30961 +  cat
30962 +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30963 +  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30964 +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
30965 +   { (exit 1); exit 1; }; }
30966 +_ACEOF
30967 +
30968 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
30969 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30970 +# trailing colons and then remove the whole line if VPATH becomes empty
30971 +# (actually we leave an empty line to preserve line numbers).
30972 +if test "x$srcdir" = x.; then
30973 +  ac_vpsub='/^[         ]*VPATH[        ]*=/{
30974 +s/:*\$(srcdir):*/:/
30975 +s/:*\${srcdir}:*/:/
30976 +s/:*@srcdir@:*/:/
30977 +s/^\([^=]*=[    ]*\):*/\1/
30978 +s/:*$//
30979 +s/^[^=]*=[      ]*$//
30980 +}'
30981 +fi
30982 +
30983 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30984  fi # test -n "$CONFIG_FILES"
30985  
30986 +# Set up the scripts for CONFIG_HEADERS section.
30987 +# No need to generate them if there are no CONFIG_HEADERS.
30988 +# This happens for instance with `./config.status Makefile'.
30989 +if test -n "$CONFIG_HEADERS"; then
30990 +cat >"$tmp/defines.awk" <<\_ACAWK ||
30991 +BEGIN {
30992  _ACEOF
30993 -cat >>$CONFIG_STATUS <<\_ACEOF
30994 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30995 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30996 -  case $ac_file in
30997 -  - | *:- | *:-:* ) # input from stdin
30998 -       cat >$tmp/stdin
30999 -       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31000 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31001 -  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31002 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31003 -  * )   ac_file_in=$ac_file.in ;;
31004 +
31005 +# Transform confdefs.h into an awk script `defines.awk', embedded as
31006 +# here-document in config.status, that substitutes the proper values into
31007 +# config.h.in to produce config.h.
31008 +
31009 +# Create a delimiter string that does not exist in confdefs.h, to ease
31010 +# handling of long lines.
31011 +ac_delim='%!_!# '
31012 +for ac_last_try in false false :; do
31013 +  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31014 +  if test -z "$ac_t"; then
31015 +    break
31016 +  elif $ac_last_try; then
31017 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31018 +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31019 +   { (exit 1); exit 1; }; }
31020 +  else
31021 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31022 +  fi
31023 +done
31024 +
31025 +# For the awk script, D is an array of macro values keyed by name,
31026 +# likewise P contains macro parameters if any.  Preserve backslash
31027 +# newline sequences.
31028 +
31029 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31030 +sed -n '
31031 +s/.\{148\}/&'"$ac_delim"'/g
31032 +t rset
31033 +:rset
31034 +s/^[    ]*#[    ]*define[       ][      ]*/ /
31035 +t def
31036 +d
31037 +:def
31038 +s/\\$//
31039 +t bsnl
31040 +s/["\\]/\\&/g
31041 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
31042 +D["\1"]=" \3"/p
31043 +s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2"/p
31044 +d
31045 +:bsnl
31046 +s/["\\]/\\&/g
31047 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
31048 +D["\1"]=" \3\\\\\\n"\\/p
31049 +t cont
31050 +s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31051 +t cont
31052 +d
31053 +:cont
31054 +n
31055 +s/.\{148\}/&'"$ac_delim"'/g
31056 +t clear
31057 +:clear
31058 +s/\\$//
31059 +t bsnlc
31060 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
31061 +d
31062 +:bsnlc
31063 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31064 +b cont
31065 +' <confdefs.h | sed '
31066 +s/'"$ac_delim"'/"\\\
31067 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
31068 +
31069 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31070 +  for (key in D) D_is_set[key] = 1
31071 +  FS = "\a"
31072 +}
31073 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31074 +  line = \$ 0
31075 +  split(line, arg, " ")
31076 +  if (arg[1] == "#") {
31077 +    defundef = arg[2]
31078 +    mac1 = arg[3]
31079 +  } else {
31080 +    defundef = substr(arg[1], 2)
31081 +    mac1 = arg[2]
31082 +  }
31083 +  split(mac1, mac2, "(") #)
31084 +  macro = mac2[1]
31085 +  prefix = substr(line, 1, index(line, defundef) - 1)
31086 +  if (D_is_set[macro]) {
31087 +    # Preserve the white space surrounding the "#".
31088 +    print prefix "define", macro P[macro] D[macro]
31089 +    next
31090 +  } else {
31091 +    # Replace #undef with comments.  This is necessary, for example,
31092 +    # in the case of _POSIX_SOURCE, which is predefined and required
31093 +    # on some systems where configure will not decide to define it.
31094 +    if (defundef == "undef") {
31095 +      print "/*", prefix defundef, macro, "*/"
31096 +      next
31097 +    }
31098 +  }
31099 +}
31100 +{ print }
31101 +_ACAWK
31102 +_ACEOF
31103 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31104 +  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31105 +$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31106 +   { (exit 1); exit 1; }; }
31107 +fi # test -n "$CONFIG_HEADERS"
31108 +
31109 +
31110 +eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31111 +shift
31112 +for ac_tag
31113 +do
31114 +  case $ac_tag in
31115 +  :[FHLC]) ac_mode=$ac_tag; continue;;
31116 +  esac
31117 +  case $ac_mode$ac_tag in
31118 +  :[FHL]*:*);;
31119 +  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31120 +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31121 +   { (exit 1); exit 1; }; };;
31122 +  :[FH]-) ac_tag=-:-;;
31123 +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31124 +  esac
31125 +  ac_save_IFS=$IFS
31126 +  IFS=:
31127 +  set x $ac_tag
31128 +  IFS=$ac_save_IFS
31129 +  shift
31130 +  ac_file=$1
31131 +  shift
31132 +
31133 +  case $ac_mode in
31134 +  :L) ac_source=$1;;
31135 +  :[FH])
31136 +    ac_file_inputs=
31137 +    for ac_f
31138 +    do
31139 +      case $ac_f in
31140 +      -) ac_f="$tmp/stdin";;
31141 +      *) # Look for the file first in the build tree, then in the source tree
31142 +        # (if the path is not absolute).  The absolute path cannot be DOS-style,
31143 +        # because $ac_f cannot contain `:'.
31144 +        test -f "$ac_f" ||
31145 +          case $ac_f in
31146 +          [\\/$]*) false;;
31147 +          *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31148 +          esac ||
31149 +          { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31150 +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31151 +   { (exit 1); exit 1; }; };;
31152 +      esac
31153 +      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31154 +      ac_file_inputs="$ac_file_inputs '$ac_f'"
31155 +    done
31156 +
31157 +    # Let's still pretend it is `configure' which instantiates (i.e., don't
31158 +    # use $as_me), people would be surprised to read:
31159 +    #    /* config.h.  Generated by config.status.  */
31160 +    configure_input='Generated from '`
31161 +         $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31162 +       `' by configure.'
31163 +    if test x"$ac_file" != x-; then
31164 +      configure_input="$ac_file.  $configure_input"
31165 +      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31166 +$as_echo "$as_me: creating $ac_file" >&6;}
31167 +    fi
31168 +    # Neutralize special characters interpreted by sed in replacement strings.
31169 +    case $configure_input in #(
31170 +    *\&* | *\|* | *\\* )
31171 +       ac_sed_conf_input=`$as_echo "$configure_input" |
31172 +       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31173 +    *) ac_sed_conf_input=$configure_input;;
31174 +    esac
31175 +
31176 +    case $ac_tag in
31177 +    *:-:* | *:-) cat >"$tmp/stdin" \
31178 +      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31179 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31180 +   { (exit 1); exit 1; }; } ;;
31181 +    esac
31182 +    ;;
31183    esac
31184  
31185 -  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31186 -  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31187 +  ac_dir=`$as_dirname -- "$ac_file" ||
31188  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31189          X"$ac_file" : 'X\(//\)[^/]' \| \
31190          X"$ac_file" : 'X\(//\)$' \| \
31191 -        X"$ac_file" : 'X\(/\)' \| \
31192 -        .     : '\(.\)' 2>/dev/null ||
31193 -echo X"$ac_file" |
31194 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31195 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31196 -         /^X\(\/\/\)$/{ s//\1/; q; }
31197 -         /^X\(\/\).*/{ s//\1/; q; }
31198 -         s/.*/./; q'`
31199 -  { if $as_mkdir_p; then
31200 -    mkdir -p "$ac_dir"
31201 -  else
31202 -    as_dir="$ac_dir"
31203 +        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31204 +$as_echo X"$ac_file" |
31205 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31206 +           s//\1/
31207 +           q
31208 +         }
31209 +         /^X\(\/\/\)[^/].*/{
31210 +           s//\1/
31211 +           q
31212 +         }
31213 +         /^X\(\/\/\)$/{
31214 +           s//\1/
31215 +           q
31216 +         }
31217 +         /^X\(\/\).*/{
31218 +           s//\1/
31219 +           q
31220 +         }
31221 +         s/.*/./; q'`
31222 +  { as_dir="$ac_dir"
31223 +  case $as_dir in #(
31224 +  -*) as_dir=./$as_dir;;
31225 +  esac
31226 +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31227      as_dirs=
31228 -    while test ! -d "$as_dir"; do
31229 -      as_dirs="$as_dir $as_dirs"
31230 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31231 +    while :; do
31232 +      case $as_dir in #(
31233 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31234 +      *) as_qdir=$as_dir;;
31235 +      esac
31236 +      as_dirs="'$as_qdir' $as_dirs"
31237 +      as_dir=`$as_dirname -- "$as_dir" ||
31238  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31239          X"$as_dir" : 'X\(//\)[^/]' \| \
31240          X"$as_dir" : 'X\(//\)$' \| \
31241 -        X"$as_dir" : 'X\(/\)' \| \
31242 -        .     : '\(.\)' 2>/dev/null ||
31243 -echo X"$as_dir" |
31244 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31245 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31246 -         /^X\(\/\/\)$/{ s//\1/; q; }
31247 -         /^X\(\/\).*/{ s//\1/; q; }
31248 -         s/.*/./; q'`
31249 +        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31250 +$as_echo X"$as_dir" |
31251 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31252 +           s//\1/
31253 +           q
31254 +         }
31255 +         /^X\(\/\/\)[^/].*/{
31256 +           s//\1/
31257 +           q
31258 +         }
31259 +         /^X\(\/\/\)$/{
31260 +           s//\1/
31261 +           q
31262 +         }
31263 +         /^X\(\/\).*/{
31264 +           s//\1/
31265 +           q
31266 +         }
31267 +         s/.*/./; q'`
31268 +      test -d "$as_dir" && break
31269      done
31270 -    test ! -n "$as_dirs" || mkdir $as_dirs
31271 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31272 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31273 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
31274 +  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31275 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31276     { (exit 1); exit 1; }; }; }
31277 -
31278    ac_builddir=.
31279  
31280 -if test "$ac_dir" != .; then
31281 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31282 -  # A "../" for each directory in $ac_dir_suffix.
31283 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31284 -else
31285 -  ac_dir_suffix= ac_top_builddir=
31286 -fi
31287 +case "$ac_dir" in
31288 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31289 +*)
31290 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31291 +  # A ".." for each directory in $ac_dir_suffix.
31292 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31293 +  case $ac_top_builddir_sub in
31294 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31295 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31296 +  esac ;;
31297 +esac
31298 +ac_abs_top_builddir=$ac_pwd
31299 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
31300 +# for backward compatibility:
31301 +ac_top_builddir=$ac_top_build_prefix
31302  
31303  case $srcdir in
31304 -  .)  # No --srcdir option.  We are building in place.
31305 +  .)  # We are building in place.
31306      ac_srcdir=.
31307 -    if test -z "$ac_top_builddir"; then
31308 -       ac_top_srcdir=.
31309 -    else
31310 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31311 -    fi ;;
31312 -  [\\/]* | ?:[\\/]* )  # Absolute path.
31313 +    ac_top_srcdir=$ac_top_builddir_sub
31314 +    ac_abs_top_srcdir=$ac_pwd ;;
31315 +  [\\/]* | ?:[\\/]* )  # Absolute name.
31316      ac_srcdir=$srcdir$ac_dir_suffix;
31317 -    ac_top_srcdir=$srcdir ;;
31318 -  *) # Relative path.
31319 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31320 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31321 +    ac_top_srcdir=$srcdir
31322 +    ac_abs_top_srcdir=$srcdir ;;
31323 +  *) # Relative name.
31324 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31325 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
31326 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31327  esac
31328 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31329  
31330 -# Do not use `cd foo && pwd` to compute absolute paths, because
31331 -# the directories may not exist.
31332 -case `pwd` in
31333 -.) ac_abs_builddir="$ac_dir";;
31334 -*)
31335 -  case "$ac_dir" in
31336 -  .) ac_abs_builddir=`pwd`;;
31337 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31338 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31339 -  esac;;
31340 -esac
31341 -case $ac_abs_builddir in
31342 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
31343 -*)
31344 -  case ${ac_top_builddir}. in
31345 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
31346 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31347 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31348 -  esac;;
31349 -esac
31350 -case $ac_abs_builddir in
31351 -.) ac_abs_srcdir=$ac_srcdir;;
31352 -*)
31353 -  case $ac_srcdir in
31354 -  .) ac_abs_srcdir=$ac_abs_builddir;;
31355 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31356 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31357 -  esac;;
31358 -esac
31359 -case $ac_abs_builddir in
31360 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
31361 -*)
31362 -  case $ac_top_srcdir in
31363 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31364 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31365 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31366 -  esac;;
31367 -esac
31368  
31369 +  case $ac_mode in
31370 +  :F)
31371 +  #
31372 +  # CONFIG_FILE
31373 +  #
31374  
31375    case $INSTALL in
31376    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31377 -  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31378 +  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31379    esac
31380 +_ACEOF
31381  
31382 -  if test x"$ac_file" != x-; then
31383 -    { echo "$as_me:$LINENO: creating $ac_file" >&5
31384 -echo "$as_me: creating $ac_file" >&6;}
31385 -    rm -f "$ac_file"
31386 -  fi
31387 -  # Let's still pretend it is `configure' which instantiates (i.e., don't
31388 -  # use $as_me), people would be surprised to read:
31389 -  #    /* config.h.  Generated by config.status.  */
31390 -  if test x"$ac_file" = x-; then
31391 -    configure_input=
31392 -  else
31393 -    configure_input="$ac_file.  "
31394 -  fi
31395 -  configure_input=$configure_input"Generated from `echo $ac_file_in |
31396 -                                    sed 's,.*/,,'` by configure."
31397 -
31398 -  # First look for the input files in the build tree, otherwise in the
31399 -  # src tree.
31400 -  ac_file_inputs=`IFS=:
31401 -    for f in $ac_file_in; do
31402 -      case $f in
31403 -      -) echo $tmp/stdin ;;
31404 -      [\\/$]*)
31405 -        # Absolute (can't be DOS-style, as IFS=:)
31406 -        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31407 -echo "$as_me: error: cannot find input file: $f" >&2;}
31408 -   { (exit 1); exit 1; }; }
31409 -        echo "$f";;
31410 -      *) # Relative
31411 -        if test -f "$f"; then
31412 -          # Build tree
31413 -          echo "$f"
31414 -        elif test -f "$srcdir/$f"; then
31415 -          # Source tree
31416 -          echo "$srcdir/$f"
31417 -        else
31418 -          # /dev/null tree
31419 -          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31420 -echo "$as_me: error: cannot find input file: $f" >&2;}
31421 -   { (exit 1); exit 1; }; }
31422 -        fi;;
31423 -      esac
31424 -    done` || { (exit 1); exit 1; }
31425 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31426 +# If the template does not know about datarootdir, expand it.
31427 +# FIXME: This hack should be removed a few years after 2.60.
31428 +ac_datarootdir_hack=; ac_datarootdir_seen=
31429 +
31430 +ac_sed_dataroot='
31431 +/datarootdir/ {
31432 +  p
31433 +  q
31434 +}
31435 +/@datadir@/p
31436 +/@docdir@/p
31437 +/@infodir@/p
31438 +/@localedir@/p
31439 +/@mandir@/p
31440 +'
31441 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31442 +*datarootdir*) ac_datarootdir_seen=yes;;
31443 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31444 +  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31445 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31446  _ACEOF
31447 -cat >>$CONFIG_STATUS <<_ACEOF
31448 -  sed "$ac_vpsub
31449 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31450 +  ac_datarootdir_hack='
31451 +  s&@datadir@&$datadir&g
31452 +  s&@docdir@&$docdir&g
31453 +  s&@infodir@&$infodir&g
31454 +  s&@localedir@&$localedir&g
31455 +  s&@mandir@&$mandir&g
31456 +    s&\\\${datarootdir}&$datarootdir&g' ;;
31457 +esac
31458 +_ACEOF
31459 +
31460 +# Neutralize VPATH when `$srcdir' = `.'.
31461 +# Shell code in configure.ac might set extrasub.
31462 +# FIXME: do we really want to maintain this feature?
31463 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31464 +ac_sed_extra="$ac_vpsub
31465  $extrasub
31466  _ACEOF
31467 -cat >>$CONFIG_STATUS <<\_ACEOF
31468 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31469  :t
31470  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31471 -s,@configure_input@,$configure_input,;t t
31472 -s,@srcdir@,$ac_srcdir,;t t
31473 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
31474 -s,@top_srcdir@,$ac_top_srcdir,;t t
31475 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31476 -s,@builddir@,$ac_builddir,;t t
31477 -s,@abs_builddir@,$ac_abs_builddir,;t t
31478 -s,@top_builddir@,$ac_top_builddir,;t t
31479 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31480 -s,@INSTALL@,$ac_INSTALL,;t t
31481 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31482 -  rm -f $tmp/stdin
31483 -  if test x"$ac_file" != x-; then
31484 -    mv $tmp/out $ac_file
31485 -  else
31486 -    cat $tmp/out
31487 -    rm -f $tmp/out
31488 -  fi
31489 -
31490 -done
31491 -_ACEOF
31492 -cat >>$CONFIG_STATUS <<\_ACEOF
31493 +s|@configure_input@|$ac_sed_conf_input|;t t
31494 +s&@top_builddir@&$ac_top_builddir_sub&;t t
31495 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
31496 +s&@srcdir@&$ac_srcdir&;t t
31497 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
31498 +s&@top_srcdir@&$ac_top_srcdir&;t t
31499 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31500 +s&@builddir@&$ac_builddir&;t t
31501 +s&@abs_builddir@&$ac_abs_builddir&;t t
31502 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31503 +s&@INSTALL@&$ac_INSTALL&;t t
31504 +$ac_datarootdir_hack
31505 +"
31506 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31507 +  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31508 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31509 +   { (exit 1); exit 1; }; }
31510  
31511 -#
31512 -# CONFIG_HEADER section.
31513 -#
31514 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31515 +  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31516 +  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31517 +  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31518 +which seems to be undefined.  Please make sure it is defined." >&5
31519 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31520 +which seems to be undefined.  Please make sure it is defined." >&2;}
31521  
31522 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31523 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
31524 -#
31525 -# ac_d sets the value in "#define NAME VALUE" lines.
31526 -ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
31527 -ac_dB='[        ].*$,\1#\2'
31528 -ac_dC=' '
31529 -ac_dD=',;t'
31530 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31531 -ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31532 -ac_uB='$,\1#\2define\3'
31533 -ac_uC=' '
31534 -ac_uD=',;t'
31535 -
31536 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31537 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31538 +  rm -f "$tmp/stdin"
31539    case $ac_file in
31540 -  - | *:- | *:-:* ) # input from stdin
31541 -       cat >$tmp/stdin
31542 -       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31543 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31544 -  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31545 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31546 -  * )   ac_file_in=$ac_file.in ;;
31547 -  esac
31548 -
31549 -  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31550 -echo "$as_me: creating $ac_file" >&6;}
31551 -
31552 -  # First look for the input files in the build tree, otherwise in the
31553 -  # src tree.
31554 -  ac_file_inputs=`IFS=:
31555 -    for f in $ac_file_in; do
31556 -      case $f in
31557 -      -) echo $tmp/stdin ;;
31558 -      [\\/$]*)
31559 -        # Absolute (can't be DOS-style, as IFS=:)
31560 -        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31561 -echo "$as_me: error: cannot find input file: $f" >&2;}
31562 -   { (exit 1); exit 1; }; }
31563 -        # Do quote $f, to prevent DOS paths from being IFS'd.
31564 -        echo "$f";;
31565 -      *) # Relative
31566 -        if test -f "$f"; then
31567 -          # Build tree
31568 -          echo "$f"
31569 -        elif test -f "$srcdir/$f"; then
31570 -          # Source tree
31571 -          echo "$srcdir/$f"
31572 -        else
31573 -          # /dev/null tree
31574 -          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31575 -echo "$as_me: error: cannot find input file: $f" >&2;}
31576 +  -) cat "$tmp/out" && rm -f "$tmp/out";;
31577 +  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31578 +  esac \
31579 +  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31580 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31581     { (exit 1); exit 1; }; }
31582 -        fi;;
31583 -      esac
31584 -    done` || { (exit 1); exit 1; }
31585 -  # Remove the trailing spaces.
31586 -  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
31587 -
31588 -_ACEOF
31589 -
31590 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
31591 -# `conftest.undefs', that substitutes the proper values into
31592 -# config.h.in to produce config.h.  The first handles `#define'
31593 -# templates, and the second `#undef' templates.
31594 -# And first: Protect against being on the right side of a sed subst in
31595 -# config.status.  Protect against being in an unquoted here document
31596 -# in config.status.
31597 -rm -f conftest.defines conftest.undefs
31598 -# Using a here document instead of a string reduces the quoting nightmare.
31599 -# Putting comments in sed scripts is not portable.
31600 -#
31601 -# `end' is used to avoid that the second main sed command (meant for
31602 -# 0-ary CPP macros) applies to n-ary macro definitions.
31603 -# See the Autoconf documentation for `clear'.
31604 -cat >confdef2sed.sed <<\_ACEOF
31605 -s/[\\&,]/\\&/g
31606 -s,[\\$`],\\&,g
31607 -t clear
31608 -: clear
31609 -s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31610 -t end
31611 -s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31612 -: end
31613 -_ACEOF
31614 -# If some macros were called several times there might be several times
31615 -# the same #defines, which is useless.  Nevertheless, we may not want to
31616 -# sort them, since we want the *last* AC-DEFINE to be honored.
31617 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31618 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31619 -rm -f confdef2sed.sed
31620 -
31621 -# This sed command replaces #undef with comments.  This is necessary, for
31622 -# example, in the case of _POSIX_SOURCE, which is predefined and required
31623 -# on some systems where configure will not decide to define it.
31624 -cat >>conftest.undefs <<\_ACEOF
31625 -s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31626 -_ACEOF
31627 -
31628 -# Break up conftest.defines because some shells have a limit on the size
31629 -# of here documents, and old seds have small limits too (100 cmds).
31630 -echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31631 -echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31632 -echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31633 -echo '  :' >>$CONFIG_STATUS
31634 -rm -f conftest.tail
31635 -while grep . conftest.defines >/dev/null
31636 -do
31637 -  # Write a limited-size here document to $tmp/defines.sed.
31638 -  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31639 -  # Speed up: don't consider the non `#define' lines.
31640 -  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
31641 -  # Work around the forget-to-reset-the-flag bug.
31642 -  echo 't clr' >>$CONFIG_STATUS
31643 -  echo ': clr' >>$CONFIG_STATUS
31644 -  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31645 -  echo 'CEOF
31646 -  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31647 -  rm -f $tmp/in
31648 -  mv $tmp/out $tmp/in
31649 -' >>$CONFIG_STATUS
31650 -  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31651 -  rm -f conftest.defines
31652 -  mv conftest.tail conftest.defines
31653 -done
31654 -rm -f conftest.defines
31655 -echo '  fi # grep' >>$CONFIG_STATUS
31656 -echo >>$CONFIG_STATUS
31657 -
31658 -# Break up conftest.undefs because some shells have a limit on the size
31659 -# of here documents, and old seds have small limits too (100 cmds).
31660 -echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31661 -rm -f conftest.tail
31662 -while grep . conftest.undefs >/dev/null
31663 -do
31664 -  # Write a limited-size here document to $tmp/undefs.sed.
31665 -  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31666 -  # Speed up: don't consider the non `#undef'
31667 -  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31668 -  # Work around the forget-to-reset-the-flag bug.
31669 -  echo 't clr' >>$CONFIG_STATUS
31670 -  echo ': clr' >>$CONFIG_STATUS
31671 -  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31672 -  echo 'CEOF
31673 -  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31674 -  rm -f $tmp/in
31675 -  mv $tmp/out $tmp/in
31676 -' >>$CONFIG_STATUS
31677 -  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31678 -  rm -f conftest.undefs
31679 -  mv conftest.tail conftest.undefs
31680 -done
31681 -rm -f conftest.undefs
31682 -
31683 -cat >>$CONFIG_STATUS <<\_ACEOF
31684 -  # Let's still pretend it is `configure' which instantiates (i.e., don't
31685 -  # use $as_me), people would be surprised to read:
31686 -  #    /* config.h.  Generated by config.status.  */
31687 -  if test x"$ac_file" = x-; then
31688 -    echo "/* Generated by configure.  */" >$tmp/config.h
31689 -  else
31690 -    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31691 -  fi
31692 -  cat $tmp/in >>$tmp/config.h
31693 -  rm -f $tmp/in
31694 + ;;
31695 +  :H)
31696 +  #
31697 +  # CONFIG_HEADER
31698 +  #
31699    if test x"$ac_file" != x-; then
31700 -    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31701 -      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31702 -echo "$as_me: $ac_file is unchanged" >&6;}
31703 +    {
31704 +      $as_echo "/* $configure_input  */" \
31705 +      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31706 +    } >"$tmp/config.h" \
31707 +      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31708 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31709 +   { (exit 1); exit 1; }; }
31710 +    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31711 +      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31712 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
31713      else
31714 -      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31715 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31716 -        X"$ac_file" : 'X\(//\)[^/]' \| \
31717 -        X"$ac_file" : 'X\(//\)$' \| \
31718 -        X"$ac_file" : 'X\(/\)' \| \
31719 -        .     : '\(.\)' 2>/dev/null ||
31720 -echo X"$ac_file" |
31721 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31722 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31723 -         /^X\(\/\/\)$/{ s//\1/; q; }
31724 -         /^X\(\/\).*/{ s//\1/; q; }
31725 -         s/.*/./; q'`
31726 -      { if $as_mkdir_p; then
31727 -    mkdir -p "$ac_dir"
31728 -  else
31729 -    as_dir="$ac_dir"
31730 -    as_dirs=
31731 -    while test ! -d "$as_dir"; do
31732 -      as_dirs="$as_dir $as_dirs"
31733 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31734 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31735 -        X"$as_dir" : 'X\(//\)[^/]' \| \
31736 -        X"$as_dir" : 'X\(//\)$' \| \
31737 -        X"$as_dir" : 'X\(/\)' \| \
31738 -        .     : '\(.\)' 2>/dev/null ||
31739 -echo X"$as_dir" |
31740 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31741 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31742 -         /^X\(\/\/\)$/{ s//\1/; q; }
31743 -         /^X\(\/\).*/{ s//\1/; q; }
31744 -         s/.*/./; q'`
31745 -    done
31746 -    test ! -n "$as_dirs" || mkdir $as_dirs
31747 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31748 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31749 -   { (exit 1); exit 1; }; }; }
31750 -
31751 -      rm -f $ac_file
31752 -      mv $tmp/config.h $ac_file
31753 +      rm -f "$ac_file"
31754 +      mv "$tmp/config.h" "$ac_file" \
31755 +       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31756 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31757 +   { (exit 1); exit 1; }; }
31758      fi
31759    else
31760 -    cat $tmp/config.h
31761 -    rm -f $tmp/config.h
31762 +    $as_echo "/* $configure_input  */" \
31763 +      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31764 +      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31765 +$as_echo "$as_me: error: could not create -" >&2;}
31766 +   { (exit 1); exit 1; }; }
31767    fi
31768 -# Compute $ac_file's index in $config_headers.
31769 +# Compute "$ac_file"'s index in $config_headers.
31770  _am_stamp_count=1
31771  for _am_header in $config_headers :; do
31772    case $_am_header in
31773 -    $ac_file | $ac_file:* )
31774 +    "$ac_file" | "$ac_file":* )
31775        break ;;
31776      * )
31777        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31778    esac
31779  done
31780 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31781 -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31782 -        X$ac_file : 'X\(//\)[^/]' \| \
31783 -        X$ac_file : 'X\(//\)$' \| \
31784 -        X$ac_file : 'X\(/\)' \| \
31785 -        .     : '\(.\)' 2>/dev/null ||
31786 -echo X$ac_file |
31787 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31788 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31789 -         /^X\(\/\/\)$/{ s//\1/; q; }
31790 -         /^X\(\/\).*/{ s//\1/; q; }
31791 -         s/.*/./; q'`/stamp-h$_am_stamp_count
31792 -done
31793 -_ACEOF
31794 -cat >>$CONFIG_STATUS <<\_ACEOF
31795 -
31796 -#
31797 -# CONFIG_COMMANDS section.
31798 -#
31799 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31800 -  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31801 -  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31802 -  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31803 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31804 -        X"$ac_dest" : 'X\(//\)[^/]' \| \
31805 -        X"$ac_dest" : 'X\(//\)$' \| \
31806 -        X"$ac_dest" : 'X\(/\)' \| \
31807 -        .     : '\(.\)' 2>/dev/null ||
31808 -echo X"$ac_dest" |
31809 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31810 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31811 -         /^X\(\/\/\)$/{ s//\1/; q; }
31812 -         /^X\(\/\).*/{ s//\1/; q; }
31813 -         s/.*/./; q'`
31814 -  { if $as_mkdir_p; then
31815 -    mkdir -p "$ac_dir"
31816 -  else
31817 -    as_dir="$ac_dir"
31818 -    as_dirs=
31819 -    while test ! -d "$as_dir"; do
31820 -      as_dirs="$as_dir $as_dirs"
31821 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31822 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31823 -        X"$as_dir" : 'X\(//\)[^/]' \| \
31824 -        X"$as_dir" : 'X\(//\)$' \| \
31825 -        X"$as_dir" : 'X\(/\)' \| \
31826 -        .     : '\(.\)' 2>/dev/null ||
31827 -echo X"$as_dir" |
31828 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31829 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31830 -         /^X\(\/\/\)$/{ s//\1/; q; }
31831 -         /^X\(\/\).*/{ s//\1/; q; }
31832 -         s/.*/./; q'`
31833 -    done
31834 -    test ! -n "$as_dirs" || mkdir $as_dirs
31835 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31836 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31837 -   { (exit 1); exit 1; }; }; }
31838 -
31839 -  ac_builddir=.
31840 -
31841 -if test "$ac_dir" != .; then
31842 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31843 -  # A "../" for each directory in $ac_dir_suffix.
31844 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31845 -else
31846 -  ac_dir_suffix= ac_top_builddir=
31847 -fi
31848 -
31849 -case $srcdir in
31850 -  .)  # No --srcdir option.  We are building in place.
31851 -    ac_srcdir=.
31852 -    if test -z "$ac_top_builddir"; then
31853 -       ac_top_srcdir=.
31854 -    else
31855 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31856 -    fi ;;
31857 -  [\\/]* | ?:[\\/]* )  # Absolute path.
31858 -    ac_srcdir=$srcdir$ac_dir_suffix;
31859 -    ac_top_srcdir=$srcdir ;;
31860 -  *) # Relative path.
31861 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31862 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31863 -esac
31864 +echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
31865 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31866 +        X"$ac_file" : 'X\(//\)[^/]' \| \
31867 +        X"$ac_file" : 'X\(//\)$' \| \
31868 +        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31869 +$as_echo X"$ac_file" |
31870 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31871 +           s//\1/
31872 +           q
31873 +         }
31874 +         /^X\(\/\/\)[^/].*/{
31875 +           s//\1/
31876 +           q
31877 +         }
31878 +         /^X\(\/\/\)$/{
31879 +           s//\1/
31880 +           q
31881 +         }
31882 +         /^X\(\/\).*/{
31883 +           s//\1/
31884 +           q
31885 +         }
31886 +         s/.*/./; q'`/stamp-h$_am_stamp_count
31887 + ;;
31888  
31889 -# Do not use `cd foo && pwd` to compute absolute paths, because
31890 -# the directories may not exist.
31891 -case `pwd` in
31892 -.) ac_abs_builddir="$ac_dir";;
31893 -*)
31894 -  case "$ac_dir" in
31895 -  .) ac_abs_builddir=`pwd`;;
31896 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31897 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31898 -  esac;;
31899 -esac
31900 -case $ac_abs_builddir in
31901 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
31902 -*)
31903 -  case ${ac_top_builddir}. in
31904 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
31905 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31906 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31907 -  esac;;
31908 -esac
31909 -case $ac_abs_builddir in
31910 -.) ac_abs_srcdir=$ac_srcdir;;
31911 -*)
31912 -  case $ac_srcdir in
31913 -  .) ac_abs_srcdir=$ac_abs_builddir;;
31914 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31915 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31916 -  esac;;
31917 -esac
31918 -case $ac_abs_builddir in
31919 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
31920 -*)
31921 -  case $ac_top_srcdir in
31922 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31923 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31924 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31925 -  esac;;
31926 -esac
31927 +  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31928 +$as_echo "$as_me: executing $ac_file commands" >&6;}
31929 + ;;
31930 +  esac
31931  
31932  
31933 -  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31934 -echo "$as_me: executing $ac_dest commands" >&6;}
31935 -  case $ac_dest in
31936 -    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31937 +  case $ac_file$ac_mode in
31938 +    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31939    # Strip MF so we end up with the name of the file.
31940    mf=`echo "$mf" | sed -e 's/:.*$//'`
31941    # Check whether this is an Automake generated Makefile or not.
31942 @@ -21932,18 +22785,29 @@ echo "$as_me: executing $ac_dest commands" >&6;}
31943    # each Makefile.in and add a new line on top of each file to say so.
31944    # So let's grep whole file.
31945    if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31946 -    dirpart=`(dirname "$mf") 2>/dev/null ||
31947 +    dirpart=`$as_dirname -- "$mf" ||
31948  $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31949          X"$mf" : 'X\(//\)[^/]' \| \
31950          X"$mf" : 'X\(//\)$' \| \
31951 -        X"$mf" : 'X\(/\)' \| \
31952 -        .     : '\(.\)' 2>/dev/null ||
31953 -echo X"$mf" |
31954 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31955 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31956 -         /^X\(\/\/\)$/{ s//\1/; q; }
31957 -         /^X\(\/\).*/{ s//\1/; q; }
31958 -         s/.*/./; q'`
31959 +        X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31960 +$as_echo X"$mf" |
31961 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31962 +           s//\1/
31963 +           q
31964 +         }
31965 +         /^X\(\/\/\)[^/].*/{
31966 +           s//\1/
31967 +           q
31968 +         }
31969 +         /^X\(\/\/\)$/{
31970 +           s//\1/
31971 +           q
31972 +         }
31973 +         /^X\(\/\).*/{
31974 +           s//\1/
31975 +           q
31976 +         }
31977 +         s/.*/./; q'`
31978    else
31979      continue
31980    fi
31981 @@ -21965,59 +22829,90 @@ echo X"$mf" |
31982         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31983      # Make sure the directory exists.
31984      test -f "$dirpart/$file" && continue
31985 -    fdir=`(dirname "$file") 2>/dev/null ||
31986 +    fdir=`$as_dirname -- "$file" ||
31987  $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31988          X"$file" : 'X\(//\)[^/]' \| \
31989          X"$file" : 'X\(//\)$' \| \
31990 -        X"$file" : 'X\(/\)' \| \
31991 -        .     : '\(.\)' 2>/dev/null ||
31992 -echo X"$file" |
31993 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31994 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31995 -         /^X\(\/\/\)$/{ s//\1/; q; }
31996 -         /^X\(\/\).*/{ s//\1/; q; }
31997 -         s/.*/./; q'`
31998 -    { if $as_mkdir_p; then
31999 -    mkdir -p $dirpart/$fdir
32000 -  else
32001 -    as_dir=$dirpart/$fdir
32002 +        X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32003 +$as_echo X"$file" |
32004 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32005 +           s//\1/
32006 +           q
32007 +         }
32008 +         /^X\(\/\/\)[^/].*/{
32009 +           s//\1/
32010 +           q
32011 +         }
32012 +         /^X\(\/\/\)$/{
32013 +           s//\1/
32014 +           q
32015 +         }
32016 +         /^X\(\/\).*/{
32017 +           s//\1/
32018 +           q
32019 +         }
32020 +         s/.*/./; q'`
32021 +    { as_dir=$dirpart/$fdir
32022 +  case $as_dir in #(
32023 +  -*) as_dir=./$as_dir;;
32024 +  esac
32025 +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32026      as_dirs=
32027 -    while test ! -d "$as_dir"; do
32028 -      as_dirs="$as_dir $as_dirs"
32029 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32030 +    while :; do
32031 +      case $as_dir in #(
32032 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32033 +      *) as_qdir=$as_dir;;
32034 +      esac
32035 +      as_dirs="'$as_qdir' $as_dirs"
32036 +      as_dir=`$as_dirname -- "$as_dir" ||
32037  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32038          X"$as_dir" : 'X\(//\)[^/]' \| \
32039          X"$as_dir" : 'X\(//\)$' \| \
32040 -        X"$as_dir" : 'X\(/\)' \| \
32041 -        .     : '\(.\)' 2>/dev/null ||
32042 -echo X"$as_dir" |
32043 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32044 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32045 -         /^X\(\/\/\)$/{ s//\1/; q; }
32046 -         /^X\(\/\).*/{ s//\1/; q; }
32047 -         s/.*/./; q'`
32048 +        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32049 +$as_echo X"$as_dir" |
32050 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32051 +           s//\1/
32052 +           q
32053 +         }
32054 +         /^X\(\/\/\)[^/].*/{
32055 +           s//\1/
32056 +           q
32057 +         }
32058 +         /^X\(\/\/\)$/{
32059 +           s//\1/
32060 +           q
32061 +         }
32062 +         /^X\(\/\).*/{
32063 +           s//\1/
32064 +           q
32065 +         }
32066 +         s/.*/./; q'`
32067 +      test -d "$as_dir" && break
32068      done
32069 -    test ! -n "$as_dirs" || mkdir $as_dirs
32070 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32071 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32072 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
32073 +  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32074 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32075     { (exit 1); exit 1; }; }; }
32076 -
32077      # echo "creating $dirpart/$file"
32078      echo '# dummy' > "$dirpart/$file"
32079    done
32080  done
32081   ;;
32082 +
32083    esac
32084 -done
32085 -_ACEOF
32086 +done # for ac_tag
32087  
32088 -cat >>$CONFIG_STATUS <<\_ACEOF
32089  
32090  { (exit 0); exit 0; }
32091  _ACEOF
32092  chmod +x $CONFIG_STATUS
32093  ac_clean_files=$ac_clean_files_save
32094  
32095 +test $ac_write_fail = 0 ||
32096 +  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32097 +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32098 +   { (exit 1); exit 1; }; }
32099 +
32100  
32101  # configure is writing to config.log, and then calls config.status.
32102  # config.status does its own redirection, appending to config.log.
32103 @@ -22039,4 +22934,8 @@ if test "$no_create" != yes; then
32104    # would make configure fail if this is the last instruction.
32105    $ac_cs_success || { (exit 1); exit 1; }
32106  fi
32107 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32108 +  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32109 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32110 +fi
32111