users/nenolod/mudkip-player

changeset 1:f28dd2ac7d81

Add some missing files.
author William Pitcock <nenolod@atheme.org>
date Sat May 10 07:48:26 2008 -0500 (2008-05-10)
parents 884489b7946a
children e5ed9c0373e6
files aclocal.m4 config.guess config.sub libhrel/aclocal.m4 libhrel/autogen.sh libhrel/config.guess libhrel/config.sub libhrel/configure libhrel/ltmain.sh libskinned/aclocal.m4 libskinned/autogen.sh libskinned/config.guess libskinned/config.sub libskinned/configure libskinned/ltmain.sh ltmain.sh
line diff
     1.1 --- a/aclocal.m4	Sat May 10 07:45:39 2008 -0500
     1.2 +++ b/aclocal.m4	Sat May 10 07:48:26 2008 -0500
     1.3 @@ -1,7 +1,7 @@
     1.4 -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
     1.5 +# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
     1.6  
     1.7  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     1.8 -# 2005  Free Software Foundation, Inc.
     1.9 +# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
    1.10  # This file is free software; the Free Software Foundation
    1.11  # gives unlimited permission to copy and/or distribute it,
    1.12  # with or without modifications, as long as this notice is preserved.
    1.13 @@ -11,9 +11,17 @@
    1.14  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    1.15  # PARTICULAR PURPOSE.
    1.16  
    1.17 +m4_ifndef([AC_AUTOCONF_VERSION],
    1.18 +  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    1.19 +m4_if(AC_AUTOCONF_VERSION, [2.61],,
    1.20 +[m4_warning([this file was generated for autoconf 2.61.
    1.21 +You have another version of autoconf.  It may work, but is not guaranteed to.
    1.22 +If you have problems, you may need to regenerate the build system entirely.
    1.23 +To do so, use the procedure documented by the package, typically `autoreconf'.])])
    1.24 +
    1.25  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    1.26  
    1.27 -# serial 47 AC_PROG_LIBTOOL
    1.28 +# serial 52 Debian 1.5.26-1 AC_PROG_LIBTOOL
    1.29  
    1.30  
    1.31  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
    1.32 @@ -101,7 +109,6 @@
    1.33  AC_REQUIRE([AC_OBJEXT])dnl
    1.34  AC_REQUIRE([AC_EXEEXT])dnl
    1.35  dnl
    1.36 -
    1.37  AC_LIBTOOL_SYS_MAX_CMD_LEN
    1.38  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
    1.39  AC_LIBTOOL_OBJDIR
    1.40 @@ -123,7 +130,7 @@
    1.41  
    1.42  # Sed substitution that helps us do robust quoting.  It backslashifies
    1.43  # metacharacters that are still active within double-quoted strings.
    1.44 -Xsed='sed -e s/^X//'
    1.45 +Xsed='sed -e 1s/^X//'
    1.46  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
    1.47  
    1.48  # Same as above, but do not quote variable references.
    1.49 @@ -143,7 +150,7 @@
    1.50  default_ofile=libtool
    1.51  can_build_shared=yes
    1.52  
    1.53 -# All known linkers require a `.a' archive for static linking (except M$VC,
    1.54 +# All known linkers require a `.a' archive for static linking (except MSVC,
    1.55  # which needs '.lib').
    1.56  libext=a
    1.57  ltmain="$ac_aux_dir/ltmain.sh"
    1.58 @@ -163,6 +170,7 @@
    1.59  test -z "$AS" && AS=as
    1.60  test -z "$CC" && CC=cc
    1.61  test -z "$LTCC" && LTCC=$CC
    1.62 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
    1.63  test -z "$DLLTOOL" && DLLTOOL=dlltool
    1.64  test -z "$LD" && LD=ld
    1.65  test -z "$LN_S" && LN_S="ln -s"
    1.66 @@ -175,23 +183,23 @@
    1.67  test -z "$ac_objext" && ac_objext=o
    1.68  
    1.69  # Determine commands to create old-style static archives.
    1.70 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
    1.71 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
    1.72  old_postinstall_cmds='chmod 644 $oldlib'
    1.73  old_postuninstall_cmds=
    1.74  
    1.75  if test -n "$RANLIB"; then
    1.76    case $host_os in
    1.77    openbsd*)
    1.78 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    1.79 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    1.80      ;;
    1.81    *)
    1.82 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    1.83 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    1.84      ;;
    1.85    esac
    1.86    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    1.87  fi
    1.88  
    1.89 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    1.90 +_LT_CC_BASENAME([$compiler])
    1.91  
    1.92  # Only perform the check for file, if the check method requires it
    1.93  case $deplibs_check_method in
    1.94 @@ -202,6 +210,8 @@
    1.95    ;;
    1.96  esac
    1.97  
    1.98 +_LT_REQUIRED_DARWIN_CHECKS
    1.99 +
   1.100  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
   1.101  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   1.102  enable_win32_dll=yes, enable_win32_dll=no)
   1.103 @@ -233,11 +243,129 @@
   1.104  # If no C compiler was specified, use CC.
   1.105  LTCC=${LTCC-"$CC"}
   1.106  
   1.107 +# If no C compiler flags were specified, use CFLAGS.
   1.108 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   1.109 +
   1.110  # Allow CC to be a program name with arguments.
   1.111  compiler=$CC
   1.112  ])# _LT_AC_SYS_COMPILER
   1.113  
   1.114  
   1.115 +# _LT_CC_BASENAME(CC)
   1.116 +# -------------------
   1.117 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   1.118 +AC_DEFUN([_LT_CC_BASENAME],
   1.119 +[for cc_temp in $1""; do
   1.120 +  case $cc_temp in
   1.121 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
   1.122 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
   1.123 +    \-*) ;;
   1.124 +    *) break;;
   1.125 +  esac
   1.126 +done
   1.127 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
   1.128 +])
   1.129 +
   1.130 +
   1.131 +# _LT_COMPILER_BOILERPLATE
   1.132 +# ------------------------
   1.133 +# Check for compiler boilerplate output or warnings with
   1.134 +# the simple compiler test code.
   1.135 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
   1.136 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   1.137 +ac_outfile=conftest.$ac_objext
   1.138 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   1.139 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   1.140 +_lt_compiler_boilerplate=`cat conftest.err`
   1.141 +$rm conftest*
   1.142 +])# _LT_COMPILER_BOILERPLATE
   1.143 +
   1.144 +
   1.145 +# _LT_LINKER_BOILERPLATE
   1.146 +# ----------------------
   1.147 +# Check for linker boilerplate output or warnings with
   1.148 +# the simple link test code.
   1.149 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
   1.150 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   1.151 +ac_outfile=conftest.$ac_objext
   1.152 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
   1.153 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   1.154 +_lt_linker_boilerplate=`cat conftest.err`
   1.155 +$rm -r conftest*
   1.156 +])# _LT_LINKER_BOILERPLATE
   1.157 +
   1.158 +# _LT_REQUIRED_DARWIN_CHECKS
   1.159 +# --------------------------
   1.160 +# Check for some things on darwin
   1.161 +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
   1.162 +  case $host_os in
   1.163 +    rhapsody* | darwin*)
   1.164 +    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
   1.165 +    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
   1.166 +
   1.167 +    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
   1.168 +      [lt_cv_apple_cc_single_mod=no
   1.169 +      if test -z "${LT_MULTI_MODULE}"; then
   1.170 +   # By default we will add the -single_module flag. You can override
   1.171 +   # by either setting the environment variable LT_MULTI_MODULE
   1.172 +   # non-empty at configure time, or by adding -multi_module to the
   1.173 +   # link flags.
   1.174 +   echo "int foo(void){return 1;}" > conftest.c
   1.175 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   1.176 +     -dynamiclib ${wl}-single_module conftest.c
   1.177 +   if test -f libconftest.dylib; then
   1.178 +     lt_cv_apple_cc_single_mod=yes
   1.179 +     rm -rf libconftest.dylib*
   1.180 +   fi
   1.181 +   rm conftest.c
   1.182 +      fi])
   1.183 +    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
   1.184 +      [lt_cv_ld_exported_symbols_list],
   1.185 +      [lt_cv_ld_exported_symbols_list=no
   1.186 +      save_LDFLAGS=$LDFLAGS
   1.187 +      echo "_main" > conftest.sym
   1.188 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   1.189 +      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
   1.190 +   [lt_cv_ld_exported_symbols_list=yes],
   1.191 +   [lt_cv_ld_exported_symbols_list=no])
   1.192 +   LDFLAGS="$save_LDFLAGS"
   1.193 +    ])
   1.194 +    case $host_os in
   1.195 +    rhapsody* | darwin1.[[0123]])
   1.196 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   1.197 +    darwin1.*)
   1.198 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   1.199 +    darwin*)
   1.200 +      # if running on 10.5 or later, the deployment target defaults
   1.201 +      # to the OS version, if on x86, and 10.4, the deployment
   1.202 +      # target defaults to 10.4. Don't you love it?
   1.203 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   1.204 +   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
   1.205 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   1.206 +   10.[[012]]*)
   1.207 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   1.208 +   10.*)
   1.209 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   1.210 +      esac
   1.211 +    ;;
   1.212 +  esac
   1.213 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
   1.214 +      _lt_dar_single_mod='$single_module'
   1.215 +    fi
   1.216 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
   1.217 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
   1.218 +    else
   1.219 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
   1.220 +    fi
   1.221 +    if test "$DSYMUTIL" != ":"; then
   1.222 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
   1.223 +    else
   1.224 +      _lt_dsymutil=
   1.225 +    fi
   1.226 +    ;;
   1.227 +  esac
   1.228 +])
   1.229 +
   1.230  # _LT_AC_SYS_LIBPATH_AIX
   1.231  # ----------------------
   1.232  # Links a minimal program and checks the executable
   1.233 @@ -247,12 +375,20 @@
   1.234  # If we don't find anything, use the default library path according
   1.235  # to the aix ld manual.
   1.236  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
   1.237 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   1.238 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   1.239 -}'`
   1.240 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   1.241 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   1.242 +lt_aix_libpath_sed='
   1.243 +    /Import File Strings/,/^$/ {
   1.244 +	/^0/ {
   1.245 +	    s/^0  *\(.*\)$/\1/
   1.246 +	    p
   1.247 +	}
   1.248 +    }'
   1.249 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.250  # Check for a 64-bit object if we didn't find anything.
   1.251 -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; }
   1.252 -}'`; fi],[])
   1.253 +if test -z "$aix_libpath"; then
   1.254 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.255 +fi],[])
   1.256  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   1.257  ])# _LT_AC_SYS_LIBPATH_AIX
   1.258  
   1.259 @@ -317,8 +453,8 @@
   1.260  # find a string as large as possible, as long as the shell can cope with it
   1.261    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   1.262      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   1.263 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   1.264 -       echo_test_string="`eval $cmd`" &&
   1.265 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
   1.266 +       echo_test_string=`eval $cmd` &&
   1.267         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
   1.268      then
   1.269        break
   1.270 @@ -483,13 +619,17 @@
   1.271    rm -rf conftest*
   1.272    ;;
   1.273  
   1.274 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   1.275 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
   1.276 +s390*-*linux*|sparc*-*linux*)
   1.277    # Find out which ABI we are using.
   1.278    echo 'int i;' > conftest.$ac_ext
   1.279    if AC_TRY_EVAL(ac_compile); then
   1.280 -    case "`/usr/bin/file conftest.o`" in
   1.281 +    case `/usr/bin/file conftest.o` in
   1.282      *32-bit*)
   1.283        case $host in
   1.284 +        x86_64-*kfreebsd*-gnu)
   1.285 +          LD="${LD-ld} -m elf_i386_fbsd"
   1.286 +          ;;
   1.287          x86_64-*linux*)
   1.288            LD="${LD-ld} -m elf_i386"
   1.289            ;;
   1.290 @@ -506,6 +646,9 @@
   1.291        ;;
   1.292      *64-bit*)
   1.293        case $host in
   1.294 +        x86_64-*kfreebsd*-gnu)
   1.295 +          LD="${LD-ld} -m elf_x86_64_fbsd"
   1.296 +          ;;
   1.297          x86_64-*linux*)
   1.298            LD="${LD-ld} -m elf_x86_64"
   1.299            ;;
   1.300 @@ -538,6 +681,26 @@
   1.301      CFLAGS="$SAVE_CFLAGS"
   1.302    fi
   1.303    ;;
   1.304 +sparc*-*solaris*)
   1.305 +  # Find out which ABI we are using.
   1.306 +  echo 'int i;' > conftest.$ac_ext
   1.307 +  if AC_TRY_EVAL(ac_compile); then
   1.308 +    case `/usr/bin/file conftest.o` in
   1.309 +    *64-bit*)
   1.310 +      case $lt_cv_prog_gnu_ld in
   1.311 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
   1.312 +      *)
   1.313 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   1.314 +	  LD="${LD-ld} -64"
   1.315 +	fi
   1.316 +	;;
   1.317 +      esac
   1.318 +      ;;
   1.319 +    esac
   1.320 +  fi
   1.321 +  rm -rf conftest*
   1.322 +  ;;
   1.323 +
   1.324  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   1.325  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
   1.326    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
   1.327 @@ -561,7 +724,7 @@
   1.328  AC_CACHE_CHECK([$1], [$2],
   1.329    [$2=no
   1.330    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
   1.331 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   1.332 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   1.333     lt_compiler_flag="$3"
   1.334     # Insert the option either (1) after the last *FLAGS variable, or
   1.335     # (2) before a word containing "conftest.", or (3) at the end.
   1.336 @@ -569,7 +732,7 @@
   1.337     # with a dollar sign (not a hyphen), so the echo should work correctly.
   1.338     # The option is referenced via a variable to avoid confusing sed.
   1.339     lt_compile=`echo "$ac_compile" | $SED \
   1.340 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   1.341 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.342     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   1.343     -e 's:$: $lt_compiler_flag:'`
   1.344     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.345 @@ -579,8 +742,10 @@
   1.346     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1.347     if (exit $ac_status) && test -s "$ac_outfile"; then
   1.348       # The compiler can only warn and ignore the option if not recognized
   1.349 -     # So say no if there are warnings
   1.350 -     if test ! -s conftest.err; then
   1.351 +     # So say no if there are warnings other than the usual output.
   1.352 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   1.353 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.354 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   1.355         $2=yes
   1.356       fi
   1.357     fi
   1.358 @@ -600,22 +765,28 @@
   1.359  # ------------------------------------------------------------
   1.360  # Check whether the given compiler option works
   1.361  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
   1.362 -[AC_CACHE_CHECK([$1], [$2],
   1.363 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   1.364 +AC_CACHE_CHECK([$1], [$2],
   1.365    [$2=no
   1.366     save_LDFLAGS="$LDFLAGS"
   1.367     LDFLAGS="$LDFLAGS $3"
   1.368 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   1.369 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   1.370     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   1.371 -     # The compiler can only warn and ignore the option if not recognized
   1.372 +     # The linker can only warn and ignore the option if not recognized
   1.373       # So say no if there are warnings
   1.374       if test -s conftest.err; then
   1.375         # Append any errors to the config.log.
   1.376         cat conftest.err 1>&AS_MESSAGE_LOG_FD
   1.377 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
   1.378 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.379 +       if diff conftest.exp conftest.er2 >/dev/null; then
   1.380 +         $2=yes
   1.381 +       fi
   1.382       else
   1.383         $2=yes
   1.384       fi
   1.385     fi
   1.386 -   $rm conftest*
   1.387 +   $rm -r conftest*
   1.388     LDFLAGS="$save_LDFLAGS"
   1.389  ])
   1.390  
   1.391 @@ -676,43 +847,64 @@
   1.392      elif test -x /usr/sbin/sysctl; then
   1.393        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   1.394      else
   1.395 -      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
   1.396 +      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   1.397      fi
   1.398      # And add a safety zone
   1.399      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   1.400 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   1.401      ;;
   1.402 +
   1.403 +  interix*)
   1.404 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
   1.405 +    lt_cv_sys_max_cmd_len=196608
   1.406 +    ;;
   1.407 +
   1.408    osf*)
   1.409      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   1.410      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   1.411      # nice to cause kernel panics so lets avoid the loop below.
   1.412      # First set a reasonable default.
   1.413      lt_cv_sys_max_cmd_len=16384
   1.414 -    # 
   1.415 +    #
   1.416      if test -x /sbin/sysconfig; then
   1.417        case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   1.418          *1*) lt_cv_sys_max_cmd_len=-1 ;;
   1.419        esac
   1.420      fi
   1.421      ;;
   1.422 +  sco3.2v5*)
   1.423 +    lt_cv_sys_max_cmd_len=102400
   1.424 +    ;;
   1.425 +  sysv5* | sco5v6* | sysv4.2uw2*)
   1.426 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   1.427 +    if test -n "$kargmax"; then
   1.428 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ 	]]//'`
   1.429 +    else
   1.430 +      lt_cv_sys_max_cmd_len=32768
   1.431 +    fi
   1.432 +    ;;
   1.433    *)
   1.434 -    # If test is not a shell built-in, we'll probably end up computing a
   1.435 -    # maximum length that is only half of the actual maximum length, but
   1.436 -    # we can't tell.
   1.437 -    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   1.438 -    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
   1.439 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   1.440 +    if test -n "$lt_cv_sys_max_cmd_len"; then
   1.441 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   1.442 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   1.443 +    else
   1.444 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   1.445 +      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
   1.446  	       = "XX$teststring") >/dev/null 2>&1 &&
   1.447 -	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
   1.448 -	    lt_cv_sys_max_cmd_len=$new_result &&
   1.449 -	    test $i != 17 # 1/2 MB should be enough
   1.450 -    do
   1.451 -      i=`expr $i + 1`
   1.452 -      teststring=$teststring$teststring
   1.453 -    done
   1.454 -    teststring=
   1.455 -    # Add a significant safety factor because C++ compilers can tack on massive
   1.456 -    # amounts of additional arguments before passing them to the linker.
   1.457 -    # It appears as though 1/2 is a usable value.
   1.458 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   1.459 +	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
   1.460 +	      lt_cv_sys_max_cmd_len=$new_result &&
   1.461 +	      test $i != 17 # 1/2 MB should be enough
   1.462 +      do
   1.463 +        i=`expr $i + 1`
   1.464 +        teststring=$teststring$teststring
   1.465 +      done
   1.466 +      teststring=
   1.467 +      # Add a significant safety factor because C++ compilers can tack on massive
   1.468 +      # amounts of additional arguments before passing them to the linker.
   1.469 +      # It appears as though 1/2 is a usable value.
   1.470 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   1.471 +    fi
   1.472      ;;
   1.473    esac
   1.474  ])
   1.475 @@ -725,7 +917,7 @@
   1.476  
   1.477  
   1.478  # _LT_AC_CHECK_DLFCN
   1.479 -# --------------------
   1.480 +# ------------------
   1.481  AC_DEFUN([_LT_AC_CHECK_DLFCN],
   1.482  [AC_CHECK_HEADERS(dlfcn.h)dnl
   1.483  ])# _LT_AC_CHECK_DLFCN
   1.484 @@ -733,7 +925,7 @@
   1.485  
   1.486  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
   1.487  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
   1.488 -# ------------------------------------------------------------------
   1.489 +# ---------------------------------------------------------------------
   1.490  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
   1.491  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
   1.492  if test "$cross_compiling" = yes; then :
   1.493 @@ -799,17 +991,19 @@
   1.494        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   1.495        /* dlclose (self); */
   1.496      }
   1.497 +  else
   1.498 +    puts (dlerror ());
   1.499  
   1.500      exit (status);
   1.501  }]
   1.502  EOF
   1.503    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
   1.504 -    (./conftest; exit; ) 2>/dev/null
   1.505 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
   1.506      lt_status=$?
   1.507      case x$lt_status in
   1.508        x$lt_dlno_uscore) $1 ;;
   1.509        x$lt_dlneed_uscore) $2 ;;
   1.510 -      x$lt_unknown|x*) $3 ;;
   1.511 +      x$lt_dlunknown|x*) $3 ;;
   1.512      esac
   1.513    else :
   1.514      # compilation failed
   1.515 @@ -821,7 +1015,7 @@
   1.516  
   1.517  
   1.518  # AC_LIBTOOL_DLOPEN_SELF
   1.519 -# -------------------
   1.520 +# ----------------------
   1.521  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
   1.522  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
   1.523  if test "x$enable_dlopen" != xyes; then
   1.524 @@ -863,7 +1057,7 @@
   1.525      AC_CHECK_FUNC([shl_load],
   1.526  	  [lt_cv_dlopen="shl_load"],
   1.527        [AC_CHECK_LIB([dld], [shl_load],
   1.528 -	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
   1.529 +	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
   1.530  	[AC_CHECK_FUNC([dlopen],
   1.531  	      [lt_cv_dlopen="dlopen"],
   1.532  	  [AC_CHECK_LIB([dl], [dlopen],
   1.533 @@ -871,7 +1065,7 @@
   1.534  	    [AC_CHECK_LIB([svld], [dlopen],
   1.535  		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
   1.536  	      [AC_CHECK_LIB([dld], [dld_link],
   1.537 -		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
   1.538 +		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
   1.539  	      ])
   1.540  	    ])
   1.541  	  ])
   1.542 @@ -892,7 +1086,7 @@
   1.543      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   1.544  
   1.545      save_LDFLAGS="$LDFLAGS"
   1.546 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   1.547 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   1.548  
   1.549      save_LIBS="$LIBS"
   1.550      LIBS="$lt_cv_dlopen_libs $LIBS"
   1.551 @@ -905,7 +1099,7 @@
   1.552      ])
   1.553  
   1.554      if test "x$lt_cv_dlopen_self" = xyes; then
   1.555 -      LDFLAGS="$LDFLAGS $link_static_flag"
   1.556 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   1.557        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
   1.558      	  lt_cv_dlopen_self_static, [dnl
   1.559  	  _LT_AC_TRY_DLOPEN_SELF(
   1.560 @@ -937,7 +1131,8 @@
   1.561  # ---------------------------------
   1.562  # Check to see if options -c and -o are simultaneously supported by compiler
   1.563  AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
   1.564 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
   1.565 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   1.566 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
   1.567  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
   1.568    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
   1.569    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
   1.570 @@ -945,7 +1140,7 @@
   1.571     mkdir conftest
   1.572     cd conftest
   1.573     mkdir out
   1.574 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   1.575 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   1.576  
   1.577     lt_compiler_flag="-o out/conftest2.$ac_objext"
   1.578     # Insert the option either (1) after the last *FLAGS variable, or
   1.579 @@ -953,7 +1148,7 @@
   1.580     # Note that $ac_compile itself does not contain backslashes and begins
   1.581     # with a dollar sign (not a hyphen), so the echo should work correctly.
   1.582     lt_compile=`echo "$ac_compile" | $SED \
   1.583 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   1.584 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.585     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   1.586     -e 's:$: $lt_compiler_flag:'`
   1.587     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.588 @@ -965,11 +1160,13 @@
   1.589     then
   1.590       # The compiler can only warn and ignore the option if not recognized
   1.591       # So say no if there are warnings
   1.592 -     if test ! -s out/conftest.err; then
   1.593 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
   1.594 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   1.595 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   1.596         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
   1.597       fi
   1.598     fi
   1.599 -   chmod u+w .
   1.600 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
   1.601     $rm conftest*
   1.602     # SGI C++ compiler will create directory out/ii_files/ for
   1.603     # template instantiation
   1.604 @@ -1083,6 +1280,7 @@
   1.605     darwin*)
   1.606         if test -n "$STRIP" ; then
   1.607           striplib="$STRIP -x"
   1.608 +         old_striplib="$STRIP -S"
   1.609           AC_MSG_RESULT([yes])
   1.610         else
   1.611    AC_MSG_RESULT([no])
   1.612 @@ -1100,7 +1298,8 @@
   1.613  # -----------------------------
   1.614  # PORTME Fill in your ld.so characteristics
   1.615  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
   1.616 -[AC_MSG_CHECKING([dynamic linker characteristics])
   1.617 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   1.618 +AC_MSG_CHECKING([dynamic linker characteristics])
   1.619  library_names_spec=
   1.620  libname_spec='lib$name'
   1.621  soname_spec=
   1.622 @@ -1114,20 +1313,58 @@
   1.623  version_type=none
   1.624  dynamic_linker="$host_os ld.so"
   1.625  sys_lib_dlsearch_path_spec="/lib /usr/lib"
   1.626 +m4_if($1,[],[
   1.627  if test "$GCC" = yes; then
   1.628 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   1.629 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   1.630 +  case $host_os in
   1.631 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
   1.632 +    *) lt_awk_arg="/^libraries:/" ;;
   1.633 +  esac
   1.634 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   1.635 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
   1.636      # if the path contains ";" then we assume it to be the separator
   1.637      # otherwise default to the standard path separator (i.e. ":") - it is
   1.638      # assumed that no part of a normal pathname contains ";" but that should
   1.639      # okay in the real world where ";" in dirpaths is itself problematic.
   1.640 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   1.641 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
   1.642    else
   1.643 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   1.644 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   1.645    fi
   1.646 +  # Ok, now we have the path, separated by spaces, we can step through it
   1.647 +  # and add multilib dir if necessary.
   1.648 +  lt_tmp_lt_search_path_spec=
   1.649 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   1.650 +  for lt_sys_path in $lt_search_path_spec; do
   1.651 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
   1.652 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
   1.653 +    else
   1.654 +      test -d "$lt_sys_path" && \
   1.655 +	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   1.656 +    fi
   1.657 +  done
   1.658 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
   1.659 +BEGIN {RS=" "; FS="/|\n";} {
   1.660 +  lt_foo="";
   1.661 +  lt_count=0;
   1.662 +  for (lt_i = NF; lt_i > 0; lt_i--) {
   1.663 +    if ($lt_i != "" && $lt_i != ".") {
   1.664 +      if ($lt_i == "..") {
   1.665 +        lt_count++;
   1.666 +      } else {
   1.667 +        if (lt_count == 0) {
   1.668 +          lt_foo="/" $lt_i lt_foo;
   1.669 +        } else {
   1.670 +          lt_count--;
   1.671 +        }
   1.672 +      }
   1.673 +    }
   1.674 +  }
   1.675 +  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
   1.676 +  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
   1.677 +}'`
   1.678 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
   1.679  else
   1.680    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   1.681 -fi
   1.682 +fi])
   1.683  need_lib_prefix=unknown
   1.684  hardcode_into_libs=no
   1.685  
   1.686 @@ -1145,7 +1382,7 @@
   1.687    soname_spec='${libname}${release}${shared_ext}$major'
   1.688    ;;
   1.689  
   1.690 -aix4* | aix5*)
   1.691 +aix[[4-9]]*)
   1.692    version_type=linux
   1.693    need_lib_prefix=no
   1.694    need_version=no
   1.695 @@ -1229,7 +1466,8 @@
   1.696        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   1.697        dldir=$destdir/`dirname \$dlpath`~
   1.698        test -d \$dldir || mkdir -p \$dldir~
   1.699 -      $install_prog $dir/$dlname \$dldir/$dlname'
   1.700 +      $install_prog $dir/$dlname \$dldir/$dlname~
   1.701 +      chmod a+x \$dldir/$dlname'
   1.702      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   1.703        dlpath=$dir/\$dldll~
   1.704         $rm \$dlpath'
   1.705 @@ -1282,13 +1520,9 @@
   1.706    soname_spec='${libname}${release}${major}$shared_ext'
   1.707    shlibpath_overrides_runpath=yes
   1.708    shlibpath_var=DYLD_LIBRARY_PATH
   1.709 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
   1.710 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   1.711 -  if test "$GCC" = yes; then
   1.712 -    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"`
   1.713 -  else
   1.714 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   1.715 -  fi
   1.716 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   1.717 +  m4_if([$1], [],[
   1.718 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
   1.719    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   1.720    ;;
   1.721  
   1.722 @@ -1305,22 +1539,17 @@
   1.723    dynamic_linker=no
   1.724    ;;
   1.725  
   1.726 -kfreebsd*-gnu)
   1.727 -  version_type=linux
   1.728 -  need_lib_prefix=no
   1.729 -  need_version=no
   1.730 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   1.731 -  soname_spec='${libname}${release}${shared_ext}$major'
   1.732 -  shlibpath_var=LD_LIBRARY_PATH
   1.733 -  shlibpath_overrides_runpath=no
   1.734 -  hardcode_into_libs=yes
   1.735 -  dynamic_linker='GNU ld.so'
   1.736 -  ;;
   1.737 -
   1.738  freebsd* | dragonfly*)
   1.739    # DragonFly does not have aout.  When/if they implement a new
   1.740    # versioning mechanism, adjust this.
   1.741 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   1.742 +  if test -x /usr/bin/objformat; then
   1.743 +    objformat=`/usr/bin/objformat`
   1.744 +  else
   1.745 +    case $host_os in
   1.746 +    freebsd[[123]]*) objformat=aout ;;
   1.747 +    *) objformat=elf ;;
   1.748 +    esac
   1.749 +  fi
   1.750    version_type=freebsd-$objformat
   1.751    case $version_type in
   1.752      freebsd-elf*)
   1.753 @@ -1342,10 +1571,15 @@
   1.754      shlibpath_overrides_runpath=yes
   1.755      hardcode_into_libs=yes
   1.756      ;;
   1.757 -  *) # from 3.2 on
   1.758 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
   1.759 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
   1.760      shlibpath_overrides_runpath=no
   1.761      hardcode_into_libs=yes
   1.762      ;;
   1.763 +  *) # from 4.6 on, and DragonFly
   1.764 +    shlibpath_overrides_runpath=yes
   1.765 +    hardcode_into_libs=yes
   1.766 +    ;;
   1.767    esac
   1.768    ;;
   1.769  
   1.770 @@ -1365,7 +1599,7 @@
   1.771    version_type=sunos
   1.772    need_lib_prefix=no
   1.773    need_version=no
   1.774 -  case "$host_cpu" in
   1.775 +  case $host_cpu in
   1.776    ia64*)
   1.777      shrext_cmds='.so'
   1.778      hardcode_into_libs=yes
   1.779 @@ -1405,6 +1639,18 @@
   1.780    postinstall_cmds='chmod 555 $lib'
   1.781    ;;
   1.782  
   1.783 +interix[[3-9]]*)
   1.784 +  version_type=linux
   1.785 +  need_lib_prefix=no
   1.786 +  need_version=no
   1.787 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   1.788 +  soname_spec='${libname}${release}${shared_ext}$major'
   1.789 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   1.790 +  shlibpath_var=LD_LIBRARY_PATH
   1.791 +  shlibpath_overrides_runpath=no
   1.792 +  hardcode_into_libs=yes
   1.793 +  ;;
   1.794 +
   1.795  irix5* | irix6* | nonstopux*)
   1.796    case $host_os in
   1.797      nonstopux*) version_type=nonstopux ;;
   1.798 @@ -1448,7 +1694,7 @@
   1.799    ;;
   1.800  
   1.801  # This must be Linux ELF.
   1.802 -linux*)
   1.803 +linux* | k*bsd*-gnu)
   1.804    version_type=linux
   1.805    need_lib_prefix=no
   1.806    need_version=no
   1.807 @@ -1464,7 +1710,7 @@
   1.808  
   1.809    # Append ld.so.conf contents to the search path
   1.810    if test -f /etc/ld.so.conf; then
   1.811 -    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
   1.812 +    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' ' '`
   1.813      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   1.814    fi
   1.815  
   1.816 @@ -1477,7 +1723,7 @@
   1.817    dynamic_linker='GNU/Linux ld.so'
   1.818    ;;
   1.819  
   1.820 -knetbsd*-gnu)
   1.821 +netbsdelf*-gnu)
   1.822    version_type=linux
   1.823    need_lib_prefix=no
   1.824    need_version=no
   1.825 @@ -1486,7 +1732,7 @@
   1.826    shlibpath_var=LD_LIBRARY_PATH
   1.827    shlibpath_overrides_runpath=no
   1.828    hardcode_into_libs=yes
   1.829 -  dynamic_linker='GNU ld.so'
   1.830 +  dynamic_linker='NetBSD ld.elf_so'
   1.831    ;;
   1.832  
   1.833  netbsd*)
   1.834 @@ -1526,8 +1772,13 @@
   1.835  
   1.836  openbsd*)
   1.837    version_type=sunos
   1.838 +  sys_lib_dlsearch_path_spec="/usr/lib"
   1.839    need_lib_prefix=no
   1.840 -  need_version=no
   1.841 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   1.842 +  case $host_os in
   1.843 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
   1.844 +    *)                         need_version=no  ;;
   1.845 +  esac
   1.846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   1.847    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   1.848    shlibpath_var=LD_LIBRARY_PATH
   1.849 @@ -1565,11 +1816,8 @@
   1.850    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   1.851    ;;
   1.852  
   1.853 -sco3.2v5*)
   1.854 -  version_type=osf
   1.855 -  soname_spec='${libname}${release}${shared_ext}$major'
   1.856 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.857 -  shlibpath_var=LD_LIBRARY_PATH
   1.858 +rdos*)
   1.859 +  dynamic_linker=no
   1.860    ;;
   1.861  
   1.862  solaris*)
   1.863 @@ -1597,7 +1845,7 @@
   1.864    need_version=yes
   1.865    ;;
   1.866  
   1.867 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   1.868 +sysv4 | sysv4.3*)
   1.869    version_type=linux
   1.870    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.871    soname_spec='${libname}${release}${shared_ext}$major'
   1.872 @@ -1630,6 +1878,29 @@
   1.873    fi
   1.874    ;;
   1.875  
   1.876 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   1.877 +  version_type=freebsd-elf
   1.878 +  need_lib_prefix=no
   1.879 +  need_version=no
   1.880 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   1.881 +  soname_spec='${libname}${release}${shared_ext}$major'
   1.882 +  shlibpath_var=LD_LIBRARY_PATH
   1.883 +  hardcode_into_libs=yes
   1.884 +  if test "$with_gnu_ld" = yes; then
   1.885 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   1.886 +    shlibpath_overrides_runpath=no
   1.887 +  else
   1.888 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   1.889 +    shlibpath_overrides_runpath=yes
   1.890 +    case $host_os in
   1.891 +      sco3.2v5*)
   1.892 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   1.893 +	;;
   1.894 +    esac
   1.895 +  fi
   1.896 +  sys_lib_dlsearch_path_spec='/usr/lib'
   1.897 +  ;;
   1.898 +
   1.899  uts4*)
   1.900    version_type=linux
   1.901    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.902 @@ -1643,13 +1914,26 @@
   1.903  esac
   1.904  AC_MSG_RESULT([$dynamic_linker])
   1.905  test "$dynamic_linker" = no && can_build_shared=no
   1.906 +
   1.907 +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
   1.908 +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
   1.909 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   1.910 +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
   1.911 +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
   1.912 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   1.913 +
   1.914 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   1.915 +if test "$GCC" = yes; then
   1.916 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   1.917 +fi
   1.918  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
   1.919  
   1.920  
   1.921  # _LT_AC_TAGCONFIG
   1.922  # ----------------
   1.923  AC_DEFUN([_LT_AC_TAGCONFIG],
   1.924 -[AC_ARG_WITH([tags],
   1.925 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   1.926 +AC_ARG_WITH([tags],
   1.927      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
   1.928          [include additional configurations @<:@automatic@:>@])],
   1.929      [tagnames="$withval"])
   1.930 @@ -1667,6 +1951,9 @@
   1.931        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
   1.932      fi
   1.933    fi
   1.934 +  if test -z "$LTCFLAGS"; then
   1.935 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
   1.936 +  fi
   1.937  
   1.938    # Extract list of available tagged configurations in $ofile.
   1.939    # Note that this assumes the entire list is on one line.
   1.940 @@ -1757,7 +2044,7 @@
   1.941  
   1.942  # AC_LIBTOOL_WIN32_DLL
   1.943  # --------------------
   1.944 -# declare package support for building win32 dll's
   1.945 +# declare package support for building win32 DLLs
   1.946  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
   1.947  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
   1.948  ])# AC_LIBTOOL_WIN32_DLL
   1.949 @@ -1795,7 +2082,7 @@
   1.950  
   1.951  # AC_DISABLE_SHARED
   1.952  # -----------------
   1.953 -#- set the default shared flag to --disable-shared
   1.954 +# set the default shared flag to --disable-shared
   1.955  AC_DEFUN([AC_DISABLE_SHARED],
   1.956  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   1.957  AC_ENABLE_SHARED(no)
   1.958 @@ -1907,7 +2194,7 @@
   1.959  
   1.960  # AC_PATH_TOOL_PREFIX
   1.961  # -------------------
   1.962 -# find a file program which can recognise shared library
   1.963 +# find a file program which can recognize shared library
   1.964  AC_DEFUN([AC_PATH_TOOL_PREFIX],
   1.965  [AC_REQUIRE([AC_PROG_EGREP])dnl
   1.966  AC_MSG_CHECKING([for $1])
   1.967 @@ -1931,7 +2218,7 @@
   1.968        if test -n "$file_magic_test_file"; then
   1.969  	case $deplibs_check_method in
   1.970  	"file_magic "*)
   1.971 -	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
   1.972 +	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   1.973  	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   1.974  	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   1.975  	    $EGREP "$file_magic_regex" > /dev/null; then
   1.976 @@ -1970,7 +2257,7 @@
   1.977  
   1.978  # AC_PATH_MAGIC
   1.979  # -------------
   1.980 -# find a file program which can recognise a shared library
   1.981 +# find a file program which can recognize a shared library
   1.982  AC_DEFUN([AC_PATH_MAGIC],
   1.983  [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
   1.984  if test -z "$lt_cv_path_MAGIC_CMD"; then
   1.985 @@ -2041,7 +2328,7 @@
   1.986      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   1.987        lt_cv_path_LD="$ac_dir/$ac_prog"
   1.988        # Check to see if the program is GNU ld.  I'd rather use --version,
   1.989 -      # but apparently some GNU ld's only accept -v.
   1.990 +      # but apparently some variants of GNU ld only accept -v.
   1.991        # Break only if it was the GNU/non-GNU ld that we prefer.
   1.992        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   1.993        *GNU* | *'with BFD'*)
   1.994 @@ -2073,7 +2360,7 @@
   1.995  AC_DEFUN([AC_PROG_LD_GNU],
   1.996  [AC_REQUIRE([AC_PROG_EGREP])dnl
   1.997  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
   1.998 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
   1.999 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  1.1000  case `$LD -v 2>&1 </dev/null` in
  1.1001  *GNU* | *'with BFD'*)
  1.1002    lt_cv_prog_gnu_ld=yes
  1.1003 @@ -2103,7 +2390,7 @@
  1.1004  case $host_os in
  1.1005    darwin*)
  1.1006      if test "$GCC" = yes; then
  1.1007 -      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  1.1008 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  1.1009      else
  1.1010        reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1.1011      fi
  1.1012 @@ -2117,7 +2404,7 @@
  1.1013  # how to check for library dependencies
  1.1014  #  -- PORTME fill in with the dynamic library characteristics
  1.1015  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  1.1016 -[AC_CACHE_CHECK([how to recognise dependent libraries],
  1.1017 +[AC_CACHE_CHECK([how to recognize dependent libraries],
  1.1018  lt_cv_deplibs_check_method,
  1.1019  [lt_cv_file_magic_cmd='$MAGIC_CMD'
  1.1020  lt_cv_file_magic_test_file=
  1.1021 @@ -2134,7 +2421,7 @@
  1.1022  # whether `pass_all' will *always* work, you probably want this one.
  1.1023  
  1.1024  case $host_os in
  1.1025 -aix4* | aix5*)
  1.1026 +aix[[4-9]]*)
  1.1027    lt_cv_deplibs_check_method=pass_all
  1.1028    ;;
  1.1029  
  1.1030 @@ -2156,16 +2443,22 @@
  1.1031  
  1.1032  mingw* | pw32*)
  1.1033    # Base MSYS/MinGW do not provide the 'file' command needed by
  1.1034 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  1.1035 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1.1036 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.1037 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  1.1038 +  # unless we find 'file', for example because we are cross-compiling.
  1.1039 +  if ( file / ) >/dev/null 2>&1; then
  1.1040 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.1041 +    lt_cv_file_magic_cmd='func_win32_libid'
  1.1042 +  else
  1.1043 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1.1044 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.1045 +  fi
  1.1046    ;;
  1.1047  
  1.1048  darwin* | rhapsody*)
  1.1049    lt_cv_deplibs_check_method=pass_all
  1.1050    ;;
  1.1051  
  1.1052 -freebsd* | kfreebsd*-gnu | dragonfly*)
  1.1053 +freebsd* | dragonfly*)
  1.1054    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1.1055      case $host_cpu in
  1.1056      i*86 )
  1.1057 @@ -2187,7 +2480,7 @@
  1.1058  
  1.1059  hpux10.20* | hpux11*)
  1.1060    lt_cv_file_magic_cmd=/usr/bin/file
  1.1061 -  case "$host_cpu" in
  1.1062 +  case $host_cpu in
  1.1063    ia64*)
  1.1064      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  1.1065      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1.1066 @@ -2203,6 +2496,11 @@
  1.1067    esac
  1.1068    ;;
  1.1069  
  1.1070 +interix[[3-9]]*)
  1.1071 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  1.1072 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  1.1073 +  ;;
  1.1074 +
  1.1075  irix5* | irix6* | nonstopux*)
  1.1076    case $LD in
  1.1077    *-32|*"-32 ") libmagic=32-bit;;
  1.1078 @@ -2214,11 +2512,11 @@
  1.1079    ;;
  1.1080  
  1.1081  # This must be Linux ELF.
  1.1082 -linux*)
  1.1083 +linux* | k*bsd*-gnu)
  1.1084    lt_cv_deplibs_check_method=pass_all
  1.1085    ;;
  1.1086  
  1.1087 -netbsd*)
  1.1088 +netbsd* | netbsdelf*-gnu)
  1.1089    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1.1090      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  1.1091    else
  1.1092 @@ -2248,7 +2546,7 @@
  1.1093    lt_cv_deplibs_check_method=pass_all
  1.1094    ;;
  1.1095  
  1.1096 -sco3.2v5*)
  1.1097 +rdos*)
  1.1098    lt_cv_deplibs_check_method=pass_all
  1.1099    ;;
  1.1100  
  1.1101 @@ -2256,7 +2554,7 @@
  1.1102    lt_cv_deplibs_check_method=pass_all
  1.1103    ;;
  1.1104  
  1.1105 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1.1106 +sysv4 | sysv4.3*)
  1.1107    case $host_vendor in
  1.1108    motorola)
  1.1109      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]]'
  1.1110 @@ -2277,10 +2575,13 @@
  1.1111    siemens)
  1.1112      lt_cv_deplibs_check_method=pass_all
  1.1113      ;;
  1.1114 +  pc)
  1.1115 +    lt_cv_deplibs_check_method=pass_all
  1.1116 +    ;;
  1.1117    esac
  1.1118    ;;
  1.1119  
  1.1120 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  1.1121 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1.1122    lt_cv_deplibs_check_method=pass_all
  1.1123    ;;
  1.1124  esac
  1.1125 @@ -2300,36 +2601,43 @@
  1.1126    # Let the user override the test.
  1.1127    lt_cv_path_NM="$NM"
  1.1128  else
  1.1129 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1.1130 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1.1131 -    IFS="$lt_save_ifs"
  1.1132 -    test -z "$ac_dir" && ac_dir=.
  1.1133 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  1.1134 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  1.1135 -      # Check to see if the nm accepts a BSD-compat flag.
  1.1136 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1.1137 -      #   nm: unknown option "B" ignored
  1.1138 -      # Tru64's nm complains that /dev/null is an invalid object file
  1.1139 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  1.1140 -      */dev/null* | *'Invalid file or object type'*)
  1.1141 -	lt_cv_path_NM="$tmp_nm -B"
  1.1142 -	break
  1.1143 -        ;;
  1.1144 -      *)
  1.1145 -	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  1.1146 -	*/dev/null*)
  1.1147 -	  lt_cv_path_NM="$tmp_nm -p"
  1.1148 +  lt_nm_to_check="${ac_tool_prefix}nm"
  1.1149 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  1.1150 +    lt_nm_to_check="$lt_nm_to_check nm"
  1.1151 +  fi
  1.1152 +  for lt_tmp_nm in $lt_nm_to_check; do
  1.1153 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1.1154 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  1.1155 +      IFS="$lt_save_ifs"
  1.1156 +      test -z "$ac_dir" && ac_dir=.
  1.1157 +      tmp_nm="$ac_dir/$lt_tmp_nm"
  1.1158 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  1.1159 +	# Check to see if the nm accepts a BSD-compat flag.
  1.1160 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1.1161 +	#   nm: unknown option "B" ignored
  1.1162 +	# Tru64's nm complains that /dev/null is an invalid object file
  1.1163 +	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  1.1164 +	*/dev/null* | *'Invalid file or object type'*)
  1.1165 +	  lt_cv_path_NM="$tmp_nm -B"
  1.1166  	  break
  1.1167  	  ;;
  1.1168  	*)
  1.1169 -	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1.1170 -	  continue # so that we can try to find one that supports BSD flags
  1.1171 +	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  1.1172 +	  */dev/null*)
  1.1173 +	    lt_cv_path_NM="$tmp_nm -p"
  1.1174 +	    break
  1.1175 +	    ;;
  1.1176 +	  *)
  1.1177 +	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1.1178 +	    continue # so that we can try to find one that supports BSD flags
  1.1179 +	    ;;
  1.1180 +	  esac
  1.1181  	  ;;
  1.1182  	esac
  1.1183 -      esac
  1.1184 -    fi
  1.1185 +      fi
  1.1186 +    done
  1.1187 +    IFS="$lt_save_ifs"
  1.1188    done
  1.1189 -  IFS="$lt_save_ifs"
  1.1190    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  1.1191  fi])
  1.1192  NM="$lt_cv_path_NM"
  1.1193 @@ -2361,13 +2669,13 @@
  1.1194  # -----------------------------------
  1.1195  # sets LIBLTDL to the link flags for the libltdl convenience library and
  1.1196  # LTDLINCL to the include flags for the libltdl header and adds
  1.1197 -# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
  1.1198 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  1.1199 -# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
  1.1200 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  1.1201 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
  1.1202 -# flat and you're not using automake, define top_builddir and
  1.1203 -# top_srcdir appropriately in the Makefiles.
  1.1204 +# --enable-ltdl-convenience to the configure arguments.  Note that
  1.1205 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
  1.1206 +# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
  1.1207 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  1.1208 +# (note the single quotes!).  If your package is not flat and you're not
  1.1209 +# using automake, define top_builddir and top_srcdir appropriately in
  1.1210 +# the Makefiles.
  1.1211  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  1.1212  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1.1213    case $enable_ltdl_convenience in
  1.1214 @@ -2386,13 +2694,13 @@
  1.1215  # -----------------------------------
  1.1216  # sets LIBLTDL to the link flags for the libltdl installable library and
  1.1217  # LTDLINCL to the include flags for the libltdl header and adds
  1.1218 -# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
  1.1219 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  1.1220 -# DIRECTORY is not provided and an installed libltdl is not found, it is
  1.1221 -# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
  1.1222 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  1.1223 -# quotes!).  If your package is not flat and you're not using automake,
  1.1224 -# define top_builddir and top_srcdir appropriately in the Makefiles.
  1.1225 +# --enable-ltdl-install to the configure arguments.  Note that
  1.1226 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
  1.1227 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
  1.1228 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  1.1229 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
  1.1230 +# flat and you're not using automake, define top_builddir and top_srcdir
  1.1231 +# appropriately in the Makefiles.
  1.1232  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  1.1233  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  1.1234  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1.1235 @@ -2435,7 +2743,7 @@
  1.1236  ])# _LT_AC_LANG_CXX
  1.1237  
  1.1238  # _LT_AC_PROG_CXXCPP
  1.1239 -# ---------------
  1.1240 +# ------------------
  1.1241  AC_DEFUN([_LT_AC_PROG_CXXCPP],
  1.1242  [
  1.1243  AC_REQUIRE([AC_PROG_CXX])
  1.1244 @@ -2484,7 +2792,7 @@
  1.1245  
  1.1246  
  1.1247  # AC_LIBTOOL_RC
  1.1248 -# --------------
  1.1249 +# -------------
  1.1250  # enable support for Windows resource files
  1.1251  AC_DEFUN([AC_LIBTOOL_RC],
  1.1252  [AC_REQUIRE([LT_AC_PROG_RC])
  1.1253 @@ -2510,43 +2818,16 @@
  1.1254  _LT_AC_TAGVAR(objext, $1)=$objext
  1.1255  
  1.1256  # Code to be used in simple compile tests
  1.1257 -lt_simple_compile_test_code="int some_variable = 0;\n"
  1.1258 +lt_simple_compile_test_code="int some_variable = 0;"
  1.1259  
  1.1260  # Code to be used in simple link tests
  1.1261 -lt_simple_link_test_code='int main(){return(0);}\n'
  1.1262 +lt_simple_link_test_code='int main(){return(0);}'
  1.1263  
  1.1264  _LT_AC_SYS_COMPILER
  1.1265  
  1.1266 -#
  1.1267 -# Check for any special shared library compilation flags.
  1.1268 -#
  1.1269 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  1.1270 -if test "$GCC" = no; then
  1.1271 -  case $host_os in
  1.1272 -  sco3.2v5*)
  1.1273 -    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  1.1274 -    ;;
  1.1275 -  esac
  1.1276 -fi
  1.1277 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  1.1278 -  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  1.1279 -  if echo "$old_CC $old_CFLAGS " | grep "[[ 	]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ 	]]" >/dev/null; then :
  1.1280 -  else
  1.1281 -    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  1.1282 -    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  1.1283 -  fi
  1.1284 -fi
  1.1285 -
  1.1286 -
  1.1287 -#
  1.1288 -# Check to make sure the static flag actually works.
  1.1289 -#
  1.1290 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  1.1291 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  1.1292 -  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  1.1293 -  [],
  1.1294 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  1.1295 -
  1.1296 +# save warnings/boilerplate of simple test code
  1.1297 +_LT_COMPILER_BOILERPLATE
  1.1298 +_LT_LINKER_BOILERPLATE
  1.1299  
  1.1300  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  1.1301  AC_LIBTOOL_PROG_COMPILER_PIC($1)
  1.1302 @@ -2556,9 +2837,9 @@
  1.1303  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.1304  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.1305  AC_LIBTOOL_SYS_LIB_STRIP
  1.1306 -AC_LIBTOOL_DLOPEN_SELF($1)
  1.1307 -
  1.1308 -# Report which librarie types wil actually be built
  1.1309 +AC_LIBTOOL_DLOPEN_SELF
  1.1310 +
  1.1311 +# Report which library types will actually be built
  1.1312  AC_MSG_CHECKING([if libtool supports shared libraries])
  1.1313  AC_MSG_RESULT([$can_build_shared])
  1.1314  
  1.1315 @@ -2567,7 +2848,7 @@
  1.1316  
  1.1317  # On AIX, shared libraries and static libraries use the same namespace, and
  1.1318  # are all built from PIC.
  1.1319 -case "$host_os" in
  1.1320 +case $host_os in
  1.1321  aix3*)
  1.1322    test "$enable_shared" = yes && enable_static=no
  1.1323    if test -n "$RANLIB"; then
  1.1324 @@ -2576,7 +2857,7 @@
  1.1325    fi
  1.1326    ;;
  1.1327  
  1.1328 -aix4* | aix5*)
  1.1329 +aix[[4-9]]*)
  1.1330    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.1331      test "$enable_shared" = yes && enable_static=no
  1.1332    fi
  1.1333 @@ -2617,6 +2898,7 @@
  1.1334  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.1335  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.1336  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  1.1337 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1338  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  1.1339  _LT_AC_TAGVAR(module_cmds, $1)=
  1.1340  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  1.1341 @@ -2632,23 +2914,28 @@
  1.1342  _LT_AC_TAGVAR(predeps, $1)=
  1.1343  _LT_AC_TAGVAR(postdeps, $1)=
  1.1344  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  1.1345 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  1.1346  
  1.1347  # Source file extension for C++ test sources.
  1.1348 -ac_ext=cc
  1.1349 +ac_ext=cpp
  1.1350  
  1.1351  # Object file extension for compiled C++ test sources.
  1.1352  objext=o
  1.1353  _LT_AC_TAGVAR(objext, $1)=$objext
  1.1354  
  1.1355  # Code to be used in simple compile tests
  1.1356 -lt_simple_compile_test_code="int some_variable = 0;\n"
  1.1357 +lt_simple_compile_test_code="int some_variable = 0;"
  1.1358  
  1.1359  # Code to be used in simple link tests
  1.1360 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  1.1361 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  1.1362  
  1.1363  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.1364  _LT_AC_SYS_COMPILER
  1.1365  
  1.1366 +# save warnings/boilerplate of simple test code
  1.1367 +_LT_COMPILER_BOILERPLATE
  1.1368 +_LT_LINKER_BOILERPLATE
  1.1369 +
  1.1370  # Allow CC to be a program name with arguments.
  1.1371  lt_save_CC=$CC
  1.1372  lt_save_LD=$LD
  1.1373 @@ -2659,18 +2946,18 @@
  1.1374  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  1.1375    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  1.1376  else
  1.1377 -  unset lt_cv_prog_gnu_ld
  1.1378 +  $as_unset lt_cv_prog_gnu_ld
  1.1379  fi
  1.1380  if test -n "${lt_cv_path_LDCXX+set}"; then
  1.1381    lt_cv_path_LD=$lt_cv_path_LDCXX
  1.1382  else
  1.1383 -  unset lt_cv_path_LD
  1.1384 +  $as_unset lt_cv_path_LD
  1.1385  fi
  1.1386  test -z "${LDCXX+set}" || LD=$LDCXX
  1.1387  CC=${CXX-"c++"}
  1.1388  compiler=$CC
  1.1389  _LT_AC_TAGVAR(compiler, $1)=$CC
  1.1390 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  1.1391 +_LT_CC_BASENAME([$compiler])
  1.1392  
  1.1393  # We don't want -fno-exception wen compiling C++ code, so set the
  1.1394  # no_builtin_flag separately
  1.1395 @@ -2737,7 +3024,7 @@
  1.1396      # FIXME: insert proper C++ library support
  1.1397      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1398      ;;
  1.1399 -  aix4* | aix5*)
  1.1400 +  aix[[4-9]]*)
  1.1401      if test "$host_cpu" = ia64; then
  1.1402        # On IA64, the linker does run time linking by default, so we don't
  1.1403        # have to do anything special.
  1.1404 @@ -2750,7 +3037,7 @@
  1.1405        # Test if we are trying to use run time linking or normal
  1.1406        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  1.1407        # need to do runtime linking.
  1.1408 -      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  1.1409 +      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  1.1410  	for ld_flag in $LDFLAGS; do
  1.1411  	  case $ld_flag in
  1.1412  	  *-brtl*)
  1.1413 @@ -2759,6 +3046,7 @@
  1.1414  	    ;;
  1.1415  	  esac
  1.1416  	done
  1.1417 +	;;
  1.1418        esac
  1.1419  
  1.1420        exp_sym_flag='-bexport'
  1.1421 @@ -2785,7 +3073,7 @@
  1.1422  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  1.1423  	then
  1.1424  	  # We have reworked collect2
  1.1425 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.1426 +	  :
  1.1427  	else
  1.1428  	  # We have old collect2
  1.1429  	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  1.1430 @@ -2796,6 +3084,7 @@
  1.1431  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.1432  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.1433  	fi
  1.1434 +	;;
  1.1435        esac
  1.1436        shared_flag='-shared'
  1.1437        if test "$aix_use_runtimelinking" = yes; then
  1.1438 @@ -2827,12 +3116,12 @@
  1.1439        _LT_AC_SYS_LIBPATH_AIX
  1.1440        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.1441  
  1.1442 -      _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"
  1.1443 +      _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"
  1.1444       else
  1.1445        if test "$host_cpu" = ia64; then
  1.1446  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.1447  	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.1448 -	_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"
  1.1449 +	_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"
  1.1450        else
  1.1451  	# Determine the default libpath from the value encoded in an empty executable.
  1.1452  	_LT_AC_SYS_LIBPATH_AIX
  1.1453 @@ -2841,16 +3130,26 @@
  1.1454  	# -berok will link without error, but may produce a broken library.
  1.1455  	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.1456  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.1457 -	# -bexpall does not export symbols beginning with underscore (_)
  1.1458 -	_LT_AC_TAGVAR(always_export_symbols, $1)=yes
  1.1459  	# Exported symbols can be pulled into shared objects from archives
  1.1460 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  1.1461 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.1462  	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.1463 -	# This is similar to how AIX traditionally builds it's shared libraries.
  1.1464 -	_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'
  1.1465 +	# This is similar to how AIX traditionally builds its shared libraries.
  1.1466 +	_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'
  1.1467        fi
  1.1468      fi
  1.1469      ;;
  1.1470 +
  1.1471 +  beos*)
  1.1472 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.1473 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.1474 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1.1475 +      # support --undefined.  This deserves some investigation.  FIXME
  1.1476 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1477 +    else
  1.1478 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1479 +    fi
  1.1480 +    ;;
  1.1481 +
  1.1482    chorus*)
  1.1483      case $cc_basename in
  1.1484        *)
  1.1485 @@ -2860,7 +3159,6 @@
  1.1486      esac
  1.1487      ;;
  1.1488  
  1.1489 -
  1.1490    cygwin* | mingw* | pw32*)
  1.1491      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.1492      # as there is no search path for DLLs.
  1.1493 @@ -2870,7 +3168,7 @@
  1.1494      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.1495  
  1.1496      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  1.1497 -      _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'
  1.1498 +      _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'
  1.1499        # If the export-symbols file already is a .def file (1st line
  1.1500        # is EXPORTS), use it as is; otherwise, prepend...
  1.1501        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.1502 @@ -2879,65 +3177,37 @@
  1.1503  	echo EXPORTS > $output_objdir/$soname.def;
  1.1504  	cat $export_symbols >> $output_objdir/$soname.def;
  1.1505        fi~
  1.1506 -      $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'
  1.1507 +      $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'
  1.1508      else
  1.1509        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1510      fi
  1.1511    ;;
  1.1512        darwin* | rhapsody*)
  1.1513 -        case "$host_os" in
  1.1514 -        rhapsody* | darwin1.[[012]])
  1.1515 -         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  1.1516 -         ;;
  1.1517 -       *) # Darwin 1.3 on
  1.1518 -         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.1519 -           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.1520 -         else
  1.1521 -           case ${MACOSX_DEPLOYMENT_TARGET} in
  1.1522 -             10.[[012]])
  1.1523 -               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.1524 -               ;;
  1.1525 -             10.*)
  1.1526 -               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  1.1527 -               ;;
  1.1528 -           esac
  1.1529 -         fi
  1.1530 -         ;;
  1.1531 -        esac
  1.1532        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1533        _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1534        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1.1535        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1536        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  1.1537        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1538 -
  1.1539 -    if test "$GXX" = yes ; then
  1.1540 -      lt_int_apple_cc_single_mod=no
  1.1541 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1.1542 +      if test "$GXX" = yes ; then
  1.1543        output_verbose_link_cmd='echo'
  1.1544 -      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  1.1545 -       lt_int_apple_cc_single_mod=yes
  1.1546 +      _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}"
  1.1547 +      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1.1548 +      _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}"
  1.1549 +      _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}"
  1.1550 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1.1551 +        _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}"
  1.1552 +        _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}"
  1.1553        fi
  1.1554 -      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.1555 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.1556        else
  1.1557 -          _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'
  1.1558 -        fi
  1.1559 -        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.1560 -        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.1561 -          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.1562 -            _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}'
  1.1563 -          else
  1.1564 -            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.1565 -          fi
  1.1566 -            _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}'
  1.1567 -      else
  1.1568 -      case "$cc_basename" in
  1.1569 +      case $cc_basename in
  1.1570          xlc*)
  1.1571           output_verbose_link_cmd='echo'
  1.1572 -          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  1.1573 +          _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'
  1.1574            _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.1575 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.1576 -          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.1577 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.1578 +          _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}'
  1.1579            _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}'
  1.1580            ;;
  1.1581         *)
  1.1582 @@ -2949,11 +3219,11 @@
  1.1583  
  1.1584    dgux*)
  1.1585      case $cc_basename in
  1.1586 -      ec++)
  1.1587 +      ec++*)
  1.1588  	# FIXME: insert proper C++ library support
  1.1589  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1590  	;;
  1.1591 -      ghcx)
  1.1592 +      ghcx*)
  1.1593  	# Green Hills C++ Compiler
  1.1594  	# FIXME: insert proper C++ library support
  1.1595  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1596 @@ -2971,7 +3241,7 @@
  1.1597    freebsd-elf*)
  1.1598      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1599      ;;
  1.1600 -  freebsd* | kfreebsd*-gnu | dragonfly*)
  1.1601 +  freebsd* | dragonfly*)
  1.1602      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  1.1603      # conventions
  1.1604      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  1.1605 @@ -2988,11 +3258,11 @@
  1.1606  				# location of the library.
  1.1607  
  1.1608      case $cc_basename in
  1.1609 -    CC)
  1.1610 +    CC*)
  1.1611        # FIXME: insert proper C++ library support
  1.1612        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1613        ;;
  1.1614 -    aCC)
  1.1615 +    aCC*)
  1.1616        _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'
  1.1617        # Commands to make compiler produce verbose output that lists
  1.1618        # what "hidden" libraries, object files and flags are used when
  1.1619 @@ -3016,34 +3286,21 @@
  1.1620      ;;
  1.1621    hpux10*|hpux11*)
  1.1622      if test $with_gnu_ld = no; then
  1.1623 -      case "$host_cpu" in
  1.1624 -      hppa*64*)
  1.1625 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.1626 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.1627 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1628 -        ;;
  1.1629 -      ia64*)
  1.1630 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.1631 -        ;;
  1.1632 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.1633 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1634 +
  1.1635 +      case $host_cpu in
  1.1636 +      hppa*64*|ia64*) ;;
  1.1637        *)
  1.1638 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.1639 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1640  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.1641          ;;
  1.1642        esac
  1.1643      fi
  1.1644 -    case "$host_cpu" in
  1.1645 -    hppa*64*)
  1.1646 +    case $host_cpu in
  1.1647 +    hppa*64*|ia64*)
  1.1648        _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1649        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1650        ;;
  1.1651 -    ia64*)
  1.1652 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1653 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1654 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  1.1655 -					      # but as the default
  1.1656 -					      # location of the library.
  1.1657 -      ;;
  1.1658      *)
  1.1659        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.1660        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  1.1661 @@ -3053,14 +3310,17 @@
  1.1662      esac
  1.1663  
  1.1664      case $cc_basename in
  1.1665 -      CC)
  1.1666 +      CC*)
  1.1667  	# FIXME: insert proper C++ library support
  1.1668  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1669  	;;
  1.1670 -      aCC)
  1.1671 -	case "$host_cpu" in
  1.1672 -	hppa*64*|ia64*)
  1.1673 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  1.1674 +      aCC*)
  1.1675 +	case $host_cpu in
  1.1676 +	hppa*64*)
  1.1677 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1678 +	  ;;
  1.1679 +	ia64*)
  1.1680 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1681  	  ;;
  1.1682  	*)
  1.1683  	  _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'
  1.1684 @@ -3079,9 +3339,12 @@
  1.1685        *)
  1.1686  	if test "$GXX" = yes; then
  1.1687  	  if test $with_gnu_ld = no; then
  1.1688 -	    case "$host_cpu" in
  1.1689 -	    ia64*|hppa*64*)
  1.1690 -	      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  1.1691 +	    case $host_cpu in
  1.1692 +	    hppa*64*)
  1.1693 +	      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1694 +	      ;;
  1.1695 +	    ia64*)
  1.1696 +	      _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'
  1.1697  	      ;;
  1.1698  	    *)
  1.1699  	      _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'
  1.1700 @@ -3095,11 +3358,25 @@
  1.1701  	;;
  1.1702      esac
  1.1703      ;;
  1.1704 +  interix[[3-9]]*)
  1.1705 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1706 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1707 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.1708 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.1709 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  1.1710 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
  1.1711 +    # default) and relocated if they conflict, which is a slow very memory
  1.1712 +    # consuming and fragmenting process.  To avoid this, we pick a random,
  1.1713 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  1.1714 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  1.1715 +    _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'
  1.1716 +    _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'
  1.1717 +    ;;
  1.1718    irix5* | irix6*)
  1.1719      case $cc_basename in
  1.1720 -      CC)
  1.1721 +      CC*)
  1.1722  	# SGI C++
  1.1723 -	_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'
  1.1724 +	_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'
  1.1725  
  1.1726  	# Archives containing C++ object files must be created using
  1.1727  	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  1.1728 @@ -3110,7 +3387,7 @@
  1.1729        *)
  1.1730  	if test "$GXX" = yes; then
  1.1731  	  if test "$with_gnu_ld" = no; then
  1.1732 -	    _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'
  1.1733 +	    _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'
  1.1734  	  else
  1.1735  	    _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'
  1.1736  	  fi
  1.1737 @@ -3121,9 +3398,9 @@
  1.1738      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.1739      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1740      ;;
  1.1741 -  linux*)
  1.1742 +  linux* | k*bsd*-gnu)
  1.1743      case $cc_basename in
  1.1744 -      KCC)
  1.1745 +      KCC*)
  1.1746  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.1747  
  1.1748  	# KCC will only create a shared library if the output file
  1.1749 @@ -3148,7 +3425,7 @@
  1.1750  	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  1.1751  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  1.1752  	;;
  1.1753 -      icpc)
  1.1754 +      icpc*)
  1.1755  	# Intel C++
  1.1756  	with_gnu_ld=yes
  1.1757  	# version 8.0 and above of icpc choke on multiply defined symbols
  1.1758 @@ -3173,15 +3450,16 @@
  1.1759  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.1760  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.1761  	;;
  1.1762 -      pgCC)
  1.1763 +      pgCC* | pgcpp*)
  1.1764          # Portland Group C++ compiler
  1.1765 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.1766 -  	_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'
  1.1767 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.1768 +  	_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'
  1.1769  
  1.1770  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.1771  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.1772 +	_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'
  1.1773          ;;
  1.1774 -      cxx)
  1.1775 +      cxx*)
  1.1776  	# Compaq C++
  1.1777  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1778  	_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'
  1.1779 @@ -3200,6 +3478,29 @@
  1.1780  	# dependencies.
  1.1781  	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'
  1.1782  	;;
  1.1783 +      *)
  1.1784 +	case `$CC -V 2>&1 | sed 5q` in
  1.1785 +	*Sun\ C*)
  1.1786 +	  # Sun C++ 5.9
  1.1787 +	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.1788 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1789 +	  _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'
  1.1790 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.1791 +	  _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'
  1.1792 +
  1.1793 +	  # Not sure whether something based on
  1.1794 +	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  1.1795 +	  # would be better.
  1.1796 +	  output_verbose_link_cmd='echo'
  1.1797 +
  1.1798 +	  # Archives containing C++ object files must be created using
  1.1799 +	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.1800 +	  # necessary to make sure instantiated templates are included
  1.1801 +	  # in the archive.
  1.1802 +	  _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  1.1803 +	  ;;
  1.1804 +	esac
  1.1805 +	;;
  1.1806      esac
  1.1807      ;;
  1.1808    lynxos*)
  1.1809 @@ -3212,7 +3513,7 @@
  1.1810      ;;
  1.1811    mvs*)
  1.1812      case $cc_basename in
  1.1813 -      cxx)
  1.1814 +      cxx*)
  1.1815  	# FIXME: insert proper C++ library support
  1.1816  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1817  	;;
  1.1818 @@ -3222,7 +3523,7 @@
  1.1819  	;;
  1.1820      esac
  1.1821      ;;
  1.1822 -  netbsd*)
  1.1823 +  netbsd* | netbsdelf*-gnu)
  1.1824      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.1825        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  1.1826        wlarc=
  1.1827 @@ -3238,20 +3539,24 @@
  1.1828      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1829      ;;
  1.1830    openbsd*)
  1.1831 -    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.1832 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1833 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  1.1834 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.1835 -    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.1836 -      _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'
  1.1837 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.1838 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.1839 +    if test -f /usr/libexec/ld.so; then
  1.1840 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.1841 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1842 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  1.1843 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.1844 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.1845 +	_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'
  1.1846 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.1847 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.1848 +      fi
  1.1849 +      output_verbose_link_cmd='echo'
  1.1850 +    else
  1.1851 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1852      fi
  1.1853 -    output_verbose_link_cmd='echo'
  1.1854      ;;
  1.1855    osf3*)
  1.1856      case $cc_basename in
  1.1857 -      KCC)
  1.1858 +      KCC*)
  1.1859  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.1860  
  1.1861  	# KCC will only create a shared library if the output file
  1.1862 @@ -3267,14 +3572,14 @@
  1.1863  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  1.1864  
  1.1865  	;;
  1.1866 -      RCC)
  1.1867 +      RCC*)
  1.1868  	# Rational C++ 2.4.1
  1.1869  	# FIXME: insert proper C++ library support
  1.1870  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1871  	;;
  1.1872 -      cxx)
  1.1873 +      cxx*)
  1.1874  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.1875 -	_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'
  1.1876 +	_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'
  1.1877  
  1.1878  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.1879  	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1880 @@ -3292,7 +3597,7 @@
  1.1881        *)
  1.1882  	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.1883  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.1884 -	  _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'
  1.1885 +	  _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'
  1.1886  
  1.1887  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.1888  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1889 @@ -3311,7 +3616,7 @@
  1.1890      ;;
  1.1891    osf4* | osf5*)
  1.1892      case $cc_basename in
  1.1893 -      KCC)
  1.1894 +      KCC*)
  1.1895  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.1896  
  1.1897  	# KCC will only create a shared library if the output file
  1.1898 @@ -3326,17 +3631,17 @@
  1.1899  	# the KAI C++ compiler.
  1.1900  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  1.1901  	;;
  1.1902 -      RCC)
  1.1903 +      RCC*)
  1.1904  	# Rational C++ 2.4.1
  1.1905  	# FIXME: insert proper C++ library support
  1.1906  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1907  	;;
  1.1908 -      cxx)
  1.1909 +      cxx*)
  1.1910  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.1911 -	_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'
  1.1912 +	_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'
  1.1913  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  1.1914  	  echo "-hidden">> $lib.exp~
  1.1915 -	  $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~
  1.1916 +	  $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~
  1.1917  	  $rm $lib.exp'
  1.1918  
  1.1919  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.1920 @@ -3355,7 +3660,7 @@
  1.1921        *)
  1.1922  	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.1923  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.1924 -	 _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'
  1.1925 +	 _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'
  1.1926  
  1.1927  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.1928  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1929 @@ -3376,27 +3681,14 @@
  1.1930      # FIXME: insert proper C++ library support
  1.1931      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1932      ;;
  1.1933 -  sco*)
  1.1934 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1935 -    case $cc_basename in
  1.1936 -      CC)
  1.1937 -	# FIXME: insert proper C++ library support
  1.1938 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1939 -	;;
  1.1940 -      *)
  1.1941 -	# FIXME: insert proper C++ library support
  1.1942 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1943 -	;;
  1.1944 -    esac
  1.1945 -    ;;
  1.1946    sunos4*)
  1.1947      case $cc_basename in
  1.1948 -      CC)
  1.1949 +      CC*)
  1.1950  	# Sun C++ 4.x
  1.1951  	# FIXME: insert proper C++ library support
  1.1952  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1953  	;;
  1.1954 -      lcc)
  1.1955 +      lcc*)
  1.1956  	# Lucid
  1.1957  	# FIXME: insert proper C++ library support
  1.1958  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1959 @@ -3409,36 +3701,28 @@
  1.1960      ;;
  1.1961    solaris*)
  1.1962      case $cc_basename in
  1.1963 -      CC)
  1.1964 +      CC*)
  1.1965  	# Sun C++ 4.2, 5.x and Centerline C++
  1.1966 +        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  1.1967  	_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.1968 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1969 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1970  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.1971 -	$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'
  1.1972 +	$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'
  1.1973  
  1.1974  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.1975  	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1976  	case $host_os in
  1.1977  	  solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.1978  	  *)
  1.1979 -	    # The C++ compiler is used as linker so we must use $wl
  1.1980 -	    # flag to pass the commands to the underlying system
  1.1981 -	    # linker.
  1.1982 +	    # The compiler driver will combine and reorder linker options,
  1.1983 +	    # but understands `-z linker_flag'.
  1.1984  	    # Supported since Solaris 2.6 (maybe 2.5.1?)
  1.1985 -	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  1.1986 +	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  1.1987  	    ;;
  1.1988  	esac
  1.1989  	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1990  
  1.1991 -	# Commands to make compiler produce verbose output that lists
  1.1992 -	# what "hidden" libraries, object files and flags are used when
  1.1993 -	# linking a shared library.
  1.1994 -	#
  1.1995 -	# There doesn't appear to be a way to prevent this compiler from
  1.1996 -	# explicitly linking system object files so we need to strip them
  1.1997 -	# from the output so that they don't get included in the library
  1.1998 -	# dependencies.
  1.1999 -	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'
  1.2000 +	output_verbose_link_cmd='echo'
  1.2001  
  1.2002  	# Archives containing C++ object files must be created using
  1.2003  	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.2004 @@ -3446,7 +3730,7 @@
  1.2005  	# in the archive.
  1.2006  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  1.2007  	;;
  1.2008 -      gcx)
  1.2009 +      gcx*)
  1.2010  	# Green Hills C++ Compiler
  1.2011  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.2012  
  1.2013 @@ -3480,16 +3764,73 @@
  1.2014  	  fi
  1.2015  
  1.2016  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  1.2017 +	  case $host_os in
  1.2018 +	  solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.2019 +	  *)
  1.2020 +	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  1.2021 +	    ;;
  1.2022 +	  esac
  1.2023  	fi
  1.2024  	;;
  1.2025      esac
  1.2026      ;;
  1.2027 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  1.2028 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  1.2029 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.2030      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2031 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2032 +    runpath_var='LD_RUN_PATH'
  1.2033 +
  1.2034 +    case $cc_basename in
  1.2035 +      CC*)
  1.2036 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2037 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2038 +	;;
  1.2039 +      *)
  1.2040 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2041 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2042 +	;;
  1.2043 +    esac
  1.2044 +    ;;
  1.2045 +  sysv5* | sco3.2v5* | sco5v6*)
  1.2046 +    # Note: We can NOT use -z defs as we might desire, because we do not
  1.2047 +    # link with -lc, and that would cause any symbols used from libc to
  1.2048 +    # always be unresolved, which means just about no library would
  1.2049 +    # ever link correctly.  If we're not using GNU ld we use -z text
  1.2050 +    # though, which does catch some bad symbols but isn't as heavy-handed
  1.2051 +    # as -z defs.
  1.2052 +    # For security reasons, it is highly recommended that you always
  1.2053 +    # use absolute paths for naming shared libraries, and exclude the
  1.2054 +    # DT_RUNPATH tag from executables and libraries.  But doing so
  1.2055 +    # requires that you compile everything twice, which is a pain.
  1.2056 +    # So that behaviour is only enabled if SCOABSPATH is set to a
  1.2057 +    # non-empty value in the environment.  Most likely only useful for
  1.2058 +    # creating official distributions of packages.
  1.2059 +    # This is a hack until libtool officially supports absolute path
  1.2060 +    # names for shared libraries.
  1.2061 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.2062 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  1.2063 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2064 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2065 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  1.2066 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.2067 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.2068 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.2069 +    runpath_var='LD_RUN_PATH'
  1.2070 +
  1.2071 +    case $cc_basename in
  1.2072 +      CC*)
  1.2073 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2074 +	_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'
  1.2075 +	;;
  1.2076 +      *)
  1.2077 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2078 +	_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'
  1.2079 +	;;
  1.2080 +    esac
  1.2081      ;;
  1.2082    tandem*)
  1.2083      case $cc_basename in
  1.2084 -      NCC)
  1.2085 +      NCC*)
  1.2086  	# NonStop-UX NCC 3.20
  1.2087  	# FIXME: insert proper C++ library support
  1.2088  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2089 @@ -3522,8 +3863,6 @@
  1.2090  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.2091  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.2092  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.2093 -AC_LIBTOOL_SYS_LIB_STRIP
  1.2094 -AC_LIBTOOL_DLOPEN_SELF($1)
  1.2095  
  1.2096  AC_LIBTOOL_CONFIG($1)
  1.2097  
  1.2098 @@ -3541,12 +3880,13 @@
  1.2099  ])# AC_LIBTOOL_LANG_CXX_CONFIG
  1.2100  
  1.2101  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  1.2102 -# ------------------------
  1.2103 +# ------------------------------------
  1.2104  # Figure out "hidden" library dependencies from verbose
  1.2105  # compiler output when linking a shared library.
  1.2106  # Parse the compiler output and extract the necessary
  1.2107  # objects, libraries and library flags.
  1.2108 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  1.2109 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  1.2110 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1.2111  dnl we can't use the lt_simple_compile_test_code here,
  1.2112  dnl because it contains code intended for an executable,
  1.2113  dnl not a library.  It's possible we should let each
  1.2114 @@ -3595,7 +3935,7 @@
  1.2115    # The `*' in the case matches for architectures that use `case' in
  1.2116    # $output_verbose_cmd can trigger glob expansion during the loop
  1.2117    # eval without this substitution.
  1.2118 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  1.2119 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  1.2120  
  1.2121    for p in `eval $output_verbose_link_cmd`; do
  1.2122      case $p in
  1.2123 @@ -3671,13 +4011,74 @@
  1.2124  
  1.2125  $rm -f confest.$objext
  1.2126  
  1.2127 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  1.2128 +if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  1.2129 +  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  1.2130 +fi
  1.2131 +
  1.2132 +# PORTME: override above test on systems where it is broken
  1.2133 +ifelse([$1],[CXX],
  1.2134 +[case $host_os in
  1.2135 +interix[[3-9]]*)
  1.2136 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  1.2137 +  # hack all around it, let's just trust "g++" to DTRT.
  1.2138 +  _LT_AC_TAGVAR(predep_objects,$1)=
  1.2139 +  _LT_AC_TAGVAR(postdep_objects,$1)=
  1.2140 +  _LT_AC_TAGVAR(postdeps,$1)=
  1.2141 +  ;;
  1.2142 +
  1.2143 +linux*)
  1.2144 +  case `$CC -V 2>&1 | sed 5q` in
  1.2145 +  *Sun\ C*)
  1.2146 +    # Sun C++ 5.9
  1.2147 +    #
  1.2148 +    # The more standards-conforming stlport4 library is
  1.2149 +    # incompatible with the Cstd library. Avoid specifying
  1.2150 +    # it if it's in CXXFLAGS. Ignore libCrun as
  1.2151 +    # -library=stlport4 depends on it.
  1.2152 +    case " $CXX $CXXFLAGS " in
  1.2153 +    *" -library=stlport4 "*)
  1.2154 +      solaris_use_stlport4=yes
  1.2155 +      ;;
  1.2156 +    esac
  1.2157 +    if test "$solaris_use_stlport4" != yes; then
  1.2158 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  1.2159 +    fi
  1.2160 +    ;;
  1.2161 +  esac
  1.2162 +  ;;
  1.2163 +
  1.2164 +solaris*)
  1.2165 +  case $cc_basename in
  1.2166 +  CC*)
  1.2167 +    # The more standards-conforming stlport4 library is
  1.2168 +    # incompatible with the Cstd library. Avoid specifying
  1.2169 +    # it if it's in CXXFLAGS. Ignore libCrun as
  1.2170 +    # -library=stlport4 depends on it.
  1.2171 +    case " $CXX $CXXFLAGS " in
  1.2172 +    *" -library=stlport4 "*)
  1.2173 +      solaris_use_stlport4=yes
  1.2174 +      ;;
  1.2175 +    esac
  1.2176 +
  1.2177 +    # Adding this requires a known-good setup of shared libraries for
  1.2178 +    # Sun compiler versions before 5.6, else PIC objects from an old
  1.2179 +    # archive will be linked into the output, leading to subtle bugs.
  1.2180 +    if test "$solaris_use_stlport4" != yes; then
  1.2181 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  1.2182 +    fi
  1.2183 +    ;;
  1.2184 +  esac
  1.2185 +  ;;
  1.2186 +esac
  1.2187 +])
  1.2188  case " $_LT_AC_TAGVAR(postdeps, $1) " in
  1.2189  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  1.2190  esac
  1.2191  ])# AC_LIBTOOL_POSTDEP_PREDEP
  1.2192  
  1.2193  # AC_LIBTOOL_LANG_F77_CONFIG
  1.2194 -# ------------------------
  1.2195 +# --------------------------
  1.2196  # Ensure that the configuration vars for the C compiler are
  1.2197  # suitably defined.  Those variables are subsequently used by
  1.2198  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.2199 @@ -3713,20 +4114,31 @@
  1.2200  _LT_AC_TAGVAR(objext, $1)=$objext
  1.2201  
  1.2202  # Code to be used in simple compile tests
  1.2203 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
  1.2204 +lt_simple_compile_test_code="\
  1.2205 +      subroutine t
  1.2206 +      return
  1.2207 +      end
  1.2208 +"
  1.2209  
  1.2210  # Code to be used in simple link tests
  1.2211 -lt_simple_link_test_code="      program t\n      end\n"
  1.2212 +lt_simple_link_test_code="\
  1.2213 +      program t
  1.2214 +      end
  1.2215 +"
  1.2216  
  1.2217  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.2218  _LT_AC_SYS_COMPILER
  1.2219  
  1.2220 +# save warnings/boilerplate of simple test code
  1.2221 +_LT_COMPILER_BOILERPLATE
  1.2222 +_LT_LINKER_BOILERPLATE
  1.2223 +
  1.2224  # Allow CC to be a program name with arguments.
  1.2225  lt_save_CC="$CC"
  1.2226  CC=${F77-"f77"}
  1.2227  compiler=$CC
  1.2228  _LT_AC_TAGVAR(compiler, $1)=$CC
  1.2229 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  1.2230 +_LT_CC_BASENAME([$compiler])
  1.2231  
  1.2232  AC_MSG_CHECKING([if libtool supports shared libraries])
  1.2233  AC_MSG_RESULT([$can_build_shared])
  1.2234 @@ -3736,7 +4148,7 @@
  1.2235  
  1.2236  # On AIX, shared libraries and static libraries use the same namespace, and
  1.2237  # are all built from PIC.
  1.2238 -case "$host_os" in
  1.2239 +case $host_os in
  1.2240  aix3*)
  1.2241    test "$enable_shared" = yes && enable_static=no
  1.2242    if test -n "$RANLIB"; then
  1.2243 @@ -3744,8 +4156,10 @@
  1.2244      postinstall_cmds='$RANLIB $lib'
  1.2245    fi
  1.2246    ;;
  1.2247 -aix4* | aix5*)
  1.2248 -  test "$enable_shared" = yes && enable_static=no
  1.2249 +aix[[4-9]]*)
  1.2250 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.2251 +    test "$enable_shared" = yes && enable_static=no
  1.2252 +  fi
  1.2253    ;;
  1.2254  esac
  1.2255  AC_MSG_RESULT([$enable_shared])
  1.2256 @@ -3755,8 +4169,6 @@
  1.2257  test "$enable_shared" = yes || enable_static=yes
  1.2258  AC_MSG_RESULT([$enable_static])
  1.2259  
  1.2260 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  1.2261 -
  1.2262  _LT_AC_TAGVAR(GCC, $1)="$G77"
  1.2263  _LT_AC_TAGVAR(LD, $1)="$LD"
  1.2264  
  1.2265 @@ -3766,8 +4178,6 @@
  1.2266  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.2267  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.2268  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.2269 -AC_LIBTOOL_SYS_LIB_STRIP
  1.2270 -
  1.2271  
  1.2272  AC_LIBTOOL_CONFIG($1)
  1.2273  
  1.2274 @@ -3793,23 +4203,30 @@
  1.2275  _LT_AC_TAGVAR(objext, $1)=$objext
  1.2276  
  1.2277  # Code to be used in simple compile tests
  1.2278 -lt_simple_compile_test_code="class foo {}\n"
  1.2279 +lt_simple_compile_test_code="class foo {}"
  1.2280  
  1.2281  # Code to be used in simple link tests
  1.2282 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  1.2283 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  1.2284  
  1.2285  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.2286  _LT_AC_SYS_COMPILER
  1.2287  
  1.2288 +# save warnings/boilerplate of simple test code
  1.2289 +_LT_COMPILER_BOILERPLATE
  1.2290 +_LT_LINKER_BOILERPLATE
  1.2291 +
  1.2292  # Allow CC to be a program name with arguments.
  1.2293  lt_save_CC="$CC"
  1.2294  CC=${GCJ-"gcj"}
  1.2295  compiler=$CC
  1.2296  _LT_AC_TAGVAR(compiler, $1)=$CC
  1.2297 +_LT_CC_BASENAME([$compiler])
  1.2298  
  1.2299  # GCJ did not exist at the time GCC didn't implicitly link libc in.
  1.2300  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2301  
  1.2302 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.2303 +
  1.2304  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  1.2305  AC_LIBTOOL_PROG_COMPILER_PIC($1)
  1.2306  AC_LIBTOOL_PROG_CC_C_O($1)
  1.2307 @@ -3817,8 +4234,6 @@
  1.2308  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.2309  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.2310  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.2311 -AC_LIBTOOL_SYS_LIB_STRIP
  1.2312 -AC_LIBTOOL_DLOPEN_SELF($1)
  1.2313  
  1.2314  AC_LIBTOOL_CONFIG($1)
  1.2315  
  1.2316 @@ -3828,7 +4243,7 @@
  1.2317  
  1.2318  
  1.2319  # AC_LIBTOOL_LANG_RC_CONFIG
  1.2320 -# --------------------------
  1.2321 +# -------------------------
  1.2322  # Ensure that the configuration vars for the Windows resource compiler are
  1.2323  # suitably defined.  Those variables are subsequently used by
  1.2324  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.2325 @@ -3844,7 +4259,7 @@
  1.2326  _LT_AC_TAGVAR(objext, $1)=$objext
  1.2327  
  1.2328  # Code to be used in simple compile tests
  1.2329 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  1.2330 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  1.2331  
  1.2332  # Code to be used in simple link tests
  1.2333  lt_simple_link_test_code="$lt_simple_compile_test_code"
  1.2334 @@ -3852,11 +4267,16 @@
  1.2335  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.2336  _LT_AC_SYS_COMPILER
  1.2337  
  1.2338 +# save warnings/boilerplate of simple test code
  1.2339 +_LT_COMPILER_BOILERPLATE
  1.2340 +_LT_LINKER_BOILERPLATE
  1.2341 +
  1.2342  # Allow CC to be a program name with arguments.
  1.2343  lt_save_CC="$CC"
  1.2344  CC=${RC-"windres"}
  1.2345  compiler=$CC
  1.2346  _LT_AC_TAGVAR(compiler, $1)=$CC
  1.2347 +_LT_CC_BASENAME([$compiler])
  1.2348  _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.2349  
  1.2350  AC_LIBTOOL_CONFIG($1)
  1.2351 @@ -3886,7 +4306,7 @@
  1.2352    # Now quote all the things that may contain metacharacters while being
  1.2353    # careful not to overquote the AC_SUBSTed values.  We take copies of the
  1.2354    # variables and quote the copies for generation of the libtool script.
  1.2355 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
  1.2356 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  1.2357      SED SHELL STRIP \
  1.2358      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  1.2359      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  1.2360 @@ -3913,6 +4333,7 @@
  1.2361      _LT_AC_TAGVAR(predeps, $1) \
  1.2362      _LT_AC_TAGVAR(postdeps, $1) \
  1.2363      _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  1.2364 +    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  1.2365      _LT_AC_TAGVAR(archive_cmds, $1) \
  1.2366      _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  1.2367      _LT_AC_TAGVAR(postinstall_cmds, $1) \
  1.2368 @@ -3928,6 +4349,7 @@
  1.2369      _LT_AC_TAGVAR(module_cmds, $1) \
  1.2370      _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  1.2371      _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  1.2372 +    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  1.2373      _LT_AC_TAGVAR(exclude_expsyms, $1) \
  1.2374      _LT_AC_TAGVAR(include_expsyms, $1); do
  1.2375  
  1.2376 @@ -3974,7 +4396,7 @@
  1.2377  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  1.2378  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1.2379  #
  1.2380 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  1.2381 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  1.2382  # Free Software Foundation, Inc.
  1.2383  #
  1.2384  # This file is part of GNU Libtool:
  1.2385 @@ -3992,7 +4414,7 @@
  1.2386  #
  1.2387  # You should have received a copy of the GNU General Public License
  1.2388  # along with this program; if not, write to the Free Software
  1.2389 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  1.2390 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  1.2391  #
  1.2392  # As a special exception to the GNU General Public License, if you
  1.2393  # distribute this file as part of a program that contains a
  1.2394 @@ -4003,7 +4425,7 @@
  1.2395  SED=$lt_SED
  1.2396  
  1.2397  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  1.2398 -Xsed="$SED -e s/^X//"
  1.2399 +Xsed="$SED -e 1s/^X//"
  1.2400  
  1.2401  # The HP-UX ksh and POSIX shell print the target directory to stdout
  1.2402  # if CDPATH is set.
  1.2403 @@ -4055,6 +4477,9 @@
  1.2404  # A C compiler.
  1.2405  LTCC=$lt_LTCC
  1.2406  
  1.2407 +# LTCC compiler flags.
  1.2408 +LTCFLAGS=$lt_LTCFLAGS
  1.2409 +
  1.2410  # A language-specific compiler.
  1.2411  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  1.2412  
  1.2413 @@ -4086,7 +4511,7 @@
  1.2414  OBJDUMP="$OBJDUMP"
  1.2415  
  1.2416  # Used on cygwin: assembler.
  1.2417 -AS=$lt_AS
  1.2418 +AS="$AS"
  1.2419  
  1.2420  # The name of the directory that contains temporary libtool files.
  1.2421  objdir=$objdir
  1.2422 @@ -4120,7 +4545,7 @@
  1.2423  # Does compiler simultaneously support -c and -o options?
  1.2424  compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  1.2425  
  1.2426 -# Must we lock files when doing compilation ?
  1.2427 +# Must we lock files when doing compilation?
  1.2428  need_locks=$lt_need_locks
  1.2429  
  1.2430  # Do we need the lib prefix for modules?
  1.2431 @@ -4208,6 +4633,10 @@
  1.2432  # shared library.
  1.2433  postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  1.2434  
  1.2435 +# The directories searched by this compiler when creating a shared
  1.2436 +# library
  1.2437 +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  1.2438 +
  1.2439  # The library search path used internally by the compiler when linking
  1.2440  # a shared library.
  1.2441  compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  1.2442 @@ -4296,7 +4725,7 @@
  1.2443  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  1.2444  
  1.2445  # Fix the shell variable \$srcfile for the compiler.
  1.2446 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  1.2447 +fix_srcfile_path=$lt_fix_srcfile_path
  1.2448  
  1.2449  # Set to yes if exported symbols are required.
  1.2450  always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  1.2451 @@ -4379,6 +4808,7 @@
  1.2452  # ---------------------------------
  1.2453  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  1.2454  [AC_REQUIRE([AC_CANONICAL_HOST])
  1.2455 +AC_REQUIRE([LT_AC_PROG_SED])
  1.2456  AC_REQUIRE([AC_PROG_NM])
  1.2457  AC_REQUIRE([AC_OBJEXT])
  1.2458  # Check for command to grab the raw symbol name followed by C symbol from nm.
  1.2459 @@ -4415,7 +4845,7 @@
  1.2460    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.2461    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'"
  1.2462    ;;
  1.2463 -linux*)
  1.2464 +linux* | k*bsd*-gnu)
  1.2465    if test "$host_cpu" = ia64; then
  1.2466      symcode='[[ABCDGIRSTW]]'
  1.2467      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.2468 @@ -4428,9 +4858,18 @@
  1.2469  osf*)
  1.2470    symcode='[[BCDEGQRST]]'
  1.2471    ;;
  1.2472 -solaris* | sysv5*)
  1.2473 +solaris*)
  1.2474    symcode='[[BDRT]]'
  1.2475    ;;
  1.2476 +sco3.2v5*)
  1.2477 +  symcode='[[DT]]'
  1.2478 +  ;;
  1.2479 +sysv4.2uw2*)
  1.2480 +  symcode='[[DT]]'
  1.2481 +  ;;
  1.2482 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  1.2483 +  symcode='[[ABDT]]'
  1.2484 +  ;;
  1.2485  sysv4)
  1.2486    symcode='[[DFNSTU]]'
  1.2487    ;;
  1.2488 @@ -4547,7 +4986,7 @@
  1.2489      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  1.2490      cat conftest.$ac_ext >&5
  1.2491    fi
  1.2492 -  rm -f conftest* conftst*
  1.2493 +  rm -rf conftest* conftst*
  1.2494  
  1.2495    # Do not use the global_symbol_pipe unless it works.
  1.2496    if test "$pipe_works" = yes; then
  1.2497 @@ -4596,13 +5035,16 @@
  1.2498        # like `-m68040'.
  1.2499        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  1.2500        ;;
  1.2501 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.2502 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.2503        # PIC is the default for these OSes.
  1.2504        ;;
  1.2505 -    mingw* | os2* | pw32*)
  1.2506 +    mingw* | cygwin* | os2* | pw32*)
  1.2507        # This hack is so that the source file can tell whether it is being
  1.2508        # built for inclusion in a dll (and should export symbols for example).
  1.2509 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  1.2510 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  1.2511 +      # (--disable-auto-import) libraries
  1.2512 +      m4_if([$1], [GCJ], [],
  1.2513 +	[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.2514        ;;
  1.2515      darwin* | rhapsody*)
  1.2516        # PIC is the default on this platform
  1.2517 @@ -4613,6 +5055,10 @@
  1.2518        # DJGPP does not support shared libraries at all
  1.2519        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.2520        ;;
  1.2521 +    interix[[3-9]]*)
  1.2522 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.2523 +      # Instead, we relocate shared libraries at runtime.
  1.2524 +      ;;
  1.2525      sysv4*MP*)
  1.2526        if test -d /usr/nec; then
  1.2527  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  1.2528 @@ -4621,7 +5067,7 @@
  1.2529      hpux*)
  1.2530        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.2531        # not for PA HP-UX.
  1.2532 -      case "$host_cpu" in
  1.2533 +      case $host_cpu in
  1.2534        hppa*64*|ia64*)
  1.2535  	;;
  1.2536        *)
  1.2537 @@ -4635,7 +5081,7 @@
  1.2538      esac
  1.2539    else
  1.2540      case $host_os in
  1.2541 -      aix4* | aix5*)
  1.2542 +      aix[[4-9]]*)
  1.2543  	# All AIX code is PIC.
  1.2544  	if test "$host_cpu" = ia64; then
  1.2545  	  # AIX 5 now supports IA64 processor
  1.2546 @@ -4646,7 +5092,7 @@
  1.2547  	;;
  1.2548        chorus*)
  1.2549  	case $cc_basename in
  1.2550 -	cxch68)
  1.2551 +	cxch68*)
  1.2552  	  # Green Hills C++ Compiler
  1.2553  	  # _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"
  1.2554  	  ;;
  1.2555 @@ -4655,7 +5101,7 @@
  1.2556         darwin*)
  1.2557           # PIC is the default on this platform
  1.2558           # Common symbols not allowed in MH_DYLIB files
  1.2559 -         case "$cc_basename" in
  1.2560 +         case $cc_basename in
  1.2561             xlc*)
  1.2562             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  1.2563             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2564 @@ -4664,10 +5110,10 @@
  1.2565         ;;
  1.2566        dgux*)
  1.2567  	case $cc_basename in
  1.2568 -	  ec++)
  1.2569 +	  ec++*)
  1.2570  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2571  	    ;;
  1.2572 -	  ghcx)
  1.2573 +	  ghcx*)
  1.2574  	    # Green Hills C++ Compiler
  1.2575  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2576  	    ;;
  1.2577 @@ -4675,22 +5121,22 @@
  1.2578  	    ;;
  1.2579  	esac
  1.2580  	;;
  1.2581 -      freebsd* | kfreebsd*-gnu | dragonfly*)
  1.2582 +      freebsd* | dragonfly*)
  1.2583  	# FreeBSD uses GNU C++
  1.2584  	;;
  1.2585        hpux9* | hpux10* | hpux11*)
  1.2586  	case $cc_basename in
  1.2587 -	  CC)
  1.2588 +	  CC*)
  1.2589  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2590 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  1.2591 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.2592  	    if test "$host_cpu" != ia64; then
  1.2593  	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.2594  	    fi
  1.2595  	    ;;
  1.2596 -	  aCC)
  1.2597 +	  aCC*)
  1.2598  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2599 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  1.2600 -	    case "$host_cpu" in
  1.2601 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.2602 +	    case $host_cpu in
  1.2603  	    hppa*64*|ia64*)
  1.2604  	      # +Z the default
  1.2605  	      ;;
  1.2606 @@ -4703,9 +5149,13 @@
  1.2607  	    ;;
  1.2608  	esac
  1.2609  	;;
  1.2610 +      interix*)
  1.2611 +	# This is c89, which is MS Visual C++ (no shared libs)
  1.2612 +	# Anyone wants to do a port?
  1.2613 +	;;
  1.2614        irix5* | irix6* | nonstopux*)
  1.2615  	case $cc_basename in
  1.2616 -	  CC)
  1.2617 +	  CC*)
  1.2618  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2619  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.2620  	    # CC pic flag -KPIC is the default.
  1.2621 @@ -4714,9 +5164,9 @@
  1.2622  	    ;;
  1.2623  	esac
  1.2624  	;;
  1.2625 -      linux*)
  1.2626 +      linux* | k*bsd*-gnu)
  1.2627  	case $cc_basename in
  1.2628 -	  KCC)
  1.2629 +	  KCC*)
  1.2630  	    # KAI C++ Compiler
  1.2631  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.2632  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.2633 @@ -4727,13 +5177,13 @@
  1.2634  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2635  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2636  	    ;;
  1.2637 -	  pgCC)
  1.2638 +	  pgCC* | pgcpp*)
  1.2639  	    # Portland Group C++ compiler.
  1.2640  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2641  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.2642 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2643 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2644  	    ;;
  1.2645 -	  cxx)
  1.2646 +	  cxx*)
  1.2647  	    # Compaq C++
  1.2648  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.2649  	    # Linux and Compaq Tru64 Unix objects are PIC.
  1.2650 @@ -4741,6 +5191,14 @@
  1.2651  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.2652  	    ;;
  1.2653  	  *)
  1.2654 +	    case `$CC -V 2>&1 | sed 5q` in
  1.2655 +	    *Sun\ C*)
  1.2656 +	      # Sun C++ 5.9
  1.2657 +	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2658 +	      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2659 +	      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.2660 +	      ;;
  1.2661 +	    esac
  1.2662  	    ;;
  1.2663  	esac
  1.2664  	;;
  1.2665 @@ -4750,25 +5208,25 @@
  1.2666  	;;
  1.2667        mvs*)
  1.2668  	case $cc_basename in
  1.2669 -	  cxx)
  1.2670 +	  cxx*)
  1.2671  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  1.2672  	    ;;
  1.2673  	  *)
  1.2674  	    ;;
  1.2675  	esac
  1.2676  	;;
  1.2677 -      netbsd*)
  1.2678 +      netbsd* | netbsdelf*-gnu)
  1.2679  	;;
  1.2680        osf3* | osf4* | osf5*)
  1.2681  	case $cc_basename in
  1.2682 -	  KCC)
  1.2683 +	  KCC*)
  1.2684  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.2685  	    ;;
  1.2686 -	  RCC)
  1.2687 +	  RCC*)
  1.2688  	    # Rational C++ 2.4.1
  1.2689  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2690  	    ;;
  1.2691 -	  cxx)
  1.2692 +	  cxx*)
  1.2693  	    # Digital/Compaq C++
  1.2694  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2695  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.2696 @@ -4782,24 +5240,15 @@
  1.2697  	;;
  1.2698        psos*)
  1.2699  	;;
  1.2700 -      sco*)
  1.2701 -	case $cc_basename in
  1.2702 -	  CC)
  1.2703 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.2704 -	    ;;
  1.2705 -	  *)
  1.2706 -	    ;;
  1.2707 -	esac
  1.2708 -	;;
  1.2709        solaris*)
  1.2710  	case $cc_basename in
  1.2711 -	  CC)
  1.2712 +	  CC*)
  1.2713  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.2714  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2715  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2716  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.2717  	    ;;
  1.2718 -	  gcx)
  1.2719 +	  gcx*)
  1.2720  	    # Green Hills C++ Compiler
  1.2721  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.2722  	    ;;
  1.2723 @@ -4809,12 +5258,12 @@
  1.2724  	;;
  1.2725        sunos4*)
  1.2726  	case $cc_basename in
  1.2727 -	  CC)
  1.2728 +	  CC*)
  1.2729  	    # Sun C++ 4.x
  1.2730  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2731  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2732  	    ;;
  1.2733 -	  lcc)
  1.2734 +	  lcc*)
  1.2735  	    # Lucid
  1.2736  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2737  	    ;;
  1.2738 @@ -4824,7 +5273,7 @@
  1.2739  	;;
  1.2740        tandem*)
  1.2741  	case $cc_basename in
  1.2742 -	  NCC)
  1.2743 +	  NCC*)
  1.2744  	    # NonStop-UX NCC 3.20
  1.2745  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2746  	    ;;
  1.2747 @@ -4832,7 +5281,14 @@
  1.2748  	    ;;
  1.2749  	esac
  1.2750  	;;
  1.2751 -      unixware*)
  1.2752 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  1.2753 +	case $cc_basename in
  1.2754 +	  CC*)
  1.2755 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2756 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2757 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2758 +	    ;;
  1.2759 +	esac
  1.2760  	;;
  1.2761        vxworks*)
  1.2762  	;;
  1.2763 @@ -4863,14 +5319,17 @@
  1.2764        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  1.2765        ;;
  1.2766  
  1.2767 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.2768 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.2769        # PIC is the default for these OSes.
  1.2770        ;;
  1.2771  
  1.2772 -    mingw* | pw32* | os2*)
  1.2773 +    mingw* | cygwin* | pw32* | os2*)
  1.2774        # This hack is so that the source file can tell whether it is being
  1.2775        # built for inclusion in a dll (and should export symbols for example).
  1.2776 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  1.2777 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  1.2778 +      # (--disable-auto-import) libraries
  1.2779 +      m4_if([$1], [GCJ], [],
  1.2780 +	[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.2781        ;;
  1.2782  
  1.2783      darwin* | rhapsody*)
  1.2784 @@ -4879,6 +5338,11 @@
  1.2785        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.2786        ;;
  1.2787  
  1.2788 +    interix[[3-9]]*)
  1.2789 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.2790 +      # Instead, we relocate shared libraries at runtime.
  1.2791 +      ;;
  1.2792 +
  1.2793      msdosdjgpp*)
  1.2794        # Just because we use GCC doesn't mean we suddenly get shared libraries
  1.2795        # on systems that don't support them.
  1.2796 @@ -4895,7 +5359,7 @@
  1.2797      hpux*)
  1.2798        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.2799        # not for PA HP-UX.
  1.2800 -      case "$host_cpu" in
  1.2801 +      case $host_cpu in
  1.2802        hppa*64*|ia64*)
  1.2803  	# +Z the default
  1.2804  	;;
  1.2805 @@ -4924,7 +5388,7 @@
  1.2806        darwin*)
  1.2807          # PIC is the default on this platform
  1.2808          # Common symbols not allowed in MH_DYLIB files
  1.2809 -       case "$cc_basename" in
  1.2810 +       case $cc_basename in
  1.2811           xlc*)
  1.2812           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  1.2813           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2814 @@ -4932,17 +5396,18 @@
  1.2815         esac
  1.2816         ;;
  1.2817  
  1.2818 -    mingw* | pw32* | os2*)
  1.2819 +    mingw* | cygwin* | pw32* | os2*)
  1.2820        # This hack is so that the source file can tell whether it is being
  1.2821        # built for inclusion in a dll (and should export symbols for example).
  1.2822 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  1.2823 +      m4_if([$1], [GCJ], [],
  1.2824 +	[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.2825        ;;
  1.2826  
  1.2827      hpux9* | hpux10* | hpux11*)
  1.2828        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2829        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.2830        # not for PA HP-UX.
  1.2831 -      case "$host_cpu" in
  1.2832 +      case $host_cpu in
  1.2833        hppa*64*|ia64*)
  1.2834  	# +Z the default
  1.2835  	;;
  1.2836 @@ -4965,25 +5430,41 @@
  1.2837        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2838        ;;
  1.2839  
  1.2840 -    linux*)
  1.2841 +    linux* | k*bsd*-gnu)
  1.2842        case $cc_basename in
  1.2843        icc* | ecc*)
  1.2844  	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2845  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2846  	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2847          ;;
  1.2848 -      pgcc | pgf77 | pgf90)
  1.2849 +      pgcc* | pgf77* | pgf90* | pgf95*)
  1.2850          # Portland Group compilers (*not* the Pentium gcc compiler,
  1.2851  	# which looks to be a dead project)
  1.2852  	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2853  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.2854 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2855 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2856          ;;
  1.2857        ccc*)
  1.2858          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2859          # All Alpha code is PIC.
  1.2860          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.2861          ;;
  1.2862 +      *)
  1.2863 +        case `$CC -V 2>&1 | sed 5q` in
  1.2864 +	*Sun\ C*)
  1.2865 +	  # Sun C 5.9
  1.2866 +	  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2867 +	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2868 +	  _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2869 +	  ;;
  1.2870 +	*Sun\ F*)
  1.2871 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.2872 +	  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2873 +	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2874 +	  _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.2875 +	  ;;
  1.2876 +	esac
  1.2877 +	;;
  1.2878        esac
  1.2879        ;;
  1.2880  
  1.2881 @@ -4993,15 +5474,19 @@
  1.2882        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.2883        ;;
  1.2884  
  1.2885 -    sco3.2v5*)
  1.2886 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  1.2887 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  1.2888 +    rdos*)
  1.2889 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.2890        ;;
  1.2891  
  1.2892      solaris*)
  1.2893 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2894        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2895        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2896 +      case $cc_basename in
  1.2897 +      f77* | f90* | f95*)
  1.2898 +	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  1.2899 +      *)
  1.2900 +	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  1.2901 +      esac
  1.2902        ;;
  1.2903  
  1.2904      sunos4*)
  1.2905 @@ -5010,7 +5495,7 @@
  1.2906        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2907        ;;
  1.2908  
  1.2909 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1.2910 +    sysv4 | sysv4.2uw2* | sysv4.3*)
  1.2911        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2912        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2913        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2914 @@ -5023,6 +5508,12 @@
  1.2915        fi
  1.2916        ;;
  1.2917  
  1.2918 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  1.2919 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2920 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2921 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2922 +      ;;
  1.2923 +
  1.2924      unicos*)
  1.2925        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2926        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.2927 @@ -5046,7 +5537,7 @@
  1.2928  #
  1.2929  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  1.2930    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  1.2931 -    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  1.2932 +    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  1.2933      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  1.2934      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  1.2935       "" | " "*) ;;
  1.2936 @@ -5055,7 +5546,7 @@
  1.2937      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.2938       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  1.2939  fi
  1.2940 -case "$host_os" in
  1.2941 +case $host_os in
  1.2942    # For platforms which do not support PIC, -DPIC is meaningless:
  1.2943    *djgpp*)
  1.2944      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.2945 @@ -5064,6 +5555,16 @@
  1.2946      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  1.2947      ;;
  1.2948  esac
  1.2949 +
  1.2950 +#
  1.2951 +# Check to make sure the static flag actually works.
  1.2952 +#
  1.2953 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  1.2954 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  1.2955 +  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  1.2956 +  $lt_tmp_static_flag,
  1.2957 +  [],
  1.2958 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  1.2959  ])
  1.2960  
  1.2961  
  1.2962 @@ -5071,11 +5572,12 @@
  1.2963  # ------------------------------------
  1.2964  # See if the linker supports building shared libraries.
  1.2965  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  1.2966 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.2967 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1.2968 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.2969  ifelse([$1],[CXX],[
  1.2970    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.2971    case $host_os in
  1.2972 -  aix4* | aix5*)
  1.2973 +  aix[[4-9]]*)
  1.2974      # If we're using GNU nm, then we don't want the "-C" option.
  1.2975      # -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.2976      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  1.2977 @@ -5088,12 +5590,16 @@
  1.2978      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  1.2979    ;;
  1.2980    cygwin* | mingw*)
  1.2981 -    _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'
  1.2982 +    _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'
  1.2983 +  ;;
  1.2984 +  linux* | k*bsd*-gnu)
  1.2985 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  1.2986    ;;
  1.2987    *)
  1.2988      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.2989    ;;
  1.2990    esac
  1.2991 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.2992  ],[
  1.2993    runpath_var=
  1.2994    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  1.2995 @@ -5124,14 +5630,17 @@
  1.2996    # it will be wrapped by ` (' and `)$', so one must not match beginning or
  1.2997    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  1.2998    # as well as any symbol that contains `d'.
  1.2999 -  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  1.3000 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.3001    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  1.3002    # platforms (ab)use it in PIC code, but their linkers get confused if
  1.3003    # the symbol is explicitly referenced.  Since portable code cannot
  1.3004    # rely on this symbol name, it's probably fine to never include it in
  1.3005    # preloaded symbol tables.
  1.3006 +  # Exclude shared library initialization/finalization symbols.
  1.3007 +dnl Note also adjust exclude_expsyms for C++ above.
  1.3008    extract_expsyms_cmds=
  1.3009 -
  1.3010 +  # Just being paranoid about ensuring that cc_basename is set.
  1.3011 +  _LT_CC_BASENAME([$compiler])
  1.3012    case $host_os in
  1.3013    cygwin* | mingw* | pw32*)
  1.3014      # FIXME: the MSVC++ port hasn't been tested in a loooong time
  1.3015 @@ -5141,6 +5650,10 @@
  1.3016        with_gnu_ld=no
  1.3017      fi
  1.3018      ;;
  1.3019 +  interix*)
  1.3020 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
  1.3021 +    with_gnu_ld=yes
  1.3022 +    ;;
  1.3023    openbsd*)
  1.3024      with_gnu_ld=no
  1.3025      ;;
  1.3026 @@ -5151,9 +5664,30 @@
  1.3027      # If archive_cmds runs LD, not CC, wlarc should be empty
  1.3028      wlarc='${wl}'
  1.3029  
  1.3030 +    # Set some defaults for GNU ld with shared library support. These
  1.3031 +    # are reset later if shared libraries are not supported. Putting them
  1.3032 +    # here allows them to be overridden if necessary.
  1.3033 +    runpath_var=LD_RUN_PATH
  1.3034 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.3035 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3036 +    # ancient GNU ld didn't support --whole-archive et. al.
  1.3037 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  1.3038 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.3039 +      else
  1.3040 +  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.3041 +    fi
  1.3042 +    supports_anon_versioning=no
  1.3043 +    case `$LD -v 2>/dev/null` in
  1.3044 +      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.3045 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.3046 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.3047 +      *\ 2.11.*) ;; # other 2.11 versions
  1.3048 +      *) supports_anon_versioning=yes ;;
  1.3049 +    esac
  1.3050 +
  1.3051      # See if GNU ld supports shared libraries.
  1.3052      case $host_os in
  1.3053 -    aix3* | aix4* | aix5*)
  1.3054 +    aix[[3-9]]*)
  1.3055        # On AIX/PPC, the GNU linker is very broken
  1.3056        if test "$host_cpu" != ia64; then
  1.3057  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.3058 @@ -5201,10 +5735,10 @@
  1.3059        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.3060        _LT_AC_TAGVAR(always_export_symbols, $1)=no
  1.3061        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.3062 -      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  1.3063 +      _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'
  1.3064  
  1.3065        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  1.3066 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  1.3067 +        _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'
  1.3068  	# If the export-symbols file already is a .def file (1st line
  1.3069  	# is EXPORTS), use it as is; otherwise, prepend...
  1.3070  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.3071 @@ -5213,13 +5747,69 @@
  1.3072  	  echo EXPORTS > $output_objdir/$soname.def;
  1.3073  	  cat $export_symbols >> $output_objdir/$soname.def;
  1.3074  	fi~
  1.3075 -	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  1.3076 +	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.3077        else
  1.3078  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.3079        fi
  1.3080        ;;
  1.3081  
  1.3082 -    netbsd*)
  1.3083 +    interix[[3-9]]*)
  1.3084 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.3085 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3086 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3087 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3088 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  1.3089 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
  1.3090 +      # default) and relocated if they conflict, which is a slow very memory
  1.3091 +      # consuming and fragmenting process.  To avoid this, we pick a random,
  1.3092 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  1.3093 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  1.3094 +      _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'
  1.3095 +      _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'
  1.3096 +      ;;
  1.3097 +
  1.3098 +    gnu* | linux* | k*bsd*-gnu)
  1.3099 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.3100 +	tmp_addflag=
  1.3101 +	case $cc_basename,$host_cpu in
  1.3102 +	pgcc*)				# Portland Group C compiler
  1.3103 +	  _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'
  1.3104 +	  tmp_addflag=' $pic_flag'
  1.3105 +	  ;;
  1.3106 +	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  1.3107 +	  _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'
  1.3108 +	  tmp_addflag=' $pic_flag -Mnomain' ;;
  1.3109 +	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
  1.3110 +	  tmp_addflag=' -i_dynamic' ;;
  1.3111 +	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  1.3112 +	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  1.3113 +	ifc* | ifort*)			# Intel Fortran compiler
  1.3114 +	  tmp_addflag=' -nofor_main' ;;
  1.3115 +	esac
  1.3116 +	case `$CC -V 2>&1 | sed 5q` in
  1.3117 +	*Sun\ C*)			# Sun C 5.9
  1.3118 +	  _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'
  1.3119 +	  tmp_sharedflag='-G' ;;
  1.3120 +	*Sun\ F*)			# Sun Fortran 8.3
  1.3121 +	  tmp_sharedflag='-G' ;;
  1.3122 +	*)
  1.3123 +	  tmp_sharedflag='-shared' ;;
  1.3124 +	esac
  1.3125 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.3126 +
  1.3127 +	if test $supports_anon_versioning = yes; then
  1.3128 +	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  1.3129 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.3130 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
  1.3131 +	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.3132 +	fi
  1.3133 +	_LT_AC_TAGVAR(link_all_deplibs, $1)=no
  1.3134 +      else
  1.3135 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.3136 +      fi
  1.3137 +      ;;
  1.3138 +
  1.3139 +    netbsd* | netbsdelf*-gnu)
  1.3140        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.3141  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1.3142  	wlarc=
  1.3143 @@ -5229,7 +5819,7 @@
  1.3144        fi
  1.3145        ;;
  1.3146  
  1.3147 -    solaris* | sysv5*)
  1.3148 +    solaris*)
  1.3149        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  1.3150  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.3151  	cat <<EOF 1>&2
  1.3152 @@ -5250,6 +5840,33 @@
  1.3153        fi
  1.3154        ;;
  1.3155  
  1.3156 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  1.3157 +      case `$LD -v 2>&1` in
  1.3158 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  1.3159 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.3160 +	cat <<_LT_EOF 1>&2
  1.3161 +
  1.3162 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  1.3163 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
  1.3164 +*** is disabling shared libraries support.  We urge you to upgrade GNU
  1.3165 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  1.3166 +*** your PATH or compiler configuration so that the native linker is
  1.3167 +*** used, and then restart.
  1.3168 +
  1.3169 +_LT_EOF
  1.3170 +	;;
  1.3171 +	*)
  1.3172 +	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.3173 +	    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  1.3174 +	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  1.3175 +	    _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'
  1.3176 +	  else
  1.3177 +	    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.3178 +	  fi
  1.3179 +	;;
  1.3180 +      esac
  1.3181 +      ;;
  1.3182 +
  1.3183      sunos4*)
  1.3184        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.3185        wlarc=
  1.3186 @@ -5257,41 +5874,6 @@
  1.3187        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3188        ;;
  1.3189  
  1.3190 -  linux*)
  1.3191 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.3192 -      tmp_addflag=
  1.3193 -      case $CC,$host_cpu in
  1.3194 -      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
  1.3195 -        tmp_addflag=' -fpic' ;;
  1.3196 -      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
  1.3197 -        tmp_addflag=' -i_dynamic' ;;
  1.3198 -      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  1.3199 -        tmp_addflag=' -i_dynamic -nofor_main' ;;
  1.3200 -      ifc* | ifort*)			# Intel Fortran compiler
  1.3201 -      	tmp_addflag=' -nofor_main' ;;
  1.3202 -      esac
  1.3203 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.3204 -      supports_anon_versioning=no
  1.3205 -      case `$LD -v 2>/dev/null` in
  1.3206 -        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.3207 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.3208 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.3209 -        *\ 2.11.*) ;; # other 2.11 versions
  1.3210 -        *) supports_anon_versioning=yes ;;
  1.3211 -      esac
  1.3212 -      if test $supports_anon_versioning = yes; then
  1.3213 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  1.3214 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.3215 -$echo "local: *; };" >> $output_objdir/$libname.ver~
  1.3216 -        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.3217 -      else
  1.3218 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)=$_LT_AC_TAGVAR(archive_cmds, $1)
  1.3219 -      fi
  1.3220 -    else
  1.3221 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.3222 -    fi
  1.3223 -    ;;
  1.3224 -
  1.3225      *)
  1.3226        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.3227  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.3228 @@ -5302,16 +5884,11 @@
  1.3229        ;;
  1.3230      esac
  1.3231  
  1.3232 -    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  1.3233 -      runpath_var=LD_RUN_PATH
  1.3234 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.3235 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3236 -      # ancient GNU ld didn't support --whole-archive et. al.
  1.3237 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  1.3238 - 	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.3239 -      else
  1.3240 -  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.3241 -      fi
  1.3242 +    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  1.3243 +      runpath_var=
  1.3244 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3245 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  1.3246 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.3247      fi
  1.3248    else
  1.3249      # PORTME fill in a description of your system's linker (not GNU ld)
  1.3250 @@ -5323,14 +5900,14 @@
  1.3251        # Note: this linker hardcodes the directories in LIBPATH if there
  1.3252        # are no directories specified by -L.
  1.3253        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.3254 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
  1.3255 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  1.3256  	# Neither direct hardcoding nor static linking is supported with a
  1.3257  	# broken collect2.
  1.3258  	_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  1.3259        fi
  1.3260        ;;
  1.3261  
  1.3262 -    aix4* | aix5*)
  1.3263 +    aix[[4-9]]*)
  1.3264        if test "$host_cpu" = ia64; then
  1.3265  	# On IA64, the linker does run time linking by default, so we don't
  1.3266  	# have to do anything special.
  1.3267 @@ -5350,13 +5927,14 @@
  1.3268  	# Test if we are trying to use run time linking or normal
  1.3269  	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  1.3270  	# need to do runtime linking.
  1.3271 -	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  1.3272 +	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  1.3273  	  for ld_flag in $LDFLAGS; do
  1.3274    	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  1.3275    	    aix_use_runtimelinking=yes
  1.3276    	    break
  1.3277    	  fi
  1.3278  	  done
  1.3279 +	  ;;
  1.3280  	esac
  1.3281  
  1.3282  	exp_sym_flag='-bexport'
  1.3283 @@ -5383,7 +5961,7 @@
  1.3284    	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  1.3285  	  then
  1.3286    	  # We have reworked collect2
  1.3287 -  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3288 +  	  :
  1.3289  	  else
  1.3290    	  # We have old collect2
  1.3291    	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  1.3292 @@ -5394,6 +5972,7 @@
  1.3293    	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.3294    	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.3295  	  fi
  1.3296 +	  ;;
  1.3297  	esac
  1.3298  	shared_flag='-shared'
  1.3299  	if test "$aix_use_runtimelinking" = yes; then
  1.3300 @@ -5406,11 +5985,11 @@
  1.3301    	# chokes on -Wl,-G. The following line is correct:
  1.3302  	  shared_flag='-G'
  1.3303  	else
  1.3304 -  	if test "$aix_use_runtimelinking" = yes; then
  1.3305 +	  if test "$aix_use_runtimelinking" = yes; then
  1.3306  	    shared_flag='${wl}-G'
  1.3307  	  else
  1.3308  	    shared_flag='${wl}-bM:SRE'
  1.3309 -  	fi
  1.3310 +	  fi
  1.3311  	fi
  1.3312        fi
  1.3313  
  1.3314 @@ -5424,12 +6003,12 @@
  1.3315         # Determine the default libpath from the value encoded in an empty executable.
  1.3316         _LT_AC_SYS_LIBPATH_AIX
  1.3317         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.3318 -	_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"
  1.3319 +	_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"
  1.3320         else
  1.3321  	if test "$host_cpu" = ia64; then
  1.3322  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.3323  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.3324 -	  _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"
  1.3325 +	  _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"
  1.3326  	else
  1.3327  	 # Determine the default libpath from the value encoded in an empty executable.
  1.3328  	 _LT_AC_SYS_LIBPATH_AIX
  1.3329 @@ -5438,13 +6017,11 @@
  1.3330  	  # -berok will link without error, but may produce a broken library.
  1.3331  	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.3332  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.3333 -	  # -bexpall does not export symbols beginning with underscore (_)
  1.3334 -	  _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  1.3335  	  # Exported symbols can be pulled into shared objects from archives
  1.3336 -	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  1.3337 +	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.3338  	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.3339 -	  # This is similar to how AIX traditionally builds it's shared libraries.
  1.3340 -	  _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'
  1.3341 +	  # This is similar to how AIX traditionally builds its shared libraries.
  1.3342 +	  _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'
  1.3343  	fi
  1.3344        fi
  1.3345        ;;
  1.3346 @@ -5477,13 +6054,13 @@
  1.3347        # The linker will automatically build a .lib file if we build a DLL.
  1.3348        _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  1.3349        # FIXME: Should let the user specify the lib program.
  1.3350 -      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  1.3351 +      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.3352        _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  1.3353        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.3354        ;;
  1.3355  
  1.3356      darwin* | rhapsody*)
  1.3357 -      case "$host_os" in
  1.3358 +      case $host_os in
  1.3359          rhapsody* | darwin1.[[012]])
  1.3360           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  1.3361           ;;
  1.3362 @@ -5510,19 +6087,18 @@
  1.3363        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.3364      if test "$GCC" = yes ; then
  1.3365      	output_verbose_link_cmd='echo'
  1.3366 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.3367 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.3368 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.3369 -      _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}'
  1.3370 -      _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}'
  1.3371 +        _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}"
  1.3372 +        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1.3373 +        _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}"
  1.3374 +        _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}"
  1.3375      else
  1.3376 -      case "$cc_basename" in
  1.3377 +      case $cc_basename in
  1.3378          xlc*)
  1.3379           output_verbose_link_cmd='echo'
  1.3380 -         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  1.3381 +         _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'
  1.3382           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.3383 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.3384 -         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.3385 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.3386 +         _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}'
  1.3387            _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}'
  1.3388            ;;
  1.3389         *)
  1.3390 @@ -5562,7 +6138,7 @@
  1.3391        ;;
  1.3392  
  1.3393      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.3394 -    freebsd* | kfreebsd*-gnu | dragonfly*)
  1.3395 +    freebsd* | dragonfly*)
  1.3396        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.3397        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.3398        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3399 @@ -5585,47 +6161,62 @@
  1.3400        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3401        ;;
  1.3402  
  1.3403 -    hpux10* | hpux11*)
  1.3404 +    hpux10*)
  1.3405        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.3406 -	case "$host_cpu" in
  1.3407 -	hppa*64*|ia64*)
  1.3408 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.3409 +      else
  1.3410 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.3411 +      fi
  1.3412 +      if test "$with_gnu_ld" = no; then
  1.3413 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.3414 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.3415 +
  1.3416 +	_LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3417 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3418 +
  1.3419 +	# hardcode_minus_L: Not really in the search PATH,
  1.3420 +	# but as the default location of the library.
  1.3421 +	_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.3422 +      fi
  1.3423 +      ;;
  1.3424 +
  1.3425 +    hpux11*)
  1.3426 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.3427 +	case $host_cpu in
  1.3428 +	hppa*64*)
  1.3429  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3430  	  ;;
  1.3431 +	ia64*)
  1.3432 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.3433 +	  ;;
  1.3434  	*)
  1.3435  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.3436  	  ;;
  1.3437  	esac
  1.3438        else
  1.3439 -	case "$host_cpu" in
  1.3440 -	hppa*64*|ia64*)
  1.3441 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.3442 +	case $host_cpu in
  1.3443 +	hppa*64*)
  1.3444 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3445 +	  ;;
  1.3446 +	ia64*)
  1.3447 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.3448  	  ;;
  1.3449  	*)
  1.3450 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.3451 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.3452  	  ;;
  1.3453  	esac
  1.3454        fi
  1.3455        if test "$with_gnu_ld" = no; then
  1.3456 -	case "$host_cpu" in
  1.3457 -	hppa*64*)
  1.3458 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.3459 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.3460 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.3461 +
  1.3462 +	case $host_cpu in
  1.3463 +	hppa*64*|ia64*)
  1.3464  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.3465 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.3466  	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.3467  	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3468  	  ;;
  1.3469 -	ia64*)
  1.3470 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.3471 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.3472 -	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3473 -
  1.3474 -	  # hardcode_minus_L: Not really in the search PATH,
  1.3475 -	  # but as the default location of the library.
  1.3476 -	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.3477 -	  ;;
  1.3478  	*)
  1.3479 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.3480 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.3481  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3482  	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3483  
  1.3484 @@ -5649,7 +6240,7 @@
  1.3485        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.3486        ;;
  1.3487  
  1.3488 -    netbsd*)
  1.3489 +    netbsd* | netbsdelf*-gnu)
  1.3490        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.3491  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  1.3492        else
  1.3493 @@ -5669,24 +6260,28 @@
  1.3494        ;;
  1.3495  
  1.3496      openbsd*)
  1.3497 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3498 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3499 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.3500 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.3501 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  1.3502 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3503 -	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3504 +      if test -f /usr/libexec/ld.so; then
  1.3505 +	_LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3506 +	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3507 +	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.3508 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.3509 +	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  1.3510 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3511 +	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3512 +	else
  1.3513 +	  case $host_os in
  1.3514 +	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  1.3515 +	     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.3516 +	     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.3517 +	     ;;
  1.3518 +	   *)
  1.3519 +	     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.3520 +	     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3521 +	     ;;
  1.3522 +	  esac
  1.3523 +        fi
  1.3524        else
  1.3525 -       case $host_os in
  1.3526 -	 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  1.3527 -	   _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.3528 -	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.3529 -	   ;;
  1.3530 -	 *)
  1.3531 -	   _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.3532 -	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3533 -	   ;;
  1.3534 -       esac
  1.3535 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.3536        fi
  1.3537        ;;
  1.3538  
  1.3539 @@ -5719,7 +6314,7 @@
  1.3540  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.3541  	_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'
  1.3542  	_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~
  1.3543 -	$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'
  1.3544 +	$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'
  1.3545  
  1.3546  	# Both c and cxx compiler support -rpath directly
  1.3547  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.3548 @@ -5727,21 +6322,15 @@
  1.3549        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.3550        ;;
  1.3551  
  1.3552 -    sco3.2v5*)
  1.3553 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.3554 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3555 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.3556 -      runpath_var=LD_RUN_PATH
  1.3557 -      hardcode_runpath_var=yes
  1.3558 -      ;;
  1.3559 -
  1.3560      solaris*)
  1.3561        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  1.3562        if test "$GCC" = yes; then
  1.3563 +	wlarc='${wl}'
  1.3564  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3565  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.3566  	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  1.3567        else
  1.3568 +	wlarc=''
  1.3569  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.3570  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.3571    	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  1.3572 @@ -5750,8 +6339,17 @@
  1.3573        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3574        case $host_os in
  1.3575        solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.3576 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  1.3577 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
  1.3578 +      *)
  1.3579 +	# The compiler driver will combine and reorder linker options,
  1.3580 +	# but understands `-z linker_flag'.  GCC discards it without `$wl',
  1.3581 +	# but is careful enough not to reorder.
  1.3582 + 	# Supported since Solaris 2.6 (maybe 2.5.1?)
  1.3583 +	if test "$GCC" = yes; then
  1.3584 +	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  1.3585 +	else
  1.3586 +	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  1.3587 +	fi
  1.3588 +	;;
  1.3589        esac
  1.3590        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.3591        ;;
  1.3592 @@ -5808,36 +6406,45 @@
  1.3593        fi
  1.3594        ;;
  1.3595  
  1.3596 -    sysv4.2uw2*)
  1.3597 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  1.3598 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3599 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  1.3600 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3601 -      hardcode_runpath_var=yes
  1.3602 -      runpath_var=LD_RUN_PATH
  1.3603 -      ;;
  1.3604 -
  1.3605 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
  1.3606 -      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  1.3607 -      if test "$GCC" = yes; then
  1.3608 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3609 -      else
  1.3610 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3611 -      fi
  1.3612 -      runpath_var='LD_RUN_PATH'
  1.3613 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3614 -      ;;
  1.3615 -
  1.3616 -    sysv5*)
  1.3617 -      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  1.3618 -      # $CC -shared without GNU ld will not create a library from C++
  1.3619 -      # object files and a static libstdc++, better avoid it by now
  1.3620 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.3621 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.3622 -  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  1.3623 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3624 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  1.3625 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.3626 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3627        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3628        runpath_var='LD_RUN_PATH'
  1.3629 +
  1.3630 +      if test "$GCC" = yes; then
  1.3631 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3632 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3633 +      else
  1.3634 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3635 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3636 +      fi
  1.3637 +      ;;
  1.3638 +
  1.3639 +    sysv5* | sco3.2v5* | sco5v6*)
  1.3640 +      # Note: We can NOT use -z defs as we might desire, because we do not
  1.3641 +      # link with -lc, and that would cause any symbols used from libc to
  1.3642 +      # always be unresolved, which means just about no library would
  1.3643 +      # ever link correctly.  If we're not using GNU ld we use -z text
  1.3644 +      # though, which does catch some bad symbols but isn't as heavy-handed
  1.3645 +      # as -z defs.
  1.3646 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.3647 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  1.3648 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3649 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3650 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  1.3651 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.3652 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.3653 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.3654 +      runpath_var='LD_RUN_PATH'
  1.3655 +
  1.3656 +      if test "$GCC" = yes; then
  1.3657 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3658 +	_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'
  1.3659 +      else
  1.3660 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3661 +	_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'
  1.3662 +      fi
  1.3663        ;;
  1.3664  
  1.3665      uts4*)
  1.3666 @@ -5855,11 +6462,6 @@
  1.3667  AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  1.3668  test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  1.3669  
  1.3670 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1.3671 -if test "$GCC" = yes; then
  1.3672 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1.3673 -fi
  1.3674 -
  1.3675  #
  1.3676  # Do we need to explicitly link libc?
  1.3677  #
  1.3678 @@ -5879,7 +6481,7 @@
  1.3679        # to ld, don't add -lc before -lgcc.
  1.3680        AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  1.3681        $rm conftest*
  1.3682 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.3683 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.3684  
  1.3685        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.3686          soname=conftest
  1.3687 @@ -5887,6 +6489,7 @@
  1.3688          libobjs=conftest.$ac_objext
  1.3689          deplibs=
  1.3690          wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  1.3691 +	pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  1.3692          compiler_flags=-v
  1.3693          linker_flags=-v
  1.3694          verstring=
  1.3695 @@ -5981,6 +6584,30 @@
  1.3696  [AC_CHECK_TOOL(RC, windres, no)
  1.3697  ])
  1.3698  
  1.3699 +
  1.3700 +# Cheap backport of AS_EXECUTABLE_P and required macros
  1.3701 +# from Autoconf 2.59; we should not use $as_executable_p directly.
  1.3702 +
  1.3703 +# _AS_TEST_PREPARE
  1.3704 +# ----------------
  1.3705 +m4_ifndef([_AS_TEST_PREPARE],
  1.3706 +[m4_defun([_AS_TEST_PREPARE],
  1.3707 +[if test -x / >/dev/null 2>&1; then
  1.3708 +  as_executable_p='test -x'
  1.3709 +else
  1.3710 +  as_executable_p='test -f'
  1.3711 +fi
  1.3712 +])])# _AS_TEST_PREPARE
  1.3713 +
  1.3714 +# AS_EXECUTABLE_P
  1.3715 +# ---------------
  1.3716 +# Check whether a file is executable.
  1.3717 +m4_ifndef([AS_EXECUTABLE_P],
  1.3718 +[m4_defun([AS_EXECUTABLE_P],
  1.3719 +[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  1.3720 +$as_executable_p $1[]dnl
  1.3721 +])])# AS_EXECUTABLE_P
  1.3722 +
  1.3723  # NOTE: This macro has been submitted for inclusion into   #
  1.3724  #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
  1.3725  #  a released version of Autoconf we should remove this    #
  1.3726 @@ -6001,12 +6628,13 @@
  1.3727    test -z "$as_dir" && as_dir=.
  1.3728    for lt_ac_prog in sed gsed; do
  1.3729      for ac_exec_ext in '' $ac_executable_extensions; do
  1.3730 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  1.3731 +      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  1.3732          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  1.3733        fi
  1.3734      done
  1.3735    done
  1.3736  done
  1.3737 +IFS=$as_save_IFS
  1.3738  lt_ac_max=0
  1.3739  lt_ac_count=0
  1.3740  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  1.3741 @@ -6039,10 +6667,11 @@
  1.3742  done
  1.3743  ])
  1.3744  SED=$lt_cv_path_SED
  1.3745 +AC_SUBST([SED])
  1.3746  AC_MSG_RESULT([$SED])
  1.3747  ])
  1.3748  
  1.3749 -# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
  1.3750 +# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
  1.3751  #
  1.3752  # This file is free software; the Free Software Foundation
  1.3753  # gives unlimited permission to copy and/or distribute it,
  1.3754 @@ -6052,14 +6681,31 @@
  1.3755  # ----------------------------
  1.3756  # Automake X.Y traces this macro to ensure aclocal.m4 has been
  1.3757  # generated from the m4 files accompanying Automake X.Y.
  1.3758 -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  1.3759 +# (This private macro should not be called outside this file.)
  1.3760 +AC_DEFUN([AM_AUTOMAKE_VERSION],
  1.3761 +[am__api_version='1.10'
  1.3762 +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  1.3763 +dnl require some minimum version.  Point them to the right macro.
  1.3764 +m4_if([$1], [1.10.1], [],
  1.3765 +      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  1.3766 +])
  1.3767 +
  1.3768 +# _AM_AUTOCONF_VERSION(VERSION)
  1.3769 +# -----------------------------
  1.3770 +# aclocal traces this macro to find the Autoconf version.
  1.3771 +# This is a private macro too.  Using m4_define simplifies
  1.3772 +# the logic in aclocal, which can simply ignore this definition.
  1.3773 +m4_define([_AM_AUTOCONF_VERSION], [])
  1.3774  
  1.3775  # AM_SET_CURRENT_AUTOMAKE_VERSION
  1.3776  # -------------------------------
  1.3777 -# Call AM_AUTOMAKE_VERSION so it can be traced.
  1.3778 +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  1.3779  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  1.3780  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  1.3781 -	 [AM_AUTOMAKE_VERSION([1.9.5])])
  1.3782 +[AM_AUTOMAKE_VERSION([1.10.1])dnl
  1.3783 +m4_ifndef([AC_AUTOCONF_VERSION],
  1.3784 +  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  1.3785 +_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  1.3786  
  1.3787  # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
  1.3788  
  1.3789 @@ -6116,14 +6762,14 @@
  1.3790  
  1.3791  # AM_CONDITIONAL                                            -*- Autoconf -*-
  1.3792  
  1.3793 -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  1.3794 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  1.3795  # Free Software Foundation, Inc.
  1.3796  #
  1.3797  # This file is free software; the Free Software Foundation
  1.3798  # gives unlimited permission to copy and/or distribute it,
  1.3799  # with or without modifications, as long as this notice is preserved.
  1.3800  
  1.3801 -# serial 7
  1.3802 +# serial 8
  1.3803  
  1.3804  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  1.3805  # -------------------------------------
  1.3806 @@ -6132,8 +6778,10 @@
  1.3807  [AC_PREREQ(2.52)dnl
  1.3808   ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
  1.3809  	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  1.3810 -AC_SUBST([$1_TRUE])
  1.3811 -AC_SUBST([$1_FALSE])
  1.3812 +AC_SUBST([$1_TRUE])dnl
  1.3813 +AC_SUBST([$1_FALSE])dnl
  1.3814 +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  1.3815 +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  1.3816  if $2; then
  1.3817    $1_TRUE=
  1.3818    $1_FALSE='#'
  1.3819 @@ -6147,15 +6795,14 @@
  1.3820  Usually this means the macro was only invoked conditionally.]])
  1.3821  fi])])
  1.3822  
  1.3823 -
  1.3824 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  1.3825 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  1.3826  # Free Software Foundation, Inc.
  1.3827  #
  1.3828  # This file is free software; the Free Software Foundation
  1.3829  # gives unlimited permission to copy and/or distribute it,
  1.3830  # with or without modifications, as long as this notice is preserved.
  1.3831  
  1.3832 -# serial 8
  1.3833 +# serial 9
  1.3834  
  1.3835  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  1.3836  # written in clear, in which case automake, when reading aclocal.m4,
  1.3837 @@ -6183,6 +6830,7 @@
  1.3838  ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
  1.3839         [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
  1.3840         [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  1.3841 +       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
  1.3842         [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
  1.3843                     [depcc="$$1"   am_compiler_list=])
  1.3844  
  1.3845 @@ -6248,6 +6896,7 @@
  1.3846         depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  1.3847         $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  1.3848           >/dev/null 2>conftest.err &&
  1.3849 +       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  1.3850         grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  1.3851         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  1.3852         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  1.3853 @@ -6300,7 +6949,8 @@
  1.3854    AMDEPBACKSLASH='\'
  1.3855  fi
  1.3856  AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  1.3857 -AC_SUBST([AMDEPBACKSLASH])
  1.3858 +AC_SUBST([AMDEPBACKSLASH])dnl
  1.3859 +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  1.3860  ])
  1.3861  
  1.3862  # Generate code to set up dependency tracking.              -*- Autoconf -*-
  1.3863 @@ -6325,8 +6975,9 @@
  1.3864    # some people rename them; so instead we look at the file content.
  1.3865    # Grep'ing the first line is not enough: some people post-process
  1.3866    # each Makefile.in and add a new line on top of each file to say so.
  1.3867 -  # So let's grep whole file.
  1.3868 -  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  1.3869 +  # Grep'ing the whole file is not good either: AIX grep has a line
  1.3870 +  # limit of 2048, but all sed's we know have understand at least 4000.
  1.3871 +  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  1.3872      dirpart=`AS_DIRNAME("$mf")`
  1.3873    else
  1.3874      continue
  1.3875 @@ -6373,14 +7024,14 @@
  1.3876  
  1.3877  # Do all the work for Automake.                             -*- Autoconf -*-
  1.3878  
  1.3879 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  1.3880 -# Free Software Foundation, Inc.
  1.3881 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  1.3882 +# 2005, 2006, 2008 Free Software Foundation, Inc.
  1.3883  #
  1.3884  # This file is free software; the Free Software Foundation
  1.3885  # gives unlimited permission to copy and/or distribute it,
  1.3886  # with or without modifications, as long as this notice is preserved.
  1.3887  
  1.3888 -# serial 12
  1.3889 +# serial 13
  1.3890  
  1.3891  # This macro actually does too much.  Some checks are only needed if
  1.3892  # your package does certain things.  But this isn't really a big deal.
  1.3893 @@ -6397,16 +7048,20 @@
  1.3894  # arguments mandatory, and then we can depend on a new Autoconf
  1.3895  # release and drop the old call support.
  1.3896  AC_DEFUN([AM_INIT_AUTOMAKE],
  1.3897 -[AC_PREREQ([2.58])dnl
  1.3898 +[AC_PREREQ([2.60])dnl
  1.3899  dnl Autoconf wants to disallow AM_ names.  We explicitly allow
  1.3900  dnl the ones we care about.
  1.3901  m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  1.3902  AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  1.3903  AC_REQUIRE([AC_PROG_INSTALL])dnl
  1.3904 -# test to see if srcdir already configured
  1.3905 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1.3906 -   test -f $srcdir/config.status; then
  1.3907 -  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  1.3908 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1.3909 +  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1.3910 +  # is not polluted with repeated "-I."
  1.3911 +  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  1.3912 +  # test to see if srcdir already configured
  1.3913 +  if test -f $srcdir/config.status; then
  1.3914 +    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  1.3915 +  fi
  1.3916  fi
  1.3917  
  1.3918  # test whether we have cygpath
  1.3919 @@ -6426,6 +7081,9 @@
  1.3920   AC_SUBST([PACKAGE], [$1])dnl
  1.3921   AC_SUBST([VERSION], [$2])],
  1.3922  [_AM_SET_OPTIONS([$1])dnl
  1.3923 +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  1.3924 +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  1.3925 +  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  1.3926   AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  1.3927   AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  1.3928  
  1.3929 @@ -6461,6 +7119,10 @@
  1.3930                    [_AM_DEPENDENCIES(CXX)],
  1.3931                    [define([AC_PROG_CXX],
  1.3932                            defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  1.3933 +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  1.3934 +                  [_AM_DEPENDENCIES(OBJC)],
  1.3935 +                  [define([AC_PROG_OBJC],
  1.3936 +                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  1.3937  ])
  1.3938  ])
  1.3939  
  1.3940 @@ -6474,16 +7136,17 @@
  1.3941  # our stamp files there.
  1.3942  AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  1.3943  [# Compute $1's index in $config_headers.
  1.3944 +_am_arg=$1
  1.3945  _am_stamp_count=1
  1.3946  for _am_header in $config_headers :; do
  1.3947    case $_am_header in
  1.3948 -    $1 | $1:* )
  1.3949 +    $_am_arg | $_am_arg:* )
  1.3950        break ;;
  1.3951      * )
  1.3952        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  1.3953    esac
  1.3954  done
  1.3955 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  1.3956 +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  1.3957  
  1.3958  # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
  1.3959  #
  1.3960 @@ -6496,7 +7159,7 @@
  1.3961  # Define $install_sh.
  1.3962  AC_DEFUN([AM_PROG_INSTALL_SH],
  1.3963  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1.3964 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1.3965 +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  1.3966  AC_SUBST(install_sh)])
  1.3967  
  1.3968  # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
  1.3969 @@ -6574,14 +7237,14 @@
  1.3970  
  1.3971  # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
  1.3972  
  1.3973 -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  1.3974 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  1.3975  # Free Software Foundation, Inc.
  1.3976  #
  1.3977  # This file is free software; the Free Software Foundation
  1.3978  # gives unlimited permission to copy and/or distribute it,
  1.3979  # with or without modifications, as long as this notice is preserved.
  1.3980  
  1.3981 -# serial 4
  1.3982 +# serial 5
  1.3983  
  1.3984  # AM_MISSING_PROG(NAME, PROGRAM)
  1.3985  # ------------------------------
  1.3986 @@ -6597,6 +7260,7 @@
  1.3987  # If it does, set am_missing_run to use it, otherwise, to nothing.
  1.3988  AC_DEFUN([AM_MISSING_HAS_RUN],
  1.3989  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1.3990 +AC_REQUIRE_AUX_FILE([missing])dnl
  1.3991  test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1.3992  # Use eval to expand $SHELL
  1.3993  if eval "$MISSING --run true"; then
  1.3994 @@ -6607,7 +7271,7 @@
  1.3995  fi
  1.3996  ])
  1.3997  
  1.3998 -# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
  1.3999 +# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
  1.4000  #
  1.4001  # This file is free software; the Free Software Foundation
  1.4002  # gives unlimited permission to copy and/or distribute it,
  1.4003 @@ -6615,60 +7279,23 @@
  1.4004  
  1.4005  # AM_PROG_MKDIR_P
  1.4006  # ---------------
  1.4007 -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  1.4008 -#
  1.4009 -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  1.4010 -# created by `make install' are always world readable, even if the
  1.4011 -# installer happens to have an overly restrictive umask (e.g. 077).
  1.4012 -# This was a mistake.  There are at least two reasons why we must not
  1.4013 -# use `-m 0755':
  1.4014 -#   - it causes special bits like SGID to be ignored,
  1.4015 -#   - it may be too restrictive (some setups expect 775 directories).
  1.4016 -#
  1.4017 -# Do not use -m 0755 and let people choose whatever they expect by
  1.4018 -# setting umask.
  1.4019 -#
  1.4020 -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  1.4021 -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  1.4022 -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  1.4023 -# concurrently, both version can detect that a/ is missing, but only
  1.4024 -# one can create it and the other will error out.  Consequently we
  1.4025 -# restrict ourselves to GNU make (using the --version option ensures
  1.4026 -# this.)
  1.4027 +# Check for `mkdir -p'.
  1.4028  AC_DEFUN([AM_PROG_MKDIR_P],
  1.4029 -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1.4030 -  # We used to keeping the `.' as first argument, in order to
  1.4031 -  # allow $(mkdir_p) to be used without argument.  As in
  1.4032 -  #   $(mkdir_p) $(somedir)
  1.4033 -  # where $(somedir) is conditionally defined.  However this is wrong
  1.4034 -  # for two reasons:
  1.4035 -  #  1. if the package is installed by a user who cannot write `.'
  1.4036 -  #     make install will fail,
  1.4037 -  #  2. the above comment should most certainly read
  1.4038 -  #     $(mkdir_p) $(DESTDIR)$(somedir)
  1.4039 -  #     so it does not work when $(somedir) is undefined and
  1.4040 -  #     $(DESTDIR) is not.
  1.4041 -  #  To support the latter case, we have to write
  1.4042 -  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1.4043 -  #  so the `.' trick is pointless.
  1.4044 -  mkdir_p='mkdir -p --'
  1.4045 -else
  1.4046 -  # On NextStep and OpenStep, the `mkdir' command does not
  1.4047 -  # recognize any option.  It will interpret all options as
  1.4048 -  # directories to create, and then abort because `.' already
  1.4049 -  # exists.
  1.4050 -  for d in ./-p ./--version;
  1.4051 -  do
  1.4052 -    test -d $d && rmdir $d
  1.4053 -  done
  1.4054 -  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1.4055 -  if test -f "$ac_aux_dir/mkinstalldirs"; then
  1.4056 -    mkdir_p='$(mkinstalldirs)'
  1.4057 -  else
  1.4058 -    mkdir_p='$(install_sh) -d'
  1.4059 -  fi
  1.4060 -fi
  1.4061 -AC_SUBST([mkdir_p])])
  1.4062 +[AC_PREREQ([2.60])dnl
  1.4063 +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  1.4064 +dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
  1.4065 +dnl while keeping a definition of mkdir_p for backward compatibility.
  1.4066 +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  1.4067 +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  1.4068 +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  1.4069 +dnl adjustment using top_builddir (which is defined more often than
  1.4070 +dnl MKDIR_P).
  1.4071 +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  1.4072 +case $mkdir_p in
  1.4073 +  [[\\/$]]* | ?:[[\\/]]*) ;;
  1.4074 +  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1.4075 +esac
  1.4076 +])
  1.4077  
  1.4078  # Helper functions for option handling.                     -*- Autoconf -*-
  1.4079  
  1.4080 @@ -6780,9 +7407,21 @@
  1.4081  if test "$cross_compiling" != no; then
  1.4082    AC_CHECK_TOOL([STRIP], [strip], :)
  1.4083  fi
  1.4084 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1.4085 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1.4086  AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1.4087  
  1.4088 +# Copyright (C) 2006  Free Software Foundation, Inc.
  1.4089 +#
  1.4090 +# This file is free software; the Free Software Foundation
  1.4091 +# gives unlimited permission to copy and/or distribute it,
  1.4092 +# with or without modifications, as long as this notice is preserved.
  1.4093 +
  1.4094 +# _AM_SUBST_NOTMAKE(VARIABLE)
  1.4095 +# ---------------------------
  1.4096 +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1.4097 +# This macro is traced by Automake.
  1.4098 +AC_DEFUN([_AM_SUBST_NOTMAKE])
  1.4099 +
  1.4100  # Check how to create a tarball.                            -*- Autoconf -*-
  1.4101  
  1.4102  # Copyright (C) 2004, 2005  Free Software Foundation, Inc.
  1.4103 @@ -6888,6 +7527,7 @@
  1.4104  m4_include([m4/inttypes-pri.m4])
  1.4105  m4_include([m4/inttypes.m4])
  1.4106  m4_include([m4/inttypes_h.m4])
  1.4107 +m4_include([m4/isc-posix.m4])
  1.4108  m4_include([m4/lcmessage.m4])
  1.4109  m4_include([m4/lib-ld.m4])
  1.4110  m4_include([m4/lib-link.m4])
     2.1 --- a/config.guess	Sat May 10 07:45:39 2008 -0500
     2.2 +++ b/config.guess	Sat May 10 07:48:26 2008 -0500
     2.3 @@ -1,9 +1,10 @@
     2.4  #! /bin/sh
     2.5  # Attempt to guess a canonical system name.
     2.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     2.7 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     2.8 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     2.9 +#   Free Software Foundation, Inc.
    2.10  
    2.11 -timestamp='2005-02-10'
    2.12 +timestamp='2008-01-23'
    2.13  
    2.14  # This file is free software; you can redistribute it and/or modify it
    2.15  # under the terms of the GNU General Public License as published by
    2.16 @@ -17,13 +18,15 @@
    2.17  #
    2.18  # You should have received a copy of the GNU General Public License
    2.19  # along with this program; if not, write to the Free Software
    2.20 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    2.21 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    2.22 +# 02110-1301, USA.
    2.23  #
    2.24  # As a special exception to the GNU General Public License, if you
    2.25  # distribute this file as part of a program that contains a
    2.26  # configuration script generated by Autoconf, you may include it under
    2.27  # the same distribution terms that you use for the rest of that program.
    2.28  
    2.29 +
    2.30  # Originally written by Per Bothner <per@bothner.com>.
    2.31  # Please send patches to <config-patches@gnu.org>.  Submit a context
    2.32  # diff and a properly formatted ChangeLog entry.
    2.33 @@ -53,8 +56,8 @@
    2.34  GNU config.guess ($timestamp)
    2.35  
    2.36  Originally written by Per Bothner.
    2.37 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    2.38 -Free Software Foundation, Inc.
    2.39 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    2.40 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    2.41  
    2.42  This is free software; see the source for copying conditions.  There is NO
    2.43  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    2.44 @@ -66,11 +69,11 @@
    2.45  while test $# -gt 0 ; do
    2.46    case $1 in
    2.47      --time-stamp | --time* | -t )
    2.48 -       echo "$timestamp" ; exit 0 ;;
    2.49 +       echo "$timestamp" ; exit ;;
    2.50      --version | -v )
    2.51 -       echo "$version" ; exit 0 ;;
    2.52 +       echo "$version" ; exit ;;
    2.53      --help | --h* | -h )
    2.54 -       echo "$usage"; exit 0 ;;
    2.55 +       echo "$usage"; exit ;;
    2.56      -- )     # Stop option processing
    2.57         shift; break ;;
    2.58      - )	# Use stdin as input.
    2.59 @@ -104,7 +107,7 @@
    2.60  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
    2.61  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
    2.62  : ${TMPDIR=/tmp} ;
    2.63 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    2.64 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    2.65   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    2.66   { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
    2.67   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
    2.68 @@ -123,7 +126,7 @@
    2.69  	;;
    2.70   ,,*)   CC_FOR_BUILD=$CC ;;
    2.71   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    2.72 -esac ;'
    2.73 +esac ; set_cc_for_build= ;'
    2.74  
    2.75  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    2.76  # (ghazi@noc.rutgers.edu 1994-08-24)
    2.77 @@ -136,16 +139,6 @@
    2.78  UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
    2.79  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    2.80  
    2.81 -case "${UNAME_MACHINE}" in
    2.82 -    i?86)
    2.83 -	test -z "$VENDOR" && VENDOR=pc
    2.84 -	;;
    2.85 -    *)
    2.86 -	test -z "$VENDOR" && VENDOR=unknown
    2.87 -	;;
    2.88 -esac
    2.89 -test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    2.90 -
    2.91  # Note: order is significant - the case branches are not exclusive.
    2.92  
    2.93  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    2.94 @@ -168,6 +161,7 @@
    2.95  	    arm*) machine=arm-unknown ;;
    2.96  	    sh3el) machine=shl-unknown ;;
    2.97  	    sh3eb) machine=sh-unknown ;;
    2.98 +	    sh5el) machine=sh5le-unknown ;;
    2.99  	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
   2.100  	esac
   2.101  	# The Operating System including object format, if it has switched
   2.102 @@ -206,55 +200,23 @@
   2.103  	# contains redundant information, the shorter form:
   2.104  	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
   2.105  	echo "${machine}-${os}${release}"
   2.106 -	exit 0 ;;
   2.107 -    amd64:OpenBSD:*:*)
   2.108 -	echo x86_64-unknown-openbsd${UNAME_RELEASE}
   2.109 -	exit 0 ;;
   2.110 -    amiga:OpenBSD:*:*)
   2.111 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   2.112 -	exit 0 ;;
   2.113 -    cats:OpenBSD:*:*)
   2.114 -	echo arm-unknown-openbsd${UNAME_RELEASE}
   2.115 -	exit 0 ;;
   2.116 -    hp300:OpenBSD:*:*)
   2.117 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   2.118 -	exit 0 ;;
   2.119 -    luna88k:OpenBSD:*:*)
   2.120 -    	echo m88k-unknown-openbsd${UNAME_RELEASE}
   2.121 -	exit 0 ;;
   2.122 -    mac68k:OpenBSD:*:*)
   2.123 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   2.124 -	exit 0 ;;
   2.125 -    macppc:OpenBSD:*:*)
   2.126 -	echo powerpc-unknown-openbsd${UNAME_RELEASE}
   2.127 -	exit 0 ;;
   2.128 -    mvme68k:OpenBSD:*:*)
   2.129 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   2.130 -	exit 0 ;;
   2.131 -    mvme88k:OpenBSD:*:*)
   2.132 -	echo m88k-unknown-openbsd${UNAME_RELEASE}
   2.133 -	exit 0 ;;
   2.134 -    mvmeppc:OpenBSD:*:*)
   2.135 -	echo powerpc-unknown-openbsd${UNAME_RELEASE}
   2.136 -	exit 0 ;;
   2.137 -    sgi:OpenBSD:*:*)
   2.138 -	echo mips64-unknown-openbsd${UNAME_RELEASE}
   2.139 -	exit 0 ;;
   2.140 -    sun3:OpenBSD:*:*)
   2.141 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   2.142 -	exit 0 ;;
   2.143 +	exit ;;
   2.144      *:OpenBSD:*:*)
   2.145 -	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
   2.146 -	exit 0 ;;
   2.147 +	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
   2.148 +	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
   2.149 +	exit ;;
   2.150      *:ekkoBSD:*:*)
   2.151  	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
   2.152 -	exit 0 ;;
   2.153 +	exit ;;
   2.154 +    *:SolidBSD:*:*)
   2.155 +	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
   2.156 +	exit ;;
   2.157      macppc:MirBSD:*:*)
   2.158 -	echo powerppc-unknown-mirbsd${UNAME_RELEASE}
   2.159 -	exit 0 ;;
   2.160 +	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
   2.161 +	exit ;;
   2.162      *:MirBSD:*:*)
   2.163  	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
   2.164 -	exit 0 ;;
   2.165 +	exit ;;
   2.166      alpha:OSF1:*:*)
   2.167  	case $UNAME_RELEASE in
   2.168  	*4.0)
   2.169 @@ -307,40 +269,43 @@
   2.170  	# A Xn.n version is an unreleased experimental baselevel.
   2.171  	# 1.2 uses "1.2" for uname -r.
   2.172  	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   2.173 -	exit 0 ;;
   2.174 +	exit ;;
   2.175      Alpha\ *:Windows_NT*:*)
   2.176  	# How do we know it's Interix rather than the generic POSIX subsystem?
   2.177  	# Should we change UNAME_MACHINE based on the output of uname instead
   2.178  	# of the specific Alpha model?
   2.179  	echo alpha-pc-interix
   2.180 -	exit 0 ;;
   2.181 +	exit ;;
   2.182      21064:Windows_NT:50:3)
   2.183  	echo alpha-dec-winnt3.5
   2.184 -	exit 0 ;;
   2.185 +	exit ;;
   2.186      Amiga*:UNIX_System_V:4.0:*)
   2.187  	echo m68k-unknown-sysv4
   2.188 -	exit 0;;
   2.189 +	exit ;;
   2.190      *:[Aa]miga[Oo][Ss]:*:*)
   2.191  	echo ${UNAME_MACHINE}-unknown-amigaos
   2.192 -	exit 0 ;;
   2.193 +	exit ;;
   2.194      *:[Mm]orph[Oo][Ss]:*:*)
   2.195  	echo ${UNAME_MACHINE}-unknown-morphos
   2.196 -	exit 0 ;;
   2.197 +	exit ;;
   2.198      *:OS/390:*:*)
   2.199  	echo i370-ibm-openedition
   2.200 -	exit 0 ;;
   2.201 +	exit ;;
   2.202      *:z/VM:*:*)
   2.203  	echo s390-ibm-zvmoe
   2.204 -	exit 0 ;;
   2.205 +	exit ;;
   2.206      *:OS400:*:*)
   2.207          echo powerpc-ibm-os400
   2.208 -	exit 0 ;;
   2.209 +	exit ;;
   2.210      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
   2.211  	echo arm-acorn-riscix${UNAME_RELEASE}
   2.212 -	exit 0;;
   2.213 +	exit ;;
   2.214 +    arm:riscos:*:*|arm:RISCOS:*:*)
   2.215 +	echo arm-unknown-riscos
   2.216 +	exit ;;
   2.217      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
   2.218  	echo hppa1.1-hitachi-hiuxmpp
   2.219 -	exit 0;;
   2.220 +	exit ;;
   2.221      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
   2.222  	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
   2.223  	if test "`(/bin/universe) 2>/dev/null`" = att ; then
   2.224 @@ -348,32 +313,32 @@
   2.225  	else
   2.226  		echo pyramid-pyramid-bsd
   2.227  	fi
   2.228 -	exit 0 ;;
   2.229 +	exit ;;
   2.230      NILE*:*:*:dcosx)
   2.231  	echo pyramid-pyramid-svr4
   2.232 -	exit 0 ;;
   2.233 +	exit ;;
   2.234      DRS?6000:unix:4.0:6*)
   2.235  	echo sparc-icl-nx6
   2.236 -	exit 0 ;;
   2.237 +	exit ;;
   2.238      DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
   2.239  	case `/usr/bin/uname -p` in
   2.240 -	    sparc) echo sparc-icl-nx7 && exit 0 ;;
   2.241 +	    sparc) echo sparc-icl-nx7; exit ;;
   2.242  	esac ;;
   2.243      sun4H:SunOS:5.*:*)
   2.244  	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   2.245 -	exit 0 ;;
   2.246 +	exit ;;
   2.247      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
   2.248  	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   2.249 -	exit 0 ;;
   2.250 -    i86pc:SunOS:5.*:*)
   2.251 +	exit ;;
   2.252 +    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
   2.253  	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   2.254 -	exit 0 ;;
   2.255 +	exit ;;
   2.256      sun4*:SunOS:6*:*)
   2.257  	# According to config.sub, this is the proper way to canonicalize
   2.258  	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
   2.259  	# it's likely to be more like Solaris than SunOS4.
   2.260  	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   2.261 -	exit 0 ;;
   2.262 +	exit ;;
   2.263      sun4*:SunOS:*:*)
   2.264  	case "`/usr/bin/arch -k`" in
   2.265  	    Series*|S4*)
   2.266 @@ -382,10 +347,10 @@
   2.267  	esac
   2.268  	# Japanese Language versions have a version number like `4.1.3-JL'.
   2.269  	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
   2.270 -	exit 0 ;;
   2.271 +	exit ;;
   2.272      sun3*:SunOS:*:*)
   2.273  	echo m68k-sun-sunos${UNAME_RELEASE}
   2.274 -	exit 0 ;;
   2.275 +	exit ;;
   2.276      sun*:*:4.2BSD:*)
   2.277  	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
   2.278  	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
   2.279 @@ -397,10 +362,10 @@
   2.280  		echo sparc-sun-sunos${UNAME_RELEASE}
   2.281  		;;
   2.282  	esac
   2.283 -	exit 0 ;;
   2.284 +	exit ;;
   2.285      aushp:SunOS:*:*)
   2.286  	echo sparc-auspex-sunos${UNAME_RELEASE}
   2.287 -	exit 0 ;;
   2.288 +	exit ;;
   2.289      # The situation for MiNT is a little confusing.  The machine name
   2.290      # can be virtually everything (everything which is not
   2.291      # "atarist" or "atariste" at least should have a processor
   2.292 @@ -411,40 +376,40 @@
   2.293      # be no problem.
   2.294      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
   2.295          echo m68k-atari-mint${UNAME_RELEASE}
   2.296 -	exit 0 ;;
   2.297 +	exit ;;
   2.298      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
   2.299  	echo m68k-atari-mint${UNAME_RELEASE}
   2.300 -        exit 0 ;;
   2.301 +        exit ;;
   2.302      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
   2.303          echo m68k-atari-mint${UNAME_RELEASE}
   2.304 -	exit 0 ;;
   2.305 +	exit ;;
   2.306      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
   2.307          echo m68k-milan-mint${UNAME_RELEASE}
   2.308 -        exit 0 ;;
   2.309 +        exit ;;
   2.310      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
   2.311          echo m68k-hades-mint${UNAME_RELEASE}
   2.312 -        exit 0 ;;
   2.313 +        exit ;;
   2.314      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
   2.315          echo m68k-unknown-mint${UNAME_RELEASE}
   2.316 -        exit 0 ;;
   2.317 +        exit ;;
   2.318      m68k:machten:*:*)
   2.319  	echo m68k-apple-machten${UNAME_RELEASE}
   2.320 -	exit 0 ;;
   2.321 +	exit ;;
   2.322      powerpc:machten:*:*)
   2.323  	echo powerpc-apple-machten${UNAME_RELEASE}
   2.324 -	exit 0 ;;
   2.325 +	exit ;;
   2.326      RISC*:Mach:*:*)
   2.327  	echo mips-dec-mach_bsd4.3
   2.328 -	exit 0 ;;
   2.329 +	exit ;;
   2.330      RISC*:ULTRIX:*:*)
   2.331  	echo mips-dec-ultrix${UNAME_RELEASE}
   2.332 -	exit 0 ;;
   2.333 +	exit ;;
   2.334      VAX*:ULTRIX*:*:*)
   2.335  	echo vax-dec-ultrix${UNAME_RELEASE}
   2.336 -	exit 0 ;;
   2.337 +	exit ;;
   2.338      2020:CLIX:*:* | 2430:CLIX:*:*)
   2.339  	echo clipper-intergraph-clix${UNAME_RELEASE}
   2.340 -	exit 0 ;;
   2.341 +	exit ;;
   2.342      mips:*:*:UMIPS | mips:*:*:RISCos)
   2.343  	eval $set_cc_for_build
   2.344  	sed 's/^	//' << EOF >$dummy.c
   2.345 @@ -468,32 +433,33 @@
   2.346  	  exit (-1);
   2.347  	}
   2.348  EOF
   2.349 -	$CC_FOR_BUILD -o $dummy $dummy.c \
   2.350 -	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
   2.351 -	  && exit 0
   2.352 +	$CC_FOR_BUILD -o $dummy $dummy.c &&
   2.353 +	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
   2.354 +	  SYSTEM_NAME=`$dummy $dummyarg` &&
   2.355 +	    { echo "$SYSTEM_NAME"; exit; }
   2.356  	echo mips-mips-riscos${UNAME_RELEASE}
   2.357 -	exit 0 ;;
   2.358 +	exit ;;
   2.359      Motorola:PowerMAX_OS:*:*)
   2.360  	echo powerpc-motorola-powermax
   2.361 -	exit 0 ;;
   2.362 +	exit ;;
   2.363      Motorola:*:4.3:PL8-*)
   2.364  	echo powerpc-harris-powermax
   2.365 -	exit 0 ;;
   2.366 +	exit ;;
   2.367      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
   2.368  	echo powerpc-harris-powermax
   2.369 -	exit 0 ;;
   2.370 +	exit ;;
   2.371      Night_Hawk:Power_UNIX:*:*)
   2.372  	echo powerpc-harris-powerunix
   2.373 -	exit 0 ;;
   2.374 +	exit ;;
   2.375      m88k:CX/UX:7*:*)
   2.376  	echo m88k-harris-cxux7
   2.377 -	exit 0 ;;
   2.378 +	exit ;;
   2.379      m88k:*:4*:R4*)
   2.380  	echo m88k-motorola-sysv4
   2.381 -	exit 0 ;;
   2.382 +	exit ;;
   2.383      m88k:*:3*:R3*)
   2.384  	echo m88k-motorola-sysv3
   2.385 -	exit 0 ;;
   2.386 +	exit ;;
   2.387      AViiON:dgux:*:*)
   2.388          # DG/UX returns AViiON for all architectures
   2.389          UNAME_PROCESSOR=`/usr/bin/uname -p`
   2.390 @@ -509,29 +475,29 @@
   2.391  	else
   2.392  	    echo i586-dg-dgux${UNAME_RELEASE}
   2.393  	fi
   2.394 - 	exit 0 ;;
   2.395 + 	exit ;;
   2.396      M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
   2.397  	echo m88k-dolphin-sysv3
   2.398 -	exit 0 ;;
   2.399 +	exit ;;
   2.400      M88*:*:R3*:*)
   2.401  	# Delta 88k system running SVR3
   2.402  	echo m88k-motorola-sysv3
   2.403 -	exit 0 ;;
   2.404 +	exit ;;
   2.405      XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
   2.406  	echo m88k-tektronix-sysv3
   2.407 -	exit 0 ;;
   2.408 +	exit ;;
   2.409      Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
   2.410  	echo m68k-tektronix-bsd
   2.411 -	exit 0 ;;
   2.412 +	exit ;;
   2.413      *:IRIX*:*:*)
   2.414  	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
   2.415 -	exit 0 ;;
   2.416 +	exit ;;
   2.417      ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
   2.418 -	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
   2.419 -	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
   2.420 +	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
   2.421 +	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
   2.422      i*86:AIX:*:*)
   2.423  	echo i386-ibm-aix
   2.424 -	exit 0 ;;
   2.425 +	exit ;;
   2.426      ia64:AIX:*:*)
   2.427  	if [ -x /usr/bin/oslevel ] ; then
   2.428  		IBM_REV=`/usr/bin/oslevel`
   2.429 @@ -539,7 +505,7 @@
   2.430  		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   2.431  	fi
   2.432  	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
   2.433 -	exit 0 ;;
   2.434 +	exit ;;
   2.435      *:AIX:2:3)
   2.436  	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
   2.437  		eval $set_cc_for_build
   2.438 @@ -554,15 +520,19 @@
   2.439  			exit(0);
   2.440  			}
   2.441  EOF
   2.442 -		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
   2.443 -		echo rs6000-ibm-aix3.2.5
   2.444 +		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
   2.445 +		then
   2.446 +			echo "$SYSTEM_NAME"
   2.447 +		else
   2.448 +			echo rs6000-ibm-aix3.2.5
   2.449 +		fi
   2.450  	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
   2.451  		echo rs6000-ibm-aix3.2.4
   2.452  	else
   2.453  		echo rs6000-ibm-aix3.2
   2.454  	fi
   2.455 -	exit 0 ;;
   2.456 -    *:AIX:*:[45])
   2.457 +	exit ;;
   2.458 +    *:AIX:*:[456])
   2.459  	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
   2.460  	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
   2.461  		IBM_ARCH=rs6000
   2.462 @@ -575,28 +545,28 @@
   2.463  		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   2.464  	fi
   2.465  	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
   2.466 -	exit 0 ;;
   2.467 +	exit ;;
   2.468      *:AIX:*:*)
   2.469  	echo rs6000-ibm-aix
   2.470 -	exit 0 ;;
   2.471 +	exit ;;
   2.472      ibmrt:4.4BSD:*|romp-ibm:BSD:*)
   2.473  	echo romp-ibm-bsd4.4
   2.474 -	exit 0 ;;
   2.475 +	exit ;;
   2.476      ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
   2.477  	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
   2.478 -	exit 0 ;;                           # report: romp-ibm BSD 4.3
   2.479 +	exit ;;                             # report: romp-ibm BSD 4.3
   2.480      *:BOSX:*:*)
   2.481  	echo rs6000-bull-bosx
   2.482 -	exit 0 ;;
   2.483 +	exit ;;
   2.484      DPX/2?00:B.O.S.:*:*)
   2.485  	echo m68k-bull-sysv3
   2.486 -	exit 0 ;;
   2.487 +	exit ;;
   2.488      9000/[34]??:4.3bsd:1.*:*)
   2.489  	echo m68k-hp-bsd
   2.490 -	exit 0 ;;
   2.491 +	exit ;;
   2.492      hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
   2.493  	echo m68k-hp-bsd4.4
   2.494 -	exit 0 ;;
   2.495 +	exit ;;
   2.496      9000/[34678]??:HP-UX:*:*)
   2.497  	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   2.498  	case "${UNAME_MACHINE}" in
   2.499 @@ -658,9 +628,19 @@
   2.500  	esac
   2.501  	if [ ${HP_ARCH} = "hppa2.0w" ]
   2.502  	then
   2.503 -	    # avoid double evaluation of $set_cc_for_build
   2.504 -	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
   2.505 -	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
   2.506 +	    eval $set_cc_for_build
   2.507 +
   2.508 +	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
   2.509 +	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
   2.510 +	    # generating 64-bit code.  GNU and HP use different nomenclature:
   2.511 +	    #
   2.512 +	    # $ CC_FOR_BUILD=cc ./config.guess
   2.513 +	    # => hppa2.0w-hp-hpux11.23
   2.514 +	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
   2.515 +	    # => hppa64-hp-hpux11.23
   2.516 +
   2.517 +	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
   2.518 +		grep __LP64__ >/dev/null
   2.519  	    then
   2.520  		HP_ARCH="hppa2.0w"
   2.521  	    else
   2.522 @@ -668,11 +648,11 @@
   2.523  	    fi
   2.524  	fi
   2.525  	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   2.526 -	exit 0 ;;
   2.527 +	exit ;;
   2.528      ia64:HP-UX:*:*)
   2.529  	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   2.530  	echo ia64-hp-hpux${HPUX_REV}
   2.531 -	exit 0 ;;
   2.532 +	exit ;;
   2.533      3050*:HI-UX:*:*)
   2.534  	eval $set_cc_for_build
   2.535  	sed 's/^	//' << EOF >$dummy.c
   2.536 @@ -700,161 +680,192 @@
   2.537  	  exit (0);
   2.538  	}
   2.539  EOF
   2.540 -	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
   2.541 +	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
   2.542 +		{ echo "$SYSTEM_NAME"; exit; }
   2.543  	echo unknown-hitachi-hiuxwe2
   2.544 -	exit 0 ;;
   2.545 +	exit ;;
   2.546      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
   2.547  	echo hppa1.1-hp-bsd
   2.548 -	exit 0 ;;
   2.549 +	exit ;;
   2.550      9000/8??:4.3bsd:*:*)
   2.551  	echo hppa1.0-hp-bsd
   2.552 -	exit 0 ;;
   2.553 +	exit ;;
   2.554      *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
   2.555  	echo hppa1.0-hp-mpeix
   2.556 -	exit 0 ;;
   2.557 +	exit ;;
   2.558      hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
   2.559  	echo hppa1.1-hp-osf
   2.560 -	exit 0 ;;
   2.561 +	exit ;;
   2.562      hp8??:OSF1:*:*)
   2.563  	echo hppa1.0-hp-osf
   2.564 -	exit 0 ;;
   2.565 +	exit ;;
   2.566      i*86:OSF1:*:*)
   2.567  	if [ -x /usr/sbin/sysversion ] ; then
   2.568  	    echo ${UNAME_MACHINE}-unknown-osf1mk
   2.569  	else
   2.570  	    echo ${UNAME_MACHINE}-unknown-osf1
   2.571  	fi
   2.572 -	exit 0 ;;
   2.573 +	exit ;;
   2.574      parisc*:Lites*:*:*)
   2.575  	echo hppa1.1-hp-lites
   2.576 -	exit 0 ;;
   2.577 +	exit ;;
   2.578      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
   2.579  	echo c1-convex-bsd
   2.580 -        exit 0 ;;
   2.581 +        exit ;;
   2.582      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
   2.583  	if getsysinfo -f scalar_acc
   2.584  	then echo c32-convex-bsd
   2.585  	else echo c2-convex-bsd
   2.586  	fi
   2.587 -        exit 0 ;;
   2.588 +        exit ;;
   2.589      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
   2.590  	echo c34-convex-bsd
   2.591 -        exit 0 ;;
   2.592 +        exit ;;
   2.593      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
   2.594  	echo c38-convex-bsd
   2.595 -        exit 0 ;;
   2.596 +        exit ;;
   2.597      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
   2.598  	echo c4-convex-bsd
   2.599 -        exit 0 ;;
   2.600 +        exit ;;
   2.601      CRAY*Y-MP:*:*:*)
   2.602  	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   2.603 -	exit 0 ;;
   2.604 +	exit ;;
   2.605      CRAY*[A-Z]90:*:*:*)
   2.606  	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
   2.607  	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
   2.608  	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
   2.609  	      -e 's/\.[^.]*$/.X/'
   2.610 -	exit 0 ;;
   2.611 +	exit ;;
   2.612      CRAY*TS:*:*:*)
   2.613  	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   2.614 -	exit 0 ;;
   2.615 +	exit ;;
   2.616      CRAY*T3E:*:*:*)
   2.617  	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   2.618 -	exit 0 ;;
   2.619 +	exit ;;
   2.620      CRAY*SV1:*:*:*)
   2.621  	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   2.622 -	exit 0 ;;
   2.623 +	exit ;;
   2.624      *:UNICOS/mp:*:*)
   2.625  	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   2.626 -	exit 0 ;;
   2.627 +	exit ;;
   2.628      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
   2.629  	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   2.630          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   2.631          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   2.632          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   2.633 -        exit 0 ;;
   2.634 +        exit ;;
   2.635      5000:UNIX_System_V:4.*:*)
   2.636          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   2.637          FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
   2.638          echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   2.639 -	exit 0 ;;
   2.640 +	exit ;;
   2.641      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
   2.642  	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
   2.643 -	exit 0 ;;
   2.644 +	exit ;;
   2.645      sparc*:BSD/OS:*:*)
   2.646  	echo sparc-unknown-bsdi${UNAME_RELEASE}
   2.647 -	exit 0 ;;
   2.648 +	exit ;;
   2.649      *:BSD/OS:*:*)
   2.650  	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
   2.651 -	exit 0 ;;
   2.652 +	exit ;;
   2.653      *:FreeBSD:*:*)
   2.654 -	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
   2.655 -	exit 0 ;;
   2.656 +	case ${UNAME_MACHINE} in
   2.657 +	    pc98)
   2.658 +		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   2.659 +	    amd64)
   2.660 +		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   2.661 +	    *)
   2.662 +		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   2.663 +	esac
   2.664 +	exit ;;
   2.665      i*:CYGWIN*:*)
   2.666  	echo ${UNAME_MACHINE}-pc-cygwin
   2.667 -	exit 0 ;;
   2.668 -    i*:MINGW*:*)
   2.669 +	exit ;;
   2.670 +    *:MINGW*:*)
   2.671  	echo ${UNAME_MACHINE}-pc-mingw32
   2.672 -	exit 0 ;;
   2.673 +	exit ;;
   2.674 +    i*:windows32*:*)
   2.675 +    	# uname -m includes "-pc" on this system.
   2.676 +    	echo ${UNAME_MACHINE}-mingw32
   2.677 +	exit ;;
   2.678      i*:PW*:*)
   2.679  	echo ${UNAME_MACHINE}-pc-pw32
   2.680 -	exit 0 ;;
   2.681 -    x86:Interix*:[34]*)
   2.682 -	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
   2.683 -	exit 0 ;;
   2.684 +	exit ;;
   2.685 +    *:Interix*:[3456]*)
   2.686 +    	case ${UNAME_MACHINE} in
   2.687 +	    x86)
   2.688 +		echo i586-pc-interix${UNAME_RELEASE}
   2.689 +		exit ;;
   2.690 +	    EM64T | authenticamd)
   2.691 +		echo x86_64-unknown-interix${UNAME_RELEASE}
   2.692 +		exit ;;
   2.693 +	    IA64)
   2.694 +		echo ia64-unknown-interix${UNAME_RELEASE}
   2.695 +		exit ;;
   2.696 +	esac ;;
   2.697      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
   2.698  	echo i${UNAME_MACHINE}-pc-mks
   2.699 -	exit 0 ;;
   2.700 +	exit ;;
   2.701      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
   2.702  	# How do we know it's Interix rather than the generic POSIX subsystem?
   2.703  	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
   2.704  	# UNAME_MACHINE based on the output of uname instead of i386?
   2.705  	echo i586-pc-interix
   2.706 -	exit 0 ;;
   2.707 +	exit ;;
   2.708      i*:UWIN*:*)
   2.709  	echo ${UNAME_MACHINE}-pc-uwin
   2.710 -	exit 0 ;;
   2.711 -    amd64:CYGWIN*:*:*)
   2.712 +	exit ;;
   2.713 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
   2.714  	echo x86_64-unknown-cygwin
   2.715 -	exit 0 ;;
   2.716 +	exit ;;
   2.717      p*:CYGWIN*:*)
   2.718  	echo powerpcle-unknown-cygwin
   2.719 -	exit 0 ;;
   2.720 +	exit ;;
   2.721      prep*:SunOS:5.*:*)
   2.722  	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   2.723 -	exit 0 ;;
   2.724 +	exit ;;
   2.725      *:GNU:*:*)
   2.726  	# the GNU system
   2.727  	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
   2.728 -	exit 0 ;;
   2.729 +	exit ;;
   2.730      *:GNU/*:*:*)
   2.731  	# other systems with GNU libc and userland
   2.732  	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
   2.733 -	exit 0 ;;
   2.734 +	exit ;;
   2.735      i*86:Minix:*:*)
   2.736  	echo ${UNAME_MACHINE}-pc-minix
   2.737 -	exit 0 ;;
   2.738 +	exit ;;
   2.739      arm*:Linux:*:*)
   2.740 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   2.741 -	exit 0 ;;
   2.742 +	eval $set_cc_for_build
   2.743 +	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
   2.744 +	    | grep -q __ARM_EABI__
   2.745 +	then
   2.746 +	    echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.747 +	else
   2.748 +	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
   2.749 +	fi
   2.750 +	exit ;;
   2.751 +    avr32*:Linux:*:*)
   2.752 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.753 +	exit ;;
   2.754      cris:Linux:*:*)
   2.755 -	echo cris-axis-linux
   2.756 -	exit 0 ;;
   2.757 +	echo cris-axis-linux-gnu
   2.758 +	exit ;;
   2.759      crisv32:Linux:*:*)
   2.760 -	echo crisv32-axis-linux
   2.761 -	exit 0 ;;
   2.762 +	echo crisv32-axis-linux-gnu
   2.763 +	exit ;;
   2.764      frv:Linux:*:*)
   2.765 -    	echo frv-${VENDOR}-linux
   2.766 -	exit 0 ;;
   2.767 +    	echo frv-unknown-linux-gnu
   2.768 +	exit ;;
   2.769      ia64:Linux:*:*)
   2.770 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   2.771 -	exit 0 ;;
   2.772 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.773 +	exit ;;
   2.774      m32r*:Linux:*:*)
   2.775 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   2.776 -	exit 0 ;;
   2.777 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.778 +	exit ;;
   2.779      m68*:Linux:*:*)
   2.780 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   2.781 -	exit 0 ;;
   2.782 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.783 +	exit ;;
   2.784      mips:Linux:*:*)
   2.785  	eval $set_cc_for_build
   2.786  	sed 's/^	//' << EOF >$dummy.c
   2.787 @@ -871,8 +882,12 @@
   2.788  	#endif
   2.789  	#endif
   2.790  EOF
   2.791 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
   2.792 -	test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
   2.793 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   2.794 +	    /^CPU/{
   2.795 +		s: ::g
   2.796 +		p
   2.797 +	    }'`"
   2.798 +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   2.799  	;;
   2.800      mips64:Linux:*:*)
   2.801  	eval $set_cc_for_build
   2.802 @@ -890,15 +905,22 @@
   2.803  	#endif
   2.804  	#endif
   2.805  EOF
   2.806 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
   2.807 -	test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
   2.808 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   2.809 +	    /^CPU/{
   2.810 +		s: ::g
   2.811 +		p
   2.812 +	    }'`"
   2.813 +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   2.814  	;;
   2.815 +    or32:Linux:*:*)
   2.816 +	echo or32-unknown-linux-gnu
   2.817 +	exit ;;
   2.818      ppc:Linux:*:*)
   2.819 -	echo powerpc-${VENDOR}-linux
   2.820 -	exit 0 ;;
   2.821 +	echo powerpc-unknown-linux-gnu
   2.822 +	exit ;;
   2.823      ppc64:Linux:*:*)
   2.824 -	echo powerpc64-${VENDOR}-linux
   2.825 -	exit 0 ;;
   2.826 +	echo powerpc64-unknown-linux-gnu
   2.827 +	exit ;;
   2.828      alpha:Linux:*:*)
   2.829  	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
   2.830  	  EV5)   UNAME_MACHINE=alphaev5 ;;
   2.831 @@ -910,35 +932,41 @@
   2.832  	  EV68*) UNAME_MACHINE=alphaev68 ;;
   2.833          esac
   2.834  	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
   2.835 -	if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
   2.836 -	echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
   2.837 -	exit 0 ;;
   2.838 +	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
   2.839 +	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
   2.840 +	exit ;;
   2.841      parisc:Linux:*:* | hppa:Linux:*:*)
   2.842  	# Look for CPU level
   2.843  	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   2.844 -	  PA7*) echo hppa1.1-${VENDOR}-linux ;;
   2.845 -	  PA8*) echo hppa2.0-${VENDOR}-linux ;;
   2.846 -	  *)    echo hppa-${VENDOR}-linux ;;
   2.847 +	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
   2.848 +	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
   2.849 +	  *)    echo hppa-unknown-linux-gnu ;;
   2.850  	esac
   2.851 -	exit 0 ;;
   2.852 +	exit ;;
   2.853      parisc64:Linux:*:* | hppa64:Linux:*:*)
   2.854 -	echo hppa64-${VENDOR}-linux
   2.855 -	exit 0 ;;
   2.856 +	echo hppa64-unknown-linux-gnu
   2.857 +	exit ;;
   2.858      s390:Linux:*:* | s390x:Linux:*:*)
   2.859  	echo ${UNAME_MACHINE}-ibm-linux
   2.860 -	exit 0 ;;
   2.861 +	exit ;;
   2.862      sh64*:Linux:*:*)
   2.863 -    	echo ${UNAME_MACHINE}-${VENDOR}-linux
   2.864 -	exit 0 ;;
   2.865 +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.866 +	exit ;;
   2.867      sh*:Linux:*:*)
   2.868 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   2.869 -	exit 0 ;;
   2.870 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.871 +	exit ;;
   2.872      sparc:Linux:*:* | sparc64:Linux:*:*)
   2.873 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   2.874 -	exit 0 ;;
   2.875 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.876 +	exit ;;
   2.877 +    vax:Linux:*:*)
   2.878 +	echo ${UNAME_MACHINE}-dec-linux-gnu
   2.879 +	exit ;;
   2.880      x86_64:Linux:*:*)
   2.881 -	echo x86_64-${VENDOR}-linux
   2.882 -	exit 0 ;;
   2.883 +	echo x86_64-unknown-linux-gnu
   2.884 +	exit ;;
   2.885 +    xtensa*:Linux:*:*)
   2.886 +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   2.887 +	exit ;;
   2.888      i*86:Linux:*:*)
   2.889  	# The BFD linker knows what the default object file format is, so
   2.890  	# first see if it will tell us. cd to the root directory to prevent
   2.891 @@ -952,19 +980,19 @@
   2.892  				    p'`
   2.893          case "$ld_supported_targets" in
   2.894  	  elf32-i386)
   2.895 -		TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
   2.896 +		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
   2.897  		;;
   2.898  	  a.out-i386-linux)
   2.899 -		echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
   2.900 -		exit 0 ;;
   2.901 +		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
   2.902 +		exit ;;
   2.903  	  coff-i386)
   2.904 -		echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
   2.905 -		exit 0 ;;
   2.906 +		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
   2.907 +		exit ;;
   2.908  	  "")
   2.909 -		# Either a pre-BFD a.out linker (linuxoldld) or
   2.910 +		# Either a pre-BFD a.out linker (linux-gnuoldld) or
   2.911  		# one that does not give us useful --help.
   2.912 -		echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
   2.913 -		exit 0 ;;
   2.914 +		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
   2.915 +		exit ;;
   2.916  	esac
   2.917  	# Determine whether the default compiler is a.out or elf
   2.918  	eval $set_cc_for_build
   2.919 @@ -981,7 +1009,7 @@
   2.920  	LIBC=gnulibc1
   2.921  	# endif
   2.922  	#else
   2.923 -	#ifdef __INTEL_COMPILER
   2.924 +	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
   2.925  	LIBC=gnu
   2.926  	#else
   2.927  	LIBC=gnuaout
   2.928 @@ -991,16 +1019,23 @@
   2.929  	LIBC=dietlibc
   2.930  	#endif
   2.931  EOF
   2.932 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
   2.933 -	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
   2.934 -	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
   2.935 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   2.936 +	    /^LIBC/{
   2.937 +		s: ::g
   2.938 +		p
   2.939 +	    }'`"
   2.940 +	test x"${LIBC}" != x && {
   2.941 +		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
   2.942 +		exit
   2.943 +	}
   2.944 +	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
   2.945  	;;
   2.946      i*86:DYNIX/ptx:4*:*)
   2.947  	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
   2.948  	# earlier versions are messed up and put the nodename in both
   2.949  	# sysname and nodename.
   2.950  	echo i386-sequent-sysv4
   2.951 -	exit 0 ;;
   2.952 +	exit ;;
   2.953      i*86:UNIX_SV:4.2MP:2.*)
   2.954          # Unixware is an offshoot of SVR4, but it has its own version
   2.955          # number series starting with 2...
   2.956 @@ -1008,27 +1043,27 @@
   2.957  	# I just have to hope.  -- rms.
   2.958          # Use sysv4.2uw... so that sysv4* matches it.
   2.959  	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
   2.960 -	exit 0 ;;
   2.961 +	exit ;;
   2.962      i*86:OS/2:*:*)
   2.963  	# If we were able to find `uname', then EMX Unix compatibility
   2.964  	# is probably installed.
   2.965  	echo ${UNAME_MACHINE}-pc-os2-emx
   2.966 -	exit 0 ;;
   2.967 +	exit ;;
   2.968      i*86:XTS-300:*:STOP)
   2.969  	echo ${UNAME_MACHINE}-unknown-stop
   2.970 -	exit 0 ;;
   2.971 +	exit ;;
   2.972      i*86:atheos:*:*)
   2.973  	echo ${UNAME_MACHINE}-unknown-atheos
   2.974 -	exit 0 ;;
   2.975 -	i*86:syllable:*:*)
   2.976 +	exit ;;
   2.977 +    i*86:syllable:*:*)
   2.978  	echo ${UNAME_MACHINE}-pc-syllable
   2.979 -	exit 0 ;;
   2.980 +	exit ;;
   2.981      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
   2.982  	echo i386-unknown-lynxos${UNAME_RELEASE}
   2.983 -	exit 0 ;;
   2.984 +	exit ;;
   2.985      i*86:*DOS:*:*)
   2.986  	echo ${UNAME_MACHINE}-pc-msdosdjgpp
   2.987 -	exit 0 ;;
   2.988 +	exit ;;
   2.989      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
   2.990  	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
   2.991  	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
   2.992 @@ -1036,15 +1071,16 @@
   2.993  	else
   2.994  		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
   2.995  	fi
   2.996 -	exit 0 ;;
   2.997 -    i*86:*:5:[78]*)
   2.998 +	exit ;;
   2.999 +    i*86:*:5:[678]*)
  2.1000 +    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
  2.1001  	case `/bin/uname -X | grep "^Machine"` in
  2.1002  	    *486*)	     UNAME_MACHINE=i486 ;;
  2.1003  	    *Pentium)	     UNAME_MACHINE=i586 ;;
  2.1004  	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  2.1005  	esac
  2.1006  	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  2.1007 -	exit 0 ;;
  2.1008 +	exit ;;
  2.1009      i*86:*:3.2:*)
  2.1010  	if test -f /usr/options/cb.name; then
  2.1011  		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  2.1012 @@ -1062,73 +1098,73 @@
  2.1013  	else
  2.1014  		echo ${UNAME_MACHINE}-pc-sysv32
  2.1015  	fi
  2.1016 -	exit 0 ;;
  2.1017 +	exit ;;
  2.1018      pc:*:*:*)
  2.1019  	# Left here for compatibility:
  2.1020          # uname -m prints for DJGPP always 'pc', but it prints nothing about
  2.1021          # the processor, so we play safe by assuming i386.
  2.1022  	echo i386-pc-msdosdjgpp
  2.1023 -        exit 0 ;;
  2.1024 +        exit ;;
  2.1025      Intel:Mach:3*:*)
  2.1026  	echo i386-pc-mach3
  2.1027 -	exit 0 ;;
  2.1028 +	exit ;;
  2.1029      paragon:*:*:*)
  2.1030  	echo i860-intel-osf1
  2.1031 -	exit 0 ;;
  2.1032 +	exit ;;
  2.1033      i860:*:4.*:*) # i860-SVR4
  2.1034  	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  2.1035  	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  2.1036  	else # Add other i860-SVR4 vendors below as they are discovered.
  2.1037  	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
  2.1038  	fi
  2.1039 -	exit 0 ;;
  2.1040 +	exit ;;
  2.1041      mini*:CTIX:SYS*5:*)
  2.1042  	# "miniframe"
  2.1043  	echo m68010-convergent-sysv
  2.1044 -	exit 0 ;;
  2.1045 +	exit ;;
  2.1046      mc68k:UNIX:SYSTEM5:3.51m)
  2.1047  	echo m68k-convergent-sysv
  2.1048 -	exit 0 ;;
  2.1049 +	exit ;;
  2.1050      M680?0:D-NIX:5.3:*)
  2.1051  	echo m68k-diab-dnix
  2.1052 -	exit 0 ;;
  2.1053 +	exit ;;
  2.1054      M68*:*:R3V[5678]*:*)
  2.1055 -	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  2.1056 +	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  2.1057      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)
  2.1058  	OS_REL=''
  2.1059  	test -r /etc/.relid \
  2.1060  	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  2.1061  	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  2.1062 -	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  2.1063 +	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  2.1064  	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  2.1065 -	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  2.1066 +	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  2.1067      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  2.1068          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  2.1069 -          && echo i486-ncr-sysv4 && exit 0 ;;
  2.1070 +          && { echo i486-ncr-sysv4; exit; } ;;
  2.1071      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  2.1072  	echo m68k-unknown-lynxos${UNAME_RELEASE}
  2.1073 -	exit 0 ;;
  2.1074 +	exit ;;
  2.1075      mc68030:UNIX_System_V:4.*:*)
  2.1076  	echo m68k-atari-sysv4
  2.1077 -	exit 0 ;;
  2.1078 +	exit ;;
  2.1079      TSUNAMI:LynxOS:2.*:*)
  2.1080  	echo sparc-unknown-lynxos${UNAME_RELEASE}
  2.1081 -	exit 0 ;;
  2.1082 +	exit ;;
  2.1083      rs6000:LynxOS:2.*:*)
  2.1084  	echo rs6000-unknown-lynxos${UNAME_RELEASE}
  2.1085 -	exit 0 ;;
  2.1086 +	exit ;;
  2.1087      PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  2.1088  	echo powerpc-unknown-lynxos${UNAME_RELEASE}
  2.1089 -	exit 0 ;;
  2.1090 +	exit ;;
  2.1091      SM[BE]S:UNIX_SV:*:*)
  2.1092  	echo mips-dde-sysv${UNAME_RELEASE}
  2.1093 -	exit 0 ;;
  2.1094 +	exit ;;
  2.1095      RM*:ReliantUNIX-*:*:*)
  2.1096  	echo mips-sni-sysv4
  2.1097 -	exit 0 ;;
  2.1098 +	exit ;;
  2.1099      RM*:SINIX-*:*:*)
  2.1100  	echo mips-sni-sysv4
  2.1101 -	exit 0 ;;
  2.1102 +	exit ;;
  2.1103      *:SINIX-*:*:*)
  2.1104  	if uname -p 2>/dev/null >/dev/null ; then
  2.1105  		UNAME_MACHINE=`(uname -p) 2>/dev/null`
  2.1106 @@ -1136,69 +1172,81 @@
  2.1107  	else
  2.1108  		echo ns32k-sni-sysv
  2.1109  	fi
  2.1110 -	exit 0 ;;
  2.1111 +	exit ;;
  2.1112      PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  2.1113                        # says <Richard.M.Bartel@ccMail.Census.GOV>
  2.1114          echo i586-unisys-sysv4
  2.1115 -        exit 0 ;;
  2.1116 +        exit ;;
  2.1117      *:UNIX_System_V:4*:FTX*)
  2.1118  	# From Gerald Hewes <hewes@openmarket.com>.
  2.1119  	# How about differentiating between stratus architectures? -djm
  2.1120  	echo hppa1.1-stratus-sysv4
  2.1121 -	exit 0 ;;
  2.1122 +	exit ;;
  2.1123      *:*:*:FTX*)
  2.1124  	# From seanf@swdc.stratus.com.
  2.1125  	echo i860-stratus-sysv4
  2.1126 -	exit 0 ;;
  2.1127 +	exit ;;
  2.1128 +    i*86:VOS:*:*)
  2.1129 +	# From Paul.Green@stratus.com.
  2.1130 +	echo ${UNAME_MACHINE}-stratus-vos
  2.1131 +	exit ;;
  2.1132      *:VOS:*:*)
  2.1133  	# From Paul.Green@stratus.com.
  2.1134  	echo hppa1.1-stratus-vos
  2.1135 -	exit 0 ;;
  2.1136 +	exit ;;
  2.1137      mc68*:A/UX:*:*)
  2.1138  	echo m68k-apple-aux${UNAME_RELEASE}
  2.1139 -	exit 0 ;;
  2.1140 +	exit ;;
  2.1141      news*:NEWS-OS:6*:*)
  2.1142  	echo mips-sony-newsos6
  2.1143 -	exit 0 ;;
  2.1144 +	exit ;;
  2.1145      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  2.1146  	if [ -d /usr/nec ]; then
  2.1147  	        echo mips-nec-sysv${UNAME_RELEASE}
  2.1148  	else
  2.1149  	        echo mips-unknown-sysv${UNAME_RELEASE}
  2.1150  	fi
  2.1151 -        exit 0 ;;
  2.1152 +        exit ;;
  2.1153      BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
  2.1154  	echo powerpc-be-beos
  2.1155 -	exit 0 ;;
  2.1156 +	exit ;;
  2.1157      BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
  2.1158  	echo powerpc-apple-beos
  2.1159 -	exit 0 ;;
  2.1160 +	exit ;;
  2.1161      BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
  2.1162  	echo i586-pc-beos
  2.1163 -	exit 0 ;;
  2.1164 +	exit ;;
  2.1165      SX-4:SUPER-UX:*:*)
  2.1166  	echo sx4-nec-superux${UNAME_RELEASE}
  2.1167 -	exit 0 ;;
  2.1168 +	exit ;;
  2.1169      SX-5:SUPER-UX:*:*)
  2.1170  	echo sx5-nec-superux${UNAME_RELEASE}
  2.1171 -	exit 0 ;;
  2.1172 +	exit ;;
  2.1173      SX-6:SUPER-UX:*:*)
  2.1174  	echo sx6-nec-superux${UNAME_RELEASE}
  2.1175 -	exit 0 ;;
  2.1176 +	exit ;;
  2.1177 +    SX-7:SUPER-UX:*:*)
  2.1178 +	echo sx7-nec-superux${UNAME_RELEASE}
  2.1179 +	exit ;;
  2.1180 +    SX-8:SUPER-UX:*:*)
  2.1181 +	echo sx8-nec-superux${UNAME_RELEASE}
  2.1182 +	exit ;;
  2.1183 +    SX-8R:SUPER-UX:*:*)
  2.1184 +	echo sx8r-nec-superux${UNAME_RELEASE}
  2.1185 +	exit ;;
  2.1186      Power*:Rhapsody:*:*)
  2.1187  	echo powerpc-apple-rhapsody${UNAME_RELEASE}
  2.1188 -	exit 0 ;;
  2.1189 +	exit ;;
  2.1190      *:Rhapsody:*:*)
  2.1191  	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  2.1192 -	exit 0 ;;
  2.1193 +	exit ;;
  2.1194      *:Darwin:*:*)
  2.1195  	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  2.1196  	case $UNAME_PROCESSOR in
  2.1197 -	    *86) UNAME_PROCESSOR=i686 ;;
  2.1198  	    unknown) UNAME_PROCESSOR=powerpc ;;
  2.1199  	esac
  2.1200  	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  2.1201 -	exit 0 ;;
  2.1202 +	exit ;;
  2.1203      *:procnto*:*:* | *:QNX:[0123456789]*:*)
  2.1204  	UNAME_PROCESSOR=`uname -p`
  2.1205  	if test "$UNAME_PROCESSOR" = "x86"; then
  2.1206 @@ -1206,25 +1254,25 @@
  2.1207  		UNAME_MACHINE=pc
  2.1208  	fi
  2.1209  	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  2.1210 -	exit 0 ;;
  2.1211 +	exit ;;
  2.1212      *:QNX:*:4*)
  2.1213  	echo i386-pc-qnx
  2.1214 -	exit 0 ;;
  2.1215 +	exit ;;
  2.1216      NSE-?:NONSTOP_KERNEL:*:*)
  2.1217  	echo nse-tandem-nsk${UNAME_RELEASE}
  2.1218 -	exit 0 ;;
  2.1219 +	exit ;;
  2.1220      NSR-?:NONSTOP_KERNEL:*:*)
  2.1221  	echo nsr-tandem-nsk${UNAME_RELEASE}
  2.1222 -	exit 0 ;;
  2.1223 +	exit ;;
  2.1224      *:NonStop-UX:*:*)
  2.1225  	echo mips-compaq-nonstopux
  2.1226 -	exit 0 ;;
  2.1227 +	exit ;;
  2.1228      BS2000:POSIX*:*:*)
  2.1229  	echo bs2000-siemens-sysv
  2.1230 -	exit 0 ;;
  2.1231 +	exit ;;
  2.1232      DS/*:UNIX_System_V:*:*)
  2.1233  	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  2.1234 -	exit 0 ;;
  2.1235 +	exit ;;
  2.1236      *:Plan9:*:*)
  2.1237  	# "uname -m" is not consistent, so use $cputype instead. 386
  2.1238  	# is converted to i386 for consistency with other x86
  2.1239 @@ -1235,41 +1283,47 @@
  2.1240  	    UNAME_MACHINE="$cputype"
  2.1241  	fi
  2.1242  	echo ${UNAME_MACHINE}-unknown-plan9
  2.1243 -	exit 0 ;;
  2.1244 +	exit ;;
  2.1245      *:TOPS-10:*:*)
  2.1246  	echo pdp10-unknown-tops10
  2.1247 -	exit 0 ;;
  2.1248 +	exit ;;
  2.1249      *:TENEX:*:*)
  2.1250  	echo pdp10-unknown-tenex
  2.1251 -	exit 0 ;;
  2.1252 +	exit ;;
  2.1253      KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  2.1254  	echo pdp10-dec-tops20
  2.1255 -	exit 0 ;;
  2.1256 +	exit ;;
  2.1257      XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  2.1258  	echo pdp10-xkl-tops20
  2.1259 -	exit 0 ;;
  2.1260 +	exit ;;
  2.1261      *:TOPS-20:*:*)
  2.1262  	echo pdp10-unknown-tops20
  2.1263 -	exit 0 ;;
  2.1264 +	exit ;;
  2.1265      *:ITS:*:*)
  2.1266  	echo pdp10-unknown-its
  2.1267 -	exit 0 ;;
  2.1268 +	exit ;;
  2.1269      SEI:*:*:SEIUX)
  2.1270          echo mips-sei-seiux${UNAME_RELEASE}
  2.1271 -	exit 0 ;;
  2.1272 +	exit ;;
  2.1273      *:DragonFly:*:*)
  2.1274  	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  2.1275 -	exit 0 ;;
  2.1276 +	exit ;;
  2.1277      *:*VMS:*:*)
  2.1278      	UNAME_MACHINE=`(uname -p) 2>/dev/null`
  2.1279  	case "${UNAME_MACHINE}" in
  2.1280 -	    A*) echo alpha-dec-vms && exit 0 ;;
  2.1281 -	    I*) echo ia64-dec-vms && exit 0 ;;
  2.1282 -	    V*) echo vax-dec-vms && exit 0 ;;
  2.1283 +	    A*) echo alpha-dec-vms ; exit ;;
  2.1284 +	    I*) echo ia64-dec-vms ; exit ;;
  2.1285 +	    V*) echo vax-dec-vms ; exit ;;
  2.1286  	esac ;;
  2.1287      *:XENIX:*:SysV)
  2.1288  	echo i386-pc-xenix
  2.1289 -	exit 0 ;;
  2.1290 +	exit ;;
  2.1291 +    i*86:skyos:*:*)
  2.1292 +	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  2.1293 +	exit ;;
  2.1294 +    i*86:rdos:*:*)
  2.1295 +	echo ${UNAME_MACHINE}-pc-rdos
  2.1296 +	exit ;;
  2.1297  esac
  2.1298  
  2.1299  #echo '(No uname command or uname output not recognized.)' 1>&2
  2.1300 @@ -1301,7 +1355,7 @@
  2.1301  #endif
  2.1302  
  2.1303  #if defined (__arm) && defined (__acorn) && defined (__unix)
  2.1304 -  printf ("arm-acorn-riscix"); exit (0);
  2.1305 +  printf ("arm-acorn-riscix\n"); exit (0);
  2.1306  #endif
  2.1307  
  2.1308  #if defined (hp300) && !defined (hpux)
  2.1309 @@ -1390,11 +1444,12 @@
  2.1310  }
  2.1311  EOF
  2.1312  
  2.1313 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  2.1314 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  2.1315 +	{ echo "$SYSTEM_NAME"; exit; }
  2.1316  
  2.1317  # Apollos put the system type in the environment.
  2.1318  
  2.1319 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  2.1320 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  2.1321  
  2.1322  # Convex versions that predate uname can use getsysinfo(1)
  2.1323  
  2.1324 @@ -1403,22 +1458,22 @@
  2.1325      case `getsysinfo -f cpu_type` in
  2.1326      c1*)
  2.1327  	echo c1-convex-bsd
  2.1328 -	exit 0 ;;
  2.1329 +	exit ;;
  2.1330      c2*)
  2.1331  	if getsysinfo -f scalar_acc
  2.1332  	then echo c32-convex-bsd
  2.1333  	else echo c2-convex-bsd
  2.1334  	fi
  2.1335 -	exit 0 ;;
  2.1336 +	exit ;;
  2.1337      c34*)
  2.1338  	echo c34-convex-bsd
  2.1339 -	exit 0 ;;
  2.1340 +	exit ;;
  2.1341      c38*)
  2.1342  	echo c38-convex-bsd
  2.1343 -	exit 0 ;;
  2.1344 +	exit ;;
  2.1345      c4*)
  2.1346  	echo c4-convex-bsd
  2.1347 -	exit 0 ;;
  2.1348 +	exit ;;
  2.1349      esac
  2.1350  fi
  2.1351  
  2.1352 @@ -1429,7 +1484,9 @@
  2.1353  the operating system you are using. It is advised that you
  2.1354  download the most up to date version of the config scripts from
  2.1355  
  2.1356 -    ftp://ftp.gnu.org/pub/gnu/config/
  2.1357 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  2.1358 +and
  2.1359 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  2.1360  
  2.1361  If the version you run ($0) is already up to date, please
  2.1362  send the following data and any information you think might be
     3.1 --- a/config.sub	Sat May 10 07:45:39 2008 -0500
     3.2 +++ b/config.sub	Sat May 10 07:48:26 2008 -0500
     3.3 @@ -1,9 +1,10 @@
     3.4  #! /bin/sh
     3.5  # Configuration validation subroutine script.
     3.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     3.7 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     3.8 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     3.9 +#   Free Software Foundation, Inc.
    3.10  
    3.11 -timestamp='2005-02-10'
    3.12 +timestamp='2008-01-16'
    3.13  
    3.14  # This file is (in principle) common to ALL GNU software.
    3.15  # The presence of a machine in this file suggests that SOME GNU software
    3.16 @@ -21,14 +22,15 @@
    3.17  #
    3.18  # You should have received a copy of the GNU General Public License
    3.19  # along with this program; if not, write to the Free Software
    3.20 -# Foundation, Inc., 59 Temple Place - Suite 330,
    3.21 -# Boston, MA 02111-1307, USA.
    3.22 -
    3.23 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    3.24 +# 02110-1301, USA.
    3.25 +#
    3.26  # As a special exception to the GNU General Public License, if you
    3.27  # distribute this file as part of a program that contains a
    3.28  # configuration script generated by Autoconf, you may include it under
    3.29  # the same distribution terms that you use for the rest of that program.
    3.30  
    3.31 +
    3.32  # Please send patches to <config-patches@gnu.org>.  Submit a context
    3.33  # diff and a properly formatted ChangeLog entry.
    3.34  #
    3.35 @@ -70,8 +72,8 @@
    3.36  version="\
    3.37  GNU config.sub ($timestamp)
    3.38  
    3.39 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    3.40 -Free Software Foundation, Inc.
    3.41 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    3.42 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    3.43  
    3.44  This is free software; see the source for copying conditions.  There is NO
    3.45  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    3.46 @@ -83,11 +85,11 @@
    3.47  while test $# -gt 0 ; do
    3.48    case $1 in
    3.49      --time-stamp | --time* | -t )
    3.50 -       echo "$timestamp" ; exit 0 ;;
    3.51 +       echo "$timestamp" ; exit ;;
    3.52      --version | -v )
    3.53 -       echo "$version" ; exit 0 ;;
    3.54 +       echo "$version" ; exit ;;
    3.55      --help | --h* | -h )
    3.56 -       echo "$usage"; exit 0 ;;
    3.57 +       echo "$usage"; exit ;;
    3.58      -- )     # Stop option processing
    3.59         shift; break ;;
    3.60      - )	# Use stdin as input.
    3.61 @@ -99,7 +101,7 @@
    3.62      *local*)
    3.63         # First pass through any local machine types.
    3.64         echo $1
    3.65 -       exit 0;;
    3.66 +       exit ;;
    3.67  
    3.68      * )
    3.69         break ;;
    3.70 @@ -118,8 +120,9 @@
    3.71  # Here we must recognize all the valid KERNEL-OS combinations.
    3.72  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    3.73  case $maybe_os in
    3.74 -  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
    3.75 -  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    3.76 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
    3.77 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
    3.78 +  storm-chaos* | os2-emx* | rtmk-nova*)
    3.79      os=-$maybe_os
    3.80      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    3.81      ;;
    3.82 @@ -170,6 +173,10 @@
    3.83  	-hiux*)
    3.84  		os=-hiuxwe2
    3.85  		;;
    3.86 +	-sco6)
    3.87 +		os=-sco5v6
    3.88 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    3.89 +		;;
    3.90  	-sco5)
    3.91  		os=-sco3.2v5
    3.92  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    3.93 @@ -186,6 +193,10 @@
    3.94  		# Don't forget version if it is 3.2v4 or newer.
    3.95  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    3.96  		;;
    3.97 +	-sco5v6*)
    3.98 +		# Don't forget version if it is 3.2v4 or newer.
    3.99 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   3.100 +		;;
   3.101  	-sco*)
   3.102  		os=-sco3.2v2
   3.103  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   3.104 @@ -230,14 +241,16 @@
   3.105  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   3.106  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   3.107  	| am33_2.0 \
   3.108 -	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
   3.109 +	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
   3.110 +	| bfin \
   3.111  	| c4x | clipper \
   3.112  	| d10v | d30v | dlx | dsp16xx \
   3.113 -	| fr30 | frv \
   3.114 +	| fido | fr30 | frv \
   3.115  	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
   3.116  	| i370 | i860 | i960 | ia64 \
   3.117  	| ip2k | iq2000 \
   3.118 -	| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
   3.119 +	| m32c | m32r | m32rle | m68000 | m68k | m88k \
   3.120 +	| maxq | mb | microblaze | mcore | mep \
   3.121  	| mips | mipsbe | mipseb | mipsel | mipsle \
   3.122  	| mips16 \
   3.123  	| mips64 | mips64el \
   3.124 @@ -246,6 +259,7 @@
   3.125  	| mips64vr4100 | mips64vr4100el \
   3.126  	| mips64vr4300 | mips64vr4300el \
   3.127  	| mips64vr5000 | mips64vr5000el \
   3.128 +	| mips64vr5900 | mips64vr5900el \
   3.129  	| mipsisa32 | mipsisa32el \
   3.130  	| mipsisa32r2 | mipsisa32r2el \
   3.131  	| mipsisa64 | mipsisa64el \
   3.132 @@ -254,20 +268,24 @@
   3.133  	| mipsisa64sr71k | mipsisa64sr71kel \
   3.134  	| mipstx39 | mipstx39el \
   3.135  	| mn10200 | mn10300 \
   3.136 +	| mt \
   3.137  	| msp430 \
   3.138 +	| nios | nios2 \
   3.139  	| ns16k | ns32k \
   3.140 -	| openrisc | or32 \
   3.141 +	| or32 \
   3.142  	| pdp10 | pdp11 | pj | pjl \
   3.143  	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
   3.144  	| pyramid \
   3.145 -	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
   3.146 +	| score \
   3.147 +	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
   3.148  	| sh64 | sh64le \
   3.149 -	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
   3.150 -	| strongarm \
   3.151 +	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
   3.152 +	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
   3.153 +	| spu | strongarm \
   3.154  	| tahoe | thumb | tic4x | tic80 | tron \
   3.155  	| v850 | v850e \
   3.156  	| we32k \
   3.157 -	| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
   3.158 +	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
   3.159  	| z8k)
   3.160  		basic_machine=$basic_machine-unknown
   3.161  		;;
   3.162 @@ -278,6 +296,9 @@
   3.163  		;;
   3.164  	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
   3.165  		;;
   3.166 +	ms1)
   3.167 +		basic_machine=mt-unknown
   3.168 +		;;
   3.169  
   3.170  	# We use `pc' rather than `unknown'
   3.171  	# because (1) that's what they normally are, and
   3.172 @@ -297,18 +318,18 @@
   3.173  	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
   3.174  	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
   3.175  	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   3.176 -	| avr-* \
   3.177 -	| bs2000-* \
   3.178 +	| avr-* | avr32-* \
   3.179 +	| bfin-* | bs2000-* \
   3.180  	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
   3.181  	| clipper-* | craynv-* | cydra-* \
   3.182  	| d10v-* | d30v-* | dlx-* \
   3.183  	| elxsi-* \
   3.184 -	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
   3.185 +	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
   3.186  	| h8300-* | h8500-* \
   3.187  	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   3.188  	| i*86-* | i860-* | i960-* | ia64-* \
   3.189  	| ip2k-* | iq2000-* \
   3.190 -	| m32r-* | m32rle-* \
   3.191 +	| m32c-* | m32r-* | m32rle-* \
   3.192  	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   3.193  	| m88110-* | m88k-* | maxq-* | mcore-* \
   3.194  	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   3.195 @@ -319,6 +340,7 @@
   3.196  	| mips64vr4100-* | mips64vr4100el-* \
   3.197  	| mips64vr4300-* | mips64vr4300el-* \
   3.198  	| mips64vr5000-* | mips64vr5000el-* \
   3.199 +	| mips64vr5900-* | mips64vr5900el-* \
   3.200  	| mipsisa32-* | mipsisa32el-* \
   3.201  	| mipsisa32r2-* | mipsisa32r2el-* \
   3.202  	| mipsisa64-* | mipsisa64el-* \
   3.203 @@ -327,27 +349,34 @@
   3.204  	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
   3.205  	| mipstx39-* | mipstx39el-* \
   3.206  	| mmix-* \
   3.207 +	| mt-* \
   3.208  	| msp430-* \
   3.209 +	| nios-* | nios2-* \
   3.210  	| none-* | np1-* | ns16k-* | ns32k-* \
   3.211  	| orion-* \
   3.212  	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   3.213  	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
   3.214  	| pyramid-* \
   3.215  	| romp-* | rs6000-* \
   3.216 -	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
   3.217 +	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   3.218  	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   3.219 -	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
   3.220 -	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
   3.221 +	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
   3.222 +	| sparclite-* \
   3.223 +	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
   3.224  	| tahoe-* | thumb-* \
   3.225  	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   3.226  	| tron-* \
   3.227  	| v850-* | v850e-* | vax-* \
   3.228  	| we32k-* \
   3.229 -	| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
   3.230 -	| xstormy16-* | xtensa-* \
   3.231 +	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
   3.232 +	| xstormy16-* | xtensa*-* \
   3.233  	| ymp-* \
   3.234  	| z8k-*)
   3.235  		;;
   3.236 +	# Recognize the basic CPU types without company name, with glob match.
   3.237 +	xtensa*)
   3.238 +		basic_machine=$basic_machine-unknown
   3.239 +		;;
   3.240  	# Recognize the various machine names and aliases which stand
   3.241  	# for a CPU type and a company and sometimes even an OS.
   3.242  	386bsd)
   3.243 @@ -418,6 +447,14 @@
   3.244  		basic_machine=ns32k-sequent
   3.245  		os=-dynix
   3.246  		;;
   3.247 +	blackfin)
   3.248 +		basic_machine=bfin-unknown
   3.249 +		os=-linux
   3.250 +		;;
   3.251 +	blackfin-*)
   3.252 +		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
   3.253 +		os=-linux
   3.254 +		;;
   3.255  	c90)
   3.256  		basic_machine=c90-cray
   3.257  		os=-unicos
   3.258 @@ -450,8 +487,8 @@
   3.259  		basic_machine=craynv-cray
   3.260  		os=-unicosmp
   3.261  		;;
   3.262 -	cr16c)
   3.263 -		basic_machine=cr16c-unknown
   3.264 +	cr16)
   3.265 +		basic_machine=cr16-unknown
   3.266  		os=-elf
   3.267  		;;
   3.268  	crds | unos)
   3.269 @@ -643,6 +680,14 @@
   3.270  		basic_machine=m68k-isi
   3.271  		os=-sysv
   3.272  		;;
   3.273 +	m68knommu)
   3.274 +		basic_machine=m68k-unknown
   3.275 +		os=-linux
   3.276 +		;;
   3.277 +	m68knommu-*)
   3.278 +		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
   3.279 +		os=-linux
   3.280 +		;;
   3.281  	m88k-omron*)
   3.282  		basic_machine=m88k-omron
   3.283  		;;
   3.284 @@ -658,6 +703,10 @@
   3.285  		basic_machine=i386-pc
   3.286  		os=-mingw32
   3.287  		;;
   3.288 +	mingw32ce)
   3.289 +		basic_machine=arm-unknown
   3.290 +		os=-mingw32ce
   3.291 +		;;
   3.292  	miniframe)
   3.293  		basic_machine=m68000-convergent
   3.294  		;;
   3.295 @@ -683,6 +732,9 @@
   3.296  		basic_machine=i386-pc
   3.297  		os=-msdos
   3.298  		;;
   3.299 +	ms1-*)
   3.300 +		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
   3.301 +		;;
   3.302  	mvs)
   3.303  		basic_machine=i370-ibm
   3.304  		os=-mvs
   3.305 @@ -758,9 +810,8 @@
   3.306  		basic_machine=hppa1.1-oki
   3.307  		os=-proelf
   3.308  		;;
   3.309 -	or32 | or32-*)
   3.310 +	openrisc | openrisc-*)
   3.311  		basic_machine=or32-unknown
   3.312 -		os=-coff
   3.313  		;;
   3.314  	os400)
   3.315  		basic_machine=powerpc-ibm
   3.316 @@ -782,6 +833,14 @@
   3.317  		basic_machine=i860-intel
   3.318  		os=-osf
   3.319  		;;
   3.320 +	parisc)
   3.321 +		basic_machine=hppa-unknown
   3.322 +		os=-linux
   3.323 +		;;
   3.324 +	parisc-*)
   3.325 +		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
   3.326 +		os=-linux
   3.327 +		;;
   3.328  	pbd)
   3.329  		basic_machine=sparc-tti
   3.330  		;;
   3.331 @@ -791,6 +850,12 @@
   3.332  	pc532 | pc532-*)
   3.333  		basic_machine=ns32k-pc532
   3.334  		;;
   3.335 +	pc98)
   3.336 +		basic_machine=i386-pc
   3.337 +		;;
   3.338 +	pc98-*)
   3.339 +		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
   3.340 +		;;
   3.341  	pentium | p5 | k5 | k6 | nexgen | viac3)
   3.342  		basic_machine=i586-pc
   3.343  		;;
   3.344 @@ -847,6 +912,10 @@
   3.345  		basic_machine=i586-unknown
   3.346  		os=-pw32
   3.347  		;;
   3.348 +	rdos)
   3.349 +		basic_machine=i386-pc
   3.350 +		os=-rdos
   3.351 +		;;
   3.352  	rom68k)
   3.353  		basic_machine=m68k-rom68k
   3.354  		os=-coff
   3.355 @@ -873,6 +942,10 @@
   3.356  	sb1el)
   3.357  		basic_machine=mipsisa64sb1el-unknown
   3.358  		;;
   3.359 +	sde)
   3.360 +		basic_machine=mipsisa32-sde
   3.361 +		os=-elf
   3.362 +		;;
   3.363  	sei)
   3.364  		basic_machine=mips-sei
   3.365  		os=-seiux
   3.366 @@ -884,6 +957,9 @@
   3.367  		basic_machine=sh-hitachi
   3.368  		os=-hms
   3.369  		;;
   3.370 +	sh5el)
   3.371 +		basic_machine=sh5le-unknown
   3.372 +		;;
   3.373  	sh64)
   3.374  		basic_machine=sh64-unknown
   3.375  		;;
   3.376 @@ -973,6 +1049,10 @@
   3.377  		basic_machine=tic6x-unknown
   3.378  		os=-coff
   3.379  		;;
   3.380 +	tile*)
   3.381 +		basic_machine=tile-unknown
   3.382 +		os=-linux-gnu
   3.383 +		;;
   3.384  	tx39)
   3.385  		basic_machine=mipstx39-unknown
   3.386  		;;
   3.387 @@ -1086,13 +1166,10 @@
   3.388  	we32k)
   3.389  		basic_machine=we32k-att
   3.390  		;;
   3.391 -	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
   3.392 +	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
   3.393  		basic_machine=sh-unknown
   3.394  		;;
   3.395 -	sh64)
   3.396 -		basic_machine=sh64-unknown
   3.397 -		;;
   3.398 -	sparc | sparcv8 | sparcv9 | sparcv9b)
   3.399 +	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
   3.400  		basic_machine=sparc-sun
   3.401  		;;
   3.402  	cydra)
   3.403 @@ -1165,20 +1242,23 @@
   3.404  	      | -aos* \
   3.405  	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
   3.406  	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
   3.407 -	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
   3.408 +	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
   3.409 +	      | -openbsd* | -solidbsd* \
   3.410  	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
   3.411  	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
   3.412  	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
   3.413  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   3.414  	      | -chorusos* | -chorusrdb* \
   3.415  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   3.416 -	      | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
   3.417 +	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
   3.418 +	      | -uxpv* | -beos* | -mpeix* | -udk* \
   3.419  	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
   3.420  	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
   3.421  	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
   3.422  	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
   3.423  	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
   3.424 -	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
   3.425 +	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
   3.426 +	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
   3.427  	# Remember, each alternative MUST END IN *, to match a version number.
   3.428  		;;
   3.429  	-qnx*)
   3.430 @@ -1196,7 +1276,7 @@
   3.431  		os=`echo $os | sed -e 's|nto|nto-qnx|'`
   3.432  		;;
   3.433  	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
   3.434 -	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
   3.435 +	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
   3.436  	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
   3.437  		;;
   3.438  	-mac*)
   3.439 @@ -1205,6 +1285,9 @@
   3.440  	-linux-dietlibc)
   3.441  		os=-linux-dietlibc
   3.442  		;;
   3.443 +	-linux*)
   3.444 +		os=`echo $os | sed -e 's|linux|linux-gnu|'`
   3.445 +		;;
   3.446  	-sunos5*)
   3.447  		os=`echo $os | sed -e 's|sunos5|solaris2|'`
   3.448  		;;
   3.449 @@ -1327,6 +1410,12 @@
   3.450  # system, and we'll never get to this point.
   3.451  
   3.452  case $basic_machine in
   3.453 +        score-*)
   3.454 +		os=-elf
   3.455 +		;;
   3.456 +        spu-*)
   3.457 +		os=-elf
   3.458 +		;;
   3.459  	*-acorn)
   3.460  		os=-riscix1.2
   3.461  		;;
   3.462 @@ -1336,9 +1425,9 @@
   3.463  	arm*-semi)
   3.464  		os=-aout
   3.465  		;;
   3.466 -    c4x-* | tic4x-*)
   3.467 -        os=-coff
   3.468 -        ;;
   3.469 +        c4x-* | tic4x-*)
   3.470 +        	os=-coff
   3.471 +		;;
   3.472  	# This must come before the *-dec entry.
   3.473  	pdp10-*)
   3.474  		os=-tops20
   3.475 @@ -1364,6 +1453,9 @@
   3.476  	m68*-cisco)
   3.477  		os=-aout
   3.478  		;;
   3.479 +        mep-*)
   3.480 +		os=-elf
   3.481 +		;;
   3.482  	mips*-cisco)
   3.483  		os=-elf
   3.484  		;;
   3.485 @@ -1382,6 +1474,9 @@
   3.486  	*-be)
   3.487  		os=-beos
   3.488  		;;
   3.489 +	*-haiku)
   3.490 +		os=-haiku
   3.491 +		;;
   3.492  	*-ibm)
   3.493  		os=-aix
   3.494  		;;
   3.495 @@ -1553,7 +1648,7 @@
   3.496  esac
   3.497  
   3.498  echo $basic_machine$os
   3.499 -exit 0
   3.500 +exit
   3.501  
   3.502  # Local variables:
   3.503  # eval: (add-hook 'write-file-hooks 'time-stamp)
     4.1 --- a/libhrel/aclocal.m4	Sat May 10 07:45:39 2008 -0500
     4.2 +++ b/libhrel/aclocal.m4	Sat May 10 07:48:26 2008 -0500
     4.3 @@ -1,7 +1,7 @@
     4.4 -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
     4.5 +# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
     4.6  
     4.7  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     4.8 -# 2005  Free Software Foundation, Inc.
     4.9 +# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
    4.10  # This file is free software; the Free Software Foundation
    4.11  # gives unlimited permission to copy and/or distribute it,
    4.12  # with or without modifications, as long as this notice is preserved.
    4.13 @@ -11,9 +11,17 @@
    4.14  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    4.15  # PARTICULAR PURPOSE.
    4.16  
    4.17 +m4_ifndef([AC_AUTOCONF_VERSION],
    4.18 +  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    4.19 +m4_if(AC_AUTOCONF_VERSION, [2.61],,
    4.20 +[m4_warning([this file was generated for autoconf 2.61.
    4.21 +You have another version of autoconf.  It may work, but is not guaranteed to.
    4.22 +If you have problems, you may need to regenerate the build system entirely.
    4.23 +To do so, use the procedure documented by the package, typically `autoreconf'.])])
    4.24 +
    4.25  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    4.26  
    4.27 -# serial 47 AC_PROG_LIBTOOL
    4.28 +# serial 52 Debian 1.5.26-1 AC_PROG_LIBTOOL
    4.29  
    4.30  
    4.31  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
    4.32 @@ -101,7 +109,6 @@
    4.33  AC_REQUIRE([AC_OBJEXT])dnl
    4.34  AC_REQUIRE([AC_EXEEXT])dnl
    4.35  dnl
    4.36 -
    4.37  AC_LIBTOOL_SYS_MAX_CMD_LEN
    4.38  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
    4.39  AC_LIBTOOL_OBJDIR
    4.40 @@ -123,7 +130,7 @@
    4.41  
    4.42  # Sed substitution that helps us do robust quoting.  It backslashifies
    4.43  # metacharacters that are still active within double-quoted strings.
    4.44 -Xsed='sed -e s/^X//'
    4.45 +Xsed='sed -e 1s/^X//'
    4.46  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
    4.47  
    4.48  # Same as above, but do not quote variable references.
    4.49 @@ -143,7 +150,7 @@
    4.50  default_ofile=libtool
    4.51  can_build_shared=yes
    4.52  
    4.53 -# All known linkers require a `.a' archive for static linking (except M$VC,
    4.54 +# All known linkers require a `.a' archive for static linking (except MSVC,
    4.55  # which needs '.lib').
    4.56  libext=a
    4.57  ltmain="$ac_aux_dir/ltmain.sh"
    4.58 @@ -163,6 +170,7 @@
    4.59  test -z "$AS" && AS=as
    4.60  test -z "$CC" && CC=cc
    4.61  test -z "$LTCC" && LTCC=$CC
    4.62 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
    4.63  test -z "$DLLTOOL" && DLLTOOL=dlltool
    4.64  test -z "$LD" && LD=ld
    4.65  test -z "$LN_S" && LN_S="ln -s"
    4.66 @@ -175,23 +183,23 @@
    4.67  test -z "$ac_objext" && ac_objext=o
    4.68  
    4.69  # Determine commands to create old-style static archives.
    4.70 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
    4.71 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
    4.72  old_postinstall_cmds='chmod 644 $oldlib'
    4.73  old_postuninstall_cmds=
    4.74  
    4.75  if test -n "$RANLIB"; then
    4.76    case $host_os in
    4.77    openbsd*)
    4.78 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    4.79 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    4.80      ;;
    4.81    *)
    4.82 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    4.83 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    4.84      ;;
    4.85    esac
    4.86    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    4.87  fi
    4.88  
    4.89 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    4.90 +_LT_CC_BASENAME([$compiler])
    4.91  
    4.92  # Only perform the check for file, if the check method requires it
    4.93  case $deplibs_check_method in
    4.94 @@ -202,6 +210,8 @@
    4.95    ;;
    4.96  esac
    4.97  
    4.98 +_LT_REQUIRED_DARWIN_CHECKS
    4.99 +
   4.100  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
   4.101  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   4.102  enable_win32_dll=yes, enable_win32_dll=no)
   4.103 @@ -233,11 +243,129 @@
   4.104  # If no C compiler was specified, use CC.
   4.105  LTCC=${LTCC-"$CC"}
   4.106  
   4.107 +# If no C compiler flags were specified, use CFLAGS.
   4.108 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   4.109 +
   4.110  # Allow CC to be a program name with arguments.
   4.111  compiler=$CC
   4.112  ])# _LT_AC_SYS_COMPILER
   4.113  
   4.114  
   4.115 +# _LT_CC_BASENAME(CC)
   4.116 +# -------------------
   4.117 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   4.118 +AC_DEFUN([_LT_CC_BASENAME],
   4.119 +[for cc_temp in $1""; do
   4.120 +  case $cc_temp in
   4.121 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
   4.122 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
   4.123 +    \-*) ;;
   4.124 +    *) break;;
   4.125 +  esac
   4.126 +done
   4.127 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
   4.128 +])
   4.129 +
   4.130 +
   4.131 +# _LT_COMPILER_BOILERPLATE
   4.132 +# ------------------------
   4.133 +# Check for compiler boilerplate output or warnings with
   4.134 +# the simple compiler test code.
   4.135 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
   4.136 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   4.137 +ac_outfile=conftest.$ac_objext
   4.138 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   4.139 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   4.140 +_lt_compiler_boilerplate=`cat conftest.err`
   4.141 +$rm conftest*
   4.142 +])# _LT_COMPILER_BOILERPLATE
   4.143 +
   4.144 +
   4.145 +# _LT_LINKER_BOILERPLATE
   4.146 +# ----------------------
   4.147 +# Check for linker boilerplate output or warnings with
   4.148 +# the simple link test code.
   4.149 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
   4.150 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   4.151 +ac_outfile=conftest.$ac_objext
   4.152 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
   4.153 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   4.154 +_lt_linker_boilerplate=`cat conftest.err`
   4.155 +$rm -r conftest*
   4.156 +])# _LT_LINKER_BOILERPLATE
   4.157 +
   4.158 +# _LT_REQUIRED_DARWIN_CHECKS
   4.159 +# --------------------------
   4.160 +# Check for some things on darwin
   4.161 +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
   4.162 +  case $host_os in
   4.163 +    rhapsody* | darwin*)
   4.164 +    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
   4.165 +    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
   4.166 +
   4.167 +    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
   4.168 +      [lt_cv_apple_cc_single_mod=no
   4.169 +      if test -z "${LT_MULTI_MODULE}"; then
   4.170 +   # By default we will add the -single_module flag. You can override
   4.171 +   # by either setting the environment variable LT_MULTI_MODULE
   4.172 +   # non-empty at configure time, or by adding -multi_module to the
   4.173 +   # link flags.
   4.174 +   echo "int foo(void){return 1;}" > conftest.c
   4.175 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   4.176 +     -dynamiclib ${wl}-single_module conftest.c
   4.177 +   if test -f libconftest.dylib; then
   4.178 +     lt_cv_apple_cc_single_mod=yes
   4.179 +     rm -rf libconftest.dylib*
   4.180 +   fi
   4.181 +   rm conftest.c
   4.182 +      fi])
   4.183 +    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
   4.184 +      [lt_cv_ld_exported_symbols_list],
   4.185 +      [lt_cv_ld_exported_symbols_list=no
   4.186 +      save_LDFLAGS=$LDFLAGS
   4.187 +      echo "_main" > conftest.sym
   4.188 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   4.189 +      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
   4.190 +   [lt_cv_ld_exported_symbols_list=yes],
   4.191 +   [lt_cv_ld_exported_symbols_list=no])
   4.192 +   LDFLAGS="$save_LDFLAGS"
   4.193 +    ])
   4.194 +    case $host_os in
   4.195 +    rhapsody* | darwin1.[[0123]])
   4.196 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   4.197 +    darwin1.*)
   4.198 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   4.199 +    darwin*)
   4.200 +      # if running on 10.5 or later, the deployment target defaults
   4.201 +      # to the OS version, if on x86, and 10.4, the deployment
   4.202 +      # target defaults to 10.4. Don't you love it?
   4.203 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   4.204 +   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
   4.205 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   4.206 +   10.[[012]]*)
   4.207 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   4.208 +   10.*)
   4.209 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   4.210 +      esac
   4.211 +    ;;
   4.212 +  esac
   4.213 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
   4.214 +      _lt_dar_single_mod='$single_module'
   4.215 +    fi
   4.216 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
   4.217 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
   4.218 +    else
   4.219 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
   4.220 +    fi
   4.221 +    if test "$DSYMUTIL" != ":"; then
   4.222 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
   4.223 +    else
   4.224 +      _lt_dsymutil=
   4.225 +    fi
   4.226 +    ;;
   4.227 +  esac
   4.228 +])
   4.229 +
   4.230  # _LT_AC_SYS_LIBPATH_AIX
   4.231  # ----------------------
   4.232  # Links a minimal program and checks the executable
   4.233 @@ -247,12 +375,20 @@
   4.234  # If we don't find anything, use the default library path according
   4.235  # to the aix ld manual.
   4.236  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
   4.237 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   4.238 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   4.239 -}'`
   4.240 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   4.241 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   4.242 +lt_aix_libpath_sed='
   4.243 +    /Import File Strings/,/^$/ {
   4.244 +	/^0/ {
   4.245 +	    s/^0  *\(.*\)$/\1/
   4.246 +	    p
   4.247 +	}
   4.248 +    }'
   4.249 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   4.250  # Check for a 64-bit object if we didn't find anything.
   4.251 -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; }
   4.252 -}'`; fi],[])
   4.253 +if test -z "$aix_libpath"; then
   4.254 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   4.255 +fi],[])
   4.256  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   4.257  ])# _LT_AC_SYS_LIBPATH_AIX
   4.258  
   4.259 @@ -317,8 +453,8 @@
   4.260  # find a string as large as possible, as long as the shell can cope with it
   4.261    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   4.262      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   4.263 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   4.264 -       echo_test_string="`eval $cmd`" &&
   4.265 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
   4.266 +       echo_test_string=`eval $cmd` &&
   4.267         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
   4.268      then
   4.269        break
   4.270 @@ -483,13 +619,17 @@
   4.271    rm -rf conftest*
   4.272    ;;
   4.273  
   4.274 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   4.275 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
   4.276 +s390*-*linux*|sparc*-*linux*)
   4.277    # Find out which ABI we are using.
   4.278    echo 'int i;' > conftest.$ac_ext
   4.279    if AC_TRY_EVAL(ac_compile); then
   4.280 -    case "`/usr/bin/file conftest.o`" in
   4.281 +    case `/usr/bin/file conftest.o` in
   4.282      *32-bit*)
   4.283        case $host in
   4.284 +        x86_64-*kfreebsd*-gnu)
   4.285 +          LD="${LD-ld} -m elf_i386_fbsd"
   4.286 +          ;;
   4.287          x86_64-*linux*)
   4.288            LD="${LD-ld} -m elf_i386"
   4.289            ;;
   4.290 @@ -506,6 +646,9 @@
   4.291        ;;
   4.292      *64-bit*)
   4.293        case $host in
   4.294 +        x86_64-*kfreebsd*-gnu)
   4.295 +          LD="${LD-ld} -m elf_x86_64_fbsd"
   4.296 +          ;;
   4.297          x86_64-*linux*)
   4.298            LD="${LD-ld} -m elf_x86_64"
   4.299            ;;
   4.300 @@ -538,6 +681,26 @@
   4.301      CFLAGS="$SAVE_CFLAGS"
   4.302    fi
   4.303    ;;
   4.304 +sparc*-*solaris*)
   4.305 +  # Find out which ABI we are using.
   4.306 +  echo 'int i;' > conftest.$ac_ext
   4.307 +  if AC_TRY_EVAL(ac_compile); then
   4.308 +    case `/usr/bin/file conftest.o` in
   4.309 +    *64-bit*)
   4.310 +      case $lt_cv_prog_gnu_ld in
   4.311 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
   4.312 +      *)
   4.313 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   4.314 +	  LD="${LD-ld} -64"
   4.315 +	fi
   4.316 +	;;
   4.317 +      esac
   4.318 +      ;;
   4.319 +    esac
   4.320 +  fi
   4.321 +  rm -rf conftest*
   4.322 +  ;;
   4.323 +
   4.324  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   4.325  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
   4.326    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
   4.327 @@ -561,7 +724,7 @@
   4.328  AC_CACHE_CHECK([$1], [$2],
   4.329    [$2=no
   4.330    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
   4.331 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   4.332 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   4.333     lt_compiler_flag="$3"
   4.334     # Insert the option either (1) after the last *FLAGS variable, or
   4.335     # (2) before a word containing "conftest.", or (3) at the end.
   4.336 @@ -569,7 +732,7 @@
   4.337     # with a dollar sign (not a hyphen), so the echo should work correctly.
   4.338     # The option is referenced via a variable to avoid confusing sed.
   4.339     lt_compile=`echo "$ac_compile" | $SED \
   4.340 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   4.341 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   4.342     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   4.343     -e 's:$: $lt_compiler_flag:'`
   4.344     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   4.345 @@ -579,8 +742,10 @@
   4.346     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   4.347     if (exit $ac_status) && test -s "$ac_outfile"; then
   4.348       # The compiler can only warn and ignore the option if not recognized
   4.349 -     # So say no if there are warnings
   4.350 -     if test ! -s conftest.err; then
   4.351 +     # So say no if there are warnings other than the usual output.
   4.352 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   4.353 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   4.354 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   4.355         $2=yes
   4.356       fi
   4.357     fi
   4.358 @@ -600,22 +765,28 @@
   4.359  # ------------------------------------------------------------
   4.360  # Check whether the given compiler option works
   4.361  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
   4.362 -[AC_CACHE_CHECK([$1], [$2],
   4.363 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   4.364 +AC_CACHE_CHECK([$1], [$2],
   4.365    [$2=no
   4.366     save_LDFLAGS="$LDFLAGS"
   4.367     LDFLAGS="$LDFLAGS $3"
   4.368 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   4.369 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   4.370     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   4.371 -     # The compiler can only warn and ignore the option if not recognized
   4.372 +     # The linker can only warn and ignore the option if not recognized
   4.373       # So say no if there are warnings
   4.374       if test -s conftest.err; then
   4.375         # Append any errors to the config.log.
   4.376         cat conftest.err 1>&AS_MESSAGE_LOG_FD
   4.377 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
   4.378 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   4.379 +       if diff conftest.exp conftest.er2 >/dev/null; then
   4.380 +         $2=yes
   4.381 +       fi
   4.382       else
   4.383         $2=yes
   4.384       fi
   4.385     fi
   4.386 -   $rm conftest*
   4.387 +   $rm -r conftest*
   4.388     LDFLAGS="$save_LDFLAGS"
   4.389  ])
   4.390  
   4.391 @@ -676,43 +847,64 @@
   4.392      elif test -x /usr/sbin/sysctl; then
   4.393        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4.394      else
   4.395 -      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
   4.396 +      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4.397      fi
   4.398      # And add a safety zone
   4.399      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4.400 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4.401      ;;
   4.402 +
   4.403 +  interix*)
   4.404 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4.405 +    lt_cv_sys_max_cmd_len=196608
   4.406 +    ;;
   4.407 +
   4.408    osf*)
   4.409      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4.410      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4.411      # nice to cause kernel panics so lets avoid the loop below.
   4.412      # First set a reasonable default.
   4.413      lt_cv_sys_max_cmd_len=16384
   4.414 -    # 
   4.415 +    #
   4.416      if test -x /sbin/sysconfig; then
   4.417        case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4.418          *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4.419        esac
   4.420      fi
   4.421      ;;
   4.422 +  sco3.2v5*)
   4.423 +    lt_cv_sys_max_cmd_len=102400
   4.424 +    ;;
   4.425 +  sysv5* | sco5v6* | sysv4.2uw2*)
   4.426 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4.427 +    if test -n "$kargmax"; then
   4.428 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ 	]]//'`
   4.429 +    else
   4.430 +      lt_cv_sys_max_cmd_len=32768
   4.431 +    fi
   4.432 +    ;;
   4.433    *)
   4.434 -    # If test is not a shell built-in, we'll probably end up computing a
   4.435 -    # maximum length that is only half of the actual maximum length, but
   4.436 -    # we can't tell.
   4.437 -    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4.438 -    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
   4.439 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4.440 +    if test -n "$lt_cv_sys_max_cmd_len"; then
   4.441 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4.442 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4.443 +    else
   4.444 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4.445 +      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
   4.446  	       = "XX$teststring") >/dev/null 2>&1 &&
   4.447 -	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
   4.448 -	    lt_cv_sys_max_cmd_len=$new_result &&
   4.449 -	    test $i != 17 # 1/2 MB should be enough
   4.450 -    do
   4.451 -      i=`expr $i + 1`
   4.452 -      teststring=$teststring$teststring
   4.453 -    done
   4.454 -    teststring=
   4.455 -    # Add a significant safety factor because C++ compilers can tack on massive
   4.456 -    # amounts of additional arguments before passing them to the linker.
   4.457 -    # It appears as though 1/2 is a usable value.
   4.458 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4.459 +	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
   4.460 +	      lt_cv_sys_max_cmd_len=$new_result &&
   4.461 +	      test $i != 17 # 1/2 MB should be enough
   4.462 +      do
   4.463 +        i=`expr $i + 1`
   4.464 +        teststring=$teststring$teststring
   4.465 +      done
   4.466 +      teststring=
   4.467 +      # Add a significant safety factor because C++ compilers can tack on massive
   4.468 +      # amounts of additional arguments before passing them to the linker.
   4.469 +      # It appears as though 1/2 is a usable value.
   4.470 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4.471 +    fi
   4.472      ;;
   4.473    esac
   4.474  ])
   4.475 @@ -725,7 +917,7 @@
   4.476  
   4.477  
   4.478  # _LT_AC_CHECK_DLFCN
   4.479 -# --------------------
   4.480 +# ------------------
   4.481  AC_DEFUN([_LT_AC_CHECK_DLFCN],
   4.482  [AC_CHECK_HEADERS(dlfcn.h)dnl
   4.483  ])# _LT_AC_CHECK_DLFCN
   4.484 @@ -733,7 +925,7 @@
   4.485  
   4.486  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
   4.487  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
   4.488 -# ------------------------------------------------------------------
   4.489 +# ---------------------------------------------------------------------
   4.490  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
   4.491  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
   4.492  if test "$cross_compiling" = yes; then :
   4.493 @@ -799,17 +991,19 @@
   4.494        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   4.495        /* dlclose (self); */
   4.496      }
   4.497 +  else
   4.498 +    puts (dlerror ());
   4.499  
   4.500      exit (status);
   4.501  }]
   4.502  EOF
   4.503    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
   4.504 -    (./conftest; exit; ) 2>/dev/null
   4.505 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
   4.506      lt_status=$?
   4.507      case x$lt_status in
   4.508        x$lt_dlno_uscore) $1 ;;
   4.509        x$lt_dlneed_uscore) $2 ;;
   4.510 -      x$lt_unknown|x*) $3 ;;
   4.511 +      x$lt_dlunknown|x*) $3 ;;
   4.512      esac
   4.513    else :
   4.514      # compilation failed
   4.515 @@ -821,7 +1015,7 @@
   4.516  
   4.517  
   4.518  # AC_LIBTOOL_DLOPEN_SELF
   4.519 -# -------------------
   4.520 +# ----------------------
   4.521  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
   4.522  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
   4.523  if test "x$enable_dlopen" != xyes; then
   4.524 @@ -863,7 +1057,7 @@
   4.525      AC_CHECK_FUNC([shl_load],
   4.526  	  [lt_cv_dlopen="shl_load"],
   4.527        [AC_CHECK_LIB([dld], [shl_load],
   4.528 -	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
   4.529 +	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
   4.530  	[AC_CHECK_FUNC([dlopen],
   4.531  	      [lt_cv_dlopen="dlopen"],
   4.532  	  [AC_CHECK_LIB([dl], [dlopen],
   4.533 @@ -871,7 +1065,7 @@
   4.534  	    [AC_CHECK_LIB([svld], [dlopen],
   4.535  		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
   4.536  	      [AC_CHECK_LIB([dld], [dld_link],
   4.537 -		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
   4.538 +		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
   4.539  	      ])
   4.540  	    ])
   4.541  	  ])
   4.542 @@ -892,7 +1086,7 @@
   4.543      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   4.544  
   4.545      save_LDFLAGS="$LDFLAGS"
   4.546 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   4.547 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   4.548  
   4.549      save_LIBS="$LIBS"
   4.550      LIBS="$lt_cv_dlopen_libs $LIBS"
   4.551 @@ -905,7 +1099,7 @@
   4.552      ])
   4.553  
   4.554      if test "x$lt_cv_dlopen_self" = xyes; then
   4.555 -      LDFLAGS="$LDFLAGS $link_static_flag"
   4.556 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   4.557        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
   4.558      	  lt_cv_dlopen_self_static, [dnl
   4.559  	  _LT_AC_TRY_DLOPEN_SELF(
   4.560 @@ -937,7 +1131,8 @@
   4.561  # ---------------------------------
   4.562  # Check to see if options -c and -o are simultaneously supported by compiler
   4.563  AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
   4.564 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
   4.565 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   4.566 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
   4.567  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
   4.568    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
   4.569    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
   4.570 @@ -945,7 +1140,7 @@
   4.571     mkdir conftest
   4.572     cd conftest
   4.573     mkdir out
   4.574 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   4.575 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   4.576  
   4.577     lt_compiler_flag="-o out/conftest2.$ac_objext"
   4.578     # Insert the option either (1) after the last *FLAGS variable, or
   4.579 @@ -953,7 +1148,7 @@
   4.580     # Note that $ac_compile itself does not contain backslashes and begins
   4.581     # with a dollar sign (not a hyphen), so the echo should work correctly.
   4.582     lt_compile=`echo "$ac_compile" | $SED \
   4.583 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   4.584 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   4.585     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   4.586     -e 's:$: $lt_compiler_flag:'`
   4.587     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   4.588 @@ -965,11 +1160,13 @@
   4.589     then
   4.590       # The compiler can only warn and ignore the option if not recognized
   4.591       # So say no if there are warnings
   4.592 -     if test ! -s out/conftest.err; then
   4.593 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
   4.594 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   4.595 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   4.596         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
   4.597       fi
   4.598     fi
   4.599 -   chmod u+w .
   4.600 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
   4.601     $rm conftest*
   4.602     # SGI C++ compiler will create directory out/ii_files/ for
   4.603     # template instantiation
   4.604 @@ -1083,6 +1280,7 @@
   4.605     darwin*)
   4.606         if test -n "$STRIP" ; then
   4.607           striplib="$STRIP -x"
   4.608 +         old_striplib="$STRIP -S"
   4.609           AC_MSG_RESULT([yes])
   4.610         else
   4.611    AC_MSG_RESULT([no])
   4.612 @@ -1100,7 +1298,8 @@
   4.613  # -----------------------------
   4.614  # PORTME Fill in your ld.so characteristics
   4.615  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
   4.616 -[AC_MSG_CHECKING([dynamic linker characteristics])
   4.617 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   4.618 +AC_MSG_CHECKING([dynamic linker characteristics])
   4.619  library_names_spec=
   4.620  libname_spec='lib$name'
   4.621  soname_spec=
   4.622 @@ -1114,20 +1313,58 @@
   4.623  version_type=none
   4.624  dynamic_linker="$host_os ld.so"
   4.625  sys_lib_dlsearch_path_spec="/lib /usr/lib"
   4.626 +m4_if($1,[],[
   4.627  if test "$GCC" = yes; then
   4.628 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   4.629 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   4.630 +  case $host_os in
   4.631 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
   4.632 +    *) lt_awk_arg="/^libraries:/" ;;
   4.633 +  esac
   4.634 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   4.635 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
   4.636      # if the path contains ";" then we assume it to be the separator
   4.637      # otherwise default to the standard path separator (i.e. ":") - it is
   4.638      # assumed that no part of a normal pathname contains ";" but that should
   4.639      # okay in the real world where ";" in dirpaths is itself problematic.
   4.640 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   4.641 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
   4.642    else
   4.643 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   4.644 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   4.645    fi
   4.646 +  # Ok, now we have the path, separated by spaces, we can step through it
   4.647 +  # and add multilib dir if necessary.
   4.648 +  lt_tmp_lt_search_path_spec=
   4.649 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   4.650 +  for lt_sys_path in $lt_search_path_spec; do
   4.651 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
   4.652 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
   4.653 +    else
   4.654 +      test -d "$lt_sys_path" && \
   4.655 +	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   4.656 +    fi
   4.657 +  done
   4.658 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
   4.659 +BEGIN {RS=" "; FS="/|\n";} {
   4.660 +  lt_foo="";
   4.661 +  lt_count=0;
   4.662 +  for (lt_i = NF; lt_i > 0; lt_i--) {
   4.663 +    if ($lt_i != "" && $lt_i != ".") {
   4.664 +      if ($lt_i == "..") {
   4.665 +        lt_count++;
   4.666 +      } else {
   4.667 +        if (lt_count == 0) {
   4.668 +          lt_foo="/" $lt_i lt_foo;
   4.669 +        } else {
   4.670 +          lt_count--;
   4.671 +        }
   4.672 +      }
   4.673 +    }
   4.674 +  }
   4.675 +  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
   4.676 +  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
   4.677 +}'`
   4.678 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
   4.679  else
   4.680    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   4.681 -fi
   4.682 +fi])
   4.683  need_lib_prefix=unknown
   4.684  hardcode_into_libs=no
   4.685  
   4.686 @@ -1145,7 +1382,7 @@
   4.687    soname_spec='${libname}${release}${shared_ext}$major'
   4.688    ;;
   4.689  
   4.690 -aix4* | aix5*)
   4.691 +aix[[4-9]]*)
   4.692    version_type=linux
   4.693    need_lib_prefix=no
   4.694    need_version=no
   4.695 @@ -1229,7 +1466,8 @@
   4.696        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   4.697        dldir=$destdir/`dirname \$dlpath`~
   4.698        test -d \$dldir || mkdir -p \$dldir~
   4.699 -      $install_prog $dir/$dlname \$dldir/$dlname'
   4.700 +      $install_prog $dir/$dlname \$dldir/$dlname~
   4.701 +      chmod a+x \$dldir/$dlname'
   4.702      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   4.703        dlpath=$dir/\$dldll~
   4.704         $rm \$dlpath'
   4.705 @@ -1282,13 +1520,9 @@
   4.706    soname_spec='${libname}${release}${major}$shared_ext'
   4.707    shlibpath_overrides_runpath=yes
   4.708    shlibpath_var=DYLD_LIBRARY_PATH
   4.709 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
   4.710 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   4.711 -  if test "$GCC" = yes; then
   4.712 -    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"`
   4.713 -  else
   4.714 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   4.715 -  fi
   4.716 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   4.717 +  m4_if([$1], [],[
   4.718 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
   4.719    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   4.720    ;;
   4.721  
   4.722 @@ -1305,22 +1539,17 @@
   4.723    dynamic_linker=no
   4.724    ;;
   4.725  
   4.726 -kfreebsd*-gnu)
   4.727 -  version_type=linux
   4.728 -  need_lib_prefix=no
   4.729 -  need_version=no
   4.730 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   4.731 -  soname_spec='${libname}${release}${shared_ext}$major'
   4.732 -  shlibpath_var=LD_LIBRARY_PATH
   4.733 -  shlibpath_overrides_runpath=no
   4.734 -  hardcode_into_libs=yes
   4.735 -  dynamic_linker='GNU ld.so'
   4.736 -  ;;
   4.737 -
   4.738  freebsd* | dragonfly*)
   4.739    # DragonFly does not have aout.  When/if they implement a new
   4.740    # versioning mechanism, adjust this.
   4.741 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   4.742 +  if test -x /usr/bin/objformat; then
   4.743 +    objformat=`/usr/bin/objformat`
   4.744 +  else
   4.745 +    case $host_os in
   4.746 +    freebsd[[123]]*) objformat=aout ;;
   4.747 +    *) objformat=elf ;;
   4.748 +    esac
   4.749 +  fi
   4.750    version_type=freebsd-$objformat
   4.751    case $version_type in
   4.752      freebsd-elf*)
   4.753 @@ -1342,10 +1571,15 @@
   4.754      shlibpath_overrides_runpath=yes
   4.755      hardcode_into_libs=yes
   4.756      ;;
   4.757 -  *) # from 3.2 on
   4.758 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
   4.759 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
   4.760      shlibpath_overrides_runpath=no
   4.761      hardcode_into_libs=yes
   4.762      ;;
   4.763 +  *) # from 4.6 on, and DragonFly
   4.764 +    shlibpath_overrides_runpath=yes
   4.765 +    hardcode_into_libs=yes
   4.766 +    ;;
   4.767    esac
   4.768    ;;
   4.769  
   4.770 @@ -1365,7 +1599,7 @@
   4.771    version_type=sunos
   4.772    need_lib_prefix=no
   4.773    need_version=no
   4.774 -  case "$host_cpu" in
   4.775 +  case $host_cpu in
   4.776    ia64*)
   4.777      shrext_cmds='.so'
   4.778      hardcode_into_libs=yes
   4.779 @@ -1405,6 +1639,18 @@
   4.780    postinstall_cmds='chmod 555 $lib'
   4.781    ;;
   4.782  
   4.783 +interix[[3-9]]*)
   4.784 +  version_type=linux
   4.785 +  need_lib_prefix=no
   4.786 +  need_version=no
   4.787 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   4.788 +  soname_spec='${libname}${release}${shared_ext}$major'
   4.789 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   4.790 +  shlibpath_var=LD_LIBRARY_PATH
   4.791 +  shlibpath_overrides_runpath=no
   4.792 +  hardcode_into_libs=yes
   4.793 +  ;;
   4.794 +
   4.795  irix5* | irix6* | nonstopux*)
   4.796    case $host_os in
   4.797      nonstopux*) version_type=nonstopux ;;
   4.798 @@ -1448,7 +1694,7 @@
   4.799    ;;
   4.800  
   4.801  # This must be Linux ELF.
   4.802 -linux*)
   4.803 +linux* | k*bsd*-gnu)
   4.804    version_type=linux
   4.805    need_lib_prefix=no
   4.806    need_version=no
   4.807 @@ -1464,7 +1710,7 @@
   4.808  
   4.809    # Append ld.so.conf contents to the search path
   4.810    if test -f /etc/ld.so.conf; then
   4.811 -    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
   4.812 +    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' ' '`
   4.813      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   4.814    fi
   4.815  
   4.816 @@ -1477,7 +1723,7 @@
   4.817    dynamic_linker='GNU/Linux ld.so'
   4.818    ;;
   4.819  
   4.820 -knetbsd*-gnu)
   4.821 +netbsdelf*-gnu)
   4.822    version_type=linux
   4.823    need_lib_prefix=no
   4.824    need_version=no
   4.825 @@ -1486,7 +1732,7 @@
   4.826    shlibpath_var=LD_LIBRARY_PATH
   4.827    shlibpath_overrides_runpath=no
   4.828    hardcode_into_libs=yes
   4.829 -  dynamic_linker='GNU ld.so'
   4.830 +  dynamic_linker='NetBSD ld.elf_so'
   4.831    ;;
   4.832  
   4.833  netbsd*)
   4.834 @@ -1526,8 +1772,13 @@
   4.835  
   4.836  openbsd*)
   4.837    version_type=sunos
   4.838 +  sys_lib_dlsearch_path_spec="/usr/lib"
   4.839    need_lib_prefix=no
   4.840 -  need_version=no
   4.841 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   4.842 +  case $host_os in
   4.843 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
   4.844 +    *)                         need_version=no  ;;
   4.845 +  esac
   4.846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   4.847    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   4.848    shlibpath_var=LD_LIBRARY_PATH
   4.849 @@ -1565,11 +1816,8 @@
   4.850    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   4.851    ;;
   4.852  
   4.853 -sco3.2v5*)
   4.854 -  version_type=osf
   4.855 -  soname_spec='${libname}${release}${shared_ext}$major'
   4.856 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   4.857 -  shlibpath_var=LD_LIBRARY_PATH
   4.858 +rdos*)
   4.859 +  dynamic_linker=no
   4.860    ;;
   4.861  
   4.862  solaris*)
   4.863 @@ -1597,7 +1845,7 @@
   4.864    need_version=yes
   4.865    ;;
   4.866  
   4.867 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   4.868 +sysv4 | sysv4.3*)
   4.869    version_type=linux
   4.870    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   4.871    soname_spec='${libname}${release}${shared_ext}$major'
   4.872 @@ -1630,6 +1878,29 @@
   4.873    fi
   4.874    ;;
   4.875  
   4.876 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   4.877 +  version_type=freebsd-elf
   4.878 +  need_lib_prefix=no
   4.879 +  need_version=no
   4.880 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   4.881 +  soname_spec='${libname}${release}${shared_ext}$major'
   4.882 +  shlibpath_var=LD_LIBRARY_PATH
   4.883 +  hardcode_into_libs=yes
   4.884 +  if test "$with_gnu_ld" = yes; then
   4.885 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   4.886 +    shlibpath_overrides_runpath=no
   4.887 +  else
   4.888 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   4.889 +    shlibpath_overrides_runpath=yes
   4.890 +    case $host_os in
   4.891 +      sco3.2v5*)
   4.892 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   4.893 +	;;
   4.894 +    esac
   4.895 +  fi
   4.896 +  sys_lib_dlsearch_path_spec='/usr/lib'
   4.897 +  ;;
   4.898 +
   4.899  uts4*)
   4.900    version_type=linux
   4.901    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   4.902 @@ -1643,13 +1914,26 @@
   4.903  esac
   4.904  AC_MSG_RESULT([$dynamic_linker])
   4.905  test "$dynamic_linker" = no && can_build_shared=no
   4.906 +
   4.907 +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
   4.908 +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
   4.909 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   4.910 +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
   4.911 +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
   4.912 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   4.913 +
   4.914 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   4.915 +if test "$GCC" = yes; then
   4.916 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   4.917 +fi
   4.918  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
   4.919  
   4.920  
   4.921  # _LT_AC_TAGCONFIG
   4.922  # ----------------
   4.923  AC_DEFUN([_LT_AC_TAGCONFIG],
   4.924 -[AC_ARG_WITH([tags],
   4.925 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
   4.926 +AC_ARG_WITH([tags],
   4.927      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
   4.928          [include additional configurations @<:@automatic@:>@])],
   4.929      [tagnames="$withval"])
   4.930 @@ -1667,6 +1951,9 @@
   4.931        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
   4.932      fi
   4.933    fi
   4.934 +  if test -z "$LTCFLAGS"; then
   4.935 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
   4.936 +  fi
   4.937  
   4.938    # Extract list of available tagged configurations in $ofile.
   4.939    # Note that this assumes the entire list is on one line.
   4.940 @@ -1757,7 +2044,7 @@
   4.941  
   4.942  # AC_LIBTOOL_WIN32_DLL
   4.943  # --------------------
   4.944 -# declare package support for building win32 dll's
   4.945 +# declare package support for building win32 DLLs
   4.946  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
   4.947  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
   4.948  ])# AC_LIBTOOL_WIN32_DLL
   4.949 @@ -1795,7 +2082,7 @@
   4.950  
   4.951  # AC_DISABLE_SHARED
   4.952  # -----------------
   4.953 -#- set the default shared flag to --disable-shared
   4.954 +# set the default shared flag to --disable-shared
   4.955  AC_DEFUN([AC_DISABLE_SHARED],
   4.956  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   4.957  AC_ENABLE_SHARED(no)
   4.958 @@ -1907,7 +2194,7 @@
   4.959  
   4.960  # AC_PATH_TOOL_PREFIX
   4.961  # -------------------
   4.962 -# find a file program which can recognise shared library
   4.963 +# find a file program which can recognize shared library
   4.964  AC_DEFUN([AC_PATH_TOOL_PREFIX],
   4.965  [AC_REQUIRE([AC_PROG_EGREP])dnl
   4.966  AC_MSG_CHECKING([for $1])
   4.967 @@ -1931,7 +2218,7 @@
   4.968        if test -n "$file_magic_test_file"; then
   4.969  	case $deplibs_check_method in
   4.970  	"file_magic "*)
   4.971 -	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
   4.972 +	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   4.973  	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   4.974  	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   4.975  	    $EGREP "$file_magic_regex" > /dev/null; then
   4.976 @@ -1970,7 +2257,7 @@
   4.977  
   4.978  # AC_PATH_MAGIC
   4.979  # -------------
   4.980 -# find a file program which can recognise a shared library
   4.981 +# find a file program which can recognize a shared library
   4.982  AC_DEFUN([AC_PATH_MAGIC],
   4.983  [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
   4.984  if test -z "$lt_cv_path_MAGIC_CMD"; then
   4.985 @@ -2041,7 +2328,7 @@
   4.986      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4.987        lt_cv_path_LD="$ac_dir/$ac_prog"
   4.988        # Check to see if the program is GNU ld.  I'd rather use --version,
   4.989 -      # but apparently some GNU ld's only accept -v.
   4.990 +      # but apparently some variants of GNU ld only accept -v.
   4.991        # Break only if it was the GNU/non-GNU ld that we prefer.
   4.992        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4.993        *GNU* | *'with BFD'*)
   4.994 @@ -2073,7 +2360,7 @@
   4.995  AC_DEFUN([AC_PROG_LD_GNU],
   4.996  [AC_REQUIRE([AC_PROG_EGREP])dnl
   4.997  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
   4.998 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
   4.999 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  4.1000  case `$LD -v 2>&1 </dev/null` in
  4.1001  *GNU* | *'with BFD'*)
  4.1002    lt_cv_prog_gnu_ld=yes
  4.1003 @@ -2103,7 +2390,7 @@
  4.1004  case $host_os in
  4.1005    darwin*)
  4.1006      if test "$GCC" = yes; then
  4.1007 -      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  4.1008 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4.1009      else
  4.1010        reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4.1011      fi
  4.1012 @@ -2117,7 +2404,7 @@
  4.1013  # how to check for library dependencies
  4.1014  #  -- PORTME fill in with the dynamic library characteristics
  4.1015  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  4.1016 -[AC_CACHE_CHECK([how to recognise dependent libraries],
  4.1017 +[AC_CACHE_CHECK([how to recognize dependent libraries],
  4.1018  lt_cv_deplibs_check_method,
  4.1019  [lt_cv_file_magic_cmd='$MAGIC_CMD'
  4.1020  lt_cv_file_magic_test_file=
  4.1021 @@ -2134,7 +2421,7 @@
  4.1022  # whether `pass_all' will *always* work, you probably want this one.
  4.1023  
  4.1024  case $host_os in
  4.1025 -aix4* | aix5*)
  4.1026 +aix[[4-9]]*)
  4.1027    lt_cv_deplibs_check_method=pass_all
  4.1028    ;;
  4.1029  
  4.1030 @@ -2156,16 +2443,22 @@
  4.1031  
  4.1032  mingw* | pw32*)
  4.1033    # Base MSYS/MinGW do not provide the 'file' command needed by
  4.1034 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4.1035 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4.1036 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
  4.1037 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4.1038 +  # unless we find 'file', for example because we are cross-compiling.
  4.1039 +  if ( file / ) >/dev/null 2>&1; then
  4.1040 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4.1041 +    lt_cv_file_magic_cmd='func_win32_libid'
  4.1042 +  else
  4.1043 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4.1044 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
  4.1045 +  fi
  4.1046    ;;
  4.1047  
  4.1048  darwin* | rhapsody*)
  4.1049    lt_cv_deplibs_check_method=pass_all
  4.1050    ;;
  4.1051  
  4.1052 -freebsd* | kfreebsd*-gnu | dragonfly*)
  4.1053 +freebsd* | dragonfly*)
  4.1054    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4.1055      case $host_cpu in
  4.1056      i*86 )
  4.1057 @@ -2187,7 +2480,7 @@
  4.1058  
  4.1059  hpux10.20* | hpux11*)
  4.1060    lt_cv_file_magic_cmd=/usr/bin/file
  4.1061 -  case "$host_cpu" in
  4.1062 +  case $host_cpu in
  4.1063    ia64*)
  4.1064      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4.1065      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4.1066 @@ -2203,6 +2496,11 @@
  4.1067    esac
  4.1068    ;;
  4.1069  
  4.1070 +interix[[3-9]]*)
  4.1071 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4.1072 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4.1073 +  ;;
  4.1074 +
  4.1075  irix5* | irix6* | nonstopux*)
  4.1076    case $LD in
  4.1077    *-32|*"-32 ") libmagic=32-bit;;
  4.1078 @@ -2214,11 +2512,11 @@
  4.1079    ;;
  4.1080  
  4.1081  # This must be Linux ELF.
  4.1082 -linux*)
  4.1083 +linux* | k*bsd*-gnu)
  4.1084    lt_cv_deplibs_check_method=pass_all
  4.1085    ;;
  4.1086  
  4.1087 -netbsd*)
  4.1088 +netbsd* | netbsdelf*-gnu)
  4.1089    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4.1090      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4.1091    else
  4.1092 @@ -2248,7 +2546,7 @@
  4.1093    lt_cv_deplibs_check_method=pass_all
  4.1094    ;;
  4.1095  
  4.1096 -sco3.2v5*)
  4.1097 +rdos*)
  4.1098    lt_cv_deplibs_check_method=pass_all
  4.1099    ;;
  4.1100  
  4.1101 @@ -2256,7 +2554,7 @@
  4.1102    lt_cv_deplibs_check_method=pass_all
  4.1103    ;;
  4.1104  
  4.1105 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4.1106 +sysv4 | sysv4.3*)
  4.1107    case $host_vendor in
  4.1108    motorola)
  4.1109      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]]'
  4.1110 @@ -2277,10 +2575,13 @@
  4.1111    siemens)
  4.1112      lt_cv_deplibs_check_method=pass_all
  4.1113      ;;
  4.1114 +  pc)
  4.1115 +    lt_cv_deplibs_check_method=pass_all
  4.1116 +    ;;
  4.1117    esac
  4.1118    ;;
  4.1119  
  4.1120 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  4.1121 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4.1122    lt_cv_deplibs_check_method=pass_all
  4.1123    ;;
  4.1124  esac
  4.1125 @@ -2300,36 +2601,43 @@
  4.1126    # Let the user override the test.
  4.1127    lt_cv_path_NM="$NM"
  4.1128  else
  4.1129 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4.1130 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4.1131 -    IFS="$lt_save_ifs"
  4.1132 -    test -z "$ac_dir" && ac_dir=.
  4.1133 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4.1134 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4.1135 -      # Check to see if the nm accepts a BSD-compat flag.
  4.1136 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4.1137 -      #   nm: unknown option "B" ignored
  4.1138 -      # Tru64's nm complains that /dev/null is an invalid object file
  4.1139 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4.1140 -      */dev/null* | *'Invalid file or object type'*)
  4.1141 -	lt_cv_path_NM="$tmp_nm -B"
  4.1142 -	break
  4.1143 -        ;;
  4.1144 -      *)
  4.1145 -	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4.1146 -	*/dev/null*)
  4.1147 -	  lt_cv_path_NM="$tmp_nm -p"
  4.1148 +  lt_nm_to_check="${ac_tool_prefix}nm"
  4.1149 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4.1150 +    lt_nm_to_check="$lt_nm_to_check nm"
  4.1151 +  fi
  4.1152 +  for lt_tmp_nm in $lt_nm_to_check; do
  4.1153 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4.1154 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4.1155 +      IFS="$lt_save_ifs"
  4.1156 +      test -z "$ac_dir" && ac_dir=.
  4.1157 +      tmp_nm="$ac_dir/$lt_tmp_nm"
  4.1158 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4.1159 +	# Check to see if the nm accepts a BSD-compat flag.
  4.1160 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4.1161 +	#   nm: unknown option "B" ignored
  4.1162 +	# Tru64's nm complains that /dev/null is an invalid object file
  4.1163 +	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4.1164 +	*/dev/null* | *'Invalid file or object type'*)
  4.1165 +	  lt_cv_path_NM="$tmp_nm -B"
  4.1166  	  break
  4.1167  	  ;;
  4.1168  	*)
  4.1169 -	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4.1170 -	  continue # so that we can try to find one that supports BSD flags
  4.1171 +	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4.1172 +	  */dev/null*)
  4.1173 +	    lt_cv_path_NM="$tmp_nm -p"
  4.1174 +	    break
  4.1175 +	    ;;
  4.1176 +	  *)
  4.1177 +	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4.1178 +	    continue # so that we can try to find one that supports BSD flags
  4.1179 +	    ;;
  4.1180 +	  esac
  4.1181  	  ;;
  4.1182  	esac
  4.1183 -      esac
  4.1184 -    fi
  4.1185 +      fi
  4.1186 +    done
  4.1187 +    IFS="$lt_save_ifs"
  4.1188    done
  4.1189 -  IFS="$lt_save_ifs"
  4.1190    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4.1191  fi])
  4.1192  NM="$lt_cv_path_NM"
  4.1193 @@ -2361,13 +2669,13 @@
  4.1194  # -----------------------------------
  4.1195  # sets LIBLTDL to the link flags for the libltdl convenience library and
  4.1196  # LTDLINCL to the include flags for the libltdl header and adds
  4.1197 -# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
  4.1198 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  4.1199 -# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
  4.1200 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  4.1201 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
  4.1202 -# flat and you're not using automake, define top_builddir and
  4.1203 -# top_srcdir appropriately in the Makefiles.
  4.1204 +# --enable-ltdl-convenience to the configure arguments.  Note that
  4.1205 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
  4.1206 +# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
  4.1207 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4.1208 +# (note the single quotes!).  If your package is not flat and you're not
  4.1209 +# using automake, define top_builddir and top_srcdir appropriately in
  4.1210 +# the Makefiles.
  4.1211  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4.1212  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4.1213    case $enable_ltdl_convenience in
  4.1214 @@ -2386,13 +2694,13 @@
  4.1215  # -----------------------------------
  4.1216  # sets LIBLTDL to the link flags for the libltdl installable library and
  4.1217  # LTDLINCL to the include flags for the libltdl header and adds
  4.1218 -# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
  4.1219 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  4.1220 -# DIRECTORY is not provided and an installed libltdl is not found, it is
  4.1221 -# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
  4.1222 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  4.1223 -# quotes!).  If your package is not flat and you're not using automake,
  4.1224 -# define top_builddir and top_srcdir appropriately in the Makefiles.
  4.1225 +# --enable-ltdl-install to the configure arguments.  Note that
  4.1226 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
  4.1227 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4.1228 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4.1229 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
  4.1230 +# flat and you're not using automake, define top_builddir and top_srcdir
  4.1231 +# appropriately in the Makefiles.
  4.1232  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4.1233  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4.1234  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4.1235 @@ -2435,7 +2743,7 @@
  4.1236  ])# _LT_AC_LANG_CXX
  4.1237  
  4.1238  # _LT_AC_PROG_CXXCPP
  4.1239 -# ---------------
  4.1240 +# ------------------
  4.1241  AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4.1242  [
  4.1243  AC_REQUIRE([AC_PROG_CXX])
  4.1244 @@ -2484,7 +2792,7 @@
  4.1245  
  4.1246  
  4.1247  # AC_LIBTOOL_RC
  4.1248 -# --------------
  4.1249 +# -------------
  4.1250  # enable support for Windows resource files
  4.1251  AC_DEFUN([AC_LIBTOOL_RC],
  4.1252  [AC_REQUIRE([LT_AC_PROG_RC])
  4.1253 @@ -2510,43 +2818,16 @@
  4.1254  _LT_AC_TAGVAR(objext, $1)=$objext
  4.1255  
  4.1256  # Code to be used in simple compile tests
  4.1257 -lt_simple_compile_test_code="int some_variable = 0;\n"
  4.1258 +lt_simple_compile_test_code="int some_variable = 0;"
  4.1259  
  4.1260  # Code to be used in simple link tests
  4.1261 -lt_simple_link_test_code='int main(){return(0);}\n'
  4.1262 +lt_simple_link_test_code='int main(){return(0);}'
  4.1263  
  4.1264  _LT_AC_SYS_COMPILER
  4.1265  
  4.1266 -#
  4.1267 -# Check for any special shared library compilation flags.
  4.1268 -#
  4.1269 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  4.1270 -if test "$GCC" = no; then
  4.1271 -  case $host_os in
  4.1272 -  sco3.2v5*)
  4.1273 -    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  4.1274 -    ;;
  4.1275 -  esac
  4.1276 -fi
  4.1277 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  4.1278 -  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  4.1279 -  if echo "$old_CC $old_CFLAGS " | grep "[[ 	]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ 	]]" >/dev/null; then :
  4.1280 -  else
  4.1281 -    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  4.1282 -    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  4.1283 -  fi
  4.1284 -fi
  4.1285 -
  4.1286 -
  4.1287 -#
  4.1288 -# Check to make sure the static flag actually works.
  4.1289 -#
  4.1290 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  4.1291 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  4.1292 -  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  4.1293 -  [],
  4.1294 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4.1295 -
  4.1296 +# save warnings/boilerplate of simple test code
  4.1297 +_LT_COMPILER_BOILERPLATE
  4.1298 +_LT_LINKER_BOILERPLATE
  4.1299  
  4.1300  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4.1301  AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4.1302 @@ -2556,9 +2837,9 @@
  4.1303  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4.1304  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4.1305  AC_LIBTOOL_SYS_LIB_STRIP
  4.1306 -AC_LIBTOOL_DLOPEN_SELF($1)
  4.1307 -
  4.1308 -# Report which librarie types wil actually be built
  4.1309 +AC_LIBTOOL_DLOPEN_SELF
  4.1310 +
  4.1311 +# Report which library types will actually be built
  4.1312  AC_MSG_CHECKING([if libtool supports shared libraries])
  4.1313  AC_MSG_RESULT([$can_build_shared])
  4.1314  
  4.1315 @@ -2567,7 +2848,7 @@
  4.1316  
  4.1317  # On AIX, shared libraries and static libraries use the same namespace, and
  4.1318  # are all built from PIC.
  4.1319 -case "$host_os" in
  4.1320 +case $host_os in
  4.1321  aix3*)
  4.1322    test "$enable_shared" = yes && enable_static=no
  4.1323    if test -n "$RANLIB"; then
  4.1324 @@ -2576,7 +2857,7 @@
  4.1325    fi
  4.1326    ;;
  4.1327  
  4.1328 -aix4* | aix5*)
  4.1329 +aix[[4-9]]*)
  4.1330    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4.1331      test "$enable_shared" = yes && enable_static=no
  4.1332    fi
  4.1333 @@ -2617,6 +2898,7 @@
  4.1334  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4.1335  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4.1336  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4.1337 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4.1338  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4.1339  _LT_AC_TAGVAR(module_cmds, $1)=
  4.1340  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4.1341 @@ -2632,23 +2914,28 @@
  4.1342  _LT_AC_TAGVAR(predeps, $1)=
  4.1343  _LT_AC_TAGVAR(postdeps, $1)=
  4.1344  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4.1345 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  4.1346  
  4.1347  # Source file extension for C++ test sources.
  4.1348 -ac_ext=cc
  4.1349 +ac_ext=cpp
  4.1350  
  4.1351  # Object file extension for compiled C++ test sources.
  4.1352  objext=o
  4.1353  _LT_AC_TAGVAR(objext, $1)=$objext
  4.1354  
  4.1355  # Code to be used in simple compile tests
  4.1356 -lt_simple_compile_test_code="int some_variable = 0;\n"
  4.1357 +lt_simple_compile_test_code="int some_variable = 0;"
  4.1358  
  4.1359  # Code to be used in simple link tests
  4.1360 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  4.1361 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  4.1362  
  4.1363  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4.1364  _LT_AC_SYS_COMPILER
  4.1365  
  4.1366 +# save warnings/boilerplate of simple test code
  4.1367 +_LT_COMPILER_BOILERPLATE
  4.1368 +_LT_LINKER_BOILERPLATE
  4.1369 +
  4.1370  # Allow CC to be a program name with arguments.
  4.1371  lt_save_CC=$CC
  4.1372  lt_save_LD=$LD
  4.1373 @@ -2659,18 +2946,18 @@
  4.1374  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4.1375    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4.1376  else
  4.1377 -  unset lt_cv_prog_gnu_ld
  4.1378 +  $as_unset lt_cv_prog_gnu_ld
  4.1379  fi
  4.1380  if test -n "${lt_cv_path_LDCXX+set}"; then
  4.1381    lt_cv_path_LD=$lt_cv_path_LDCXX
  4.1382  else
  4.1383 -  unset lt_cv_path_LD
  4.1384 +  $as_unset lt_cv_path_LD
  4.1385  fi
  4.1386  test -z "${LDCXX+set}" || LD=$LDCXX
  4.1387  CC=${CXX-"c++"}
  4.1388  compiler=$CC
  4.1389  _LT_AC_TAGVAR(compiler, $1)=$CC
  4.1390 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4.1391 +_LT_CC_BASENAME([$compiler])
  4.1392  
  4.1393  # We don't want -fno-exception wen compiling C++ code, so set the
  4.1394  # no_builtin_flag separately
  4.1395 @@ -2737,7 +3024,7 @@
  4.1396      # FIXME: insert proper C++ library support
  4.1397      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1398      ;;
  4.1399 -  aix4* | aix5*)
  4.1400 +  aix[[4-9]]*)
  4.1401      if test "$host_cpu" = ia64; then
  4.1402        # On IA64, the linker does run time linking by default, so we don't
  4.1403        # have to do anything special.
  4.1404 @@ -2750,7 +3037,7 @@
  4.1405        # Test if we are trying to use run time linking or normal
  4.1406        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4.1407        # need to do runtime linking.
  4.1408 -      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  4.1409 +      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4.1410  	for ld_flag in $LDFLAGS; do
  4.1411  	  case $ld_flag in
  4.1412  	  *-brtl*)
  4.1413 @@ -2759,6 +3046,7 @@
  4.1414  	    ;;
  4.1415  	  esac
  4.1416  	done
  4.1417 +	;;
  4.1418        esac
  4.1419  
  4.1420        exp_sym_flag='-bexport'
  4.1421 @@ -2785,7 +3073,7 @@
  4.1422  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  4.1423  	then
  4.1424  	  # We have reworked collect2
  4.1425 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.1426 +	  :
  4.1427  	else
  4.1428  	  # We have old collect2
  4.1429  	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4.1430 @@ -2796,6 +3084,7 @@
  4.1431  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4.1432  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4.1433  	fi
  4.1434 +	;;
  4.1435        esac
  4.1436        shared_flag='-shared'
  4.1437        if test "$aix_use_runtimelinking" = yes; then
  4.1438 @@ -2827,12 +3116,12 @@
  4.1439        _LT_AC_SYS_LIBPATH_AIX
  4.1440        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4.1441  
  4.1442 -      _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"
  4.1443 +      _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"
  4.1444       else
  4.1445        if test "$host_cpu" = ia64; then
  4.1446  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4.1447  	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4.1448 -	_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"
  4.1449 +	_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"
  4.1450        else
  4.1451  	# Determine the default libpath from the value encoded in an empty executable.
  4.1452  	_LT_AC_SYS_LIBPATH_AIX
  4.1453 @@ -2841,16 +3130,26 @@
  4.1454  	# -berok will link without error, but may produce a broken library.
  4.1455  	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4.1456  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4.1457 -	# -bexpall does not export symbols beginning with underscore (_)
  4.1458 -	_LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4.1459  	# Exported symbols can be pulled into shared objects from archives
  4.1460 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  4.1461 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4.1462  	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  4.1463 -	# This is similar to how AIX traditionally builds it's shared libraries.
  4.1464 -	_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'
  4.1465 +	# This is similar to how AIX traditionally builds its shared libraries.
  4.1466 +	_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'
  4.1467        fi
  4.1468      fi
  4.1469      ;;
  4.1470 +
  4.1471 +  beos*)
  4.1472 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4.1473 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4.1474 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4.1475 +      # support --undefined.  This deserves some investigation.  FIXME
  4.1476 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4.1477 +    else
  4.1478 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1479 +    fi
  4.1480 +    ;;
  4.1481 +
  4.1482    chorus*)
  4.1483      case $cc_basename in
  4.1484        *)
  4.1485 @@ -2860,7 +3159,6 @@
  4.1486      esac
  4.1487      ;;
  4.1488  
  4.1489 -
  4.1490    cygwin* | mingw* | pw32*)
  4.1491      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4.1492      # as there is no search path for DLLs.
  4.1493 @@ -2870,7 +3168,7 @@
  4.1494      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4.1495  
  4.1496      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4.1497 -      _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'
  4.1498 +      _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'
  4.1499        # If the export-symbols file already is a .def file (1st line
  4.1500        # is EXPORTS), use it as is; otherwise, prepend...
  4.1501        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4.1502 @@ -2879,65 +3177,37 @@
  4.1503  	echo EXPORTS > $output_objdir/$soname.def;
  4.1504  	cat $export_symbols >> $output_objdir/$soname.def;
  4.1505        fi~
  4.1506 -      $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'
  4.1507 +      $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'
  4.1508      else
  4.1509        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1510      fi
  4.1511    ;;
  4.1512        darwin* | rhapsody*)
  4.1513 -        case "$host_os" in
  4.1514 -        rhapsody* | darwin1.[[012]])
  4.1515 -         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  4.1516 -         ;;
  4.1517 -       *) # Darwin 1.3 on
  4.1518 -         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4.1519 -           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  4.1520 -         else
  4.1521 -           case ${MACOSX_DEPLOYMENT_TARGET} in
  4.1522 -             10.[[012]])
  4.1523 -               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  4.1524 -               ;;
  4.1525 -             10.*)
  4.1526 -               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  4.1527 -               ;;
  4.1528 -           esac
  4.1529 -         fi
  4.1530 -         ;;
  4.1531 -        esac
  4.1532        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4.1533        _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4.1534        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4.1535        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4.1536        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  4.1537        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4.1538 -
  4.1539 -    if test "$GXX" = yes ; then
  4.1540 -      lt_int_apple_cc_single_mod=no
  4.1541 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  4.1542 +      if test "$GXX" = yes ; then
  4.1543        output_verbose_link_cmd='echo'
  4.1544 -      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  4.1545 -       lt_int_apple_cc_single_mod=yes
  4.1546 +      _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}"
  4.1547 +      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  4.1548 +      _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}"
  4.1549 +      _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}"
  4.1550 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  4.1551 +        _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}"
  4.1552 +        _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}"
  4.1553        fi
  4.1554 -      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4.1555 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4.1556        else
  4.1557 -          _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'
  4.1558 -        fi
  4.1559 -        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4.1560 -        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4.1561 -          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4.1562 -            _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}'
  4.1563 -          else
  4.1564 -            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4.1565 -          fi
  4.1566 -            _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}'
  4.1567 -      else
  4.1568 -      case "$cc_basename" in
  4.1569 +      case $cc_basename in
  4.1570          xlc*)
  4.1571           output_verbose_link_cmd='echo'
  4.1572 -          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  4.1573 +          _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'
  4.1574            _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4.1575 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4.1576 -          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4.1577 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  4.1578 +          _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}'
  4.1579            _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}'
  4.1580            ;;
  4.1581         *)
  4.1582 @@ -2949,11 +3219,11 @@
  4.1583  
  4.1584    dgux*)
  4.1585      case $cc_basename in
  4.1586 -      ec++)
  4.1587 +      ec++*)
  4.1588  	# FIXME: insert proper C++ library support
  4.1589  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1590  	;;
  4.1591 -      ghcx)
  4.1592 +      ghcx*)
  4.1593  	# Green Hills C++ Compiler
  4.1594  	# FIXME: insert proper C++ library support
  4.1595  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1596 @@ -2971,7 +3241,7 @@
  4.1597    freebsd-elf*)
  4.1598      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4.1599      ;;
  4.1600 -  freebsd* | kfreebsd*-gnu | dragonfly*)
  4.1601 +  freebsd* | dragonfly*)
  4.1602      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  4.1603      # conventions
  4.1604      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4.1605 @@ -2988,11 +3258,11 @@
  4.1606  				# location of the library.
  4.1607  
  4.1608      case $cc_basename in
  4.1609 -    CC)
  4.1610 +    CC*)
  4.1611        # FIXME: insert proper C++ library support
  4.1612        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1613        ;;
  4.1614 -    aCC)
  4.1615 +    aCC*)
  4.1616        _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'
  4.1617        # Commands to make compiler produce verbose output that lists
  4.1618        # what "hidden" libraries, object files and flags are used when
  4.1619 @@ -3016,34 +3286,21 @@
  4.1620      ;;
  4.1621    hpux10*|hpux11*)
  4.1622      if test $with_gnu_ld = no; then
  4.1623 -      case "$host_cpu" in
  4.1624 -      hppa*64*)
  4.1625 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4.1626 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4.1627 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.1628 -        ;;
  4.1629 -      ia64*)
  4.1630 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4.1631 -        ;;
  4.1632 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4.1633 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.1634 +
  4.1635 +      case $host_cpu in
  4.1636 +      hppa*64*|ia64*) ;;
  4.1637        *)
  4.1638 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4.1639 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.1640  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.1641          ;;
  4.1642        esac
  4.1643      fi
  4.1644 -    case "$host_cpu" in
  4.1645 -    hppa*64*)
  4.1646 +    case $host_cpu in
  4.1647 +    hppa*64*|ia64*)
  4.1648        _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4.1649        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.1650        ;;
  4.1651 -    ia64*)
  4.1652 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4.1653 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.1654 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4.1655 -					      # but as the default
  4.1656 -					      # location of the library.
  4.1657 -      ;;
  4.1658      *)
  4.1659        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.1660        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4.1661 @@ -3053,14 +3310,17 @@
  4.1662      esac
  4.1663  
  4.1664      case $cc_basename in
  4.1665 -      CC)
  4.1666 +      CC*)
  4.1667  	# FIXME: insert proper C++ library support
  4.1668  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1669  	;;
  4.1670 -      aCC)
  4.1671 -	case "$host_cpu" in
  4.1672 -	hppa*64*|ia64*)
  4.1673 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  4.1674 +      aCC*)
  4.1675 +	case $host_cpu in
  4.1676 +	hppa*64*)
  4.1677 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4.1678 +	  ;;
  4.1679 +	ia64*)
  4.1680 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4.1681  	  ;;
  4.1682  	*)
  4.1683  	  _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'
  4.1684 @@ -3079,9 +3339,12 @@
  4.1685        *)
  4.1686  	if test "$GXX" = yes; then
  4.1687  	  if test $with_gnu_ld = no; then
  4.1688 -	    case "$host_cpu" in
  4.1689 -	    ia64*|hppa*64*)
  4.1690 -	      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  4.1691 +	    case $host_cpu in
  4.1692 +	    hppa*64*)
  4.1693 +	      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4.1694 +	      ;;
  4.1695 +	    ia64*)
  4.1696 +	      _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'
  4.1697  	      ;;
  4.1698  	    *)
  4.1699  	      _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'
  4.1700 @@ -3095,11 +3358,25 @@
  4.1701  	;;
  4.1702      esac
  4.1703      ;;
  4.1704 +  interix[[3-9]]*)
  4.1705 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4.1706 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.1707 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4.1708 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.1709 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4.1710 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
  4.1711 +    # default) and relocated if they conflict, which is a slow very memory
  4.1712 +    # consuming and fragmenting process.  To avoid this, we pick a random,
  4.1713 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4.1714 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  4.1715 +    _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'
  4.1716 +    _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'
  4.1717 +    ;;
  4.1718    irix5* | irix6*)
  4.1719      case $cc_basename in
  4.1720 -      CC)
  4.1721 +      CC*)
  4.1722  	# SGI C++
  4.1723 -	_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'
  4.1724 +	_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'
  4.1725  
  4.1726  	# Archives containing C++ object files must be created using
  4.1727  	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  4.1728 @@ -3110,7 +3387,7 @@
  4.1729        *)
  4.1730  	if test "$GXX" = yes; then
  4.1731  	  if test "$with_gnu_ld" = no; then
  4.1732 -	    _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'
  4.1733 +	    _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'
  4.1734  	  else
  4.1735  	    _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'
  4.1736  	  fi
  4.1737 @@ -3121,9 +3398,9 @@
  4.1738      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4.1739      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.1740      ;;
  4.1741 -  linux*)
  4.1742 +  linux* | k*bsd*-gnu)
  4.1743      case $cc_basename in
  4.1744 -      KCC)
  4.1745 +      KCC*)
  4.1746  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  4.1747  
  4.1748  	# KCC will only create a shared library if the output file
  4.1749 @@ -3148,7 +3425,7 @@
  4.1750  	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4.1751  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4.1752  	;;
  4.1753 -      icpc)
  4.1754 +      icpc*)
  4.1755  	# Intel C++
  4.1756  	with_gnu_ld=yes
  4.1757  	# version 8.0 and above of icpc choke on multiply defined symbols
  4.1758 @@ -3173,15 +3450,16 @@
  4.1759  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4.1760  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4.1761  	;;
  4.1762 -      pgCC)
  4.1763 +      pgCC* | pgcpp*)
  4.1764          # Portland Group C++ compiler
  4.1765 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  4.1766 -  	_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'
  4.1767 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  4.1768 +  	_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'
  4.1769  
  4.1770  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4.1771  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4.1772 +	_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'
  4.1773          ;;
  4.1774 -      cxx)
  4.1775 +      cxx*)
  4.1776  	# Compaq C++
  4.1777  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4.1778  	_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'
  4.1779 @@ -3200,6 +3478,29 @@
  4.1780  	# dependencies.
  4.1781  	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'
  4.1782  	;;
  4.1783 +      *)
  4.1784 +	case `$CC -V 2>&1 | sed 5q` in
  4.1785 +	*Sun\ C*)
  4.1786 +	  # Sun C++ 5.9
  4.1787 +	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4.1788 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4.1789 +	  _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'
  4.1790 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4.1791 +	  _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'
  4.1792 +
  4.1793 +	  # Not sure whether something based on
  4.1794 +	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  4.1795 +	  # would be better.
  4.1796 +	  output_verbose_link_cmd='echo'
  4.1797 +
  4.1798 +	  # Archives containing C++ object files must be created using
  4.1799 +	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  4.1800 +	  # necessary to make sure instantiated templates are included
  4.1801 +	  # in the archive.
  4.1802 +	  _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4.1803 +	  ;;
  4.1804 +	esac
  4.1805 +	;;
  4.1806      esac
  4.1807      ;;
  4.1808    lynxos*)
  4.1809 @@ -3212,7 +3513,7 @@
  4.1810      ;;
  4.1811    mvs*)
  4.1812      case $cc_basename in
  4.1813 -      cxx)
  4.1814 +      cxx*)
  4.1815  	# FIXME: insert proper C++ library support
  4.1816  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1817  	;;
  4.1818 @@ -3222,7 +3523,7 @@
  4.1819  	;;
  4.1820      esac
  4.1821      ;;
  4.1822 -  netbsd*)
  4.1823 +  netbsd* | netbsdelf*-gnu)
  4.1824      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4.1825        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4.1826        wlarc=
  4.1827 @@ -3238,20 +3539,24 @@
  4.1828      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1829      ;;
  4.1830    openbsd*)
  4.1831 -    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.1832 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.1833 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4.1834 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4.1835 -    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4.1836 -      _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'
  4.1837 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.1838 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4.1839 +    if test -f /usr/libexec/ld.so; then
  4.1840 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.1841 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.1842 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4.1843 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4.1844 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4.1845 +	_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'
  4.1846 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.1847 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4.1848 +      fi
  4.1849 +      output_verbose_link_cmd='echo'
  4.1850 +    else
  4.1851 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1852      fi
  4.1853 -    output_verbose_link_cmd='echo'
  4.1854      ;;
  4.1855    osf3*)
  4.1856      case $cc_basename in
  4.1857 -      KCC)
  4.1858 +      KCC*)
  4.1859  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  4.1860  
  4.1861  	# KCC will only create a shared library if the output file
  4.1862 @@ -3267,14 +3572,14 @@
  4.1863  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4.1864  
  4.1865  	;;
  4.1866 -      RCC)
  4.1867 +      RCC*)
  4.1868  	# Rational C++ 2.4.1
  4.1869  	# FIXME: insert proper C++ library support
  4.1870  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1871  	;;
  4.1872 -      cxx)
  4.1873 +      cxx*)
  4.1874  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4.1875 -	_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'
  4.1876 +	_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'
  4.1877  
  4.1878  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4.1879  	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.1880 @@ -3292,7 +3597,7 @@
  4.1881        *)
  4.1882  	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4.1883  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4.1884 -	  _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'
  4.1885 +	  _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'
  4.1886  
  4.1887  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4.1888  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.1889 @@ -3311,7 +3616,7 @@
  4.1890      ;;
  4.1891    osf4* | osf5*)
  4.1892      case $cc_basename in
  4.1893 -      KCC)
  4.1894 +      KCC*)
  4.1895  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  4.1896  
  4.1897  	# KCC will only create a shared library if the output file
  4.1898 @@ -3326,17 +3631,17 @@
  4.1899  	# the KAI C++ compiler.
  4.1900  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4.1901  	;;
  4.1902 -      RCC)
  4.1903 +      RCC*)
  4.1904  	# Rational C++ 2.4.1
  4.1905  	# FIXME: insert proper C++ library support
  4.1906  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1907  	;;
  4.1908 -      cxx)
  4.1909 +      cxx*)
  4.1910  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4.1911 -	_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'
  4.1912 +	_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'
  4.1913  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4.1914  	  echo "-hidden">> $lib.exp~
  4.1915 -	  $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~
  4.1916 +	  $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~
  4.1917  	  $rm $lib.exp'
  4.1918  
  4.1919  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4.1920 @@ -3355,7 +3660,7 @@
  4.1921        *)
  4.1922  	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4.1923  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4.1924 -	 _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'
  4.1925 +	 _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'
  4.1926  
  4.1927  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4.1928  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.1929 @@ -3376,27 +3681,14 @@
  4.1930      # FIXME: insert proper C++ library support
  4.1931      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1932      ;;
  4.1933 -  sco*)
  4.1934 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4.1935 -    case $cc_basename in
  4.1936 -      CC)
  4.1937 -	# FIXME: insert proper C++ library support
  4.1938 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1939 -	;;
  4.1940 -      *)
  4.1941 -	# FIXME: insert proper C++ library support
  4.1942 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1943 -	;;
  4.1944 -    esac
  4.1945 -    ;;
  4.1946    sunos4*)
  4.1947      case $cc_basename in
  4.1948 -      CC)
  4.1949 +      CC*)
  4.1950  	# Sun C++ 4.x
  4.1951  	# FIXME: insert proper C++ library support
  4.1952  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1953  	;;
  4.1954 -      lcc)
  4.1955 +      lcc*)
  4.1956  	# Lucid
  4.1957  	# FIXME: insert proper C++ library support
  4.1958  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.1959 @@ -3409,36 +3701,28 @@
  4.1960      ;;
  4.1961    solaris*)
  4.1962      case $cc_basename in
  4.1963 -      CC)
  4.1964 +      CC*)
  4.1965  	# Sun C++ 4.2, 5.x and Centerline C++
  4.1966 +        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  4.1967  	_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4.1968 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4.1969 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4.1970  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4.1971 -	$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'
  4.1972 +	$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'
  4.1973  
  4.1974  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4.1975  	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.1976  	case $host_os in
  4.1977  	  solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4.1978  	  *)
  4.1979 -	    # The C++ compiler is used as linker so we must use $wl
  4.1980 -	    # flag to pass the commands to the underlying system
  4.1981 -	    # linker.
  4.1982 +	    # The compiler driver will combine and reorder linker options,
  4.1983 +	    # but understands `-z linker_flag'.
  4.1984  	    # Supported since Solaris 2.6 (maybe 2.5.1?)
  4.1985 -	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4.1986 +	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4.1987  	    ;;
  4.1988  	esac
  4.1989  	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4.1990  
  4.1991 -	# Commands to make compiler produce verbose output that lists
  4.1992 -	# what "hidden" libraries, object files and flags are used when
  4.1993 -	# linking a shared library.
  4.1994 -	#
  4.1995 -	# There doesn't appear to be a way to prevent this compiler from
  4.1996 -	# explicitly linking system object files so we need to strip them
  4.1997 -	# from the output so that they don't get included in the library
  4.1998 -	# dependencies.
  4.1999 -	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'
  4.2000 +	output_verbose_link_cmd='echo'
  4.2001  
  4.2002  	# Archives containing C++ object files must be created using
  4.2003  	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
  4.2004 @@ -3446,7 +3730,7 @@
  4.2005  	# in the archive.
  4.2006  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4.2007  	;;
  4.2008 -      gcx)
  4.2009 +      gcx*)
  4.2010  	# Green Hills C++ Compiler
  4.2011  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4.2012  
  4.2013 @@ -3480,16 +3764,73 @@
  4.2014  	  fi
  4.2015  
  4.2016  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  4.2017 +	  case $host_os in
  4.2018 +	  solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4.2019 +	  *)
  4.2020 +	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4.2021 +	    ;;
  4.2022 +	  esac
  4.2023  	fi
  4.2024  	;;
  4.2025      esac
  4.2026      ;;
  4.2027 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  4.2028 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4.2029 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4.2030      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4.2031 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.2032 +    runpath_var='LD_RUN_PATH'
  4.2033 +
  4.2034 +    case $cc_basename in
  4.2035 +      CC*)
  4.2036 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.2037 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.2038 +	;;
  4.2039 +      *)
  4.2040 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.2041 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.2042 +	;;
  4.2043 +    esac
  4.2044 +    ;;
  4.2045 +  sysv5* | sco3.2v5* | sco5v6*)
  4.2046 +    # Note: We can NOT use -z defs as we might desire, because we do not
  4.2047 +    # link with -lc, and that would cause any symbols used from libc to
  4.2048 +    # always be unresolved, which means just about no library would
  4.2049 +    # ever link correctly.  If we're not using GNU ld we use -z text
  4.2050 +    # though, which does catch some bad symbols but isn't as heavy-handed
  4.2051 +    # as -z defs.
  4.2052 +    # For security reasons, it is highly recommended that you always
  4.2053 +    # use absolute paths for naming shared libraries, and exclude the
  4.2054 +    # DT_RUNPATH tag from executables and libraries.  But doing so
  4.2055 +    # requires that you compile everything twice, which is a pain.
  4.2056 +    # So that behaviour is only enabled if SCOABSPATH is set to a
  4.2057 +    # non-empty value in the environment.  Most likely only useful for
  4.2058 +    # creating official distributions of packages.
  4.2059 +    # This is a hack until libtool officially supports absolute path
  4.2060 +    # names for shared libraries.
  4.2061 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4.2062 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4.2063 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4.2064 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.2065 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4.2066 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4.2067 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4.2068 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4.2069 +    runpath_var='LD_RUN_PATH'
  4.2070 +
  4.2071 +    case $cc_basename in
  4.2072 +      CC*)
  4.2073 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.2074 +	_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'
  4.2075 +	;;
  4.2076 +      *)
  4.2077 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.2078 +	_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'
  4.2079 +	;;
  4.2080 +    esac
  4.2081      ;;
  4.2082    tandem*)
  4.2083      case $cc_basename in
  4.2084 -      NCC)
  4.2085 +      NCC*)
  4.2086  	# NonStop-UX NCC 3.20
  4.2087  	# FIXME: insert proper C++ library support
  4.2088  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.2089 @@ -3522,8 +3863,6 @@
  4.2090  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4.2091  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4.2092  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4.2093 -AC_LIBTOOL_SYS_LIB_STRIP
  4.2094 -AC_LIBTOOL_DLOPEN_SELF($1)
  4.2095  
  4.2096  AC_LIBTOOL_CONFIG($1)
  4.2097  
  4.2098 @@ -3541,12 +3880,13 @@
  4.2099  ])# AC_LIBTOOL_LANG_CXX_CONFIG
  4.2100  
  4.2101  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  4.2102 -# ------------------------
  4.2103 +# ------------------------------------
  4.2104  # Figure out "hidden" library dependencies from verbose
  4.2105  # compiler output when linking a shared library.
  4.2106  # Parse the compiler output and extract the necessary
  4.2107  # objects, libraries and library flags.
  4.2108 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  4.2109 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  4.2110 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4.2111  dnl we can't use the lt_simple_compile_test_code here,
  4.2112  dnl because it contains code intended for an executable,
  4.2113  dnl not a library.  It's possible we should let each
  4.2114 @@ -3595,7 +3935,7 @@
  4.2115    # The `*' in the case matches for architectures that use `case' in
  4.2116    # $output_verbose_cmd can trigger glob expansion during the loop
  4.2117    # eval without this substitution.
  4.2118 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  4.2119 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  4.2120  
  4.2121    for p in `eval $output_verbose_link_cmd`; do
  4.2122      case $p in
  4.2123 @@ -3671,13 +4011,74 @@
  4.2124  
  4.2125  $rm -f confest.$objext
  4.2126  
  4.2127 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  4.2128 +if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  4.2129 +  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  4.2130 +fi
  4.2131 +
  4.2132 +# PORTME: override above test on systems where it is broken
  4.2133 +ifelse([$1],[CXX],
  4.2134 +[case $host_os in
  4.2135 +interix[[3-9]]*)
  4.2136 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  4.2137 +  # hack all around it, let's just trust "g++" to DTRT.
  4.2138 +  _LT_AC_TAGVAR(predep_objects,$1)=
  4.2139 +  _LT_AC_TAGVAR(postdep_objects,$1)=
  4.2140 +  _LT_AC_TAGVAR(postdeps,$1)=
  4.2141 +  ;;
  4.2142 +
  4.2143 +linux*)
  4.2144 +  case `$CC -V 2>&1 | sed 5q` in
  4.2145 +  *Sun\ C*)
  4.2146 +    # Sun C++ 5.9
  4.2147 +    #
  4.2148 +    # The more standards-conforming stlport4 library is
  4.2149 +    # incompatible with the Cstd library. Avoid specifying
  4.2150 +    # it if it's in CXXFLAGS. Ignore libCrun as
  4.2151 +    # -library=stlport4 depends on it.
  4.2152 +    case " $CXX $CXXFLAGS " in
  4.2153 +    *" -library=stlport4 "*)
  4.2154 +      solaris_use_stlport4=yes
  4.2155 +      ;;
  4.2156 +    esac
  4.2157 +    if test "$solaris_use_stlport4" != yes; then
  4.2158 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  4.2159 +    fi
  4.2160 +    ;;
  4.2161 +  esac
  4.2162 +  ;;
  4.2163 +
  4.2164 +solaris*)
  4.2165 +  case $cc_basename in
  4.2166 +  CC*)
  4.2167 +    # The more standards-conforming stlport4 library is
  4.2168 +    # incompatible with the Cstd library. Avoid specifying
  4.2169 +    # it if it's in CXXFLAGS. Ignore libCrun as
  4.2170 +    # -library=stlport4 depends on it.
  4.2171 +    case " $CXX $CXXFLAGS " in
  4.2172 +    *" -library=stlport4 "*)
  4.2173 +      solaris_use_stlport4=yes
  4.2174 +      ;;
  4.2175 +    esac
  4.2176 +
  4.2177 +    # Adding this requires a known-good setup of shared libraries for
  4.2178 +    # Sun compiler versions before 5.6, else PIC objects from an old
  4.2179 +    # archive will be linked into the output, leading to subtle bugs.
  4.2180 +    if test "$solaris_use_stlport4" != yes; then
  4.2181 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  4.2182 +    fi
  4.2183 +    ;;
  4.2184 +  esac
  4.2185 +  ;;
  4.2186 +esac
  4.2187 +])
  4.2188  case " $_LT_AC_TAGVAR(postdeps, $1) " in
  4.2189  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  4.2190  esac
  4.2191  ])# AC_LIBTOOL_POSTDEP_PREDEP
  4.2192  
  4.2193  # AC_LIBTOOL_LANG_F77_CONFIG
  4.2194 -# ------------------------
  4.2195 +# --------------------------
  4.2196  # Ensure that the configuration vars for the C compiler are
  4.2197  # suitably defined.  Those variables are subsequently used by
  4.2198  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4.2199 @@ -3713,20 +4114,31 @@
  4.2200  _LT_AC_TAGVAR(objext, $1)=$objext
  4.2201  
  4.2202  # Code to be used in simple compile tests
  4.2203 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
  4.2204 +lt_simple_compile_test_code="\
  4.2205 +      subroutine t
  4.2206 +      return
  4.2207 +      end
  4.2208 +"
  4.2209  
  4.2210  # Code to be used in simple link tests
  4.2211 -lt_simple_link_test_code="      program t\n      end\n"
  4.2212 +lt_simple_link_test_code="\
  4.2213 +      program t
  4.2214 +      end
  4.2215 +"
  4.2216  
  4.2217  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4.2218  _LT_AC_SYS_COMPILER
  4.2219  
  4.2220 +# save warnings/boilerplate of simple test code
  4.2221 +_LT_COMPILER_BOILERPLATE
  4.2222 +_LT_LINKER_BOILERPLATE
  4.2223 +
  4.2224  # Allow CC to be a program name with arguments.
  4.2225  lt_save_CC="$CC"
  4.2226  CC=${F77-"f77"}
  4.2227  compiler=$CC
  4.2228  _LT_AC_TAGVAR(compiler, $1)=$CC
  4.2229 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4.2230 +_LT_CC_BASENAME([$compiler])
  4.2231  
  4.2232  AC_MSG_CHECKING([if libtool supports shared libraries])
  4.2233  AC_MSG_RESULT([$can_build_shared])
  4.2234 @@ -3736,7 +4148,7 @@
  4.2235  
  4.2236  # On AIX, shared libraries and static libraries use the same namespace, and
  4.2237  # are all built from PIC.
  4.2238 -case "$host_os" in
  4.2239 +case $host_os in
  4.2240  aix3*)
  4.2241    test "$enable_shared" = yes && enable_static=no
  4.2242    if test -n "$RANLIB"; then
  4.2243 @@ -3744,8 +4156,10 @@
  4.2244      postinstall_cmds='$RANLIB $lib'
  4.2245    fi
  4.2246    ;;
  4.2247 -aix4* | aix5*)
  4.2248 -  test "$enable_shared" = yes && enable_static=no
  4.2249 +aix[[4-9]]*)
  4.2250 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4.2251 +    test "$enable_shared" = yes && enable_static=no
  4.2252 +  fi
  4.2253    ;;
  4.2254  esac
  4.2255  AC_MSG_RESULT([$enable_shared])
  4.2256 @@ -3755,8 +4169,6 @@
  4.2257  test "$enable_shared" = yes || enable_static=yes
  4.2258  AC_MSG_RESULT([$enable_static])
  4.2259  
  4.2260 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4.2261 -
  4.2262  _LT_AC_TAGVAR(GCC, $1)="$G77"
  4.2263  _LT_AC_TAGVAR(LD, $1)="$LD"
  4.2264  
  4.2265 @@ -3766,8 +4178,6 @@
  4.2266  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4.2267  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4.2268  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4.2269 -AC_LIBTOOL_SYS_LIB_STRIP
  4.2270 -
  4.2271  
  4.2272  AC_LIBTOOL_CONFIG($1)
  4.2273  
  4.2274 @@ -3793,23 +4203,30 @@
  4.2275  _LT_AC_TAGVAR(objext, $1)=$objext
  4.2276  
  4.2277  # Code to be used in simple compile tests
  4.2278 -lt_simple_compile_test_code="class foo {}\n"
  4.2279 +lt_simple_compile_test_code="class foo {}"
  4.2280  
  4.2281  # Code to be used in simple link tests
  4.2282 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  4.2283 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  4.2284  
  4.2285  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4.2286  _LT_AC_SYS_COMPILER
  4.2287  
  4.2288 +# save warnings/boilerplate of simple test code
  4.2289 +_LT_COMPILER_BOILERPLATE
  4.2290 +_LT_LINKER_BOILERPLATE
  4.2291 +
  4.2292  # Allow CC to be a program name with arguments.
  4.2293  lt_save_CC="$CC"
  4.2294  CC=${GCJ-"gcj"}
  4.2295  compiler=$CC
  4.2296  _LT_AC_TAGVAR(compiler, $1)=$CC
  4.2297 +_LT_CC_BASENAME([$compiler])
  4.2298  
  4.2299  # GCJ did not exist at the time GCC didn't implicitly link libc in.
  4.2300  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4.2301  
  4.2302 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4.2303 +
  4.2304  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4.2305  AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4.2306  AC_LIBTOOL_PROG_CC_C_O($1)
  4.2307 @@ -3817,8 +4234,6 @@
  4.2308  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4.2309  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4.2310  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4.2311 -AC_LIBTOOL_SYS_LIB_STRIP
  4.2312 -AC_LIBTOOL_DLOPEN_SELF($1)
  4.2313  
  4.2314  AC_LIBTOOL_CONFIG($1)
  4.2315  
  4.2316 @@ -3828,7 +4243,7 @@
  4.2317  
  4.2318  
  4.2319  # AC_LIBTOOL_LANG_RC_CONFIG
  4.2320 -# --------------------------
  4.2321 +# -------------------------
  4.2322  # Ensure that the configuration vars for the Windows resource compiler are
  4.2323  # suitably defined.  Those variables are subsequently used by
  4.2324  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4.2325 @@ -3844,7 +4259,7 @@
  4.2326  _LT_AC_TAGVAR(objext, $1)=$objext
  4.2327  
  4.2328  # Code to be used in simple compile tests
  4.2329 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  4.2330 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  4.2331  
  4.2332  # Code to be used in simple link tests
  4.2333  lt_simple_link_test_code="$lt_simple_compile_test_code"
  4.2334 @@ -3852,11 +4267,16 @@
  4.2335  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4.2336  _LT_AC_SYS_COMPILER
  4.2337  
  4.2338 +# save warnings/boilerplate of simple test code
  4.2339 +_LT_COMPILER_BOILERPLATE
  4.2340 +_LT_LINKER_BOILERPLATE
  4.2341 +
  4.2342  # Allow CC to be a program name with arguments.
  4.2343  lt_save_CC="$CC"
  4.2344  CC=${RC-"windres"}
  4.2345  compiler=$CC
  4.2346  _LT_AC_TAGVAR(compiler, $1)=$CC
  4.2347 +_LT_CC_BASENAME([$compiler])
  4.2348  _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  4.2349  
  4.2350  AC_LIBTOOL_CONFIG($1)
  4.2351 @@ -3886,7 +4306,7 @@
  4.2352    # Now quote all the things that may contain metacharacters while being
  4.2353    # careful not to overquote the AC_SUBSTed values.  We take copies of the
  4.2354    # variables and quote the copies for generation of the libtool script.
  4.2355 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
  4.2356 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  4.2357      SED SHELL STRIP \
  4.2358      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  4.2359      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  4.2360 @@ -3913,6 +4333,7 @@
  4.2361      _LT_AC_TAGVAR(predeps, $1) \
  4.2362      _LT_AC_TAGVAR(postdeps, $1) \
  4.2363      _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  4.2364 +    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  4.2365      _LT_AC_TAGVAR(archive_cmds, $1) \
  4.2366      _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  4.2367      _LT_AC_TAGVAR(postinstall_cmds, $1) \
  4.2368 @@ -3928,6 +4349,7 @@
  4.2369      _LT_AC_TAGVAR(module_cmds, $1) \
  4.2370      _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  4.2371      _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  4.2372 +    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  4.2373      _LT_AC_TAGVAR(exclude_expsyms, $1) \
  4.2374      _LT_AC_TAGVAR(include_expsyms, $1); do
  4.2375  
  4.2376 @@ -3974,7 +4396,7 @@
  4.2377  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4.2378  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4.2379  #
  4.2380 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  4.2381 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  4.2382  # Free Software Foundation, Inc.
  4.2383  #
  4.2384  # This file is part of GNU Libtool:
  4.2385 @@ -3992,7 +4414,7 @@
  4.2386  #
  4.2387  # You should have received a copy of the GNU General Public License
  4.2388  # along with this program; if not, write to the Free Software
  4.2389 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  4.2390 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  4.2391  #
  4.2392  # As a special exception to the GNU General Public License, if you
  4.2393  # distribute this file as part of a program that contains a
  4.2394 @@ -4003,7 +4425,7 @@
  4.2395  SED=$lt_SED
  4.2396  
  4.2397  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4.2398 -Xsed="$SED -e s/^X//"
  4.2399 +Xsed="$SED -e 1s/^X//"
  4.2400  
  4.2401  # The HP-UX ksh and POSIX shell print the target directory to stdout
  4.2402  # if CDPATH is set.
  4.2403 @@ -4055,6 +4477,9 @@
  4.2404  # A C compiler.
  4.2405  LTCC=$lt_LTCC
  4.2406  
  4.2407 +# LTCC compiler flags.
  4.2408 +LTCFLAGS=$lt_LTCFLAGS
  4.2409 +
  4.2410  # A language-specific compiler.
  4.2411  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  4.2412  
  4.2413 @@ -4086,7 +4511,7 @@
  4.2414  OBJDUMP="$OBJDUMP"
  4.2415  
  4.2416  # Used on cygwin: assembler.
  4.2417 -AS=$lt_AS
  4.2418 +AS="$AS"
  4.2419  
  4.2420  # The name of the directory that contains temporary libtool files.
  4.2421  objdir=$objdir
  4.2422 @@ -4120,7 +4545,7 @@
  4.2423  # Does compiler simultaneously support -c and -o options?
  4.2424  compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  4.2425  
  4.2426 -# Must we lock files when doing compilation ?
  4.2427 +# Must we lock files when doing compilation?
  4.2428  need_locks=$lt_need_locks
  4.2429  
  4.2430  # Do we need the lib prefix for modules?
  4.2431 @@ -4208,6 +4633,10 @@
  4.2432  # shared library.
  4.2433  postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  4.2434  
  4.2435 +# The directories searched by this compiler when creating a shared
  4.2436 +# library
  4.2437 +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  4.2438 +
  4.2439  # The library search path used internally by the compiler when linking
  4.2440  # a shared library.
  4.2441  compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  4.2442 @@ -4296,7 +4725,7 @@
  4.2443  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4.2444  
  4.2445  # Fix the shell variable \$srcfile for the compiler.
  4.2446 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  4.2447 +fix_srcfile_path=$lt_fix_srcfile_path
  4.2448  
  4.2449  # Set to yes if exported symbols are required.
  4.2450  always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  4.2451 @@ -4379,6 +4808,7 @@
  4.2452  # ---------------------------------
  4.2453  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  4.2454  [AC_REQUIRE([AC_CANONICAL_HOST])
  4.2455 +AC_REQUIRE([LT_AC_PROG_SED])
  4.2456  AC_REQUIRE([AC_PROG_NM])
  4.2457  AC_REQUIRE([AC_OBJEXT])
  4.2458  # Check for command to grab the raw symbol name followed by C symbol from nm.
  4.2459 @@ -4415,7 +4845,7 @@
  4.2460    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4.2461    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'"
  4.2462    ;;
  4.2463 -linux*)
  4.2464 +linux* | k*bsd*-gnu)
  4.2465    if test "$host_cpu" = ia64; then
  4.2466      symcode='[[ABCDGIRSTW]]'
  4.2467      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4.2468 @@ -4428,9 +4858,18 @@
  4.2469  osf*)
  4.2470    symcode='[[BCDEGQRST]]'
  4.2471    ;;
  4.2472 -solaris* | sysv5*)
  4.2473 +solaris*)
  4.2474    symcode='[[BDRT]]'
  4.2475    ;;
  4.2476 +sco3.2v5*)
  4.2477 +  symcode='[[DT]]'
  4.2478 +  ;;
  4.2479 +sysv4.2uw2*)
  4.2480 +  symcode='[[DT]]'
  4.2481 +  ;;
  4.2482 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4.2483 +  symcode='[[ABDT]]'
  4.2484 +  ;;
  4.2485  sysv4)
  4.2486    symcode='[[DFNSTU]]'
  4.2487    ;;
  4.2488 @@ -4547,7 +4986,7 @@
  4.2489      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4.2490      cat conftest.$ac_ext >&5
  4.2491    fi
  4.2492 -  rm -f conftest* conftst*
  4.2493 +  rm -rf conftest* conftst*
  4.2494  
  4.2495    # Do not use the global_symbol_pipe unless it works.
  4.2496    if test "$pipe_works" = yes; then
  4.2497 @@ -4596,13 +5035,16 @@
  4.2498        # like `-m68040'.
  4.2499        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4.2500        ;;
  4.2501 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4.2502 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4.2503        # PIC is the default for these OSes.
  4.2504        ;;
  4.2505 -    mingw* | os2* | pw32*)
  4.2506 +    mingw* | cygwin* | os2* | pw32*)
  4.2507        # This hack is so that the source file can tell whether it is being
  4.2508        # built for inclusion in a dll (and should export symbols for example).
  4.2509 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4.2510 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4.2511 +      # (--disable-auto-import) libraries
  4.2512 +      m4_if([$1], [GCJ], [],
  4.2513 +	[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4.2514        ;;
  4.2515      darwin* | rhapsody*)
  4.2516        # PIC is the default on this platform
  4.2517 @@ -4613,6 +5055,10 @@
  4.2518        # DJGPP does not support shared libraries at all
  4.2519        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4.2520        ;;
  4.2521 +    interix[[3-9]]*)
  4.2522 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4.2523 +      # Instead, we relocate shared libraries at runtime.
  4.2524 +      ;;
  4.2525      sysv4*MP*)
  4.2526        if test -d /usr/nec; then
  4.2527  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4.2528 @@ -4621,7 +5067,7 @@
  4.2529      hpux*)
  4.2530        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4.2531        # not for PA HP-UX.
  4.2532 -      case "$host_cpu" in
  4.2533 +      case $host_cpu in
  4.2534        hppa*64*|ia64*)
  4.2535  	;;
  4.2536        *)
  4.2537 @@ -4635,7 +5081,7 @@
  4.2538      esac
  4.2539    else
  4.2540      case $host_os in
  4.2541 -      aix4* | aix5*)
  4.2542 +      aix[[4-9]]*)
  4.2543  	# All AIX code is PIC.
  4.2544  	if test "$host_cpu" = ia64; then
  4.2545  	  # AIX 5 now supports IA64 processor
  4.2546 @@ -4646,7 +5092,7 @@
  4.2547  	;;
  4.2548        chorus*)
  4.2549  	case $cc_basename in
  4.2550 -	cxch68)
  4.2551 +	cxch68*)
  4.2552  	  # Green Hills C++ Compiler
  4.2553  	  # _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"
  4.2554  	  ;;
  4.2555 @@ -4655,7 +5101,7 @@
  4.2556         darwin*)
  4.2557           # PIC is the default on this platform
  4.2558           # Common symbols not allowed in MH_DYLIB files
  4.2559 -         case "$cc_basename" in
  4.2560 +         case $cc_basename in
  4.2561             xlc*)
  4.2562             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4.2563             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2564 @@ -4664,10 +5110,10 @@
  4.2565         ;;
  4.2566        dgux*)
  4.2567  	case $cc_basename in
  4.2568 -	  ec++)
  4.2569 +	  ec++*)
  4.2570  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2571  	    ;;
  4.2572 -	  ghcx)
  4.2573 +	  ghcx*)
  4.2574  	    # Green Hills C++ Compiler
  4.2575  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4.2576  	    ;;
  4.2577 @@ -4675,22 +5121,22 @@
  4.2578  	    ;;
  4.2579  	esac
  4.2580  	;;
  4.2581 -      freebsd* | kfreebsd*-gnu | dragonfly*)
  4.2582 +      freebsd* | dragonfly*)
  4.2583  	# FreeBSD uses GNU C++
  4.2584  	;;
  4.2585        hpux9* | hpux10* | hpux11*)
  4.2586  	case $cc_basename in
  4.2587 -	  CC)
  4.2588 +	  CC*)
  4.2589  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2590 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  4.2591 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4.2592  	    if test "$host_cpu" != ia64; then
  4.2593  	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4.2594  	    fi
  4.2595  	    ;;
  4.2596 -	  aCC)
  4.2597 +	  aCC*)
  4.2598  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2599 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  4.2600 -	    case "$host_cpu" in
  4.2601 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4.2602 +	    case $host_cpu in
  4.2603  	    hppa*64*|ia64*)
  4.2604  	      # +Z the default
  4.2605  	      ;;
  4.2606 @@ -4703,9 +5149,13 @@
  4.2607  	    ;;
  4.2608  	esac
  4.2609  	;;
  4.2610 +      interix*)
  4.2611 +	# This is c89, which is MS Visual C++ (no shared libs)
  4.2612 +	# Anyone wants to do a port?
  4.2613 +	;;
  4.2614        irix5* | irix6* | nonstopux*)
  4.2615  	case $cc_basename in
  4.2616 -	  CC)
  4.2617 +	  CC*)
  4.2618  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2619  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4.2620  	    # CC pic flag -KPIC is the default.
  4.2621 @@ -4714,9 +5164,9 @@
  4.2622  	    ;;
  4.2623  	esac
  4.2624  	;;
  4.2625 -      linux*)
  4.2626 +      linux* | k*bsd*-gnu)
  4.2627  	case $cc_basename in
  4.2628 -	  KCC)
  4.2629 +	  KCC*)
  4.2630  	    # KAI C++ Compiler
  4.2631  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4.2632  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4.2633 @@ -4727,13 +5177,13 @@
  4.2634  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2635  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4.2636  	    ;;
  4.2637 -	  pgCC)
  4.2638 +	  pgCC* | pgcpp*)
  4.2639  	    # Portland Group C++ compiler.
  4.2640  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2641  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4.2642 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4.2643 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2644  	    ;;
  4.2645 -	  cxx)
  4.2646 +	  cxx*)
  4.2647  	    # Compaq C++
  4.2648  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  4.2649  	    # Linux and Compaq Tru64 Unix objects are PIC.
  4.2650 @@ -4741,6 +5191,14 @@
  4.2651  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4.2652  	    ;;
  4.2653  	  *)
  4.2654 +	    case `$CC -V 2>&1 | sed 5q` in
  4.2655 +	    *Sun\ C*)
  4.2656 +	      # Sun C++ 5.9
  4.2657 +	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2658 +	      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2659 +	      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4.2660 +	      ;;
  4.2661 +	    esac
  4.2662  	    ;;
  4.2663  	esac
  4.2664  	;;
  4.2665 @@ -4750,25 +5208,25 @@
  4.2666  	;;
  4.2667        mvs*)
  4.2668  	case $cc_basename in
  4.2669 -	  cxx)
  4.2670 +	  cxx*)
  4.2671  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4.2672  	    ;;
  4.2673  	  *)
  4.2674  	    ;;
  4.2675  	esac
  4.2676  	;;
  4.2677 -      netbsd*)
  4.2678 +      netbsd* | netbsdelf*-gnu)
  4.2679  	;;
  4.2680        osf3* | osf4* | osf5*)
  4.2681  	case $cc_basename in
  4.2682 -	  KCC)
  4.2683 +	  KCC*)
  4.2684  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4.2685  	    ;;
  4.2686 -	  RCC)
  4.2687 +	  RCC*)
  4.2688  	    # Rational C++ 2.4.1
  4.2689  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4.2690  	    ;;
  4.2691 -	  cxx)
  4.2692 +	  cxx*)
  4.2693  	    # Digital/Compaq C++
  4.2694  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2695  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  4.2696 @@ -4782,24 +5240,15 @@
  4.2697  	;;
  4.2698        psos*)
  4.2699  	;;
  4.2700 -      sco*)
  4.2701 -	case $cc_basename in
  4.2702 -	  CC)
  4.2703 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4.2704 -	    ;;
  4.2705 -	  *)
  4.2706 -	    ;;
  4.2707 -	esac
  4.2708 -	;;
  4.2709        solaris*)
  4.2710  	case $cc_basename in
  4.2711 -	  CC)
  4.2712 +	  CC*)
  4.2713  	    # Sun C++ 4.2, 5.x and Centerline C++
  4.2714  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2715  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2716  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4.2717  	    ;;
  4.2718 -	  gcx)
  4.2719 +	  gcx*)
  4.2720  	    # Green Hills C++ Compiler
  4.2721  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4.2722  	    ;;
  4.2723 @@ -4809,12 +5258,12 @@
  4.2724  	;;
  4.2725        sunos4*)
  4.2726  	case $cc_basename in
  4.2727 -	  CC)
  4.2728 +	  CC*)
  4.2729  	    # Sun C++ 4.x
  4.2730  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4.2731  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2732  	    ;;
  4.2733 -	  lcc)
  4.2734 +	  lcc*)
  4.2735  	    # Lucid
  4.2736  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4.2737  	    ;;
  4.2738 @@ -4824,7 +5273,7 @@
  4.2739  	;;
  4.2740        tandem*)
  4.2741  	case $cc_basename in
  4.2742 -	  NCC)
  4.2743 +	  NCC*)
  4.2744  	    # NonStop-UX NCC 3.20
  4.2745  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2746  	    ;;
  4.2747 @@ -4832,7 +5281,14 @@
  4.2748  	    ;;
  4.2749  	esac
  4.2750  	;;
  4.2751 -      unixware*)
  4.2752 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4.2753 +	case $cc_basename in
  4.2754 +	  CC*)
  4.2755 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2756 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2757 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2758 +	    ;;
  4.2759 +	esac
  4.2760  	;;
  4.2761        vxworks*)
  4.2762  	;;
  4.2763 @@ -4863,14 +5319,17 @@
  4.2764        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4.2765        ;;
  4.2766  
  4.2767 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4.2768 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4.2769        # PIC is the default for these OSes.
  4.2770        ;;
  4.2771  
  4.2772 -    mingw* | pw32* | os2*)
  4.2773 +    mingw* | cygwin* | pw32* | os2*)
  4.2774        # This hack is so that the source file can tell whether it is being
  4.2775        # built for inclusion in a dll (and should export symbols for example).
  4.2776 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4.2777 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4.2778 +      # (--disable-auto-import) libraries
  4.2779 +      m4_if([$1], [GCJ], [],
  4.2780 +	[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4.2781        ;;
  4.2782  
  4.2783      darwin* | rhapsody*)
  4.2784 @@ -4879,6 +5338,11 @@
  4.2785        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4.2786        ;;
  4.2787  
  4.2788 +    interix[[3-9]]*)
  4.2789 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4.2790 +      # Instead, we relocate shared libraries at runtime.
  4.2791 +      ;;
  4.2792 +
  4.2793      msdosdjgpp*)
  4.2794        # Just because we use GCC doesn't mean we suddenly get shared libraries
  4.2795        # on systems that don't support them.
  4.2796 @@ -4895,7 +5359,7 @@
  4.2797      hpux*)
  4.2798        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4.2799        # not for PA HP-UX.
  4.2800 -      case "$host_cpu" in
  4.2801 +      case $host_cpu in
  4.2802        hppa*64*|ia64*)
  4.2803  	# +Z the default
  4.2804  	;;
  4.2805 @@ -4924,7 +5388,7 @@
  4.2806        darwin*)
  4.2807          # PIC is the default on this platform
  4.2808          # Common symbols not allowed in MH_DYLIB files
  4.2809 -       case "$cc_basename" in
  4.2810 +       case $cc_basename in
  4.2811           xlc*)
  4.2812           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4.2813           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2814 @@ -4932,17 +5396,18 @@
  4.2815         esac
  4.2816         ;;
  4.2817  
  4.2818 -    mingw* | pw32* | os2*)
  4.2819 +    mingw* | cygwin* | pw32* | os2*)
  4.2820        # This hack is so that the source file can tell whether it is being
  4.2821        # built for inclusion in a dll (and should export symbols for example).
  4.2822 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4.2823 +      m4_if([$1], [GCJ], [],
  4.2824 +	[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4.2825        ;;
  4.2826  
  4.2827      hpux9* | hpux10* | hpux11*)
  4.2828        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2829        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4.2830        # not for PA HP-UX.
  4.2831 -      case "$host_cpu" in
  4.2832 +      case $host_cpu in
  4.2833        hppa*64*|ia64*)
  4.2834  	# +Z the default
  4.2835  	;;
  4.2836 @@ -4965,25 +5430,41 @@
  4.2837        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2838        ;;
  4.2839  
  4.2840 -    linux*)
  4.2841 +    linux* | k*bsd*-gnu)
  4.2842        case $cc_basename in
  4.2843        icc* | ecc*)
  4.2844  	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2845  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2846  	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4.2847          ;;
  4.2848 -      pgcc | pgf77 | pgf90)
  4.2849 +      pgcc* | pgf77* | pgf90* | pgf95*)
  4.2850          # Portland Group compilers (*not* the Pentium gcc compiler,
  4.2851  	# which looks to be a dead project)
  4.2852  	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2853  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4.2854 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4.2855 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2856          ;;
  4.2857        ccc*)
  4.2858          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2859          # All Alpha code is PIC.
  4.2860          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4.2861          ;;
  4.2862 +      *)
  4.2863 +        case `$CC -V 2>&1 | sed 5q` in
  4.2864 +	*Sun\ C*)
  4.2865 +	  # Sun C 5.9
  4.2866 +	  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2867 +	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2868 +	  _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2869 +	  ;;
  4.2870 +	*Sun\ F*)
  4.2871 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4.2872 +	  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2873 +	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2874 +	  _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  4.2875 +	  ;;
  4.2876 +	esac
  4.2877 +	;;
  4.2878        esac
  4.2879        ;;
  4.2880  
  4.2881 @@ -4993,15 +5474,19 @@
  4.2882        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4.2883        ;;
  4.2884  
  4.2885 -    sco3.2v5*)
  4.2886 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  4.2887 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  4.2888 +    rdos*)
  4.2889 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4.2890        ;;
  4.2891  
  4.2892      solaris*)
  4.2893 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2894        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2895        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2896 +      case $cc_basename in
  4.2897 +      f77* | f90* | f95*)
  4.2898 +	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4.2899 +      *)
  4.2900 +	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4.2901 +      esac
  4.2902        ;;
  4.2903  
  4.2904      sunos4*)
  4.2905 @@ -5010,7 +5495,7 @@
  4.2906        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2907        ;;
  4.2908  
  4.2909 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4.2910 +    sysv4 | sysv4.2uw2* | sysv4.3*)
  4.2911        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2912        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2913        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2914 @@ -5023,6 +5508,12 @@
  4.2915        fi
  4.2916        ;;
  4.2917  
  4.2918 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4.2919 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2920 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4.2921 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4.2922 +      ;;
  4.2923 +
  4.2924      unicos*)
  4.2925        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4.2926        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4.2927 @@ -5046,7 +5537,7 @@
  4.2928  #
  4.2929  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4.2930    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  4.2931 -    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  4.2932 +    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  4.2933      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  4.2934      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  4.2935       "" | " "*) ;;
  4.2936 @@ -5055,7 +5546,7 @@
  4.2937      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4.2938       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4.2939  fi
  4.2940 -case "$host_os" in
  4.2941 +case $host_os in
  4.2942    # For platforms which do not support PIC, -DPIC is meaningless:
  4.2943    *djgpp*)
  4.2944      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4.2945 @@ -5064,6 +5555,16 @@
  4.2946      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  4.2947      ;;
  4.2948  esac
  4.2949 +
  4.2950 +#
  4.2951 +# Check to make sure the static flag actually works.
  4.2952 +#
  4.2953 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  4.2954 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4.2955 +  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4.2956 +  $lt_tmp_static_flag,
  4.2957 +  [],
  4.2958 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4.2959  ])
  4.2960  
  4.2961  
  4.2962 @@ -5071,11 +5572,12 @@
  4.2963  # ------------------------------------
  4.2964  # See if the linker supports building shared libraries.
  4.2965  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  4.2966 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4.2967 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4.2968 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4.2969  ifelse([$1],[CXX],[
  4.2970    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4.2971    case $host_os in
  4.2972 -  aix4* | aix5*)
  4.2973 +  aix[[4-9]]*)
  4.2974      # If we're using GNU nm, then we don't want the "-C" option.
  4.2975      # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4.2976      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  4.2977 @@ -5088,12 +5590,16 @@
  4.2978      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4.2979    ;;
  4.2980    cygwin* | mingw*)
  4.2981 -    _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'
  4.2982 +    _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'
  4.2983 +  ;;
  4.2984 +  linux* | k*bsd*-gnu)
  4.2985 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  4.2986    ;;
  4.2987    *)
  4.2988      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4.2989    ;;
  4.2990    esac
  4.2991 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4.2992  ],[
  4.2993    runpath_var=
  4.2994    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4.2995 @@ -5124,14 +5630,17 @@
  4.2996    # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4.2997    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4.2998    # as well as any symbol that contains `d'.
  4.2999 -  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  4.3000 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4.3001    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4.3002    # platforms (ab)use it in PIC code, but their linkers get confused if
  4.3003    # the symbol is explicitly referenced.  Since portable code cannot
  4.3004    # rely on this symbol name, it's probably fine to never include it in
  4.3005    # preloaded symbol tables.
  4.3006 +  # Exclude shared library initialization/finalization symbols.
  4.3007 +dnl Note also adjust exclude_expsyms for C++ above.
  4.3008    extract_expsyms_cmds=
  4.3009 -
  4.3010 +  # Just being paranoid about ensuring that cc_basename is set.
  4.3011 +  _LT_CC_BASENAME([$compiler])
  4.3012    case $host_os in
  4.3013    cygwin* | mingw* | pw32*)
  4.3014      # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4.3015 @@ -5141,6 +5650,10 @@
  4.3016        with_gnu_ld=no
  4.3017      fi
  4.3018      ;;
  4.3019 +  interix*)
  4.3020 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
  4.3021 +    with_gnu_ld=yes
  4.3022 +    ;;
  4.3023    openbsd*)
  4.3024      with_gnu_ld=no
  4.3025      ;;
  4.3026 @@ -5151,9 +5664,30 @@
  4.3027      # If archive_cmds runs LD, not CC, wlarc should be empty
  4.3028      wlarc='${wl}'
  4.3029  
  4.3030 +    # Set some defaults for GNU ld with shared library support. These
  4.3031 +    # are reset later if shared libraries are not supported. Putting them
  4.3032 +    # here allows them to be overridden if necessary.
  4.3033 +    runpath_var=LD_RUN_PATH
  4.3034 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4.3035 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4.3036 +    # ancient GNU ld didn't support --whole-archive et. al.
  4.3037 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  4.3038 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4.3039 +      else
  4.3040 +  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4.3041 +    fi
  4.3042 +    supports_anon_versioning=no
  4.3043 +    case `$LD -v 2>/dev/null` in
  4.3044 +      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4.3045 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4.3046 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4.3047 +      *\ 2.11.*) ;; # other 2.11 versions
  4.3048 +      *) supports_anon_versioning=yes ;;
  4.3049 +    esac
  4.3050 +
  4.3051      # See if GNU ld supports shared libraries.
  4.3052      case $host_os in
  4.3053 -    aix3* | aix4* | aix5*)
  4.3054 +    aix[[3-9]]*)
  4.3055        # On AIX/PPC, the GNU linker is very broken
  4.3056        if test "$host_cpu" != ia64; then
  4.3057  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.3058 @@ -5201,10 +5735,10 @@
  4.3059        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4.3060        _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4.3061        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4.3062 -      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  4.3063 +      _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'
  4.3064  
  4.3065        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4.3066 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  4.3067 +        _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'
  4.3068  	# If the export-symbols file already is a .def file (1st line
  4.3069  	# is EXPORTS), use it as is; otherwise, prepend...
  4.3070  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4.3071 @@ -5213,13 +5747,69 @@
  4.3072  	  echo EXPORTS > $output_objdir/$soname.def;
  4.3073  	  cat $export_symbols >> $output_objdir/$soname.def;
  4.3074  	fi~
  4.3075 -	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  4.3076 +	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4.3077        else
  4.3078  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.3079        fi
  4.3080        ;;
  4.3081  
  4.3082 -    netbsd*)
  4.3083 +    interix[[3-9]]*)
  4.3084 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4.3085 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3086 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4.3087 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.3088 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4.3089 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
  4.3090 +      # default) and relocated if they conflict, which is a slow very memory
  4.3091 +      # consuming and fragmenting process.  To avoid this, we pick a random,
  4.3092 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4.3093 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  4.3094 +      _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'
  4.3095 +      _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'
  4.3096 +      ;;
  4.3097 +
  4.3098 +    gnu* | linux* | k*bsd*-gnu)
  4.3099 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4.3100 +	tmp_addflag=
  4.3101 +	case $cc_basename,$host_cpu in
  4.3102 +	pgcc*)				# Portland Group C compiler
  4.3103 +	  _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'
  4.3104 +	  tmp_addflag=' $pic_flag'
  4.3105 +	  ;;
  4.3106 +	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  4.3107 +	  _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'
  4.3108 +	  tmp_addflag=' $pic_flag -Mnomain' ;;
  4.3109 +	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
  4.3110 +	  tmp_addflag=' -i_dynamic' ;;
  4.3111 +	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  4.3112 +	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  4.3113 +	ifc* | ifort*)			# Intel Fortran compiler
  4.3114 +	  tmp_addflag=' -nofor_main' ;;
  4.3115 +	esac
  4.3116 +	case `$CC -V 2>&1 | sed 5q` in
  4.3117 +	*Sun\ C*)			# Sun C 5.9
  4.3118 +	  _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'
  4.3119 +	  tmp_sharedflag='-G' ;;
  4.3120 +	*Sun\ F*)			# Sun Fortran 8.3
  4.3121 +	  tmp_sharedflag='-G' ;;
  4.3122 +	*)
  4.3123 +	  tmp_sharedflag='-shared' ;;
  4.3124 +	esac
  4.3125 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4.3126 +
  4.3127 +	if test $supports_anon_versioning = yes; then
  4.3128 +	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  4.3129 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4.3130 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
  4.3131 +	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4.3132 +	fi
  4.3133 +	_LT_AC_TAGVAR(link_all_deplibs, $1)=no
  4.3134 +      else
  4.3135 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.3136 +      fi
  4.3137 +      ;;
  4.3138 +
  4.3139 +    netbsd* | netbsdelf*-gnu)
  4.3140        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4.3141  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4.3142  	wlarc=
  4.3143 @@ -5229,7 +5819,7 @@
  4.3144        fi
  4.3145        ;;
  4.3146  
  4.3147 -    solaris* | sysv5*)
  4.3148 +    solaris*)
  4.3149        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  4.3150  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.3151  	cat <<EOF 1>&2
  4.3152 @@ -5250,6 +5840,33 @@
  4.3153        fi
  4.3154        ;;
  4.3155  
  4.3156 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4.3157 +      case `$LD -v 2>&1` in
  4.3158 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4.3159 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.3160 +	cat <<_LT_EOF 1>&2
  4.3161 +
  4.3162 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4.3163 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
  4.3164 +*** is disabling shared libraries support.  We urge you to upgrade GNU
  4.3165 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  4.3166 +*** your PATH or compiler configuration so that the native linker is
  4.3167 +*** used, and then restart.
  4.3168 +
  4.3169 +_LT_EOF
  4.3170 +	;;
  4.3171 +	*)
  4.3172 +	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4.3173 +	    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  4.3174 +	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  4.3175 +	    _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'
  4.3176 +	  else
  4.3177 +	    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.3178 +	  fi
  4.3179 +	;;
  4.3180 +      esac
  4.3181 +      ;;
  4.3182 +
  4.3183      sunos4*)
  4.3184        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4.3185        wlarc=
  4.3186 @@ -5257,41 +5874,6 @@
  4.3187        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3188        ;;
  4.3189  
  4.3190 -  linux*)
  4.3191 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4.3192 -      tmp_addflag=
  4.3193 -      case $CC,$host_cpu in
  4.3194 -      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
  4.3195 -        tmp_addflag=' -fpic' ;;
  4.3196 -      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
  4.3197 -        tmp_addflag=' -i_dynamic' ;;
  4.3198 -      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  4.3199 -        tmp_addflag=' -i_dynamic -nofor_main' ;;
  4.3200 -      ifc* | ifort*)			# Intel Fortran compiler
  4.3201 -      	tmp_addflag=' -nofor_main' ;;
  4.3202 -      esac
  4.3203 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4.3204 -      supports_anon_versioning=no
  4.3205 -      case `$LD -v 2>/dev/null` in
  4.3206 -        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4.3207 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4.3208 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4.3209 -        *\ 2.11.*) ;; # other 2.11 versions
  4.3210 -        *) supports_anon_versioning=yes ;;
  4.3211 -      esac
  4.3212 -      if test $supports_anon_versioning = yes; then
  4.3213 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  4.3214 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4.3215 -$echo "local: *; };" >> $output_objdir/$libname.ver~
  4.3216 -        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4.3217 -      else
  4.3218 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)=$_LT_AC_TAGVAR(archive_cmds, $1)
  4.3219 -      fi
  4.3220 -    else
  4.3221 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.3222 -    fi
  4.3223 -    ;;
  4.3224 -
  4.3225      *)
  4.3226        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4.3227  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4.3228 @@ -5302,16 +5884,11 @@
  4.3229        ;;
  4.3230      esac
  4.3231  
  4.3232 -    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  4.3233 -      runpath_var=LD_RUN_PATH
  4.3234 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4.3235 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4.3236 -      # ancient GNU ld didn't support --whole-archive et. al.
  4.3237 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  4.3238 - 	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4.3239 -      else
  4.3240 -  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4.3241 -      fi
  4.3242 +    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  4.3243 +      runpath_var=
  4.3244 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4.3245 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4.3246 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4.3247      fi
  4.3248    else
  4.3249      # PORTME fill in a description of your system's linker (not GNU ld)
  4.3250 @@ -5323,14 +5900,14 @@
  4.3251        # Note: this linker hardcodes the directories in LIBPATH if there
  4.3252        # are no directories specified by -L.
  4.3253        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4.3254 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
  4.3255 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4.3256  	# Neither direct hardcoding nor static linking is supported with a
  4.3257  	# broken collect2.
  4.3258  	_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4.3259        fi
  4.3260        ;;
  4.3261  
  4.3262 -    aix4* | aix5*)
  4.3263 +    aix[[4-9]]*)
  4.3264        if test "$host_cpu" = ia64; then
  4.3265  	# On IA64, the linker does run time linking by default, so we don't
  4.3266  	# have to do anything special.
  4.3267 @@ -5350,13 +5927,14 @@
  4.3268  	# Test if we are trying to use run time linking or normal
  4.3269  	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4.3270  	# need to do runtime linking.
  4.3271 -	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  4.3272 +	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4.3273  	  for ld_flag in $LDFLAGS; do
  4.3274    	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4.3275    	    aix_use_runtimelinking=yes
  4.3276    	    break
  4.3277    	  fi
  4.3278  	  done
  4.3279 +	  ;;
  4.3280  	esac
  4.3281  
  4.3282  	exp_sym_flag='-bexport'
  4.3283 @@ -5383,7 +5961,7 @@
  4.3284    	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  4.3285  	  then
  4.3286    	  # We have reworked collect2
  4.3287 -  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.3288 +  	  :
  4.3289  	  else
  4.3290    	  # We have old collect2
  4.3291    	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4.3292 @@ -5394,6 +5972,7 @@
  4.3293    	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4.3294    	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4.3295  	  fi
  4.3296 +	  ;;
  4.3297  	esac
  4.3298  	shared_flag='-shared'
  4.3299  	if test "$aix_use_runtimelinking" = yes; then
  4.3300 @@ -5406,11 +5985,11 @@
  4.3301    	# chokes on -Wl,-G. The following line is correct:
  4.3302  	  shared_flag='-G'
  4.3303  	else
  4.3304 -  	if test "$aix_use_runtimelinking" = yes; then
  4.3305 +	  if test "$aix_use_runtimelinking" = yes; then
  4.3306  	    shared_flag='${wl}-G'
  4.3307  	  else
  4.3308  	    shared_flag='${wl}-bM:SRE'
  4.3309 -  	fi
  4.3310 +	  fi
  4.3311  	fi
  4.3312        fi
  4.3313  
  4.3314 @@ -5424,12 +6003,12 @@
  4.3315         # Determine the default libpath from the value encoded in an empty executable.
  4.3316         _LT_AC_SYS_LIBPATH_AIX
  4.3317         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4.3318 -	_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"
  4.3319 +	_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"
  4.3320         else
  4.3321  	if test "$host_cpu" = ia64; then
  4.3322  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4.3323  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4.3324 -	  _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"
  4.3325 +	  _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"
  4.3326  	else
  4.3327  	 # Determine the default libpath from the value encoded in an empty executable.
  4.3328  	 _LT_AC_SYS_LIBPATH_AIX
  4.3329 @@ -5438,13 +6017,11 @@
  4.3330  	  # -berok will link without error, but may produce a broken library.
  4.3331  	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4.3332  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4.3333 -	  # -bexpall does not export symbols beginning with underscore (_)
  4.3334 -	  _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4.3335  	  # Exported symbols can be pulled into shared objects from archives
  4.3336 -	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  4.3337 +	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4.3338  	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  4.3339 -	  # This is similar to how AIX traditionally builds it's shared libraries.
  4.3340 -	  _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'
  4.3341 +	  # This is similar to how AIX traditionally builds its shared libraries.
  4.3342 +	  _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'
  4.3343  	fi
  4.3344        fi
  4.3345        ;;
  4.3346 @@ -5477,13 +6054,13 @@
  4.3347        # The linker will automatically build a .lib file if we build a DLL.
  4.3348        _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  4.3349        # FIXME: Should let the user specify the lib program.
  4.3350 -      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  4.3351 +      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4.3352        _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  4.3353        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4.3354        ;;
  4.3355  
  4.3356      darwin* | rhapsody*)
  4.3357 -      case "$host_os" in
  4.3358 +      case $host_os in
  4.3359          rhapsody* | darwin1.[[012]])
  4.3360           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  4.3361           ;;
  4.3362 @@ -5510,19 +6087,18 @@
  4.3363        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4.3364      if test "$GCC" = yes ; then
  4.3365      	output_verbose_link_cmd='echo'
  4.3366 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4.3367 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4.3368 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4.3369 -      _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}'
  4.3370 -      _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}'
  4.3371 +        _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}"
  4.3372 +        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  4.3373 +        _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}"
  4.3374 +        _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}"
  4.3375      else
  4.3376 -      case "$cc_basename" in
  4.3377 +      case $cc_basename in
  4.3378          xlc*)
  4.3379           output_verbose_link_cmd='echo'
  4.3380 -         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  4.3381 +         _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'
  4.3382           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4.3383 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4.3384 -         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4.3385 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  4.3386 +         _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}'
  4.3387            _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}'
  4.3388            ;;
  4.3389         *)
  4.3390 @@ -5562,7 +6138,7 @@
  4.3391        ;;
  4.3392  
  4.3393      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4.3394 -    freebsd* | kfreebsd*-gnu | dragonfly*)
  4.3395 +    freebsd* | dragonfly*)
  4.3396        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4.3397        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4.3398        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.3399 @@ -5585,47 +6161,62 @@
  4.3400        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.3401        ;;
  4.3402  
  4.3403 -    hpux10* | hpux11*)
  4.3404 +    hpux10*)
  4.3405        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4.3406 -	case "$host_cpu" in
  4.3407 -	hppa*64*|ia64*)
  4.3408 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4.3409 +      else
  4.3410 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4.3411 +      fi
  4.3412 +      if test "$with_gnu_ld" = no; then
  4.3413 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4.3414 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.3415 +
  4.3416 +	_LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.3417 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.3418 +
  4.3419 +	# hardcode_minus_L: Not really in the search PATH,
  4.3420 +	# but as the default location of the library.
  4.3421 +	_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4.3422 +      fi
  4.3423 +      ;;
  4.3424 +
  4.3425 +    hpux11*)
  4.3426 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4.3427 +	case $host_cpu in
  4.3428 +	hppa*64*)
  4.3429  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3430  	  ;;
  4.3431 +	ia64*)
  4.3432 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4.3433 +	  ;;
  4.3434  	*)
  4.3435  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4.3436  	  ;;
  4.3437  	esac
  4.3438        else
  4.3439 -	case "$host_cpu" in
  4.3440 -	hppa*64*|ia64*)
  4.3441 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  4.3442 +	case $host_cpu in
  4.3443 +	hppa*64*)
  4.3444 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3445 +	  ;;
  4.3446 +	ia64*)
  4.3447 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4.3448  	  ;;
  4.3449  	*)
  4.3450 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4.3451 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4.3452  	  ;;
  4.3453  	esac
  4.3454        fi
  4.3455        if test "$with_gnu_ld" = no; then
  4.3456 -	case "$host_cpu" in
  4.3457 -	hppa*64*)
  4.3458 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4.3459 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4.3460 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.3461 +
  4.3462 +	case $host_cpu in
  4.3463 +	hppa*64*|ia64*)
  4.3464  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4.3465 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.3466  	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4.3467  	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3468  	  ;;
  4.3469 -	ia64*)
  4.3470 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4.3471 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4.3472 -	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3473 -
  4.3474 -	  # hardcode_minus_L: Not really in the search PATH,
  4.3475 -	  # but as the default location of the library.
  4.3476 -	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4.3477 -	  ;;
  4.3478  	*)
  4.3479 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4.3480 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.3481  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.3482  	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.3483  
  4.3484 @@ -5649,7 +6240,7 @@
  4.3485        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4.3486        ;;
  4.3487  
  4.3488 -    netbsd*)
  4.3489 +    netbsd* | netbsdelf*-gnu)
  4.3490        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4.3491  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  4.3492        else
  4.3493 @@ -5669,24 +6260,28 @@
  4.3494        ;;
  4.3495  
  4.3496      openbsd*)
  4.3497 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.3498 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3499 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4.3500 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4.3501 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4.3502 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4.3503 -	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.3504 +      if test -f /usr/libexec/ld.so; then
  4.3505 +	_LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.3506 +	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3507 +	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4.3508 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4.3509 +	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4.3510 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4.3511 +	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4.3512 +	else
  4.3513 +	  case $host_os in
  4.3514 +	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4.3515 +	     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4.3516 +	     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4.3517 +	     ;;
  4.3518 +	   *)
  4.3519 +	     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4.3520 +	     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4.3521 +	     ;;
  4.3522 +	  esac
  4.3523 +        fi
  4.3524        else
  4.3525 -       case $host_os in
  4.3526 -	 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4.3527 -	   _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4.3528 -	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4.3529 -	   ;;
  4.3530 -	 *)
  4.3531 -	   _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4.3532 -	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4.3533 -	   ;;
  4.3534 -       esac
  4.3535 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  4.3536        fi
  4.3537        ;;
  4.3538  
  4.3539 @@ -5719,7 +6314,7 @@
  4.3540  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4.3541  	_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'
  4.3542  	_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~
  4.3543 -	$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'
  4.3544 +	$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'
  4.3545  
  4.3546  	# Both c and cxx compiler support -rpath directly
  4.3547  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4.3548 @@ -5727,21 +6322,15 @@
  4.3549        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4.3550        ;;
  4.3551  
  4.3552 -    sco3.2v5*)
  4.3553 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4.3554 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3555 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4.3556 -      runpath_var=LD_RUN_PATH
  4.3557 -      hardcode_runpath_var=yes
  4.3558 -      ;;
  4.3559 -
  4.3560      solaris*)
  4.3561        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  4.3562        if test "$GCC" = yes; then
  4.3563 +	wlarc='${wl}'
  4.3564  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3565  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4.3566  	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  4.3567        else
  4.3568 +	wlarc=''
  4.3569  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4.3570  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4.3571    	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  4.3572 @@ -5750,8 +6339,17 @@
  4.3573        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3574        case $host_os in
  4.3575        solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4.3576 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  4.3577 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
  4.3578 +      *)
  4.3579 +	# The compiler driver will combine and reorder linker options,
  4.3580 +	# but understands `-z linker_flag'.  GCC discards it without `$wl',
  4.3581 +	# but is careful enough not to reorder.
  4.3582 + 	# Supported since Solaris 2.6 (maybe 2.5.1?)
  4.3583 +	if test "$GCC" = yes; then
  4.3584 +	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4.3585 +	else
  4.3586 +	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4.3587 +	fi
  4.3588 +	;;
  4.3589        esac
  4.3590        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4.3591        ;;
  4.3592 @@ -5808,36 +6406,45 @@
  4.3593        fi
  4.3594        ;;
  4.3595  
  4.3596 -    sysv4.2uw2*)
  4.3597 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4.3598 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4.3599 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4.3600 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3601 -      hardcode_runpath_var=yes
  4.3602 -      runpath_var=LD_RUN_PATH
  4.3603 -      ;;
  4.3604 -
  4.3605 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
  4.3606 -      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  4.3607 -      if test "$GCC" = yes; then
  4.3608 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3609 -      else
  4.3610 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3611 -      fi
  4.3612 -      runpath_var='LD_RUN_PATH'
  4.3613 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3614 -      ;;
  4.3615 -
  4.3616 -    sysv5*)
  4.3617 -      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  4.3618 -      # $CC -shared without GNU ld will not create a library from C++
  4.3619 -      # object files and a static libstdc++, better avoid it by now
  4.3620 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4.3621 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4.3622 -  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  4.3623 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4.3624 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4.3625 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4.3626 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4.3627        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3628        runpath_var='LD_RUN_PATH'
  4.3629 +
  4.3630 +      if test "$GCC" = yes; then
  4.3631 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3632 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3633 +      else
  4.3634 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3635 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3636 +      fi
  4.3637 +      ;;
  4.3638 +
  4.3639 +    sysv5* | sco3.2v5* | sco5v6*)
  4.3640 +      # Note: We can NOT use -z defs as we might desire, because we do not
  4.3641 +      # link with -lc, and that would cause any symbols used from libc to
  4.3642 +      # always be unresolved, which means just about no library would
  4.3643 +      # ever link correctly.  If we're not using GNU ld we use -z text
  4.3644 +      # though, which does catch some bad symbols but isn't as heavy-handed
  4.3645 +      # as -z defs.
  4.3646 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4.3647 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4.3648 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4.3649 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4.3650 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4.3651 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4.3652 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4.3653 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4.3654 +      runpath_var='LD_RUN_PATH'
  4.3655 +
  4.3656 +      if test "$GCC" = yes; then
  4.3657 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3658 +	_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'
  4.3659 +      else
  4.3660 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4.3661 +	_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'
  4.3662 +      fi
  4.3663        ;;
  4.3664  
  4.3665      uts4*)
  4.3666 @@ -5855,11 +6462,6 @@
  4.3667  AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4.3668  test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4.3669  
  4.3670 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4.3671 -if test "$GCC" = yes; then
  4.3672 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4.3673 -fi
  4.3674 -
  4.3675  #
  4.3676  # Do we need to explicitly link libc?
  4.3677  #
  4.3678 @@ -5879,7 +6481,7 @@
  4.3679        # to ld, don't add -lc before -lgcc.
  4.3680        AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  4.3681        $rm conftest*
  4.3682 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  4.3683 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  4.3684  
  4.3685        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  4.3686          soname=conftest
  4.3687 @@ -5887,6 +6489,7 @@
  4.3688          libobjs=conftest.$ac_objext
  4.3689          deplibs=
  4.3690          wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  4.3691 +	pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  4.3692          compiler_flags=-v
  4.3693          linker_flags=-v
  4.3694          verstring=
  4.3695 @@ -5981,6 +6584,30 @@
  4.3696  [AC_CHECK_TOOL(RC, windres, no)
  4.3697  ])
  4.3698  
  4.3699 +
  4.3700 +# Cheap backport of AS_EXECUTABLE_P and required macros
  4.3701 +# from Autoconf 2.59; we should not use $as_executable_p directly.
  4.3702 +
  4.3703 +# _AS_TEST_PREPARE
  4.3704 +# ----------------
  4.3705 +m4_ifndef([_AS_TEST_PREPARE],
  4.3706 +[m4_defun([_AS_TEST_PREPARE],
  4.3707 +[if test -x / >/dev/null 2>&1; then
  4.3708 +  as_executable_p='test -x'
  4.3709 +else
  4.3710 +  as_executable_p='test -f'
  4.3711 +fi
  4.3712 +])])# _AS_TEST_PREPARE
  4.3713 +
  4.3714 +# AS_EXECUTABLE_P
  4.3715 +# ---------------
  4.3716 +# Check whether a file is executable.
  4.3717 +m4_ifndef([AS_EXECUTABLE_P],
  4.3718 +[m4_defun([AS_EXECUTABLE_P],
  4.3719 +[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  4.3720 +$as_executable_p $1[]dnl
  4.3721 +])])# AS_EXECUTABLE_P
  4.3722 +
  4.3723  # NOTE: This macro has been submitted for inclusion into   #
  4.3724  #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
  4.3725  #  a released version of Autoconf we should remove this    #
  4.3726 @@ -6001,12 +6628,13 @@
  4.3727    test -z "$as_dir" && as_dir=.
  4.3728    for lt_ac_prog in sed gsed; do
  4.3729      for ac_exec_ext in '' $ac_executable_extensions; do
  4.3730 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  4.3731 +      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  4.3732          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  4.3733        fi
  4.3734      done
  4.3735    done
  4.3736  done
  4.3737 +IFS=$as_save_IFS
  4.3738  lt_ac_max=0
  4.3739  lt_ac_count=0
  4.3740  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4.3741 @@ -6039,10 +6667,11 @@
  4.3742  done
  4.3743  ])
  4.3744  SED=$lt_cv_path_SED
  4.3745 +AC_SUBST([SED])
  4.3746  AC_MSG_RESULT([$SED])
  4.3747  ])
  4.3748  
  4.3749 -# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
  4.3750 +# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
  4.3751  #
  4.3752  # This file is free software; the Free Software Foundation
  4.3753  # gives unlimited permission to copy and/or distribute it,
  4.3754 @@ -6052,14 +6681,31 @@
  4.3755  # ----------------------------
  4.3756  # Automake X.Y traces this macro to ensure aclocal.m4 has been
  4.3757  # generated from the m4 files accompanying Automake X.Y.
  4.3758 -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  4.3759 +# (This private macro should not be called outside this file.)
  4.3760 +AC_DEFUN([AM_AUTOMAKE_VERSION],
  4.3761 +[am__api_version='1.10'
  4.3762 +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  4.3763 +dnl require some minimum version.  Point them to the right macro.
  4.3764 +m4_if([$1], [1.10.1], [],
  4.3765 +      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  4.3766 +])
  4.3767 +
  4.3768 +# _AM_AUTOCONF_VERSION(VERSION)
  4.3769 +# -----------------------------
  4.3770 +# aclocal traces this macro to find the Autoconf version.
  4.3771 +# This is a private macro too.  Using m4_define simplifies
  4.3772 +# the logic in aclocal, which can simply ignore this definition.
  4.3773 +m4_define([_AM_AUTOCONF_VERSION], [])
  4.3774  
  4.3775  # AM_SET_CURRENT_AUTOMAKE_VERSION
  4.3776  # -------------------------------
  4.3777 -# Call AM_AUTOMAKE_VERSION so it can be traced.
  4.3778 +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  4.3779  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  4.3780  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  4.3781 -	 [AM_AUTOMAKE_VERSION([1.9.5])])
  4.3782 +[AM_AUTOMAKE_VERSION([1.10.1])dnl
  4.3783 +m4_ifndef([AC_AUTOCONF_VERSION],
  4.3784 +  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  4.3785 +_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  4.3786  
  4.3787  # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
  4.3788  
  4.3789 @@ -6116,14 +6762,14 @@
  4.3790  
  4.3791  # AM_CONDITIONAL                                            -*- Autoconf -*-
  4.3792  
  4.3793 -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  4.3794 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  4.3795  # Free Software Foundation, Inc.
  4.3796  #
  4.3797  # This file is free software; the Free Software Foundation
  4.3798  # gives unlimited permission to copy and/or distribute it,
  4.3799  # with or without modifications, as long as this notice is preserved.
  4.3800  
  4.3801 -# serial 7
  4.3802 +# serial 8
  4.3803  
  4.3804  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  4.3805  # -------------------------------------
  4.3806 @@ -6132,8 +6778,10 @@
  4.3807  [AC_PREREQ(2.52)dnl
  4.3808   ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
  4.3809  	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  4.3810 -AC_SUBST([$1_TRUE])
  4.3811 -AC_SUBST([$1_FALSE])
  4.3812 +AC_SUBST([$1_TRUE])dnl
  4.3813 +AC_SUBST([$1_FALSE])dnl
  4.3814 +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  4.3815 +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  4.3816  if $2; then
  4.3817    $1_TRUE=
  4.3818    $1_FALSE='#'
  4.3819 @@ -6147,15 +6795,14 @@
  4.3820  Usually this means the macro was only invoked conditionally.]])
  4.3821  fi])])
  4.3822  
  4.3823 -
  4.3824 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  4.3825 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  4.3826  # Free Software Foundation, Inc.
  4.3827  #
  4.3828  # This file is free software; the Free Software Foundation
  4.3829  # gives unlimited permission to copy and/or distribute it,
  4.3830  # with or without modifications, as long as this notice is preserved.
  4.3831  
  4.3832 -# serial 8
  4.3833 +# serial 9
  4.3834  
  4.3835  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  4.3836  # written in clear, in which case automake, when reading aclocal.m4,
  4.3837 @@ -6183,6 +6830,7 @@
  4.3838  ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
  4.3839         [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
  4.3840         [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  4.3841 +       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
  4.3842         [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
  4.3843                     [depcc="$$1"   am_compiler_list=])
  4.3844  
  4.3845 @@ -6248,6 +6896,7 @@
  4.3846         depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4.3847         $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4.3848           >/dev/null 2>conftest.err &&
  4.3849 +       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4.3850         grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4.3851         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4.3852         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4.3853 @@ -6300,7 +6949,8 @@
  4.3854    AMDEPBACKSLASH='\'
  4.3855  fi
  4.3856  AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  4.3857 -AC_SUBST([AMDEPBACKSLASH])
  4.3858 +AC_SUBST([AMDEPBACKSLASH])dnl
  4.3859 +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  4.3860  ])
  4.3861  
  4.3862  # Generate code to set up dependency tracking.              -*- Autoconf -*-
  4.3863 @@ -6325,8 +6975,9 @@
  4.3864    # some people rename them; so instead we look at the file content.
  4.3865    # Grep'ing the first line is not enough: some people post-process
  4.3866    # each Makefile.in and add a new line on top of each file to say so.
  4.3867 -  # So let's grep whole file.
  4.3868 -  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  4.3869 +  # Grep'ing the whole file is not good either: AIX grep has a line
  4.3870 +  # limit of 2048, but all sed's we know have understand at least 4000.
  4.3871 +  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  4.3872      dirpart=`AS_DIRNAME("$mf")`
  4.3873    else
  4.3874      continue
  4.3875 @@ -6373,14 +7024,14 @@
  4.3876  
  4.3877  # Do all the work for Automake.                             -*- Autoconf -*-
  4.3878  
  4.3879 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  4.3880 -# Free Software Foundation, Inc.
  4.3881 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  4.3882 +# 2005, 2006, 2008 Free Software Foundation, Inc.
  4.3883  #
  4.3884  # This file is free software; the Free Software Foundation
  4.3885  # gives unlimited permission to copy and/or distribute it,
  4.3886  # with or without modifications, as long as this notice is preserved.
  4.3887  
  4.3888 -# serial 12
  4.3889 +# serial 13
  4.3890  
  4.3891  # This macro actually does too much.  Some checks are only needed if
  4.3892  # your package does certain things.  But this isn't really a big deal.
  4.3893 @@ -6397,16 +7048,20 @@
  4.3894  # arguments mandatory, and then we can depend on a new Autoconf
  4.3895  # release and drop the old call support.
  4.3896  AC_DEFUN([AM_INIT_AUTOMAKE],
  4.3897 -[AC_PREREQ([2.58])dnl
  4.3898 +[AC_PREREQ([2.60])dnl
  4.3899  dnl Autoconf wants to disallow AM_ names.  We explicitly allow
  4.3900  dnl the ones we care about.
  4.3901  m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  4.3902  AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  4.3903  AC_REQUIRE([AC_PROG_INSTALL])dnl
  4.3904 -# test to see if srcdir already configured
  4.3905 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  4.3906 -   test -f $srcdir/config.status; then
  4.3907 -  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  4.3908 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4.3909 +  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4.3910 +  # is not polluted with repeated "-I."
  4.3911 +  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  4.3912 +  # test to see if srcdir already configured
  4.3913 +  if test -f $srcdir/config.status; then
  4.3914 +    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  4.3915 +  fi
  4.3916  fi
  4.3917  
  4.3918  # test whether we have cygpath
  4.3919 @@ -6426,6 +7081,9 @@
  4.3920   AC_SUBST([PACKAGE], [$1])dnl
  4.3921   AC_SUBST([VERSION], [$2])],
  4.3922  [_AM_SET_OPTIONS([$1])dnl
  4.3923 +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  4.3924 +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  4.3925 +  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  4.3926   AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  4.3927   AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  4.3928  
  4.3929 @@ -6461,6 +7119,10 @@
  4.3930                    [_AM_DEPENDENCIES(CXX)],
  4.3931                    [define([AC_PROG_CXX],
  4.3932                            defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  4.3933 +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  4.3934 +                  [_AM_DEPENDENCIES(OBJC)],
  4.3935 +                  [define([AC_PROG_OBJC],
  4.3936 +                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  4.3937  ])
  4.3938  ])
  4.3939  
  4.3940 @@ -6474,16 +7136,17 @@
  4.3941  # our stamp files there.
  4.3942  AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  4.3943  [# Compute $1's index in $config_headers.
  4.3944 +_am_arg=$1
  4.3945  _am_stamp_count=1
  4.3946  for _am_header in $config_headers :; do
  4.3947    case $_am_header in
  4.3948 -    $1 | $1:* )
  4.3949 +    $_am_arg | $_am_arg:* )
  4.3950        break ;;
  4.3951      * )
  4.3952        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  4.3953    esac
  4.3954  done
  4.3955 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  4.3956 +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  4.3957  
  4.3958  # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
  4.3959  #
  4.3960 @@ -6496,7 +7159,7 @@
  4.3961  # Define $install_sh.
  4.3962  AC_DEFUN([AM_PROG_INSTALL_SH],
  4.3963  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  4.3964 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  4.3965 +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  4.3966  AC_SUBST(install_sh)])
  4.3967  
  4.3968  # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
  4.3969 @@ -6574,14 +7237,14 @@
  4.3970  
  4.3971  # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
  4.3972  
  4.3973 -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  4.3974 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  4.3975  # Free Software Foundation, Inc.
  4.3976  #
  4.3977  # This file is free software; the Free Software Foundation
  4.3978  # gives unlimited permission to copy and/or distribute it,
  4.3979  # with or without modifications, as long as this notice is preserved.
  4.3980  
  4.3981 -# serial 4
  4.3982 +# serial 5
  4.3983  
  4.3984  # AM_MISSING_PROG(NAME, PROGRAM)
  4.3985  # ------------------------------
  4.3986 @@ -6597,6 +7260,7 @@
  4.3987  # If it does, set am_missing_run to use it, otherwise, to nothing.
  4.3988  AC_DEFUN([AM_MISSING_HAS_RUN],
  4.3989  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  4.3990 +AC_REQUIRE_AUX_FILE([missing])dnl
  4.3991  test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  4.3992  # Use eval to expand $SHELL
  4.3993  if eval "$MISSING --run true"; then
  4.3994 @@ -6607,7 +7271,7 @@
  4.3995  fi
  4.3996  ])
  4.3997  
  4.3998 -# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
  4.3999 +# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
  4.4000  #
  4.4001  # This file is free software; the Free Software Foundation
  4.4002  # gives unlimited permission to copy and/or distribute it,
  4.4003 @@ -6615,60 +7279,23 @@
  4.4004  
  4.4005  # AM_PROG_MKDIR_P
  4.4006  # ---------------
  4.4007 -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  4.4008 -#
  4.4009 -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  4.4010 -# created by `make install' are always world readable, even if the
  4.4011 -# installer happens to have an overly restrictive umask (e.g. 077).
  4.4012 -# This was a mistake.  There are at least two reasons why we must not
  4.4013 -# use `-m 0755':
  4.4014 -#   - it causes special bits like SGID to be ignored,
  4.4015 -#   - it may be too restrictive (some setups expect 775 directories).
  4.4016 -#
  4.4017 -# Do not use -m 0755 and let people choose whatever they expect by
  4.4018 -# setting umask.
  4.4019 -#
  4.4020 -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  4.4021 -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  4.4022 -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  4.4023 -# concurrently, both version can detect that a/ is missing, but only
  4.4024 -# one can create it and the other will error out.  Consequently we
  4.4025 -# restrict ourselves to GNU make (using the --version option ensures
  4.4026 -# this.)
  4.4027 +# Check for `mkdir -p'.
  4.4028  AC_DEFUN([AM_PROG_MKDIR_P],
  4.4029 -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  4.4030 -  # We used to keeping the `.' as first argument, in order to
  4.4031 -  # allow $(mkdir_p) to be used without argument.  As in
  4.4032 -  #   $(mkdir_p) $(somedir)
  4.4033 -  # where $(somedir) is conditionally defined.  However this is wrong
  4.4034 -  # for two reasons:
  4.4035 -  #  1. if the package is installed by a user who cannot write `.'
  4.4036 -  #     make install will fail,
  4.4037 -  #  2. the above comment should most certainly read
  4.4038 -  #     $(mkdir_p) $(DESTDIR)$(somedir)
  4.4039 -  #     so it does not work when $(somedir) is undefined and
  4.4040 -  #     $(DESTDIR) is not.
  4.4041 -  #  To support the latter case, we have to write
  4.4042 -  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  4.4043 -  #  so the `.' trick is pointless.
  4.4044 -  mkdir_p='mkdir -p --'
  4.4045 -else
  4.4046 -  # On NextStep and OpenStep, the `mkdir' command does not
  4.4047 -  # recognize any option.  It will interpret all options as
  4.4048 -  # directories to create, and then abort because `.' already
  4.4049 -  # exists.
  4.4050 -  for d in ./-p ./--version;
  4.4051 -  do
  4.4052 -    test -d $d && rmdir $d
  4.4053 -  done
  4.4054 -  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  4.4055 -  if test -f "$ac_aux_dir/mkinstalldirs"; then
  4.4056 -    mkdir_p='$(mkinstalldirs)'
  4.4057 -  else
  4.4058 -    mkdir_p='$(install_sh) -d'
  4.4059 -  fi
  4.4060 -fi
  4.4061 -AC_SUBST([mkdir_p])])
  4.4062 +[AC_PREREQ([2.60])dnl
  4.4063 +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  4.4064 +dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
  4.4065 +dnl while keeping a definition of mkdir_p for backward compatibility.
  4.4066 +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  4.4067 +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  4.4068 +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  4.4069 +dnl adjustment using top_builddir (which is defined more often than
  4.4070 +dnl MKDIR_P).
  4.4071 +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  4.4072 +case $mkdir_p in
  4.4073 +  [[\\/$]]* | ?:[[\\/]]*) ;;
  4.4074 +  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  4.4075 +esac
  4.4076 +])
  4.4077  
  4.4078  # Helper functions for option handling.                     -*- Autoconf -*-
  4.4079  
  4.4080 @@ -6780,9 +7407,21 @@
  4.4081  if test "$cross_compiling" != no; then
  4.4082    AC_CHECK_TOOL([STRIP], [strip], :)
  4.4083  fi
  4.4084 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  4.4085 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4.4086  AC_SUBST([INSTALL_STRIP_PROGRAM])])
  4.4087  
  4.4088 +# Copyright (C) 2006  Free Software Foundation, Inc.
  4.4089 +#
  4.4090 +# This file is free software; the Free Software Foundation
  4.4091 +# gives unlimited permission to copy and/or distribute it,
  4.4092 +# with or without modifications, as long as this notice is preserved.
  4.4093 +
  4.4094 +# _AM_SUBST_NOTMAKE(VARIABLE)
  4.4095 +# ---------------------------
  4.4096 +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  4.4097 +# This macro is traced by Automake.
  4.4098 +AC_DEFUN([_AM_SUBST_NOTMAKE])
  4.4099 +
  4.4100  # Check how to create a tarball.                            -*- Autoconf -*-
  4.4101  
  4.4102  # Copyright (C) 2004, 2005  Free Software Foundation, Inc.
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/libhrel/autogen.sh	Sat May 10 07:48:26 2008 -0500
     5.3 @@ -0,0 +1,144 @@
     5.4 +#! /bin/sh
     5.5 +
     5.6 +TOP_DIR=$(cd $(dirname $0); echo $PWD)
     5.7 +LAST_DIR=$PWD
     5.8 +
     5.9 +if test ! -f $TOP_DIR/configure.ac ; then
    5.10 +    echo "You must execute this script from the top level directory."
    5.11 +    exit 1
    5.12 +fi
    5.13 +
    5.14 +# Functions
    5.15 +dump_help_screen ()
    5.16 +{
    5.17 +    echo "Usage: autogen.sh [options]"
    5.18 +    echo 
    5.19 +    echo "options:"
    5.20 +    echo "  -h,--help		    Show this help screen"
    5.21 +    echo "  -n,--no-log		    Don't create ChangeLog from SVN commit logs" 
    5.22 +    echo
    5.23 +    exit 0
    5.24 +}
    5.25 +
    5.26 +parse_options ()
    5.27 +{
    5.28 +    while test "$1" != "" ; do
    5.29 +        case $1 in
    5.30 +            -h|--help)
    5.31 +                dump_help_screen
    5.32 +                ;;
    5.33 +            -n|--no-log)
    5.34 +                no_log=1 
    5.35 +		;;
    5.36 +            *)
    5.37 +                echo Invalid argument - $1
    5.38 +                dump_help_screen
    5.39 +                ;;
    5.40 +        esac
    5.41 +        shift
    5.42 +    done
    5.43 +}
    5.44 +
    5.45 +run_or_die ()
    5.46 +{
    5.47 +    COMMAND=$1
    5.48 +
    5.49 +    # check for empty commands
    5.50 +    if test -z "$COMMAND" ; then
    5.51 +        echo "*warning* no command specified"
    5.52 +        return 1
    5.53 +    fi
    5.54 +
    5.55 +    shift;
    5.56 +
    5.57 +    OPTIONS="$@"
    5.58 +
    5.59 +    # print a message
    5.60 +    echo -n "*info* running $COMMAND"
    5.61 +    if test -n "$OPTIONS" ; then
    5.62 +        echo " ($OPTIONS)"
    5.63 +    else
    5.64 +        echo
    5.65 +    fi
    5.66 +
    5.67 +    # run or die
    5.68 +    $COMMAND $OPTIONS ; RESULT=$?
    5.69 +    if test $RESULT -ne 0 ; then
    5.70 +        echo "*error* $COMMAND failed. (exit code = $RESULT)"
    5.71 +        exit 1
    5.72 +    fi
    5.73 +
    5.74 +    return 0
    5.75 +}
    5.76 +
    5.77 +# Main run
    5.78 +parse_options "$@"
    5.79 +cd $TOP_DIR
    5.80 +
    5.81 +AUTOCONF=${AUTOCONF:-autoconf}
    5.82 +AUTOMAKE=${AUTOMAKE:-automake}
    5.83 +ACLOCAL=${ACLOCAL:-aclocal}
    5.84 +AUTOHEADER=${AUTOHEADER:-autoheader}
    5.85 +LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
    5.86 +
    5.87 +# Check for proper automake version
    5.88 +automake_maj_req=1
    5.89 +automake_min_req=8
    5.90 +
    5.91 +echo -n "Checking Automake version... "
    5.92 +
    5.93 +automake_version=`$AUTOMAKE --version | head -n1 | cut -f 4 -d \ `
    5.94 +automake_major=$(echo $automake_version | cut -f 1 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
    5.95 +automake_minor=$(echo $automake_version | cut -f 2 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
    5.96 +automake_micro=$(echo $automake_version | cut -f 3 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
    5.97 +
    5.98 +echo -n "$automake_major.$automake_minor.$automake_micro.:  "
    5.99 +
   5.100 +if [ $automake_major -ge $automake_maj_req ]; then
   5.101 +    if [ $automake_minor -lt $automake_min_req ]; then 
   5.102 +      echo "error: bmpx requires automake $automake_maj_req.$automake_min_req"
   5.103 +      exit 1
   5.104 +    else
   5.105 +      echo "ok"
   5.106 +    fi
   5.107 +fi
   5.108 +
   5.109 +# Check for proper autoconf version
   5.110 +autoconf_maj_req=2
   5.111 +autoconf_min_req=52
   5.112 +
   5.113 +echo -n "Checking Autoconf version... "
   5.114 +
   5.115 +autoconf_version=`$AUTOCONF --version | head -n1 | cut -f 4 -d \ `
   5.116 +autoconf_major=$(echo $autoconf_version | cut -f 1 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
   5.117 +autoconf_minor=$(echo $autoconf_version | cut -f 2 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
   5.118 +
   5.119 +echo -n "$autoconf_major.$autoconf_minor..:  "
   5.120 +
   5.121 +if [ $autoconf_major -ge $autoconf_maj_req ]; then
   5.122 +    if [ $autoconf_minor -lt $autoconf_min_req ]; then 
   5.123 +      echo "error: bmpx requires autoconf $autoconf_maj_req.$autoconf_min_req"
   5.124 +      exit 1
   5.125 +    else
   5.126 +      echo "ok"
   5.127 +    fi
   5.128 +fi
   5.129 +
   5.130 +# Changelog from SVN (svn2cl)
   5.131 +if [ -d .svn ]; then
   5.132 +    if [ "x$no_log" != "x1" ]; then
   5.133 +      # only recreate if we in svn repo
   5.134 +      echo "*info* creating ChangeLog from SVN history"
   5.135 +      ./scripts/svn2cl.sh
   5.136 +    fi
   5.137 +fi
   5.138 +touch ChangeLog
   5.139 +
   5.140 +run_or_die $ACLOCAL -I m4
   5.141 +run_or_die $LIBTOOLIZE -f -c --automake
   5.142 +run_or_die $ACLOCAL -I m4
   5.143 +run_or_die $AUTOCONF
   5.144 +run_or_die $AUTOHEADER
   5.145 +run_or_die $AUTOMAKE -a -c
   5.146 +
   5.147 +cd $LAST_DIR
     6.1 --- a/libhrel/config.guess	Sat May 10 07:45:39 2008 -0500
     6.2 +++ b/libhrel/config.guess	Sat May 10 07:48:26 2008 -0500
     6.3 @@ -1,9 +1,10 @@
     6.4  #! /bin/sh
     6.5  # Attempt to guess a canonical system name.
     6.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     6.7 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     6.8 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     6.9 +#   Free Software Foundation, Inc.
    6.10  
    6.11 -timestamp='2005-02-10'
    6.12 +timestamp='2008-01-23'
    6.13  
    6.14  # This file is free software; you can redistribute it and/or modify it
    6.15  # under the terms of the GNU General Public License as published by
    6.16 @@ -17,13 +18,15 @@
    6.17  #
    6.18  # You should have received a copy of the GNU General Public License
    6.19  # along with this program; if not, write to the Free Software
    6.20 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    6.21 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    6.22 +# 02110-1301, USA.
    6.23  #
    6.24  # As a special exception to the GNU General Public License, if you
    6.25  # distribute this file as part of a program that contains a
    6.26  # configuration script generated by Autoconf, you may include it under
    6.27  # the same distribution terms that you use for the rest of that program.
    6.28  
    6.29 +
    6.30  # Originally written by Per Bothner <per@bothner.com>.
    6.31  # Please send patches to <config-patches@gnu.org>.  Submit a context
    6.32  # diff and a properly formatted ChangeLog entry.
    6.33 @@ -53,8 +56,8 @@
    6.34  GNU config.guess ($timestamp)
    6.35  
    6.36  Originally written by Per Bothner.
    6.37 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    6.38 -Free Software Foundation, Inc.
    6.39 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    6.40 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    6.41  
    6.42  This is free software; see the source for copying conditions.  There is NO
    6.43  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    6.44 @@ -66,11 +69,11 @@
    6.45  while test $# -gt 0 ; do
    6.46    case $1 in
    6.47      --time-stamp | --time* | -t )
    6.48 -       echo "$timestamp" ; exit 0 ;;
    6.49 +       echo "$timestamp" ; exit ;;
    6.50      --version | -v )
    6.51 -       echo "$version" ; exit 0 ;;
    6.52 +       echo "$version" ; exit ;;
    6.53      --help | --h* | -h )
    6.54 -       echo "$usage"; exit 0 ;;
    6.55 +       echo "$usage"; exit ;;
    6.56      -- )     # Stop option processing
    6.57         shift; break ;;
    6.58      - )	# Use stdin as input.
    6.59 @@ -104,7 +107,7 @@
    6.60  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
    6.61  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
    6.62  : ${TMPDIR=/tmp} ;
    6.63 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    6.64 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    6.65   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    6.66   { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
    6.67   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
    6.68 @@ -123,7 +126,7 @@
    6.69  	;;
    6.70   ,,*)   CC_FOR_BUILD=$CC ;;
    6.71   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    6.72 -esac ;'
    6.73 +esac ; set_cc_for_build= ;'
    6.74  
    6.75  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    6.76  # (ghazi@noc.rutgers.edu 1994-08-24)
    6.77 @@ -136,16 +139,6 @@
    6.78  UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
    6.79  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    6.80  
    6.81 -case "${UNAME_MACHINE}" in
    6.82 -    i?86)
    6.83 -	test -z "$VENDOR" && VENDOR=pc
    6.84 -	;;
    6.85 -    *)
    6.86 -	test -z "$VENDOR" && VENDOR=unknown
    6.87 -	;;
    6.88 -esac
    6.89 -test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    6.90 -
    6.91  # Note: order is significant - the case branches are not exclusive.
    6.92  
    6.93  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    6.94 @@ -168,6 +161,7 @@
    6.95  	    arm*) machine=arm-unknown ;;
    6.96  	    sh3el) machine=shl-unknown ;;
    6.97  	    sh3eb) machine=sh-unknown ;;
    6.98 +	    sh5el) machine=sh5le-unknown ;;
    6.99  	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
   6.100  	esac
   6.101  	# The Operating System including object format, if it has switched
   6.102 @@ -206,55 +200,23 @@
   6.103  	# contains redundant information, the shorter form:
   6.104  	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
   6.105  	echo "${machine}-${os}${release}"
   6.106 -	exit 0 ;;
   6.107 -    amd64:OpenBSD:*:*)
   6.108 -	echo x86_64-unknown-openbsd${UNAME_RELEASE}
   6.109 -	exit 0 ;;
   6.110 -    amiga:OpenBSD:*:*)
   6.111 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   6.112 -	exit 0 ;;
   6.113 -    cats:OpenBSD:*:*)
   6.114 -	echo arm-unknown-openbsd${UNAME_RELEASE}
   6.115 -	exit 0 ;;
   6.116 -    hp300:OpenBSD:*:*)
   6.117 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   6.118 -	exit 0 ;;
   6.119 -    luna88k:OpenBSD:*:*)
   6.120 -    	echo m88k-unknown-openbsd${UNAME_RELEASE}
   6.121 -	exit 0 ;;
   6.122 -    mac68k:OpenBSD:*:*)
   6.123 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   6.124 -	exit 0 ;;
   6.125 -    macppc:OpenBSD:*:*)
   6.126 -	echo powerpc-unknown-openbsd${UNAME_RELEASE}
   6.127 -	exit 0 ;;
   6.128 -    mvme68k:OpenBSD:*:*)
   6.129 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   6.130 -	exit 0 ;;
   6.131 -    mvme88k:OpenBSD:*:*)
   6.132 -	echo m88k-unknown-openbsd${UNAME_RELEASE}
   6.133 -	exit 0 ;;
   6.134 -    mvmeppc:OpenBSD:*:*)
   6.135 -	echo powerpc-unknown-openbsd${UNAME_RELEASE}
   6.136 -	exit 0 ;;
   6.137 -    sgi:OpenBSD:*:*)
   6.138 -	echo mips64-unknown-openbsd${UNAME_RELEASE}
   6.139 -	exit 0 ;;
   6.140 -    sun3:OpenBSD:*:*)
   6.141 -	echo m68k-unknown-openbsd${UNAME_RELEASE}
   6.142 -	exit 0 ;;
   6.143 +	exit ;;
   6.144      *:OpenBSD:*:*)
   6.145 -	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
   6.146 -	exit 0 ;;
   6.147 +	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
   6.148 +	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
   6.149 +	exit ;;
   6.150      *:ekkoBSD:*:*)
   6.151  	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
   6.152 -	exit 0 ;;
   6.153 +	exit ;;
   6.154 +    *:SolidBSD:*:*)
   6.155 +	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
   6.156 +	exit ;;
   6.157      macppc:MirBSD:*:*)
   6.158 -	echo powerppc-unknown-mirbsd${UNAME_RELEASE}
   6.159 -	exit 0 ;;
   6.160 +	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
   6.161 +	exit ;;
   6.162      *:MirBSD:*:*)
   6.163  	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
   6.164 -	exit 0 ;;
   6.165 +	exit ;;
   6.166      alpha:OSF1:*:*)
   6.167  	case $UNAME_RELEASE in
   6.168  	*4.0)
   6.169 @@ -307,40 +269,43 @@
   6.170  	# A Xn.n version is an unreleased experimental baselevel.
   6.171  	# 1.2 uses "1.2" for uname -r.
   6.172  	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   6.173 -	exit 0 ;;
   6.174 +	exit ;;
   6.175      Alpha\ *:Windows_NT*:*)
   6.176  	# How do we know it's Interix rather than the generic POSIX subsystem?
   6.177  	# Should we change UNAME_MACHINE based on the output of uname instead
   6.178  	# of the specific Alpha model?
   6.179  	echo alpha-pc-interix
   6.180 -	exit 0 ;;
   6.181 +	exit ;;
   6.182      21064:Windows_NT:50:3)
   6.183  	echo alpha-dec-winnt3.5
   6.184 -	exit 0 ;;
   6.185 +	exit ;;
   6.186      Amiga*:UNIX_System_V:4.0:*)
   6.187  	echo m68k-unknown-sysv4
   6.188 -	exit 0;;
   6.189 +	exit ;;
   6.190      *:[Aa]miga[Oo][Ss]:*:*)
   6.191  	echo ${UNAME_MACHINE}-unknown-amigaos
   6.192 -	exit 0 ;;
   6.193 +	exit ;;
   6.194      *:[Mm]orph[Oo][Ss]:*:*)
   6.195  	echo ${UNAME_MACHINE}-unknown-morphos
   6.196 -	exit 0 ;;
   6.197 +	exit ;;
   6.198      *:OS/390:*:*)
   6.199  	echo i370-ibm-openedition
   6.200 -	exit 0 ;;
   6.201 +	exit ;;
   6.202      *:z/VM:*:*)
   6.203  	echo s390-ibm-zvmoe
   6.204 -	exit 0 ;;
   6.205 +	exit ;;
   6.206      *:OS400:*:*)
   6.207          echo powerpc-ibm-os400
   6.208 -	exit 0 ;;
   6.209 +	exit ;;
   6.210      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
   6.211  	echo arm-acorn-riscix${UNAME_RELEASE}
   6.212 -	exit 0;;
   6.213 +	exit ;;
   6.214 +    arm:riscos:*:*|arm:RISCOS:*:*)
   6.215 +	echo arm-unknown-riscos
   6.216 +	exit ;;
   6.217      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
   6.218  	echo hppa1.1-hitachi-hiuxmpp
   6.219 -	exit 0;;
   6.220 +	exit ;;
   6.221      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
   6.222  	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
   6.223  	if test "`(/bin/universe) 2>/dev/null`" = att ; then
   6.224 @@ -348,32 +313,32 @@
   6.225  	else
   6.226  		echo pyramid-pyramid-bsd
   6.227  	fi
   6.228 -	exit 0 ;;
   6.229 +	exit ;;
   6.230      NILE*:*:*:dcosx)
   6.231  	echo pyramid-pyramid-svr4
   6.232 -	exit 0 ;;
   6.233 +	exit ;;
   6.234      DRS?6000:unix:4.0:6*)
   6.235  	echo sparc-icl-nx6
   6.236 -	exit 0 ;;
   6.237 +	exit ;;
   6.238      DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
   6.239  	case `/usr/bin/uname -p` in
   6.240 -	    sparc) echo sparc-icl-nx7 && exit 0 ;;
   6.241 +	    sparc) echo sparc-icl-nx7; exit ;;
   6.242  	esac ;;
   6.243      sun4H:SunOS:5.*:*)
   6.244  	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.245 -	exit 0 ;;
   6.246 +	exit ;;
   6.247      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
   6.248  	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.249 -	exit 0 ;;
   6.250 -    i86pc:SunOS:5.*:*)
   6.251 +	exit ;;
   6.252 +    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
   6.253  	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.254 -	exit 0 ;;
   6.255 +	exit ;;
   6.256      sun4*:SunOS:6*:*)
   6.257  	# According to config.sub, this is the proper way to canonicalize
   6.258  	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
   6.259  	# it's likely to be more like Solaris than SunOS4.
   6.260  	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.261 -	exit 0 ;;
   6.262 +	exit ;;
   6.263      sun4*:SunOS:*:*)
   6.264  	case "`/usr/bin/arch -k`" in
   6.265  	    Series*|S4*)
   6.266 @@ -382,10 +347,10 @@
   6.267  	esac
   6.268  	# Japanese Language versions have a version number like `4.1.3-JL'.
   6.269  	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
   6.270 -	exit 0 ;;
   6.271 +	exit ;;
   6.272      sun3*:SunOS:*:*)
   6.273  	echo m68k-sun-sunos${UNAME_RELEASE}
   6.274 -	exit 0 ;;
   6.275 +	exit ;;
   6.276      sun*:*:4.2BSD:*)
   6.277  	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
   6.278  	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
   6.279 @@ -397,10 +362,10 @@
   6.280  		echo sparc-sun-sunos${UNAME_RELEASE}
   6.281  		;;
   6.282  	esac
   6.283 -	exit 0 ;;
   6.284 +	exit ;;
   6.285      aushp:SunOS:*:*)
   6.286  	echo sparc-auspex-sunos${UNAME_RELEASE}
   6.287 -	exit 0 ;;
   6.288 +	exit ;;
   6.289      # The situation for MiNT is a little confusing.  The machine name
   6.290      # can be virtually everything (everything which is not
   6.291      # "atarist" or "atariste" at least should have a processor
   6.292 @@ -411,40 +376,40 @@
   6.293      # be no problem.
   6.294      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
   6.295          echo m68k-atari-mint${UNAME_RELEASE}
   6.296 -	exit 0 ;;
   6.297 +	exit ;;
   6.298      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
   6.299  	echo m68k-atari-mint${UNAME_RELEASE}
   6.300 -        exit 0 ;;
   6.301 +        exit ;;
   6.302      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
   6.303          echo m68k-atari-mint${UNAME_RELEASE}
   6.304 -	exit 0 ;;
   6.305 +	exit ;;
   6.306      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
   6.307          echo m68k-milan-mint${UNAME_RELEASE}
   6.308 -        exit 0 ;;
   6.309 +        exit ;;
   6.310      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
   6.311          echo m68k-hades-mint${UNAME_RELEASE}
   6.312 -        exit 0 ;;
   6.313 +        exit ;;
   6.314      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
   6.315          echo m68k-unknown-mint${UNAME_RELEASE}
   6.316 -        exit 0 ;;
   6.317 +        exit ;;
   6.318      m68k:machten:*:*)
   6.319  	echo m68k-apple-machten${UNAME_RELEASE}
   6.320 -	exit 0 ;;
   6.321 +	exit ;;
   6.322      powerpc:machten:*:*)
   6.323  	echo powerpc-apple-machten${UNAME_RELEASE}
   6.324 -	exit 0 ;;
   6.325 +	exit ;;
   6.326      RISC*:Mach:*:*)
   6.327  	echo mips-dec-mach_bsd4.3
   6.328 -	exit 0 ;;
   6.329 +	exit ;;
   6.330      RISC*:ULTRIX:*:*)
   6.331  	echo mips-dec-ultrix${UNAME_RELEASE}
   6.332 -	exit 0 ;;
   6.333 +	exit ;;
   6.334      VAX*:ULTRIX*:*:*)
   6.335  	echo vax-dec-ultrix${UNAME_RELEASE}
   6.336 -	exit 0 ;;
   6.337 +	exit ;;
   6.338      2020:CLIX:*:* | 2430:CLIX:*:*)
   6.339  	echo clipper-intergraph-clix${UNAME_RELEASE}
   6.340 -	exit 0 ;;
   6.341 +	exit ;;
   6.342      mips:*:*:UMIPS | mips:*:*:RISCos)
   6.343  	eval $set_cc_for_build
   6.344  	sed 's/^	//' << EOF >$dummy.c
   6.345 @@ -468,32 +433,33 @@
   6.346  	  exit (-1);
   6.347  	}
   6.348  EOF
   6.349 -	$CC_FOR_BUILD -o $dummy $dummy.c \
   6.350 -	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
   6.351 -	  && exit 0
   6.352 +	$CC_FOR_BUILD -o $dummy $dummy.c &&
   6.353 +	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
   6.354 +	  SYSTEM_NAME=`$dummy $dummyarg` &&
   6.355 +	    { echo "$SYSTEM_NAME"; exit; }
   6.356  	echo mips-mips-riscos${UNAME_RELEASE}
   6.357 -	exit 0 ;;
   6.358 +	exit ;;
   6.359      Motorola:PowerMAX_OS:*:*)
   6.360  	echo powerpc-motorola-powermax
   6.361 -	exit 0 ;;
   6.362 +	exit ;;
   6.363      Motorola:*:4.3:PL8-*)
   6.364  	echo powerpc-harris-powermax
   6.365 -	exit 0 ;;
   6.366 +	exit ;;
   6.367      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
   6.368  	echo powerpc-harris-powermax
   6.369 -	exit 0 ;;
   6.370 +	exit ;;
   6.371      Night_Hawk:Power_UNIX:*:*)
   6.372  	echo powerpc-harris-powerunix
   6.373 -	exit 0 ;;
   6.374 +	exit ;;
   6.375      m88k:CX/UX:7*:*)
   6.376  	echo m88k-harris-cxux7
   6.377 -	exit 0 ;;
   6.378 +	exit ;;
   6.379      m88k:*:4*:R4*)
   6.380  	echo m88k-motorola-sysv4
   6.381 -	exit 0 ;;
   6.382 +	exit ;;
   6.383      m88k:*:3*:R3*)
   6.384  	echo m88k-motorola-sysv3
   6.385 -	exit 0 ;;
   6.386 +	exit ;;
   6.387      AViiON:dgux:*:*)
   6.388          # DG/UX returns AViiON for all architectures
   6.389          UNAME_PROCESSOR=`/usr/bin/uname -p`
   6.390 @@ -509,29 +475,29 @@
   6.391  	else
   6.392  	    echo i586-dg-dgux${UNAME_RELEASE}
   6.393  	fi
   6.394 - 	exit 0 ;;
   6.395 + 	exit ;;
   6.396      M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
   6.397  	echo m88k-dolphin-sysv3
   6.398 -	exit 0 ;;
   6.399 +	exit ;;
   6.400      M88*:*:R3*:*)
   6.401  	# Delta 88k system running SVR3
   6.402  	echo m88k-motorola-sysv3
   6.403 -	exit 0 ;;
   6.404 +	exit ;;
   6.405      XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
   6.406  	echo m88k-tektronix-sysv3
   6.407 -	exit 0 ;;
   6.408 +	exit ;;
   6.409      Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
   6.410  	echo m68k-tektronix-bsd
   6.411 -	exit 0 ;;
   6.412 +	exit ;;
   6.413      *:IRIX*:*:*)
   6.414  	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
   6.415 -	exit 0 ;;
   6.416 +	exit ;;
   6.417      ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
   6.418 -	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
   6.419 -	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
   6.420 +	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
   6.421 +	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
   6.422      i*86:AIX:*:*)
   6.423  	echo i386-ibm-aix
   6.424 -	exit 0 ;;
   6.425 +	exit ;;
   6.426      ia64:AIX:*:*)
   6.427  	if [ -x /usr/bin/oslevel ] ; then
   6.428  		IBM_REV=`/usr/bin/oslevel`
   6.429 @@ -539,7 +505,7 @@
   6.430  		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   6.431  	fi
   6.432  	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
   6.433 -	exit 0 ;;
   6.434 +	exit ;;
   6.435      *:AIX:2:3)
   6.436  	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
   6.437  		eval $set_cc_for_build
   6.438 @@ -554,15 +520,19 @@
   6.439  			exit(0);
   6.440  			}
   6.441  EOF
   6.442 -		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
   6.443 -		echo rs6000-ibm-aix3.2.5
   6.444 +		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
   6.445 +		then
   6.446 +			echo "$SYSTEM_NAME"
   6.447 +		else
   6.448 +			echo rs6000-ibm-aix3.2.5
   6.449 +		fi
   6.450  	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
   6.451  		echo rs6000-ibm-aix3.2.4
   6.452  	else
   6.453  		echo rs6000-ibm-aix3.2
   6.454  	fi
   6.455 -	exit 0 ;;
   6.456 -    *:AIX:*:[45])
   6.457 +	exit ;;
   6.458 +    *:AIX:*:[456])
   6.459  	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
   6.460  	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
   6.461  		IBM_ARCH=rs6000
   6.462 @@ -575,28 +545,28 @@
   6.463  		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   6.464  	fi
   6.465  	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
   6.466 -	exit 0 ;;
   6.467 +	exit ;;
   6.468      *:AIX:*:*)
   6.469  	echo rs6000-ibm-aix
   6.470 -	exit 0 ;;
   6.471 +	exit ;;
   6.472      ibmrt:4.4BSD:*|romp-ibm:BSD:*)
   6.473  	echo romp-ibm-bsd4.4
   6.474 -	exit 0 ;;
   6.475 +	exit ;;
   6.476      ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
   6.477  	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
   6.478 -	exit 0 ;;                           # report: romp-ibm BSD 4.3
   6.479 +	exit ;;                             # report: romp-ibm BSD 4.3
   6.480      *:BOSX:*:*)
   6.481  	echo rs6000-bull-bosx
   6.482 -	exit 0 ;;
   6.483 +	exit ;;
   6.484      DPX/2?00:B.O.S.:*:*)
   6.485  	echo m68k-bull-sysv3
   6.486 -	exit 0 ;;
   6.487 +	exit ;;
   6.488      9000/[34]??:4.3bsd:1.*:*)
   6.489  	echo m68k-hp-bsd
   6.490 -	exit 0 ;;
   6.491 +	exit ;;
   6.492      hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
   6.493  	echo m68k-hp-bsd4.4
   6.494 -	exit 0 ;;
   6.495 +	exit ;;
   6.496      9000/[34678]??:HP-UX:*:*)
   6.497  	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   6.498  	case "${UNAME_MACHINE}" in
   6.499 @@ -658,9 +628,19 @@
   6.500  	esac
   6.501  	if [ ${HP_ARCH} = "hppa2.0w" ]
   6.502  	then
   6.503 -	    # avoid double evaluation of $set_cc_for_build
   6.504 -	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
   6.505 -	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
   6.506 +	    eval $set_cc_for_build
   6.507 +
   6.508 +	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
   6.509 +	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
   6.510 +	    # generating 64-bit code.  GNU and HP use different nomenclature:
   6.511 +	    #
   6.512 +	    # $ CC_FOR_BUILD=cc ./config.guess
   6.513 +	    # => hppa2.0w-hp-hpux11.23
   6.514 +	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
   6.515 +	    # => hppa64-hp-hpux11.23
   6.516 +
   6.517 +	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
   6.518 +		grep __LP64__ >/dev/null
   6.519  	    then
   6.520  		HP_ARCH="hppa2.0w"
   6.521  	    else
   6.522 @@ -668,11 +648,11 @@
   6.523  	    fi
   6.524  	fi
   6.525  	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   6.526 -	exit 0 ;;
   6.527 +	exit ;;
   6.528      ia64:HP-UX:*:*)
   6.529  	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   6.530  	echo ia64-hp-hpux${HPUX_REV}
   6.531 -	exit 0 ;;
   6.532 +	exit ;;
   6.533      3050*:HI-UX:*:*)
   6.534  	eval $set_cc_for_build
   6.535  	sed 's/^	//' << EOF >$dummy.c
   6.536 @@ -700,161 +680,192 @@
   6.537  	  exit (0);
   6.538  	}
   6.539  EOF
   6.540 -	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
   6.541 +	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
   6.542 +		{ echo "$SYSTEM_NAME"; exit; }
   6.543  	echo unknown-hitachi-hiuxwe2
   6.544 -	exit 0 ;;
   6.545 +	exit ;;
   6.546      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
   6.547  	echo hppa1.1-hp-bsd
   6.548 -	exit 0 ;;
   6.549 +	exit ;;
   6.550      9000/8??:4.3bsd:*:*)
   6.551  	echo hppa1.0-hp-bsd
   6.552 -	exit 0 ;;
   6.553 +	exit ;;
   6.554      *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
   6.555  	echo hppa1.0-hp-mpeix
   6.556 -	exit 0 ;;
   6.557 +	exit ;;
   6.558      hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
   6.559  	echo hppa1.1-hp-osf
   6.560 -	exit 0 ;;
   6.561 +	exit ;;
   6.562      hp8??:OSF1:*:*)
   6.563  	echo hppa1.0-hp-osf
   6.564 -	exit 0 ;;
   6.565 +	exit ;;
   6.566      i*86:OSF1:*:*)
   6.567  	if [ -x /usr/sbin/sysversion ] ; then
   6.568  	    echo ${UNAME_MACHINE}-unknown-osf1mk
   6.569  	else
   6.570  	    echo ${UNAME_MACHINE}-unknown-osf1
   6.571  	fi
   6.572 -	exit 0 ;;
   6.573 +	exit ;;
   6.574      parisc*:Lites*:*:*)
   6.575  	echo hppa1.1-hp-lites
   6.576 -	exit 0 ;;
   6.577 +	exit ;;
   6.578      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
   6.579  	echo c1-convex-bsd
   6.580 -        exit 0 ;;
   6.581 +        exit ;;
   6.582      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
   6.583  	if getsysinfo -f scalar_acc
   6.584  	then echo c32-convex-bsd
   6.585  	else echo c2-convex-bsd
   6.586  	fi
   6.587 -        exit 0 ;;
   6.588 +        exit ;;
   6.589      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
   6.590  	echo c34-convex-bsd
   6.591 -        exit 0 ;;
   6.592 +        exit ;;
   6.593      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
   6.594  	echo c38-convex-bsd
   6.595 -        exit 0 ;;
   6.596 +        exit ;;
   6.597      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
   6.598  	echo c4-convex-bsd
   6.599 -        exit 0 ;;
   6.600 +        exit ;;
   6.601      CRAY*Y-MP:*:*:*)
   6.602  	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.603 -	exit 0 ;;
   6.604 +	exit ;;
   6.605      CRAY*[A-Z]90:*:*:*)
   6.606  	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
   6.607  	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
   6.608  	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
   6.609  	      -e 's/\.[^.]*$/.X/'
   6.610 -	exit 0 ;;
   6.611 +	exit ;;
   6.612      CRAY*TS:*:*:*)
   6.613  	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.614 -	exit 0 ;;
   6.615 +	exit ;;
   6.616      CRAY*T3E:*:*:*)
   6.617  	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.618 -	exit 0 ;;
   6.619 +	exit ;;
   6.620      CRAY*SV1:*:*:*)
   6.621  	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.622 -	exit 0 ;;
   6.623 +	exit ;;
   6.624      *:UNICOS/mp:*:*)
   6.625  	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.626 -	exit 0 ;;
   6.627 +	exit ;;
   6.628      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
   6.629  	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   6.630          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   6.631          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   6.632          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   6.633 -        exit 0 ;;
   6.634 +        exit ;;
   6.635      5000:UNIX_System_V:4.*:*)
   6.636          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   6.637          FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
   6.638          echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   6.639 -	exit 0 ;;
   6.640 +	exit ;;
   6.641      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
   6.642  	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
   6.643 -	exit 0 ;;
   6.644 +	exit ;;
   6.645      sparc*:BSD/OS:*:*)
   6.646  	echo sparc-unknown-bsdi${UNAME_RELEASE}
   6.647 -	exit 0 ;;
   6.648 +	exit ;;
   6.649      *:BSD/OS:*:*)
   6.650  	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
   6.651 -	exit 0 ;;
   6.652 +	exit ;;
   6.653      *:FreeBSD:*:*)
   6.654 -	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
   6.655 -	exit 0 ;;
   6.656 +	case ${UNAME_MACHINE} in
   6.657 +	    pc98)
   6.658 +		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   6.659 +	    amd64)
   6.660 +		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   6.661 +	    *)
   6.662 +		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   6.663 +	esac
   6.664 +	exit ;;
   6.665      i*:CYGWIN*:*)
   6.666  	echo ${UNAME_MACHINE}-pc-cygwin
   6.667 -	exit 0 ;;
   6.668 -    i*:MINGW*:*)
   6.669 +	exit ;;
   6.670 +    *:MINGW*:*)
   6.671  	echo ${UNAME_MACHINE}-pc-mingw32
   6.672 -	exit 0 ;;
   6.673 +	exit ;;
   6.674 +    i*:windows32*:*)
   6.675 +    	# uname -m includes "-pc" on this system.
   6.676 +    	echo ${UNAME_MACHINE}-mingw32
   6.677 +	exit ;;
   6.678      i*:PW*:*)
   6.679  	echo ${UNAME_MACHINE}-pc-pw32
   6.680 -	exit 0 ;;
   6.681 -    x86:Interix*:[34]*)
   6.682 -	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
   6.683 -	exit 0 ;;
   6.684 +	exit ;;
   6.685 +    *:Interix*:[3456]*)
   6.686 +    	case ${UNAME_MACHINE} in
   6.687 +	    x86)
   6.688 +		echo i586-pc-interix${UNAME_RELEASE}
   6.689 +		exit ;;
   6.690 +	    EM64T | authenticamd)
   6.691 +		echo x86_64-unknown-interix${UNAME_RELEASE}
   6.692 +		exit ;;
   6.693 +	    IA64)
   6.694 +		echo ia64-unknown-interix${UNAME_RELEASE}
   6.695 +		exit ;;
   6.696 +	esac ;;
   6.697      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
   6.698  	echo i${UNAME_MACHINE}-pc-mks
   6.699 -	exit 0 ;;
   6.700 +	exit ;;
   6.701      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
   6.702  	# How do we know it's Interix rather than the generic POSIX subsystem?
   6.703  	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
   6.704  	# UNAME_MACHINE based on the output of uname instead of i386?
   6.705  	echo i586-pc-interix
   6.706 -	exit 0 ;;
   6.707 +	exit ;;
   6.708      i*:UWIN*:*)
   6.709  	echo ${UNAME_MACHINE}-pc-uwin
   6.710 -	exit 0 ;;
   6.711 -    amd64:CYGWIN*:*:*)
   6.712 +	exit ;;
   6.713 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
   6.714  	echo x86_64-unknown-cygwin
   6.715 -	exit 0 ;;
   6.716 +	exit ;;
   6.717      p*:CYGWIN*:*)
   6.718  	echo powerpcle-unknown-cygwin
   6.719 -	exit 0 ;;
   6.720 +	exit ;;
   6.721      prep*:SunOS:5.*:*)
   6.722  	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.723 -	exit 0 ;;
   6.724 +	exit ;;
   6.725      *:GNU:*:*)
   6.726  	# the GNU system
   6.727  	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
   6.728 -	exit 0 ;;
   6.729 +	exit ;;
   6.730      *:GNU/*:*:*)
   6.731  	# other systems with GNU libc and userland
   6.732  	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
   6.733 -	exit 0 ;;
   6.734 +	exit ;;
   6.735      i*86:Minix:*:*)
   6.736  	echo ${UNAME_MACHINE}-pc-minix
   6.737 -	exit 0 ;;
   6.738 +	exit ;;
   6.739      arm*:Linux:*:*)
   6.740 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   6.741 -	exit 0 ;;
   6.742 +	eval $set_cc_for_build
   6.743 +	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
   6.744 +	    | grep -q __ARM_EABI__
   6.745 +	then
   6.746 +	    echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.747 +	else
   6.748 +	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
   6.749 +	fi
   6.750 +	exit ;;
   6.751 +    avr32*:Linux:*:*)
   6.752 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.753 +	exit ;;
   6.754      cris:Linux:*:*)
   6.755 -	echo cris-axis-linux
   6.756 -	exit 0 ;;
   6.757 +	echo cris-axis-linux-gnu
   6.758 +	exit ;;
   6.759      crisv32:Linux:*:*)
   6.760 -	echo crisv32-axis-linux
   6.761 -	exit 0 ;;
   6.762 +	echo crisv32-axis-linux-gnu
   6.763 +	exit ;;
   6.764      frv:Linux:*:*)
   6.765 -    	echo frv-${VENDOR}-linux
   6.766 -	exit 0 ;;
   6.767 +    	echo frv-unknown-linux-gnu
   6.768 +	exit ;;
   6.769      ia64:Linux:*:*)
   6.770 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   6.771 -	exit 0 ;;
   6.772 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.773 +	exit ;;
   6.774      m32r*:Linux:*:*)
   6.775 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   6.776 -	exit 0 ;;
   6.777 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.778 +	exit ;;
   6.779      m68*:Linux:*:*)
   6.780 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   6.781 -	exit 0 ;;
   6.782 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.783 +	exit ;;
   6.784      mips:Linux:*:*)
   6.785  	eval $set_cc_for_build
   6.786  	sed 's/^	//' << EOF >$dummy.c
   6.787 @@ -871,8 +882,12 @@
   6.788  	#endif
   6.789  	#endif
   6.790  EOF
   6.791 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
   6.792 -	test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
   6.793 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   6.794 +	    /^CPU/{
   6.795 +		s: ::g
   6.796 +		p
   6.797 +	    }'`"
   6.798 +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   6.799  	;;
   6.800      mips64:Linux:*:*)
   6.801  	eval $set_cc_for_build
   6.802 @@ -890,15 +905,22 @@
   6.803  	#endif
   6.804  	#endif
   6.805  EOF
   6.806 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
   6.807 -	test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
   6.808 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   6.809 +	    /^CPU/{
   6.810 +		s: ::g
   6.811 +		p
   6.812 +	    }'`"
   6.813 +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   6.814  	;;
   6.815 +    or32:Linux:*:*)
   6.816 +	echo or32-unknown-linux-gnu
   6.817 +	exit ;;
   6.818      ppc:Linux:*:*)
   6.819 -	echo powerpc-${VENDOR}-linux
   6.820 -	exit 0 ;;
   6.821 +	echo powerpc-unknown-linux-gnu
   6.822 +	exit ;;
   6.823      ppc64:Linux:*:*)
   6.824 -	echo powerpc64-${VENDOR}-linux
   6.825 -	exit 0 ;;
   6.826 +	echo powerpc64-unknown-linux-gnu
   6.827 +	exit ;;
   6.828      alpha:Linux:*:*)
   6.829  	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
   6.830  	  EV5)   UNAME_MACHINE=alphaev5 ;;
   6.831 @@ -910,35 +932,41 @@
   6.832  	  EV68*) UNAME_MACHINE=alphaev68 ;;
   6.833          esac
   6.834  	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
   6.835 -	if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
   6.836 -	echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
   6.837 -	exit 0 ;;
   6.838 +	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
   6.839 +	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
   6.840 +	exit ;;
   6.841      parisc:Linux:*:* | hppa:Linux:*:*)
   6.842  	# Look for CPU level
   6.843  	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   6.844 -	  PA7*) echo hppa1.1-${VENDOR}-linux ;;
   6.845 -	  PA8*) echo hppa2.0-${VENDOR}-linux ;;
   6.846 -	  *)    echo hppa-${VENDOR}-linux ;;
   6.847 +	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
   6.848 +	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
   6.849 +	  *)    echo hppa-unknown-linux-gnu ;;
   6.850  	esac
   6.851 -	exit 0 ;;
   6.852 +	exit ;;
   6.853      parisc64:Linux:*:* | hppa64:Linux:*:*)
   6.854 -	echo hppa64-${VENDOR}-linux
   6.855 -	exit 0 ;;
   6.856 +	echo hppa64-unknown-linux-gnu
   6.857 +	exit ;;
   6.858      s390:Linux:*:* | s390x:Linux:*:*)
   6.859  	echo ${UNAME_MACHINE}-ibm-linux
   6.860 -	exit 0 ;;
   6.861 +	exit ;;
   6.862      sh64*:Linux:*:*)
   6.863 -    	echo ${UNAME_MACHINE}-${VENDOR}-linux
   6.864 -	exit 0 ;;
   6.865 +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.866 +	exit ;;
   6.867      sh*:Linux:*:*)
   6.868 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   6.869 -	exit 0 ;;
   6.870 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.871 +	exit ;;
   6.872      sparc:Linux:*:* | sparc64:Linux:*:*)
   6.873 -	echo ${UNAME_MACHINE}-${VENDOR}-linux
   6.874 -	exit 0 ;;
   6.875 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.876 +	exit ;;
   6.877 +    vax:Linux:*:*)
   6.878 +	echo ${UNAME_MACHINE}-dec-linux-gnu
   6.879 +	exit ;;
   6.880      x86_64:Linux:*:*)
   6.881 -	echo x86_64-${VENDOR}-linux
   6.882 -	exit 0 ;;
   6.883 +	echo x86_64-unknown-linux-gnu
   6.884 +	exit ;;
   6.885 +    xtensa*:Linux:*:*)
   6.886 +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.887 +	exit ;;
   6.888      i*86:Linux:*:*)
   6.889  	# The BFD linker knows what the default object file format is, so
   6.890  	# first see if it will tell us. cd to the root directory to prevent
   6.891 @@ -952,19 +980,19 @@
   6.892  				    p'`
   6.893          case "$ld_supported_targets" in
   6.894  	  elf32-i386)
   6.895 -		TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
   6.896 +		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
   6.897  		;;
   6.898  	  a.out-i386-linux)
   6.899 -		echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
   6.900 -		exit 0 ;;
   6.901 +		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
   6.902 +		exit ;;
   6.903  	  coff-i386)
   6.904 -		echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
   6.905 -		exit 0 ;;
   6.906 +		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
   6.907 +		exit ;;
   6.908  	  "")
   6.909 -		# Either a pre-BFD a.out linker (linuxoldld) or
   6.910 +		# Either a pre-BFD a.out linker (linux-gnuoldld) or
   6.911  		# one that does not give us useful --help.
   6.912 -		echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
   6.913 -		exit 0 ;;
   6.914 +		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
   6.915 +		exit ;;
   6.916  	esac
   6.917  	# Determine whether the default compiler is a.out or elf
   6.918  	eval $set_cc_for_build
   6.919 @@ -981,7 +1009,7 @@
   6.920  	LIBC=gnulibc1
   6.921  	# endif
   6.922  	#else
   6.923 -	#ifdef __INTEL_COMPILER
   6.924 +	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
   6.925  	LIBC=gnu
   6.926  	#else
   6.927  	LIBC=gnuaout
   6.928 @@ -991,16 +1019,23 @@
   6.929  	LIBC=dietlibc
   6.930  	#endif
   6.931  EOF
   6.932 -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
   6.933 -	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
   6.934 -	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
   6.935 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
   6.936 +	    /^LIBC/{
   6.937 +		s: ::g
   6.938 +		p
   6.939 +	    }'`"
   6.940 +	test x"${LIBC}" != x && {
   6.941 +		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
   6.942 +		exit
   6.943 +	}
   6.944 +	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
   6.945  	;;
   6.946      i*86:DYNIX/ptx:4*:*)
   6.947  	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
   6.948  	# earlier versions are messed up and put the nodename in both
   6.949  	# sysname and nodename.
   6.950  	echo i386-sequent-sysv4
   6.951 -	exit 0 ;;
   6.952 +	exit ;;
   6.953      i*86:UNIX_SV:4.2MP:2.*)
   6.954          # Unixware is an offshoot of SVR4, but it has its own version
   6.955          # number series starting with 2...
   6.956 @@ -1008,27 +1043,27 @@
   6.957  	# I just have to hope.  -- rms.
   6.958          # Use sysv4.2uw... so that sysv4* matches it.
   6.959  	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
   6.960 -	exit 0 ;;
   6.961 +	exit ;;
   6.962      i*86:OS/2:*:*)
   6.963  	# If we were able to find `uname', then EMX Unix compatibility
   6.964  	# is probably installed.
   6.965  	echo ${UNAME_MACHINE}-pc-os2-emx
   6.966 -	exit 0 ;;
   6.967 +	exit ;;
   6.968      i*86:XTS-300:*:STOP)
   6.969  	echo ${UNAME_MACHINE}-unknown-stop
   6.970 -	exit 0 ;;
   6.971 +	exit ;;
   6.972      i*86:atheos:*:*)
   6.973  	echo ${UNAME_MACHINE}-unknown-atheos
   6.974 -	exit 0 ;;
   6.975 -	i*86:syllable:*:*)
   6.976 +	exit ;;
   6.977 +    i*86:syllable:*:*)
   6.978  	echo ${UNAME_MACHINE}-pc-syllable
   6.979 -	exit 0 ;;
   6.980 +	exit ;;
   6.981      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
   6.982  	echo i386-unknown-lynxos${UNAME_RELEASE}
   6.983 -	exit 0 ;;
   6.984 +	exit ;;
   6.985      i*86:*DOS:*:*)
   6.986  	echo ${UNAME_MACHINE}-pc-msdosdjgpp
   6.987 -	exit 0 ;;
   6.988 +	exit ;;
   6.989      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
   6.990  	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
   6.991  	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
   6.992 @@ -1036,15 +1071,16 @@
   6.993  	else
   6.994  		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
   6.995  	fi
   6.996 -	exit 0 ;;
   6.997 -    i*86:*:5:[78]*)
   6.998 +	exit ;;
   6.999 +    i*86:*:5:[678]*)
  6.1000 +    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
  6.1001  	case `/bin/uname -X | grep "^Machine"` in
  6.1002  	    *486*)	     UNAME_MACHINE=i486 ;;
  6.1003  	    *Pentium)	     UNAME_MACHINE=i586 ;;
  6.1004  	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  6.1005  	esac
  6.1006  	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  6.1007 -	exit 0 ;;
  6.1008 +	exit ;;
  6.1009      i*86:*:3.2:*)
  6.1010  	if test -f /usr/options/cb.name; then
  6.1011  		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  6.1012 @@ -1062,73 +1098,73 @@
  6.1013  	else
  6.1014  		echo ${UNAME_MACHINE}-pc-sysv32
  6.1015  	fi
  6.1016 -	exit 0 ;;
  6.1017 +	exit ;;
  6.1018      pc:*:*:*)
  6.1019  	# Left here for compatibility:
  6.1020          # uname -m prints for DJGPP always 'pc', but it prints nothing about
  6.1021          # the processor, so we play safe by assuming i386.
  6.1022  	echo i386-pc-msdosdjgpp
  6.1023 -        exit 0 ;;
  6.1024 +        exit ;;
  6.1025      Intel:Mach:3*:*)
  6.1026  	echo i386-pc-mach3
  6.1027 -	exit 0 ;;
  6.1028 +	exit ;;
  6.1029      paragon:*:*:*)
  6.1030  	echo i860-intel-osf1
  6.1031 -	exit 0 ;;
  6.1032 +	exit ;;
  6.1033      i860:*:4.*:*) # i860-SVR4
  6.1034  	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  6.1035  	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  6.1036  	else # Add other i860-SVR4 vendors below as they are discovered.
  6.1037  	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
  6.1038  	fi
  6.1039 -	exit 0 ;;
  6.1040 +	exit ;;
  6.1041      mini*:CTIX:SYS*5:*)
  6.1042  	# "miniframe"
  6.1043  	echo m68010-convergent-sysv
  6.1044 -	exit 0 ;;
  6.1045 +	exit ;;
  6.1046      mc68k:UNIX:SYSTEM5:3.51m)
  6.1047  	echo m68k-convergent-sysv
  6.1048 -	exit 0 ;;
  6.1049 +	exit ;;
  6.1050      M680?0:D-NIX:5.3:*)
  6.1051  	echo m68k-diab-dnix
  6.1052 -	exit 0 ;;
  6.1053 +	exit ;;
  6.1054      M68*:*:R3V[5678]*:*)
  6.1055 -	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  6.1056 +	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  6.1057      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)
  6.1058  	OS_REL=''
  6.1059  	test -r /etc/.relid \
  6.1060  	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  6.1061  	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  6.1062 -	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  6.1063 +	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  6.1064  	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  6.1065 -	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  6.1066 +	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  6.1067      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  6.1068          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  6.1069 -          && echo i486-ncr-sysv4 && exit 0 ;;
  6.1070 +          && { echo i486-ncr-sysv4; exit; } ;;
  6.1071      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  6.1072  	echo m68k-unknown-lynxos${UNAME_RELEASE}
  6.1073 -	exit 0 ;;
  6.1074 +	exit ;;
  6.1075      mc68030:UNIX_System_V:4.*:*)
  6.1076  	echo m68k-atari-sysv4
  6.1077 -	exit 0 ;;
  6.1078 +	exit ;;
  6.1079      TSUNAMI:LynxOS:2.*:*)
  6.1080  	echo sparc-unknown-lynxos${UNAME_RELEASE}
  6.1081 -	exit 0 ;;
  6.1082 +	exit ;;
  6.1083      rs6000:LynxOS:2.*:*)
  6.1084  	echo rs6000-unknown-lynxos${UNAME_RELEASE}
  6.1085 -	exit 0 ;;
  6.1086 +	exit ;;
  6.1087      PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  6.1088  	echo powerpc-unknown-lynxos${UNAME_RELEASE}
  6.1089 -	exit 0 ;;
  6.1090 +	exit ;;
  6.1091      SM[BE]S:UNIX_SV:*:*)
  6.1092  	echo mips-dde-sysv${UNAME_RELEASE}
  6.1093 -	exit 0 ;;
  6.1094 +	exit ;;
  6.1095      RM*:ReliantUNIX-*:*:*)
  6.1096  	echo mips-sni-sysv4
  6.1097 -	exit 0 ;;
  6.1098 +	exit ;;
  6.1099      RM*:SINIX-*:*:*)
  6.1100  	echo mips-sni-sysv4
  6.1101 -	exit 0 ;;
  6.1102 +	exit ;;
  6.1103      *:SINIX-*:*:*)
  6.1104  	if uname -p 2>/dev/null >/dev/null ; then
  6.1105  		UNAME_MACHINE=`(uname -p) 2>/dev/null`
  6.1106 @@ -1136,69 +1172,81 @@
  6.1107  	else
  6.1108  		echo ns32k-sni-sysv
  6.1109  	fi
  6.1110 -	exit 0 ;;
  6.1111 +	exit ;;
  6.1112      PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  6.1113                        # says <Richard.M.Bartel@ccMail.Census.GOV>
  6.1114          echo i586-unisys-sysv4
  6.1115 -        exit 0 ;;
  6.1116 +        exit ;;
  6.1117      *:UNIX_System_V:4*:FTX*)
  6.1118  	# From Gerald Hewes <hewes@openmarket.com>.
  6.1119  	# How about differentiating between stratus architectures? -djm
  6.1120  	echo hppa1.1-stratus-sysv4
  6.1121 -	exit 0 ;;
  6.1122 +	exit ;;
  6.1123      *:*:*:FTX*)
  6.1124  	# From seanf@swdc.stratus.com.
  6.1125  	echo i860-stratus-sysv4
  6.1126 -	exit 0 ;;
  6.1127 +	exit ;;
  6.1128 +    i*86:VOS:*:*)
  6.1129 +	# From Paul.Green@stratus.com.
  6.1130 +	echo ${UNAME_MACHINE}-stratus-vos
  6.1131 +	exit ;;
  6.1132      *:VOS:*:*)
  6.1133  	# From Paul.Green@stratus.com.
  6.1134  	echo hppa1.1-stratus-vos
  6.1135 -	exit 0 ;;
  6.1136 +	exit ;;
  6.1137      mc68*:A/UX:*:*)
  6.1138  	echo m68k-apple-aux${UNAME_RELEASE}
  6.1139 -	exit 0 ;;
  6.1140 +	exit ;;
  6.1141      news*:NEWS-OS:6*:*)
  6.1142  	echo mips-sony-newsos6
  6.1143 -	exit 0 ;;
  6.1144 +	exit ;;
  6.1145      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  6.1146  	if [ -d /usr/nec ]; then
  6.1147  	        echo mips-nec-sysv${UNAME_RELEASE}
  6.1148  	else
  6.1149  	        echo mips-unknown-sysv${UNAME_RELEASE}
  6.1150  	fi
  6.1151 -        exit 0 ;;
  6.1152 +        exit ;;
  6.1153      BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
  6.1154  	echo powerpc-be-beos
  6.1155 -	exit 0 ;;
  6.1156 +	exit ;;
  6.1157      BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
  6.1158  	echo powerpc-apple-beos
  6.1159 -	exit 0 ;;
  6.1160 +	exit ;;
  6.1161      BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
  6.1162  	echo i586-pc-beos
  6.1163 -	exit 0 ;;
  6.1164 +	exit ;;
  6.1165      SX-4:SUPER-UX:*:*)
  6.1166  	echo sx4-nec-superux${UNAME_RELEASE}
  6.1167 -	exit 0 ;;
  6.1168 +	exit ;;
  6.1169      SX-5:SUPER-UX:*:*)
  6.1170  	echo sx5-nec-superux${UNAME_RELEASE}
  6.1171 -	exit 0 ;;
  6.1172 +	exit ;;
  6.1173      SX-6:SUPER-UX:*:*)
  6.1174  	echo sx6-nec-superux${UNAME_RELEASE}
  6.1175 -	exit 0 ;;
  6.1176 +	exit ;;
  6.1177 +    SX-7:SUPER-UX:*:*)
  6.1178 +	echo sx7-nec-superux${UNAME_RELEASE}
  6.1179 +	exit ;;
  6.1180 +    SX-8:SUPER-UX:*:*)
  6.1181 +	echo sx8-nec-superux${UNAME_RELEASE}
  6.1182 +	exit ;;
  6.1183 +    SX-8R:SUPER-UX:*:*)
  6.1184 +	echo sx8r-nec-superux${UNAME_RELEASE}
  6.1185 +	exit ;;
  6.1186      Power*:Rhapsody:*:*)
  6.1187  	echo powerpc-apple-rhapsody${UNAME_RELEASE}
  6.1188 -	exit 0 ;;
  6.1189 +	exit ;;
  6.1190      *:Rhapsody:*:*)
  6.1191  	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  6.1192 -	exit 0 ;;
  6.1193 +	exit ;;
  6.1194      *:Darwin:*:*)
  6.1195  	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  6.1196  	case $UNAME_PROCESSOR in
  6.1197 -	    *86) UNAME_PROCESSOR=i686 ;;
  6.1198  	    unknown) UNAME_PROCESSOR=powerpc ;;
  6.1199  	esac
  6.1200  	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  6.1201 -	exit 0 ;;
  6.1202 +	exit ;;
  6.1203      *:procnto*:*:* | *:QNX:[0123456789]*:*)
  6.1204  	UNAME_PROCESSOR=`uname -p`
  6.1205  	if test "$UNAME_PROCESSOR" = "x86"; then
  6.1206 @@ -1206,25 +1254,25 @@
  6.1207  		UNAME_MACHINE=pc
  6.1208  	fi
  6.1209  	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  6.1210 -	exit 0 ;;
  6.1211 +	exit ;;
  6.1212      *:QNX:*:4*)
  6.1213  	echo i386-pc-qnx
  6.1214 -	exit 0 ;;
  6.1215 +	exit ;;
  6.1216      NSE-?:NONSTOP_KERNEL:*:*)
  6.1217  	echo nse-tandem-nsk${UNAME_RELEASE}
  6.1218 -	exit 0 ;;
  6.1219 +	exit ;;
  6.1220      NSR-?:NONSTOP_KERNEL:*:*)
  6.1221  	echo nsr-tandem-nsk${UNAME_RELEASE}
  6.1222 -	exit 0 ;;
  6.1223 +	exit ;;
  6.1224      *:NonStop-UX:*:*)
  6.1225  	echo mips-compaq-nonstopux
  6.1226 -	exit 0 ;;
  6.1227 +	exit ;;
  6.1228      BS2000:POSIX*:*:*)
  6.1229  	echo bs2000-siemens-sysv
  6.1230 -	exit 0 ;;
  6.1231 +	exit ;;
  6.1232      DS/*:UNIX_System_V:*:*)
  6.1233  	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  6.1234 -	exit 0 ;;
  6.1235 +	exit ;;
  6.1236      *:Plan9:*:*)
  6.1237  	# "uname -m" is not consistent, so use $cputype instead. 386
  6.1238  	# is converted to i386 for consistency with other x86
  6.1239 @@ -1235,41 +1283,47 @@
  6.1240  	    UNAME_MACHINE="$cputype"
  6.1241  	fi
  6.1242  	echo ${UNAME_MACHINE}-unknown-plan9
  6.1243 -	exit 0 ;;
  6.1244 +	exit ;;
  6.1245      *:TOPS-10:*:*)
  6.1246  	echo pdp10-unknown-tops10
  6.1247 -	exit 0 ;;
  6.1248 +	exit ;;
  6.1249      *:TENEX:*:*)
  6.1250  	echo pdp10-unknown-tenex
  6.1251 -	exit 0 ;;
  6.1252 +	exit ;;
  6.1253      KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  6.1254  	echo pdp10-dec-tops20
  6.1255 -	exit 0 ;;
  6.1256 +	exit ;;
  6.1257      XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  6.1258  	echo pdp10-xkl-tops20
  6.1259 -	exit 0 ;;
  6.1260 +	exit ;;
  6.1261      *:TOPS-20:*:*)
  6.1262  	echo pdp10-unknown-tops20
  6.1263 -	exit 0 ;;
  6.1264 +	exit ;;
  6.1265      *:ITS:*:*)
  6.1266  	echo pdp10-unknown-its
  6.1267 -	exit 0 ;;
  6.1268 +	exit ;;
  6.1269      SEI:*:*:SEIUX)
  6.1270          echo mips-sei-seiux${UNAME_RELEASE}
  6.1271 -	exit 0 ;;
  6.1272 +	exit ;;
  6.1273      *:DragonFly:*:*)
  6.1274  	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  6.1275 -	exit 0 ;;
  6.1276 +	exit ;;
  6.1277      *:*VMS:*:*)
  6.1278      	UNAME_MACHINE=`(uname -p) 2>/dev/null`
  6.1279  	case "${UNAME_MACHINE}" in
  6.1280 -	    A*) echo alpha-dec-vms && exit 0 ;;
  6.1281 -	    I*) echo ia64-dec-vms && exit 0 ;;
  6.1282 -	    V*) echo vax-dec-vms && exit 0 ;;
  6.1283 +	    A*) echo alpha-dec-vms ; exit ;;
  6.1284 +	    I*) echo ia64-dec-vms ; exit ;;
  6.1285 +	    V*) echo vax-dec-vms ; exit ;;
  6.1286  	esac ;;
  6.1287      *:XENIX:*:SysV)
  6.1288  	echo i386-pc-xenix
  6.1289 -	exit 0 ;;
  6.1290 +	exit ;;
  6.1291 +    i*86:skyos:*:*)
  6.1292 +	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  6.1293 +	exit ;;
  6.1294 +    i*86:rdos:*:*)
  6.1295 +	echo ${UNAME_MACHINE}-pc-rdos
  6.1296 +	exit ;;
  6.1297  esac
  6.1298  
  6.1299  #echo '(No uname command or uname output not recognized.)' 1>&2
  6.1300 @@ -1301,7 +1355,7 @@
  6.1301  #endif
  6.1302  
  6.1303  #if defined (__arm) && defined (__acorn) && defined (__unix)
  6.1304 -  printf ("arm-acorn-riscix"); exit (0);
  6.1305 +  printf ("arm-acorn-riscix\n"); exit (0);
  6.1306  #endif
  6.1307  
  6.1308  #if defined (hp300) && !defined (hpux)
  6.1309 @@ -1390,11 +1444,12 @@
  6.1310  }
  6.1311  EOF
  6.1312  
  6.1313 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  6.1314 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  6.1315 +	{ echo "$SYSTEM_NAME"; exit; }
  6.1316  
  6.1317  # Apollos put the system type in the environment.
  6.1318  
  6.1319 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  6.1320 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  6.1321  
  6.1322  # Convex versions that predate uname can use getsysinfo(1)
  6.1323  
  6.1324 @@ -1403,22 +1458,22 @@
  6.1325      case `getsysinfo -f cpu_type` in
  6.1326      c1*)
  6.1327  	echo c1-convex-bsd
  6.1328 -	exit 0 ;;
  6.1329 +	exit ;;
  6.1330      c2*)
  6.1331  	if getsysinfo -f scalar_acc
  6.1332  	then echo c32-convex-bsd
  6.1333  	else echo c2-convex-bsd
  6.1334  	fi
  6.1335 -	exit 0 ;;
  6.1336 +	exit ;;
  6.1337      c34*)
  6.1338  	echo c34-convex-bsd
  6.1339 -	exit 0 ;;
  6.1340 +	exit ;;
  6.1341      c38*)
  6.1342  	echo c38-convex-bsd
  6.1343 -	exit 0 ;;
  6.1344 +	exit ;;
  6.1345      c4*)
  6.1346  	echo c4-convex-bsd
  6.1347 -	exit 0 ;;
  6.1348 +	exit ;;
  6.1349      esac
  6.1350  fi
  6.1351  
  6.1352 @@ -1429,7 +1484,9 @@
  6.1353  the operating system you are using. It is advised that you
  6.1354  download the most up to date version of the config scripts from
  6.1355  
  6.1356 -    ftp://ftp.gnu.org/pub/gnu/config/
  6.1357 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  6.1358 +and
  6.1359 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  6.1360  
  6.1361  If the version you run ($0) is already up to date, please
  6.1362  send the following data and any information you think might be
     7.1 --- a/libhrel/config.sub	Sat May 10 07:45:39 2008 -0500
     7.2 +++ b/libhrel/config.sub	Sat May 10 07:48:26 2008 -0500
     7.3 @@ -1,9 +1,10 @@
     7.4  #! /bin/sh
     7.5  # Configuration validation subroutine script.
     7.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     7.7 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     7.8 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     7.9 +#   Free Software Foundation, Inc.
    7.10  
    7.11 -timestamp='2005-02-10'
    7.12 +timestamp='2008-01-16'
    7.13  
    7.14  # This file is (in principle) common to ALL GNU software.
    7.15  # The presence of a machine in this file suggests that SOME GNU software
    7.16 @@ -21,14 +22,15 @@
    7.17  #
    7.18  # You should have received a copy of the GNU General Public License
    7.19  # along with this program; if not, write to the Free Software
    7.20 -# Foundation, Inc., 59 Temple Place - Suite 330,
    7.21 -# Boston, MA 02111-1307, USA.
    7.22 -
    7.23 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    7.24 +# 02110-1301, USA.
    7.25 +#
    7.26  # As a special exception to the GNU General Public License, if you
    7.27  # distribute this file as part of a program that contains a
    7.28  # configuration script generated by Autoconf, you may include it under
    7.29  # the same distribution terms that you use for the rest of that program.
    7.30  
    7.31 +
    7.32  # Please send patches to <config-patches@gnu.org>.  Submit a context
    7.33  # diff and a properly formatted ChangeLog entry.
    7.34  #
    7.35 @@ -70,8 +72,8 @@
    7.36  version="\
    7.37  GNU config.sub ($timestamp)
    7.38  
    7.39 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    7.40 -Free Software Foundation, Inc.
    7.41 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    7.42 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    7.43  
    7.44  This is free software; see the source for copying conditions.  There is NO
    7.45  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    7.46 @@ -83,11 +85,11 @@
    7.47  while test $# -gt 0 ; do
    7.48    case $1 in
    7.49      --time-stamp | --time* | -t )
    7.50 -       echo "$timestamp" ; exit 0 ;;
    7.51 +       echo "$timestamp" ; exit ;;
    7.52      --version | -v )
    7.53 -       echo "$version" ; exit 0 ;;
    7.54 +       echo "$version" ; exit ;;
    7.55      --help | --h* | -h )
    7.56 -       echo "$usage"; exit 0 ;;
    7.57 +       echo "$usage"; exit ;;
    7.58      -- )     # Stop option processing
    7.59         shift; break ;;
    7.60      - )	# Use stdin as input.
    7.61 @@ -99,7 +101,7 @@
    7.62      *local*)
    7.63         # First pass through any local machine types.
    7.64         echo $1
    7.65 -       exit 0;;
    7.66 +       exit ;;
    7.67  
    7.68      * )
    7.69         break ;;
    7.70 @@ -118,8 +120,9 @@
    7.71  # Here we must recognize all the valid KERNEL-OS combinations.
    7.72  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    7.73  case $maybe_os in
    7.74 -  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
    7.75 -  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    7.76 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
    7.77 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
    7.78 +  storm-chaos* | os2-emx* | rtmk-nova*)
    7.79      os=-$maybe_os
    7.80      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    7.81      ;;
    7.82 @@ -170,6 +173,10 @@
    7.83  	-hiux*)
    7.84  		os=-hiuxwe2
    7.85  		;;
    7.86 +	-sco6)
    7.87 +		os=-sco5v6
    7.88 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    7.89 +		;;
    7.90  	-sco5)
    7.91  		os=-sco3.2v5
    7.92  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    7.93 @@ -186,6 +193,10 @@
    7.94  		# Don't forget version if it is 3.2v4 or newer.
    7.95  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    7.96  		;;
    7.97 +	-sco5v6*)
    7.98 +		# Don't forget version if it is 3.2v4 or newer.
    7.99 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.100 +		;;
   7.101  	-sco*)
   7.102  		os=-sco3.2v2
   7.103  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.104 @@ -230,14 +241,16 @@
   7.105  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   7.106  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   7.107  	| am33_2.0 \
   7.108 -	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
   7.109 +	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
   7.110 +	| bfin \
   7.111  	| c4x | clipper \
   7.112  	| d10v | d30v | dlx | dsp16xx \
   7.113 -	| fr30 | frv \
   7.114 +	| fido | fr30 | frv \
   7.115  	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
   7.116  	| i370 | i860 | i960 | ia64 \
   7.117  	| ip2k | iq2000 \
   7.118 -	| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
   7.119 +	| m32c | m32r | m32rle | m68000 | m68k | m88k \
   7.120 +	| maxq | mb | microblaze | mcore | mep \
   7.121  	| mips | mipsbe | mipseb | mipsel | mipsle \
   7.122  	| mips16 \
   7.123  	| mips64 | mips64el \
   7.124 @@ -246,6 +259,7 @@
   7.125  	| mips64vr4100 | mips64vr4100el \
   7.126  	| mips64vr4300 | mips64vr4300el \
   7.127  	| mips64vr5000 | mips64vr5000el \
   7.128 +	| mips64vr5900 | mips64vr5900el \
   7.129  	| mipsisa32 | mipsisa32el \
   7.130  	| mipsisa32r2 | mipsisa32r2el \
   7.131  	| mipsisa64 | mipsisa64el \
   7.132 @@ -254,20 +268,24 @@
   7.133  	| mipsisa64sr71k | mipsisa64sr71kel \
   7.134  	| mipstx39 | mipstx39el \
   7.135  	| mn10200 | mn10300 \
   7.136 +	| mt \
   7.137  	| msp430 \
   7.138 +	| nios | nios2 \
   7.139  	| ns16k | ns32k \
   7.140 -	| openrisc | or32 \
   7.141 +	| or32 \
   7.142  	| pdp10 | pdp11 | pj | pjl \
   7.143  	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
   7.144  	| pyramid \
   7.145 -	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
   7.146 +	| score \
   7.147 +	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
   7.148  	| sh64 | sh64le \
   7.149 -	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
   7.150 -	| strongarm \
   7.151 +	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
   7.152 +	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
   7.153 +	| spu | strongarm \
   7.154  	| tahoe | thumb | tic4x | tic80 | tron \
   7.155  	| v850 | v850e \
   7.156  	| we32k \
   7.157 -	| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
   7.158 +	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
   7.159  	| z8k)
   7.160  		basic_machine=$basic_machine-unknown
   7.161  		;;
   7.162 @@ -278,6 +296,9 @@
   7.163  		;;
   7.164  	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
   7.165  		;;
   7.166 +	ms1)
   7.167 +		basic_machine=mt-unknown
   7.168 +		;;
   7.169  
   7.170  	# We use `pc' rather than `unknown'
   7.171  	# because (1) that's what they normally are, and
   7.172 @@ -297,18 +318,18 @@
   7.173  	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
   7.174  	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
   7.175  	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   7.176 -	| avr-* \
   7.177 -	| bs2000-* \
   7.178 +	| avr-* | avr32-* \
   7.179 +	| bfin-* | bs2000-* \
   7.180  	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
   7.181  	| clipper-* | craynv-* | cydra-* \
   7.182  	| d10v-* | d30v-* | dlx-* \
   7.183  	| elxsi-* \
   7.184 -	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
   7.185 +	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
   7.186  	| h8300-* | h8500-* \
   7.187  	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   7.188  	| i*86-* | i860-* | i960-* | ia64-* \
   7.189  	| ip2k-* | iq2000-* \
   7.190 -	| m32r-* | m32rle-* \
   7.191 +	| m32c-* | m32r-* | m32rle-* \
   7.192  	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   7.193  	| m88110-* | m88k-* | maxq-* | mcore-* \
   7.194  	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   7.195 @@ -319,6 +340,7 @@
   7.196  	| mips64vr4100-* | mips64vr4100el-* \
   7.197  	| mips64vr4300-* | mips64vr4300el-* \
   7.198  	| mips64vr5000-* | mips64vr5000el-* \
   7.199 +	| mips64vr5900-* | mips64vr5900el-* \
   7.200  	| mipsisa32-* | mipsisa32el-* \
   7.201  	| mipsisa32r2-* | mipsisa32r2el-* \
   7.202  	| mipsisa64-* | mipsisa64el-* \
   7.203 @@ -327,27 +349,34 @@
   7.204  	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
   7.205  	| mipstx39-* | mipstx39el-* \
   7.206  	| mmix-* \
   7.207 +	| mt-* \
   7.208  	| msp430-* \
   7.209 +	| nios-* | nios2-* \
   7.210  	| none-* | np1-* | ns16k-* | ns32k-* \
   7.211  	| orion-* \
   7.212  	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   7.213  	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
   7.214  	| pyramid-* \
   7.215  	| romp-* | rs6000-* \
   7.216 -	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
   7.217 +	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   7.218  	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   7.219 -	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
   7.220 -	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
   7.221 +	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
   7.222 +	| sparclite-* \
   7.223 +	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
   7.224  	| tahoe-* | thumb-* \
   7.225  	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   7.226  	| tron-* \
   7.227  	| v850-* | v850e-* | vax-* \
   7.228  	| we32k-* \
   7.229 -	| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
   7.230 -	| xstormy16-* | xtensa-* \
   7.231 +	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
   7.232 +	| xstormy16-* | xtensa*-* \
   7.233  	| ymp-* \
   7.234  	| z8k-*)
   7.235  		;;
   7.236 +	# Recognize the basic CPU types without company name, with glob match.
   7.237 +	xtensa*)
   7.238 +		basic_machine=$basic_machine-unknown
   7.239 +		;;
   7.240  	# Recognize the various machine names and aliases which stand
   7.241  	# for a CPU type and a company and sometimes even an OS.
   7.242  	386bsd)
   7.243 @@ -418,6 +447,14 @@
   7.244  		basic_machine=ns32k-sequent
   7.245  		os=-dynix
   7.246  		;;
   7.247 +	blackfin)
   7.248 +		basic_machine=bfin-unknown
   7.249 +		os=-linux
   7.250 +		;;
   7.251 +	blackfin-*)
   7.252 +		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.253 +		os=-linux
   7.254 +		;;
   7.255  	c90)
   7.256  		basic_machine=c90-cray
   7.257  		os=-unicos
   7.258 @@ -450,8 +487,8 @@
   7.259  		basic_machine=craynv-cray
   7.260  		os=-unicosmp
   7.261  		;;
   7.262 -	cr16c)
   7.263 -		basic_machine=cr16c-unknown
   7.264 +	cr16)
   7.265 +		basic_machine=cr16-unknown
   7.266  		os=-elf
   7.267  		;;
   7.268  	crds | unos)
   7.269 @@ -643,6 +680,14 @@
   7.270  		basic_machine=m68k-isi
   7.271  		os=-sysv
   7.272  		;;
   7.273 +	m68knommu)
   7.274 +		basic_machine=m68k-unknown
   7.275 +		os=-linux
   7.276 +		;;
   7.277 +	m68knommu-*)
   7.278 +		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.279 +		os=-linux
   7.280 +		;;
   7.281  	m88k-omron*)
   7.282  		basic_machine=m88k-omron
   7.283  		;;
   7.284 @@ -658,6 +703,10 @@
   7.285  		basic_machine=i386-pc
   7.286  		os=-mingw32
   7.287  		;;
   7.288 +	mingw32ce)
   7.289 +		basic_machine=arm-unknown
   7.290 +		os=-mingw32ce
   7.291 +		;;
   7.292  	miniframe)
   7.293  		basic_machine=m68000-convergent
   7.294  		;;
   7.295 @@ -683,6 +732,9 @@
   7.296  		basic_machine=i386-pc
   7.297  		os=-msdos
   7.298  		;;
   7.299 +	ms1-*)
   7.300 +		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
   7.301 +		;;
   7.302  	mvs)
   7.303  		basic_machine=i370-ibm
   7.304  		os=-mvs
   7.305 @@ -758,9 +810,8 @@
   7.306  		basic_machine=hppa1.1-oki
   7.307  		os=-proelf
   7.308  		;;
   7.309 -	or32 | or32-*)
   7.310 +	openrisc | openrisc-*)
   7.311  		basic_machine=or32-unknown
   7.312 -		os=-coff
   7.313  		;;
   7.314  	os400)
   7.315  		basic_machine=powerpc-ibm
   7.316 @@ -782,6 +833,14 @@
   7.317  		basic_machine=i860-intel
   7.318  		os=-osf
   7.319  		;;
   7.320 +	parisc)
   7.321 +		basic_machine=hppa-unknown
   7.322 +		os=-linux
   7.323 +		;;
   7.324 +	parisc-*)
   7.325 +		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.326 +		os=-linux
   7.327 +		;;
   7.328  	pbd)
   7.329  		basic_machine=sparc-tti
   7.330  		;;
   7.331 @@ -791,6 +850,12 @@
   7.332  	pc532 | pc532-*)
   7.333  		basic_machine=ns32k-pc532
   7.334  		;;
   7.335 +	pc98)
   7.336 +		basic_machine=i386-pc
   7.337 +		;;
   7.338 +	pc98-*)
   7.339 +		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.340 +		;;
   7.341  	pentium | p5 | k5 | k6 | nexgen | viac3)
   7.342  		basic_machine=i586-pc
   7.343  		;;
   7.344 @@ -847,6 +912,10 @@
   7.345  		basic_machine=i586-unknown
   7.346  		os=-pw32
   7.347  		;;
   7.348 +	rdos)
   7.349 +		basic_machine=i386-pc
   7.350 +		os=-rdos
   7.351 +		;;
   7.352  	rom68k)
   7.353  		basic_machine=m68k-rom68k
   7.354  		os=-coff
   7.355 @@ -873,6 +942,10 @@
   7.356  	sb1el)
   7.357  		basic_machine=mipsisa64sb1el-unknown
   7.358  		;;
   7.359 +	sde)
   7.360 +		basic_machine=mipsisa32-sde
   7.361 +		os=-elf
   7.362 +		;;
   7.363  	sei)
   7.364  		basic_machine=mips-sei
   7.365  		os=-seiux
   7.366 @@ -884,6 +957,9 @@
   7.367  		basic_machine=sh-hitachi
   7.368  		os=-hms
   7.369  		;;
   7.370 +	sh5el)
   7.371 +		basic_machine=sh5le-unknown
   7.372 +		;;
   7.373  	sh64)
   7.374  		basic_machine=sh64-unknown
   7.375  		;;
   7.376 @@ -973,6 +1049,10 @@
   7.377  		basic_machine=tic6x-unknown
   7.378  		os=-coff
   7.379  		;;
   7.380 +	tile*)
   7.381 +		basic_machine=tile-unknown
   7.382 +		os=-linux-gnu
   7.383 +		;;
   7.384  	tx39)
   7.385  		basic_machine=mipstx39-unknown
   7.386  		;;
   7.387 @@ -1086,13 +1166,10 @@
   7.388  	we32k)
   7.389  		basic_machine=we32k-att
   7.390  		;;
   7.391 -	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
   7.392 +	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
   7.393  		basic_machine=sh-unknown
   7.394  		;;
   7.395 -	sh64)
   7.396 -		basic_machine=sh64-unknown
   7.397 -		;;
   7.398 -	sparc | sparcv8 | sparcv9 | sparcv9b)
   7.399 +	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
   7.400  		basic_machine=sparc-sun
   7.401  		;;
   7.402  	cydra)
   7.403 @@ -1165,20 +1242,23 @@
   7.404  	      | -aos* \
   7.405  	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
   7.406  	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
   7.407 -	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
   7.408 +	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
   7.409 +	      | -openbsd* | -solidbsd* \
   7.410  	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
   7.411  	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
   7.412  	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
   7.413  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   7.414  	      | -chorusos* | -chorusrdb* \
   7.415  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   7.416 -	      | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
   7.417 +	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
   7.418 +	      | -uxpv* | -beos* | -mpeix* | -udk* \
   7.419  	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
   7.420  	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
   7.421  	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
   7.422  	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
   7.423  	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
   7.424 -	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
   7.425 +	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
   7.426 +	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
   7.427  	# Remember, each alternative MUST END IN *, to match a version number.
   7.428  		;;
   7.429  	-qnx*)
   7.430 @@ -1196,7 +1276,7 @@
   7.431  		os=`echo $os | sed -e 's|nto|nto-qnx|'`
   7.432  		;;
   7.433  	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
   7.434 -	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
   7.435 +	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
   7.436  	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
   7.437  		;;
   7.438  	-mac*)
   7.439 @@ -1205,6 +1285,9 @@
   7.440  	-linux-dietlibc)
   7.441  		os=-linux-dietlibc
   7.442  		;;
   7.443 +	-linux*)
   7.444 +		os=`echo $os | sed -e 's|linux|linux-gnu|'`
   7.445 +		;;
   7.446  	-sunos5*)
   7.447  		os=`echo $os | sed -e 's|sunos5|solaris2|'`
   7.448  		;;
   7.449 @@ -1327,6 +1410,12 @@
   7.450  # system, and we'll never get to this point.
   7.451  
   7.452  case $basic_machine in
   7.453 +        score-*)
   7.454 +		os=-elf
   7.455 +		;;
   7.456 +        spu-*)
   7.457 +		os=-elf
   7.458 +		;;
   7.459  	*-acorn)
   7.460  		os=-riscix1.2
   7.461  		;;
   7.462 @@ -1336,9 +1425,9 @@
   7.463  	arm*-semi)
   7.464  		os=-aout
   7.465  		;;
   7.466 -    c4x-* | tic4x-*)
   7.467 -        os=-coff
   7.468 -        ;;
   7.469 +        c4x-* | tic4x-*)
   7.470 +        	os=-coff
   7.471 +		;;
   7.472  	# This must come before the *-dec entry.
   7.473  	pdp10-*)
   7.474  		os=-tops20
   7.475 @@ -1364,6 +1453,9 @@
   7.476  	m68*-cisco)
   7.477  		os=-aout
   7.478  		;;
   7.479 +        mep-*)
   7.480 +		os=-elf
   7.481 +		;;
   7.482  	mips*-cisco)
   7.483  		os=-elf
   7.484  		;;
   7.485 @@ -1382,6 +1474,9 @@
   7.486  	*-be)
   7.487  		os=-beos
   7.488  		;;
   7.489 +	*-haiku)
   7.490 +		os=-haiku
   7.491 +		;;
   7.492  	*-ibm)
   7.493  		os=-aix
   7.494  		;;
   7.495 @@ -1553,7 +1648,7 @@
   7.496  esac
   7.497  
   7.498  echo $basic_machine$os
   7.499 -exit 0
   7.500 +exit
   7.501  
   7.502  # Local variables:
   7.503  # eval: (add-hook 'write-file-hooks 'time-stamp)
     8.1 --- a/libhrel/configure	Sat May 10 07:45:39 2008 -0500
     8.2 +++ b/libhrel/configure	Sat May 10 07:48:26 2008 -0500
     8.3 @@ -1,81 +1,35 @@
     8.4  #! /bin/sh
     8.5  # Guess values for system-dependent variables and create Makefiles.
     8.6 -# Generated by GNU Autoconf 2.59 for libhrel 0.1.
     8.7 +# Generated by GNU Autoconf 2.61 for libhrel 0.1.
     8.8  #
     8.9 -# Copyright (C) 2003 Free Software Foundation, Inc.
    8.10 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    8.11 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
    8.12  # This configure script is free software; the Free Software Foundation
    8.13  # gives unlimited permission to copy, distribute and modify it.
    8.14  ## --------------------- ##
    8.15  ## M4sh Initialization.  ##
    8.16  ## --------------------- ##
    8.17  
    8.18 -# Be Bourne compatible
    8.19 +# Be more Bourne compatible
    8.20 +DUALCASE=1; export DUALCASE # for MKS sh
    8.21  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    8.22    emulate sh
    8.23    NULLCMD=:
    8.24    # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    8.25    # is contrary to our usage.  Disable this feature.
    8.26    alias -g '${1+"$@"}'='"$@"'
    8.27 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    8.28 -  set -o posix
    8.29 -fi
    8.30 -DUALCASE=1; export DUALCASE # for MKS sh
    8.31 -
    8.32 -# Support unset when possible.
    8.33 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    8.34 -  as_unset=unset
    8.35 -else
    8.36 -  as_unset=false
    8.37 -fi
    8.38 -
    8.39 -
    8.40 -# Work around bugs in pre-3.0 UWIN ksh.
    8.41 -$as_unset ENV MAIL MAILPATH
    8.42 -PS1='$ '
    8.43 -PS2='> '
    8.44 -PS4='+ '
    8.45 -
    8.46 -# NLS nuisances.
    8.47 -for as_var in \
    8.48 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    8.49 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    8.50 -  LC_TELEPHONE LC_TIME
    8.51 -do
    8.52 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    8.53 -    eval $as_var=C; export $as_var
    8.54 -  else
    8.55 -    $as_unset $as_var
    8.56 -  fi
    8.57 -done
    8.58 -
    8.59 -# Required to use basename.
    8.60 -if expr a : '\(a\)' >/dev/null 2>&1; then
    8.61 -  as_expr=expr
    8.62 -else
    8.63 -  as_expr=false
    8.64 -fi
    8.65 -
    8.66 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    8.67 -  as_basename=basename
    8.68 -else
    8.69 -  as_basename=false
    8.70 -fi
    8.71 -
    8.72 -
    8.73 -# Name of the executable.
    8.74 -as_me=`$as_basename "$0" ||
    8.75 -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    8.76 -	 X"$0" : 'X\(//\)$' \| \
    8.77 -	 X"$0" : 'X\(/\)$' \| \
    8.78 -	 .     : '\(.\)' 2>/dev/null ||
    8.79 -echo X/"$0" |
    8.80 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    8.81 -  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
    8.82 -  	  /^X\/\(\/\).*/{ s//\1/; q; }
    8.83 -  	  s/.*/./; q'`
    8.84 -
    8.85 -
    8.86 -# PATH needs CR, and LINENO needs CR and PATH.
    8.87 +  setopt NO_GLOB_SUBST
    8.88 +else
    8.89 +  case `(set -o) 2>/dev/null` in
    8.90 +  *posix*) set -o posix ;;
    8.91 +esac
    8.92 +
    8.93 +fi
    8.94 +
    8.95 +
    8.96 +
    8.97 +
    8.98 +# PATH needs CR
    8.99  # Avoid depending upon Character Ranges.
   8.100  as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   8.101  as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   8.102 @@ -96,124 +50,466 @@
   8.103    rm -f conf$$.sh
   8.104  fi
   8.105  
   8.106 -
   8.107 -  as_lineno_1=$LINENO
   8.108 -  as_lineno_2=$LINENO
   8.109 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   8.110 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
   8.111 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
   8.112 -  # Find who we are.  Look in the path if we contain no path at all
   8.113 -  # relative or not.
   8.114 -  case $0 in
   8.115 -    *[\\/]* ) as_myself=$0 ;;
   8.116 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8.117 +# Support unset when possible.
   8.118 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   8.119 +  as_unset=unset
   8.120 +else
   8.121 +  as_unset=false
   8.122 +fi
   8.123 +
   8.124 +
   8.125 +# IFS
   8.126 +# We need space, tab and new line, in precisely that order.  Quoting is
   8.127 +# there to prevent editors from complaining about space-tab.
   8.128 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
   8.129 +# splitting by setting IFS to empty value.)
   8.130 +as_nl='
   8.131 +'
   8.132 +IFS=" ""	$as_nl"
   8.133 +
   8.134 +# Find who we are.  Look in the path if we contain no directory separator.
   8.135 +case $0 in
   8.136 +  *[\\/]* ) as_myself=$0 ;;
   8.137 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8.138  for as_dir in $PATH
   8.139  do
   8.140    IFS=$as_save_IFS
   8.141    test -z "$as_dir" && as_dir=.
   8.142    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   8.143  done
   8.144 -
   8.145 -       ;;
   8.146 -  esac
   8.147 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
   8.148 -  # in which case we are not to be found in the path.
   8.149 -  if test "x$as_myself" = x; then
   8.150 -    as_myself=$0
   8.151 -  fi
   8.152 -  if test ! -f "$as_myself"; then
   8.153 -    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   8.154 -   { (exit 1); exit 1; }; }
   8.155 -  fi
   8.156 -  case $CONFIG_SHELL in
   8.157 -  '')
   8.158 +IFS=$as_save_IFS
   8.159 +
   8.160 +     ;;
   8.161 +esac
   8.162 +# We did not find ourselves, most probably we were run as `sh COMMAND'
   8.163 +# in which case we are not to be found in the path.
   8.164 +if test "x$as_myself" = x; then
   8.165 +  as_myself=$0
   8.166 +fi
   8.167 +if test ! -f "$as_myself"; then
   8.168 +  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   8.169 +  { (exit 1); exit 1; }
   8.170 +fi
   8.171 +
   8.172 +# Work around bugs in pre-3.0 UWIN ksh.
   8.173 +for as_var in ENV MAIL MAILPATH
   8.174 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   8.175 +done
   8.176 +PS1='$ '
   8.177 +PS2='> '
   8.178 +PS4='+ '
   8.179 +
   8.180 +# NLS nuisances.
   8.181 +for as_var in \
   8.182 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   8.183 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   8.184 +  LC_TELEPHONE LC_TIME
   8.185 +do
   8.186 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   8.187 +    eval $as_var=C; export $as_var
   8.188 +  else
   8.189 +    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   8.190 +  fi
   8.191 +done
   8.192 +
   8.193 +# Required to use basename.
   8.194 +if expr a : '\(a\)' >/dev/null 2>&1 &&
   8.195 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
   8.196 +  as_expr=expr
   8.197 +else
   8.198 +  as_expr=false
   8.199 +fi
   8.200 +
   8.201 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   8.202 +  as_basename=basename
   8.203 +else
   8.204 +  as_basename=false
   8.205 +fi
   8.206 +
   8.207 +
   8.208 +# Name of the executable.
   8.209 +as_me=`$as_basename -- "$0" ||
   8.210 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   8.211 +	 X"$0" : 'X\(//\)$' \| \
   8.212 +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   8.213 +echo X/"$0" |
   8.214 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
   8.215 +	    s//\1/
   8.216 +	    q
   8.217 +	  }
   8.218 +	  /^X\/\(\/\/\)$/{
   8.219 +	    s//\1/
   8.220 +	    q
   8.221 +	  }
   8.222 +	  /^X\/\(\/\).*/{
   8.223 +	    s//\1/
   8.224 +	    q
   8.225 +	  }
   8.226 +	  s/.*/./; q'`
   8.227 +
   8.228 +# CDPATH.
   8.229 +$as_unset CDPATH
   8.230 +
   8.231 +
   8.232 +if test "x$CONFIG_SHELL" = x; then
   8.233 +  if (eval ":") 2>/dev/null; then
   8.234 +  as_have_required=yes
   8.235 +else
   8.236 +  as_have_required=no
   8.237 +fi
   8.238 +
   8.239 +  if test $as_have_required = yes && 	 (eval ":
   8.240 +(as_func_return () {
   8.241 +  (exit \$1)
   8.242 +}
   8.243 +as_func_success () {
   8.244 +  as_func_return 0
   8.245 +}
   8.246 +as_func_failure () {
   8.247 +  as_func_return 1
   8.248 +}
   8.249 +as_func_ret_success () {
   8.250 +  return 0
   8.251 +}
   8.252 +as_func_ret_failure () {
   8.253 +  return 1
   8.254 +}
   8.255 +
   8.256 +exitcode=0
   8.257 +if as_func_success; then
   8.258 +  :
   8.259 +else
   8.260 +  exitcode=1
   8.261 +  echo as_func_success failed.
   8.262 +fi
   8.263 +
   8.264 +if as_func_failure; then
   8.265 +  exitcode=1
   8.266 +  echo as_func_failure succeeded.
   8.267 +fi
   8.268 +
   8.269 +if as_func_ret_success; then
   8.270 +  :
   8.271 +else
   8.272 +  exitcode=1
   8.273 +  echo as_func_ret_success failed.
   8.274 +fi
   8.275 +
   8.276 +if as_func_ret_failure; then
   8.277 +  exitcode=1
   8.278 +  echo as_func_ret_failure succeeded.
   8.279 +fi
   8.280 +
   8.281 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   8.282 +  :
   8.283 +else
   8.284 +  exitcode=1
   8.285 +  echo positional parameters were not saved.
   8.286 +fi
   8.287 +
   8.288 +test \$exitcode = 0) || { (exit 1); exit 1; }
   8.289 +
   8.290 +(
   8.291 +  as_lineno_1=\$LINENO
   8.292 +  as_lineno_2=\$LINENO
   8.293 +  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   8.294 +  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   8.295 +") 2> /dev/null; then
   8.296 +  :
   8.297 +else
   8.298 +  as_candidate_shells=
   8.299      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8.300  for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   8.301  do
   8.302    IFS=$as_save_IFS
   8.303    test -z "$as_dir" && as_dir=.
   8.304 -  for as_base in sh bash ksh sh5; do
   8.305 -	 case $as_dir in
   8.306 +  case $as_dir in
   8.307  	 /*)
   8.308 -	   if ("$as_dir/$as_base" -c '
   8.309 +	   for as_base in sh bash ksh sh5; do
   8.310 +	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   8.311 +	   done;;
   8.312 +       esac
   8.313 +done
   8.314 +IFS=$as_save_IFS
   8.315 +
   8.316 +
   8.317 +      for as_shell in $as_candidate_shells $SHELL; do
   8.318 +	 # Try only shells that exist, to save several forks.
   8.319 +	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   8.320 +		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   8.321 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   8.322 +  emulate sh
   8.323 +  NULLCMD=:
   8.324 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   8.325 +  # is contrary to our usage.  Disable this feature.
   8.326 +  alias -g '${1+"$@"}'='"$@"'
   8.327 +  setopt NO_GLOB_SUBST
   8.328 +else
   8.329 +  case `(set -o) 2>/dev/null` in
   8.330 +  *posix*) set -o posix ;;
   8.331 +esac
   8.332 +
   8.333 +fi
   8.334 +
   8.335 +
   8.336 +:
   8.337 +_ASEOF
   8.338 +}; then
   8.339 +  CONFIG_SHELL=$as_shell
   8.340 +	       as_have_required=yes
   8.341 +	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   8.342 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   8.343 +  emulate sh
   8.344 +  NULLCMD=:
   8.345 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   8.346 +  # is contrary to our usage.  Disable this feature.
   8.347 +  alias -g '${1+"$@"}'='"$@"'
   8.348 +  setopt NO_GLOB_SUBST
   8.349 +else
   8.350 +  case `(set -o) 2>/dev/null` in
   8.351 +  *posix*) set -o posix ;;
   8.352 +esac
   8.353 +
   8.354 +fi
   8.355 +
   8.356 +
   8.357 +:
   8.358 +(as_func_return () {
   8.359 +  (exit $1)
   8.360 +}
   8.361 +as_func_success () {
   8.362 +  as_func_return 0
   8.363 +}
   8.364 +as_func_failure () {
   8.365 +  as_func_return 1
   8.366 +}
   8.367 +as_func_ret_success () {
   8.368 +  return 0
   8.369 +}
   8.370 +as_func_ret_failure () {
   8.371 +  return 1
   8.372 +}
   8.373 +
   8.374 +exitcode=0
   8.375 +if as_func_success; then
   8.376 +  :
   8.377 +else
   8.378 +  exitcode=1
   8.379 +  echo as_func_success failed.
   8.380 +fi
   8.381 +
   8.382 +if as_func_failure; then
   8.383 +  exitcode=1
   8.384 +  echo as_func_failure succeeded.
   8.385 +fi
   8.386 +
   8.387 +if as_func_ret_success; then
   8.388 +  :
   8.389 +else
   8.390 +  exitcode=1
   8.391 +  echo as_func_ret_success failed.
   8.392 +fi
   8.393 +
   8.394 +if as_func_ret_failure; then
   8.395 +  exitcode=1
   8.396 +  echo as_func_ret_failure succeeded.
   8.397 +fi
   8.398 +
   8.399 +if ( set x; as_func_ret_success y && test x = "$1" ); then
   8.400 +  :
   8.401 +else
   8.402 +  exitcode=1
   8.403 +  echo positional parameters were not saved.
   8.404 +fi
   8.405 +
   8.406 +test $exitcode = 0) || { (exit 1); exit 1; }
   8.407 +
   8.408 +(
   8.409    as_lineno_1=$LINENO
   8.410    as_lineno_2=$LINENO
   8.411 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   8.412    test "x$as_lineno_1" != "x$as_lineno_2" &&
   8.413 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
   8.414 -	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
   8.415 -	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
   8.416 -	     CONFIG_SHELL=$as_dir/$as_base
   8.417 -	     export CONFIG_SHELL
   8.418 -	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
   8.419 -	   fi;;
   8.420 -	 esac
   8.421 -       done
   8.422 -done
   8.423 -;;
   8.424 -  esac
   8.425 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   8.426 +
   8.427 +_ASEOF
   8.428 +}; then
   8.429 +  break
   8.430 +fi
   8.431 +
   8.432 +fi
   8.433 +
   8.434 +      done
   8.435 +
   8.436 +      if test "x$CONFIG_SHELL" != x; then
   8.437 +  for as_var in BASH_ENV ENV
   8.438 +        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   8.439 +        done
   8.440 +        export CONFIG_SHELL
   8.441 +        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   8.442 +fi
   8.443 +
   8.444 +
   8.445 +    if test $as_have_required = no; then
   8.446 +  echo This script requires a shell more modern than all the
   8.447 +      echo shells that I found on your system.  Please install a
   8.448 +      echo modern shell, or manually run the script under such a
   8.449 +      echo shell if you do have one.
   8.450 +      { (exit 1); exit 1; }
   8.451 +fi
   8.452 +
   8.453 +
   8.454 +fi
   8.455 +
   8.456 +fi
   8.457 +
   8.458 +
   8.459 +
   8.460 +(eval "as_func_return () {
   8.461 +  (exit \$1)
   8.462 +}
   8.463 +as_func_success () {
   8.464 +  as_func_return 0
   8.465 +}
   8.466 +as_func_failure () {
   8.467 +  as_func_return 1
   8.468 +}
   8.469 +as_func_ret_success () {
   8.470 +  return 0
   8.471 +}
   8.472 +as_func_ret_failure () {
   8.473 +  return 1
   8.474 +}
   8.475 +
   8.476 +exitcode=0
   8.477 +if as_func_success; then
   8.478 +  :
   8.479 +else
   8.480 +  exitcode=1
   8.481 +  echo as_func_success failed.
   8.482 +fi
   8.483 +
   8.484 +if as_func_failure; then
   8.485 +  exitcode=1
   8.486 +  echo as_func_failure succeeded.
   8.487 +fi
   8.488 +
   8.489 +if as_func_ret_success; then
   8.490 +  :
   8.491 +else
   8.492 +  exitcode=1
   8.493 +  echo as_func_ret_success failed.
   8.494 +fi
   8.495 +
   8.496 +if as_func_ret_failure; then
   8.497 +  exitcode=1
   8.498 +  echo as_func_ret_failure succeeded.
   8.499 +fi
   8.500 +
   8.501 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   8.502 +  :
   8.503 +else
   8.504 +  exitcode=1
   8.505 +  echo positional parameters were not saved.
   8.506 +fi
   8.507 +
   8.508 +test \$exitcode = 0") || {
   8.509 +  echo No shell found that supports shell functions.
   8.510 +  echo Please tell autoconf@gnu.org about your system,
   8.511 +  echo including any error possibly output before this
   8.512 +  echo message
   8.513 +}
   8.514 +
   8.515 +
   8.516 +
   8.517 +  as_lineno_1=$LINENO
   8.518 +  as_lineno_2=$LINENO
   8.519 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
   8.520 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   8.521  
   8.522    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   8.523    # uniformly replaced by the line number.  The first 'sed' inserts a
   8.524 -  # line-number line before each line; the second 'sed' does the real
   8.525 -  # work.  The second script uses 'N' to pair each line-number line
   8.526 -  # with the numbered line, and appends trailing '-' during
   8.527 -  # substitution so that $LINENO is not a special case at line end.
   8.528 +  # line-number line after each line using $LINENO; the second 'sed'
   8.529 +  # does the real work.  The second script uses 'N' to pair each
   8.530 +  # line-number line with the line containing $LINENO, and appends
   8.531 +  # trailing '-' during substitution so that $LINENO is not a special
   8.532 +  # case at line end.
   8.533    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   8.534 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
   8.535 -  sed '=' <$as_myself |
   8.536 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
   8.537 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
   8.538 +  sed -n '
   8.539 +    p
   8.540 +    /[$]LINENO/=
   8.541 +  ' <$as_myself |
   8.542      sed '
   8.543 +      s/[$]LINENO.*/&-/
   8.544 +      t lineno
   8.545 +      b
   8.546 +      :lineno
   8.547        N
   8.548 -      s,$,-,
   8.549 -      : loop
   8.550 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
   8.551 +      :loop
   8.552 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   8.553        t loop
   8.554 -      s,-$,,
   8.555 -      s,^['$as_cr_digits']*\n,,
   8.556 +      s/-\n.*//
   8.557      ' >$as_me.lineno &&
   8.558 -  chmod +x $as_me.lineno ||
   8.559 +  chmod +x "$as_me.lineno" ||
   8.560      { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   8.561     { (exit 1); exit 1; }; }
   8.562  
   8.563    # Don't try to exec as it changes $[0], causing all sort of problems
   8.564    # (the dirname of $[0] is not the place where we might find the
   8.565 -  # original and so on.  Autoconf is especially sensible to this).
   8.566 -  . ./$as_me.lineno
   8.567 +  # original and so on.  Autoconf is especially sensitive to this).
   8.568 +  . "./$as_me.lineno"
   8.569    # Exit status is that of the last command.
   8.570    exit
   8.571  }
   8.572  
   8.573  
   8.574 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   8.575 -  *c*,-n*) ECHO_N= ECHO_C='
   8.576 -' ECHO_T='	' ;;
   8.577 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   8.578 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
   8.579 -esac
   8.580 -
   8.581 -if expr a : '\(a\)' >/dev/null 2>&1; then
   8.582 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   8.583 +  as_dirname=dirname
   8.584 +else
   8.585 +  as_dirname=false
   8.586 +fi
   8.587 +
   8.588 +ECHO_C= ECHO_N= ECHO_T=
   8.589 +case `echo -n x` in
   8.590 +-n*)
   8.591 +  case `echo 'x\c'` in
   8.592 +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   8.593 +  *)   ECHO_C='\c';;
   8.594 +  esac;;
   8.595 +*)
   8.596 +  ECHO_N='-n';;
   8.597 +esac
   8.598 +
   8.599 +if expr a : '\(a\)' >/dev/null 2>&1 &&
   8.600 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
   8.601    as_expr=expr
   8.602  else
   8.603    as_expr=false
   8.604  fi
   8.605  
   8.606  rm -f conf$$ conf$$.exe conf$$.file
   8.607 +if test -d conf$$.dir; then
   8.608 +  rm -f conf$$.dir/conf$$.file
   8.609 +else
   8.610 +  rm -f conf$$.dir
   8.611 +  mkdir conf$$.dir
   8.612 +fi
   8.613  echo >conf$$.file
   8.614  if ln -s conf$$.file conf$$ 2>/dev/null; then
   8.615 -  # We could just check for DJGPP; but this test a) works b) is more generic
   8.616 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   8.617 -  if test -f conf$$.exe; then
   8.618 -    # Don't use ln at all; we don't have any links
   8.619 +  as_ln_s='ln -s'
   8.620 +  # ... but there are two gotchas:
   8.621 +  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   8.622 +  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   8.623 +  # In both cases, we have to default to `cp -p'.
   8.624 +  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   8.625      as_ln_s='cp -p'
   8.626 -  else
   8.627 -    as_ln_s='ln -s'
   8.628 -  fi
   8.629  elif ln conf$$.file conf$$ 2>/dev/null; then
   8.630    as_ln_s=ln
   8.631  else
   8.632    as_ln_s='cp -p'
   8.633  fi
   8.634 -rm -f conf$$ conf$$.exe conf$$.file
   8.635 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   8.636 +rmdir conf$$.dir 2>/dev/null
   8.637  
   8.638  if mkdir -p . 2>/dev/null; then
   8.639    as_mkdir_p=:
   8.640 @@ -222,7 +518,28 @@
   8.641    as_mkdir_p=false
   8.642  fi
   8.643  
   8.644 -as_executable_p="test -f"
   8.645 +if test -x / >/dev/null 2>&1; then
   8.646 +  as_test_x='test -x'
   8.647 +else
   8.648 +  if ls -dL / >/dev/null 2>&1; then
   8.649 +    as_ls_L_option=L
   8.650 +  else
   8.651 +    as_ls_L_option=
   8.652 +  fi
   8.653 +  as_test_x='
   8.654 +    eval sh -c '\''
   8.655 +      if test -d "$1"; then
   8.656 +        test -d "$1/.";
   8.657 +      else
   8.658 +	case $1 in
   8.659 +        -*)set "./$1";;
   8.660 +	esac;
   8.661 +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   8.662 +	???[sx]*):;;*)false;;esac;fi
   8.663 +    '\'' sh
   8.664 +  '
   8.665 +fi
   8.666 +as_executable_p=$as_test_x
   8.667  
   8.668  # Sed expression to map a string onto a valid CPP name.
   8.669  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   8.670 @@ -231,15 +548,6 @@
   8.671  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   8.672  
   8.673  
   8.674 -# IFS
   8.675 -# We need space, tab and new line, in precisely that order.
   8.676 -as_nl='
   8.677 -'
   8.678 -IFS=" 	$as_nl"
   8.679 -
   8.680 -# CDPATH.
   8.681 -$as_unset CDPATH
   8.682 -
   8.683  
   8.684  
   8.685  # Check that we are running under the correct shell.
   8.686 @@ -285,8 +593,8 @@
   8.687  # find a string as large as possible, as long as the shell can cope with it
   8.688    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
   8.689      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   8.690 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   8.691 -       echo_test_string="`eval $cmd`" &&
   8.692 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
   8.693 +       echo_test_string=`eval $cmd` &&
   8.694         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
   8.695      then
   8.696        break
   8.697 @@ -395,29 +703,26 @@
   8.698  
   8.699  tagnames=${tagnames+${tagnames},}F77
   8.700  
   8.701 +exec 7<&0 </dev/null 6>&1
   8.702 +
   8.703  # Name of the host.
   8.704  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   8.705  # so uname gets run too.
   8.706  ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   8.707  
   8.708 -exec 6>&1
   8.709 -
   8.710  #
   8.711  # Initializations.
   8.712  #
   8.713  ac_default_prefix=/usr/local
   8.714 +ac_clean_files=
   8.715  ac_config_libobj_dir=.
   8.716 +LIBOBJS=
   8.717  cross_compiling=no
   8.718  subdirs=
   8.719  MFLAGS=
   8.720  MAKEFLAGS=
   8.721  SHELL=${CONFIG_SHELL-/bin/sh}
   8.722  
   8.723 -# Maximum number of lines to put in a shell here document.
   8.724 -# This variable seems obsolete.  It should probably be removed, and
   8.725 -# only ac_max_sed_lines should be used.
   8.726 -: ${ac_max_here_lines=38}
   8.727 -
   8.728  # Identity of this package.
   8.729  PACKAGE_NAME='libhrel'
   8.730  PACKAGE_TARNAME='libhrel'
   8.731 @@ -428,42 +733,180 @@
   8.732  # Factoring default headers for most tests.
   8.733  ac_includes_default="\
   8.734  #include <stdio.h>
   8.735 -#if HAVE_SYS_TYPES_H
   8.736 +#ifdef HAVE_SYS_TYPES_H
   8.737  # include <sys/types.h>
   8.738  #endif
   8.739 -#if HAVE_SYS_STAT_H
   8.740 +#ifdef HAVE_SYS_STAT_H
   8.741  # include <sys/stat.h>
   8.742  #endif
   8.743 -#if STDC_HEADERS
   8.744 +#ifdef STDC_HEADERS
   8.745  # include <stdlib.h>
   8.746  # include <stddef.h>
   8.747  #else
   8.748 -# if HAVE_STDLIB_H
   8.749 +# ifdef HAVE_STDLIB_H
   8.750  #  include <stdlib.h>
   8.751  # endif
   8.752  #endif
   8.753 -#if HAVE_STRING_H
   8.754 -# if !STDC_HEADERS && HAVE_MEMORY_H
   8.755 +#ifdef HAVE_STRING_H
   8.756 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   8.757  #  include <memory.h>
   8.758  # endif
   8.759  # include <string.h>
   8.760  #endif
   8.761 -#if HAVE_STRINGS_H
   8.762 +#ifdef HAVE_STRINGS_H
   8.763  # include <strings.h>
   8.764  #endif
   8.765 -#if HAVE_INTTYPES_H
   8.766 +#ifdef HAVE_INTTYPES_H
   8.767  # include <inttypes.h>
   8.768 -#else
   8.769 -# if HAVE_STDINT_H
   8.770 -#  include <stdint.h>
   8.771 -# endif
   8.772  #endif
   8.773 -#if HAVE_UNISTD_H
   8.774 +#ifdef HAVE_STDINT_H
   8.775 +# include <stdint.h>
   8.776 +#endif
   8.777 +#ifdef HAVE_UNISTD_H
   8.778  # include <unistd.h>
   8.779  #endif"
   8.780  
   8.781 -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 LIBHREL_MAJOR_VER LIBHREL_MINOR_VER LIBHREL_MICRO_VER 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 LN_S 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG pkgconfigdir GLIB_CFLAGS GLIB_LIBS GTK_CFLAGS GTK_LIBS ENABLE_GTK_TRUE ENABLE_GTK_FALSE LEX LEXLIB LEX_OUTPUT_ROOT YACC HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE LIBOBJS LTLIBOBJS'
   8.782 +ac_subst_vars='SHELL
   8.783 +PATH_SEPARATOR
   8.784 +PACKAGE_NAME
   8.785 +PACKAGE_TARNAME
   8.786 +PACKAGE_VERSION
   8.787 +PACKAGE_STRING
   8.788 +PACKAGE_BUGREPORT
   8.789 +exec_prefix
   8.790 +prefix
   8.791 +program_transform_name
   8.792 +bindir
   8.793 +sbindir
   8.794 +libexecdir
   8.795 +datarootdir
   8.796 +datadir
   8.797 +sysconfdir
   8.798 +sharedstatedir
   8.799 +localstatedir
   8.800 +includedir
   8.801 +oldincludedir
   8.802 +docdir
   8.803 +infodir
   8.804 +htmldir
   8.805 +dvidir
   8.806 +pdfdir
   8.807 +psdir
   8.808 +libdir
   8.809 +localedir
   8.810 +mandir
   8.811 +DEFS
   8.812 +ECHO_C
   8.813 +ECHO_N
   8.814 +ECHO_T
   8.815 +LIBS
   8.816 +build_alias
   8.817 +host_alias
   8.818 +target_alias
   8.819 +LIBHREL_MAJOR_VER
   8.820 +LIBHREL_MINOR_VER
   8.821 +LIBHREL_MICRO_VER
   8.822 +build
   8.823 +build_cpu
   8.824 +build_vendor
   8.825 +build_os
   8.826 +host
   8.827 +host_cpu
   8.828 +host_vendor
   8.829 +host_os
   8.830 +target
   8.831 +target_cpu
   8.832 +target_vendor
   8.833 +target_os
   8.834 +INSTALL_PROGRAM
   8.835 +INSTALL_SCRIPT
   8.836 +INSTALL_DATA
   8.837 +am__isrc
   8.838 +CYGPATH_W
   8.839 +PACKAGE
   8.840 +VERSION
   8.841 +ACLOCAL
   8.842 +AUTOCONF
   8.843 +AUTOMAKE
   8.844 +AUTOHEADER
   8.845 +MAKEINFO
   8.846 +install_sh
   8.847 +STRIP
   8.848 +INSTALL_STRIP_PROGRAM
   8.849 +mkdir_p
   8.850 +AWK
   8.851 +SET_MAKE
   8.852 +am__leading_dot
   8.853 +AMTAR
   8.854 +am__tar
   8.855 +am__untar
   8.856 +LN_S
   8.857 +CC
   8.858 +CFLAGS
   8.859 +LDFLAGS
   8.860 +CPPFLAGS
   8.861 +ac_ct_CC
   8.862 +EXEEXT
   8.863 +OBJEXT
   8.864 +DEPDIR
   8.865 +am__include
   8.866 +am__quote
   8.867 +AMDEP_TRUE
   8.868 +AMDEP_FALSE
   8.869 +AMDEPBACKSLASH
   8.870 +CCDEPMODE
   8.871 +am__fastdepCC_TRUE
   8.872 +am__fastdepCC_FALSE
   8.873 +SED
   8.874 +GREP
   8.875 +EGREP
   8.876 +ECHO
   8.877 +AR
   8.878 +RANLIB
   8.879 +DSYMUTIL
   8.880 +NMEDIT
   8.881 +CPP
   8.882 +CXXCPP
   8.883 +LIBTOOL
   8.884 +PKG_CONFIG
   8.885 +pkgconfigdir
   8.886 +GLIB_CFLAGS
   8.887 +GLIB_LIBS
   8.888 +GTK_CFLAGS
   8.889 +GTK_LIBS
   8.890 +ENABLE_GTK_TRUE
   8.891 +ENABLE_GTK_FALSE
   8.892 +LEX
   8.893 +LEX_OUTPUT_ROOT
   8.894 +LEXLIB
   8.895 +YACC
   8.896 +YFLAGS
   8.897 +HTML_DIR
   8.898 +ENABLE_GTK_DOC_TRUE
   8.899 +ENABLE_GTK_DOC_FALSE
   8.900 +GTK_DOC_USE_LIBTOOL_TRUE
   8.901 +GTK_DOC_USE_LIBTOOL_FALSE
   8.902 +LIBOBJS
   8.903 +LTLIBOBJS'
   8.904  ac_subst_files=''
   8.905 +      ac_precious_vars='build_alias
   8.906 +host_alias
   8.907 +target_alias
   8.908 +CC
   8.909 +CFLAGS
   8.910 +LDFLAGS
   8.911 +LIBS
   8.912 +CPPFLAGS
   8.913 +CPP
   8.914 +CXXCPP
   8.915 +PKG_CONFIG
   8.916 +GLIB_CFLAGS
   8.917 +GLIB_LIBS
   8.918 +GTK_CFLAGS
   8.919 +GTK_LIBS
   8.920 +YACC
   8.921 +YFLAGS'
   8.922 +
   8.923  
   8.924  # Initialize some variables set by options.
   8.925  ac_init_help=
   8.926 @@ -490,34 +933,48 @@
   8.927  # and all the variables that are supposed to be based on exec_prefix
   8.928  # by default will actually change.
   8.929  # Use braces instead of parens because sh, perl, etc. also accept them.
   8.930 +# (The list follows the same order as the GNU Coding Standards.)
   8.931  bindir='${exec_prefix}/bin'
   8.932  sbindir='${exec_prefix}/sbin'
   8.933  libexecdir='${exec_prefix}/libexec'
   8.934 -datadir='${prefix}/share'
   8.935 +datarootdir='${prefix}/share'
   8.936 +datadir='${datarootdir}'
   8.937  sysconfdir='${prefix}/etc'
   8.938  sharedstatedir='${prefix}/com'
   8.939  localstatedir='${prefix}/var'
   8.940 -libdir='${exec_prefix}/lib'
   8.941  includedir='${prefix}/include'
   8.942  oldincludedir='/usr/include'
   8.943 -infodir='${prefix}/info'
   8.944 -mandir='${prefix}/man'
   8.945 +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   8.946 +infodir='${datarootdir}/info'
   8.947 +htmldir='${docdir}'
   8.948 +dvidir='${docdir}'
   8.949 +pdfdir='${docdir}'
   8.950 +psdir='${docdir}'
   8.951 +libdir='${exec_prefix}/lib'
   8.952 +localedir='${datarootdir}/locale'
   8.953 +mandir='${datarootdir}/man'
   8.954  
   8.955  ac_prev=
   8.956 +ac_dashdash=
   8.957  for ac_option
   8.958  do
   8.959    # If the previous option needs an argument, assign it.
   8.960    if test -n "$ac_prev"; then
   8.961 -    eval "$ac_prev=\$ac_option"
   8.962 +    eval $ac_prev=\$ac_option
   8.963      ac_prev=
   8.964      continue
   8.965    fi
   8.966  
   8.967 -  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   8.968 +  case $ac_option in
   8.969 +  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   8.970 +  *)	ac_optarg=yes ;;
   8.971 +  esac
   8.972  
   8.973    # Accept the important Cygnus configure options, so we can diagnose typos.
   8.974  
   8.975 -  case $ac_option in
   8.976 +  case $ac_dashdash$ac_option in
   8.977 +  --)
   8.978 +    ac_dashdash=yes ;;
   8.979  
   8.980    -bindir | --bindir | --bindi | --bind | --bin | --bi)
   8.981      ac_prev=bindir ;;
   8.982 @@ -539,33 +996,45 @@
   8.983    --config-cache | -C)
   8.984      cache_file=config.cache ;;
   8.985  
   8.986 -  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
   8.987 +  -datadir | --datadir | --datadi | --datad)
   8.988      ac_prev=datadir ;;
   8.989 -  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
   8.990 -  | --da=*)
   8.991 +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
   8.992      datadir=$ac_optarg ;;
   8.993  
   8.994 +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   8.995 +  | --dataroo | --dataro | --datar)
   8.996 +    ac_prev=datarootdir ;;
   8.997 +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   8.998 +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   8.999 +    datarootdir=$ac_optarg ;;
  8.1000 +
  8.1001    -disable-* | --disable-*)
  8.1002      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  8.1003      # Reject names that are not valid shell variable names.
  8.1004 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  8.1005 +    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  8.1006        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  8.1007     { (exit 1); exit 1; }; }
  8.1008 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  8.1009 -    eval "enable_$ac_feature=no" ;;
  8.1010 +    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  8.1011 +    eval enable_$ac_feature=no ;;
  8.1012 +
  8.1013 +  -docdir | --docdir | --docdi | --doc | --do)
  8.1014 +    ac_prev=docdir ;;
  8.1015 +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  8.1016 +    docdir=$ac_optarg ;;
  8.1017 +
  8.1018 +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  8.1019 +    ac_prev=dvidir ;;
  8.1020 +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  8.1021 +    dvidir=$ac_optarg ;;
  8.1022  
  8.1023    -enable-* | --enable-*)
  8.1024      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  8.1025      # Reject names that are not valid shell variable names.
  8.1026 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  8.1027 +    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  8.1028        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  8.1029     { (exit 1); exit 1; }; }
  8.1030 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  8.1031 -    case $ac_option in
  8.1032 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  8.1033 -      *) ac_optarg=yes ;;
  8.1034 -    esac
  8.1035 -    eval "enable_$ac_feature='$ac_optarg'" ;;
  8.1036 +    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  8.1037 +    eval enable_$ac_feature=\$ac_optarg ;;
  8.1038  
  8.1039    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  8.1040    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  8.1041 @@ -592,6 +1061,12 @@
  8.1042    -host=* | --host=* | --hos=* | --ho=*)
  8.1043      host_alias=$ac_optarg ;;
  8.1044  
  8.1045 +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  8.1046 +    ac_prev=htmldir ;;
  8.1047 +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  8.1048 +  | --ht=*)
  8.1049 +    htmldir=$ac_optarg ;;
  8.1050 +
  8.1051    -includedir | --includedir | --includedi | --included | --include \
  8.1052    | --includ | --inclu | --incl | --inc)
  8.1053      ac_prev=includedir ;;
  8.1054 @@ -616,13 +1091,16 @@
  8.1055    | --libexe=* | --libex=* | --libe=*)
  8.1056      libexecdir=$ac_optarg ;;
  8.1057  
  8.1058 +  -localedir | --localedir | --localedi | --localed | --locale)
  8.1059 +    ac_prev=localedir ;;
  8.1060 +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  8.1061 +    localedir=$ac_optarg ;;
  8.1062 +
  8.1063    -localstatedir | --localstatedir | --localstatedi | --localstated \
  8.1064 -  | --localstate | --localstat | --localsta | --localst \
  8.1065 -  | --locals | --local | --loca | --loc | --lo)
  8.1066 +  | --localstate | --localstat | --localsta | --localst | --locals)
  8.1067      ac_prev=localstatedir ;;
  8.1068    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  8.1069 -  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  8.1070 -  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  8.1071 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  8.1072      localstatedir=$ac_optarg ;;
  8.1073  
  8.1074    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  8.1075 @@ -687,6 +1165,16 @@
  8.1076    | --progr-tra=* | --program-tr=* | --program-t=*)
  8.1077      program_transform_name=$ac_optarg ;;
  8.1078  
  8.1079 +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  8.1080 +    ac_prev=pdfdir ;;
  8.1081 +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  8.1082 +    pdfdir=$ac_optarg ;;
  8.1083 +
  8.1084 +  -psdir | --psdir | --psdi | --psd | --ps)
  8.1085 +    ac_prev=psdir ;;
  8.1086 +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  8.1087 +    psdir=$ac_optarg ;;
  8.1088 +
  8.1089    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8.1090    | -silent | --silent | --silen | --sile | --sil)
  8.1091      silent=yes ;;
  8.1092 @@ -739,24 +1227,20 @@
  8.1093    -with-* | --with-*)
  8.1094      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  8.1095      # Reject names that are not valid shell variable names.
  8.1096 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  8.1097 +    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  8.1098        { echo "$as_me: error: invalid package name: $ac_package" >&2
  8.1099     { (exit 1); exit 1; }; }
  8.1100 -    ac_package=`echo $ac_package| sed 's/-/_/g'`
  8.1101 -    case $ac_option in
  8.1102 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  8.1103 -      *) ac_optarg=yes ;;
  8.1104 -    esac
  8.1105 -    eval "with_$ac_package='$ac_optarg'" ;;
  8.1106 +    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  8.1107 +    eval with_$ac_package=\$ac_optarg ;;
  8.1108  
  8.1109    -without-* | --without-*)
  8.1110      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  8.1111      # Reject names that are not valid shell variable names.
  8.1112 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  8.1113 +    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  8.1114        { echo "$as_me: error: invalid package name: $ac_package" >&2
  8.1115     { (exit 1); exit 1; }; }
  8.1116 -    ac_package=`echo $ac_package | sed 's/-/_/g'`
  8.1117 -    eval "with_$ac_package=no" ;;
  8.1118 +    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  8.1119 +    eval with_$ac_package=no ;;
  8.1120  
  8.1121    --x)
  8.1122      # Obsolete; use --with-x.
  8.1123 @@ -787,8 +1271,7 @@
  8.1124      expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  8.1125        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  8.1126     { (exit 1); exit 1; }; }
  8.1127 -    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  8.1128 -    eval "$ac_envvar='$ac_optarg'"
  8.1129 +    eval $ac_envvar=\$ac_optarg
  8.1130      export $ac_envvar ;;
  8.1131  
  8.1132    *)
  8.1133 @@ -808,27 +1291,19 @@
  8.1134     { (exit 1); exit 1; }; }
  8.1135  fi
  8.1136  
  8.1137 -# Be sure to have absolute paths.
  8.1138 -for ac_var in exec_prefix prefix
  8.1139 -do
  8.1140 -  eval ac_val=$`echo $ac_var`
  8.1141 +# Be sure to have absolute directory names.
  8.1142 +for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  8.1143 +		datadir sysconfdir sharedstatedir localstatedir includedir \
  8.1144 +		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  8.1145 +		libdir localedir mandir
  8.1146 +do
  8.1147 +  eval ac_val=\$$ac_var
  8.1148    case $ac_val in
  8.1149 -    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  8.1150 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  8.1151 -   { (exit 1); exit 1; }; };;
  8.1152 -  esac
  8.1153 -done
  8.1154 -
  8.1155 -# Be sure to have absolute paths.
  8.1156 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  8.1157 -	      localstatedir libdir includedir oldincludedir infodir mandir
  8.1158 -do
  8.1159 -  eval ac_val=$`echo $ac_var`
  8.1160 -  case $ac_val in
  8.1161 -    [\\/$]* | ?:[\\/]* ) ;;
  8.1162 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  8.1163 -   { (exit 1); exit 1; }; };;
  8.1164 -  esac
  8.1165 +    [\\/$]* | ?:[\\/]* )  continue;;
  8.1166 +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  8.1167 +  esac
  8.1168 +  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  8.1169 +   { (exit 1); exit 1; }; }
  8.1170  done
  8.1171  
  8.1172  # There might be people who depend on the old broken behavior: `$host'
  8.1173 @@ -855,98 +1330,76 @@
  8.1174  test "$silent" = yes && exec 6>/dev/null
  8.1175  
  8.1176  
  8.1177 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  8.1178 +ac_ls_di=`ls -di .` &&
  8.1179 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  8.1180 +  { echo "$as_me: error: Working directory cannot be determined" >&2
  8.1181 +   { (exit 1); exit 1; }; }
  8.1182 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  8.1183 +  { echo "$as_me: error: pwd does not report name of working directory" >&2
  8.1184 +   { (exit 1); exit 1; }; }
  8.1185 +
  8.1186 +
  8.1187  # Find the source files, if location was not specified.
  8.1188  if test -z "$srcdir"; then
  8.1189    ac_srcdir_defaulted=yes
  8.1190 -  # Try the directory containing this script, then its parent.
  8.1191 -  ac_confdir=`(dirname "$0") 2>/dev/null ||
  8.1192 +  # Try the directory containing this script, then the parent directory.
  8.1193 +  ac_confdir=`$as_dirname -- "$0" ||
  8.1194  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8.1195  	 X"$0" : 'X\(//\)[^/]' \| \
  8.1196  	 X"$0" : 'X\(//\)$' \| \
  8.1197 -	 X"$0" : 'X\(/\)' \| \
  8.1198 -	 .     : '\(.\)' 2>/dev/null ||
  8.1199 +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8.1200  echo X"$0" |
  8.1201 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8.1202 -  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8.1203 -  	  /^X\(\/\/\)$/{ s//\1/; q; }
  8.1204 -  	  /^X\(\/\).*/{ s//\1/; q; }
  8.1205 -  	  s/.*/./; q'`
  8.1206 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8.1207 +	    s//\1/
  8.1208 +	    q
  8.1209 +	  }
  8.1210 +	  /^X\(\/\/\)[^/].*/{
  8.1211 +	    s//\1/
  8.1212 +	    q
  8.1213 +	  }
  8.1214 +	  /^X\(\/\/\)$/{
  8.1215 +	    s//\1/
  8.1216 +	    q
  8.1217 +	  }
  8.1218 +	  /^X\(\/\).*/{
  8.1219 +	    s//\1/
  8.1220 +	    q
  8.1221 +	  }
  8.1222 +	  s/.*/./; q'`
  8.1223    srcdir=$ac_confdir
  8.1224 -  if test ! -r $srcdir/$ac_unique_file; then
  8.1225 +  if test ! -r "$srcdir/$ac_unique_file"; then
  8.1226      srcdir=..
  8.1227    fi
  8.1228  else
  8.1229    ac_srcdir_defaulted=no
  8.1230  fi
  8.1231 -if test ! -r $srcdir/$ac_unique_file; then
  8.1232 -  if test "$ac_srcdir_defaulted" = yes; then
  8.1233 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  8.1234 -   { (exit 1); exit 1; }; }
  8.1235 -  else
  8.1236 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  8.1237 -   { (exit 1); exit 1; }; }
  8.1238 -  fi
  8.1239 -fi
  8.1240 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  8.1241 -  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  8.1242 -   { (exit 1); exit 1; }; }
  8.1243 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  8.1244 -ac_env_build_alias_set=${build_alias+set}
  8.1245 -ac_env_build_alias_value=$build_alias
  8.1246 -ac_cv_env_build_alias_set=${build_alias+set}
  8.1247 -ac_cv_env_build_alias_value=$build_alias
  8.1248 -ac_env_host_alias_set=${host_alias+set}
  8.1249 -ac_env_host_alias_value=$host_alias
  8.1250 -ac_cv_env_host_alias_set=${host_alias+set}
  8.1251 -ac_cv_env_host_alias_value=$host_alias
  8.1252 -ac_env_target_alias_set=${target_alias+set}
  8.1253 -ac_env_target_alias_value=$target_alias
  8.1254 -ac_cv_env_target_alias_set=${target_alias+set}
  8.1255 -ac_cv_env_target_alias_value=$target_alias
  8.1256 -ac_env_CC_set=${CC+set}
  8.1257 -ac_env_CC_value=$CC
  8.1258 -ac_cv_env_CC_set=${CC+set}
  8.1259 -ac_cv_env_CC_value=$CC
  8.1260 -ac_env_CFLAGS_set=${CFLAGS+set}
  8.1261 -ac_env_CFLAGS_value=$CFLAGS
  8.1262 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  8.1263 -ac_cv_env_CFLAGS_value=$CFLAGS
  8.1264 -ac_env_LDFLAGS_set=${LDFLAGS+set}
  8.1265 -ac_env_LDFLAGS_value=$LDFLAGS
  8.1266 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  8.1267 -ac_cv_env_LDFLAGS_value=$LDFLAGS
  8.1268 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  8.1269 -ac_env_CPPFLAGS_value=$CPPFLAGS
  8.1270 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  8.1271 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  8.1272 -ac_env_CPP_set=${CPP+set}
  8.1273 -ac_env_CPP_value=$CPP
  8.1274 -ac_cv_env_CPP_set=${CPP+set}
  8.1275 -ac_cv_env_CPP_value=$CPP
  8.1276 -ac_env_CXXCPP_set=${CXXCPP+set}
  8.1277 -ac_env_CXXCPP_value=$CXXCPP
  8.1278 -ac_cv_env_CXXCPP_set=${CXXCPP+set}
  8.1279 -ac_cv_env_CXXCPP_value=$CXXCPP
  8.1280 -ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  8.1281 -ac_env_PKG_CONFIG_value=$PKG_CONFIG
  8.1282 -ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  8.1283 -ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
  8.1284 -ac_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
  8.1285 -ac_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
  8.1286 -ac_cv_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
  8.1287 -ac_cv_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
  8.1288 -ac_env_GLIB_LIBS_set=${GLIB_LIBS+set}
  8.1289 -ac_env_GLIB_LIBS_value=$GLIB_LIBS
  8.1290 -ac_cv_env_GLIB_LIBS_set=${GLIB_LIBS+set}
  8.1291 -ac_cv_env_GLIB_LIBS_value=$GLIB_LIBS
  8.1292 -ac_env_GTK_CFLAGS_set=${GTK_CFLAGS+set}
  8.1293 -ac_env_GTK_CFLAGS_value=$GTK_CFLAGS
  8.1294 -ac_cv_env_GTK_CFLAGS_set=${GTK_CFLAGS+set}
  8.1295 -ac_cv_env_GTK_CFLAGS_value=$GTK_CFLAGS
  8.1296 -ac_env_GTK_LIBS_set=${GTK_LIBS+set}
  8.1297 -ac_env_GTK_LIBS_value=$GTK_LIBS
  8.1298 -ac_cv_env_GTK_LIBS_set=${GTK_LIBS+set}
  8.1299 -ac_cv_env_GTK_LIBS_value=$GTK_LIBS
  8.1300 +if test ! -r "$srcdir/$ac_unique_file"; then
  8.1301 +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  8.1302 +  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  8.1303 +   { (exit 1); exit 1; }; }
  8.1304 +fi
  8.1305 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  8.1306 +ac_abs_confdir=`(
  8.1307 +	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  8.1308 +   { (exit 1); exit 1; }; }
  8.1309 +	pwd)`
  8.1310 +# When building in place, set srcdir=.
  8.1311 +if test "$ac_abs_confdir" = "$ac_pwd"; then
  8.1312 +  srcdir=.
  8.1313 +fi
  8.1314 +# Remove unnecessary trailing slashes from srcdir.
  8.1315 +# Double slashes in file names in object file debugging info
  8.1316 +# mess up M-x gdb in Emacs.
  8.1317 +case $srcdir in
  8.1318 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  8.1319 +esac
  8.1320 +for ac_var in $ac_precious_vars; do
  8.1321 +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  8.1322 +  eval ac_env_${ac_var}_value=\$${ac_var}
  8.1323 +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  8.1324 +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
  8.1325 +done
  8.1326  
  8.1327  #
  8.1328  # Report the --help message.
  8.1329 @@ -975,9 +1428,6 @@
  8.1330    -n, --no-create         do not create output files
  8.1331        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  8.1332  
  8.1333 -_ACEOF
  8.1334 -
  8.1335 -  cat <<_ACEOF
  8.1336  Installation directories:
  8.1337    --prefix=PREFIX         install architecture-independent files in PREFIX
  8.1338  			  [$ac_default_prefix]
  8.1339 @@ -995,15 +1445,22 @@
  8.1340    --bindir=DIR           user executables [EPREFIX/bin]
  8.1341    --sbindir=DIR          system admin executables [EPREFIX/sbin]
  8.1342    --libexecdir=DIR       program executables [EPREFIX/libexec]
  8.1343 -  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  8.1344    --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  8.1345    --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  8.1346    --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  8.1347    --libdir=DIR           object code libraries [EPREFIX/lib]
  8.1348    --includedir=DIR       C header files [PREFIX/include]
  8.1349    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  8.1350 -  --infodir=DIR          info documentation [PREFIX/info]
  8.1351 -  --mandir=DIR           man documentation [PREFIX/man]
  8.1352 +  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  8.1353 +  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  8.1354 +  --infodir=DIR          info documentation [DATAROOTDIR/info]
  8.1355 +  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  8.1356 +  --mandir=DIR           man documentation [DATAROOTDIR/man]
  8.1357 +  --docdir=DIR           documentation root [DATAROOTDIR/doc/libhrel]
  8.1358 +  --htmldir=DIR          html documentation [DOCDIR]
  8.1359 +  --dvidir=DIR           dvi documentation [DOCDIR]
  8.1360 +  --pdfdir=DIR           pdf documentation [DOCDIR]
  8.1361 +  --psdir=DIR            ps documentation [DOCDIR]
  8.1362  _ACEOF
  8.1363  
  8.1364    cat <<\_ACEOF
  8.1365 @@ -1029,10 +1486,8 @@
  8.1366  Optional Features:
  8.1367    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  8.1368    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  8.1369 -  --enable-static[=PKGS]
  8.1370 -                          build static libraries [default=no]
  8.1371 -  --enable-shared[=PKGS]
  8.1372 -                          build shared libraries [default=yes]
  8.1373 +  --enable-static[=PKGS]  build static libraries [default=no]
  8.1374 +  --enable-shared[=PKGS]  build shared libraries [default=yes]
  8.1375    --enable-fast-install[=PKGS]
  8.1376                            optimize for fast installation [default=yes]
  8.1377    --disable-dependency-tracking  speeds up one-time build
  8.1378 @@ -1048,8 +1503,7 @@
  8.1379    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  8.1380    --with-pic              try to use only PIC/non-PIC objects [default=use
  8.1381                            both]
  8.1382 -  --with-tags[=TAGS]
  8.1383 -                          include additional configurations [automatic]
  8.1384 +  --with-tags[=TAGS]      include additional configurations [automatic]
  8.1385    --with-pkgconfigdir[=PATH]
  8.1386                            pkgconfig file destination dir
  8.1387    --with-html-dir=PATH    path to installed docs
  8.1388 @@ -1059,8 +1513,9 @@
  8.1389    CFLAGS      C compiler flags
  8.1390    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  8.1391                nonstandard directory <lib dir>
  8.1392 -  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  8.1393 -              headers in a nonstandard directory <include dir>
  8.1394 +  LIBS        libraries to pass to the linker, e.g. -l<library>
  8.1395 +  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  8.1396 +              you have headers in a nonstandard directory <include dir>
  8.1397    CPP         C preprocessor
  8.1398    CXXCPP      C++ preprocessor
  8.1399    PKG_CONFIG  path to pkg-config utility
  8.1400 @@ -1068,125 +1523,96 @@
  8.1401    GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  8.1402    GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  8.1403    GTK_LIBS    linker flags for GTK, overriding pkg-config
  8.1404 +  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
  8.1405 +              the first program found out of: `bison -y', `byacc', `yacc'.
  8.1406 +  YFLAGS      The list of arguments that will be passed by default to $YACC.
  8.1407 +              This script will default YFLAGS to the empty string to avoid a
  8.1408 +              default value of `-d' given by some make applications.
  8.1409  
  8.1410  Use these variables to override the choices made by `configure' or to help
  8.1411  it to find libraries and programs with nonstandard names/locations.
  8.1412  
  8.1413  _ACEOF
  8.1414 +ac_status=$?
  8.1415  fi
  8.1416  
  8.1417  if test "$ac_init_help" = "recursive"; then
  8.1418    # If there are subdirs, report their specific --help.
  8.1419 -  ac_popdir=`pwd`
  8.1420    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  8.1421 -    test -d $ac_dir || continue
  8.1422 +    test -d "$ac_dir" || continue
  8.1423      ac_builddir=.
  8.1424  
  8.1425 -if test "$ac_dir" != .; then
  8.1426 +case "$ac_dir" in
  8.1427 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8.1428 +*)
  8.1429    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8.1430 -  # A "../" for each directory in $ac_dir_suffix.
  8.1431 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8.1432 -else
  8.1433 -  ac_dir_suffix= ac_top_builddir=
  8.1434 -fi
  8.1435 +  # A ".." for each directory in $ac_dir_suffix.
  8.1436 +  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  8.1437 +  case $ac_top_builddir_sub in
  8.1438 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8.1439 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8.1440 +  esac ;;
  8.1441 +esac
  8.1442 +ac_abs_top_builddir=$ac_pwd
  8.1443 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8.1444 +# for backward compatibility:
  8.1445 +ac_top_builddir=$ac_top_build_prefix
  8.1446  
  8.1447  case $srcdir in
  8.1448 -  .)  # No --srcdir option.  We are building in place.
  8.1449 +  .)  # We are building in place.
  8.1450      ac_srcdir=.
  8.1451 -    if test -z "$ac_top_builddir"; then
  8.1452 -       ac_top_srcdir=.
  8.1453 -    else
  8.1454 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8.1455 -    fi ;;
  8.1456 -  [\\/]* | ?:[\\/]* )  # Absolute path.
  8.1457 +    ac_top_srcdir=$ac_top_builddir_sub
  8.1458 +    ac_abs_top_srcdir=$ac_pwd ;;
  8.1459 +  [\\/]* | ?:[\\/]* )  # Absolute name.
  8.1460      ac_srcdir=$srcdir$ac_dir_suffix;
  8.1461 -    ac_top_srcdir=$srcdir ;;
  8.1462 -  *) # Relative path.
  8.1463 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8.1464 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8.1465 -esac
  8.1466 -
  8.1467 -# Do not use `cd foo && pwd` to compute absolute paths, because
  8.1468 -# the directories may not exist.
  8.1469 -case `pwd` in
  8.1470 -.) ac_abs_builddir="$ac_dir";;
  8.1471 -*)
  8.1472 -  case "$ac_dir" in
  8.1473 -  .) ac_abs_builddir=`pwd`;;
  8.1474 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8.1475 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8.1476 -  esac;;
  8.1477 -esac
  8.1478 -case $ac_abs_builddir in
  8.1479 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  8.1480 -*)
  8.1481 -  case ${ac_top_builddir}. in
  8.1482 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
  8.1483 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8.1484 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8.1485 -  esac;;
  8.1486 -esac
  8.1487 -case $ac_abs_builddir in
  8.1488 -.) ac_abs_srcdir=$ac_srcdir;;
  8.1489 -*)
  8.1490 -  case $ac_srcdir in
  8.1491 -  .) ac_abs_srcdir=$ac_abs_builddir;;
  8.1492 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8.1493 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8.1494 -  esac;;
  8.1495 -esac
  8.1496 -case $ac_abs_builddir in
  8.1497 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  8.1498 -*)
  8.1499 -  case $ac_top_srcdir in
  8.1500 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8.1501 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8.1502 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8.1503 -  esac;;
  8.1504 -esac
  8.1505 -
  8.1506 -    cd $ac_dir
  8.1507 -    # Check for guested configure; otherwise get Cygnus style configure.
  8.1508 -    if test -f $ac_srcdir/configure.gnu; then
  8.1509 -      echo
  8.1510 -      $SHELL $ac_srcdir/configure.gnu  --help=recursive
  8.1511 -    elif test -f $ac_srcdir/configure; then
  8.1512 -      echo
  8.1513 -      $SHELL $ac_srcdir/configure  --help=recursive
  8.1514 -    elif test -f $ac_srcdir/configure.ac ||
  8.1515 -	   test -f $ac_srcdir/configure.in; then
  8.1516 -      echo
  8.1517 -      $ac_configure --help
  8.1518 +    ac_top_srcdir=$srcdir
  8.1519 +    ac_abs_top_srcdir=$srcdir ;;
  8.1520 +  *) # Relative name.
  8.1521 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8.1522 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
  8.1523 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8.1524 +esac
  8.1525 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8.1526 +
  8.1527 +    cd "$ac_dir" || { ac_status=$?; continue; }
  8.1528 +    # Check for guested configure.
  8.1529 +    if test -f "$ac_srcdir/configure.gnu"; then
  8.1530 +      echo &&
  8.1531 +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  8.1532 +    elif test -f "$ac_srcdir/configure"; then
  8.1533 +      echo &&
  8.1534 +      $SHELL "$ac_srcdir/configure" --help=recursive
  8.1535      else
  8.1536        echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  8.1537 -    fi
  8.1538 -    cd $ac_popdir
  8.1539 +    fi || ac_status=$?
  8.1540 +    cd "$ac_pwd" || { ac_status=$?; break; }
  8.1541    done
  8.1542  fi
  8.1543  
  8.1544 -test -n "$ac_init_help" && exit 0
  8.1545 +test -n "$ac_init_help" && exit $ac_status
  8.1546  if $ac_init_version; then
  8.1547    cat <<\_ACEOF
  8.1548  libhrel configure 0.1
  8.1549 -generated by GNU Autoconf 2.59
  8.1550 -
  8.1551 -Copyright (C) 2003 Free Software Foundation, Inc.
  8.1552 +generated by GNU Autoconf 2.61
  8.1553 +
  8.1554 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8.1555 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8.1556  This configure script is free software; the Free Software Foundation
  8.1557  gives unlimited permission to copy, distribute and modify it.
  8.1558  _ACEOF
  8.1559 -  exit 0
  8.1560 -fi
  8.1561 -exec 5>config.log
  8.1562 -cat >&5 <<_ACEOF
  8.1563 +  exit
  8.1564 +fi
  8.1565 +cat >config.log <<_ACEOF
  8.1566  This file contains any messages produced by compilers while
  8.1567  running configure, to aid debugging if configure makes a mistake.
  8.1568  
  8.1569  It was created by libhrel $as_me 0.1, which was
  8.1570 -generated by GNU Autoconf 2.59.  Invocation command line was
  8.1571 +generated by GNU Autoconf 2.61.  Invocation command line was
  8.1572  
  8.1573    $ $0 $@
  8.1574  
  8.1575  _ACEOF
  8.1576 +exec 5>>config.log
  8.1577  {
  8.1578  cat <<_ASUNAME
  8.1579  ## --------- ##
  8.1580 @@ -1205,7 +1631,7 @@
  8.1581  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  8.1582  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  8.1583  /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  8.1584 -hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  8.1585 +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  8.1586  /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  8.1587  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  8.1588  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  8.1589 @@ -1219,6 +1645,7 @@
  8.1590    test -z "$as_dir" && as_dir=.
  8.1591    echo "PATH: $as_dir"
  8.1592  done
  8.1593 +IFS=$as_save_IFS
  8.1594  
  8.1595  } >&5
  8.1596  
  8.1597 @@ -1240,7 +1667,6 @@
  8.1598  ac_configure_args=
  8.1599  ac_configure_args0=
  8.1600  ac_configure_args1=
  8.1601 -ac_sep=
  8.1602  ac_must_keep_next=false
  8.1603  for ac_pass in 1 2
  8.1604  do
  8.1605 @@ -1251,7 +1677,7 @@
  8.1606      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8.1607      | -silent | --silent | --silen | --sile | --sil)
  8.1608        continue ;;
  8.1609 -    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  8.1610 +    *\'*)
  8.1611        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8.1612      esac
  8.1613      case $ac_pass in
  8.1614 @@ -1273,9 +1699,7 @@
  8.1615  	  -* ) ac_must_keep_next=true ;;
  8.1616  	esac
  8.1617        fi
  8.1618 -      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  8.1619 -      # Get rid of the leading space.
  8.1620 -      ac_sep=" "
  8.1621 +      ac_configure_args="$ac_configure_args '$ac_arg'"
  8.1622        ;;
  8.1623      esac
  8.1624    done
  8.1625 @@ -1286,8 +1710,8 @@
  8.1626  # When interrupted or exit'd, cleanup temporary files, and complete
  8.1627  # config.log.  We remove comments because anyway the quotes in there
  8.1628  # would cause problems or look ugly.
  8.1629 -# WARNING: Be sure not to use single quotes in there, as some shells,
  8.1630 -# such as our DU 5.0 friend, will then `close' the trap.
  8.1631 +# WARNING: Use '\'' to represent an apostrophe within the trap.
  8.1632 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  8.1633  trap 'exit_status=$?
  8.1634    # Save into config.log some information that might help in debugging.
  8.1635    {
  8.1636 @@ -1300,20 +1724,34 @@
  8.1637  _ASBOX
  8.1638      echo
  8.1639      # The following way of writing the cache mishandles newlines in values,
  8.1640 -{
  8.1641 +(
  8.1642 +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  8.1643 +    eval ac_val=\$$ac_var
  8.1644 +    case $ac_val in #(
  8.1645 +    *${as_nl}*)
  8.1646 +      case $ac_var in #(
  8.1647 +      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  8.1648 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  8.1649 +      esac
  8.1650 +      case $ac_var in #(
  8.1651 +      _ | IFS | as_nl) ;; #(
  8.1652 +      *) $as_unset $ac_var ;;
  8.1653 +      esac ;;
  8.1654 +    esac
  8.1655 +  done
  8.1656    (set) 2>&1 |
  8.1657 -    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  8.1658 -    *ac_space=\ *)
  8.1659 +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  8.1660 +    *${as_nl}ac_space=\ *)
  8.1661        sed -n \
  8.1662 -	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  8.1663 -	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  8.1664 -      ;;
  8.1665 +	"s/'\''/'\''\\\\'\'''\''/g;
  8.1666 +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  8.1667 +      ;; #(
  8.1668      *)
  8.1669 -      sed -n \
  8.1670 -	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8.1671 -      ;;
  8.1672 -    esac;
  8.1673 -}
  8.1674 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8.1675 +      ;;
  8.1676 +    esac |
  8.1677 +    sort
  8.1678 +)
  8.1679      echo
  8.1680  
  8.1681      cat <<\_ASBOX
  8.1682 @@ -1324,22 +1762,28 @@
  8.1683      echo
  8.1684      for ac_var in $ac_subst_vars
  8.1685      do
  8.1686 -      eval ac_val=$`echo $ac_var`
  8.1687 -      echo "$ac_var='"'"'$ac_val'"'"'"
  8.1688 +      eval ac_val=\$$ac_var
  8.1689 +      case $ac_val in
  8.1690 +      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  8.1691 +      esac
  8.1692 +      echo "$ac_var='\''$ac_val'\''"
  8.1693      done | sort
  8.1694      echo
  8.1695  
  8.1696      if test -n "$ac_subst_files"; then
  8.1697        cat <<\_ASBOX
  8.1698 -## ------------- ##
  8.1699 -## Output files. ##
  8.1700 -## ------------- ##
  8.1701 +## ------------------- ##
  8.1702 +## File substitutions. ##
  8.1703 +## ------------------- ##
  8.1704  _ASBOX
  8.1705        echo
  8.1706        for ac_var in $ac_subst_files
  8.1707        do
  8.1708 -	eval ac_val=$`echo $ac_var`
  8.1709 -	echo "$ac_var='"'"'$ac_val'"'"'"
  8.1710 +	eval ac_val=\$$ac_var
  8.1711 +	case $ac_val in
  8.1712 +	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  8.1713 +	esac
  8.1714 +	echo "$ac_var='\''$ac_val'\''"
  8.1715        done | sort
  8.1716        echo
  8.1717      fi
  8.1718 @@ -1351,26 +1795,24 @@
  8.1719  ## ----------- ##
  8.1720  _ASBOX
  8.1721        echo
  8.1722 -      sed "/^$/d" confdefs.h | sort
  8.1723 +      cat confdefs.h
  8.1724        echo
  8.1725      fi
  8.1726      test "$ac_signal" != 0 &&
  8.1727        echo "$as_me: caught signal $ac_signal"
  8.1728      echo "$as_me: exit $exit_status"
  8.1729    } >&5
  8.1730 -  rm -f core *.core &&
  8.1731 -  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  8.1732 +  rm -f core *.core core.conftest.* &&
  8.1733 +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  8.1734      exit $exit_status
  8.1735 -     ' 0
  8.1736 +' 0
  8.1737  for ac_signal in 1 2 13 15; do
  8.1738    trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  8.1739  done
  8.1740  ac_signal=0
  8.1741  
  8.1742  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  8.1743 -rm -rf conftest* confdefs.h
  8.1744 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  8.1745 -echo >confdefs.h
  8.1746 +rm -f -r conftest* confdefs.h
  8.1747  
  8.1748  # Predefined preprocessor variables.
  8.1749  
  8.1750 @@ -1401,14 +1843,17 @@
  8.1751  
  8.1752  # Let the site file select an alternate cache file if it wants to.
  8.1753  # Prefer explicitly selected file to automatically selected ones.
  8.1754 -if test -z "$CONFIG_SITE"; then
  8.1755 -  if test "x$prefix" != xNONE; then
  8.1756 -    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  8.1757 -  else
  8.1758 -    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  8.1759 -  fi
  8.1760 -fi
  8.1761 -for ac_site_file in $CONFIG_SITE; do
  8.1762 +if test -n "$CONFIG_SITE"; then
  8.1763 +  set x "$CONFIG_SITE"
  8.1764 +elif test "x$prefix" != xNONE; then
  8.1765 +  set x "$prefix/share/config.site" "$prefix/etc/config.site"
  8.1766 +else
  8.1767 +  set x "$ac_default_prefix/share/config.site" \
  8.1768 +	"$ac_default_prefix/etc/config.site"
  8.1769 +fi
  8.1770 +shift
  8.1771 +for ac_site_file
  8.1772 +do
  8.1773    if test -r "$ac_site_file"; then
  8.1774      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  8.1775  echo "$as_me: loading site script $ac_site_file" >&6;}
  8.1776 @@ -1424,8 +1869,8 @@
  8.1777      { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  8.1778  echo "$as_me: loading cache $cache_file" >&6;}
  8.1779      case $cache_file in
  8.1780 -      [\\/]* | ?:[\\/]* ) . $cache_file;;
  8.1781 -      *)                      . ./$cache_file;;
  8.1782 +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
  8.1783 +      *)                      . "./$cache_file";;
  8.1784      esac
  8.1785    fi
  8.1786  else
  8.1787 @@ -1437,12 +1882,11 @@
  8.1788  # Check that the precious variables saved in the cache have kept the same
  8.1789  # value.
  8.1790  ac_cache_corrupted=false
  8.1791 -for ac_var in `(set) 2>&1 |
  8.1792 -	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  8.1793 +for ac_var in $ac_precious_vars; do
  8.1794    eval ac_old_set=\$ac_cv_env_${ac_var}_set
  8.1795    eval ac_new_set=\$ac_env_${ac_var}_set
  8.1796 -  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  8.1797 -  eval ac_new_val="\$ac_env_${ac_var}_value"
  8.1798 +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  8.1799 +  eval ac_new_val=\$ac_env_${ac_var}_value
  8.1800    case $ac_old_set,$ac_new_set in
  8.1801      set,)
  8.1802        { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  8.1803 @@ -1467,8 +1911,7 @@
  8.1804    # Pass precious variables to config.status.
  8.1805    if test "$ac_new_set" = set; then
  8.1806      case $ac_new_val in
  8.1807 -    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  8.1808 -      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  8.1809 +    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  8.1810      *) ac_arg=$ac_var=$ac_new_val ;;
  8.1811      esac
  8.1812      case " $ac_configure_args " in
  8.1813 @@ -1485,6 +1928,30 @@
  8.1814     { (exit 1); exit 1; }; }
  8.1815  fi
  8.1816  
  8.1817 +
  8.1818 +
  8.1819 +
  8.1820 +
  8.1821 +
  8.1822 +
  8.1823 +
  8.1824 +
  8.1825 +
  8.1826 +
  8.1827 +
  8.1828 +
  8.1829 +
  8.1830 +
  8.1831 +
  8.1832 +
  8.1833 +
  8.1834 +
  8.1835 +
  8.1836 +
  8.1837 +
  8.1838 +
  8.1839 +
  8.1840 +
  8.1841  ac_ext=c
  8.1842  ac_cpp='$CPP $CPPFLAGS'
  8.1843  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.1844 @@ -1494,31 +1961,6 @@
  8.1845  
  8.1846  
  8.1847  
  8.1848 -
  8.1849 -
  8.1850 -
  8.1851 -
  8.1852 -
  8.1853 -
  8.1854 -
  8.1855 -
  8.1856 -
  8.1857 -
  8.1858 -
  8.1859 -
  8.1860 -
  8.1861 -
  8.1862 -
  8.1863 -
  8.1864 -
  8.1865 -
  8.1866 -
  8.1867 -
  8.1868 -
  8.1869 -
  8.1870 -
  8.1871 -
  8.1872 -
  8.1873  LIBHREL_MAJOR_VER=1
  8.1874  LIBHREL_MINOR_VER=0
  8.1875  LIBHREL_MICRO_VER=0
  8.1876 @@ -1527,104 +1969,154 @@
  8.1877  
  8.1878  
  8.1879  ac_aux_dir=
  8.1880 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  8.1881 -  if test -f $ac_dir/install-sh; then
  8.1882 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  8.1883 +  if test -f "$ac_dir/install-sh"; then
  8.1884      ac_aux_dir=$ac_dir
  8.1885      ac_install_sh="$ac_aux_dir/install-sh -c"
  8.1886      break
  8.1887 -  elif test -f $ac_dir/install.sh; then
  8.1888 +  elif test -f "$ac_dir/install.sh"; then
  8.1889      ac_aux_dir=$ac_dir
  8.1890      ac_install_sh="$ac_aux_dir/install.sh -c"
  8.1891      break
  8.1892 -  elif test -f $ac_dir/shtool; then
  8.1893 +  elif test -f "$ac_dir/shtool"; then
  8.1894      ac_aux_dir=$ac_dir
  8.1895      ac_install_sh="$ac_aux_dir/shtool install -c"
  8.1896      break
  8.1897    fi
  8.1898  done
  8.1899  if test -z "$ac_aux_dir"; then
  8.1900 -  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  8.1901 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  8.1902 -   { (exit 1); exit 1; }; }
  8.1903 -fi
  8.1904 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  8.1905 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  8.1906 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  8.1907 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  8.1908 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  8.1909 +   { (exit 1); exit 1; }; }
  8.1910 +fi
  8.1911 +
  8.1912 +# These three variables are undocumented and unsupported,
  8.1913 +# and are intended to be withdrawn in a future Autoconf release.
  8.1914 +# They can cause serious problems if a builder's source tree is in a directory
  8.1915 +# whose full name contains unusual characters.
  8.1916 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  8.1917 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  8.1918 +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  8.1919 +
  8.1920  
  8.1921  # Make sure we can run config.sub.
  8.1922 -$ac_config_sub sun4 >/dev/null 2>&1 ||
  8.1923 -  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  8.1924 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  8.1925 -   { (exit 1); exit 1; }; }
  8.1926 -
  8.1927 -echo "$as_me:$LINENO: checking build system type" >&5
  8.1928 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  8.1929 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  8.1930 +  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  8.1931 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  8.1932 +   { (exit 1); exit 1; }; }
  8.1933 +
  8.1934 +{ echo "$as_me:$LINENO: checking build system type" >&5
  8.1935 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  8.1936  if test "${ac_cv_build+set}" = set; then
  8.1937    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1938  else
  8.1939 -  ac_cv_build_alias=$build_alias
  8.1940 -test -z "$ac_cv_build_alias" &&
  8.1941 -  ac_cv_build_alias=`$ac_config_guess`
  8.1942 -test -z "$ac_cv_build_alias" &&
  8.1943 +  ac_build_alias=$build_alias
  8.1944 +test "x$ac_build_alias" = x &&
  8.1945 +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  8.1946 +test "x$ac_build_alias" = x &&
  8.1947    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  8.1948  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  8.1949     { (exit 1); exit 1; }; }
  8.1950 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  8.1951 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  8.1952 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  8.1953 -   { (exit 1); exit 1; }; }
  8.1954 -
  8.1955 -fi
  8.1956 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  8.1957 -echo "${ECHO_T}$ac_cv_build" >&6
  8.1958 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  8.1959 +  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  8.1960 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  8.1961 +   { (exit 1); exit 1; }; }
  8.1962 +
  8.1963 +fi
  8.1964 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  8.1965 +echo "${ECHO_T}$ac_cv_build" >&6; }
  8.1966 +case $ac_cv_build in
  8.1967 +*-*-*) ;;
  8.1968 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  8.1969 +echo "$as_me: error: invalid value of canonical build" >&2;}
  8.1970 +   { (exit 1); exit 1; }; };;
  8.1971 +esac
  8.1972  build=$ac_cv_build
  8.1973 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  8.1974 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  8.1975 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  8.1976 -
  8.1977 -
  8.1978 -echo "$as_me:$LINENO: checking host system type" >&5
  8.1979 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  8.1980 +ac_save_IFS=$IFS; IFS='-'
  8.1981 +set x $ac_cv_build
  8.1982 +shift
  8.1983 +build_cpu=$1
  8.1984 +build_vendor=$2
  8.1985 +shift; shift
  8.1986 +# Remember, the first character of IFS is used to create $*,
  8.1987 +# except with old shells:
  8.1988 +build_os=$*
  8.1989 +IFS=$ac_save_IFS
  8.1990 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  8.1991 +
  8.1992 +
  8.1993 +{ echo "$as_me:$LINENO: checking host system type" >&5
  8.1994 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  8.1995  if test "${ac_cv_host+set}" = set; then
  8.1996    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1997  else
  8.1998 -  ac_cv_host_alias=$host_alias
  8.1999 -test -z "$ac_cv_host_alias" &&
  8.2000 -  ac_cv_host_alias=$ac_cv_build_alias
  8.2001 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  8.2002 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  8.2003 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  8.2004 -   { (exit 1); exit 1; }; }
  8.2005 -
  8.2006 -fi
  8.2007 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  8.2008 -echo "${ECHO_T}$ac_cv_host" >&6
  8.2009 +  if test "x$host_alias" = x; then
  8.2010 +  ac_cv_host=$ac_cv_build
  8.2011 +else
  8.2012 +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  8.2013 +    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  8.2014 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  8.2015 +   { (exit 1); exit 1; }; }
  8.2016 +fi
  8.2017 +
  8.2018 +fi
  8.2019 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  8.2020 +echo "${ECHO_T}$ac_cv_host" >&6; }
  8.2021 +case $ac_cv_host in
  8.2022 +*-*-*) ;;
  8.2023 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  8.2024 +echo "$as_me: error: invalid value of canonical host" >&2;}
  8.2025 +   { (exit 1); exit 1; }; };;
  8.2026 +esac
  8.2027  host=$ac_cv_host
  8.2028 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  8.2029 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  8.2030 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  8.2031 -
  8.2032 -
  8.2033 -echo "$as_me:$LINENO: checking target system type" >&5
  8.2034 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
  8.2035 +ac_save_IFS=$IFS; IFS='-'
  8.2036 +set x $ac_cv_host
  8.2037 +shift
  8.2038 +host_cpu=$1
  8.2039 +host_vendor=$2
  8.2040 +shift; shift
  8.2041 +# Remember, the first character of IFS is used to create $*,
  8.2042 +# except with old shells:
  8.2043 +host_os=$*
  8.2044 +IFS=$ac_save_IFS
  8.2045 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  8.2046 +
  8.2047 +
  8.2048 +{ echo "$as_me:$LINENO: checking target system type" >&5
  8.2049 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  8.2050  if test "${ac_cv_target+set}" = set; then
  8.2051    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2052  else
  8.2053 -  ac_cv_target_alias=$target_alias
  8.2054 -test "x$ac_cv_target_alias" = "x" &&
  8.2055 -  ac_cv_target_alias=$ac_cv_host_alias
  8.2056 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  8.2057 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  8.2058 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  8.2059 -   { (exit 1); exit 1; }; }
  8.2060 -
  8.2061 -fi
  8.2062 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  8.2063 -echo "${ECHO_T}$ac_cv_target" >&6
  8.2064 +  if test "x$target_alias" = x; then
  8.2065 +  ac_cv_target=$ac_cv_host
  8.2066 +else
  8.2067 +  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  8.2068 +    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  8.2069 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  8.2070 +   { (exit 1); exit 1; }; }
  8.2071 +fi
  8.2072 +
  8.2073 +fi
  8.2074 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  8.2075 +echo "${ECHO_T}$ac_cv_target" >&6; }
  8.2076 +case $ac_cv_target in
  8.2077 +*-*-*) ;;
  8.2078 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  8.2079 +echo "$as_me: error: invalid value of canonical target" >&2;}
  8.2080 +   { (exit 1); exit 1; }; };;
  8.2081 +esac
  8.2082  target=$ac_cv_target
  8.2083 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  8.2084 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  8.2085 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  8.2086 +ac_save_IFS=$IFS; IFS='-'
  8.2087 +set x $ac_cv_target
  8.2088 +shift
  8.2089 +target_cpu=$1
  8.2090 +target_vendor=$2
  8.2091 +shift; shift
  8.2092 +# Remember, the first character of IFS is used to create $*,
  8.2093 +# except with old shells:
  8.2094 +target_os=$*
  8.2095 +IFS=$ac_save_IFS
  8.2096 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  8.2097  
  8.2098  
  8.2099  # The aliases save the names the user supplied, while $host etc.
  8.2100 @@ -1634,7 +2126,8 @@
  8.2101      NONENONEs,x,x, &&
  8.2102    program_prefix=${target_alias}-
  8.2103  
  8.2104 -am__api_version="1.9"
  8.2105 +am__api_version='1.10'
  8.2106 +
  8.2107  # Find a good install program.  We prefer a C program (faster),
  8.2108  # so one script is as good as another.  But avoid the broken or
  8.2109  # incompatible versions:
  8.2110 @@ -1648,8 +2141,8 @@
  8.2111  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  8.2112  # OS/2's system install, which has a completely different semantic
  8.2113  # ./install, which can be erroneously created by make from ./install.sh.
  8.2114 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  8.2115 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  8.2116 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  8.2117 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  8.2118  if test -z "$INSTALL"; then
  8.2119  if test "${ac_cv_path_install+set}" = set; then
  8.2120    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2121 @@ -1671,7 +2164,7 @@
  8.2122      # by default.
  8.2123      for ac_prog in ginstall scoinst install; do
  8.2124        for ac_exec_ext in '' $ac_executable_extensions; do
  8.2125 -	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  8.2126 +	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  8.2127  	  if test $ac_prog = install &&
  8.2128  	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8.2129  	    # AIX install.  It has an incompatible calling convention.
  8.2130 @@ -1690,21 +2183,22 @@
  8.2131      ;;
  8.2132  esac
  8.2133  done
  8.2134 +IFS=$as_save_IFS
  8.2135  
  8.2136  
  8.2137  fi
  8.2138    if test "${ac_cv_path_install+set}" = set; then
  8.2139      INSTALL=$ac_cv_path_install
  8.2140    else
  8.2141 -    # As a last resort, use the slow shell script.  We don't cache a
  8.2142 -    # path for INSTALL within a source directory, because that will
  8.2143 +    # As a last resort, use the slow shell script.  Don't cache a
  8.2144 +    # value for INSTALL within a source directory, because that will
  8.2145      # break other packages using the cache if that directory is
  8.2146 -    # removed, or if the path is relative.
  8.2147 +    # removed, or if the value is a relative name.
  8.2148      INSTALL=$ac_install_sh
  8.2149    fi
  8.2150  fi
  8.2151 -echo "$as_me:$LINENO: result: $INSTALL" >&5
  8.2152 -echo "${ECHO_T}$INSTALL" >&6
  8.2153 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  8.2154 +echo "${ECHO_T}$INSTALL" >&6; }
  8.2155  
  8.2156  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  8.2157  # It thinks the first close brace ends the variable substitution.
  8.2158 @@ -1714,8 +2208,8 @@
  8.2159  
  8.2160  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  8.2161  
  8.2162 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  8.2163 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  8.2164 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  8.2165 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  8.2166  # Just in case
  8.2167  sleep 1
  8.2168  echo timestamp > conftest.file
  8.2169 @@ -1757,20 +2251,20 @@
  8.2170  Check your system clock" >&2;}
  8.2171     { (exit 1); exit 1; }; }
  8.2172  fi
  8.2173 -echo "$as_me:$LINENO: result: yes" >&5
  8.2174 -echo "${ECHO_T}yes" >&6
  8.2175 +{ echo "$as_me:$LINENO: result: yes" >&5
  8.2176 +echo "${ECHO_T}yes" >&6; }
  8.2177  test "$program_prefix" != NONE &&
  8.2178 -  program_transform_name="s,^,$program_prefix,;$program_transform_name"
  8.2179 +  program_transform_name="s&^&$program_prefix&;$program_transform_name"
  8.2180  # Use a double $ so make ignores it.
  8.2181  test "$program_suffix" != NONE &&
  8.2182 -  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  8.2183 +  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  8.2184  # Double any \ or $.  echo might interpret backslashes.
  8.2185  # By default was `s,x,x', remove it if useless.
  8.2186  cat <<\_ACEOF >conftest.sed
  8.2187  s/[\\$]/&&/g;s/;s,x,x,$//
  8.2188  _ACEOF
  8.2189  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  8.2190 -rm conftest.sed
  8.2191 +rm -f conftest.sed
  8.2192  
  8.2193  # expand $ac_aux_dir to an absolute path
  8.2194  am_aux_dir=`cd $ac_aux_dir && pwd`
  8.2195 @@ -1785,45 +2279,60 @@
  8.2196  echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  8.2197  fi
  8.2198  
  8.2199 -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  8.2200 -  # We used to keeping the `.' as first argument, in order to
  8.2201 -  # allow $(mkdir_p) to be used without argument.  As in
  8.2202 -  #   $(mkdir_p) $(somedir)
  8.2203 -  # where $(somedir) is conditionally defined.  However this is wrong
  8.2204 -  # for two reasons:
  8.2205 -  #  1. if the package is installed by a user who cannot write `.'
  8.2206 -  #     make install will fail,
  8.2207 -  #  2. the above comment should most certainly read
  8.2208 -  #     $(mkdir_p) $(DESTDIR)$(somedir)
  8.2209 -  #     so it does not work when $(somedir) is undefined and
  8.2210 -  #     $(DESTDIR) is not.
  8.2211 -  #  To support the latter case, we have to write
  8.2212 -  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  8.2213 -  #  so the `.' trick is pointless.
  8.2214 -  mkdir_p='mkdir -p --'
  8.2215 -else
  8.2216 -  # On NextStep and OpenStep, the `mkdir' command does not
  8.2217 -  # recognize any option.  It will interpret all options as
  8.2218 -  # directories to create, and then abort because `.' already
  8.2219 -  # exists.
  8.2220 -  for d in ./-p ./--version;
  8.2221 -  do
  8.2222 -    test -d $d && rmdir $d
  8.2223 -  done
  8.2224 -  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  8.2225 -  if test -f "$ac_aux_dir/mkinstalldirs"; then
  8.2226 -    mkdir_p='$(mkinstalldirs)'
  8.2227 -  else
  8.2228 -    mkdir_p='$(install_sh) -d'
  8.2229 -  fi
  8.2230 -fi
  8.2231 +{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  8.2232 +echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  8.2233 +if test -z "$MKDIR_P"; then
  8.2234 +  if test "${ac_cv_path_mkdir+set}" = set; then
  8.2235 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2236 +else
  8.2237 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.2238 +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  8.2239 +do
  8.2240 +  IFS=$as_save_IFS
  8.2241 +  test -z "$as_dir" && as_dir=.
  8.2242 +  for ac_prog in mkdir gmkdir; do
  8.2243 +	 for ac_exec_ext in '' $ac_executable_extensions; do
  8.2244 +	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  8.2245 +	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  8.2246 +	     'mkdir (GNU coreutils) '* | \
  8.2247 +	     'mkdir (coreutils) '* | \
  8.2248 +	     'mkdir (fileutils) '4.1*)
  8.2249 +	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  8.2250 +	       break 3;;
  8.2251 +	   esac
  8.2252 +	 done
  8.2253 +       done
  8.2254 +done
  8.2255 +IFS=$as_save_IFS
  8.2256 +
  8.2257 +fi
  8.2258 +
  8.2259 +  if test "${ac_cv_path_mkdir+set}" = set; then
  8.2260 +    MKDIR_P="$ac_cv_path_mkdir -p"
  8.2261 +  else
  8.2262 +    # As a last resort, use the slow shell script.  Don't cache a
  8.2263 +    # value for MKDIR_P within a source directory, because that will
  8.2264 +    # break other packages using the cache if that directory is
  8.2265 +    # removed, or if the value is a relative name.
  8.2266 +    test -d ./--version && rmdir ./--version
  8.2267 +    MKDIR_P="$ac_install_sh -d"
  8.2268 +  fi
  8.2269 +fi
  8.2270 +{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  8.2271 +echo "${ECHO_T}$MKDIR_P" >&6; }
  8.2272 +
  8.2273 +mkdir_p="$MKDIR_P"
  8.2274 +case $mkdir_p in
  8.2275 +  [\\/$]* | ?:[\\/]*) ;;
  8.2276 +  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8.2277 +esac
  8.2278  
  8.2279  for ac_prog in gawk mawk nawk awk
  8.2280  do
  8.2281    # Extract the first word of "$ac_prog", so it can be a program name with args.
  8.2282  set dummy $ac_prog; ac_word=$2
  8.2283 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2284 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2285 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2286 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.2287  if test "${ac_cv_prog_AWK+set}" = set; then
  8.2288    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2289  else
  8.2290 @@ -1836,54 +2345,57 @@
  8.2291    IFS=$as_save_IFS
  8.2292    test -z "$as_dir" && as_dir=.
  8.2293    for ac_exec_ext in '' $ac_executable_extensions; do
  8.2294 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2295 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.2296      ac_cv_prog_AWK="$ac_prog"
  8.2297      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2298      break 2
  8.2299    fi
  8.2300  done
  8.2301  done
  8.2302 +IFS=$as_save_IFS
  8.2303  
  8.2304  fi
  8.2305  fi
  8.2306  AWK=$ac_cv_prog_AWK
  8.2307  if test -n "$AWK"; then
  8.2308 -  echo "$as_me:$LINENO: result: $AWK" >&5
  8.2309 -echo "${ECHO_T}$AWK" >&6
  8.2310 -else
  8.2311 -  echo "$as_me:$LINENO: result: no" >&5
  8.2312 -echo "${ECHO_T}no" >&6
  8.2313 -fi
  8.2314 +  { echo "$as_me:$LINENO: result: $AWK" >&5
  8.2315 +echo "${ECHO_T}$AWK" >&6; }
  8.2316 +else
  8.2317 +  { echo "$as_me:$LINENO: result: no" >&5
  8.2318 +echo "${ECHO_T}no" >&6; }
  8.2319 +fi
  8.2320 +
  8.2321  
  8.2322    test -n "$AWK" && break
  8.2323  done
  8.2324  
  8.2325 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  8.2326 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  8.2327 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  8.2328 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  8.2329 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  8.2330 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  8.2331 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  8.2332 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  8.2333    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2334  else
  8.2335    cat >conftest.make <<\_ACEOF
  8.2336 +SHELL = /bin/sh
  8.2337  all:
  8.2338 -	@echo 'ac_maketemp="$(MAKE)"'
  8.2339 +	@echo '@@@%%%=$(MAKE)=@@@%%%'
  8.2340  _ACEOF
  8.2341  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  8.2342 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  8.2343 -if test -n "$ac_maketemp"; then
  8.2344 -  eval ac_cv_prog_make_${ac_make}_set=yes
  8.2345 -else
  8.2346 -  eval ac_cv_prog_make_${ac_make}_set=no
  8.2347 -fi
  8.2348 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  8.2349 +  *@@@%%%=?*=@@@%%%*)
  8.2350 +    eval ac_cv_prog_make_${ac_make}_set=yes;;
  8.2351 +  *)
  8.2352 +    eval ac_cv_prog_make_${ac_make}_set=no;;
  8.2353 +esac
  8.2354  rm -f conftest.make
  8.2355  fi
  8.2356 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  8.2357 -  echo "$as_me:$LINENO: result: yes" >&5
  8.2358 -echo "${ECHO_T}yes" >&6
  8.2359 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  8.2360 +  { echo "$as_me:$LINENO: result: yes" >&5
  8.2361 +echo "${ECHO_T}yes" >&6; }
  8.2362    SET_MAKE=
  8.2363  else
  8.2364 -  echo "$as_me:$LINENO: result: no" >&5
  8.2365 -echo "${ECHO_T}no" >&6
  8.2366 +  { echo "$as_me:$LINENO: result: no" >&5
  8.2367 +echo "${ECHO_T}no" >&6; }
  8.2368    SET_MAKE="MAKE=${MAKE-make}"
  8.2369  fi
  8.2370  
  8.2371 @@ -1896,12 +2408,16 @@
  8.2372  fi
  8.2373  rmdir .tst 2>/dev/null
  8.2374  
  8.2375 -# test to see if srcdir already configured
  8.2376 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  8.2377 -   test -f $srcdir/config.status; then
  8.2378 -  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  8.2379 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8.2380 +  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8.2381 +  # is not polluted with repeated "-I."
  8.2382 +  am__isrc=' -I$(srcdir)'
  8.2383 +  # test to see if srcdir already configured
  8.2384 +  if test -f $srcdir/config.status; then
  8.2385 +    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  8.2386  echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  8.2387     { (exit 1); exit 1; }; }
  8.2388 +  fi
  8.2389  fi
  8.2390  
  8.2391  # test whether we have cygpath
  8.2392 @@ -1944,7 +2460,7 @@
  8.2393  
  8.2394  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  8.2395  
  8.2396 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  8.2397 +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  8.2398  
  8.2399  # Installed binaries are usually stripped using `strip' when the user
  8.2400  # run `make install-strip'.  However `strip' might not be the right
  8.2401 @@ -1954,8 +2470,8 @@
  8.2402    if test -n "$ac_tool_prefix"; then
  8.2403    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8.2404  set dummy ${ac_tool_prefix}strip; ac_word=$2
  8.2405 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2406 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2407 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2408 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.2409  if test "${ac_cv_prog_STRIP+set}" = set; then
  8.2410    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2411  else
  8.2412 @@ -1968,32 +2484,34 @@
  8.2413    IFS=$as_save_IFS
  8.2414    test -z "$as_dir" && as_dir=.
  8.2415    for ac_exec_ext in '' $ac_executable_extensions; do
  8.2416 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2417 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.2418      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8.2419      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2420      break 2
  8.2421    fi
  8.2422  done
  8.2423  done
  8.2424 +IFS=$as_save_IFS
  8.2425  
  8.2426  fi
  8.2427  fi
  8.2428  STRIP=$ac_cv_prog_STRIP
  8.2429  if test -n "$STRIP"; then
  8.2430 -  echo "$as_me:$LINENO: result: $STRIP" >&5
  8.2431 -echo "${ECHO_T}$STRIP" >&6
  8.2432 -else
  8.2433 -  echo "$as_me:$LINENO: result: no" >&5
  8.2434 -echo "${ECHO_T}no" >&6
  8.2435 -fi
  8.2436 +  { echo "$as_me:$LINENO: result: $STRIP" >&5
  8.2437 +echo "${ECHO_T}$STRIP" >&6; }
  8.2438 +else
  8.2439 +  { echo "$as_me:$LINENO: result: no" >&5
  8.2440 +echo "${ECHO_T}no" >&6; }
  8.2441 +fi
  8.2442 +
  8.2443  
  8.2444  fi
  8.2445  if test -z "$ac_cv_prog_STRIP"; then
  8.2446    ac_ct_STRIP=$STRIP
  8.2447    # Extract the first word of "strip", so it can be a program name with args.
  8.2448  set dummy strip; ac_word=$2
  8.2449 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2450 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2451 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2452 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.2453  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  8.2454    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2455  else
  8.2456 @@ -2006,33 +2524,47 @@
  8.2457    IFS=$as_save_IFS
  8.2458    test -z "$as_dir" && as_dir=.
  8.2459    for ac_exec_ext in '' $ac_executable_extensions; do
  8.2460 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2461 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.2462      ac_cv_prog_ac_ct_STRIP="strip"
  8.2463      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2464      break 2
  8.2465    fi
  8.2466  done
  8.2467  done
  8.2468 -
  8.2469 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  8.2470 +IFS=$as_save_IFS
  8.2471 +
  8.2472  fi
  8.2473  fi
  8.2474  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8.2475  if test -n "$ac_ct_STRIP"; then
  8.2476 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8.2477 -echo "${ECHO_T}$ac_ct_STRIP" >&6
  8.2478 -else
  8.2479 -  echo "$as_me:$LINENO: result: no" >&5
  8.2480 -echo "${ECHO_T}no" >&6
  8.2481 -fi
  8.2482 -
  8.2483 -  STRIP=$ac_ct_STRIP
  8.2484 +  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8.2485 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  8.2486 +else
  8.2487 +  { echo "$as_me:$LINENO: result: no" >&5
  8.2488 +echo "${ECHO_T}no" >&6; }
  8.2489 +fi
  8.2490 +
  8.2491 +  if test "x$ac_ct_STRIP" = x; then
  8.2492 +    STRIP=":"
  8.2493 +  else
  8.2494 +    case $cross_compiling:$ac_tool_warned in
  8.2495 +yes:)
  8.2496 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8.2497 +whose name does not start with the host triplet.  If you think this
  8.2498 +configuration is useful to you, please write to autoconf@gnu.org." >&5
  8.2499 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8.2500 +whose name does not start with the host triplet.  If you think this
  8.2501 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8.2502 +ac_tool_warned=yes ;;
  8.2503 +esac
  8.2504 +    STRIP=$ac_ct_STRIP
  8.2505 +  fi
  8.2506  else
  8.2507    STRIP="$ac_cv_prog_STRIP"
  8.2508  fi
  8.2509  
  8.2510  fi
  8.2511 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  8.2512 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8.2513  
  8.2514  # We need awk for the "check" target.  The system "awk" is bad on
  8.2515  # some platforms.
  8.2516 @@ -2047,7 +2579,7 @@
  8.2517  
  8.2518  
  8.2519  
  8.2520 -          ac_config_headers="$ac_config_headers config.h"
  8.2521 +ac_config_headers="$ac_config_headers config.h"
  8.2522  
  8.2523  
  8.2524  ac_ext=c
  8.2525 @@ -2071,8 +2603,8 @@
  8.2526  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  8.2527  # OS/2's system install, which has a completely different semantic
  8.2528  # ./install, which can be erroneously created by make from ./install.sh.
  8.2529 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  8.2530 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  8.2531 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  8.2532 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  8.2533  if test -z "$INSTALL"; then
  8.2534  if test "${ac_cv_path_install+set}" = set; then
  8.2535    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2536 @@ -2094,7 +2626,7 @@
  8.2537      # by default.
  8.2538      for ac_prog in ginstall scoinst install; do
  8.2539        for ac_exec_ext in '' $ac_executable_extensions; do
  8.2540 -	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  8.2541 +	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  8.2542  	  if test $ac_prog = install &&
  8.2543  	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8.2544  	    # AIX install.  It has an incompatible calling convention.
  8.2545 @@ -2113,21 +2645,22 @@
  8.2546      ;;
  8.2547  esac
  8.2548  done
  8.2549 +IFS=$as_save_IFS
  8.2550  
  8.2551  
  8.2552  fi
  8.2553    if test "${ac_cv_path_install+set}" = set; then
  8.2554      INSTALL=$ac_cv_path_install
  8.2555    else
  8.2556 -    # As a last resort, use the slow shell script.  We don't cache a
  8.2557 -    # path for INSTALL within a source directory, because that will
  8.2558 +    # As a last resort, use the slow shell script.  Don't cache a
  8.2559 +    # value for INSTALL within a source directory, because that will
  8.2560      # break other packages using the cache if that directory is
  8.2561 -    # removed, or if the path is relative.
  8.2562 +    # removed, or if the value is a relative name.
  8.2563      INSTALL=$ac_install_sh
  8.2564    fi
  8.2565  fi
  8.2566 -echo "$as_me:$LINENO: result: $INSTALL" >&5
  8.2567 -echo "${ECHO_T}$INSTALL" >&6
  8.2568 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  8.2569 +echo "${ECHO_T}$INSTALL" >&6; }
  8.2570  
  8.2571  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  8.2572  # It thinks the first close brace ends the variable substitution.
  8.2573 @@ -2137,43 +2670,44 @@
  8.2574  
  8.2575  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  8.2576  
  8.2577 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
  8.2578 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  8.2579 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  8.2580 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  8.2581  LN_S=$as_ln_s
  8.2582  if test "$LN_S" = "ln -s"; then
  8.2583 -  echo "$as_me:$LINENO: result: yes" >&5
  8.2584 -echo "${ECHO_T}yes" >&6
  8.2585 -else
  8.2586 -  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  8.2587 -echo "${ECHO_T}no, using $LN_S" >&6
  8.2588 -fi
  8.2589 -
  8.2590 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  8.2591 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  8.2592 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  8.2593 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  8.2594 +  { echo "$as_me:$LINENO: result: yes" >&5
  8.2595 +echo "${ECHO_T}yes" >&6; }
  8.2596 +else
  8.2597 +  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  8.2598 +echo "${ECHO_T}no, using $LN_S" >&6; }
  8.2599 +fi
  8.2600 +
  8.2601 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  8.2602 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  8.2603 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  8.2604 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  8.2605    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2606  else
  8.2607    cat >conftest.make <<\_ACEOF
  8.2608 +SHELL = /bin/sh
  8.2609  all:
  8.2610 -	@echo 'ac_maketemp="$(MAKE)"'
  8.2611 +	@echo '@@@%%%=$(MAKE)=@@@%%%'
  8.2612  _ACEOF
  8.2613  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  8.2614 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  8.2615 -if test -n "$ac_maketemp"; then
  8.2616 -  eval ac_cv_prog_make_${ac_make}_set=yes
  8.2617 -else
  8.2618 -  eval ac_cv_prog_make_${ac_make}_set=no
  8.2619 -fi
  8.2620 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  8.2621 +  *@@@%%%=?*=@@@%%%*)
  8.2622 +    eval ac_cv_prog_make_${ac_make}_set=yes;;
  8.2623 +  *)
  8.2624 +    eval ac_cv_prog_make_${ac_make}_set=no;;
  8.2625 +esac
  8.2626  rm -f conftest.make
  8.2627  fi
  8.2628 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  8.2629 -  echo "$as_me:$LINENO: result: yes" >&5
  8.2630 -echo "${ECHO_T}yes" >&6
  8.2631 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  8.2632 +  { echo "$as_me:$LINENO: result: yes" >&5
  8.2633 +echo "${ECHO_T}yes" >&6; }
  8.2634    SET_MAKE=
  8.2635  else
  8.2636 -  echo "$as_me:$LINENO: result: no" >&5
  8.2637 -echo "${ECHO_T}no" >&6
  8.2638 +  { echo "$as_me:$LINENO: result: no" >&5
  8.2639 +echo "${ECHO_T}no" >&6; }
  8.2640    SET_MAKE="MAKE=${MAKE-make}"
  8.2641  fi
  8.2642  
  8.2643 @@ -2183,10 +2717,9 @@
  8.2644  
  8.2645  
  8.2646  
  8.2647 -# Check whether --enable-static or --disable-static was given.
  8.2648 +# Check whether --enable-static was given.
  8.2649  if test "${enable_static+set}" = set; then
  8.2650 -  enableval="$enable_static"
  8.2651 -  p=${PACKAGE-default}
  8.2652 +  enableval=$enable_static; p=${PACKAGE-default}
  8.2653      case $enableval in
  8.2654      yes) enable_static=yes ;;
  8.2655      no) enable_static=no ;;
  8.2656 @@ -2205,13 +2738,13 @@
  8.2657      esac
  8.2658  else
  8.2659    enable_static=no
  8.2660 -fi;
  8.2661 -
  8.2662 -
  8.2663 -# Check whether --enable-shared or --disable-shared was given.
  8.2664 +fi
  8.2665 +
  8.2666 +
  8.2667 +
  8.2668 +# Check whether --enable-shared was given.
  8.2669  if test "${enable_shared+set}" = set; then
  8.2670 -  enableval="$enable_shared"
  8.2671 -  p=${PACKAGE-default}
  8.2672 +  enableval=$enable_shared; p=${PACKAGE-default}
  8.2673      case $enableval in
  8.2674      yes) enable_shared=yes ;;
  8.2675      no) enable_shared=no ;;
  8.2676 @@ -2230,12 +2763,12 @@
  8.2677      esac
  8.2678  else
  8.2679    enable_shared=yes
  8.2680 -fi;
  8.2681 -
  8.2682 -# Check whether --enable-fast-install or --disable-fast-install was given.
  8.2683 +fi
  8.2684 +
  8.2685 +
  8.2686 +# Check whether --enable-fast-install was given.
  8.2687  if test "${enable_fast_install+set}" = set; then
  8.2688 -  enableval="$enable_fast_install"
  8.2689 -  p=${PACKAGE-default}
  8.2690 +  enableval=$enable_fast_install; p=${PACKAGE-default}
  8.2691      case $enableval in
  8.2692      yes) enable_fast_install=yes ;;
  8.2693      no) enable_fast_install=no ;;
  8.2694 @@ -2254,11 +2787,12 @@
  8.2695      esac
  8.2696  else
  8.2697    enable_fast_install=yes
  8.2698 -fi;
  8.2699 +fi
  8.2700 +
  8.2701  
  8.2702  DEPDIR="${am__leading_dot}deps"
  8.2703  
  8.2704 -          ac_config_commands="$ac_config_commands depfiles"
  8.2705 +ac_config_commands="$ac_config_commands depfiles"
  8.2706  
  8.2707  
  8.2708  am_make=${MAKE-make}
  8.2709 @@ -2268,8 +2802,8 @@
  8.2710  .PHONY: am__doit
  8.2711  END
  8.2712  # If we don't find an include directive, just comment out the code.
  8.2713 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  8.2714 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  8.2715 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  8.2716 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  8.2717  am__include="#"
  8.2718  am__quote=
  8.2719  _am_result=none
  8.2720 @@ -2296,22 +2830,20 @@
  8.2721  fi
  8.2722  
  8.2723  
  8.2724 -echo "$as_me:$LINENO: result: $_am_result" >&5
  8.2725 -echo "${ECHO_T}$_am_result" >&6
  8.2726 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
  8.2727 +echo "${ECHO_T}$_am_result" >&6; }
  8.2728  rm -f confinc confmf
  8.2729  
  8.2730 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  8.2731 +# Check whether --enable-dependency-tracking was given.
  8.2732  if test "${enable_dependency_tracking+set}" = set; then
  8.2733 -  enableval="$enable_dependency_tracking"
  8.2734 -
  8.2735 -fi;
  8.2736 +  enableval=$enable_dependency_tracking;
  8.2737 +fi
  8.2738 +
  8.2739  if test "x$enable_dependency_tracking" != xno; then
  8.2740    am_depcomp="$ac_aux_dir/depcomp"
  8.2741    AMDEPBACKSLASH='\'
  8.2742  fi
  8.2743 -
  8.2744 -
  8.2745 -if test "x$enable_dependency_tracking" != xno; then
  8.2746 + if test "x$enable_dependency_tracking" != xno; then
  8.2747    AMDEP_TRUE=
  8.2748    AMDEP_FALSE='#'
  8.2749  else
  8.2750 @@ -2320,7 +2852,6 @@
  8.2751  fi
  8.2752  
  8.2753  
  8.2754 -
  8.2755  ac_ext=c
  8.2756  ac_cpp='$CPP $CPPFLAGS'
  8.2757  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.2758 @@ -2329,8 +2860,8 @@
  8.2759  if test -n "$ac_tool_prefix"; then
  8.2760    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  8.2761  set dummy ${ac_tool_prefix}gcc; ac_word=$2
  8.2762 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2763 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2764 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2765 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.2766  if test "${ac_cv_prog_CC+set}" = set; then
  8.2767    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2768  else
  8.2769 @@ -2343,32 +2874,34 @@
  8.2770    IFS=$as_save_IFS
  8.2771    test -z "$as_dir" && as_dir=.
  8.2772    for ac_exec_ext in '' $ac_executable_extensions; do
  8.2773 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2774 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.2775      ac_cv_prog_CC="${ac_tool_prefix}gcc"
  8.2776      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2777      break 2
  8.2778    fi
  8.2779  done
  8.2780  done
  8.2781 +IFS=$as_save_IFS
  8.2782  
  8.2783  fi
  8.2784  fi
  8.2785  CC=$ac_cv_prog_CC
  8.2786  if test -n "$CC"; then
  8.2787 -  echo "$as_me:$LINENO: result: $CC" >&5
  8.2788 -echo "${ECHO_T}$CC" >&6
  8.2789 -else
  8.2790 -  echo "$as_me:$LINENO: result: no" >&5
  8.2791 -echo "${ECHO_T}no" >&6
  8.2792 -fi
  8.2793 +  { echo "$as_me:$LINENO: result: $CC" >&5
  8.2794 +echo "${ECHO_T}$CC" >&6; }
  8.2795 +else
  8.2796 +  { echo "$as_me:$LINENO: result: no" >&5
  8.2797 +echo "${ECHO_T}no" >&6; }
  8.2798 +fi
  8.2799 +
  8.2800  
  8.2801  fi
  8.2802  if test -z "$ac_cv_prog_CC"; then
  8.2803    ac_ct_CC=$CC
  8.2804    # Extract the first word of "gcc", so it can be a program name with args.
  8.2805  set dummy gcc; ac_word=$2
  8.2806 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2807 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2808 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2809 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.2810  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  8.2811    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2812  else
  8.2813 @@ -2381,36 +2914,51 @@
  8.2814    IFS=$as_save_IFS
  8.2815    test -z "$as_dir" && as_dir=.
  8.2816    for ac_exec_ext in '' $ac_executable_extensions; do
  8.2817 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2818 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.2819      ac_cv_prog_ac_ct_CC="gcc"
  8.2820      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2821      break 2
  8.2822    fi
  8.2823  done
  8.2824  done
  8.2825 +IFS=$as_save_IFS
  8.2826  
  8.2827  fi
  8.2828  fi
  8.2829  ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8.2830  if test -n "$ac_ct_CC"; then
  8.2831 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  8.2832 -echo "${ECHO_T}$ac_ct_CC" >&6
  8.2833 -else
  8.2834 -  echo "$as_me:$LINENO: result: no" >&5
  8.2835 -echo "${ECHO_T}no" >&6
  8.2836 -fi
  8.2837 -
  8.2838 -  CC=$ac_ct_CC
  8.2839 +  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  8.2840 +echo "${ECHO_T}$ac_ct_CC" >&6; }
  8.2841 +else
  8.2842 +  { echo "$as_me:$LINENO: result: no" >&5
  8.2843 +echo "${ECHO_T}no" >&6; }
  8.2844 +fi
  8.2845 +
  8.2846 +  if test "x$ac_ct_CC" = x; then
  8.2847 +    CC=""
  8.2848 +  else
  8.2849 +    case $cross_compiling:$ac_tool_warned in
  8.2850 +yes:)
  8.2851 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8.2852 +whose name does not start with the host triplet.  If you think this
  8.2853 +configuration is useful to you, please write to autoconf@gnu.org." >&5
  8.2854 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8.2855 +whose name does not start with the host triplet.  If you think this
  8.2856 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8.2857 +ac_tool_warned=yes ;;
  8.2858 +esac
  8.2859 +    CC=$ac_ct_CC
  8.2860 +  fi
  8.2861  else
  8.2862    CC="$ac_cv_prog_CC"
  8.2863  fi
  8.2864  
  8.2865  if test -z "$CC"; then
  8.2866 -  if test -n "$ac_tool_prefix"; then
  8.2867 -  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  8.2868 +          if test -n "$ac_tool_prefix"; then
  8.2869 +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  8.2870  set dummy ${ac_tool_prefix}cc; ac_word=$2
  8.2871 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2872 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2873 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2874 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.2875  if test "${ac_cv_prog_CC+set}" = set; then
  8.2876    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2877  else
  8.2878 @@ -2423,88 +2971,48 @@
  8.2879    IFS=$as_save_IFS
  8.2880    test -z "$as_dir" && as_dir=.
  8.2881    for ac_exec_ext in '' $ac_executable_extensions; do
  8.2882 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2883 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.2884      ac_cv_prog_CC="${ac_tool_prefix}cc"
  8.2885      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2886      break 2
  8.2887    fi
  8.2888  done
  8.2889  done
  8.2890 +IFS=$as_save_IFS
  8.2891  
  8.2892  fi
  8.2893  fi
  8.2894  CC=$ac_cv_prog_CC
  8.2895  if test -n "$CC"; then
  8.2896 -  echo "$as_me:$LINENO: result: $CC" >&5
  8.2897 -echo "${ECHO_T}$CC" >&6
  8.2898 -else
  8.2899 -  echo "$as_me:$LINENO: result: no" >&5
  8.2900 -echo "${ECHO_T}no" >&6
  8.2901 -fi
  8.2902 -
  8.2903 -fi
  8.2904 -if test -z "$ac_cv_prog_CC"; then
  8.2905 -  ac_ct_CC=$CC
  8.2906 +  { echo "$as_me:$LINENO: result: $CC" >&5
  8.2907 +echo "${ECHO_T}$CC" >&6; }
  8.2908 +else
  8.2909 +  { echo "$as_me:$LINENO: result: no" >&5
  8.2910 +echo "${ECHO_T}no" >&6; }
  8.2911 +fi
  8.2912 +
  8.2913 +
  8.2914 +  fi
  8.2915 +fi
  8.2916 +if test -z "$CC"; then
  8.2917    # Extract the first word of "cc", so it can be a program name with args.
  8.2918  set dummy cc; ac_word=$2
  8.2919 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2920 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2921 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  8.2922 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2923 -else
  8.2924 -  if test -n "$ac_ct_CC"; then
  8.2925 -  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  8.2926 -else
  8.2927 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2928 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.2929 +if test "${ac_cv_prog_CC+set}" = set; then
  8.2930 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2931 +else
  8.2932 +  if test -n "$CC"; then
  8.2933 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  8.2934 +else
  8.2935 +  ac_prog_rejected=no
  8.2936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.2937  for as_dir in $PATH
  8.2938  do
  8.2939    IFS=$as_save_IFS
  8.2940    test -z "$as_dir" && as_dir=.
  8.2941    for ac_exec_ext in '' $ac_executable_extensions; do
  8.2942 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2943 -    ac_cv_prog_ac_ct_CC="cc"
  8.2944 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2945 -    break 2
  8.2946 -  fi
  8.2947 -done
  8.2948 -done
  8.2949 -
  8.2950 -fi
  8.2951 -fi
  8.2952 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8.2953 -if test -n "$ac_ct_CC"; then
  8.2954 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  8.2955 -echo "${ECHO_T}$ac_ct_CC" >&6
  8.2956 -else
  8.2957 -  echo "$as_me:$LINENO: result: no" >&5
  8.2958 -echo "${ECHO_T}no" >&6
  8.2959 -fi
  8.2960 -
  8.2961 -  CC=$ac_ct_CC
  8.2962 -else
  8.2963 -  CC="$ac_cv_prog_CC"
  8.2964 -fi
  8.2965 -
  8.2966 -fi
  8.2967 -if test -z "$CC"; then
  8.2968 -  # Extract the first word of "cc", so it can be a program name with args.
  8.2969 -set dummy cc; ac_word=$2
  8.2970 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2971 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2972 -if test "${ac_cv_prog_CC+set}" = set; then
  8.2973 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2974 -else
  8.2975 -  if test -n "$CC"; then
  8.2976 -  ac_cv_prog_CC="$CC" # Let the user override the test.
  8.2977 -else
  8.2978 -  ac_prog_rejected=no
  8.2979 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.2980 -for as_dir in $PATH
  8.2981 -do
  8.2982 -  IFS=$as_save_IFS
  8.2983 -  test -z "$as_dir" && as_dir=.
  8.2984 -  for ac_exec_ext in '' $ac_executable_extensions; do
  8.2985 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2986 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.2987      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  8.2988         ac_prog_rejected=yes
  8.2989         continue
  8.2990 @@ -2515,6 +3023,7 @@
  8.2991    fi
  8.2992  done
  8.2993  done
  8.2994 +IFS=$as_save_IFS
  8.2995  
  8.2996  if test $ac_prog_rejected = yes; then
  8.2997    # We found a bogon in the path, so make sure we never use it.
  8.2998 @@ -2532,22 +3041,23 @@
  8.2999  fi
  8.3000  CC=$ac_cv_prog_CC
  8.3001  if test -n "$CC"; then
  8.3002 -  echo "$as_me:$LINENO: result: $CC" >&5
  8.3003 -echo "${ECHO_T}$CC" >&6
  8.3004 -else
  8.3005 -  echo "$as_me:$LINENO: result: no" >&5
  8.3006 -echo "${ECHO_T}no" >&6
  8.3007 -fi
  8.3008 +  { echo "$as_me:$LINENO: result: $CC" >&5
  8.3009 +echo "${ECHO_T}$CC" >&6; }
  8.3010 +else
  8.3011 +  { echo "$as_me:$LINENO: result: no" >&5
  8.3012 +echo "${ECHO_T}no" >&6; }
  8.3013 +fi
  8.3014 +
  8.3015  
  8.3016  fi
  8.3017  if test -z "$CC"; then
  8.3018    if test -n "$ac_tool_prefix"; then
  8.3019 -  for ac_prog in cl
  8.3020 +  for ac_prog in cl.exe
  8.3021    do
  8.3022      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8.3023  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8.3024 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.3025 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.3026 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.3027 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.3028  if test "${ac_cv_prog_CC+set}" = set; then
  8.3029    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3030  else
  8.3031 @@ -2560,36 +3070,38 @@
  8.3032    IFS=$as_save_IFS
  8.3033    test -z "$as_dir" && as_dir=.
  8.3034    for ac_exec_ext in '' $ac_executable_extensions; do
  8.3035 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.3036 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.3037      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  8.3038      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.3039      break 2
  8.3040    fi
  8.3041  done
  8.3042  done
  8.3043 +IFS=$as_save_IFS
  8.3044  
  8.3045  fi
  8.3046  fi
  8.3047  CC=$ac_cv_prog_CC
  8.3048  if test -n "$CC"; then
  8.3049 -  echo "$as_me:$LINENO: result: $CC" >&5
  8.3050 -echo "${ECHO_T}$CC" >&6
  8.3051 -else
  8.3052 -  echo "$as_me:$LINENO: result: no" >&5
  8.3053 -echo "${ECHO_T}no" >&6
  8.3054 -fi
  8.3055 +  { echo "$as_me:$LINENO: result: $CC" >&5
  8.3056 +echo "${ECHO_T}$CC" >&6; }
  8.3057 +else
  8.3058 +  { echo "$as_me:$LINENO: result: no" >&5
  8.3059 +echo "${ECHO_T}no" >&6; }
  8.3060 +fi
  8.3061 +
  8.3062  
  8.3063      test -n "$CC" && break
  8.3064    done
  8.3065  fi
  8.3066  if test -z "$CC"; then
  8.3067    ac_ct_CC=$CC
  8.3068 -  for ac_prog in cl
  8.3069 +  for ac_prog in cl.exe
  8.3070  do
  8.3071    # Extract the first word of "$ac_prog", so it can be a program name with args.
  8.3072  set dummy $ac_prog; ac_word=$2
  8.3073 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.3074 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.3075 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.3076 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.3077  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  8.3078    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3079  else
  8.3080 @@ -2602,29 +3114,45 @@
  8.3081    IFS=$as_save_IFS
  8.3082    test -z "$as_dir" && as_dir=.
  8.3083    for ac_exec_ext in '' $ac_executable_extensions; do
  8.3084 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.3085 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.3086      ac_cv_prog_ac_ct_CC="$ac_prog"
  8.3087      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.3088      break 2
  8.3089    fi
  8.3090  done
  8.3091  done
  8.3092 +IFS=$as_save_IFS
  8.3093  
  8.3094  fi
  8.3095  fi
  8.3096  ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8.3097  if test -n "$ac_ct_CC"; then
  8.3098 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  8.3099 -echo "${ECHO_T}$ac_ct_CC" >&6
  8.3100 -else
  8.3101 -  echo "$as_me:$LINENO: result: no" >&5
  8.3102 -echo "${ECHO_T}no" >&6
  8.3103 -fi
  8.3104 +  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  8.3105 +echo "${ECHO_T}$ac_ct_CC" >&6; }
  8.3106 +else
  8.3107 +  { echo "$as_me:$LINENO: result: no" >&5
  8.3108 +echo "${ECHO_T}no" >&6; }
  8.3109 +fi
  8.3110 +
  8.3111  
  8.3112    test -n "$ac_ct_CC" && break
  8.3113  done
  8.3114  
  8.3115 -  CC=$ac_ct_CC
  8.3116 +  if test "x$ac_ct_CC" = x; then
  8.3117 +    CC=""
  8.3118 +  else
  8.3119 +    case $cross_compiling:$ac_tool_warned in
  8.3120 +yes:)
  8.3121 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8.3122 +whose name does not start with the host triplet.  If you think this
  8.3123 +configuration is useful to you, please write to autoconf@gnu.org." >&5
  8.3124 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8.3125 +whose name does not start with the host triplet.  If you think this
  8.3126 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8.3127 +ac_tool_warned=yes ;;
  8.3128 +esac
  8.3129 +    CC=$ac_ct_CC
  8.3130 +  fi
  8.3131  fi
  8.3132  
  8.3133  fi
  8.3134 @@ -2637,21 +3165,35 @@
  8.3135     { (exit 1); exit 1; }; }
  8.3136  
  8.3137  # Provide some information about the compiler.
  8.3138 -echo "$as_me:$LINENO:" \
  8.3139 -     "checking for C compiler version" >&5
  8.3140 +echo "$as_me:$LINENO: checking for C compiler version" >&5
  8.3141  ac_compiler=`set X $ac_compile; echo $2`
  8.3142 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  8.3143 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
  8.3144 +{ (ac_try="$ac_compiler --version >&5"
  8.3145 +case "(($ac_try" in
  8.3146 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3147 +  *) ac_try_echo=$ac_try;;
  8.3148 +esac
  8.3149 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3150 +  (eval "$ac_compiler --version >&5") 2>&5
  8.3151    ac_status=$?
  8.3152    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3153    (exit $ac_status); }
  8.3154 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  8.3155 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
  8.3156 +{ (ac_try="$ac_compiler -v >&5"
  8.3157 +case "(($ac_try" in
  8.3158 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3159 +  *) ac_try_echo=$ac_try;;
  8.3160 +esac
  8.3161 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3162 +  (eval "$ac_compiler -v >&5") 2>&5
  8.3163    ac_status=$?
  8.3164    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3165    (exit $ac_status); }
  8.3166 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  8.3167 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
  8.3168 +{ (ac_try="$ac_compiler -V >&5"
  8.3169 +case "(($ac_try" in
  8.3170 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3171 +  *) ac_try_echo=$ac_try;;
  8.3172 +esac
  8.3173 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3174 +  (eval "$ac_compiler -V >&5") 2>&5
  8.3175    ac_status=$?
  8.3176    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3177    (exit $ac_status); }
  8.3178 @@ -2676,47 +3218,77 @@
  8.3179  # Try to create an executable without -o first, disregard a.out.
  8.3180  # It will help us diagnose broken compilers, and finding out an intuition
  8.3181  # of exeext.
  8.3182 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  8.3183 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  8.3184 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  8.3185 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  8.3186  ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  8.3187 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  8.3188 -  (eval $ac_link_default) 2>&5
  8.3189 +#
  8.3190 +# List of possible output files, starting from the most likely.
  8.3191 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  8.3192 +# only as a last resort.  b.out is created by i960 compilers.
  8.3193 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  8.3194 +#
  8.3195 +# The IRIX 6 linker writes into existing files which may not be
  8.3196 +# executable, retaining their permissions.  Remove them first so a
  8.3197 +# subsequent execution test works.
  8.3198 +ac_rmfiles=
  8.3199 +for ac_file in $ac_files
  8.3200 +do
  8.3201 +  case $ac_file in
  8.3202 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  8.3203 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  8.3204 +  esac
  8.3205 +done
  8.3206 +rm -f $ac_rmfiles
  8.3207 +
  8.3208 +if { (ac_try="$ac_link_default"
  8.3209 +case "(($ac_try" in
  8.3210 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3211 +  *) ac_try_echo=$ac_try;;
  8.3212 +esac
  8.3213 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3214 +  (eval "$ac_link_default") 2>&5
  8.3215    ac_status=$?
  8.3216    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3217    (exit $ac_status); }; then
  8.3218 -  # Find the output, starting from the most likely.  This scheme is
  8.3219 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  8.3220 -# resort.
  8.3221 -
  8.3222 -# Be careful to initialize this variable, since it used to be cached.
  8.3223 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  8.3224 -ac_cv_exeext=
  8.3225 -# b.out is created by i960 compilers.
  8.3226 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  8.3227 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  8.3228 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  8.3229 +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
  8.3230 +# so that the user can short-circuit this test for compilers unknown to
  8.3231 +# Autoconf.
  8.3232 +for ac_file in $ac_files ''
  8.3233  do
  8.3234    test -f "$ac_file" || continue
  8.3235    case $ac_file in
  8.3236 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  8.3237 -	;;
  8.3238 -    conftest.$ac_ext )
  8.3239 -	# This is the source file.
  8.3240 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  8.3241  	;;
  8.3242      [ab].out )
  8.3243  	# We found the default executable, but exeext='' is most
  8.3244  	# certainly right.
  8.3245  	break;;
  8.3246      *.* )
  8.3247 -	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  8.3248 -	# FIXME: I believe we export ac_cv_exeext for Libtool,
  8.3249 -	# but it would be cool to find out if it's true.  Does anybody
  8.3250 -	# maintain Libtool? --akim.
  8.3251 -	export ac_cv_exeext
  8.3252 +        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  8.3253 +	then :; else
  8.3254 +	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  8.3255 +	fi
  8.3256 +	# We set ac_cv_exeext here because the later test for it is not
  8.3257 +	# safe: cross compilers may not add the suffix if given an `-o'
  8.3258 +	# argument, so we may need to know it at that point already.
  8.3259 +	# Even if this section looks crufty: it has the advantage of
  8.3260 +	# actually working.
  8.3261  	break;;
  8.3262      * )
  8.3263  	break;;
  8.3264    esac
  8.3265  done
  8.3266 -else
  8.3267 +test "$ac_cv_exeext" = no && ac_cv_exeext=
  8.3268 +
  8.3269 +else
  8.3270 +  ac_file=''
  8.3271 +fi
  8.3272 +
  8.3273 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
  8.3274 +echo "${ECHO_T}$ac_file" >&6; }
  8.3275 +if test -z "$ac_file"; then
  8.3276    echo "$as_me: failed program was:" >&5
  8.3277  sed 's/^/| /' conftest.$ac_ext >&5
  8.3278  
  8.3279 @@ -2728,19 +3300,21 @@
  8.3280  fi
  8.3281  
  8.3282  ac_exeext=$ac_cv_exeext
  8.3283 -echo "$as_me:$LINENO: result: $ac_file" >&5
  8.3284 -echo "${ECHO_T}$ac_file" >&6
  8.3285 -
  8.3286 -# Check the compiler produces executables we can run.  If not, either
  8.3287 +
  8.3288 +# Check that the compiler produces executables we can run.  If not, either
  8.3289  # the compiler is broken, or we cross compile.
  8.3290 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  8.3291 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  8.3292 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  8.3293 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  8.3294  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  8.3295  # If not cross compiling, check that we can run a simple program.
  8.3296  if test "$cross_compiling" != yes; then
  8.3297    if { ac_try='./$ac_file'
  8.3298 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3299 -  (eval $ac_try) 2>&5
  8.3300 +  { (case "(($ac_try" in
  8.3301 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3302 +  *) ac_try_echo=$ac_try;;
  8.3303 +esac
  8.3304 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3305 +  (eval "$ac_try") 2>&5
  8.3306    ac_status=$?
  8.3307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3308    (exit $ac_status); }; }; then
  8.3309 @@ -2759,22 +3333,27 @@
  8.3310      fi
  8.3311    fi
  8.3312  fi
  8.3313 -echo "$as_me:$LINENO: result: yes" >&5
  8.3314 -echo "${ECHO_T}yes" >&6
  8.3315 +{ echo "$as_me:$LINENO: result: yes" >&5
  8.3316 +echo "${ECHO_T}yes" >&6; }
  8.3317  
  8.3318  rm -f a.out a.exe conftest$ac_cv_exeext b.out
  8.3319  ac_clean_files=$ac_clean_files_save
  8.3320 -# Check the compiler produces executables we can run.  If not, either
  8.3321 +# Check that the compiler produces executables we can run.  If not, either
  8.3322  # the compiler is broken, or we cross compile.
  8.3323 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  8.3324 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  8.3325 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  8.3326 -echo "${ECHO_T}$cross_compiling" >&6
  8.3327 -
  8.3328 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  8.3329 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  8.3330 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.3331 -  (eval $ac_link) 2>&5
  8.3332 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  8.3333 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  8.3334 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  8.3335 +echo "${ECHO_T}$cross_compiling" >&6; }
  8.3336 +
  8.3337 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  8.3338 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  8.3339 +if { (ac_try="$ac_link"
  8.3340 +case "(($ac_try" in
  8.3341 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3342 +  *) ac_try_echo=$ac_try;;
  8.3343 +esac
  8.3344 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3345 +  (eval "$ac_link") 2>&5
  8.3346    ac_status=$?
  8.3347    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3348    (exit $ac_status); }; then
  8.3349 @@ -2785,9 +3364,8 @@
  8.3350  for ac_file in conftest.exe conftest conftest.*; do
  8.3351    test -f "$ac_file" || continue
  8.3352    case $ac_file in
  8.3353 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  8.3354 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  8.3355      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  8.3356 -	  export ac_cv_exeext
  8.3357  	  break;;
  8.3358      * ) break;;
  8.3359    esac
  8.3360 @@ -2801,14 +3379,14 @@
  8.3361  fi
  8.3362  
  8.3363  rm -f conftest$ac_cv_exeext
  8.3364 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  8.3365 -echo "${ECHO_T}$ac_cv_exeext" >&6
  8.3366 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  8.3367 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
  8.3368  
  8.3369  rm -f conftest.$ac_ext
  8.3370  EXEEXT=$ac_cv_exeext
  8.3371  ac_exeext=$EXEEXT
  8.3372 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  8.3373 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  8.3374 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  8.3375 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  8.3376  if test "${ac_cv_objext+set}" = set; then
  8.3377    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3378  else
  8.3379 @@ -2828,14 +3406,20 @@
  8.3380  }
  8.3381  _ACEOF
  8.3382  rm -f conftest.o conftest.obj
  8.3383 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.3384 -  (eval $ac_compile) 2>&5
  8.3385 +if { (ac_try="$ac_compile"
  8.3386 +case "(($ac_try" in
  8.3387 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3388 +  *) ac_try_echo=$ac_try;;
  8.3389 +esac
  8.3390 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3391 +  (eval "$ac_compile") 2>&5
  8.3392    ac_status=$?
  8.3393    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3394    (exit $ac_status); }; then
  8.3395 -  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  8.3396 +  for ac_file in conftest.o conftest.obj conftest.*; do
  8.3397 +  test -f "$ac_file" || continue;
  8.3398    case $ac_file in
  8.3399 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  8.3400 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  8.3401      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  8.3402         break;;
  8.3403    esac
  8.3404 @@ -2853,12 +3437,12 @@
  8.3405  
  8.3406  rm -f conftest.$ac_cv_objext conftest.$ac_ext
  8.3407  fi
  8.3408 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  8.3409 -echo "${ECHO_T}$ac_cv_objext" >&6
  8.3410 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  8.3411 +echo "${ECHO_T}$ac_cv_objext" >&6; }
  8.3412  OBJEXT=$ac_cv_objext
  8.3413  ac_objext=$OBJEXT
  8.3414 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  8.3415 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  8.3416 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  8.3417 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  8.3418  if test "${ac_cv_c_compiler_gnu+set}" = set; then
  8.3419    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3420  else
  8.3421 @@ -2881,50 +3465,49 @@
  8.3422  }
  8.3423  _ACEOF
  8.3424  rm -f conftest.$ac_objext
  8.3425 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.3426 -  (eval $ac_compile) 2>conftest.er1
  8.3427 +if { (ac_try="$ac_compile"
  8.3428 +case "(($ac_try" in
  8.3429 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3430 +  *) ac_try_echo=$ac_try;;
  8.3431 +esac
  8.3432 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3433 +  (eval "$ac_compile") 2>conftest.er1
  8.3434    ac_status=$?
  8.3435    grep -v '^ *+' conftest.er1 >conftest.err
  8.3436    rm -f conftest.er1
  8.3437    cat conftest.err >&5
  8.3438    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3439 -  (exit $ac_status); } &&
  8.3440 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.3441 -			 || test ! -s conftest.err'
  8.3442 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3443 -  (eval $ac_try) 2>&5
  8.3444 -  ac_status=$?
  8.3445 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3446 -  (exit $ac_status); }; } &&
  8.3447 -	 { ac_try='test -s conftest.$ac_objext'
  8.3448 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3449 -  (eval $ac_try) 2>&5
  8.3450 -  ac_status=$?
  8.3451 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3452 -  (exit $ac_status); }; }; then
  8.3453 +  (exit $ac_status); } && {
  8.3454 +	 test -z "$ac_c_werror_flag" ||
  8.3455 +	 test ! -s conftest.err
  8.3456 +       } && test -s conftest.$ac_objext; then
  8.3457    ac_compiler_gnu=yes
  8.3458  else
  8.3459    echo "$as_me: failed program was:" >&5
  8.3460  sed 's/^/| /' conftest.$ac_ext >&5
  8.3461  
  8.3462 -ac_compiler_gnu=no
  8.3463 -fi
  8.3464 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3465 +	ac_compiler_gnu=no
  8.3466 +fi
  8.3467 +
  8.3468 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3469  ac_cv_c_compiler_gnu=$ac_compiler_gnu
  8.3470  
  8.3471  fi
  8.3472 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  8.3473 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  8.3474 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  8.3475 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  8.3476  GCC=`test $ac_compiler_gnu = yes && echo yes`
  8.3477  ac_test_CFLAGS=${CFLAGS+set}
  8.3478  ac_save_CFLAGS=$CFLAGS
  8.3479 -CFLAGS="-g"
  8.3480 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  8.3481 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  8.3482 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  8.3483 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  8.3484  if test "${ac_cv_prog_cc_g+set}" = set; then
  8.3485    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3486  else
  8.3487 -  cat >conftest.$ac_ext <<_ACEOF
  8.3488 +  ac_save_c_werror_flag=$ac_c_werror_flag
  8.3489 +   ac_c_werror_flag=yes
  8.3490 +   ac_cv_prog_cc_g=no
  8.3491 +   CFLAGS="-g"
  8.3492 +   cat >conftest.$ac_ext <<_ACEOF
  8.3493  /* confdefs.h.  */
  8.3494  _ACEOF
  8.3495  cat confdefs.h >>conftest.$ac_ext
  8.3496 @@ -2940,38 +3523,118 @@
  8.3497  }
  8.3498  _ACEOF
  8.3499  rm -f conftest.$ac_objext
  8.3500 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.3501 -  (eval $ac_compile) 2>conftest.er1
  8.3502 +if { (ac_try="$ac_compile"
  8.3503 +case "(($ac_try" in
  8.3504 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3505 +  *) ac_try_echo=$ac_try;;
  8.3506 +esac
  8.3507 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3508 +  (eval "$ac_compile") 2>conftest.er1
  8.3509    ac_status=$?
  8.3510    grep -v '^ *+' conftest.er1 >conftest.err
  8.3511    rm -f conftest.er1
  8.3512    cat conftest.err >&5
  8.3513    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3514 -  (exit $ac_status); } &&
  8.3515 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.3516 -			 || test ! -s conftest.err'
  8.3517 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3518 -  (eval $ac_try) 2>&5
  8.3519 -  ac_status=$?
  8.3520 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3521 -  (exit $ac_status); }; } &&
  8.3522 -	 { ac_try='test -s conftest.$ac_objext'
  8.3523 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3524 -  (eval $ac_try) 2>&5
  8.3525 -  ac_status=$?
  8.3526 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3527 -  (exit $ac_status); }; }; then
  8.3528 +  (exit $ac_status); } && {
  8.3529 +	 test -z "$ac_c_werror_flag" ||
  8.3530 +	 test ! -s conftest.err
  8.3531 +       } && test -s conftest.$ac_objext; then
  8.3532    ac_cv_prog_cc_g=yes
  8.3533  else
  8.3534    echo "$as_me: failed program was:" >&5
  8.3535  sed 's/^/| /' conftest.$ac_ext >&5
  8.3536  
  8.3537 -ac_cv_prog_cc_g=no
  8.3538 -fi
  8.3539 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3540 -fi
  8.3541 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  8.3542 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  8.3543 +	CFLAGS=""
  8.3544 +      cat >conftest.$ac_ext <<_ACEOF
  8.3545 +/* confdefs.h.  */
  8.3546 +_ACEOF
  8.3547 +cat confdefs.h >>conftest.$ac_ext
  8.3548 +cat >>conftest.$ac_ext <<_ACEOF
  8.3549 +/* end confdefs.h.  */
  8.3550 +
  8.3551 +int
  8.3552 +main ()
  8.3553 +{
  8.3554 +
  8.3555 +  ;
  8.3556 +  return 0;
  8.3557 +}
  8.3558 +_ACEOF
  8.3559 +rm -f conftest.$ac_objext
  8.3560 +if { (ac_try="$ac_compile"
  8.3561 +case "(($ac_try" in
  8.3562 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3563 +  *) ac_try_echo=$ac_try;;
  8.3564 +esac
  8.3565 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3566 +  (eval "$ac_compile") 2>conftest.er1
  8.3567 +  ac_status=$?
  8.3568 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.3569 +  rm -f conftest.er1
  8.3570 +  cat conftest.err >&5
  8.3571 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3572 +  (exit $ac_status); } && {
  8.3573 +	 test -z "$ac_c_werror_flag" ||
  8.3574 +	 test ! -s conftest.err
  8.3575 +       } && test -s conftest.$ac_objext; then
  8.3576 +  :
  8.3577 +else
  8.3578 +  echo "$as_me: failed program was:" >&5
  8.3579 +sed 's/^/| /' conftest.$ac_ext >&5
  8.3580 +
  8.3581 +	ac_c_werror_flag=$ac_save_c_werror_flag
  8.3582 +	 CFLAGS="-g"
  8.3583 +	 cat >conftest.$ac_ext <<_ACEOF
  8.3584 +/* confdefs.h.  */
  8.3585 +_ACEOF
  8.3586 +cat confdefs.h >>conftest.$ac_ext
  8.3587 +cat >>conftest.$ac_ext <<_ACEOF
  8.3588 +/* end confdefs.h.  */
  8.3589 +
  8.3590 +int
  8.3591 +main ()
  8.3592 +{
  8.3593 +
  8.3594 +  ;
  8.3595 +  return 0;
  8.3596 +}
  8.3597 +_ACEOF
  8.3598 +rm -f conftest.$ac_objext
  8.3599 +if { (ac_try="$ac_compile"
  8.3600 +case "(($ac_try" in
  8.3601 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3602 +  *) ac_try_echo=$ac_try;;
  8.3603 +esac
  8.3604 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3605 +  (eval "$ac_compile") 2>conftest.er1
  8.3606 +  ac_status=$?
  8.3607 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.3608 +  rm -f conftest.er1
  8.3609 +  cat conftest.err >&5
  8.3610 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3611 +  (exit $ac_status); } && {
  8.3612 +	 test -z "$ac_c_werror_flag" ||
  8.3613 +	 test ! -s conftest.err
  8.3614 +       } && test -s conftest.$ac_objext; then
  8.3615 +  ac_cv_prog_cc_g=yes
  8.3616 +else
  8.3617 +  echo "$as_me: failed program was:" >&5
  8.3618 +sed 's/^/| /' conftest.$ac_ext >&5
  8.3619 +
  8.3620 +
  8.3621 +fi
  8.3622 +
  8.3623 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3624 +fi
  8.3625 +
  8.3626 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3627 +fi
  8.3628 +
  8.3629 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3630 +   ac_c_werror_flag=$ac_save_c_werror_flag
  8.3631 +fi
  8.3632 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  8.3633 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  8.3634  if test "$ac_test_CFLAGS" = set; then
  8.3635    CFLAGS=$ac_save_CFLAGS
  8.3636  elif test $ac_cv_prog_cc_g = yes; then
  8.3637 @@ -2987,12 +3650,12 @@
  8.3638      CFLAGS=
  8.3639    fi
  8.3640  fi
  8.3641 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  8.3642 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  8.3643 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  8.3644 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3645 -else
  8.3646 -  ac_cv_prog_cc_stdc=no
  8.3647 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  8.3648 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  8.3649 +if test "${ac_cv_prog_cc_c89+set}" = set; then
  8.3650 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3651 +else
  8.3652 +  ac_cv_prog_cc_c89=no
  8.3653  ac_save_CC=$CC
  8.3654  cat >conftest.$ac_ext <<_ACEOF
  8.3655  /* confdefs.h.  */
  8.3656 @@ -3026,12 +3689,17 @@
  8.3657  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  8.3658     function prototypes and stuff, but not '\xHH' hex character constants.
  8.3659     These don't provoke an error unfortunately, instead are silently treated
  8.3660 -   as 'x'.  The following induces an error, until -std1 is added to get
  8.3661 +   as 'x'.  The following induces an error, until -std is added to get
  8.3662     proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  8.3663     array size at least.  It's necessary to write '\x00'==0 to get something
  8.3664 -   that's true only with -std1.  */
  8.3665 +   that's true only with -std.  */
  8.3666  int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  8.3667  
  8.3668 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  8.3669 +   inside strings and character constants.  */
  8.3670 +#define FOO(x) 'x'
  8.3671 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  8.3672 +
  8.3673  int test (int i, double x);
  8.3674  struct s1 {int (*f) (int a);};
  8.3675  struct s2 {int (*f) (double a);};
  8.3676 @@ -3046,205 +3714,57 @@
  8.3677    return 0;
  8.3678  }
  8.3679  _ACEOF
  8.3680 -# Don't try gcc -ansi; that turns off useful extensions and
  8.3681 -# breaks some systems' header files.
  8.3682 -# AIX			-qlanglvl=ansi
  8.3683 -# Ultrix and OSF/1	-std1
  8.3684 -# HP-UX 10.20 and later	-Ae
  8.3685 -# HP-UX older versions	-Aa -D_HPUX_SOURCE
  8.3686 -# SVR4			-Xc -D__EXTENSIONS__
  8.3687 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  8.3688 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  8.3689 +	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  8.3690  do
  8.3691    CC="$ac_save_CC $ac_arg"
  8.3692    rm -f conftest.$ac_objext
  8.3693 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.3694 -  (eval $ac_compile) 2>conftest.er1
  8.3695 +if { (ac_try="$ac_compile"
  8.3696 +case "(($ac_try" in
  8.3697 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.3698 +  *) ac_try_echo=$ac_try;;
  8.3699 +esac
  8.3700 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.3701 +  (eval "$ac_compile") 2>conftest.er1
  8.3702    ac_status=$?
  8.3703    grep -v '^ *+' conftest.er1 >conftest.err
  8.3704    rm -f conftest.er1
  8.3705    cat conftest.err >&5
  8.3706    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3707 -  (exit $ac_status); } &&
  8.3708 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.3709 -			 || test ! -s conftest.err'
  8.3710 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3711 -  (eval $ac_try) 2>&5
  8.3712 -  ac_status=$?
  8.3713 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3714 -  (exit $ac_status); }; } &&
  8.3715 -	 { ac_try='test -s conftest.$ac_objext'
  8.3716 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3717 -  (eval $ac_try) 2>&5
  8.3718 -  ac_status=$?
  8.3719 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3720 -  (exit $ac_status); }; }; then
  8.3721 -  ac_cv_prog_cc_stdc=$ac_arg
  8.3722 -break
  8.3723 +  (exit $ac_status); } && {
  8.3724 +	 test -z "$ac_c_werror_flag" ||
  8.3725 +	 test ! -s conftest.err
  8.3726 +       } && test -s conftest.$ac_objext; then
  8.3727 +  ac_cv_prog_cc_c89=$ac_arg
  8.3728  else
  8.3729    echo "$as_me: failed program was:" >&5
  8.3730  sed 's/^/| /' conftest.$ac_ext >&5
  8.3731  
  8.3732 -fi
  8.3733 -rm -f conftest.err conftest.$ac_objext
  8.3734 -done
  8.3735 -rm -f conftest.$ac_ext conftest.$ac_objext
  8.3736 +
  8.3737 +fi
  8.3738 +
  8.3739 +rm -f core conftest.err conftest.$ac_objext
  8.3740 +  test "x$ac_cv_prog_cc_c89" != "xno" && break
  8.3741 +done
  8.3742 +rm -f conftest.$ac_ext
  8.3743  CC=$ac_save_CC
  8.3744  
  8.3745  fi
  8.3746 -
  8.3747 -case "x$ac_cv_prog_cc_stdc" in
  8.3748 -  x|xno)
  8.3749 -    echo "$as_me:$LINENO: result: none needed" >&5
  8.3750 -echo "${ECHO_T}none needed" >&6 ;;
  8.3751 +# AC_CACHE_VAL
  8.3752 +case "x$ac_cv_prog_cc_c89" in
  8.3753 +  x)
  8.3754 +    { echo "$as_me:$LINENO: result: none needed" >&5
  8.3755 +echo "${ECHO_T}none needed" >&6; } ;;
  8.3756 +  xno)
  8.3757 +    { echo "$as_me:$LINENO: result: unsupported" >&5
  8.3758 +echo "${ECHO_T}unsupported" >&6; } ;;
  8.3759    *)
  8.3760 -    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  8.3761 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  8.3762 -    CC="$CC $ac_cv_prog_cc_stdc" ;;
  8.3763 -esac
  8.3764 -
  8.3765 -# Some people use a C++ compiler to compile C.  Since we use `exit',
  8.3766 -# in C++ we need to declare it.  In case someone uses the same compiler
  8.3767 -# for both compiling C and C++ we need to have the C++ compiler decide
  8.3768 -# the declaration of exit, since it's the most demanding environment.
  8.3769 -cat >conftest.$ac_ext <<_ACEOF
  8.3770 -#ifndef __cplusplus
  8.3771 -  choke me
  8.3772 -#endif
  8.3773 -_ACEOF
  8.3774 -rm -f conftest.$ac_objext
  8.3775 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.3776 -  (eval $ac_compile) 2>conftest.er1
  8.3777 -  ac_status=$?
  8.3778 -  grep -v '^ *+' conftest.er1 >conftest.err
  8.3779 -  rm -f conftest.er1
  8.3780 -  cat conftest.err >&5
  8.3781 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3782 -  (exit $ac_status); } &&
  8.3783 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.3784 -			 || test ! -s conftest.err'
  8.3785 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3786 -  (eval $ac_try) 2>&5
  8.3787 -  ac_status=$?
  8.3788 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3789 -  (exit $ac_status); }; } &&
  8.3790 -	 { ac_try='test -s conftest.$ac_objext'
  8.3791 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3792 -  (eval $ac_try) 2>&5
  8.3793 -  ac_status=$?
  8.3794 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3795 -  (exit $ac_status); }; }; then
  8.3796 -  for ac_declaration in \
  8.3797 -   '' \
  8.3798 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
  8.3799 -   'extern "C" void std::exit (int); using std::exit;' \
  8.3800 -   'extern "C" void exit (int) throw ();' \
  8.3801 -   'extern "C" void exit (int);' \
  8.3802 -   'void exit (int);'
  8.3803 -do
  8.3804 -  cat >conftest.$ac_ext <<_ACEOF
  8.3805 -/* confdefs.h.  */
  8.3806 -_ACEOF
  8.3807 -cat confdefs.h >>conftest.$ac_ext
  8.3808 -cat >>conftest.$ac_ext <<_ACEOF
  8.3809 -/* end confdefs.h.  */
  8.3810 -$ac_declaration
  8.3811 -#include <stdlib.h>
  8.3812 -int
  8.3813 -main ()
  8.3814 -{
  8.3815 -exit (42);
  8.3816 -  ;
  8.3817 -  return 0;
  8.3818 -}
  8.3819 -_ACEOF
  8.3820 -rm -f conftest.$ac_objext
  8.3821 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.3822 -  (eval $ac_compile) 2>conftest.er1
  8.3823 -  ac_status=$?
  8.3824 -  grep -v '^ *+' conftest.er1 >conftest.err
  8.3825 -  rm -f conftest.er1
  8.3826 -  cat conftest.err >&5
  8.3827 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3828 -  (exit $ac_status); } &&
  8.3829 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.3830 -			 || test ! -s conftest.err'
  8.3831 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3832 -  (eval $ac_try) 2>&5
  8.3833 -  ac_status=$?
  8.3834 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3835 -  (exit $ac_status); }; } &&
  8.3836 -	 { ac_try='test -s conftest.$ac_objext'
  8.3837 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3838 -  (eval $ac_try) 2>&5
  8.3839 -  ac_status=$?
  8.3840 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3841 -  (exit $ac_status); }; }; then
  8.3842 -  :
  8.3843 -else
  8.3844 -  echo "$as_me: failed program was:" >&5
  8.3845 -sed 's/^/| /' conftest.$ac_ext >&5
  8.3846 -
  8.3847 -continue
  8.3848 -fi
  8.3849 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3850 -  cat >conftest.$ac_ext <<_ACEOF
  8.3851 -/* confdefs.h.  */
  8.3852 -_ACEOF
  8.3853 -cat confdefs.h >>conftest.$ac_ext
  8.3854 -cat >>conftest.$ac_ext <<_ACEOF
  8.3855 -/* end confdefs.h.  */
  8.3856 -$ac_declaration
  8.3857 -int
  8.3858 -main ()
  8.3859 -{
  8.3860 -exit (42);
  8.3861 -  ;
  8.3862 -  return 0;
  8.3863 -}
  8.3864 -_ACEOF
  8.3865 -rm -f conftest.$ac_objext
  8.3866 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.3867 -  (eval $ac_compile) 2>conftest.er1
  8.3868 -  ac_status=$?
  8.3869 -  grep -v '^ *+' conftest.er1 >conftest.err
  8.3870 -  rm -f conftest.er1
  8.3871 -  cat conftest.err >&5
  8.3872 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3873 -  (exit $ac_status); } &&
  8.3874 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.3875 -			 || test ! -s conftest.err'
  8.3876 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3877 -  (eval $ac_try) 2>&5
  8.3878 -  ac_status=$?
  8.3879 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3880 -  (exit $ac_status); }; } &&
  8.3881 -	 { ac_try='test -s conftest.$ac_objext'
  8.3882 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3883 -  (eval $ac_try) 2>&5
  8.3884 -  ac_status=$?
  8.3885 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3886 -  (exit $ac_status); }; }; then
  8.3887 -  break
  8.3888 -else
  8.3889 -  echo "$as_me: failed program was:" >&5
  8.3890 -sed 's/^/| /' conftest.$ac_ext >&5
  8.3891 -
  8.3892 -fi
  8.3893 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3894 -done
  8.3895 -rm -f conftest*
  8.3896 -if test -n "$ac_declaration"; then
  8.3897 -  echo '#ifdef __cplusplus' >>confdefs.h
  8.3898 -  echo $ac_declaration      >>confdefs.h
  8.3899 -  echo '#endif'             >>confdefs.h
  8.3900 -fi
  8.3901 -
  8.3902 -else
  8.3903 -  echo "$as_me: failed program was:" >&5
  8.3904 -sed 's/^/| /' conftest.$ac_ext >&5
  8.3905 -
  8.3906 -fi
  8.3907 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.3908 +    CC="$CC $ac_cv_prog_cc_c89"
  8.3909 +    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  8.3910 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  8.3911 +esac
  8.3912 +
  8.3913 +
  8.3914  ac_ext=c
  8.3915  ac_cpp='$CPP $CPPFLAGS'
  8.3916  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.3917 @@ -3253,8 +3773,8 @@
  8.3918  
  8.3919  depcc="$CC"   am_compiler_list=
  8.3920  
  8.3921 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8.3922 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  8.3923 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8.3924 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  8.3925  if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  8.3926    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3927  else
  8.3928 @@ -3318,6 +3838,7 @@
  8.3929         depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8.3930         $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8.3931           >/dev/null 2>conftest.err &&
  8.3932 +       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8.3933         grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8.3934         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8.3935         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8.3936 @@ -3343,13 +3864,11 @@
  8.3937  fi
  8.3938  
  8.3939  fi
  8.3940 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  8.3941 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  8.3942 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  8.3943 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  8.3944  CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  8.3945  
  8.3946 -
  8.3947 -
  8.3948 -if
  8.3949 + if
  8.3950    test "x$enable_dependency_tracking" != xno \
  8.3951    && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  8.3952    am__fastdepCC_TRUE=
  8.3953 @@ -3360,8 +3879,8 @@
  8.3954  fi
  8.3955  
  8.3956  
  8.3957 -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  8.3958 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  8.3959 +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  8.3960 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  8.3961  if test "${lt_cv_path_SED+set}" = set; then
  8.3962    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3963  else
  8.3964 @@ -3374,12 +3893,13 @@
  8.3965    test -z "$as_dir" && as_dir=.
  8.3966    for lt_ac_prog in sed gsed; do
  8.3967      for ac_exec_ext in '' $ac_executable_extensions; do
  8.3968 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  8.3969 +      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  8.3970          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  8.3971        fi
  8.3972      done
  8.3973    done
  8.3974  done
  8.3975 +IFS=$as_save_IFS
  8.3976  lt_ac_max=0
  8.3977  lt_ac_count=0
  8.3978  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8.3979 @@ -3414,37 +3934,185 @@
  8.3980  fi
  8.3981  
  8.3982  SED=$lt_cv_path_SED
  8.3983 -echo "$as_me:$LINENO: result: $SED" >&5
  8.3984 -echo "${ECHO_T}$SED" >&6
  8.3985 -
  8.3986 -echo "$as_me:$LINENO: checking for egrep" >&5
  8.3987 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  8.3988 -if test "${ac_cv_prog_egrep+set}" = set; then
  8.3989 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3990 -else
  8.3991 -  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  8.3992 -    then ac_cv_prog_egrep='grep -E'
  8.3993 -    else ac_cv_prog_egrep='egrep'
  8.3994 -    fi
  8.3995 -fi
  8.3996 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  8.3997 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  8.3998 - EGREP=$ac_cv_prog_egrep
  8.3999 -
  8.4000 -
  8.4001 -
  8.4002 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  8.4003 +
  8.4004 +{ echo "$as_me:$LINENO: result: $SED" >&5
  8.4005 +echo "${ECHO_T}$SED" >&6; }
  8.4006 +
  8.4007 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  8.4008 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  8.4009 +if test "${ac_cv_path_GREP+set}" = set; then
  8.4010 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4011 +else
  8.4012 +  # Extract the first word of "grep ggrep" to use in msg output
  8.4013 +if test -z "$GREP"; then
  8.4014 +set dummy grep ggrep; ac_prog_name=$2
  8.4015 +if test "${ac_cv_path_GREP+set}" = set; then
  8.4016 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4017 +else
  8.4018 +  ac_path_GREP_found=false
  8.4019 +# Loop through the user's path and test for each of PROGNAME-LIST
  8.4020 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.4021 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8.4022 +do
  8.4023 +  IFS=$as_save_IFS
  8.4024 +  test -z "$as_dir" && as_dir=.
  8.4025 +  for ac_prog in grep ggrep; do
  8.4026 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.4027 +    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  8.4028 +    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  8.4029 +    # Check for GNU ac_path_GREP and select it if it is found.
  8.4030 +  # Check for GNU $ac_path_GREP
  8.4031 +case `"$ac_path_GREP" --version 2>&1` in
  8.4032 +*GNU*)
  8.4033 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  8.4034 +*)
  8.4035 +  ac_count=0
  8.4036 +  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  8.4037 +  while :
  8.4038 +  do
  8.4039 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  8.4040 +    mv "conftest.tmp" "conftest.in"
  8.4041 +    cp "conftest.in" "conftest.nl"
  8.4042 +    echo 'GREP' >> "conftest.nl"
  8.4043 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8.4044 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8.4045 +    ac_count=`expr $ac_count + 1`
  8.4046 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
  8.4047 +      # Best one so far, save it but keep looking for a better one
  8.4048 +      ac_cv_path_GREP="$ac_path_GREP"
  8.4049 +      ac_path_GREP_max=$ac_count
  8.4050 +    fi
  8.4051 +    # 10*(2^10) chars as input seems more than enough
  8.4052 +    test $ac_count -gt 10 && break
  8.4053 +  done
  8.4054 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8.4055 +esac
  8.4056 +
  8.4057 +
  8.4058 +    $ac_path_GREP_found && break 3
  8.4059 +  done
  8.4060 +done
  8.4061 +
  8.4062 +done
  8.4063 +IFS=$as_save_IFS
  8.4064 +
  8.4065 +
  8.4066 +fi
  8.4067 +
  8.4068 +GREP="$ac_cv_path_GREP"
  8.4069 +if test -z "$GREP"; then
  8.4070 +  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  8.4071 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  8.4072 +   { (exit 1); exit 1; }; }
  8.4073 +fi
  8.4074 +
  8.4075 +else
  8.4076 +  ac_cv_path_GREP=$GREP
  8.4077 +fi
  8.4078 +
  8.4079 +
  8.4080 +fi
  8.4081 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  8.4082 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  8.4083 + GREP="$ac_cv_path_GREP"
  8.4084 +
  8.4085 +
  8.4086 +{ echo "$as_me:$LINENO: checking for egrep" >&5
  8.4087 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  8.4088 +if test "${ac_cv_path_EGREP+set}" = set; then
  8.4089 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4090 +else
  8.4091 +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  8.4092 +   then ac_cv_path_EGREP="$GREP -E"
  8.4093 +   else
  8.4094 +     # Extract the first word of "egrep" to use in msg output
  8.4095 +if test -z "$EGREP"; then
  8.4096 +set dummy egrep; ac_prog_name=$2
  8.4097 +if test "${ac_cv_path_EGREP+set}" = set; then
  8.4098 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4099 +else
  8.4100 +  ac_path_EGREP_found=false
  8.4101 +# Loop through the user's path and test for each of PROGNAME-LIST
  8.4102 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.4103 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8.4104 +do
  8.4105 +  IFS=$as_save_IFS
  8.4106 +  test -z "$as_dir" && as_dir=.
  8.4107 +  for ac_prog in egrep; do
  8.4108 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.4109 +    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  8.4110 +    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  8.4111 +    # Check for GNU ac_path_EGREP and select it if it is found.
  8.4112 +  # Check for GNU $ac_path_EGREP
  8.4113 +case `"$ac_path_EGREP" --version 2>&1` in
  8.4114 +*GNU*)
  8.4115 +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  8.4116 +*)
  8.4117 +  ac_count=0
  8.4118 +  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  8.4119 +  while :
  8.4120 +  do
  8.4121 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  8.4122 +    mv "conftest.tmp" "conftest.in"
  8.4123 +    cp "conftest.in" "conftest.nl"
  8.4124 +    echo 'EGREP' >> "conftest.nl"
  8.4125 +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8.4126 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8.4127 +    ac_count=`expr $ac_count + 1`
  8.4128 +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  8.4129 +      # Best one so far, save it but keep looking for a better one
  8.4130 +      ac_cv_path_EGREP="$ac_path_EGREP"
  8.4131 +      ac_path_EGREP_max=$ac_count
  8.4132 +    fi
  8.4133 +    # 10*(2^10) chars as input seems more than enough
  8.4134 +    test $ac_count -gt 10 && break
  8.4135 +  done
  8.4136 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8.4137 +esac
  8.4138 +
  8.4139 +
  8.4140 +    $ac_path_EGREP_found && break 3
  8.4141 +  done
  8.4142 +done
  8.4143 +
  8.4144 +done
  8.4145 +IFS=$as_save_IFS
  8.4146 +
  8.4147 +
  8.4148 +fi
  8.4149 +
  8.4150 +EGREP="$ac_cv_path_EGREP"
  8.4151 +if test -z "$EGREP"; then
  8.4152 +  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  8.4153 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  8.4154 +   { (exit 1); exit 1; }; }
  8.4155 +fi
  8.4156 +
  8.4157 +else
  8.4158 +  ac_cv_path_EGREP=$EGREP
  8.4159 +fi
  8.4160 +
  8.4161 +
  8.4162 +   fi
  8.4163 +fi
  8.4164 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  8.4165 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  8.4166 + EGREP="$ac_cv_path_EGREP"
  8.4167 +
  8.4168 +
  8.4169 +
  8.4170 +# Check whether --with-gnu-ld was given.
  8.4171  if test "${with_gnu_ld+set}" = set; then
  8.4172 -  withval="$with_gnu_ld"
  8.4173 -  test "$withval" = no || with_gnu_ld=yes
  8.4174 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8.4175  else
  8.4176    with_gnu_ld=no
  8.4177 -fi;
  8.4178 +fi
  8.4179 +
  8.4180  ac_prog=ld
  8.4181  if test "$GCC" = yes; then
  8.4182    # Check if gcc -print-prog-name=ld gives a path.
  8.4183 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8.4184 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8.4185 +  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8.4186 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  8.4187    case $host in
  8.4188    *-*-mingw*)
  8.4189      # gcc leaves a trailing carriage return which upsets mingw
  8.4190 @@ -3473,11 +4141,11 @@
  8.4191      ;;
  8.4192    esac
  8.4193  elif test "$with_gnu_ld" = yes; then
  8.4194 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
  8.4195 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8.4196 -else
  8.4197 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8.4198 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8.4199 +  { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8.4200 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8.4201 +else
  8.4202 +  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8.4203 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8.4204  fi
  8.4205  if test "${lt_cv_path_LD+set}" = set; then
  8.4206    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4207 @@ -3490,7 +4158,7 @@
  8.4208      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8.4209        lt_cv_path_LD="$ac_dir/$ac_prog"
  8.4210        # Check to see if the program is GNU ld.  I'd rather use --version,
  8.4211 -      # but apparently some GNU ld's only accept -v.
  8.4212 +      # but apparently some variants of GNU ld only accept -v.
  8.4213        # Break only if it was the GNU/non-GNU ld that we prefer.
  8.4214        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8.4215        *GNU* | *'with BFD'*)
  8.4216 @@ -3510,21 +4178,21 @@
  8.4217  
  8.4218  LD="$lt_cv_path_LD"
  8.4219  if test -n "$LD"; then
  8.4220 -  echo "$as_me:$LINENO: result: $LD" >&5
  8.4221 -echo "${ECHO_T}$LD" >&6
  8.4222 -else
  8.4223 -  echo "$as_me:$LINENO: result: no" >&5
  8.4224 -echo "${ECHO_T}no" >&6
  8.4225 +  { echo "$as_me:$LINENO: result: $LD" >&5
  8.4226 +echo "${ECHO_T}$LD" >&6; }
  8.4227 +else
  8.4228 +  { echo "$as_me:$LINENO: result: no" >&5
  8.4229 +echo "${ECHO_T}no" >&6; }
  8.4230  fi
  8.4231  test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8.4232  echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8.4233     { (exit 1); exit 1; }; }
  8.4234 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8.4235 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8.4236 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8.4237 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8.4238  if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8.4239    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4240  else
  8.4241 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8.4242 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
  8.4243  case `$LD -v 2>&1 </dev/null` in
  8.4244  *GNU* | *'with BFD'*)
  8.4245    lt_cv_prog_gnu_ld=yes
  8.4246 @@ -3534,20 +4202,20 @@
  8.4247    ;;
  8.4248  esac
  8.4249  fi
  8.4250 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8.4251 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8.4252 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8.4253 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  8.4254  with_gnu_ld=$lt_cv_prog_gnu_ld
  8.4255  
  8.4256  
  8.4257 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  8.4258 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  8.4259 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  8.4260 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  8.4261  if test "${lt_cv_ld_reload_flag+set}" = set; then
  8.4262    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4263  else
  8.4264    lt_cv_ld_reload_flag='-r'
  8.4265  fi
  8.4266 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  8.4267 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  8.4268 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  8.4269 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  8.4270  reload_flag=$lt_cv_ld_reload_flag
  8.4271  case $reload_flag in
  8.4272  "" | " "*) ;;
  8.4273 @@ -3557,15 +4225,15 @@
  8.4274  case $host_os in
  8.4275    darwin*)
  8.4276      if test "$GCC" = yes; then
  8.4277 -      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  8.4278 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  8.4279      else
  8.4280        reload_cmds='$LD$reload_flag -o $output$reload_objs'
  8.4281      fi
  8.4282      ;;
  8.4283  esac
  8.4284  
  8.4285 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  8.4286 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  8.4287 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  8.4288 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  8.4289  if test "${lt_cv_path_NM+set}" = set; then
  8.4290    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4291  else
  8.4292 @@ -3573,45 +4241,52 @@
  8.4293    # Let the user override the test.
  8.4294    lt_cv_path_NM="$NM"
  8.4295  else
  8.4296 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8.4297 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  8.4298 +  lt_nm_to_check="${ac_tool_prefix}nm"
  8.4299 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  8.4300 +    lt_nm_to_check="$lt_nm_to_check nm"
  8.4301 +  fi
  8.4302 +  for lt_tmp_nm in $lt_nm_to_check; do
  8.4303 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8.4304 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  8.4305 +      IFS="$lt_save_ifs"
  8.4306 +      test -z "$ac_dir" && ac_dir=.
  8.4307 +      tmp_nm="$ac_dir/$lt_tmp_nm"
  8.4308 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  8.4309 +	# Check to see if the nm accepts a BSD-compat flag.
  8.4310 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  8.4311 +	#   nm: unknown option "B" ignored
  8.4312 +	# Tru64's nm complains that /dev/null is an invalid object file
  8.4313 +	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  8.4314 +	*/dev/null* | *'Invalid file or object type'*)
  8.4315 +	  lt_cv_path_NM="$tmp_nm -B"
  8.4316 +	  break
  8.4317 +	  ;;
  8.4318 +	*)
  8.4319 +	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  8.4320 +	  */dev/null*)
  8.4321 +	    lt_cv_path_NM="$tmp_nm -p"
  8.4322 +	    break
  8.4323 +	    ;;
  8.4324 +	  *)
  8.4325 +	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  8.4326 +	    continue # so that we can try to find one that supports BSD flags
  8.4327 +	    ;;
  8.4328 +	  esac
  8.4329 +	  ;;
  8.4330 +	esac
  8.4331 +      fi
  8.4332 +    done
  8.4333      IFS="$lt_save_ifs"
  8.4334 -    test -z "$ac_dir" && ac_dir=.
  8.4335 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  8.4336 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  8.4337 -      # Check to see if the nm accepts a BSD-compat flag.
  8.4338 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  8.4339 -      #   nm: unknown option "B" ignored
  8.4340 -      # Tru64's nm complains that /dev/null is an invalid object file
  8.4341 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  8.4342 -      */dev/null* | *'Invalid file or object type'*)
  8.4343 -	lt_cv_path_NM="$tmp_nm -B"
  8.4344 -	break
  8.4345 -        ;;
  8.4346 -      *)
  8.4347 -	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  8.4348 -	*/dev/null*)
  8.4349 -	  lt_cv_path_NM="$tmp_nm -p"
  8.4350 -	  break
  8.4351 -	  ;;
  8.4352 -	*)
  8.4353 -	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  8.4354 -	  continue # so that we can try to find one that supports BSD flags
  8.4355 -	  ;;
  8.4356 -	esac
  8.4357 -      esac
  8.4358 -    fi
  8.4359    done
  8.4360 -  IFS="$lt_save_ifs"
  8.4361    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  8.4362  fi
  8.4363  fi
  8.4364 -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  8.4365 -echo "${ECHO_T}$lt_cv_path_NM" >&6
  8.4366 +{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  8.4367 +echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  8.4368  NM="$lt_cv_path_NM"
  8.4369  
  8.4370 -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  8.4371 -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  8.4372 +{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  8.4373 +echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  8.4374  if test "${lt_cv_deplibs_check_method+set}" = set; then
  8.4375    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4376  else
  8.4377 @@ -3630,7 +4305,7 @@
  8.4378  # whether `pass_all' will *always* work, you probably want this one.
  8.4379  
  8.4380  case $host_os in
  8.4381 -aix4* | aix5*)
  8.4382 +aix[4-9]*)
  8.4383    lt_cv_deplibs_check_method=pass_all
  8.4384    ;;
  8.4385  
  8.4386 @@ -3652,16 +4327,22 @@
  8.4387  
  8.4388  mingw* | pw32*)
  8.4389    # Base MSYS/MinGW do not provide the 'file' command needed by
  8.4390 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  8.4391 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  8.4392 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
  8.4393 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  8.4394 +  # unless we find 'file', for example because we are cross-compiling.
  8.4395 +  if ( file / ) >/dev/null 2>&1; then
  8.4396 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8.4397 +    lt_cv_file_magic_cmd='func_win32_libid'
  8.4398 +  else
  8.4399 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  8.4400 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
  8.4401 +  fi
  8.4402    ;;
  8.4403  
  8.4404  darwin* | rhapsody*)
  8.4405    lt_cv_deplibs_check_method=pass_all
  8.4406    ;;
  8.4407  
  8.4408 -freebsd* | kfreebsd*-gnu | dragonfly*)
  8.4409 +freebsd* | dragonfly*)
  8.4410    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  8.4411      case $host_cpu in
  8.4412      i*86 )
  8.4413 @@ -3683,7 +4364,7 @@
  8.4414  
  8.4415  hpux10.20* | hpux11*)
  8.4416    lt_cv_file_magic_cmd=/usr/bin/file
  8.4417 -  case "$host_cpu" in
  8.4418 +  case $host_cpu in
  8.4419    ia64*)
  8.4420      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  8.4421      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  8.4422 @@ -3699,6 +4380,11 @@
  8.4423    esac
  8.4424    ;;
  8.4425  
  8.4426 +interix[3-9]*)
  8.4427 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  8.4428 +  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  8.4429 +  ;;
  8.4430 +
  8.4431  irix5* | irix6* | nonstopux*)
  8.4432    case $LD in
  8.4433    *-32|*"-32 ") libmagic=32-bit;;
  8.4434 @@ -3710,11 +4396,11 @@
  8.4435    ;;
  8.4436  
  8.4437  # This must be Linux ELF.
  8.4438 -linux*)
  8.4439 +linux* | k*bsd*-gnu)
  8.4440    lt_cv_deplibs_check_method=pass_all
  8.4441    ;;
  8.4442  
  8.4443 -netbsd*)
  8.4444 +netbsd* | netbsdelf*-gnu)
  8.4445    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  8.4446      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8.4447    else
  8.4448 @@ -3744,7 +4430,7 @@
  8.4449    lt_cv_deplibs_check_method=pass_all
  8.4450    ;;
  8.4451  
  8.4452 -sco3.2v5*)
  8.4453 +rdos*)
  8.4454    lt_cv_deplibs_check_method=pass_all
  8.4455    ;;
  8.4456  
  8.4457 @@ -3752,7 +4438,7 @@
  8.4458    lt_cv_deplibs_check_method=pass_all
  8.4459    ;;
  8.4460  
  8.4461 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8.4462 +sysv4 | sysv4.3*)
  8.4463    case $host_vendor in
  8.4464    motorola)
  8.4465      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]'
  8.4466 @@ -3773,17 +4459,20 @@
  8.4467    siemens)
  8.4468      lt_cv_deplibs_check_method=pass_all
  8.4469      ;;
  8.4470 -  esac
  8.4471 -  ;;
  8.4472 -
  8.4473 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  8.4474 +  pc)
  8.4475 +    lt_cv_deplibs_check_method=pass_all
  8.4476 +    ;;
  8.4477 +  esac
  8.4478 +  ;;
  8.4479 +
  8.4480 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8.4481    lt_cv_deplibs_check_method=pass_all
  8.4482    ;;
  8.4483  esac
  8.4484  
  8.4485  fi
  8.4486 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  8.4487 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  8.4488 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  8.4489 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  8.4490  file_magic_cmd=$lt_cv_file_magic_cmd
  8.4491  deplibs_check_method=$lt_cv_deplibs_check_method
  8.4492  test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8.4493 @@ -3794,15 +4483,18 @@
  8.4494  # If no C compiler was specified, use CC.
  8.4495  LTCC=${LTCC-"$CC"}
  8.4496  
  8.4497 +# If no C compiler flags were specified, use CFLAGS.
  8.4498 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8.4499 +
  8.4500  # Allow CC to be a program name with arguments.
  8.4501  compiler=$CC
  8.4502  
  8.4503  
  8.4504 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  8.4505 +# Check whether --enable-libtool-lock was given.
  8.4506  if test "${enable_libtool_lock+set}" = set; then
  8.4507 -  enableval="$enable_libtool_lock"
  8.4508 -
  8.4509 -fi;
  8.4510 +  enableval=$enable_libtool_lock;
  8.4511 +fi
  8.4512 +
  8.4513  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8.4514  
  8.4515  # Some flags need to be propagated to the compiler or linker for good
  8.4516 @@ -3829,7 +4521,7 @@
  8.4517    ;;
  8.4518  *-*-irix6*)
  8.4519    # Find out which ABI we are using.
  8.4520 -  echo '#line 3832 "configure"' > conftest.$ac_ext
  8.4521 +  echo '#line 4524 "configure"' > conftest.$ac_ext
  8.4522    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.4523    (eval $ac_compile) 2>&5
  8.4524    ac_status=$?
  8.4525 @@ -3864,7 +4556,8 @@
  8.4526    rm -rf conftest*
  8.4527    ;;
  8.4528  
  8.4529 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  8.4530 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  8.4531 +s390*-*linux*|sparc*-*linux*)
  8.4532    # Find out which ABI we are using.
  8.4533    echo 'int i;' > conftest.$ac_ext
  8.4534    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.4535 @@ -3872,9 +4565,12 @@
  8.4536    ac_status=$?
  8.4537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4538    (exit $ac_status); }; then
  8.4539 -    case "`/usr/bin/file conftest.o`" in
  8.4540 +    case `/usr/bin/file conftest.o` in
  8.4541      *32-bit*)
  8.4542        case $host in
  8.4543 +        x86_64-*kfreebsd*-gnu)
  8.4544 +          LD="${LD-ld} -m elf_i386_fbsd"
  8.4545 +          ;;
  8.4546          x86_64-*linux*)
  8.4547            LD="${LD-ld} -m elf_i386"
  8.4548            ;;
  8.4549 @@ -3891,6 +4587,9 @@
  8.4550        ;;
  8.4551      *64-bit*)
  8.4552        case $host in
  8.4553 +        x86_64-*kfreebsd*-gnu)
  8.4554 +          LD="${LD-ld} -m elf_x86_64_fbsd"
  8.4555 +          ;;
  8.4556          x86_64-*linux*)
  8.4557            LD="${LD-ld} -m elf_x86_64"
  8.4558            ;;
  8.4559 @@ -3914,8 +4613,8 @@
  8.4560    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8.4561    SAVE_CFLAGS="$CFLAGS"
  8.4562    CFLAGS="$CFLAGS -belf"
  8.4563 -  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  8.4564 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  8.4565 +  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  8.4566 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  8.4567  if test "${lt_cv_cc_needs_belf+set}" = set; then
  8.4568    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4569  else
  8.4570 @@ -3941,35 +4640,32 @@
  8.4571  }
  8.4572  _ACEOF
  8.4573  rm -f conftest.$ac_objext conftest$ac_exeext
  8.4574 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.4575 -  (eval $ac_link) 2>conftest.er1
  8.4576 +if { (ac_try="$ac_link"
  8.4577 +case "(($ac_try" in
  8.4578 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.4579 +  *) ac_try_echo=$ac_try;;
  8.4580 +esac
  8.4581 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.4582 +  (eval "$ac_link") 2>conftest.er1
  8.4583    ac_status=$?
  8.4584    grep -v '^ *+' conftest.er1 >conftest.err
  8.4585    rm -f conftest.er1
  8.4586    cat conftest.err >&5
  8.4587    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4588 -  (exit $ac_status); } &&
  8.4589 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.4590 -			 || test ! -s conftest.err'
  8.4591 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.4592 -  (eval $ac_try) 2>&5
  8.4593 -  ac_status=$?
  8.4594 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4595 -  (exit $ac_status); }; } &&
  8.4596 -	 { ac_try='test -s conftest$ac_exeext'
  8.4597 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.4598 -  (eval $ac_try) 2>&5
  8.4599 -  ac_status=$?
  8.4600 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4601 -  (exit $ac_status); }; }; then
  8.4602 +  (exit $ac_status); } && {
  8.4603 +	 test -z "$ac_c_werror_flag" ||
  8.4604 +	 test ! -s conftest.err
  8.4605 +       } && test -s conftest$ac_exeext &&
  8.4606 +       $as_test_x conftest$ac_exeext; then
  8.4607    lt_cv_cc_needs_belf=yes
  8.4608  else
  8.4609    echo "$as_me: failed program was:" >&5
  8.4610  sed 's/^/| /' conftest.$ac_ext >&5
  8.4611  
  8.4612 -lt_cv_cc_needs_belf=no
  8.4613 -fi
  8.4614 -rm -f conftest.err conftest.$ac_objext \
  8.4615 +	lt_cv_cc_needs_belf=no
  8.4616 +fi
  8.4617 +
  8.4618 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8.4619        conftest$ac_exeext conftest.$ac_ext
  8.4620       ac_ext=c
  8.4621  ac_cpp='$CPP $CPPFLAGS'
  8.4622 @@ -3978,13 +4674,37 @@
  8.4623  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8.4624  
  8.4625  fi
  8.4626 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  8.4627 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  8.4628 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  8.4629 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  8.4630    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8.4631      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8.4632      CFLAGS="$SAVE_CFLAGS"
  8.4633    fi
  8.4634    ;;
  8.4635 +sparc*-*solaris*)
  8.4636 +  # Find out which ABI we are using.
  8.4637 +  echo 'int i;' > conftest.$ac_ext
  8.4638 +  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.4639 +  (eval $ac_compile) 2>&5
  8.4640 +  ac_status=$?
  8.4641 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4642 +  (exit $ac_status); }; then
  8.4643 +    case `/usr/bin/file conftest.o` in
  8.4644 +    *64-bit*)
  8.4645 +      case $lt_cv_prog_gnu_ld in
  8.4646 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
  8.4647 +      *)
  8.4648 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8.4649 +	  LD="${LD-ld} -64"
  8.4650 +	fi
  8.4651 +	;;
  8.4652 +      esac
  8.4653 +      ;;
  8.4654 +    esac
  8.4655 +  fi
  8.4656 +  rm -rf conftest*
  8.4657 +  ;;
  8.4658 +
  8.4659  
  8.4660  esac
  8.4661  
  8.4662 @@ -3996,8 +4716,8 @@
  8.4663  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.4664  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8.4665  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8.4666 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  8.4667 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  8.4668 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  8.4669 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  8.4670  # On Suns, sometimes $CPP names a directory.
  8.4671  if test -n "$CPP" && test -d "$CPP"; then
  8.4672    CPP=
  8.4673 @@ -4031,24 +4751,22 @@
  8.4674  #endif
  8.4675  		     Syntax error
  8.4676  _ACEOF
  8.4677 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.4678 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.4679 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.4680 +case "(($ac_try" in
  8.4681 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.4682 +  *) ac_try_echo=$ac_try;;
  8.4683 +esac
  8.4684 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.4685 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.4686    ac_status=$?
  8.4687    grep -v '^ *+' conftest.er1 >conftest.err
  8.4688    rm -f conftest.er1
  8.4689    cat conftest.err >&5
  8.4690    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4691 -  (exit $ac_status); } >/dev/null; then
  8.4692 -  if test -s conftest.err; then
  8.4693 -    ac_cpp_err=$ac_c_preproc_warn_flag
  8.4694 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8.4695 -  else
  8.4696 -    ac_cpp_err=
  8.4697 -  fi
  8.4698 -else
  8.4699 -  ac_cpp_err=yes
  8.4700 -fi
  8.4701 -if test -z "$ac_cpp_err"; then
  8.4702 +  (exit $ac_status); } >/dev/null && {
  8.4703 +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8.4704 +	 test ! -s conftest.err
  8.4705 +       }; then
  8.4706    :
  8.4707  else
  8.4708    echo "$as_me: failed program was:" >&5
  8.4709 @@ -4057,9 +4775,10 @@
  8.4710    # Broken: fails on valid input.
  8.4711  continue
  8.4712  fi
  8.4713 +
  8.4714  rm -f conftest.err conftest.$ac_ext
  8.4715  
  8.4716 -  # OK, works on sane cases.  Now check whether non-existent headers
  8.4717 +  # OK, works on sane cases.  Now check whether nonexistent headers
  8.4718    # can be detected and how.
  8.4719    cat >conftest.$ac_ext <<_ACEOF
  8.4720  /* confdefs.h.  */
  8.4721 @@ -4069,24 +4788,22 @@
  8.4722  /* end confdefs.h.  */
  8.4723  #include <ac_nonexistent.h>
  8.4724  _ACEOF
  8.4725 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.4726 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.4727 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.4728 +case "(($ac_try" in
  8.4729 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.4730 +  *) ac_try_echo=$ac_try;;
  8.4731 +esac
  8.4732 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.4733 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.4734    ac_status=$?
  8.4735    grep -v '^ *+' conftest.er1 >conftest.err
  8.4736    rm -f conftest.er1
  8.4737    cat conftest.err >&5
  8.4738    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4739 -  (exit $ac_status); } >/dev/null; then
  8.4740 -  if test -s conftest.err; then
  8.4741 -    ac_cpp_err=$ac_c_preproc_warn_flag
  8.4742 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8.4743 -  else
  8.4744 -    ac_cpp_err=
  8.4745 -  fi
  8.4746 -else
  8.4747 -  ac_cpp_err=yes
  8.4748 -fi
  8.4749 -if test -z "$ac_cpp_err"; then
  8.4750 +  (exit $ac_status); } >/dev/null && {
  8.4751 +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8.4752 +	 test ! -s conftest.err
  8.4753 +       }; then
  8.4754    # Broken: success on invalid input.
  8.4755  continue
  8.4756  else
  8.4757 @@ -4097,6 +4814,7 @@
  8.4758  ac_preproc_ok=:
  8.4759  break
  8.4760  fi
  8.4761 +
  8.4762  rm -f conftest.err conftest.$ac_ext
  8.4763  
  8.4764  done
  8.4765 @@ -4114,8 +4832,8 @@
  8.4766  else
  8.4767    ac_cv_prog_CPP=$CPP
  8.4768  fi
  8.4769 -echo "$as_me:$LINENO: result: $CPP" >&5
  8.4770 -echo "${ECHO_T}$CPP" >&6
  8.4771 +{ echo "$as_me:$LINENO: result: $CPP" >&5
  8.4772 +echo "${ECHO_T}$CPP" >&6; }
  8.4773  ac_preproc_ok=false
  8.4774  for ac_c_preproc_warn_flag in '' yes
  8.4775  do
  8.4776 @@ -4138,24 +4856,22 @@
  8.4777  #endif
  8.4778  		     Syntax error
  8.4779  _ACEOF
  8.4780 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.4781 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.4782 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.4783 +case "(($ac_try" in
  8.4784 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.4785 +  *) ac_try_echo=$ac_try;;
  8.4786 +esac
  8.4787 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.4788 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.4789    ac_status=$?
  8.4790    grep -v '^ *+' conftest.er1 >conftest.err
  8.4791    rm -f conftest.er1
  8.4792    cat conftest.err >&5
  8.4793    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4794 -  (exit $ac_status); } >/dev/null; then
  8.4795 -  if test -s conftest.err; then
  8.4796 -    ac_cpp_err=$ac_c_preproc_warn_flag
  8.4797 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8.4798 -  else
  8.4799 -    ac_cpp_err=
  8.4800 -  fi
  8.4801 -else
  8.4802 -  ac_cpp_err=yes
  8.4803 -fi
  8.4804 -if test -z "$ac_cpp_err"; then
  8.4805 +  (exit $ac_status); } >/dev/null && {
  8.4806 +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8.4807 +	 test ! -s conftest.err
  8.4808 +       }; then
  8.4809    :
  8.4810  else
  8.4811    echo "$as_me: failed program was:" >&5
  8.4812 @@ -4164,9 +4880,10 @@
  8.4813    # Broken: fails on valid input.
  8.4814  continue
  8.4815  fi
  8.4816 +
  8.4817  rm -f conftest.err conftest.$ac_ext
  8.4818  
  8.4819 -  # OK, works on sane cases.  Now check whether non-existent headers
  8.4820 +  # OK, works on sane cases.  Now check whether nonexistent headers
  8.4821    # can be detected and how.
  8.4822    cat >conftest.$ac_ext <<_ACEOF
  8.4823  /* confdefs.h.  */
  8.4824 @@ -4176,24 +4893,22 @@
  8.4825  /* end confdefs.h.  */
  8.4826  #include <ac_nonexistent.h>
  8.4827  _ACEOF
  8.4828 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.4829 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.4830 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.4831 +case "(($ac_try" in
  8.4832 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.4833 +  *) ac_try_echo=$ac_try;;
  8.4834 +esac
  8.4835 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.4836 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.4837    ac_status=$?
  8.4838    grep -v '^ *+' conftest.er1 >conftest.err
  8.4839    rm -f conftest.er1
  8.4840    cat conftest.err >&5
  8.4841    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4842 -  (exit $ac_status); } >/dev/null; then
  8.4843 -  if test -s conftest.err; then
  8.4844 -    ac_cpp_err=$ac_c_preproc_warn_flag
  8.4845 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8.4846 -  else
  8.4847 -    ac_cpp_err=
  8.4848 -  fi
  8.4849 -else
  8.4850 -  ac_cpp_err=yes
  8.4851 -fi
  8.4852 -if test -z "$ac_cpp_err"; then
  8.4853 +  (exit $ac_status); } >/dev/null && {
  8.4854 +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8.4855 +	 test ! -s conftest.err
  8.4856 +       }; then
  8.4857    # Broken: success on invalid input.
  8.4858  continue
  8.4859  else
  8.4860 @@ -4204,6 +4919,7 @@
  8.4861  ac_preproc_ok=:
  8.4862  break
  8.4863  fi
  8.4864 +
  8.4865  rm -f conftest.err conftest.$ac_ext
  8.4866  
  8.4867  done
  8.4868 @@ -4226,8 +4942,8 @@
  8.4869  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8.4870  
  8.4871  
  8.4872 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  8.4873 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  8.4874 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  8.4875 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  8.4876  if test "${ac_cv_header_stdc+set}" = set; then
  8.4877    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.4878  else
  8.4879 @@ -4251,35 +4967,31 @@
  8.4880  }
  8.4881  _ACEOF
  8.4882  rm -f conftest.$ac_objext
  8.4883 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.4884 -  (eval $ac_compile) 2>conftest.er1
  8.4885 +if { (ac_try="$ac_compile"
  8.4886 +case "(($ac_try" in
  8.4887 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.4888 +  *) ac_try_echo=$ac_try;;
  8.4889 +esac
  8.4890 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.4891 +  (eval "$ac_compile") 2>conftest.er1
  8.4892    ac_status=$?
  8.4893    grep -v '^ *+' conftest.er1 >conftest.err
  8.4894    rm -f conftest.er1
  8.4895    cat conftest.err >&5
  8.4896    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4897 -  (exit $ac_status); } &&
  8.4898 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.4899 -			 || test ! -s conftest.err'
  8.4900 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.4901 -  (eval $ac_try) 2>&5
  8.4902 -  ac_status=$?
  8.4903 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4904 -  (exit $ac_status); }; } &&
  8.4905 -	 { ac_try='test -s conftest.$ac_objext'
  8.4906 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.4907 -  (eval $ac_try) 2>&5
  8.4908 -  ac_status=$?
  8.4909 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4910 -  (exit $ac_status); }; }; then
  8.4911 +  (exit $ac_status); } && {
  8.4912 +	 test -z "$ac_c_werror_flag" ||
  8.4913 +	 test ! -s conftest.err
  8.4914 +       } && test -s conftest.$ac_objext; then
  8.4915    ac_cv_header_stdc=yes
  8.4916  else
  8.4917    echo "$as_me: failed program was:" >&5
  8.4918  sed 's/^/| /' conftest.$ac_ext >&5
  8.4919  
  8.4920 -ac_cv_header_stdc=no
  8.4921 -fi
  8.4922 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.4923 +	ac_cv_header_stdc=no
  8.4924 +fi
  8.4925 +
  8.4926 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8.4927  
  8.4928  if test $ac_cv_header_stdc = yes; then
  8.4929    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8.4930 @@ -4335,6 +5047,7 @@
  8.4931  cat >>conftest.$ac_ext <<_ACEOF
  8.4932  /* end confdefs.h.  */
  8.4933  #include <ctype.h>
  8.4934 +#include <stdlib.h>
  8.4935  #if ((' ' & 0x0FF) == 0x020)
  8.4936  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8.4937  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8.4938 @@ -4354,18 +5067,27 @@
  8.4939    for (i = 0; i < 256; i++)
  8.4940      if (XOR (islower (i), ISLOWER (i))
  8.4941  	|| toupper (i) != TOUPPER (i))
  8.4942 -      exit(2);
  8.4943 -  exit (0);
  8.4944 +      return 2;
  8.4945 +  return 0;
  8.4946  }
  8.4947  _ACEOF
  8.4948  rm -f conftest$ac_exeext
  8.4949 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.4950 -  (eval $ac_link) 2>&5
  8.4951 +if { (ac_try="$ac_link"
  8.4952 +case "(($ac_try" in
  8.4953 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.4954 +  *) ac_try_echo=$ac_try;;
  8.4955 +esac
  8.4956 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.4957 +  (eval "$ac_link") 2>&5
  8.4958    ac_status=$?
  8.4959    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4960    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8.4961 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.4962 -  (eval $ac_try) 2>&5
  8.4963 +  { (case "(($ac_try" in
  8.4964 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.4965 +  *) ac_try_echo=$ac_try;;
  8.4966 +esac
  8.4967 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.4968 +  (eval "$ac_try") 2>&5
  8.4969    ac_status=$?
  8.4970    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.4971    (exit $ac_status); }; }; then
  8.4972 @@ -4378,12 +5100,14 @@
  8.4973  ( exit $ac_status )
  8.4974  ac_cv_header_stdc=no
  8.4975  fi
  8.4976 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8.4977 -fi
  8.4978 -fi
  8.4979 -fi
  8.4980 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8.4981 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  8.4982 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8.4983 +fi
  8.4984 +
  8.4985 +
  8.4986 +fi
  8.4987 +fi
  8.4988 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8.4989 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8.4990  if test $ac_cv_header_stdc = yes; then
  8.4991  
  8.4992  cat >>confdefs.h <<\_ACEOF
  8.4993 @@ -4406,9 +5130,9 @@
  8.4994  		  inttypes.h stdint.h unistd.h
  8.4995  do
  8.4996  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8.4997 -echo "$as_me:$LINENO: checking for $ac_header" >&5
  8.4998 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8.4999 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8.5000 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  8.5001 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8.5002 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8.5003    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5004  else
  8.5005    cat >conftest.$ac_ext <<_ACEOF
  8.5006 @@ -4422,38 +5146,35 @@
  8.5007  #include <$ac_header>
  8.5008  _ACEOF
  8.5009  rm -f conftest.$ac_objext
  8.5010 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.5011 -  (eval $ac_compile) 2>conftest.er1
  8.5012 +if { (ac_try="$ac_compile"
  8.5013 +case "(($ac_try" in
  8.5014 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.5015 +  *) ac_try_echo=$ac_try;;
  8.5016 +esac
  8.5017 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.5018 +  (eval "$ac_compile") 2>conftest.er1
  8.5019    ac_status=$?
  8.5020    grep -v '^ *+' conftest.er1 >conftest.err
  8.5021    rm -f conftest.er1
  8.5022    cat conftest.err >&5
  8.5023    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5024 -  (exit $ac_status); } &&
  8.5025 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.5026 -			 || test ! -s conftest.err'
  8.5027 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.5028 -  (eval $ac_try) 2>&5
  8.5029 -  ac_status=$?
  8.5030 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5031 -  (exit $ac_status); }; } &&
  8.5032 -	 { ac_try='test -s conftest.$ac_objext'
  8.5033 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.5034 -  (eval $ac_try) 2>&5
  8.5035 -  ac_status=$?
  8.5036 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5037 -  (exit $ac_status); }; }; then
  8.5038 +  (exit $ac_status); } && {
  8.5039 +	 test -z "$ac_c_werror_flag" ||
  8.5040 +	 test ! -s conftest.err
  8.5041 +       } && test -s conftest.$ac_objext; then
  8.5042    eval "$as_ac_Header=yes"
  8.5043  else
  8.5044    echo "$as_me: failed program was:" >&5
  8.5045  sed 's/^/| /' conftest.$ac_ext >&5
  8.5046  
  8.5047 -eval "$as_ac_Header=no"
  8.5048 -fi
  8.5049 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.5050 -fi
  8.5051 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8.5052 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8.5053 +	eval "$as_ac_Header=no"
  8.5054 +fi
  8.5055 +
  8.5056 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8.5057 +fi
  8.5058 +ac_res=`eval echo '${'$as_ac_Header'}'`
  8.5059 +	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8.5060 +echo "${ECHO_T}$ac_res" >&6; }
  8.5061  if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8.5062    cat >>confdefs.h <<_ACEOF
  8.5063  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8.5064 @@ -4468,18 +5189,19 @@
  8.5065  for ac_header in dlfcn.h
  8.5066  do
  8.5067  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8.5068 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8.5069 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
  8.5070 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8.5071 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8.5072 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5073 -fi
  8.5074 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8.5075 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8.5076 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8.5077 +  { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8.5078 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8.5079 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8.5080 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5081 +fi
  8.5082 +ac_res=`eval echo '${'$as_ac_Header'}'`
  8.5083 +	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8.5084 +echo "${ECHO_T}$ac_res" >&6; }
  8.5085  else
  8.5086    # Is the header compilable?
  8.5087 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8.5088 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8.5089 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8.5090 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8.5091  cat >conftest.$ac_ext <<_ACEOF
  8.5092  /* confdefs.h.  */
  8.5093  _ACEOF
  8.5094 @@ -4490,41 +5212,37 @@
  8.5095  #include <$ac_header>
  8.5096  _ACEOF
  8.5097  rm -f conftest.$ac_objext
  8.5098 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.5099 -  (eval $ac_compile) 2>conftest.er1
  8.5100 +if { (ac_try="$ac_compile"
  8.5101 +case "(($ac_try" in
  8.5102 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.5103 +  *) ac_try_echo=$ac_try;;
  8.5104 +esac
  8.5105 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.5106 +  (eval "$ac_compile") 2>conftest.er1
  8.5107    ac_status=$?
  8.5108    grep -v '^ *+' conftest.er1 >conftest.err
  8.5109    rm -f conftest.er1
  8.5110    cat conftest.err >&5
  8.5111    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5112 -  (exit $ac_status); } &&
  8.5113 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.5114 -			 || test ! -s conftest.err'
  8.5115 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.5116 -  (eval $ac_try) 2>&5
  8.5117 -  ac_status=$?
  8.5118 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5119 -  (exit $ac_status); }; } &&
  8.5120 -	 { ac_try='test -s conftest.$ac_objext'
  8.5121 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.5122 -  (eval $ac_try) 2>&5
  8.5123 -  ac_status=$?
  8.5124 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5125 -  (exit $ac_status); }; }; then
  8.5126 +  (exit $ac_status); } && {
  8.5127 +	 test -z "$ac_c_werror_flag" ||
  8.5128 +	 test ! -s conftest.err
  8.5129 +       } && test -s conftest.$ac_objext; then
  8.5130    ac_header_compiler=yes
  8.5131  else
  8.5132    echo "$as_me: failed program was:" >&5
  8.5133  sed 's/^/| /' conftest.$ac_ext >&5
  8.5134  
  8.5135 -ac_header_compiler=no
  8.5136 -fi
  8.5137 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.5138 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8.5139 -echo "${ECHO_T}$ac_header_compiler" >&6
  8.5140 +	ac_header_compiler=no
  8.5141 +fi
  8.5142 +
  8.5143 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8.5144 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8.5145 +echo "${ECHO_T}$ac_header_compiler" >&6; }
  8.5146  
  8.5147  # Is the header present?
  8.5148 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8.5149 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8.5150 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8.5151 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8.5152  cat >conftest.$ac_ext <<_ACEOF
  8.5153  /* confdefs.h.  */
  8.5154  _ACEOF
  8.5155 @@ -4533,24 +5251,22 @@
  8.5156  /* end confdefs.h.  */
  8.5157  #include <$ac_header>
  8.5158  _ACEOF
  8.5159 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.5160 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.5161 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.5162 +case "(($ac_try" in
  8.5163 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.5164 +  *) ac_try_echo=$ac_try;;
  8.5165 +esac
  8.5166 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.5167 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.5168    ac_status=$?
  8.5169    grep -v '^ *+' conftest.er1 >conftest.err
  8.5170    rm -f conftest.er1
  8.5171    cat conftest.err >&5
  8.5172    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5173 -  (exit $ac_status); } >/dev/null; then
  8.5174 -  if test -s conftest.err; then
  8.5175 -    ac_cpp_err=$ac_c_preproc_warn_flag
  8.5176 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8.5177 -  else
  8.5178 -    ac_cpp_err=
  8.5179 -  fi
  8.5180 -else
  8.5181 -  ac_cpp_err=yes
  8.5182 -fi
  8.5183 -if test -z "$ac_cpp_err"; then
  8.5184 +  (exit $ac_status); } >/dev/null && {
  8.5185 +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8.5186 +	 test ! -s conftest.err
  8.5187 +       }; then
  8.5188    ac_header_preproc=yes
  8.5189  else
  8.5190    echo "$as_me: failed program was:" >&5
  8.5191 @@ -4558,9 +5274,10 @@
  8.5192  
  8.5193    ac_header_preproc=no
  8.5194  fi
  8.5195 +
  8.5196  rm -f conftest.err conftest.$ac_ext
  8.5197 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8.5198 -echo "${ECHO_T}$ac_header_preproc" >&6
  8.5199 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8.5200 +echo "${ECHO_T}$ac_header_preproc" >&6; }
  8.5201  
  8.5202  # So?  What about this header?
  8.5203  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8.5204 @@ -4584,25 +5301,19 @@
  8.5205  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8.5206      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8.5207  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8.5208 -    (
  8.5209 -      cat <<\_ASBOX
  8.5210 -## ---------------------------------- ##
  8.5211 -## Report this to the libhrel lists.  ##
  8.5212 -## ---------------------------------- ##
  8.5213 -_ASBOX
  8.5214 -    ) |
  8.5215 -      sed "s/^/$as_me: WARNING:     /" >&2
  8.5216 -    ;;
  8.5217 -esac
  8.5218 -echo "$as_me:$LINENO: checking for $ac_header" >&5
  8.5219 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8.5220 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8.5221 +
  8.5222 +    ;;
  8.5223 +esac
  8.5224 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  8.5225 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8.5226 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8.5227    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5228  else
  8.5229    eval "$as_ac_Header=\$ac_header_preproc"
  8.5230  fi
  8.5231 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8.5232 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8.5233 +ac_res=`eval echo '${'$as_ac_Header'}'`
  8.5234 +	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8.5235 +echo "${ECHO_T}$ac_res" >&6; }
  8.5236  
  8.5237  fi
  8.5238  if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8.5239 @@ -4620,13 +5331,13 @@
  8.5240  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8.5241      ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8.5242      (test "X$CXX" != "Xg++"))) ; then
  8.5243 -  ac_ext=cc
  8.5244 +  ac_ext=cpp
  8.5245  ac_cpp='$CXXCPP $CPPFLAGS'
  8.5246  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.5247  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8.5248  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8.5249 -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  8.5250 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  8.5251 +{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  8.5252 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  8.5253  if test -z "$CXXCPP"; then
  8.5254    if test "${ac_cv_prog_CXXCPP+set}" = set; then
  8.5255    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5256 @@ -4656,24 +5367,22 @@
  8.5257  #endif
  8.5258  		     Syntax error
  8.5259  _ACEOF
  8.5260 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.5261 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.5262 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.5263 +case "(($ac_try" in
  8.5264 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.5265 +  *) ac_try_echo=$ac_try;;
  8.5266 +esac
  8.5267 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.5268 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.5269    ac_status=$?
  8.5270    grep -v '^ *+' conftest.er1 >conftest.err
  8.5271    rm -f conftest.er1
  8.5272    cat conftest.err >&5
  8.5273    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5274 -  (exit $ac_status); } >/dev/null; then
  8.5275 -  if test -s conftest.err; then
  8.5276 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
  8.5277 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8.5278 -  else
  8.5279 -    ac_cpp_err=
  8.5280 -  fi
  8.5281 -else
  8.5282 -  ac_cpp_err=yes
  8.5283 -fi
  8.5284 -if test -z "$ac_cpp_err"; then
  8.5285 +  (exit $ac_status); } >/dev/null && {
  8.5286 +	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8.5287 +	 test ! -s conftest.err
  8.5288 +       }; then
  8.5289    :
  8.5290  else
  8.5291    echo "$as_me: failed program was:" >&5
  8.5292 @@ -4682,9 +5391,10 @@
  8.5293    # Broken: fails on valid input.
  8.5294  continue
  8.5295  fi
  8.5296 +
  8.5297  rm -f conftest.err conftest.$ac_ext
  8.5298  
  8.5299 -  # OK, works on sane cases.  Now check whether non-existent headers
  8.5300 +  # OK, works on sane cases.  Now check whether nonexistent headers
  8.5301    # can be detected and how.
  8.5302    cat >conftest.$ac_ext <<_ACEOF
  8.5303  /* confdefs.h.  */
  8.5304 @@ -4694,24 +5404,22 @@
  8.5305  /* end confdefs.h.  */
  8.5306  #include <ac_nonexistent.h>
  8.5307  _ACEOF
  8.5308 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.5309 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.5310 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.5311 +case "(($ac_try" in
  8.5312 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.5313 +  *) ac_try_echo=$ac_try;;
  8.5314 +esac
  8.5315 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.5316 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.5317    ac_status=$?
  8.5318    grep -v '^ *+' conftest.er1 >conftest.err
  8.5319    rm -f conftest.er1
  8.5320    cat conftest.err >&5
  8.5321    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5322 -  (exit $ac_status); } >/dev/null; then
  8.5323 -  if test -s conftest.err; then
  8.5324 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
  8.5325 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8.5326 -  else
  8.5327 -    ac_cpp_err=
  8.5328 -  fi
  8.5329 -else
  8.5330 -  ac_cpp_err=yes
  8.5331 -fi
  8.5332 -if test -z "$ac_cpp_err"; then
  8.5333 +  (exit $ac_status); } >/dev/null && {
  8.5334 +	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8.5335 +	 test ! -s conftest.err
  8.5336 +       }; then
  8.5337    # Broken: success on invalid input.
  8.5338  continue
  8.5339  else
  8.5340 @@ -4722,6 +5430,7 @@
  8.5341  ac_preproc_ok=:
  8.5342  break
  8.5343  fi
  8.5344 +
  8.5345  rm -f conftest.err conftest.$ac_ext
  8.5346  
  8.5347  done
  8.5348 @@ -4739,8 +5448,8 @@
  8.5349  else
  8.5350    ac_cv_prog_CXXCPP=$CXXCPP
  8.5351  fi
  8.5352 -echo "$as_me:$LINENO: result: $CXXCPP" >&5
  8.5353 -echo "${ECHO_T}$CXXCPP" >&6
  8.5354 +{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  8.5355 +echo "${ECHO_T}$CXXCPP" >&6; }
  8.5356  ac_preproc_ok=false
  8.5357  for ac_cxx_preproc_warn_flag in '' yes
  8.5358  do
  8.5359 @@ -4763,24 +5472,22 @@
  8.5360  #endif
  8.5361  		     Syntax error
  8.5362  _ACEOF
  8.5363 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.5364 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.5365 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.5366 +case "(($ac_try" in
  8.5367 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.5368 +  *) ac_try_echo=$ac_try;;
  8.5369 +esac
  8.5370 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.5371 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.5372    ac_status=$?
  8.5373    grep -v '^ *+' conftest.er1 >conftest.err
  8.5374    rm -f conftest.er1
  8.5375    cat conftest.err >&5
  8.5376    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5377 -  (exit $ac_status); } >/dev/null; then
  8.5378 -  if test -s conftest.err; then
  8.5379 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
  8.5380 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8.5381 -  else
  8.5382 -    ac_cpp_err=
  8.5383 -  fi
  8.5384 -else
  8.5385 -  ac_cpp_err=yes
  8.5386 -fi
  8.5387 -if test -z "$ac_cpp_err"; then
  8.5388 +  (exit $ac_status); } >/dev/null && {
  8.5389 +	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8.5390 +	 test ! -s conftest.err
  8.5391 +       }; then
  8.5392    :
  8.5393  else
  8.5394    echo "$as_me: failed program was:" >&5
  8.5395 @@ -4789,9 +5496,10 @@
  8.5396    # Broken: fails on valid input.
  8.5397  continue
  8.5398  fi
  8.5399 +
  8.5400  rm -f conftest.err conftest.$ac_ext
  8.5401  
  8.5402 -  # OK, works on sane cases.  Now check whether non-existent headers
  8.5403 +  # OK, works on sane cases.  Now check whether nonexistent headers
  8.5404    # can be detected and how.
  8.5405    cat >conftest.$ac_ext <<_ACEOF
  8.5406  /* confdefs.h.  */
  8.5407 @@ -4801,24 +5509,22 @@
  8.5408  /* end confdefs.h.  */
  8.5409  #include <ac_nonexistent.h>
  8.5410  _ACEOF
  8.5411 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8.5412 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8.5413 +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8.5414 +case "(($ac_try" in
  8.5415 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.5416 +  *) ac_try_echo=$ac_try;;
  8.5417 +esac
  8.5418 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.5419 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8.5420    ac_status=$?
  8.5421    grep -v '^ *+' conftest.er1 >conftest.err
  8.5422    rm -f conftest.er1
  8.5423    cat conftest.err >&5
  8.5424    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.5425 -  (exit $ac_status); } >/dev/null; then
  8.5426 -  if test -s conftest.err; then
  8.5427 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
  8.5428 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8.5429 -  else
  8.5430 -    ac_cpp_err=
  8.5431 -  fi
  8.5432 -else
  8.5433 -  ac_cpp_err=yes
  8.5434 -fi
  8.5435 -if test -z "$ac_cpp_err"; then
  8.5436 +  (exit $ac_status); } >/dev/null && {
  8.5437 +	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8.5438 +	 test ! -s conftest.err
  8.5439 +       }; then
  8.5440    # Broken: success on invalid input.
  8.5441  continue
  8.5442  else
  8.5443 @@ -4829,6 +5535,7 @@
  8.5444  ac_preproc_ok=:
  8.5445  break
  8.5446  fi
  8.5447 +
  8.5448  rm -f conftest.err conftest.$ac_ext
  8.5449  
  8.5450  done
  8.5451 @@ -4844,7 +5551,7 @@
  8.5452     { (exit 1); exit 1; }; }
  8.5453  fi
  8.5454  
  8.5455 -ac_ext=cc
  8.5456 +ac_ext=cpp
  8.5457  ac_cpp='$CXXCPP $CPPFLAGS'
  8.5458  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.5459  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8.5460 @@ -4857,10 +5564,9 @@
  8.5461  
  8.5462  
  8.5463  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  8.5464 -
  8.5465  # find the maximum length of command line arguments
  8.5466 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  8.5467 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  8.5468 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  8.5469 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  8.5470  if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  8.5471    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5472  else
  8.5473 @@ -4907,11 +5613,18 @@
  8.5474      elif test -x /usr/sbin/sysctl; then
  8.5475        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  8.5476      else
  8.5477 -      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  8.5478 +      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
  8.5479      fi
  8.5480      # And add a safety zone
  8.5481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8.5482 -    ;;
  8.5483 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8.5484 +    ;;
  8.5485 +
  8.5486 +  interix*)
  8.5487 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
  8.5488 +    lt_cv_sys_max_cmd_len=196608
  8.5489 +    ;;
  8.5490 +
  8.5491    osf*)
  8.5492      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  8.5493      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  8.5494 @@ -4925,44 +5638,59 @@
  8.5495        esac
  8.5496      fi
  8.5497      ;;
  8.5498 +  sco3.2v5*)
  8.5499 +    lt_cv_sys_max_cmd_len=102400
  8.5500 +    ;;
  8.5501 +  sysv5* | sco5v6* | sysv4.2uw2*)
  8.5502 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  8.5503 +    if test -n "$kargmax"; then
  8.5504 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
  8.5505 +    else
  8.5506 +      lt_cv_sys_max_cmd_len=32768
  8.5507 +    fi
  8.5508 +    ;;
  8.5509    *)
  8.5510 -    # If test is not a shell built-in, we'll probably end up computing a
  8.5511 -    # maximum length that is only half of the actual maximum length, but
  8.5512 -    # we can't tell.
  8.5513 -    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  8.5514 -    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  8.5515 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  8.5516 +    if test -n "$lt_cv_sys_max_cmd_len"; then
  8.5517 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8.5518 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8.5519 +    else
  8.5520 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  8.5521 +      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  8.5522  	       = "XX$teststring") >/dev/null 2>&1 &&
  8.5523 -	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
  8.5524 -	    lt_cv_sys_max_cmd_len=$new_result &&
  8.5525 -	    test $i != 17 # 1/2 MB should be enough
  8.5526 -    do
  8.5527 -      i=`expr $i + 1`
  8.5528 -      teststring=$teststring$teststring
  8.5529 -    done
  8.5530 -    teststring=
  8.5531 -    # Add a significant safety factor because C++ compilers can tack on massive
  8.5532 -    # amounts of additional arguments before passing them to the linker.
  8.5533 -    # It appears as though 1/2 is a usable value.
  8.5534 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  8.5535 +	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
  8.5536 +	      lt_cv_sys_max_cmd_len=$new_result &&
  8.5537 +	      test $i != 17 # 1/2 MB should be enough
  8.5538 +      do
  8.5539 +        i=`expr $i + 1`
  8.5540 +        teststring=$teststring$teststring
  8.5541 +      done
  8.5542 +      teststring=
  8.5543 +      # Add a significant safety factor because C++ compilers can tack on massive
  8.5544 +      # amounts of additional arguments before passing them to the linker.
  8.5545 +      # It appears as though 1/2 is a usable value.
  8.5546 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  8.5547 +    fi
  8.5548      ;;
  8.5549    esac
  8.5550  
  8.5551  fi
  8.5552  
  8.5553  if test -n $lt_cv_sys_max_cmd_len ; then
  8.5554 -  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  8.5555 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  8.5556 -else
  8.5557 -  echo "$as_me:$LINENO: result: none" >&5
  8.5558 -echo "${ECHO_T}none" >&6
  8.5559 -fi
  8.5560 +  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  8.5561 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  8.5562 +else
  8.5563 +  { echo "$as_me:$LINENO: result: none" >&5
  8.5564 +echo "${ECHO_T}none" >&6; }
  8.5565 +fi
  8.5566 +
  8.5567  
  8.5568  
  8.5569  
  8.5570  
  8.5571  # Check for command to grab the raw symbol name followed by C symbol from nm.
  8.5572 -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  8.5573 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  8.5574 +{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  8.5575 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  8.5576  if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  8.5577    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5578  else
  8.5579 @@ -4997,7 +5725,7 @@
  8.5580    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8.5581    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'"
  8.5582    ;;
  8.5583 -linux*)
  8.5584 +linux* | k*bsd*-gnu)
  8.5585    if test "$host_cpu" = ia64; then
  8.5586      symcode='[ABCDGIRSTW]'
  8.5587      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8.5588 @@ -5010,9 +5738,18 @@
  8.5589  osf*)
  8.5590    symcode='[BCDEGQRST]'
  8.5591    ;;
  8.5592 -solaris* | sysv5*)
  8.5593 +solaris*)
  8.5594    symcode='[BDRT]'
  8.5595    ;;
  8.5596 +sco3.2v5*)
  8.5597 +  symcode='[DT]'
  8.5598 +  ;;
  8.5599 +sysv4.2uw2*)
  8.5600 +  symcode='[DT]'
  8.5601 +  ;;
  8.5602 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8.5603 +  symcode='[ABDT]'
  8.5604 +  ;;
  8.5605  sysv4)
  8.5606    symcode='[DFNSTU]'
  8.5607    ;;
  8.5608 @@ -5141,7 +5878,7 @@
  8.5609      echo "$progname: failed program was:" >&5
  8.5610      cat conftest.$ac_ext >&5
  8.5611    fi
  8.5612 -  rm -f conftest* conftst*
  8.5613 +  rm -rf conftest* conftst*
  8.5614  
  8.5615    # Do not use the global_symbol_pipe unless it works.
  8.5616    if test "$pipe_works" = yes; then
  8.5617 @@ -5157,15 +5894,15 @@
  8.5618    lt_cv_sys_global_symbol_to_cdecl=
  8.5619  fi
  8.5620  if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8.5621 -  echo "$as_me:$LINENO: result: failed" >&5
  8.5622 -echo "${ECHO_T}failed" >&6
  8.5623 -else
  8.5624 -  echo "$as_me:$LINENO: result: ok" >&5
  8.5625 -echo "${ECHO_T}ok" >&6
  8.5626 -fi
  8.5627 -
  8.5628 -echo "$as_me:$LINENO: checking for objdir" >&5
  8.5629 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  8.5630 +  { echo "$as_me:$LINENO: result: failed" >&5
  8.5631 +echo "${ECHO_T}failed" >&6; }
  8.5632 +else
  8.5633 +  { echo "$as_me:$LINENO: result: ok" >&5
  8.5634 +echo "${ECHO_T}ok" >&6; }
  8.5635 +fi
  8.5636 +
  8.5637 +{ echo "$as_me:$LINENO: checking for objdir" >&5
  8.5638 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  8.5639  if test "${lt_cv_objdir+set}" = set; then
  8.5640    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5641  else
  8.5642 @@ -5179,8 +5916,8 @@
  8.5643  fi
  8.5644  rmdir .libs 2>/dev/null
  8.5645  fi
  8.5646 -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  8.5647 -echo "${ECHO_T}$lt_cv_objdir" >&6
  8.5648 +{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  8.5649 +echo "${ECHO_T}$lt_cv_objdir" >&6; }
  8.5650  objdir=$lt_cv_objdir
  8.5651  
  8.5652  
  8.5653 @@ -5201,7 +5938,7 @@
  8.5654  
  8.5655  # Sed substitution that helps us do robust quoting.  It backslashifies
  8.5656  # metacharacters that are still active within double-quoted strings.
  8.5657 -Xsed='sed -e s/^X//'
  8.5658 +Xsed='sed -e 1s/^X//'
  8.5659  sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  8.5660  
  8.5661  # Same as above, but do not quote variable references.
  8.5662 @@ -5221,7 +5958,7 @@
  8.5663  default_ofile=libtool
  8.5664  can_build_shared=yes
  8.5665  
  8.5666 -# All known linkers require a `.a' archive for static linking (except M$VC,
  8.5667 +# All known linkers require a `.a' archive for static linking (except MSVC,
  8.5668  # which needs '.lib').
  8.5669  libext=a
  8.5670  ltmain="$ac_aux_dir/ltmain.sh"
  8.5671 @@ -5231,8 +5968,8 @@
  8.5672  if test -n "$ac_tool_prefix"; then
  8.5673    # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  8.5674  set dummy ${ac_tool_prefix}ar; ac_word=$2
  8.5675 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5676 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.5677 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5678 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.5679  if test "${ac_cv_prog_AR+set}" = set; then
  8.5680    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5681  else
  8.5682 @@ -5245,32 +5982,34 @@
  8.5683    IFS=$as_save_IFS
  8.5684    test -z "$as_dir" && as_dir=.
  8.5685    for ac_exec_ext in '' $ac_executable_extensions; do
  8.5686 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.5687 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.5688      ac_cv_prog_AR="${ac_tool_prefix}ar"
  8.5689      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.5690      break 2
  8.5691    fi
  8.5692  done
  8.5693  done
  8.5694 +IFS=$as_save_IFS
  8.5695  
  8.5696  fi
  8.5697  fi
  8.5698  AR=$ac_cv_prog_AR
  8.5699  if test -n "$AR"; then
  8.5700 -  echo "$as_me:$LINENO: result: $AR" >&5
  8.5701 -echo "${ECHO_T}$AR" >&6
  8.5702 -else
  8.5703 -  echo "$as_me:$LINENO: result: no" >&5
  8.5704 -echo "${ECHO_T}no" >&6
  8.5705 -fi
  8.5706 +  { echo "$as_me:$LINENO: result: $AR" >&5
  8.5707 +echo "${ECHO_T}$AR" >&6; }
  8.5708 +else
  8.5709 +  { echo "$as_me:$LINENO: result: no" >&5
  8.5710 +echo "${ECHO_T}no" >&6; }
  8.5711 +fi
  8.5712 +
  8.5713  
  8.5714  fi
  8.5715  if test -z "$ac_cv_prog_AR"; then
  8.5716    ac_ct_AR=$AR
  8.5717    # Extract the first word of "ar", so it can be a program name with args.
  8.5718  set dummy ar; ac_word=$2
  8.5719 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5720 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.5721 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5722 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.5723  if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  8.5724    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5725  else
  8.5726 @@ -5283,27 +6022,41 @@
  8.5727    IFS=$as_save_IFS
  8.5728    test -z "$as_dir" && as_dir=.
  8.5729    for ac_exec_ext in '' $ac_executable_extensions; do
  8.5730 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.5731 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.5732      ac_cv_prog_ac_ct_AR="ar"
  8.5733      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.5734      break 2
  8.5735    fi
  8.5736  done
  8.5737  done
  8.5738 -
  8.5739 -  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  8.5740 +IFS=$as_save_IFS
  8.5741 +
  8.5742  fi
  8.5743  fi
  8.5744  ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8.5745  if test -n "$ac_ct_AR"; then
  8.5746 -  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  8.5747 -echo "${ECHO_T}$ac_ct_AR" >&6
  8.5748 -else
  8.5749 -  echo "$as_me:$LINENO: result: no" >&5
  8.5750 -echo "${ECHO_T}no" >&6
  8.5751 -fi
  8.5752 -
  8.5753 -  AR=$ac_ct_AR
  8.5754 +  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  8.5755 +echo "${ECHO_T}$ac_ct_AR" >&6; }
  8.5756 +else
  8.5757 +  { echo "$as_me:$LINENO: result: no" >&5
  8.5758 +echo "${ECHO_T}no" >&6; }
  8.5759 +fi
  8.5760 +
  8.5761 +  if test "x$ac_ct_AR" = x; then
  8.5762 +    AR="false"
  8.5763 +  else
  8.5764 +    case $cross_compiling:$ac_tool_warned in
  8.5765 +yes:)
  8.5766 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8.5767 +whose name does not start with the host triplet.  If you think this
  8.5768 +configuration is useful to you, please write to autoconf@gnu.org." >&5
  8.5769 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8.5770 +whose name does not start with the host triplet.  If you think this
  8.5771 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8.5772 +ac_tool_warned=yes ;;
  8.5773 +esac
  8.5774 +    AR=$ac_ct_AR
  8.5775 +  fi
  8.5776  else
  8.5777    AR="$ac_cv_prog_AR"
  8.5778  fi
  8.5779 @@ -5311,8 +6064,8 @@
  8.5780  if test -n "$ac_tool_prefix"; then
  8.5781    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8.5782  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8.5783 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5784 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.5785 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5786 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.5787  if test "${ac_cv_prog_RANLIB+set}" = set; then
  8.5788    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5789  else
  8.5790 @@ -5325,32 +6078,34 @@
  8.5791    IFS=$as_save_IFS
  8.5792    test -z "$as_dir" && as_dir=.
  8.5793    for ac_exec_ext in '' $ac_executable_extensions; do
  8.5794 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.5795 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.5796      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8.5797      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.5798      break 2
  8.5799    fi
  8.5800  done
  8.5801  done
  8.5802 +IFS=$as_save_IFS
  8.5803  
  8.5804  fi
  8.5805  fi
  8.5806  RANLIB=$ac_cv_prog_RANLIB
  8.5807  if test -n "$RANLIB"; then
  8.5808 -  echo "$as_me:$LINENO: result: $RANLIB" >&5
  8.5809 -echo "${ECHO_T}$RANLIB" >&6
  8.5810 -else
  8.5811 -  echo "$as_me:$LINENO: result: no" >&5
  8.5812 -echo "${ECHO_T}no" >&6
  8.5813 -fi
  8.5814 +  { echo "$as_me:$LINENO: result: $RANLIB" >&5
  8.5815 +echo "${ECHO_T}$RANLIB" >&6; }
  8.5816 +else
  8.5817 +  { echo "$as_me:$LINENO: result: no" >&5
  8.5818 +echo "${ECHO_T}no" >&6; }
  8.5819 +fi
  8.5820 +
  8.5821  
  8.5822  fi
  8.5823  if test -z "$ac_cv_prog_RANLIB"; then
  8.5824    ac_ct_RANLIB=$RANLIB
  8.5825    # Extract the first word of "ranlib", so it can be a program name with args.
  8.5826  set dummy ranlib; ac_word=$2
  8.5827 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5828 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.5829 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5830 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.5831  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  8.5832    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5833  else
  8.5834 @@ -5363,27 +6118,41 @@
  8.5835    IFS=$as_save_IFS
  8.5836    test -z "$as_dir" && as_dir=.
  8.5837    for ac_exec_ext in '' $ac_executable_extensions; do
  8.5838 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.5839 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.5840      ac_cv_prog_ac_ct_RANLIB="ranlib"
  8.5841      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.5842      break 2
  8.5843    fi
  8.5844  done
  8.5845  done
  8.5846 -
  8.5847 -  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  8.5848 +IFS=$as_save_IFS
  8.5849 +
  8.5850  fi
  8.5851  fi
  8.5852  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8.5853  if test -n "$ac_ct_RANLIB"; then
  8.5854 -  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  8.5855 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  8.5856 -else
  8.5857 -  echo "$as_me:$LINENO: result: no" >&5
  8.5858 -echo "${ECHO_T}no" >&6
  8.5859 -fi
  8.5860 -
  8.5861 -  RANLIB=$ac_ct_RANLIB
  8.5862 +  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  8.5863 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  8.5864 +else
  8.5865 +  { echo "$as_me:$LINENO: result: no" >&5
  8.5866 +echo "${ECHO_T}no" >&6; }
  8.5867 +fi
  8.5868 +
  8.5869 +  if test "x$ac_ct_RANLIB" = x; then
  8.5870 +    RANLIB=":"
  8.5871 +  else
  8.5872 +    case $cross_compiling:$ac_tool_warned in
  8.5873 +yes:)
  8.5874 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8.5875 +whose name does not start with the host triplet.  If you think this
  8.5876 +configuration is useful to you, please write to autoconf@gnu.org." >&5
  8.5877 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8.5878 +whose name does not start with the host triplet.  If you think this
  8.5879 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8.5880 +ac_tool_warned=yes ;;
  8.5881 +esac
  8.5882 +    RANLIB=$ac_ct_RANLIB
  8.5883 +  fi
  8.5884  else
  8.5885    RANLIB="$ac_cv_prog_RANLIB"
  8.5886  fi
  8.5887 @@ -5391,8 +6160,8 @@
  8.5888  if test -n "$ac_tool_prefix"; then
  8.5889    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8.5890  set dummy ${ac_tool_prefix}strip; ac_word=$2
  8.5891 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5892 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.5893 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5894 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.5895  if test "${ac_cv_prog_STRIP+set}" = set; then
  8.5896    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5897  else
  8.5898 @@ -5405,32 +6174,34 @@
  8.5899    IFS=$as_save_IFS
  8.5900    test -z "$as_dir" && as_dir=.
  8.5901    for ac_exec_ext in '' $ac_executable_extensions; do
  8.5902 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.5903 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.5904      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8.5905      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.5906      break 2
  8.5907    fi
  8.5908  done
  8.5909  done
  8.5910 +IFS=$as_save_IFS
  8.5911  
  8.5912  fi
  8.5913  fi
  8.5914  STRIP=$ac_cv_prog_STRIP
  8.5915  if test -n "$STRIP"; then
  8.5916 -  echo "$as_me:$LINENO: result: $STRIP" >&5
  8.5917 -echo "${ECHO_T}$STRIP" >&6
  8.5918 -else
  8.5919 -  echo "$as_me:$LINENO: result: no" >&5
  8.5920 -echo "${ECHO_T}no" >&6
  8.5921 -fi
  8.5922 +  { echo "$as_me:$LINENO: result: $STRIP" >&5
  8.5923 +echo "${ECHO_T}$STRIP" >&6; }
  8.5924 +else
  8.5925 +  { echo "$as_me:$LINENO: result: no" >&5
  8.5926 +echo "${ECHO_T}no" >&6; }
  8.5927 +fi
  8.5928 +
  8.5929  
  8.5930  fi
  8.5931  if test -z "$ac_cv_prog_STRIP"; then
  8.5932    ac_ct_STRIP=$STRIP
  8.5933    # Extract the first word of "strip", so it can be a program name with args.
  8.5934  set dummy strip; ac_word=$2
  8.5935 -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5936 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.5937 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.5938 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.5939  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  8.5940    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.5941  else
  8.5942 @@ -5443,27 +6214,41 @@
  8.5943    IFS=$as_save_IFS
  8.5944    test -z "$as_dir" && as_dir=.
  8.5945    for ac_exec_ext in '' $ac_executable_extensions; do
  8.5946 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.5947 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.5948      ac_cv_prog_ac_ct_STRIP="strip"
  8.5949      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.5950      break 2
  8.5951    fi
  8.5952  done
  8.5953  done
  8.5954 -
  8.5955 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  8.5956 +IFS=$as_save_IFS
  8.5957 +
  8.5958  fi
  8.5959  fi
  8.5960  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8.5961  if test -n "$ac_ct_STRIP"; then
  8.5962 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8.5963 -echo "${ECHO_T}$ac_ct_STRIP" >&6
  8.5964 -else
  8.5965 -  echo "$as_me:$LINENO: result: no" >&5
  8.5966 -echo "${ECHO_T}no" >&6
  8.5967 -fi
  8.5968 -
  8.5969 -  STRIP=$ac_ct_STRIP
  8.5970 +  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8.5971 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  8.5972 +else
  8.5973 +  { echo "$as_me:$LINENO: result: no" >&5
  8.5974 +echo "${ECHO_T}no" >&6; }
  8.5975 +fi
  8.5976 +
  8.5977 +  if test "x$ac_ct_STRIP" = x; then
  8.5978 +    STRIP=":"
  8.5979 +  else
  8.5980 +    case $cross_compiling:$ac_tool_warned in
  8.5981 +yes:)
  8.5982 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8.5983 +whose name does not start with the host triplet.  If you think this
  8.5984 +configuration is useful to you, please write to autoconf@gnu.org." >&5
  8.5985 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8.5986 +whose name does not start with the host triplet.  If you think this
  8.5987 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8.5988 +ac_tool_warned=yes ;;
  8.5989 +esac
  8.5990 +    STRIP=$ac_ct_STRIP
  8.5991 +  fi
  8.5992  else
  8.5993    STRIP="$ac_cv_prog_STRIP"
  8.5994  fi
  8.5995 @@ -5478,6 +6263,7 @@
  8.5996  test -z "$AS" && AS=as
  8.5997  test -z "$CC" && CC=cc
  8.5998  test -z "$LTCC" && LTCC=$CC
  8.5999 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8.6000  test -z "$DLLTOOL" && DLLTOOL=dlltool
  8.6001  test -z "$LD" && LD=ld
  8.6002  test -z "$LN_S" && LN_S="ln -s"
  8.6003 @@ -5490,30 +6276,39 @@
  8.6004  test -z "$ac_objext" && ac_objext=o
  8.6005  
  8.6006  # Determine commands to create old-style static archives.
  8.6007 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  8.6008 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8.6009  old_postinstall_cmds='chmod 644 $oldlib'
  8.6010  old_postuninstall_cmds=
  8.6011  
  8.6012  if test -n "$RANLIB"; then
  8.6013    case $host_os in
  8.6014    openbsd*)
  8.6015 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  8.6016 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  8.6017      ;;
  8.6018    *)
  8.6019 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8.6020 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  8.6021      ;;
  8.6022    esac
  8.6023    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8.6024  fi
  8.6025  
  8.6026 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  8.6027 +for cc_temp in $compiler""; do
  8.6028 +  case $cc_temp in
  8.6029 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8.6030 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8.6031 +    \-*) ;;
  8.6032 +    *) break;;
  8.6033 +  esac
  8.6034 +done
  8.6035 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8.6036 +
  8.6037  
  8.6038  # Only perform the check for file, if the check method requires it
  8.6039  case $deplibs_check_method in
  8.6040  file_magic*)
  8.6041    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8.6042 -    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  8.6043 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  8.6044 +    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  8.6045 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  8.6046  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8.6047    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6048  else
  8.6049 @@ -5533,7 +6328,7 @@
  8.6050        if test -n "$file_magic_test_file"; then
  8.6051  	case $deplibs_check_method in
  8.6052  	"file_magic "*)
  8.6053 -	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  8.6054 +	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8.6055  	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8.6056  	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8.6057  	    $EGREP "$file_magic_regex" > /dev/null; then
  8.6058 @@ -5565,17 +6360,17 @@
  8.6059  
  8.6060  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8.6061  if test -n "$MAGIC_CMD"; then
  8.6062 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8.6063 -echo "${ECHO_T}$MAGIC_CMD" >&6
  8.6064 -else
  8.6065 -  echo "$as_me:$LINENO: result: no" >&5
  8.6066 -echo "${ECHO_T}no" >&6
  8.6067 +  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8.6068 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
  8.6069 +else
  8.6070 +  { echo "$as_me:$LINENO: result: no" >&5
  8.6071 +echo "${ECHO_T}no" >&6; }
  8.6072  fi
  8.6073  
  8.6074  if test -z "$lt_cv_path_MAGIC_CMD"; then
  8.6075    if test -n "$ac_tool_prefix"; then
  8.6076 -    echo "$as_me:$LINENO: checking for file" >&5
  8.6077 -echo $ECHO_N "checking for file... $ECHO_C" >&6
  8.6078 +    { echo "$as_me:$LINENO: checking for file" >&5
  8.6079 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  8.6080  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8.6081    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6082  else
  8.6083 @@ -5595,7 +6390,7 @@
  8.6084        if test -n "$file_magic_test_file"; then
  8.6085  	case $deplibs_check_method in
  8.6086  	"file_magic "*)
  8.6087 -	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  8.6088 +	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8.6089  	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8.6090  	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8.6091  	    $EGREP "$file_magic_regex" > /dev/null; then
  8.6092 @@ -5627,11 +6422,11 @@
  8.6093  
  8.6094  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8.6095  if test -n "$MAGIC_CMD"; then
  8.6096 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8.6097 -echo "${ECHO_T}$MAGIC_CMD" >&6
  8.6098 -else
  8.6099 -  echo "$as_me:$LINENO: result: no" >&5
  8.6100 -echo "${ECHO_T}no" >&6
  8.6101 +  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8.6102 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
  8.6103 +else
  8.6104 +  { echo "$as_me:$LINENO: result: no" >&5
  8.6105 +echo "${ECHO_T}no" >&6; }
  8.6106  fi
  8.6107  
  8.6108    else
  8.6109 @@ -5643,24 +6438,336 @@
  8.6110    ;;
  8.6111  esac
  8.6112  
  8.6113 +
  8.6114 +  case $host_os in
  8.6115 +    rhapsody* | darwin*)
  8.6116 +    if test -n "$ac_tool_prefix"; then
  8.6117 +  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8.6118 +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8.6119 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.6120 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.6121 +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  8.6122 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6123 +else
  8.6124 +  if test -n "$DSYMUTIL"; then
  8.6125 +  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8.6126 +else
  8.6127 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.6128 +for as_dir in $PATH
  8.6129 +do
  8.6130 +  IFS=$as_save_IFS
  8.6131 +  test -z "$as_dir" && as_dir=.
  8.6132 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.6133 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.6134 +    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8.6135 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.6136 +    break 2
  8.6137 +  fi
  8.6138 +done
  8.6139 +done
  8.6140 +IFS=$as_save_IFS
  8.6141 +
  8.6142 +fi
  8.6143 +fi
  8.6144 +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8.6145 +if test -n "$DSYMUTIL"; then
  8.6146 +  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  8.6147 +echo "${ECHO_T}$DSYMUTIL" >&6; }
  8.6148 +else
  8.6149 +  { echo "$as_me:$LINENO: result: no" >&5
  8.6150 +echo "${ECHO_T}no" >&6; }
  8.6151 +fi
  8.6152 +
  8.6153 +
  8.6154 +fi
  8.6155 +if test -z "$ac_cv_prog_DSYMUTIL"; then
  8.6156 +  ac_ct_DSYMUTIL=$DSYMUTIL
  8.6157 +  # Extract the first word of "dsymutil", so it can be a program name with args.
  8.6158 +set dummy dsymutil; ac_word=$2
  8.6159 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.6160 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.6161 +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  8.6162 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6163 +else
  8.6164 +  if test -n "$ac_ct_DSYMUTIL"; then
  8.6165 +  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8.6166 +else
  8.6167 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.6168 +for as_dir in $PATH
  8.6169 +do
  8.6170 +  IFS=$as_save_IFS
  8.6171 +  test -z "$as_dir" && as_dir=.
  8.6172 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.6173 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.6174 +    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8.6175 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.6176 +    break 2
  8.6177 +  fi
  8.6178 +done
  8.6179 +done
  8.6180 +IFS=$as_save_IFS
  8.6181 +
  8.6182 +fi
  8.6183 +fi
  8.6184 +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8.6185 +if test -n "$ac_ct_DSYMUTIL"; then
  8.6186 +  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  8.6187 +echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  8.6188 +else
  8.6189 +  { echo "$as_me:$LINENO: result: no" >&5
  8.6190 +echo "${ECHO_T}no" >&6; }
  8.6191 +fi
  8.6192 +
  8.6193 +  if test "x$ac_ct_DSYMUTIL" = x; then
  8.6194 +    DSYMUTIL=":"
  8.6195 +  else
  8.6196 +    case $cross_compiling:$ac_tool_warned in
  8.6197 +yes:)
  8.6198 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8.6199 +whose name does not start with the host triplet.  If you think this
  8.6200 +configuration is useful to you, please write to autoconf@gnu.org." >&5
  8.6201 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8.6202 +whose name does not start with the host triplet.  If you think this
  8.6203 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8.6204 +ac_tool_warned=yes ;;
  8.6205 +esac
  8.6206 +    DSYMUTIL=$ac_ct_DSYMUTIL
  8.6207 +  fi
  8.6208 +else
  8.6209 +  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8.6210 +fi
  8.6211 +
  8.6212 +    if test -n "$ac_tool_prefix"; then
  8.6213 +  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8.6214 +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8.6215 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.6216 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.6217 +if test "${ac_cv_prog_NMEDIT+set}" = set; then
  8.6218 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6219 +else
  8.6220 +  if test -n "$NMEDIT"; then
  8.6221 +  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8.6222 +else
  8.6223 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.6224 +for as_dir in $PATH
  8.6225 +do
  8.6226 +  IFS=$as_save_IFS
  8.6227 +  test -z "$as_dir" && as_dir=.
  8.6228 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.6229 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.6230 +    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8.6231 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.6232 +    break 2
  8.6233 +  fi
  8.6234 +done
  8.6235 +done
  8.6236 +IFS=$as_save_IFS
  8.6237 +
  8.6238 +fi
  8.6239 +fi
  8.6240 +NMEDIT=$ac_cv_prog_NMEDIT
  8.6241 +if test -n "$NMEDIT"; then
  8.6242 +  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  8.6243 +echo "${ECHO_T}$NMEDIT" >&6; }
  8.6244 +else
  8.6245 +  { echo "$as_me:$LINENO: result: no" >&5
  8.6246 +echo "${ECHO_T}no" >&6; }
  8.6247 +fi
  8.6248 +
  8.6249 +
  8.6250 +fi
  8.6251 +if test -z "$ac_cv_prog_NMEDIT"; then
  8.6252 +  ac_ct_NMEDIT=$NMEDIT
  8.6253 +  # Extract the first word of "nmedit", so it can be a program name with args.
  8.6254 +set dummy nmedit; ac_word=$2
  8.6255 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.6256 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8.6257 +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  8.6258 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6259 +else
  8.6260 +  if test -n "$ac_ct_NMEDIT"; then
  8.6261 +  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8.6262 +else
  8.6263 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.6264 +for as_dir in $PATH
  8.6265 +do
  8.6266 +  IFS=$as_save_IFS
  8.6267 +  test -z "$as_dir" && as_dir=.
  8.6268 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.6269 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8.6270 +    ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8.6271 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.6272 +    break 2
  8.6273 +  fi
  8.6274 +done
  8.6275 +done
  8.6276 +IFS=$as_save_IFS
  8.6277 +
  8.6278 +fi
  8.6279 +fi
  8.6280 +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8.6281 +if test -n "$ac_ct_NMEDIT"; then
  8.6282 +  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  8.6283 +echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  8.6284 +else
  8.6285 +  { echo "$as_me:$LINENO: result: no" >&5
  8.6286 +echo "${ECHO_T}no" >&6; }
  8.6287 +fi
  8.6288 +
  8.6289 +  if test "x$ac_ct_NMEDIT" = x; then
  8.6290 +    NMEDIT=":"
  8.6291 +  else
  8.6292 +    case $cross_compiling:$ac_tool_warned in
  8.6293 +yes:)
  8.6294 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8.6295 +whose name does not start with the host triplet.  If you think this
  8.6296 +configuration is useful to you, please write to autoconf@gnu.org." >&5
  8.6297 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8.6298 +whose name does not start with the host triplet.  If you think this
  8.6299 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8.6300 +ac_tool_warned=yes ;;
  8.6301 +esac
  8.6302 +    NMEDIT=$ac_ct_NMEDIT
  8.6303 +  fi
  8.6304 +else
  8.6305 +  NMEDIT="$ac_cv_prog_NMEDIT"
  8.6306 +fi
  8.6307 +
  8.6308 +
  8.6309 +    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  8.6310 +echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  8.6311 +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  8.6312 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6313 +else
  8.6314 +  lt_cv_apple_cc_single_mod=no
  8.6315 +      if test -z "${LT_MULTI_MODULE}"; then
  8.6316 +   # By default we will add the -single_module flag. You can override
  8.6317 +   # by either setting the environment variable LT_MULTI_MODULE
  8.6318 +   # non-empty at configure time, or by adding -multi_module to the
  8.6319 +   # link flags.
  8.6320 +   echo "int foo(void){return 1;}" > conftest.c
  8.6321 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8.6322 +     -dynamiclib ${wl}-single_module conftest.c
  8.6323 +   if test -f libconftest.dylib; then
  8.6324 +     lt_cv_apple_cc_single_mod=yes
  8.6325 +     rm -rf libconftest.dylib*
  8.6326 +   fi
  8.6327 +   rm conftest.c
  8.6328 +      fi
  8.6329 +fi
  8.6330 +{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  8.6331 +echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  8.6332 +    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  8.6333 +echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  8.6334 +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  8.6335 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6336 +else
  8.6337 +  lt_cv_ld_exported_symbols_list=no
  8.6338 +      save_LDFLAGS=$LDFLAGS
  8.6339 +      echo "_main" > conftest.sym
  8.6340 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8.6341 +      cat >conftest.$ac_ext <<_ACEOF
  8.6342 +/* confdefs.h.  */
  8.6343 +_ACEOF
  8.6344 +cat confdefs.h >>conftest.$ac_ext
  8.6345 +cat >>conftest.$ac_ext <<_ACEOF
  8.6346 +/* end confdefs.h.  */
  8.6347 +
  8.6348 +int
  8.6349 +main ()
  8.6350 +{
  8.6351 +
  8.6352 +  ;
  8.6353 +  return 0;
  8.6354 +}
  8.6355 +_ACEOF
  8.6356 +rm -f conftest.$ac_objext conftest$ac_exeext
  8.6357 +if { (ac_try="$ac_link"
  8.6358 +case "(($ac_try" in
  8.6359 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.6360 +  *) ac_try_echo=$ac_try;;
  8.6361 +esac
  8.6362 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.6363 +  (eval "$ac_link") 2>conftest.er1
  8.6364 +  ac_status=$?
  8.6365 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.6366 +  rm -f conftest.er1
  8.6367 +  cat conftest.err >&5
  8.6368 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.6369 +  (exit $ac_status); } && {
  8.6370 +	 test -z "$ac_c_werror_flag" ||
  8.6371 +	 test ! -s conftest.err
  8.6372 +       } && test -s conftest$ac_exeext &&
  8.6373 +       $as_test_x conftest$ac_exeext; then
  8.6374 +  lt_cv_ld_exported_symbols_list=yes
  8.6375 +else
  8.6376 +  echo "$as_me: failed program was:" >&5
  8.6377 +sed 's/^/| /' conftest.$ac_ext >&5
  8.6378 +
  8.6379 +	lt_cv_ld_exported_symbols_list=no
  8.6380 +fi
  8.6381 +
  8.6382 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8.6383 +      conftest$ac_exeext conftest.$ac_ext
  8.6384 +   LDFLAGS="$save_LDFLAGS"
  8.6385 +
  8.6386 +fi
  8.6387 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  8.6388 +echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  8.6389 +    case $host_os in
  8.6390 +    rhapsody* | darwin1.[0123])
  8.6391 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  8.6392 +    darwin1.*)
  8.6393 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8.6394 +    darwin*)
  8.6395 +      # if running on 10.5 or later, the deployment target defaults
  8.6396 +      # to the OS version, if on x86, and 10.4, the deployment
  8.6397 +      # target defaults to 10.4. Don't you love it?
  8.6398 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8.6399 +   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8.6400 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8.6401 +   10.[012]*)
  8.6402 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8.6403 +   10.*)
  8.6404 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8.6405 +      esac
  8.6406 +    ;;
  8.6407 +  esac
  8.6408 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  8.6409 +      _lt_dar_single_mod='$single_module'
  8.6410 +    fi
  8.6411 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  8.6412 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  8.6413 +    else
  8.6414 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  8.6415 +    fi
  8.6416 +    if test "$DSYMUTIL" != ":"; then
  8.6417 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
  8.6418 +    else
  8.6419 +      _lt_dsymutil=
  8.6420 +    fi
  8.6421 +    ;;
  8.6422 +  esac
  8.6423 +
  8.6424 +
  8.6425  enable_dlopen=no
  8.6426  enable_win32_dll=no
  8.6427  
  8.6428 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  8.6429 +# Check whether --enable-libtool-lock was given.
  8.6430  if test "${enable_libtool_lock+set}" = set; then
  8.6431 -  enableval="$enable_libtool_lock"
  8.6432 -
  8.6433 -fi;
  8.6434 +  enableval=$enable_libtool_lock;
  8.6435 +fi
  8.6436 +
  8.6437  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8.6438  
  8.6439  
  8.6440 -# Check whether --with-pic or --without-pic was given.
  8.6441 +# Check whether --with-pic was given.
  8.6442  if test "${with_pic+set}" = set; then
  8.6443 -  withval="$with_pic"
  8.6444 -  pic_mode="$withval"
  8.6445 +  withval=$with_pic; pic_mode="$withval"
  8.6446  else
  8.6447    pic_mode=default
  8.6448 -fi;
  8.6449 +fi
  8.6450 +
  8.6451  test -z "$pic_mode" && pic_mode=default
  8.6452  
  8.6453  # Use C for the default configuration in the libtool script
  8.6454 @@ -5681,77 +6788,34 @@
  8.6455  objext=$objext
  8.6456  
  8.6457  # Code to be used in simple compile tests
  8.6458 -lt_simple_compile_test_code="int some_variable = 0;\n"
  8.6459 +lt_simple_compile_test_code="int some_variable = 0;"
  8.6460  
  8.6461  # Code to be used in simple link tests
  8.6462 -lt_simple_link_test_code='int main(){return(0);}\n'
  8.6463 +lt_simple_link_test_code='int main(){return(0);}'
  8.6464  
  8.6465  
  8.6466  # If no C compiler was specified, use CC.
  8.6467  LTCC=${LTCC-"$CC"}
  8.6468  
  8.6469 +# If no C compiler flags were specified, use CFLAGS.
  8.6470 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8.6471 +
  8.6472  # Allow CC to be a program name with arguments.
  8.6473  compiler=$CC
  8.6474  
  8.6475  
  8.6476 -#
  8.6477 -# Check for any special shared library compilation flags.
  8.6478 -#
  8.6479 -lt_prog_cc_shlib=
  8.6480 -if test "$GCC" = no; then
  8.6481 -  case $host_os in
  8.6482 -  sco3.2v5*)
  8.6483 -    lt_prog_cc_shlib='-belf'
  8.6484 -    ;;
  8.6485 -  esac
  8.6486 -fi
  8.6487 -if test -n "$lt_prog_cc_shlib"; then
  8.6488 -  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  8.6489 -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  8.6490 -  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
  8.6491 -  else
  8.6492 -    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  8.6493 -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  8.6494 -    lt_cv_prog_cc_can_build_shared=no
  8.6495 -  fi
  8.6496 -fi
  8.6497 -
  8.6498 -
  8.6499 -#
  8.6500 -# Check to make sure the static flag actually works.
  8.6501 -#
  8.6502 -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  8.6503 -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  8.6504 -if test "${lt_prog_compiler_static_works+set}" = set; then
  8.6505 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6506 -else
  8.6507 -  lt_prog_compiler_static_works=no
  8.6508 -   save_LDFLAGS="$LDFLAGS"
  8.6509 -   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  8.6510 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
  8.6511 -   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8.6512 -     # The compiler can only warn and ignore the option if not recognized
  8.6513 -     # So say no if there are warnings
  8.6514 -     if test -s conftest.err; then
  8.6515 -       # Append any errors to the config.log.
  8.6516 -       cat conftest.err 1>&5
  8.6517 -     else
  8.6518 -       lt_prog_compiler_static_works=yes
  8.6519 -     fi
  8.6520 -   fi
  8.6521 -   $rm conftest*
  8.6522 -   LDFLAGS="$save_LDFLAGS"
  8.6523 -
  8.6524 -fi
  8.6525 -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  8.6526 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  8.6527 -
  8.6528 -if test x"$lt_prog_compiler_static_works" = xyes; then
  8.6529 -    :
  8.6530 -else
  8.6531 -    lt_prog_compiler_static=
  8.6532 -fi
  8.6533 -
  8.6534 +# save warnings/boilerplate of simple test code
  8.6535 +ac_outfile=conftest.$ac_objext
  8.6536 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8.6537 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8.6538 +_lt_compiler_boilerplate=`cat conftest.err`
  8.6539 +$rm conftest*
  8.6540 +
  8.6541 +ac_outfile=conftest.$ac_objext
  8.6542 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8.6543 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8.6544 +_lt_linker_boilerplate=`cat conftest.err`
  8.6545 +$rm -r conftest*
  8.6546  
  8.6547  
  8.6548  
  8.6549 @@ -5761,14 +6825,14 @@
  8.6550    lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8.6551  
  8.6552  
  8.6553 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8.6554 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  8.6555 +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8.6556 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  8.6557  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8.6558    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6559  else
  8.6560    lt_cv_prog_compiler_rtti_exceptions=no
  8.6561    ac_outfile=conftest.$ac_objext
  8.6562 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8.6563 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8.6564     lt_compiler_flag="-fno-rtti -fno-exceptions"
  8.6565     # Insert the option either (1) after the last *FLAGS variable, or
  8.6566     # (2) before a word containing "conftest.", or (3) at the end.
  8.6567 @@ -5776,26 +6840,28 @@
  8.6568     # with a dollar sign (not a hyphen), so the echo should work correctly.
  8.6569     # The option is referenced via a variable to avoid confusing sed.
  8.6570     lt_compile=`echo "$ac_compile" | $SED \
  8.6571 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  8.6572 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8.6573     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8.6574     -e 's:$: $lt_compiler_flag:'`
  8.6575 -   (eval echo "\"\$as_me:5782: $lt_compile\"" >&5)
  8.6576 +   (eval echo "\"\$as_me:6846: $lt_compile\"" >&5)
  8.6577     (eval "$lt_compile" 2>conftest.err)
  8.6578     ac_status=$?
  8.6579     cat conftest.err >&5
  8.6580 -   echo "$as_me:5786: \$? = $ac_status" >&5
  8.6581 +   echo "$as_me:6850: \$? = $ac_status" >&5
  8.6582     if (exit $ac_status) && test -s "$ac_outfile"; then
  8.6583       # The compiler can only warn and ignore the option if not recognized
  8.6584 -     # So say no if there are warnings
  8.6585 -     if test ! -s conftest.err; then
  8.6586 +     # So say no if there are warnings other than the usual output.
  8.6587 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8.6588 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8.6589 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8.6590         lt_cv_prog_compiler_rtti_exceptions=yes
  8.6591       fi
  8.6592     fi
  8.6593     $rm conftest*
  8.6594  
  8.6595  fi
  8.6596 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8.6597 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  8.6598 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8.6599 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8.6600  
  8.6601  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8.6602      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8.6603 @@ -5809,8 +6875,8 @@
  8.6604  lt_prog_compiler_pic=
  8.6605  lt_prog_compiler_static=
  8.6606  
  8.6607 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8.6608 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  8.6609 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8.6610 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  8.6611  
  8.6612    if test "$GCC" = yes; then
  8.6613      lt_prog_compiler_wl='-Wl,'
  8.6614 @@ -5832,13 +6898,15 @@
  8.6615        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8.6616        ;;
  8.6617  
  8.6618 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8.6619 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8.6620        # PIC is the default for these OSes.
  8.6621        ;;
  8.6622  
  8.6623 -    mingw* | pw32* | os2*)
  8.6624 +    mingw* | cygwin* | pw32* | os2*)
  8.6625        # This hack is so that the source file can tell whether it is being
  8.6626        # built for inclusion in a dll (and should export symbols for example).
  8.6627 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8.6628 +      # (--disable-auto-import) libraries
  8.6629        lt_prog_compiler_pic='-DDLL_EXPORT'
  8.6630        ;;
  8.6631  
  8.6632 @@ -5848,6 +6916,11 @@
  8.6633        lt_prog_compiler_pic='-fno-common'
  8.6634        ;;
  8.6635  
  8.6636 +    interix[3-9]*)
  8.6637 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8.6638 +      # Instead, we relocate shared libraries at runtime.
  8.6639 +      ;;
  8.6640 +
  8.6641      msdosdjgpp*)
  8.6642        # Just because we use GCC doesn't mean we suddenly get shared libraries
  8.6643        # on systems that don't support them.
  8.6644 @@ -5864,7 +6937,7 @@
  8.6645      hpux*)
  8.6646        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8.6647        # not for PA HP-UX.
  8.6648 -      case "$host_cpu" in
  8.6649 +      case $host_cpu in
  8.6650        hppa*64*|ia64*)
  8.6651  	# +Z the default
  8.6652  	;;
  8.6653 @@ -5893,7 +6966,7 @@
  8.6654        darwin*)
  8.6655          # PIC is the default on this platform
  8.6656          # Common symbols not allowed in MH_DYLIB files
  8.6657 -       case "$cc_basename" in
  8.6658 +       case $cc_basename in
  8.6659           xlc*)
  8.6660           lt_prog_compiler_pic='-qnocommon'
  8.6661           lt_prog_compiler_wl='-Wl,'
  8.6662 @@ -5901,7 +6974,7 @@
  8.6663         esac
  8.6664         ;;
  8.6665  
  8.6666 -    mingw* | pw32* | os2*)
  8.6667 +    mingw* | cygwin* | pw32* | os2*)
  8.6668        # This hack is so that the source file can tell whether it is being
  8.6669        # built for inclusion in a dll (and should export symbols for example).
  8.6670        lt_prog_compiler_pic='-DDLL_EXPORT'
  8.6671 @@ -5911,7 +6984,7 @@
  8.6672        lt_prog_compiler_wl='-Wl,'
  8.6673        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8.6674        # not for PA HP-UX.
  8.6675 -      case "$host_cpu" in
  8.6676 +      case $host_cpu in
  8.6677        hppa*64*|ia64*)
  8.6678  	# +Z the default
  8.6679  	;;
  8.6680 @@ -5934,25 +7007,41 @@
  8.6681        lt_prog_compiler_static='-Bstatic'
  8.6682        ;;
  8.6683  
  8.6684 -    linux*)
  8.6685 +    linux* | k*bsd*-gnu)
  8.6686        case $cc_basename in
  8.6687        icc* | ecc*)
  8.6688  	lt_prog_compiler_wl='-Wl,'
  8.6689  	lt_prog_compiler_pic='-KPIC'
  8.6690  	lt_prog_compiler_static='-static'
  8.6691          ;;
  8.6692 -      pgcc | pgf77 | pgf90)
  8.6693 +      pgcc* | pgf77* | pgf90* | pgf95*)
  8.6694          # Portland Group compilers (*not* the Pentium gcc compiler,
  8.6695  	# which looks to be a dead project)
  8.6696  	lt_prog_compiler_wl='-Wl,'
  8.6697  	lt_prog_compiler_pic='-fpic'
  8.6698 -	lt_prog_compiler_static='-static'
  8.6699 +	lt_prog_compiler_static='-Bstatic'
  8.6700          ;;
  8.6701        ccc*)
  8.6702          lt_prog_compiler_wl='-Wl,'
  8.6703          # All Alpha code is PIC.
  8.6704          lt_prog_compiler_static='-non_shared'
  8.6705          ;;
  8.6706 +      *)
  8.6707 +        case `$CC -V 2>&1 | sed 5q` in
  8.6708 +	*Sun\ C*)
  8.6709 +	  # Sun C 5.9
  8.6710 +	  lt_prog_compiler_pic='-KPIC'
  8.6711 +	  lt_prog_compiler_static='-Bstatic'
  8.6712 +	  lt_prog_compiler_wl='-Wl,'
  8.6713 +	  ;;
  8.6714 +	*Sun\ F*)
  8.6715 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8.6716 +	  lt_prog_compiler_pic='-KPIC'
  8.6717 +	  lt_prog_compiler_static='-Bstatic'
  8.6718 +	  lt_prog_compiler_wl=''
  8.6719 +	  ;;
  8.6720 +	esac
  8.6721 +	;;
  8.6722        esac
  8.6723        ;;
  8.6724  
  8.6725 @@ -5962,15 +7051,19 @@
  8.6726        lt_prog_compiler_static='-non_shared'
  8.6727        ;;
  8.6728  
  8.6729 -    sco3.2v5*)
  8.6730 -      lt_prog_compiler_pic='-Kpic'
  8.6731 -      lt_prog_compiler_static='-dn'
  8.6732 +    rdos*)
  8.6733 +      lt_prog_compiler_static='-non_shared'
  8.6734        ;;
  8.6735  
  8.6736      solaris*)
  8.6737 -      lt_prog_compiler_wl='-Wl,'
  8.6738        lt_prog_compiler_pic='-KPIC'
  8.6739        lt_prog_compiler_static='-Bstatic'
  8.6740 +      case $cc_basename in
  8.6741 +      f77* | f90* | f95*)
  8.6742 +	lt_prog_compiler_wl='-Qoption ld ';;
  8.6743 +      *)
  8.6744 +	lt_prog_compiler_wl='-Wl,';;
  8.6745 +      esac
  8.6746        ;;
  8.6747  
  8.6748      sunos4*)
  8.6749 @@ -5979,7 +7072,7 @@
  8.6750        lt_prog_compiler_static='-Bstatic'
  8.6751        ;;
  8.6752  
  8.6753 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8.6754 +    sysv4 | sysv4.2uw2* | sysv4.3*)
  8.6755        lt_prog_compiler_wl='-Wl,'
  8.6756        lt_prog_compiler_pic='-KPIC'
  8.6757        lt_prog_compiler_static='-Bstatic'
  8.6758 @@ -5992,6 +7085,12 @@
  8.6759        fi
  8.6760        ;;
  8.6761  
  8.6762 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8.6763 +      lt_prog_compiler_wl='-Wl,'
  8.6764 +      lt_prog_compiler_pic='-KPIC'
  8.6765 +      lt_prog_compiler_static='-Bstatic'
  8.6766 +      ;;
  8.6767 +
  8.6768      unicos*)
  8.6769        lt_prog_compiler_wl='-Wl,'
  8.6770        lt_prog_compiler_can_build_shared=no
  8.6771 @@ -6008,22 +7107,22 @@
  8.6772      esac
  8.6773    fi
  8.6774  
  8.6775 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8.6776 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  8.6777 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8.6778 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  8.6779  
  8.6780  #
  8.6781  # Check to make sure the PIC flag actually works.
  8.6782  #
  8.6783  if test -n "$lt_prog_compiler_pic"; then
  8.6784  
  8.6785 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8.6786 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  8.6787 -if test "${lt_prog_compiler_pic_works+set}" = set; then
  8.6788 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6789 -else
  8.6790 -  lt_prog_compiler_pic_works=no
  8.6791 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8.6792 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  8.6793 +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8.6794 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6795 +else
  8.6796 +  lt_cv_prog_compiler_pic_works=no
  8.6797    ac_outfile=conftest.$ac_objext
  8.6798 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8.6799 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8.6800     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8.6801     # Insert the option either (1) after the last *FLAGS variable, or
  8.6802     # (2) before a word containing "conftest.", or (3) at the end.
  8.6803 @@ -6031,28 +7130,30 @@
  8.6804     # with a dollar sign (not a hyphen), so the echo should work correctly.
  8.6805     # The option is referenced via a variable to avoid confusing sed.
  8.6806     lt_compile=`echo "$ac_compile" | $SED \
  8.6807 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  8.6808 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8.6809     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8.6810     -e 's:$: $lt_compiler_flag:'`
  8.6811 -   (eval echo "\"\$as_me:6037: $lt_compile\"" >&5)
  8.6812 +   (eval echo "\"\$as_me:7136: $lt_compile\"" >&5)
  8.6813     (eval "$lt_compile" 2>conftest.err)
  8.6814     ac_status=$?
  8.6815     cat conftest.err >&5
  8.6816 -   echo "$as_me:6041: \$? = $ac_status" >&5
  8.6817 +   echo "$as_me:7140: \$? = $ac_status" >&5
  8.6818     if (exit $ac_status) && test -s "$ac_outfile"; then
  8.6819       # The compiler can only warn and ignore the option if not recognized
  8.6820 -     # So say no if there are warnings
  8.6821 -     if test ! -s conftest.err; then
  8.6822 -       lt_prog_compiler_pic_works=yes
  8.6823 +     # So say no if there are warnings other than the usual output.
  8.6824 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8.6825 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8.6826 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8.6827 +       lt_cv_prog_compiler_pic_works=yes
  8.6828       fi
  8.6829     fi
  8.6830     $rm conftest*
  8.6831  
  8.6832  fi
  8.6833 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  8.6834 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  8.6835 -
  8.6836 -if test x"$lt_prog_compiler_pic_works" = xyes; then
  8.6837 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8.6838 +echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  8.6839 +
  8.6840 +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8.6841      case $lt_prog_compiler_pic in
  8.6842       "" | " "*) ;;
  8.6843       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8.6844 @@ -6063,7 +7164,7 @@
  8.6845  fi
  8.6846  
  8.6847  fi
  8.6848 -case "$host_os" in
  8.6849 +case $host_os in
  8.6850    # For platforms which do not support PIC, -DPIC is meaningless:
  8.6851    *djgpp*)
  8.6852      lt_prog_compiler_pic=
  8.6853 @@ -6073,8 +7174,50 @@
  8.6854      ;;
  8.6855  esac
  8.6856  
  8.6857 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8.6858 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  8.6859 +#
  8.6860 +# Check to make sure the static flag actually works.
  8.6861 +#
  8.6862 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8.6863 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8.6864 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  8.6865 +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8.6866 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6867 +else
  8.6868 +  lt_cv_prog_compiler_static_works=no
  8.6869 +   save_LDFLAGS="$LDFLAGS"
  8.6870 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8.6871 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8.6872 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8.6873 +     # The linker can only warn and ignore the option if not recognized
  8.6874 +     # So say no if there are warnings
  8.6875 +     if test -s conftest.err; then
  8.6876 +       # Append any errors to the config.log.
  8.6877 +       cat conftest.err 1>&5
  8.6878 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8.6879 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8.6880 +       if diff conftest.exp conftest.er2 >/dev/null; then
  8.6881 +         lt_cv_prog_compiler_static_works=yes
  8.6882 +       fi
  8.6883 +     else
  8.6884 +       lt_cv_prog_compiler_static_works=yes
  8.6885 +     fi
  8.6886 +   fi
  8.6887 +   $rm -r conftest*
  8.6888 +   LDFLAGS="$save_LDFLAGS"
  8.6889 +
  8.6890 +fi
  8.6891 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8.6892 +echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  8.6893 +
  8.6894 +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8.6895 +    :
  8.6896 +else
  8.6897 +    lt_prog_compiler_static=
  8.6898 +fi
  8.6899 +
  8.6900 +
  8.6901 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8.6902 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  8.6903  if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8.6904    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.6905  else
  8.6906 @@ -6083,7 +7226,7 @@
  8.6907     mkdir conftest
  8.6908     cd conftest
  8.6909     mkdir out
  8.6910 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8.6911 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8.6912  
  8.6913     lt_compiler_flag="-o out/conftest2.$ac_objext"
  8.6914     # Insert the option either (1) after the last *FLAGS variable, or
  8.6915 @@ -6091,23 +7234,25 @@
  8.6916     # Note that $ac_compile itself does not contain backslashes and begins
  8.6917     # with a dollar sign (not a hyphen), so the echo should work correctly.
  8.6918     lt_compile=`echo "$ac_compile" | $SED \
  8.6919 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  8.6920 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8.6921     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8.6922     -e 's:$: $lt_compiler_flag:'`
  8.6923 -   (eval echo "\"\$as_me:6097: $lt_compile\"" >&5)
  8.6924 +   (eval echo "\"\$as_me:7240: $lt_compile\"" >&5)
  8.6925     (eval "$lt_compile" 2>out/conftest.err)
  8.6926     ac_status=$?
  8.6927     cat out/conftest.err >&5
  8.6928 -   echo "$as_me:6101: \$? = $ac_status" >&5
  8.6929 +   echo "$as_me:7244: \$? = $ac_status" >&5
  8.6930     if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8.6931     then
  8.6932       # The compiler can only warn and ignore the option if not recognized
  8.6933       # So say no if there are warnings
  8.6934 -     if test ! -s out/conftest.err; then
  8.6935 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8.6936 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8.6937 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8.6938         lt_cv_prog_compiler_c_o=yes
  8.6939       fi
  8.6940     fi
  8.6941 -   chmod u+w .
  8.6942 +   chmod u+w . 2>&5
  8.6943     $rm conftest*
  8.6944     # SGI C++ compiler will create directory out/ii_files/ for
  8.6945     # template instantiation
  8.6946 @@ -6118,23 +7263,23 @@
  8.6947     $rm conftest*
  8.6948  
  8.6949  fi
  8.6950 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8.6951 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  8.6952 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8.6953 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  8.6954  
  8.6955  
  8.6956  hard_links="nottested"
  8.6957  if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8.6958    # do not overwrite the value of need_locks provided by the user
  8.6959 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8.6960 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  8.6961 +  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8.6962 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  8.6963    hard_links=yes
  8.6964    $rm conftest*
  8.6965    ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8.6966    touch conftest.a
  8.6967    ln conftest.a conftest.b 2>&5 || hard_links=no
  8.6968    ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8.6969 -  echo "$as_me:$LINENO: result: $hard_links" >&5
  8.6970 -echo "${ECHO_T}$hard_links" >&6
  8.6971 +  { echo "$as_me:$LINENO: result: $hard_links" >&5
  8.6972 +echo "${ECHO_T}$hard_links" >&6; }
  8.6973    if test "$hard_links" = no; then
  8.6974      { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8.6975  echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8.6976 @@ -6144,8 +7289,8 @@
  8.6977    need_locks=no
  8.6978  fi
  8.6979  
  8.6980 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8.6981 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  8.6982 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8.6983 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  8.6984  
  8.6985    runpath_var=
  8.6986    allow_undefined_flag=
  8.6987 @@ -6176,13 +7321,24 @@
  8.6988    # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8.6989    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8.6990    # as well as any symbol that contains `d'.
  8.6991 -  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  8.6992 +  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8.6993    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8.6994    # platforms (ab)use it in PIC code, but their linkers get confused if
  8.6995    # the symbol is explicitly referenced.  Since portable code cannot
  8.6996    # rely on this symbol name, it's probably fine to never include it in
  8.6997    # preloaded symbol tables.
  8.6998 +  # Exclude shared library initialization/finalization symbols.
  8.6999    extract_expsyms_cmds=
  8.7000 +  # Just being paranoid about ensuring that cc_basename is set.
  8.7001 +  for cc_temp in $compiler""; do
  8.7002 +  case $cc_temp in
  8.7003 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8.7004 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8.7005 +    \-*) ;;
  8.7006 +    *) break;;
  8.7007 +  esac
  8.7008 +done
  8.7009 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8.7010  
  8.7011    case $host_os in
  8.7012    cygwin* | mingw* | pw32*)
  8.7013 @@ -6193,6 +7349,10 @@
  8.7014        with_gnu_ld=no
  8.7015      fi
  8.7016      ;;
  8.7017 +  interix*)
  8.7018 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
  8.7019 +    with_gnu_ld=yes
  8.7020 +    ;;
  8.7021    openbsd*)
  8.7022      with_gnu_ld=no
  8.7023      ;;
  8.7024 @@ -6203,9 +7363,30 @@
  8.7025      # If archive_cmds runs LD, not CC, wlarc should be empty
  8.7026      wlarc='${wl}'
  8.7027  
  8.7028 +    # Set some defaults for GNU ld with shared library support. These
  8.7029 +    # are reset later if shared libraries are not supported. Putting them
  8.7030 +    # here allows them to be overridden if necessary.
  8.7031 +    runpath_var=LD_RUN_PATH
  8.7032 +    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  8.7033 +    export_dynamic_flag_spec='${wl}--export-dynamic'
  8.7034 +    # ancient GNU ld didn't support --whole-archive et. al.
  8.7035 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  8.7036 +	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8.7037 +      else
  8.7038 +  	whole_archive_flag_spec=
  8.7039 +    fi
  8.7040 +    supports_anon_versioning=no
  8.7041 +    case `$LD -v 2>/dev/null` in
  8.7042 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8.7043 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8.7044 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8.7045 +      *\ 2.11.*) ;; # other 2.11 versions
  8.7046 +      *) supports_anon_versioning=yes ;;
  8.7047 +    esac
  8.7048 +
  8.7049      # See if GNU ld supports shared libraries.
  8.7050      case $host_os in
  8.7051 -    aix3* | aix4* | aix5*)
  8.7052 +    aix[3-9]*)
  8.7053        # On AIX/PPC, the GNU linker is very broken
  8.7054        if test "$host_cpu" != ia64; then
  8.7055  	ld_shlibs=no
  8.7056 @@ -6253,10 +7434,10 @@
  8.7057        allow_undefined_flag=unsupported
  8.7058        always_export_symbols=no
  8.7059        enable_shared_with_static_runtimes=yes
  8.7060 -      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  8.7061 +      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8.7062  
  8.7063        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8.7064 -        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8.7065 +        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8.7066  	# If the export-symbols file already is a .def file (1st line
  8.7067  	# is EXPORTS), use it as is; otherwise, prepend...
  8.7068  	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8.7069 @@ -6265,13 +7446,69 @@
  8.7070  	  echo EXPORTS > $output_objdir/$soname.def;
  8.7071  	  cat $export_symbols >> $output_objdir/$soname.def;
  8.7072  	fi~
  8.7073 -	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  8.7074 +	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8.7075        else
  8.7076  	ld_shlibs=no
  8.7077        fi
  8.7078        ;;
  8.7079  
  8.7080 -    netbsd*)
  8.7081 +    interix[3-9]*)
  8.7082 +      hardcode_direct=no
  8.7083 +      hardcode_shlibpath_var=no
  8.7084 +      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8.7085 +      export_dynamic_flag_spec='${wl}-E'
  8.7086 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8.7087 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
  8.7088 +      # default) and relocated if they conflict, which is a slow very memory
  8.7089 +      # consuming and fragmenting process.  To avoid this, we pick a random,
  8.7090 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8.7091 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  8.7092 +      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8.7093 +      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'
  8.7094 +      ;;
  8.7095 +
  8.7096 +    gnu* | linux* | k*bsd*-gnu)
  8.7097 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8.7098 +	tmp_addflag=
  8.7099 +	case $cc_basename,$host_cpu in
  8.7100 +	pgcc*)				# Portland Group C compiler
  8.7101 +	  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'
  8.7102 +	  tmp_addflag=' $pic_flag'
  8.7103 +	  ;;
  8.7104 +	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  8.7105 +	  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'
  8.7106 +	  tmp_addflag=' $pic_flag -Mnomain' ;;
  8.7107 +	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
  8.7108 +	  tmp_addflag=' -i_dynamic' ;;
  8.7109 +	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  8.7110 +	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  8.7111 +	ifc* | ifort*)			# Intel Fortran compiler
  8.7112 +	  tmp_addflag=' -nofor_main' ;;
  8.7113 +	esac
  8.7114 +	case `$CC -V 2>&1 | sed 5q` in
  8.7115 +	*Sun\ C*)			# Sun C 5.9
  8.7116 +	  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'
  8.7117 +	  tmp_sharedflag='-G' ;;
  8.7118 +	*Sun\ F*)			# Sun Fortran 8.3
  8.7119 +	  tmp_sharedflag='-G' ;;
  8.7120 +	*)
  8.7121 +	  tmp_sharedflag='-shared' ;;
  8.7122 +	esac
  8.7123 +	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8.7124 +
  8.7125 +	if test $supports_anon_versioning = yes; then
  8.7126 +	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  8.7127 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8.7128 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
  8.7129 +	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8.7130 +	fi
  8.7131 +	link_all_deplibs=no
  8.7132 +      else
  8.7133 +	ld_shlibs=no
  8.7134 +      fi
  8.7135 +      ;;
  8.7136 +
  8.7137 +    netbsd* | netbsdelf*-gnu)
  8.7138        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8.7139  	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8.7140  	wlarc=
  8.7141 @@ -6281,7 +7518,7 @@
  8.7142        fi
  8.7143        ;;
  8.7144  
  8.7145 -    solaris* | sysv5*)
  8.7146 +    solaris*)
  8.7147        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  8.7148  	ld_shlibs=no
  8.7149  	cat <<EOF 1>&2
  8.7150 @@ -6302,6 +7539,33 @@
  8.7151        fi
  8.7152        ;;
  8.7153  
  8.7154 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8.7155 +      case `$LD -v 2>&1` in
  8.7156 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8.7157 +	ld_shlibs=no
  8.7158 +	cat <<_LT_EOF 1>&2
  8.7159 +
  8.7160 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8.7161 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
  8.7162 +*** is disabling shared libraries support.  We urge you to upgrade GNU
  8.7163 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  8.7164 +*** your PATH or compiler configuration so that the native linker is
  8.7165 +*** used, and then restart.
  8.7166 +
  8.7167 +_LT_EOF
  8.7168 +	;;
  8.7169 +	*)
  8.7170 +	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8.7171 +	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  8.7172 +	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  8.7173 +	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  8.7174 +	  else
  8.7175 +	    ld_shlibs=no
  8.7176 +	  fi
  8.7177 +	;;
  8.7178 +      esac
  8.7179 +      ;;
  8.7180 +
  8.7181      sunos4*)
  8.7182        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8.7183        wlarc=
  8.7184 @@ -6309,41 +7573,6 @@
  8.7185        hardcode_shlibpath_var=no
  8.7186        ;;
  8.7187  
  8.7188 -  linux*)
  8.7189 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8.7190 -      tmp_addflag=
  8.7191 -      case $CC,$host_cpu in
  8.7192 -      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
  8.7193 -        tmp_addflag=' -fpic' ;;
  8.7194 -      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
  8.7195 -        tmp_addflag=' -i_dynamic' ;;
  8.7196 -      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  8.7197 -        tmp_addflag=' -i_dynamic -nofor_main' ;;
  8.7198 -      ifc* | ifort*)			# Intel Fortran compiler
  8.7199 -      	tmp_addflag=' -nofor_main' ;;
  8.7200 -      esac
  8.7201 -      archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8.7202 -      supports_anon_versioning=no
  8.7203 -      case `$LD -v 2>/dev/null` in
  8.7204 -        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8.7205 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8.7206 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8.7207 -        *\ 2.11.*) ;; # other 2.11 versions
  8.7208 -        *) supports_anon_versioning=yes ;;
  8.7209 -      esac
  8.7210 -      if test $supports_anon_versioning = yes; then
  8.7211 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  8.7212 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8.7213 -$echo "local: *; };" >> $output_objdir/$libname.ver~
  8.7214 -        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8.7215 -      else
  8.7216 -        archive_expsym_cmds=$archive_cmds
  8.7217 -      fi
  8.7218 -    else
  8.7219 -      ld_shlibs=no
  8.7220 -    fi
  8.7221 -    ;;
  8.7222 -
  8.7223      *)
  8.7224        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8.7225  	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8.7226 @@ -6354,16 +7583,11 @@
  8.7227        ;;
  8.7228      esac
  8.7229  
  8.7230 -    if test "$ld_shlibs" = yes; then
  8.7231 -      runpath_var=LD_RUN_PATH
  8.7232 -      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  8.7233 -      export_dynamic_flag_spec='${wl}--export-dynamic'
  8.7234 -      # ancient GNU ld didn't support --whole-archive et. al.
  8.7235 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  8.7236 - 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8.7237 -      else
  8.7238 -  	whole_archive_flag_spec=
  8.7239 -      fi
  8.7240 +    if test "$ld_shlibs" = no; then
  8.7241 +      runpath_var=
  8.7242 +      hardcode_libdir_flag_spec=
  8.7243 +      export_dynamic_flag_spec=
  8.7244 +      whole_archive_flag_spec=
  8.7245      fi
  8.7246    else
  8.7247      # PORTME fill in a description of your system's linker (not GNU ld)
  8.7248 @@ -6375,14 +7599,14 @@
  8.7249        # Note: this linker hardcodes the directories in LIBPATH if there
  8.7250        # are no directories specified by -L.
  8.7251        hardcode_minus_L=yes
  8.7252 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
  8.7253 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8.7254  	# Neither direct hardcoding nor static linking is supported with a
  8.7255  	# broken collect2.
  8.7256  	hardcode_direct=unsupported
  8.7257        fi
  8.7258        ;;
  8.7259  
  8.7260 -    aix4* | aix5*)
  8.7261 +    aix[4-9]*)
  8.7262        if test "$host_cpu" = ia64; then
  8.7263  	# On IA64, the linker does run time linking by default, so we don't
  8.7264  	# have to do anything special.
  8.7265 @@ -6402,13 +7626,14 @@
  8.7266  	# Test if we are trying to use run time linking or normal
  8.7267  	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8.7268  	# need to do runtime linking.
  8.7269 -	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8.7270 +	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8.7271  	  for ld_flag in $LDFLAGS; do
  8.7272    	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8.7273    	    aix_use_runtimelinking=yes
  8.7274    	    break
  8.7275    	  fi
  8.7276  	  done
  8.7277 +	  ;;
  8.7278  	esac
  8.7279  
  8.7280  	exp_sym_flag='-bexport'
  8.7281 @@ -6435,7 +7660,7 @@
  8.7282    	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  8.7283  	  then
  8.7284    	  # We have reworked collect2
  8.7285 -  	  hardcode_direct=yes
  8.7286 +  	  :
  8.7287  	  else
  8.7288    	  # We have old collect2
  8.7289    	  hardcode_direct=unsupported
  8.7290 @@ -6446,6 +7671,7 @@
  8.7291    	  hardcode_libdir_flag_spec='-L$libdir'
  8.7292    	  hardcode_libdir_separator=
  8.7293  	  fi
  8.7294 +	  ;;
  8.7295  	esac
  8.7296  	shared_flag='-shared'
  8.7297  	if test "$aix_use_runtimelinking" = yes; then
  8.7298 @@ -6458,11 +7684,11 @@
  8.7299    	# chokes on -Wl,-G. The following line is correct:
  8.7300  	  shared_flag='-G'
  8.7301  	else
  8.7302 -  	if test "$aix_use_runtimelinking" = yes; then
  8.7303 +	  if test "$aix_use_runtimelinking" = yes; then
  8.7304  	    shared_flag='${wl}-G'
  8.7305  	  else
  8.7306  	    shared_flag='${wl}-bM:SRE'
  8.7307 -  	fi
  8.7308 +	  fi
  8.7309  	fi
  8.7310        fi
  8.7311  
  8.7312 @@ -6490,49 +7716,54 @@
  8.7313  }
  8.7314  _ACEOF
  8.7315  rm -f conftest.$ac_objext conftest$ac_exeext
  8.7316 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.7317 -  (eval $ac_link) 2>conftest.er1
  8.7318 +if { (ac_try="$ac_link"
  8.7319 +case "(($ac_try" in
  8.7320 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.7321 +  *) ac_try_echo=$ac_try;;
  8.7322 +esac
  8.7323 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.7324 +  (eval "$ac_link") 2>conftest.er1
  8.7325    ac_status=$?
  8.7326    grep -v '^ *+' conftest.er1 >conftest.err
  8.7327    rm -f conftest.er1
  8.7328    cat conftest.err >&5
  8.7329    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.7330 -  (exit $ac_status); } &&
  8.7331 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.7332 -			 || test ! -s conftest.err'
  8.7333 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.7334 -  (eval $ac_try) 2>&5
  8.7335 -  ac_status=$?
  8.7336 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.7337 -  (exit $ac_status); }; } &&
  8.7338 -	 { ac_try='test -s conftest$ac_exeext'
  8.7339 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.7340 -  (eval $ac_try) 2>&5
  8.7341 -  ac_status=$?
  8.7342 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.7343 -  (exit $ac_status); }; }; then
  8.7344 -
  8.7345 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  8.7346 -}'`
  8.7347 +  (exit $ac_status); } && {
  8.7348 +	 test -z "$ac_c_werror_flag" ||
  8.7349 +	 test ! -s conftest.err
  8.7350 +       } && test -s conftest$ac_exeext &&
  8.7351 +       $as_test_x conftest$ac_exeext; then
  8.7352 +
  8.7353 +lt_aix_libpath_sed='
  8.7354 +    /Import File Strings/,/^$/ {
  8.7355 +	/^0/ {
  8.7356 +	    s/^0  *\(.*\)$/\1/
  8.7357 +	    p
  8.7358 +	}
  8.7359 +    }'
  8.7360 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8.7361  # Check for a 64-bit object if we didn't find anything.
  8.7362 -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; }
  8.7363 -}'`; fi
  8.7364 +if test -z "$aix_libpath"; then
  8.7365 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8.7366 +fi
  8.7367  else
  8.7368    echo "$as_me: failed program was:" >&5
  8.7369  sed 's/^/| /' conftest.$ac_ext >&5
  8.7370  
  8.7371 -fi
  8.7372 -rm -f conftest.err conftest.$ac_objext \
  8.7373 +
  8.7374 +fi
  8.7375 +
  8.7376 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8.7377        conftest$ac_exeext conftest.$ac_ext
  8.7378  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8.7379  
  8.7380         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8.7381 -	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"
  8.7382 +	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"
  8.7383         else
  8.7384  	if test "$host_cpu" = ia64; then
  8.7385  	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8.7386  	  allow_undefined_flag="-z nodefs"
  8.7387 -	  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"
  8.7388 +	  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"
  8.7389  	else
  8.7390  	 # Determine the default libpath from the value encoded in an empty executable.
  8.7391  	 cat >conftest.$ac_ext <<_ACEOF
  8.7392 @@ -6551,39 +7782,44 @@
  8.7393  }
  8.7394  _ACEOF
  8.7395  rm -f conftest.$ac_objext conftest$ac_exeext
  8.7396 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.7397 -  (eval $ac_link) 2>conftest.er1
  8.7398 +if { (ac_try="$ac_link"
  8.7399 +case "(($ac_try" in
  8.7400 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.7401 +  *) ac_try_echo=$ac_try;;
  8.7402 +esac
  8.7403 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.7404 +  (eval "$ac_link") 2>conftest.er1
  8.7405    ac_status=$?
  8.7406    grep -v '^ *+' conftest.er1 >conftest.err
  8.7407    rm -f conftest.er1
  8.7408    cat conftest.err >&5
  8.7409    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.7410 -  (exit $ac_status); } &&
  8.7411 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.7412 -			 || test ! -s conftest.err'
  8.7413 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.7414 -  (eval $ac_try) 2>&5
  8.7415 -  ac_status=$?
  8.7416 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.7417 -  (exit $ac_status); }; } &&
  8.7418 -	 { ac_try='test -s conftest$ac_exeext'
  8.7419 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.7420 -  (eval $ac_try) 2>&5
  8.7421 -  ac_status=$?
  8.7422 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.7423 -  (exit $ac_status); }; }; then
  8.7424 -
  8.7425 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  8.7426 -}'`
  8.7427 +  (exit $ac_status); } && {
  8.7428 +	 test -z "$ac_c_werror_flag" ||
  8.7429 +	 test ! -s conftest.err
  8.7430 +       } && test -s conftest$ac_exeext &&
  8.7431 +       $as_test_x conftest$ac_exeext; then
  8.7432 +
  8.7433 +lt_aix_libpath_sed='
  8.7434 +    /Import File Strings/,/^$/ {
  8.7435 +	/^0/ {
  8.7436 +	    s/^0  *\(.*\)$/\1/
  8.7437 +	    p
  8.7438 +	}
  8.7439 +    }'
  8.7440 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8.7441  # Check for a 64-bit object if we didn't find anything.
  8.7442 -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; }
  8.7443 -}'`; fi
  8.7444 +if test -z "$aix_libpath"; then
  8.7445 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8.7446 +fi
  8.7447  else
  8.7448    echo "$as_me: failed program was:" >&5
  8.7449  sed 's/^/| /' conftest.$ac_ext >&5
  8.7450  
  8.7451 -fi
  8.7452 -rm -f conftest.err conftest.$ac_objext \
  8.7453 +
  8.7454 +fi
  8.7455 +
  8.7456 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8.7457        conftest$ac_exeext conftest.$ac_ext
  8.7458  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8.7459  
  8.7460 @@ -6592,13 +7828,11 @@
  8.7461  	  # -berok will link without error, but may produce a broken library.
  8.7462  	  no_undefined_flag=' ${wl}-bernotok'
  8.7463  	  allow_undefined_flag=' ${wl}-berok'
  8.7464 -	  # -bexpall does not export symbols beginning with underscore (_)
  8.7465 -	  always_export_symbols=yes
  8.7466  	  # Exported symbols can be pulled into shared objects from archives
  8.7467 -	  whole_archive_flag_spec=' '
  8.7468 +	  whole_archive_flag_spec='$convenience'
  8.7469  	  archive_cmds_need_lc=yes
  8.7470 -	  # This is similar to how AIX traditionally builds it's shared libraries.
  8.7471 -	  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'
  8.7472 +	  # This is similar to how AIX traditionally builds its shared libraries.
  8.7473 +	  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'
  8.7474  	fi
  8.7475        fi
  8.7476        ;;
  8.7477 @@ -6631,13 +7865,13 @@
  8.7478        # The linker will automatically build a .lib file if we build a DLL.
  8.7479        old_archive_From_new_cmds='true'
  8.7480        # FIXME: Should let the user specify the lib program.
  8.7481 -      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  8.7482 +      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8.7483        fix_srcfile_path='`cygpath -w "$srcfile"`'
  8.7484        enable_shared_with_static_runtimes=yes
  8.7485        ;;
  8.7486  
  8.7487      darwin* | rhapsody*)
  8.7488 -      case "$host_os" in
  8.7489 +      case $host_os in
  8.7490          rhapsody* | darwin1.[012])
  8.7491           allow_undefined_flag='${wl}-undefined ${wl}suppress'
  8.7492           ;;
  8.7493 @@ -6664,19 +7898,18 @@
  8.7494        link_all_deplibs=yes
  8.7495      if test "$GCC" = yes ; then
  8.7496      	output_verbose_link_cmd='echo'
  8.7497 -        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8.7498 -      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8.7499 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8.7500 -      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}'
  8.7501 -      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}'
  8.7502 +        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8.7503 +        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8.7504 +        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}"
  8.7505 +        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}"
  8.7506      else
  8.7507 -      case "$cc_basename" in
  8.7508 +      case $cc_basename in
  8.7509          xlc*)
  8.7510           output_verbose_link_cmd='echo'
  8.7511 -         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  8.7512 +         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  8.7513           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8.7514 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8.7515 -         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8.7516 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8.7517 +         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}'
  8.7518            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}'
  8.7519            ;;
  8.7520         *)
  8.7521 @@ -6716,7 +7949,7 @@
  8.7522        ;;
  8.7523  
  8.7524      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8.7525 -    freebsd* | kfreebsd*-gnu | dragonfly*)
  8.7526 +    freebsd* | dragonfly*)
  8.7527        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8.7528        hardcode_libdir_flag_spec='-R$libdir'
  8.7529        hardcode_direct=yes
  8.7530 @@ -6739,54 +7972,69 @@
  8.7531        export_dynamic_flag_spec='${wl}-E'
  8.7532        ;;
  8.7533  
  8.7534 -    hpux10* | hpux11*)
  8.7535 +    hpux10*)
  8.7536        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8.7537 -	case "$host_cpu" in
  8.7538 -	hppa*64*|ia64*)
  8.7539 +	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8.7540 +      else
  8.7541 +	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8.7542 +      fi
  8.7543 +      if test "$with_gnu_ld" = no; then
  8.7544 +	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8.7545 +	hardcode_libdir_separator=:
  8.7546 +
  8.7547 +	hardcode_direct=yes
  8.7548 +	export_dynamic_flag_spec='${wl}-E'
  8.7549 +
  8.7550 +	# hardcode_minus_L: Not really in the search PATH,
  8.7551 +	# but as the default location of the library.
  8.7552 +	hardcode_minus_L=yes
  8.7553 +      fi
  8.7554 +      ;;
  8.7555 +
  8.7556 +    hpux11*)
  8.7557 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8.7558 +	case $host_cpu in
  8.7559 +	hppa*64*)
  8.7560  	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7561  	  ;;
  8.7562 +	ia64*)
  8.7563 +	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8.7564 +	  ;;
  8.7565  	*)
  8.7566  	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8.7567  	  ;;
  8.7568  	esac
  8.7569        else
  8.7570 -	case "$host_cpu" in
  8.7571 +	case $host_cpu in
  8.7572 +	hppa*64*)
  8.7573 +	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7574 +	  ;;
  8.7575 +	ia64*)
  8.7576 +	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8.7577 +	  ;;
  8.7578 +	*)
  8.7579 +	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8.7580 +	  ;;
  8.7581 +	esac
  8.7582 +      fi
  8.7583 +      if test "$with_gnu_ld" = no; then
  8.7584 +	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8.7585 +	hardcode_libdir_separator=:
  8.7586 +
  8.7587 +	case $host_cpu in
  8.7588  	hppa*64*|ia64*)
  8.7589 -	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  8.7590 -	  ;;
  8.7591 -	*)
  8.7592 -	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8.7593 -	  ;;
  8.7594 -	esac
  8.7595 -      fi
  8.7596 -      if test "$with_gnu_ld" = no; then
  8.7597 -	case "$host_cpu" in
  8.7598 -	hppa*64*)
  8.7599 -	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8.7600  	  hardcode_libdir_flag_spec_ld='+b $libdir'
  8.7601 -	  hardcode_libdir_separator=:
  8.7602  	  hardcode_direct=no
  8.7603  	  hardcode_shlibpath_var=no
  8.7604  	  ;;
  8.7605 -	ia64*)
  8.7606 -	  hardcode_libdir_flag_spec='-L$libdir'
  8.7607 -	  hardcode_direct=no
  8.7608 -	  hardcode_shlibpath_var=no
  8.7609 +	*)
  8.7610 +	  hardcode_direct=yes
  8.7611 +	  export_dynamic_flag_spec='${wl}-E'
  8.7612  
  8.7613  	  # hardcode_minus_L: Not really in the search PATH,
  8.7614  	  # but as the default location of the library.
  8.7615  	  hardcode_minus_L=yes
  8.7616  	  ;;
  8.7617 -	*)
  8.7618 -	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8.7619 -	  hardcode_libdir_separator=:
  8.7620 -	  hardcode_direct=yes
  8.7621 -	  export_dynamic_flag_spec='${wl}-E'
  8.7622 -
  8.7623 -	  # hardcode_minus_L: Not really in the search PATH,
  8.7624 -	  # but as the default location of the library.
  8.7625 -	  hardcode_minus_L=yes
  8.7626 -	  ;;
  8.7627  	esac
  8.7628        fi
  8.7629        ;;
  8.7630 @@ -6803,7 +8051,7 @@
  8.7631        link_all_deplibs=yes
  8.7632        ;;
  8.7633  
  8.7634 -    netbsd*)
  8.7635 +    netbsd* | netbsdelf*-gnu)
  8.7636        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8.7637  	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  8.7638        else
  8.7639 @@ -6823,24 +8071,28 @@
  8.7640        ;;
  8.7641  
  8.7642      openbsd*)
  8.7643 -      hardcode_direct=yes
  8.7644 -      hardcode_shlibpath_var=no
  8.7645 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8.7646 -	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8.7647 -	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8.7648 -	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8.7649 -	export_dynamic_flag_spec='${wl}-E'
  8.7650 -      else
  8.7651 -       case $host_os in
  8.7652 -	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8.7653 -	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8.7654 -	   hardcode_libdir_flag_spec='-R$libdir'
  8.7655 -	   ;;
  8.7656 -	 *)
  8.7657 -	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8.7658 -	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8.7659 -	   ;;
  8.7660 -       esac
  8.7661 +      if test -f /usr/libexec/ld.so; then
  8.7662 +	hardcode_direct=yes
  8.7663 +	hardcode_shlibpath_var=no
  8.7664 +	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8.7665 +	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8.7666 +	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8.7667 +	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8.7668 +	  export_dynamic_flag_spec='${wl}-E'
  8.7669 +	else
  8.7670 +	  case $host_os in
  8.7671 +	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8.7672 +	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8.7673 +	     hardcode_libdir_flag_spec='-R$libdir'
  8.7674 +	     ;;
  8.7675 +	   *)
  8.7676 +	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8.7677 +	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8.7678 +	     ;;
  8.7679 +	  esac
  8.7680 +        fi
  8.7681 +      else
  8.7682 +	ld_shlibs=no
  8.7683        fi
  8.7684        ;;
  8.7685  
  8.7686 @@ -6873,7 +8125,7 @@
  8.7687  	allow_undefined_flag=' -expect_unresolved \*'
  8.7688  	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'
  8.7689  	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8.7690 -	$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'
  8.7691 +	$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'
  8.7692  
  8.7693  	# Both c and cxx compiler support -rpath directly
  8.7694  	hardcode_libdir_flag_spec='-rpath $libdir'
  8.7695 @@ -6881,21 +8133,15 @@
  8.7696        hardcode_libdir_separator=:
  8.7697        ;;
  8.7698  
  8.7699 -    sco3.2v5*)
  8.7700 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8.7701 -      hardcode_shlibpath_var=no
  8.7702 -      export_dynamic_flag_spec='${wl}-Bexport'
  8.7703 -      runpath_var=LD_RUN_PATH
  8.7704 -      hardcode_runpath_var=yes
  8.7705 -      ;;
  8.7706 -
  8.7707      solaris*)
  8.7708        no_undefined_flag=' -z text'
  8.7709        if test "$GCC" = yes; then
  8.7710 +	wlarc='${wl}'
  8.7711  	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7712  	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8.7713  	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8.7714        else
  8.7715 +	wlarc=''
  8.7716  	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8.7717  	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8.7718    	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8.7719 @@ -6904,8 +8150,17 @@
  8.7720        hardcode_shlibpath_var=no
  8.7721        case $host_os in
  8.7722        solaris2.[0-5] | solaris2.[0-5].*) ;;
  8.7723 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  8.7724 -	whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
  8.7725 +      *)
  8.7726 +	# The compiler driver will combine and reorder linker options,
  8.7727 +	# but understands `-z linker_flag'.  GCC discards it without `$wl',
  8.7728 +	# but is careful enough not to reorder.
  8.7729 + 	# Supported since Solaris 2.6 (maybe 2.5.1?)
  8.7730 +	if test "$GCC" = yes; then
  8.7731 +	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8.7732 +	else
  8.7733 +	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8.7734 +	fi
  8.7735 +	;;
  8.7736        esac
  8.7737        link_all_deplibs=yes
  8.7738        ;;
  8.7739 @@ -6962,36 +8217,45 @@
  8.7740        fi
  8.7741        ;;
  8.7742  
  8.7743 -    sysv4.2uw2*)
  8.7744 -      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8.7745 -      hardcode_direct=yes
  8.7746 -      hardcode_minus_L=no
  8.7747 -      hardcode_shlibpath_var=no
  8.7748 -      hardcode_runpath_var=yes
  8.7749 -      runpath_var=LD_RUN_PATH
  8.7750 -      ;;
  8.7751 -
  8.7752 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
  8.7753 -      no_undefined_flag='${wl}-z ${wl}text'
  8.7754 -      if test "$GCC" = yes; then
  8.7755 -	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7756 -      else
  8.7757 -	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7758 -      fi
  8.7759 -      runpath_var='LD_RUN_PATH'
  8.7760 -      hardcode_shlibpath_var=no
  8.7761 -      ;;
  8.7762 -
  8.7763 -    sysv5*)
  8.7764 -      no_undefined_flag=' -z text'
  8.7765 -      # $CC -shared without GNU ld will not create a library from C++
  8.7766 -      # object files and a static libstdc++, better avoid it by now
  8.7767 -      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8.7768 -      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8.7769 -  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8.7770 -      hardcode_libdir_flag_spec=
  8.7771 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8.7772 +      no_undefined_flag='${wl}-z,text'
  8.7773 +      archive_cmds_need_lc=no
  8.7774        hardcode_shlibpath_var=no
  8.7775        runpath_var='LD_RUN_PATH'
  8.7776 +
  8.7777 +      if test "$GCC" = yes; then
  8.7778 +	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7779 +	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7780 +      else
  8.7781 +	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7782 +	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7783 +      fi
  8.7784 +      ;;
  8.7785 +
  8.7786 +    sysv5* | sco3.2v5* | sco5v6*)
  8.7787 +      # Note: We can NOT use -z defs as we might desire, because we do not
  8.7788 +      # link with -lc, and that would cause any symbols used from libc to
  8.7789 +      # always be unresolved, which means just about no library would
  8.7790 +      # ever link correctly.  If we're not using GNU ld we use -z text
  8.7791 +      # though, which does catch some bad symbols but isn't as heavy-handed
  8.7792 +      # as -z defs.
  8.7793 +      no_undefined_flag='${wl}-z,text'
  8.7794 +      allow_undefined_flag='${wl}-z,nodefs'
  8.7795 +      archive_cmds_need_lc=no
  8.7796 +      hardcode_shlibpath_var=no
  8.7797 +      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  8.7798 +      hardcode_libdir_separator=':'
  8.7799 +      link_all_deplibs=yes
  8.7800 +      export_dynamic_flag_spec='${wl}-Bexport'
  8.7801 +      runpath_var='LD_RUN_PATH'
  8.7802 +
  8.7803 +      if test "$GCC" = yes; then
  8.7804 +	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7805 +	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7806 +      else
  8.7807 +	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7808 +	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8.7809 +      fi
  8.7810        ;;
  8.7811  
  8.7812      uts4*)
  8.7813 @@ -7006,15 +8270,10 @@
  8.7814      esac
  8.7815    fi
  8.7816  
  8.7817 -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8.7818 -echo "${ECHO_T}$ld_shlibs" >&6
  8.7819 +{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8.7820 +echo "${ECHO_T}$ld_shlibs" >&6; }
  8.7821  test "$ld_shlibs" = no && can_build_shared=no
  8.7822  
  8.7823 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8.7824 -if test "$GCC" = yes; then
  8.7825 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8.7826 -fi
  8.7827 -
  8.7828  #
  8.7829  # Do we need to explicitly link libc?
  8.7830  #
  8.7831 @@ -7032,10 +8291,10 @@
  8.7832        # Test whether the compiler implicitly links with -lc since on some
  8.7833        # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8.7834        # to ld, don't add -lc before -lgcc.
  8.7835 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8.7836 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  8.7837 +      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8.7838 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  8.7839        $rm conftest*
  8.7840 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8.7841 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8.7842  
  8.7843        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.7844    (eval $ac_compile) 2>&5
  8.7845 @@ -7047,6 +8306,7 @@
  8.7846          libobjs=conftest.$ac_objext
  8.7847          deplibs=
  8.7848          wl=$lt_prog_compiler_wl
  8.7849 +	pic_flag=$lt_prog_compiler_pic
  8.7850          compiler_flags=-v
  8.7851          linker_flags=-v
  8.7852          verstring=
  8.7853 @@ -7069,16 +8329,16 @@
  8.7854          cat conftest.err 1>&5
  8.7855        fi
  8.7856        $rm conftest*
  8.7857 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8.7858 -echo "${ECHO_T}$archive_cmds_need_lc" >&6
  8.7859 -      ;;
  8.7860 -    esac
  8.7861 -  fi
  8.7862 -  ;;
  8.7863 -esac
  8.7864 -
  8.7865 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8.7866 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  8.7867 +      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8.7868 +echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  8.7869 +      ;;
  8.7870 +    esac
  8.7871 +  fi
  8.7872 +  ;;
  8.7873 +esac
  8.7874 +
  8.7875 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8.7876 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8.7877  library_names_spec=
  8.7878  libname_spec='lib$name'
  8.7879  soname_spec=
  8.7880 @@ -7092,17 +8352,55 @@
  8.7881  version_type=none
  8.7882  dynamic_linker="$host_os ld.so"
  8.7883  sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8.7884 +
  8.7885  if test "$GCC" = yes; then
  8.7886 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8.7887 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8.7888 +  case $host_os in
  8.7889 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8.7890 +    *) lt_awk_arg="/^libraries:/" ;;
  8.7891 +  esac
  8.7892 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8.7893 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  8.7894      # if the path contains ";" then we assume it to be the separator
  8.7895      # otherwise default to the standard path separator (i.e. ":") - it is
  8.7896      # assumed that no part of a normal pathname contains ";" but that should
  8.7897      # okay in the real world where ";" in dirpaths is itself problematic.
  8.7898 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8.7899 -  else
  8.7900 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  8.7901 -  fi
  8.7902 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8.7903 +  else
  8.7904 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  8.7905 +  fi
  8.7906 +  # Ok, now we have the path, separated by spaces, we can step through it
  8.7907 +  # and add multilib dir if necessary.
  8.7908 +  lt_tmp_lt_search_path_spec=
  8.7909 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8.7910 +  for lt_sys_path in $lt_search_path_spec; do
  8.7911 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8.7912 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8.7913 +    else
  8.7914 +      test -d "$lt_sys_path" && \
  8.7915 +	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8.7916 +    fi
  8.7917 +  done
  8.7918 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  8.7919 +BEGIN {RS=" "; FS="/|\n";} {
  8.7920 +  lt_foo="";
  8.7921 +  lt_count=0;
  8.7922 +  for (lt_i = NF; lt_i > 0; lt_i--) {
  8.7923 +    if ($lt_i != "" && $lt_i != ".") {
  8.7924 +      if ($lt_i == "..") {
  8.7925 +        lt_count++;
  8.7926 +      } else {
  8.7927 +        if (lt_count == 0) {
  8.7928 +          lt_foo="/" $lt_i lt_foo;
  8.7929 +        } else {
  8.7930 +          lt_count--;
  8.7931 +        }
  8.7932 +      }
  8.7933 +    }
  8.7934 +  }
  8.7935 +  if (lt_foo != "") { lt_freq[lt_foo]++; }
  8.7936 +  if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8.7937 +}'`
  8.7938 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
  8.7939  else
  8.7940    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8.7941  fi
  8.7942 @@ -7123,7 +8421,7 @@
  8.7943    soname_spec='${libname}${release}${shared_ext}$major'
  8.7944    ;;
  8.7945  
  8.7946 -aix4* | aix5*)
  8.7947 +aix[4-9]*)
  8.7948    version_type=linux
  8.7949    need_lib_prefix=no
  8.7950    need_version=no
  8.7951 @@ -7207,7 +8505,8 @@
  8.7952        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8.7953        dldir=$destdir/`dirname \$dlpath`~
  8.7954        test -d \$dldir || mkdir -p \$dldir~
  8.7955 -      $install_prog $dir/$dlname \$dldir/$dlname'
  8.7956 +      $install_prog $dir/$dlname \$dldir/$dlname~
  8.7957 +      chmod a+x \$dldir/$dlname'
  8.7958      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8.7959        dlpath=$dir/\$dldll~
  8.7960         $rm \$dlpath'
  8.7961 @@ -7260,13 +8559,9 @@
  8.7962    soname_spec='${libname}${release}${major}$shared_ext'
  8.7963    shlibpath_overrides_runpath=yes
  8.7964    shlibpath_var=DYLD_LIBRARY_PATH
  8.7965 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  8.7966 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8.7967 -  if test "$GCC" = yes; then
  8.7968 -    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"`
  8.7969 -  else
  8.7970 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8.7971 -  fi
  8.7972 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8.7973 +
  8.7974 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8.7975    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8.7976    ;;
  8.7977  
  8.7978 @@ -7283,22 +8578,17 @@
  8.7979    dynamic_linker=no
  8.7980    ;;
  8.7981  
  8.7982 -kfreebsd*-gnu)
  8.7983 -  version_type=linux
  8.7984 -  need_lib_prefix=no
  8.7985 -  need_version=no
  8.7986 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8.7987 -  soname_spec='${libname}${release}${shared_ext}$major'
  8.7988 -  shlibpath_var=LD_LIBRARY_PATH
  8.7989 -  shlibpath_overrides_runpath=no
  8.7990 -  hardcode_into_libs=yes
  8.7991 -  dynamic_linker='GNU ld.so'
  8.7992 -  ;;
  8.7993 -
  8.7994  freebsd* | dragonfly*)
  8.7995    # DragonFly does not have aout.  When/if they implement a new
  8.7996    # versioning mechanism, adjust this.
  8.7997 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  8.7998 +  if test -x /usr/bin/objformat; then
  8.7999 +    objformat=`/usr/bin/objformat`
  8.8000 +  else
  8.8001 +    case $host_os in
  8.8002 +    freebsd[123]*) objformat=aout ;;
  8.8003 +    *) objformat=elf ;;
  8.8004 +    esac
  8.8005 +  fi
  8.8006    version_type=freebsd-$objformat
  8.8007    case $version_type in
  8.8008      freebsd-elf*)
  8.8009 @@ -7320,10 +8610,15 @@
  8.8010      shlibpath_overrides_runpath=yes
  8.8011      hardcode_into_libs=yes
  8.8012      ;;
  8.8013 -  *) # from 3.2 on
  8.8014 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8.8015 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8.8016      shlibpath_overrides_runpath=no
  8.8017      hardcode_into_libs=yes
  8.8018      ;;
  8.8019 +  *) # from 4.6 on, and DragonFly
  8.8020 +    shlibpath_overrides_runpath=yes
  8.8021 +    hardcode_into_libs=yes
  8.8022 +    ;;
  8.8023    esac
  8.8024    ;;
  8.8025  
  8.8026 @@ -7343,7 +8638,7 @@
  8.8027    version_type=sunos
  8.8028    need_lib_prefix=no
  8.8029    need_version=no
  8.8030 -  case "$host_cpu" in
  8.8031 +  case $host_cpu in
  8.8032    ia64*)
  8.8033      shrext_cmds='.so'
  8.8034      hardcode_into_libs=yes
  8.8035 @@ -7383,6 +8678,18 @@
  8.8036    postinstall_cmds='chmod 555 $lib'
  8.8037    ;;
  8.8038  
  8.8039 +interix[3-9]*)
  8.8040 +  version_type=linux
  8.8041 +  need_lib_prefix=no
  8.8042 +  need_version=no
  8.8043 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8.8044 +  soname_spec='${libname}${release}${shared_ext}$major'
  8.8045 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8.8046 +  shlibpath_var=LD_LIBRARY_PATH
  8.8047 +  shlibpath_overrides_runpath=no
  8.8048 +  hardcode_into_libs=yes
  8.8049 +  ;;
  8.8050 +
  8.8051  irix5* | irix6* | nonstopux*)
  8.8052    case $host_os in
  8.8053      nonstopux*) version_type=nonstopux ;;
  8.8054 @@ -7426,7 +8733,7 @@
  8.8055    ;;
  8.8056  
  8.8057  # This must be Linux ELF.
  8.8058 -linux*)
  8.8059 +linux* | k*bsd*-gnu)
  8.8060    version_type=linux
  8.8061    need_lib_prefix=no
  8.8062    need_version=no
  8.8063 @@ -7442,7 +8749,7 @@
  8.8064  
  8.8065    # Append ld.so.conf contents to the search path
  8.8066    if test -f /etc/ld.so.conf; then
  8.8067 -    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8.8068 +    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' ' '`
  8.8069      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8.8070    fi
  8.8071  
  8.8072 @@ -7455,7 +8762,7 @@
  8.8073    dynamic_linker='GNU/Linux ld.so'
  8.8074    ;;
  8.8075  
  8.8076 -knetbsd*-gnu)
  8.8077 +netbsdelf*-gnu)
  8.8078    version_type=linux
  8.8079    need_lib_prefix=no
  8.8080    need_version=no
  8.8081 @@ -7464,7 +8771,7 @@
  8.8082    shlibpath_var=LD_LIBRARY_PATH
  8.8083    shlibpath_overrides_runpath=no
  8.8084    hardcode_into_libs=yes
  8.8085 -  dynamic_linker='GNU ld.so'
  8.8086 +  dynamic_linker='NetBSD ld.elf_so'
  8.8087    ;;
  8.8088  
  8.8089  netbsd*)
  8.8090 @@ -7504,8 +8811,13 @@
  8.8091  
  8.8092  openbsd*)
  8.8093    version_type=sunos
  8.8094 -  need_lib_prefix=no
  8.8095 -  need_version=no
  8.8096 +  sys_lib_dlsearch_path_spec="/usr/lib"
  8.8097 +  need_lib_prefix=no
  8.8098 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8.8099 +  case $host_os in
  8.8100 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8.8101 +    *)                         need_version=no  ;;
  8.8102 +  esac
  8.8103    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8.8104    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8.8105    shlibpath_var=LD_LIBRARY_PATH
  8.8106 @@ -7543,11 +8855,8 @@
  8.8107    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8.8108    ;;
  8.8109  
  8.8110 -sco3.2v5*)
  8.8111 -  version_type=osf
  8.8112 -  soname_spec='${libname}${release}${shared_ext}$major'
  8.8113 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8.8114 -  shlibpath_var=LD_LIBRARY_PATH
  8.8115 +rdos*)
  8.8116 +  dynamic_linker=no
  8.8117    ;;
  8.8118  
  8.8119  solaris*)
  8.8120 @@ -7575,7 +8884,7 @@
  8.8121    need_version=yes
  8.8122    ;;
  8.8123  
  8.8124 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8.8125 +sysv4 | sysv4.3*)
  8.8126    version_type=linux
  8.8127    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8.8128    soname_spec='${libname}${release}${shared_ext}$major'
  8.8129 @@ -7608,6 +8917,29 @@
  8.8130    fi
  8.8131    ;;
  8.8132  
  8.8133 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8.8134 +  version_type=freebsd-elf
  8.8135 +  need_lib_prefix=no
  8.8136 +  need_version=no
  8.8137 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8.8138 +  soname_spec='${libname}${release}${shared_ext}$major'
  8.8139 +  shlibpath_var=LD_LIBRARY_PATH
  8.8140 +  hardcode_into_libs=yes
  8.8141 +  if test "$with_gnu_ld" = yes; then
  8.8142 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8.8143 +    shlibpath_overrides_runpath=no
  8.8144 +  else
  8.8145 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8.8146 +    shlibpath_overrides_runpath=yes
  8.8147 +    case $host_os in
  8.8148 +      sco3.2v5*)
  8.8149 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8.8150 +	;;
  8.8151 +    esac
  8.8152 +  fi
  8.8153 +  sys_lib_dlsearch_path_spec='/usr/lib'
  8.8154 +  ;;
  8.8155 +
  8.8156  uts4*)
  8.8157    version_type=linux
  8.8158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8.8159 @@ -7619,12 +8951,32 @@
  8.8160    dynamic_linker=no
  8.8161    ;;
  8.8162  esac
  8.8163 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8.8164 -echo "${ECHO_T}$dynamic_linker" >&6
  8.8165 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8.8166 +echo "${ECHO_T}$dynamic_linker" >&6; }
  8.8167  test "$dynamic_linker" = no && can_build_shared=no
  8.8168  
  8.8169 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8.8170 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  8.8171 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8.8172 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.8173 +else
  8.8174 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  8.8175 +fi
  8.8176 +
  8.8177 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8.8178 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8.8179 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.8180 +else
  8.8181 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  8.8182 +fi
  8.8183 +
  8.8184 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8.8185 +
  8.8186 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8.8187 +if test "$GCC" = yes; then
  8.8188 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8.8189 +fi
  8.8190 +
  8.8191 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8.8192 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8.8193  hardcode_action=
  8.8194  if test -n "$hardcode_libdir_flag_spec" || \
  8.8195     test -n "$runpath_var" || \
  8.8196 @@ -7648,8 +9000,8 @@
  8.8197    # directories.
  8.8198    hardcode_action=unsupported
  8.8199  fi
  8.8200 -echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8.8201 -echo "${ECHO_T}$hardcode_action" >&6
  8.8202 +{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8.8203 +echo "${ECHO_T}$hardcode_action" >&6; }
  8.8204  
  8.8205  if test "$hardcode_action" = relink; then
  8.8206    # Fast installation is not supported
  8.8207 @@ -7662,29 +9014,30 @@
  8.8208  
  8.8209  striplib=
  8.8210  old_striplib=
  8.8211 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8.8212 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  8.8213 +{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8.8214 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8.8215  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8.8216    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8.8217    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8.8218 -  echo "$as_me:$LINENO: result: yes" >&5
  8.8219 -echo "${ECHO_T}yes" >&6
  8.8220 +  { echo "$as_me:$LINENO: result: yes" >&5
  8.8221 +echo "${ECHO_T}yes" >&6; }
  8.8222  else
  8.8223  # FIXME - insert some real tests, host_os isn't really good enough
  8.8224    case $host_os in
  8.8225     darwin*)
  8.8226         if test -n "$STRIP" ; then
  8.8227           striplib="$STRIP -x"
  8.8228 -         echo "$as_me:$LINENO: result: yes" >&5
  8.8229 -echo "${ECHO_T}yes" >&6
  8.8230 +         old_striplib="$STRIP -S"
  8.8231 +         { echo "$as_me:$LINENO: result: yes" >&5
  8.8232 +echo "${ECHO_T}yes" >&6; }
  8.8233         else
  8.8234 -  echo "$as_me:$LINENO: result: no" >&5
  8.8235 -echo "${ECHO_T}no" >&6
  8.8236 +  { echo "$as_me:$LINENO: result: no" >&5
  8.8237 +echo "${ECHO_T}no" >&6; }
  8.8238  fi
  8.8239         ;;
  8.8240     *)
  8.8241 -  echo "$as_me:$LINENO: result: no" >&5
  8.8242 -echo "${ECHO_T}no" >&6
  8.8243 +  { echo "$as_me:$LINENO: result: no" >&5
  8.8244 +echo "${ECHO_T}no" >&6; }
  8.8245      ;;
  8.8246    esac
  8.8247  fi
  8.8248 @@ -7716,8 +9069,8 @@
  8.8249  
  8.8250    darwin*)
  8.8251    # if libdl is installed we need to link against it
  8.8252 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8.8253 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8.8254 +    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8.8255 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8.8256  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8.8257    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.8258  else
  8.8259 @@ -7730,56 +9083,53 @@
  8.8260  cat >>conftest.$ac_ext <<_ACEOF
  8.8261  /* end confdefs.h.  */
  8.8262  
  8.8263 -/* Override any gcc2 internal prototype to avoid an error.  */
  8.8264 +/* Override any GCC internal prototype to avoid an error.
  8.8265 +   Use char because int might match the return type of a GCC
  8.8266 +   builtin and then its argument prototype would still apply.  */
  8.8267  #ifdef __cplusplus
  8.8268  extern "C"
  8.8269  #endif
  8.8270 -/* We use char because int might match the return type of a gcc2
  8.8271 -   builtin and then its argument prototype would still apply.  */
  8.8272  char dlopen ();
  8.8273  int
  8.8274  main ()
  8.8275  {
  8.8276 -dlopen ();
  8.8277 +return dlopen ();
  8.8278    ;
  8.8279    return 0;
  8.8280  }
  8.8281  _ACEOF
  8.8282  rm -f conftest.$ac_objext conftest$ac_exeext
  8.8283 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.8284 -  (eval $ac_link) 2>conftest.er1
  8.8285 +if { (ac_try="$ac_link"
  8.8286 +case "(($ac_try" in
  8.8287 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.8288 +  *) ac_try_echo=$ac_try;;
  8.8289 +esac
  8.8290 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.8291 +  (eval "$ac_link") 2>conftest.er1
  8.8292    ac_status=$?
  8.8293    grep -v '^ *+' conftest.er1 >conftest.err
  8.8294    rm -f conftest.er1
  8.8295    cat conftest.err >&5
  8.8296    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8297 -  (exit $ac_status); } &&
  8.8298 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.8299 -			 || test ! -s conftest.err'
  8.8300 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8301 -  (eval $ac_try) 2>&5
  8.8302 -  ac_status=$?
  8.8303 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8304 -  (exit $ac_status); }; } &&
  8.8305 -	 { ac_try='test -s conftest$ac_exeext'
  8.8306 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8307 -  (eval $ac_try) 2>&5
  8.8308 -  ac_status=$?
  8.8309 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8310 -  (exit $ac_status); }; }; then
  8.8311 +  (exit $ac_status); } && {
  8.8312 +	 test -z "$ac_c_werror_flag" ||
  8.8313 +	 test ! -s conftest.err
  8.8314 +       } && test -s conftest$ac_exeext &&
  8.8315 +       $as_test_x conftest$ac_exeext; then
  8.8316    ac_cv_lib_dl_dlopen=yes
  8.8317  else
  8.8318    echo "$as_me: failed program was:" >&5
  8.8319  sed 's/^/| /' conftest.$ac_ext >&5
  8.8320  
  8.8321 -ac_cv_lib_dl_dlopen=no
  8.8322 -fi
  8.8323 -rm -f conftest.err conftest.$ac_objext \
  8.8324 +	ac_cv_lib_dl_dlopen=no
  8.8325 +fi
  8.8326 +
  8.8327 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8.8328        conftest$ac_exeext conftest.$ac_ext
  8.8329  LIBS=$ac_check_lib_save_LIBS
  8.8330  fi
  8.8331 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8.8332 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8.8333 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8.8334 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8.8335  if test $ac_cv_lib_dl_dlopen = yes; then
  8.8336    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8.8337  else
  8.8338 @@ -7793,8 +9143,8 @@
  8.8339     ;;
  8.8340  
  8.8341    *)
  8.8342 -    echo "$as_me:$LINENO: checking for shl_load" >&5
  8.8343 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8.8344 +    { echo "$as_me:$LINENO: checking for shl_load" >&5
  8.8345 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8.8346  if test "${ac_cv_func_shl_load+set}" = set; then
  8.8347    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.8348  else
  8.8349 @@ -7821,73 +9171,64 @@
  8.8350  
  8.8351  #undef shl_load
  8.8352  
  8.8353 -/* Override any gcc2 internal prototype to avoid an error.  */
  8.8354 +/* Override any GCC internal prototype to avoid an error.
  8.8355 +   Use char because int might match the return type of a GCC
  8.8356 +   builtin and then its argument prototype would still apply.  */
  8.8357  #ifdef __cplusplus
  8.8358  extern "C"
  8.8359 -{
  8.8360  #endif
  8.8361 -/* We use char because int might match the return type of a gcc2
  8.8362 -   builtin and then its argument prototype would still apply.  */
  8.8363  char shl_load ();
  8.8364  /* The GNU C library defines this for functions which it implements
  8.8365      to always fail with ENOSYS.  Some functions are actually named
  8.8366      something starting with __ and the normal name is an alias.  */
  8.8367 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  8.8368 +#if defined __stub_shl_load || defined __stub___shl_load
  8.8369  choke me
  8.8370 -#else
  8.8371 -char (*f) () = shl_load;
  8.8372 -#endif
  8.8373 -#ifdef __cplusplus
  8.8374 -}
  8.8375  #endif
  8.8376  
  8.8377  int
  8.8378  main ()
  8.8379  {
  8.8380 -return f != shl_load;
  8.8381 +return shl_load ();
  8.8382    ;
  8.8383    return 0;
  8.8384  }
  8.8385  _ACEOF
  8.8386  rm -f conftest.$ac_objext conftest$ac_exeext
  8.8387 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.8388 -  (eval $ac_link) 2>conftest.er1
  8.8389 +if { (ac_try="$ac_link"
  8.8390 +case "(($ac_try" in
  8.8391 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.8392 +  *) ac_try_echo=$ac_try;;
  8.8393 +esac
  8.8394 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.8395 +  (eval "$ac_link") 2>conftest.er1
  8.8396    ac_status=$?
  8.8397    grep -v '^ *+' conftest.er1 >conftest.err
  8.8398    rm -f conftest.er1
  8.8399    cat conftest.err >&5
  8.8400    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8401 -  (exit $ac_status); } &&
  8.8402 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.8403 -			 || test ! -s conftest.err'
  8.8404 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8405 -  (eval $ac_try) 2>&5
  8.8406 -  ac_status=$?
  8.8407 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8408 -  (exit $ac_status); }; } &&
  8.8409 -	 { ac_try='test -s conftest$ac_exeext'
  8.8410 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8411 -  (eval $ac_try) 2>&5
  8.8412 -  ac_status=$?
  8.8413 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8414 -  (exit $ac_status); }; }; then
  8.8415 +  (exit $ac_status); } && {
  8.8416 +	 test -z "$ac_c_werror_flag" ||
  8.8417 +	 test ! -s conftest.err
  8.8418 +       } && test -s conftest$ac_exeext &&
  8.8419 +       $as_test_x conftest$ac_exeext; then
  8.8420    ac_cv_func_shl_load=yes
  8.8421  else
  8.8422    echo "$as_me: failed program was:" >&5
  8.8423  sed 's/^/| /' conftest.$ac_ext >&5
  8.8424  
  8.8425 -ac_cv_func_shl_load=no
  8.8426 -fi
  8.8427 -rm -f conftest.err conftest.$ac_objext \
  8.8428 +	ac_cv_func_shl_load=no
  8.8429 +fi
  8.8430 +
  8.8431 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8.8432        conftest$ac_exeext conftest.$ac_ext
  8.8433  fi
  8.8434 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8.8435 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8.8436 +{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8.8437 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8.8438  if test $ac_cv_func_shl_load = yes; then
  8.8439    lt_cv_dlopen="shl_load"
  8.8440  else
  8.8441 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8.8442 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8.8443 +  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8.8444 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8.8445  if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8.8446    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.8447  else
  8.8448 @@ -7900,61 +9241,58 @@
  8.8449  cat >>conftest.$ac_ext <<_ACEOF
  8.8450  /* end confdefs.h.  */
  8.8451  
  8.8452 -/* Override any gcc2 internal prototype to avoid an error.  */
  8.8453 +/* Override any GCC internal prototype to avoid an error.
  8.8454 +   Use char because int might match the return type of a GCC
  8.8455 +   builtin and then its argument prototype would still apply.  */
  8.8456  #ifdef __cplusplus
  8.8457  extern "C"
  8.8458  #endif
  8.8459 -/* We use char because int might match the return type of a gcc2
  8.8460 -   builtin and then its argument prototype would still apply.  */
  8.8461  char shl_load ();
  8.8462  int
  8.8463  main ()
  8.8464  {
  8.8465 -shl_load ();
  8.8466 +return shl_load ();
  8.8467    ;
  8.8468    return 0;
  8.8469  }
  8.8470  _ACEOF
  8.8471  rm -f conftest.$ac_objext conftest$ac_exeext
  8.8472 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.8473 -  (eval $ac_link) 2>conftest.er1
  8.8474 +if { (ac_try="$ac_link"
  8.8475 +case "(($ac_try" in
  8.8476 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.8477 +  *) ac_try_echo=$ac_try;;
  8.8478 +esac
  8.8479 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.8480 +  (eval "$ac_link") 2>conftest.er1
  8.8481    ac_status=$?
  8.8482    grep -v '^ *+' conftest.er1 >conftest.err
  8.8483    rm -f conftest.er1
  8.8484    cat conftest.err >&5
  8.8485    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8486 -  (exit $ac_status); } &&
  8.8487 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.8488 -			 || test ! -s conftest.err'
  8.8489 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8490 -  (eval $ac_try) 2>&5
  8.8491 -  ac_status=$?
  8.8492 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8493 -  (exit $ac_status); }; } &&
  8.8494 -	 { ac_try='test -s conftest$ac_exeext'
  8.8495 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8496 -  (eval $ac_try) 2>&5
  8.8497 -  ac_status=$?
  8.8498 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8499 -  (exit $ac_status); }; }; then
  8.8500 +  (exit $ac_status); } && {
  8.8501 +	 test -z "$ac_c_werror_flag" ||
  8.8502 +	 test ! -s conftest.err
  8.8503 +       } && test -s conftest$ac_exeext &&
  8.8504 +       $as_test_x conftest$ac_exeext; then
  8.8505    ac_cv_lib_dld_shl_load=yes
  8.8506  else
  8.8507    echo "$as_me: failed program was:" >&5
  8.8508  sed 's/^/| /' conftest.$ac_ext >&5
  8.8509  
  8.8510 -ac_cv_lib_dld_shl_load=no
  8.8511 -fi
  8.8512 -rm -f conftest.err conftest.$ac_objext \
  8.8513 +	ac_cv_lib_dld_shl_load=no
  8.8514 +fi
  8.8515 +
  8.8516 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8.8517        conftest$ac_exeext conftest.$ac_ext
  8.8518  LIBS=$ac_check_lib_save_LIBS
  8.8519  fi
  8.8520 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8.8521 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8.8522 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8.8523 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8.8524  if test $ac_cv_lib_dld_shl_load = yes; then
  8.8525 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8.8526 -else
  8.8527 -  echo "$as_me:$LINENO: checking for dlopen" >&5
  8.8528 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8.8529 +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8.8530 +else
  8.8531 +  { echo "$as_me:$LINENO: checking for dlopen" >&5
  8.8532 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8.8533  if test "${ac_cv_func_dlopen+set}" = set; then
  8.8534    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.8535  else
  8.8536 @@ -7981,73 +9319,64 @@
  8.8537  
  8.8538  #undef dlopen
  8.8539  
  8.8540 -/* Override any gcc2 internal prototype to avoid an error.  */
  8.8541 +/* Override any GCC internal prototype to avoid an error.
  8.8542 +   Use char because int might match the return type of a GCC
  8.8543 +   builtin and then its argument prototype would still apply.  */
  8.8544  #ifdef __cplusplus
  8.8545  extern "C"
  8.8546 -{
  8.8547  #endif
  8.8548 -/* We use char because int might match the return type of a gcc2
  8.8549 -   builtin and then its argument prototype would still apply.  */
  8.8550  char dlopen ();
  8.8551  /* The GNU C library defines this for functions which it implements
  8.8552      to always fail with ENOSYS.  Some functions are actually named
  8.8553      something starting with __ and the normal name is an alias.  */
  8.8554 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  8.8555 +#if defined __stub_dlopen || defined __stub___dlopen
  8.8556  choke me
  8.8557 -#else
  8.8558 -char (*f) () = dlopen;
  8.8559 -#endif
  8.8560 -#ifdef __cplusplus
  8.8561 -}
  8.8562  #endif
  8.8563  
  8.8564  int
  8.8565  main ()
  8.8566  {
  8.8567 -return f != dlopen;
  8.8568 +return dlopen ();
  8.8569    ;
  8.8570    return 0;
  8.8571  }
  8.8572  _ACEOF
  8.8573  rm -f conftest.$ac_objext conftest$ac_exeext
  8.8574 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.8575 -  (eval $ac_link) 2>conftest.er1
  8.8576 +if { (ac_try="$ac_link"
  8.8577 +case "(($ac_try" in
  8.8578 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.8579 +  *) ac_try_echo=$ac_try;;
  8.8580 +esac
  8.8581 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.8582 +  (eval "$ac_link") 2>conftest.er1
  8.8583    ac_status=$?
  8.8584    grep -v '^ *+' conftest.er1 >conftest.err
  8.8585    rm -f conftest.er1
  8.8586    cat conftest.err >&5
  8.8587    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8588 -  (exit $ac_status); } &&
  8.8589 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.8590 -			 || test ! -s conftest.err'
  8.8591 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8592 -  (eval $ac_try) 2>&5
  8.8593 -  ac_status=$?
  8.8594 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8595 -  (exit $ac_status); }; } &&
  8.8596 -	 { ac_try='test -s conftest$ac_exeext'
  8.8597 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8598 -  (eval $ac_try) 2>&5
  8.8599 -  ac_status=$?
  8.8600 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8601 -  (exit $ac_status); }; }; then
  8.8602 +  (exit $ac_status); } && {
  8.8603 +	 test -z "$ac_c_werror_flag" ||
  8.8604 +	 test ! -s conftest.err
  8.8605 +       } && test -s conftest$ac_exeext &&
  8.8606 +       $as_test_x conftest$ac_exeext; then
  8.8607    ac_cv_func_dlopen=yes
  8.8608  else
  8.8609    echo "$as_me: failed program was:" >&5
  8.8610  sed 's/^/| /' conftest.$ac_ext >&5
  8.8611  
  8.8612 -ac_cv_func_dlopen=no
  8.8613 -fi
  8.8614 -rm -f conftest.err conftest.$ac_objext \
  8.8615 +	ac_cv_func_dlopen=no
  8.8616 +fi
  8.8617 +
  8.8618 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8.8619        conftest$ac_exeext conftest.$ac_ext
  8.8620  fi
  8.8621 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8.8622 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8.8623 +{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8.8624 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8.8625  if test $ac_cv_func_dlopen = yes; then
  8.8626    lt_cv_dlopen="dlopen"
  8.8627  else
  8.8628 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8.8629 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8.8630 +  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8.8631 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8.8632  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8.8633    echo $ECHO_N "(cached) $ECHO_C" >&6
  8.8634  else
  8.8635 @@ -8060,61 +9389,58 @@
  8.8636  cat >>conftest.$ac_ext <<_ACEOF
  8.8637  /* end confdefs.h.  */
  8.8638  
  8.8639 -/* Override any gcc2 internal prototype to avoid an error.  */
  8.8640 +/* Override any GCC internal prototype to avoid an error.
  8.8641 +   Use char because int might match the return type of a GCC
  8.8642 +   builtin and then its argument prototype would still apply.  */
  8.8643  #ifdef __cplusplus
  8.8644  extern "C"
  8.8645  #endif
  8.8646 -/* We use char because int might match the return type of a gcc2
  8.8647 -   builtin and then its argument prototype would still apply.  */
  8.8648  char dlopen ();
  8.8649  int
  8.8650  main ()
  8.8651  {
  8.8652 -dlopen ();
  8.8653 +return dlopen ();
  8.8654    ;
  8.8655    return 0;
  8.8656  }
  8.8657  _ACEOF
  8.8658  rm -f conftest.$ac_objext conftest$ac_exeext
  8.8659 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.8660 -  (eval $ac_link) 2>conftest.er1
  8.8661 +if { (ac_try="$ac_link"
  8.8662 +case "(($ac_try" in
  8.8663 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8.8664 +  *) ac_try_echo=$ac_try;;
  8.8665 +esac
  8.8666 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8.8667 +  (eval "$ac_link") 2>conftest.er1
  8.8668    ac_status=$?
  8.8669    grep -v '^ *+' conftest.er1 >conftest.err
  8.8670    rm -f conftest.er1
  8.8671    cat conftest.err >&5
  8.8672    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8673 -  (exit $ac_status); } &&
  8.8674 -	 { ac_try='test -z "$ac_c_werror_flag"
  8.8675 -			 || test ! -s conftest.err'
  8.8676 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8677 -  (eval $ac_try) 2>&5
  8.8678 -  ac_status=$?
  8.8679 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8680 -  (exit $ac_status); }; } &&
  8.8681 -	 { ac_try='test -s conftest$ac_exeext'
  8.8682 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.8683 -  (eval $ac_try) 2>&5
  8.8684 -  ac_status=$?
  8.8685 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.8686 -  (exit $ac_status); }; }; then
  8.8687 +  (exit $ac_status); } && {
  8.8688 +	 test -z "$ac_c_werror_flag" ||
  8.8689 +	 test ! -s conftest.err
  8.8690 +       } && test -s conftest$ac_exeext &&
  8.8691 +       $as_test_x conftest$ac_exeext; then
  8.8692    ac_cv_lib_dl_dlopen=yes
  8.8693  else
  8.8694    echo "$as_me: failed program was:" >&5
  8.8695  sed 's/^/| /' conftest.$ac_ext >&5
  8.8696  
  8.8697 -ac_cv_lib_dl_dlopen=no
  8.8698 -fi
  8.8699 -rm -f conftest.err conftest.$ac_objext \
  8.8700 +	ac_cv_lib_dl_dlopen=no
  8.8701 +fi
  8.8702 +