Diff for /configure between versions 1.437 and 1.437.2.40

version 1.437, 2002/02/11 19:17:08 version 1.437.2.40, 2003/04/04 20:41:20
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP$  # $OpenLDAP$
 # from OpenLDAP: pkg/ldap/configure.in,v 1.407 2002/02/11 15:43:13 kurt Exp    # from OpenLDAP: pkg/ldap/configure.in,v 1.408.2.33 2003/03/05 23:48:30 kurt Exp  
   
 # Copyright 1998-2002 The OpenLDAP Foundation.  All Rights Reserved.  # Copyright 1998-2003 The OpenLDAP Foundation.  All Rights Reserved.
 #   # 
 # Redistribution and use in source and binary forms, with or without  # Redistribution and use in source and binary forms, with or without
 # modification, are permitted only as authorized by the OpenLDAP  # modification, are permitted only as authorized by the OpenLDAP
Line 10 Line 10
 # http://www.OpenLDAP.org/license.html or in file LICENSE in the  # http://www.OpenLDAP.org/license.html or in file LICENSE in the
 # top-level directory of the distribution.  # top-level directory of the distribution.
   
 echo "Copyright 1998-2002 The OpenLDAP Foundation,  All Rights Reserved."  echo "Copyright 1998-2003 The OpenLDAP Foundation,  All Rights Reserved."
 echo "  Restrictions apply, see COPYRIGHT and LICENSE files."  echo "  Restrictions apply, see COPYRIGHT and LICENSE files."
   
 # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
Line 32  ac_help="$ac_help Line 32  ac_help="$ac_help
 ac_help="$ac_help  ac_help="$ac_help
   --enable-syslog         enable syslog support [auto]"    --enable-syslog         enable syslog support [auto]"
 ac_help="$ac_help  ac_help="$ac_help
   --enable-proctitle      enable proctitle support [yes]"    --enable-dynamic        enable linking built binaries with dynamic libs [no]"
 ac_help="$ac_help  
   --enable-cache          enable caching (experimental) [no]"  
 ac_help="$ac_help  
   --enable-referrals      enable LDAPv2+ Referrals (experimental) [no]"  
 ac_help="$ac_help  ac_help="$ac_help
   --enable-kbind          enable LDAPv2+ Kerberos IV bind (deprecated) [no]"    --enable-proctitle      enable proctitle support [yes]"
 ac_help="$ac_help  ac_help="$ac_help
   --enable-ipv6           enable IPv6 support [auto]"    --enable-ipv6           enable IPv6 support [auto]"
 ac_help="$ac_help  ac_help="$ac_help
   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]"    --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]"
 ac_help="$ac_help  ac_help="$ac_help
   --enable-rewrite        enable rewrite [no]"  
 ac_help="$ac_help  
   --enable-x-compile      enable cross compiling [no]"    --enable-x-compile      enable cross compiling [no]"
 ac_help="$ac_help  ac_help="$ac_help
   --with-cyrus-sasl       with Cyrus SASL support [auto]"    --with-cyrus-sasl       with Cyrus SASL support [auto]"
 ac_help="$ac_help  ac_help="$ac_help
   --with-fetch            with fetch URL support [auto]"    --with-fetch            with fetch(3) URL support [auto]"
 ac_help="$ac_help  ac_help="$ac_help
   --with-kerberos         with Kerberos support [auto]"    --with-kerberos         with Kerberos support [auto]"
 ac_help="$ac_help  ac_help="$ac_help
Line 73  ac_help="$ac_help Line 67  ac_help="$ac_help
 ac_help="$ac_help  ac_help="$ac_help
     --enable-crypt        enable crypt(3) passwords [no]"      --enable-crypt        enable crypt(3) passwords [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-dynamic      enable linking built binaries with dynamic libs [no]"  
 ac_help="$ac_help  
     --enable-kpasswd      enable Kerberos password verification [no]"      --enable-kpasswd      enable Kerberos password verification [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-lmpasswd     enable LAN Manager passwords [no]"      --enable-lmpasswd     enable LAN Manager passwords [no]"
Line 85  ac_help="$ac_help Line 77  ac_help="$ac_help
 ac_help="$ac_help  ac_help="$ac_help
     --enable-phonetic     enable phonetic/soundex [no]"      --enable-phonetic     enable phonetic/soundex [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-rlookups     enable reverse lookups [no]"      --enable-rewrite      enable DN rewriting in back-ldap and back-meta [no]"
   ac_help="$ac_help
       --enable-rlookups     enable reverse lookups of client hostnames [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-slp          enable SLPv2 support [no]"      --enable-slp          enable SLPv2 support [no]"
 ac_help="$ac_help  ac_help="$ac_help
Line 93  ac_help="$ac_help Line 87  ac_help="$ac_help
 ac_help="$ac_help  ac_help="$ac_help
     --enable-bdb          enable Berkeley DB backend [yes]"      --enable-bdb          enable Berkeley DB backend [yes]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-bdb-module     module type [static]"      --with-bdb-module     module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-dnssrv       enable dnssrv backend [no]"      --enable-dnssrv       enable dnssrv backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-dnssrv-module  module type [static]"      --with-dnssrv-module  module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-ldap         enable ldap backend [no]"      --enable-ldap         enable ldap backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-ldap-module    module type [static]"      --with-ldap-module    module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-ldbm         enable ldbm backend [no]"      --enable-ldbm         enable ldbm backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-ldbm-api       with LDBM API [auto]"      --with-ldbm-api       with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-ldbm-module    module type [static]"      --with-ldbm-module    module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-ldbm-type      use LDBM type [auto]"      --with-ldbm-type      use LDBM type auto|btree|hash [auto]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-meta         enable metadirectory backend [no]"      --enable-meta         enable metadirectory backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-meta-module    module type [static]"      --with-meta-module    module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-monitor      enable monitor backend [no]"      --enable-monitor      enable monitor backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-monitor-module module type [static]"      --with-monitor-module module type static|dynamic [static]"
   ac_help="$ac_help
       --enable-null         enable null backend [no]"
   ac_help="$ac_help
       --with-null-module    module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-passwd       enable passwd backend [no]"      --enable-passwd       enable passwd backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-passwd-module  module type [static]"      --with-passwd-module  module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-perl         enable perl backend [no]"      --enable-perl         enable perl backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-perl-module    module type [static]"      --with-perl-module    module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-shell        enable shell backend [no]"      --enable-shell        enable shell backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-shell-module   module type [static]"      --with-shell-module   module type static|dynamic [static]"
 ac_help="$ac_help  ac_help="$ac_help
     --enable-sql          enable sql backend [no]"      --enable-sql          enable sql backend [no]"
 ac_help="$ac_help  ac_help="$ac_help
     --with-sql-module     module type [static]"      --with-sql-module     module type static|dynamic [static]"
 ac_help="$ac_help  
     --enable-tcl          enable tcl backend [no]"  
 ac_help="$ac_help  
     --with-tcl-module     module type [static]"  
 ac_help="$ac_help  ac_help="$ac_help
   
 SLURPD (Replication Daemon) Options:"  SLURPD (Replication Daemon) Options:"
Line 868  fi Line 862  fi
   
 SHTOOL="$ac_cv_shtool"  SHTOOL="$ac_cv_shtool"
   
 TB=`$SHTOOL echo -e %B`  TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
 TN=`$SHTOOL echo -e %b`  TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
   
   OPENLDAP_CVS=""
   if test -d $ac_aux_dir/CVS; then
           OPENLDAP_CVS="(from CVS sources) "
   fi
   
 echo "Configuring $TB$OL_STRING$TN ..."  echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
   
   
 echo $ac_n "checking host system type""... $ac_c" 1>&6  echo $ac_n "checking host system type""... $ac_c" 1>&6
 echo "configure:879: checking host system type" >&5  echo "configure:878: checking host system type" >&5
 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then  if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
   
 # Make sure we can run config.sub.  # Make sure we can run config.sub.
Line 916  host_os=$ac_cv_host_os Line 915  host_os=$ac_cv_host_os
   
   
 echo $ac_n "checking target system type""... $ac_c" 1>&6  echo $ac_n "checking target system type""... $ac_c" 1>&6
 echo "configure:920: checking target system type" >&5  echo "configure:919: checking target system type" >&5
 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then  if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
   
 # Make sure we can run config.sub.  # Make sure we can run config.sub.
Line 956  target_os=$ac_cv_target_os Line 955  target_os=$ac_cv_target_os
   
   
 echo $ac_n "checking build system type""... $ac_c" 1>&6  echo $ac_n "checking build system type""... $ac_c" 1>&6
 echo "configure:960: checking build system type" >&5  echo "configure:959: checking build system type" >&5
 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then  if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
   
 # Make sure we can run config.sub.  # Make sure we can run config.sub.
Line 1033  test "$host_alias" != "$target_alias" && Line 1032  test "$host_alias" != "$target_alias" &&
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 echo "configure:1037: checking for a BSD compatible install" >&5  echo "configure:1036: checking for a BSD compatible install" >&5
 if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
 if eval "test \"\${ac_cv_path_install+set}\" = set"; then  if eval "test \"\${ac_cv_path_install+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 1090  test -z "$INSTALL_SCRIPT" && INSTALL_SCR Line 1089  test -z "$INSTALL_SCRIPT" && INSTALL_SCR
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   
 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 echo "configure:1094: checking whether build environment is sane" >&5  echo "configure:1093: checking whether build environment is sane" >&5
 # Just in case  # Just in case
 sleep 1  sleep 1
 echo timestamp > conftestfile  echo timestamp > conftestfile
Line 1151  do Line 1150  do
 # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:1155: checking for $ac_word" >&5  echo "configure:1154: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then  if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 1181  test -n "$AWK" && break Line 1180  test -n "$AWK" && break
 done  done
   
 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 echo "configure:1185: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo "configure:1184: checking whether ${MAKE-make} sets \${MAKE}" >&5
 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then  if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 1221  fi Line 1220  fi
   
 missing_dir=`cd $ac_aux_dir && pwd`  missing_dir=`cd $ac_aux_dir && pwd`
 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6  echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
 echo "configure:1225: checking for working aclocal" >&5  echo "configure:1224: checking for working aclocal" >&5
 # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
Line 1234  else Line 1233  else
 fi  fi
   
 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6  echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
 echo "configure:1238: checking for working autoconf" >&5  echo "configure:1237: checking for working autoconf" >&5
 # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
Line 1247  else Line 1246  else
 fi  fi
   
 echo $ac_n "checking for working automake""... $ac_c" 1>&6  echo $ac_n "checking for working automake""... $ac_c" 1>&6
 echo "configure:1251: checking for working automake" >&5  echo "configure:1250: checking for working automake" >&5
 # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
Line 1260  else Line 1259  else
 fi  fi
   
 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6  echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
 echo "configure:1264: checking for working autoheader" >&5  echo "configure:1263: checking for working autoheader" >&5
 # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
Line 1273  else Line 1272  else
 fi  fi
   
 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6  echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
 echo "configure:1277: checking for working makeinfo" >&5  echo "configure:1276: checking for working makeinfo" >&5
 # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
Line 1293  do Line 1292  do
 # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:1297: checking for $ac_word" >&5  echo "configure:1296: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then  if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 1358  EOF Line 1357  EOF
   
 OPENLDAP_LIBVERSION=$OL_API_LIB  OPENLDAP_LIBVERSION=$OL_API_LIB
   
   OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
   
   
   
 echo $ac_n "checking configure arguments""... $ac_c" 1>&6  echo $ac_n "checking configure arguments""... $ac_c" 1>&6
 echo "configure:1365: checking configure arguments" >&5  echo "configure:1366: checking configure arguments" >&5
   
   
 top_builddir=`pwd`  top_builddir=`pwd`
Line 1427  else Line 1428  else
         ol_enable_syslog="auto"          ol_enable_syslog="auto"
 fi  fi
 # end --enable-syslog  # end --enable-syslog
 # OpenLDAP --enable-proctitle  # OpenLDAP --enable-dynamic
         # Check whether --enable-proctitle or --disable-proctitle was given.          # Check whether --enable-dynamic or --disable-dynamic was given.
 if test "${enable_proctitle+set}" = set; then  if test "${enable_dynamic+set}" = set; then
   enableval="$enable_proctitle"    enableval="$enable_dynamic"
     
         ol_arg=invalid  
         for ol_val in auto yes no ; do  
                 if test "$enableval" = "$ol_val" ; then  
                         ol_arg="$ol_val"  
                 fi  
         done  
         if test "$ol_arg" = "invalid" ; then  
                 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }  
         fi  
         ol_enable_proctitle="$ol_arg"  
   
 else  
         ol_enable_proctitle="yes"  
 fi  
 # end --enable-proctitle  
 # OpenLDAP --enable-cache  
         # Check whether --enable-cache or --disable-cache was given.  
 if test "${enable_cache+set}" = set; then  
   enableval="$enable_cache"  
     
         ol_arg=invalid  
         for ol_val in auto yes no ; do  
                 if test "$enableval" = "$ol_val" ; then  
                         ol_arg="$ol_val"  
                 fi  
         done  
         if test "$ol_arg" = "invalid" ; then  
                 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }  
         fi  
         ol_enable_cache="$ol_arg"  
   
 else  
         ol_enable_cache="no"  
 fi  
 # end --enable-cache  
 # OpenLDAP --enable-referrals  
         # Check whether --enable-referrals or --disable-referrals was given.  
 if test "${enable_referrals+set}" = set; then  
   enableval="$enable_referrals"  
       
         ol_arg=invalid          ol_arg=invalid
         for ol_val in auto yes no ; do          for ol_val in auto yes no ; do
Line 1479  if test "${enable_referrals+set}" = set; Line 1440  if test "${enable_referrals+set}" = set;
                 fi                  fi
         done          done
         if test "$ol_arg" = "invalid" ; then          if test "$ol_arg" = "invalid" ; then
                 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }                  { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
         fi          fi
         ol_enable_referrals="$ol_arg"          ol_enable_dynamic="$ol_arg"
   
 else  else
         ol_enable_referrals="no"          ol_enable_dynamic="no"
 fi  fi
 # end --enable-referrals  # end --enable-dynamic
 # OpenLDAP --enable-kbind  # OpenLDAP --enable-proctitle
         # Check whether --enable-kbind or --disable-kbind was given.          # Check whether --enable-proctitle or --disable-proctitle was given.
 if test "${enable_kbind+set}" = set; then  if test "${enable_proctitle+set}" = set; then
   enableval="$enable_kbind"    enableval="$enable_proctitle"
       
         ol_arg=invalid          ol_arg=invalid
         for ol_val in auto yes no ; do          for ol_val in auto yes no ; do
Line 1499  if test "${enable_kbind+set}" = set; the Line 1460  if test "${enable_kbind+set}" = set; the
                 fi                  fi
         done          done
         if test "$ol_arg" = "invalid" ; then          if test "$ol_arg" = "invalid" ; then
                 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }                  { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
         fi          fi
         ol_enable_kbind="$ol_arg"          ol_enable_proctitle="$ol_arg"
   
 else  else
         ol_enable_kbind="no"          ol_enable_proctitle="yes"
 fi  fi
 # end --enable-kbind  # end --enable-proctitle
   ol_enable_referrals=${ol_enable_referrals-no}
   ol_enable_kbind=${ol_enable_kbind-no}
 # OpenLDAP --enable-ipv6  # OpenLDAP --enable-ipv6
         # Check whether --enable-ipv6 or --disable-ipv6 was given.          # Check whether --enable-ipv6 or --disable-ipv6 was given.
 if test "${enable_ipv6+set}" = set; then  if test "${enable_ipv6+set}" = set; then
Line 1547  else Line 1510  else
         ol_enable_local="auto"          ol_enable_local="auto"
 fi  fi
 # end --enable-local  # end --enable-local
 # OpenLDAP --enable-rewrite  
         # Check whether --enable-rewrite or --disable-rewrite was given.  
 if test "${enable_rewrite+set}" = set; then  
   enableval="$enable_rewrite"  
     
         ol_arg=invalid  
         for ol_val in auto yes no ; do  
                 if test "$enableval" = "$ol_val" ; then  
                         ol_arg="$ol_val"  
                 fi  
         done  
         if test "$ol_arg" = "invalid" ; then  
                 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }  
         fi  
         ol_enable_rewrite="$ol_arg"  
   
 else  
         ol_enable_rewrite="no"  
 fi  
 # end --enable-rewrite  
 # OpenLDAP --enable-x_compile  # OpenLDAP --enable-x_compile
         # Check whether --enable-x_compile or --disable-x_compile was given.          # Check whether --enable-x_compile or --disable-x_compile was given.
 if test "${enable_x_compile+set}" = set; then  if test "${enable_x_compile+set}" = set; then
Line 1824  else Line 1767  else
         ol_enable_crypt="no"          ol_enable_crypt="no"
 fi  fi
 # end --enable-crypt  # end --enable-crypt
 # OpenLDAP --enable-dynamic  
         # Check whether --enable-dynamic or --disable-dynamic was given.  
 if test "${enable_dynamic+set}" = set; then  
   enableval="$enable_dynamic"  
     
         ol_arg=invalid  
         for ol_val in auto yes no ; do  
                 if test "$enableval" = "$ol_val" ; then  
                         ol_arg="$ol_val"  
                 fi  
         done  
         if test "$ol_arg" = "invalid" ; then  
                 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }  
         fi  
         ol_enable_dynamic="$ol_arg"  
   
 else  
         ol_enable_dynamic="no"  
 fi  
 # end --enable-dynamic  
 # OpenLDAP --enable-kpasswd  # OpenLDAP --enable-kpasswd
         # Check whether --enable-kpasswd or --disable-kpasswd was given.          # Check whether --enable-kpasswd or --disable-kpasswd was given.
 if test "${enable_kpasswd+set}" = set; then  if test "${enable_kpasswd+set}" = set; then
Line 1924  else Line 1847  else
         ol_enable_modules="no"          ol_enable_modules="no"
 fi  fi
 # end --enable-modules  # end --enable-modules
   ol_enable_multimaster=${ol_enable_multimaster-no}
 # OpenLDAP --enable-phonetic  # OpenLDAP --enable-phonetic
         # Check whether --enable-phonetic or --disable-phonetic was given.          # Check whether --enable-phonetic or --disable-phonetic was given.
 if test "${enable_phonetic+set}" = set; then  if test "${enable_phonetic+set}" = set; then
Line 1944  else Line 1868  else
         ol_enable_phonetic="no"          ol_enable_phonetic="no"
 fi  fi
 # end --enable-phonetic  # end --enable-phonetic
   # OpenLDAP --enable-rewrite
           # Check whether --enable-rewrite or --disable-rewrite was given.
   if test "${enable_rewrite+set}" = set; then
     enableval="$enable_rewrite"
     
           ol_arg=invalid
           for ol_val in auto yes no ; do
                   if test "$enableval" = "$ol_val" ; then
                           ol_arg="$ol_val"
                   fi
           done
           if test "$ol_arg" = "invalid" ; then
                   { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
           fi
           ol_enable_rewrite="$ol_arg"
   
   else
           ol_enable_rewrite="no"
   fi
   # end --enable-rewrite
 # OpenLDAP --enable-rlookups  # OpenLDAP --enable-rlookups
         # Check whether --enable-rlookups or --disable-rlookups was given.          # Check whether --enable-rlookups or --disable-rlookups was given.
 if test "${enable_rlookups+set}" = set; then  if test "${enable_rlookups+set}" = set; then
Line 2293  else Line 2237  else
 fi  fi
 # end --with-monitor_module  # end --with-monitor_module
   
   # OpenLDAP --enable-null
           # Check whether --enable-null or --disable-null was given.
   if test "${enable_null+set}" = set; then
     enableval="$enable_null"
     
           ol_arg=invalid
           for ol_val in auto yes no ; do
                   if test "$enableval" = "$ol_val" ; then
                           ol_arg="$ol_val"
                   fi
           done
           if test "$ol_arg" = "invalid" ; then
                   { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
           fi
           ol_enable_null="$ol_arg"
   
   else
           ol_enable_null="no"
   fi
   # end --enable-null
   # OpenLDAP --with-null_module
           # Check whether --with-null_module or --without-null_module was given.
   if test "${with_null_module+set}" = set; then
     withval="$with_null_module"
     
           ol_arg=invalid
           for ol_val in static dynamic ; do
                   if test "$withval" = "$ol_val" ; then
                           ol_arg="$ol_val"
                   fi
           done
           if test "$ol_arg" = "invalid" ; then
                   { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
           fi
           ol_with_null_module="$ol_arg"
   
   else
           ol_with_null_module="static"
   fi
   # end --with-null_module
   
 # OpenLDAP --enable-passwd  # OpenLDAP --enable-passwd
         # Check whether --enable-passwd or --disable-passwd was given.          # Check whether --enable-passwd or --disable-passwd was given.
 if test "${enable_passwd+set}" = set; then  if test "${enable_passwd+set}" = set; then
Line 2457  else Line 2442  else
 fi  fi
 # end --with-sql_module  # end --with-sql_module
   
 # OpenLDAP --enable-tcl  
         # Check whether --enable-tcl or --disable-tcl was given.  
 if test "${enable_tcl+set}" = set; then  
   enableval="$enable_tcl"  
     
         ol_arg=invalid  
         for ol_val in auto yes no ; do  
                 if test "$enableval" = "$ol_val" ; then  
                         ol_arg="$ol_val"  
                 fi  
         done  
         if test "$ol_arg" = "invalid" ; then  
                 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }  
         fi  
         ol_enable_tcl="$ol_arg"  
   
 else  
         ol_enable_tcl="no"  
 fi  
 # end --enable-tcl  
 # OpenLDAP --with-tcl_module  
         # Check whether --with-tcl_module or --without-tcl_module was given.  
 if test "${with_tcl_module+set}" = set; then  
   withval="$with_tcl_module"  
     
         ol_arg=invalid  
         for ol_val in static dynamic ; do  
                 if test "$withval" = "$ol_val" ; then  
                         ol_arg="$ol_val"  
                 fi  
         done  
         if test "$ol_arg" = "invalid" ; then  
                 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }  
         fi  
         ol_with_tcl_module="$ol_arg"  
   
 else  
         ol_with_tcl_module="static"  
 fi  
 # end --with-tcl_module  
   
   
 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.  # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
 if test "${with_xxslurpdoptions+set}" = set; then  if test "${with_xxslurpdoptions+set}" = set; then
Line 2600  if test $ol_enable_slapd = no ; then Line 2544  if test $ol_enable_slapd = no ; then
         if test $ol_enable_monitor = yes ; then          if test $ol_enable_monitor = yes ; then
                 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
         fi          fi
           if test $ol_enable_null = yes ; then
                   echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
           fi
         if test $ol_enable_passwd = yes ; then          if test $ol_enable_passwd = yes ; then
                 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
         fi          fi
Line 2609  if test $ol_enable_slapd = no ; then Line 2556  if test $ol_enable_slapd = no ; then
         if test $ol_enable_shell = yes ; then          if test $ol_enable_shell = yes ; then
                 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
         fi          fi
         if test $ol_enable_tcl = yes ; then  
                 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2  
         fi  
         if test $ol_enable_sql = yes ; then          if test $ol_enable_sql = yes ; then
                 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
         fi          fi
         if test $ol_enable_modules = yes ; then          if test $ol_enable_modules = yes ; then
                 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
         fi          fi
           if test $ol_enable_multimaster = yes ; then
                   echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
           fi
         if test $ol_enable_wrappers = yes ; then          if test $ol_enable_wrappers = yes ; then
                 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
         fi          fi
Line 2654  if test $ol_enable_slapd = no ; then Line 2601  if test $ol_enable_slapd = no ; then
         if test $ol_with_monitor_module != static ; then          if test $ol_with_monitor_module != static ; then
                 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
         fi          fi
           if test $ol_with_null_module != static ; then
                   echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
           fi
         if test $ol_with_passwd_module != static ; then          if test $ol_with_passwd_module != static ; then
                 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
         fi          fi
Line 2663  if test $ol_enable_slapd = no ; then Line 2613  if test $ol_enable_slapd = no ; then
         if test $ol_with_shell_module != static ; then          if test $ol_with_shell_module != static ; then
                 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
         fi          fi
         if test $ol_with_tcl_module != static ; then  
                 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2  
         fi  
         if test $ol_with_sql_module != static ; then          if test $ol_with_sql_module != static ; then
                 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2                  echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
         fi          fi
Line 2683  if test $ol_enable_slapd = no ; then Line 2630  if test $ol_enable_slapd = no ; then
         ol_enable_ldbm=no          ol_enable_ldbm=no
         ol_enable_meta=no          ol_enable_meta=no
         ol_enable_monitor=no          ol_enable_monitor=no
           ol_enable_null=no
         ol_enable_passwd=no          ol_enable_passwd=no
         ol_enable_perl=no          ol_enable_perl=no
         ol_enable_shell=no          ol_enable_shell=no
         ol_enable_tcl=no  
         ol_enable_sql=no          ol_enable_sql=no
   
         ol_enable_modules=no          ol_enable_modules=no
           ol_enable_multimaster=no
         ol_enable_phonetic=no          ol_enable_phonetic=no
         ol_enable_rlookups=no          ol_enable_rlookups=no
         ol_enable_aci=no          ol_enable_aci=no
Line 2705  if test $ol_enable_slapd = no ; then Line 2653  if test $ol_enable_slapd = no ; then
         ol_with_ldbm_module=static          ol_with_ldbm_module=static
         ol_with_meta_module=static          ol_with_meta_module=static
         ol_with_monitor_module=static          ol_with_monitor_module=static
           ol_with_null_module=static
         ol_with_passwd_module=static          ol_with_passwd_module=static
         ol_with_perl_module=static          ol_with_perl_module=static
         ol_with_shell_module=static          ol_with_shell_module=static
         ol_with_tcl_module=static  
         ol_with_sql_module=static          ol_with_sql_module=static
   
         ol_enable_slurpd=no          ol_enable_slurpd=no
Line 2735  elif test $ol_enable_ldbm = no ; then Line 2683  elif test $ol_enable_ldbm = no ; then
                 $ol_enable_ldap = no -a \                  $ol_enable_ldap = no -a \
                 $ol_enable_meta = no -a \                  $ol_enable_meta = no -a \
                 $ol_enable_monitor = no -a \                  $ol_enable_monitor = no -a \
                   $ol_enable_null = no -a \
                 $ol_enable_passwd = no -a \                  $ol_enable_passwd = no -a \
                 $ol_enable_perl = no -a \                  $ol_enable_perl = no -a \
                 $ol_enable_shell = no -a \                  $ol_enable_shell = no -a \
                 $ol_enable_sql = no -a \                  $ol_enable_sql = no ; then
                 $ol_enable_tcl = no ; then  
   
                 if test $ol_enable_slapd = yes ; then                  if test $ol_enable_slapd = yes ; then
                         { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }                          { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
Line 2826  echo "$ac_t""done" 1>&6 Line 2774  echo "$ac_t""done" 1>&6
   
 LDAP_LIBS=  LDAP_LIBS=
 LDIF_LIBS=  LDIF_LIBS=
 LDBM_LIB=  
 LDBM_LIBS=  LDBM_LIBS=
 LTHREAD_LIBS=  LTHREAD_LIBS=
 LUTIL_LIBS=  LUTIL_LIBS=
Line 2845  BUILD_LDAP=no Line 2792  BUILD_LDAP=no
 BUILD_LDBM=no  BUILD_LDBM=no
 BUILD_META=no  BUILD_META=no
 BUILD_MONITOR=no  BUILD_MONITOR=no
   BUILD_NULL=no
 BUILD_PASSWD=no  BUILD_PASSWD=no
 BUILD_PERL=no  BUILD_PERL=no
 BUILD_SHELL=no  BUILD_SHELL=no
 BUILD_SQL=no  BUILD_SQL=no
 BUILD_TCL=no  
   
 BUILD_BDB_DYNAMIC=static  BUILD_BDB_DYNAMIC=static
 BUILD_DNSSRV_DYNAMIC=static  BUILD_DNSSRV_DYNAMIC=static
Line 2857  BUILD_LDAP_DYNAMIC=static Line 2804  BUILD_LDAP_DYNAMIC=static
 BUILD_LDBM_DYNAMIC=static  BUILD_LDBM_DYNAMIC=static
 BUILD_META_DYNAMIC=static  BUILD_META_DYNAMIC=static
 BUILD_MONITOR_DYNAMIC=static  BUILD_MONITOR_DYNAMIC=static
   BUILD_NULL_DYNAMIC=static
 BUILD_PASSWD_DYNAMIC=static  BUILD_PASSWD_DYNAMIC=static
 BUILD_PERL_DYNAMIC=static  BUILD_PERL_DYNAMIC=static
 BUILD_SHELL_DYNAMIC=static  BUILD_SHELL_DYNAMIC=static
 BUILD_TCL_DYNAMIC=static  
 BUILD_SQL_DYNAMIC=static  BUILD_SQL_DYNAMIC=static
   
 SLAPD_MODULES_LDFLAGS=  SLAPD_MODULES_LDFLAGS=
 SLAPD_MODULES_CPPFLAGS=  SLAPD_MODULES_CPPFLAGS=
 SLAPD_MODULES_LIST=  
   
 SLAPD_STATIC_BACKENDS=  SLAPD_STATIC_BACKENDS=
 SLAPD_DYNAMIC_BACKENDS=  SLAPD_DYNAMIC_BACKENDS=
Line 2878  SLAPD_SQL_LDFLAGS= Line 2824  SLAPD_SQL_LDFLAGS=
 SLAPD_SQL_LIBS=  SLAPD_SQL_LIBS=
 SLAPD_SQL_INCLUDES=  SLAPD_SQL_INCLUDES=
   
 MOD_TCL_LIB=  
 KRB4_LIBS=  KRB4_LIBS=
 KRB5_LIBS=  KRB5_LIBS=
 READLINE_LIBS=  READLINE_LIBS=
Line 2903  SLAPD_SLP_LIBS= Line 2848  SLAPD_SLP_LIBS=
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 echo "configure:2907: checking for a BSD compatible install" >&5  echo "configure:2852: checking for a BSD compatible install" >&5
 if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
 if eval "test \"\${ac_cv_path_install+set}\" = set"; then  if eval "test \"\${ac_cv_path_install+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2984  do Line 2929  do
 # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:2988: checking for $ac_word" >&5  echo "configure:2933: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then  if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3031  done Line 2976  done
 fi  fi
   
 if test -z "${CC}"; then  if test -z "${CC}"; then
         for ac_prog in cc          for ac_prog in cc gcc
 do  do
 # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:3040: checking for $ac_word" >&5  echo "configure:2985: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then  if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3064  fi Line 3009  fi
   
 test -n "$CC" && break  test -n "$CC" && break
 done  done
   test -n "$CC" || CC="missing"
   
 fi  
   
           if test "${CC}" = "missing" ; then
                   { echo "configure: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." 1>&2; exit 1; }
           fi
   fi
   
 for ac_prog in ar gar  if test -z "${AR}"; then
           for ac_prog in ar gar
 do  do
 # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:3077: checking for $ac_word" >&5  echo "configure:3027: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then  if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3101  fi Line 3051  fi
   
 test -n "$AR" && break  test -n "$AR" && break
 done  done
 test -n "$AR" || AR="ar"  test -n "$AR" || AR="missing"
   
   
           if test "${AR}" = "missing" ; then
                   { echo "configure: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." 1>&2; exit 1; }
           fi
   fi
   
   
   
 # Find the correct PATH separator.  Usually this is `:', but  # Find the correct PATH separator.  Usually this is `:', but
Line 3118  if test "X${PATH_SEPARATOR+set}" != Xset Line 3073  if test "X${PATH_SEPARATOR+set}" != Xset
 fi  fi
   
 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6  echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 echo "configure:3122: checking for Cygwin environment" >&5  echo "configure:3077: checking for Cygwin environment" >&5
 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then  if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3127 "configure"  #line 3082 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
Line 3134  int main() { Line 3089  int main() {
 return __CYGWIN__;  return __CYGWIN__;
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_cygwin=yes    ac_cv_cygwin=yes
 else  else
Line 3150  echo "$ac_t""$ac_cv_cygwin" 1>&6 Line 3105  echo "$ac_t""$ac_cv_cygwin" 1>&6
 CYGWIN=  CYGWIN=
 test "$ac_cv_cygwin" = yes && CYGWIN=yes  test "$ac_cv_cygwin" = yes && CYGWIN=yes
 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6  echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 echo "configure:3154: checking for mingw32 environment" >&5  echo "configure:3109: checking for mingw32 environment" >&5
 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then  if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3159 "configure"  #line 3114 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 return __MINGW32__;  return __MINGW32__;
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_mingw32=yes    ac_cv_mingw32=yes
 else  else
Line 3178  echo "$ac_t""$ac_cv_mingw32" 1>&6 Line 3133  echo "$ac_t""$ac_cv_mingw32" 1>&6
 MINGW32=  MINGW32=
 test "$ac_cv_mingw32" = yes && MINGW32=yes  test "$ac_cv_mingw32" = yes && MINGW32=yes
 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6  echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
 echo "configure:3182: checking for EMX OS/2 environment" >&5  echo "configure:3137: checking for EMX OS/2 environment" >&5
 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then  if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3187 "configure"  #line 3142 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 return __EMX__;  return __EMX__;
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_emxos2=yes    ac_cv_emxos2=yes
 else  else
Line 3206  echo "$ac_t""$ac_cv_emxos2" 1>&6 Line 3161  echo "$ac_t""$ac_cv_emxos2" 1>&6
 EMXOS2=  EMXOS2=
 test "$ac_cv_emxos2" = yes && EMXOS2=yes  test "$ac_cv_emxos2" = yes && EMXOS2=yes
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 echo "configure:3210: checking how to run the C preprocessor" >&5  echo "configure:3165: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
   CPP=    CPP=
Line 3221  else Line 3176  else
   # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.    # not just through cpp.
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3225 "configure"  #line 3180 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 3238  else Line 3193  else
   rm -rf conftest*    rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3242 "configure"  #line 3197 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:3248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 3255  else Line 3210  else
   rm -rf conftest*    rm -rf conftest*
   CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3259 "configure"  #line 3214 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 3311  fi Line 3266  fi
 # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
 set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:3315: checking for $ac_word" >&5  echo "configure:3270: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then  if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3341  if test -z "$CC"; then Line 3296  if test -z "$CC"; then
   # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
 set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:3345: checking for $ac_word" >&5  echo "configure:3300: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then  if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3392  fi Line 3347  fi
       # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
 set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:3396: checking for $ac_word" >&5  echo "configure:3351: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then  if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3424  fi Line 3379  fi
 fi  fi
   
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 echo "configure:3428: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5  echo "configure:3383: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
   
 ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Line 3435  cross_compiling=$ac_cv_prog_cc_cross Line 3390  cross_compiling=$ac_cv_prog_cc_cross
   
 cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
   
 #line 3439 "configure"  #line 3394 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 main(){return(0);}  main(){return(0);}
 EOF  EOF
 if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
   # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
   if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
Line 3466  if test $ac_cv_prog_cc_works = no; then Line 3421  if test $ac_cv_prog_cc_works = no; then
   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 fi  fi
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 echo "configure:3470: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:3425: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
   
 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 echo "configure:3475: checking whether we are using GNU C" >&5  echo "configure:3430: checking whether we are using GNU C" >&5
 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then  if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3480  else Line 3435  else
   yes;    yes;
 #endif  #endif
 EOF  EOF
 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
 else  else
   ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
Line 3499  ac_test_CFLAGS="${CFLAGS+set}" Line 3454  ac_test_CFLAGS="${CFLAGS+set}"
 ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
 CFLAGS=  CFLAGS=
 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 echo "configure:3503: checking whether ${CC-cc} accepts -g" >&5  echo "configure:3458: checking whether ${CC-cc} accepts -g" >&5
 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then  if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3542  ac_prog=ld Line 3497  ac_prog=ld
 if test "$GCC" = yes; then  if test "$GCC" = yes; then
   # Check if gcc -print-prog-name=ld gives a path.    # Check if gcc -print-prog-name=ld gives a path.
   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6    echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
 echo "configure:3546: checking for ld used by GCC" >&5  echo "configure:3501: checking for ld used by GCC" >&5
   case $host in    case $host in
   *-*-mingw*)    *-*-mingw*)
     # gcc leaves a trailing carriage return which upsets mingw      # gcc leaves a trailing carriage return which upsets mingw
Line 3572  echo "configure:3546: checking for ld us Line 3527  echo "configure:3546: checking for ld us
   esac    esac
 elif test "$with_gnu_ld" = yes; then  elif test "$with_gnu_ld" = yes; then
   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6    echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
 echo "configure:3576: checking for GNU ld" >&5  echo "configure:3531: checking for GNU ld" >&5
 else  else
   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 echo "configure:3579: checking for non-GNU ld" >&5  echo "configure:3534: checking for non-GNU ld" >&5
 fi  fi
 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then  if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 3610  else Line 3565  else
 fi  fi
 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }  test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6  echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
 echo "configure:3614: checking if the linker ($LD) is GNU ld" >&5  echo "configure:3569: checking if the linker ($LD) is GNU ld" >&5
 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then  if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3627  with_gnu_ld=$lt_cv_prog_gnu_ld Line 3582  with_gnu_ld=$lt_cv_prog_gnu_ld
   
   
 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6  echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
 echo "configure:3631: checking for $LD option to reload object files" >&5  echo "configure:3586: checking for $LD option to reload object files" >&5
 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then  if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3639  reload_flag=$lt_cv_ld_reload_flag Line 3594  reload_flag=$lt_cv_ld_reload_flag
 test -n "$reload_flag" && reload_flag=" $reload_flag"  test -n "$reload_flag" && reload_flag=" $reload_flag"
   
 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6  echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
 echo "configure:3643: checking for BSD-compatible nm" >&5  echo "configure:3598: checking for BSD-compatible nm" >&5
 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then  if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3676  fi Line 3631  fi
 NM="$lt_cv_path_NM"  NM="$lt_cv_path_NM"
 echo "$ac_t""$NM" 1>&6  echo "$ac_t""$NM" 1>&6
   
   echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
   echo "configure:3636: checking for a sed that does not truncate output" >&5
   if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
     echo $ac_n "(cached) $ac_c" 1>&6
   else
     # Loop through the user's path and test for sed and gsed.
   # Then use that list of sed's as ones to test for truncation.
   as_executable_p="test -f"
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   for as_dir in $PATH
   do
     IFS=$as_save_IFS
     test -z "$as_dir" && as_dir=.
     for ac_prog in sed gsed; do
       for ac_exec_ext in '' $ac_executable_extensions; do
         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
           _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
         fi
       done
     done
   done
   
     # Create a temporary directory, and hook for its removal unless debugging.
   $debug ||
   {
     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     trap '{ (exit 1); exit 1; }' 1 2 13 15
   }
   
   # Create a (secure) tmp directory for tmp files.
   : ${TMPDIR=/tmp}
   {
     tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
     test -n "$tmp" && test -d "$tmp"
   }  ||
   {
     tmp=$TMPDIR/sed$$-$RANDOM
     (umask 077 && mkdir $tmp)
   } ||
   {
      echo "$me: cannot create a temporary directory in $TMPDIR" >&2
      { (exit 1); exit 1; }
   }
     _max=0
     _count=0
     # Add /usr/xpg4/bin/sed as it is typically found on Solaris
     # along with /bin/sed that truncates output.
     for _sed in $_sed_list /usr/xpg4/bin/sed; do
       test ! -f ${_sed} && break
       cat /dev/null > "$tmp/sed.in"
       _count=0
       echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
       # Check for GNU sed and select it if it is found.
       if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
         lt_cv_path_SED=${_sed}
         break
       fi
       while true; do
         cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
         mv "$tmp/sed.tmp" "$tmp/sed.in"
         cp "$tmp/sed.in" "$tmp/sed.nl"
         echo >>"$tmp/sed.nl"
         ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
         cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
         # 40000 chars as input seems more than enough
         test $_count -gt 10 && break
         _count=`expr $_count + 1`
         if test $_count -gt $_max; then
           _max=$_count
           lt_cv_path_SED=$_sed
         fi
       done
     done
     rm -rf "$tmp"
   
   fi
   
   if test "X$SED" != "X"; then
     lt_cv_path_SED=$SED
   else
     SED=$lt_cv_path_SED
   fi
   echo "$ac_t""$SED" 1>&6
   
 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 echo "configure:3681: checking whether ln -s works" >&5  echo "configure:3720: checking whether ln -s works" >&5
 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then  if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3697  else Line 3736  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  fi
   
 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6  echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
 echo "configure:3702: checking how to recognise dependant libraries" >&5  echo "configure:3741: checking how to recognise dependent libraries" >&5
 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then  if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3775  hpux10.20*|hpux11*) Line 3814  hpux10.20*|hpux11*)
   lt_cv_file_magic_test_file=/usr/lib/libc.sl    lt_cv_file_magic_test_file=/usr/lib/libc.sl
   ;;    ;;
   
 irix5* | irix6*)  irix5* | irix6* | nonstopux*)
   case $host_os in    case $host_os in
   irix5*)    irix5* | nonstopux*)
     # this will be overridden with pass_all, but let us keep it just in case      # this will be overridden with pass_all, but let us keep it just in case
     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"      lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
     ;;      ;;
Line 3799  irix5* | irix6*) Line 3838  irix5* | irix6*)
 # This must be Linux ELF.  # This must be Linux ELF.
 linux-gnu*)  linux-gnu*)
   case $host_cpu in    case $host_cpu in
   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )    alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
     lt_cv_deplibs_check_method=pass_all ;;      lt_cv_deplibs_check_method=pass_all ;;
   *)    *)
     # glibc up to 2.1.1 does not perform some relocations on ARM      # glibc up to 2.1.1 does not perform some relocations on ARM
Line 3870  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 3909  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"      lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
     lt_cv_file_magic_test_file=/lib/libc.so      lt_cv_file_magic_test_file=/lib/libc.so
     ;;      ;;
     siemens)
       lt_cv_deplibs_check_method=pass_all
       ;;
   esac    esac
   ;;    ;;
 esac  esac
Line 3881  file_magic_cmd=$lt_cv_file_magic_cmd Line 3923  file_magic_cmd=$lt_cv_file_magic_cmd
 deplibs_check_method=$lt_cv_deplibs_check_method  deplibs_check_method=$lt_cv_deplibs_check_method
   
 echo $ac_n "checking for object suffix""... $ac_c" 1>&6  echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 echo "configure:3885: checking for object suffix" >&5  echo "configure:3927: checking for object suffix" >&5
 if eval "test \"\${ac_cv_objext+set}\" = set"; then  if eval "test \"\${ac_cv_objext+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   rm -f conftest*    rm -f conftest*
 echo 'int i = 1;' > conftest.$ac_ext  echo 'int i = 1;' > conftest.$ac_ext
 if { (eval echo configure:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   for ac_file in conftest.*; do    for ac_file in conftest.*; do
     case $ac_file in      case $ac_file in
     *.c) ;;      *.c) ;;
Line 3908  ac_objext=$ac_cv_objext Line 3950  ac_objext=$ac_cv_objext
   
   
 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6  echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 echo "configure:3912: checking for executable suffix" >&5  echo "configure:3954: checking for executable suffix" >&5
 if eval "test \"\${ac_cv_exeext+set}\" = set"; then  if eval "test \"\${ac_cv_exeext+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3918  else Line 3960  else
   rm -f conftest*    rm -f conftest*
   echo 'int main () { return 0; }' > conftest.$ac_ext    echo 'int main () { return 0; }' > conftest.$ac_ext
   ac_cv_exeext=    ac_cv_exeext=
   if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then    if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     for file in conftest.*; do      for file in conftest.*; do
       case $file in        case $file in
       *.c | *.C | *.o | *.obj | *.xcoff) ;;        *.c | *.C | *.o | *.obj | *.xcoff) ;;
Line 3949  fi Line 3991  fi
   
 # Check for command to grab the raw symbol name followed by C symbol from nm.  # Check for command to grab the raw symbol name followed by C symbol from nm.
 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6  echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
 echo "configure:3953: checking command to parse $NM output" >&5  echo "configure:3995: checking command to parse $NM output" >&5
 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then  if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 3984  hpux*) # Its linker distinguishes data f Line 4026  hpux*) # Its linker distinguishes data f
   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"    lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"    lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   ;;    ;;
 irix*)  irix* | nonstopux*)
   symcode='[BCDEGRST]'    symcode='[BCDEGRST]'
   ;;    ;;
   osf*)
     symcode='[BCDEGQRST]'
     ;;
 solaris* | sysv5*)  solaris* | sysv5*)
   symcode='[BDT]'    symcode='[BDT]'
   ;;    ;;
Line 4029  void nm_test_func(){} Line 4074  void nm_test_func(){}
 int main(){nm_test_var='a';nm_test_func();return(0);}  int main(){nm_test_var='a';nm_test_func();return(0);}
 EOF  EOF
   
   if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then    if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     # Now try to grab the symbols.      # Now try to grab the symbols.
     nlist=conftest.nm      nlist=conftest.nm
     if { (eval echo configure:4036: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then      if { (eval echo configure:4081: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
       # Try sorting and uniquifying the output.        # Try sorting and uniquifying the output.
       if sort "$nlist" | uniq > "$nlist"T; then        if sort "$nlist" | uniq > "$nlist"T; then
         mv -f "$nlist"T "$nlist"          mv -f "$nlist"T "$nlist"
Line 4083  EOF Line 4128  EOF
           save_CFLAGS="$CFLAGS"            save_CFLAGS="$CFLAGS"
           LIBS="conftstm.$ac_objext"            LIBS="conftstm.$ac_objext"
           CFLAGS="$CFLAGS$no_builtin_flag"            CFLAGS="$CFLAGS$no_builtin_flag"
           if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then            if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
             pipe_works=yes              pipe_works=yes
           fi            fi
           LIBS="$save_LIBS"            LIBS="$save_LIBS"
Line 4132  for ac_hdr in dlfcn.h Line 4177  for ac_hdr in dlfcn.h
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:4136: checking for $ac_hdr" >&5  echo "configure:4181: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 4141 "configure"  #line 4186 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:4146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 4172  done Line 4217  done
   
   
   
   
 # Only perform the check for file, if the check method requires it  # Only perform the check for file, if the check method requires it
 case $deplibs_check_method in  case $deplibs_check_method in
 file_magic*)  file_magic*)
   if test "$file_magic_cmd" = '$MAGIC_CMD'; then    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6      echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
 echo "configure:4181: checking for ${ac_tool_prefix}file" >&5  echo "configure:4227: checking for ${ac_tool_prefix}file" >&5
 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then  if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4239  fi Line 4285  fi
 if test -z "$lt_cv_path_MAGIC_CMD"; then  if test -z "$lt_cv_path_MAGIC_CMD"; then
   if test -n "$ac_tool_prefix"; then    if test -n "$ac_tool_prefix"; then
     echo $ac_n "checking for file""... $ac_c" 1>&6      echo $ac_n "checking for file""... $ac_c" 1>&6
 echo "configure:4243: checking for file" >&5  echo "configure:4289: checking for file" >&5
 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then  if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4310  esac Line 4356  esac
 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4314: checking for $ac_word" >&5  echo "configure:4360: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then  if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4342  if test -n "$ac_tool_prefix"; then Line 4388  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "ranlib", so it can be a program name with args.    # Extract the first word of "ranlib", so it can be a program name with args.
 set dummy ranlib; ac_word=$2  set dummy ranlib; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4346: checking for $ac_word" >&5  echo "configure:4392: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then  if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4377  fi Line 4423  fi
 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 set dummy ${ac_tool_prefix}strip; ac_word=$2  set dummy ${ac_tool_prefix}strip; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4381: checking for $ac_word" >&5  echo "configure:4427: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then  if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4409  if test -n "$ac_tool_prefix"; then Line 4455  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "strip", so it can be a program name with args.    # Extract the first word of "strip", so it can be a program name with args.
 set dummy strip; ac_word=$2  set dummy strip; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4413: checking for $ac_word" >&5  echo "configure:4459: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then  if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4458  test "x$enable_libtool_lock" != xno && e Line 4504  test "x$enable_libtool_lock" != xno && e
 case $host in  case $host in
 *-*-irix6*)  *-*-irix6*)
   # Find out which ABI we are using.    # Find out which ABI we are using.
   echo '#line 4462 "configure"' > conftest.$ac_ext    echo '#line 4508 "configure"' > conftest.$ac_ext
   if { (eval echo configure:4463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then    if { (eval echo configure:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     case `/usr/bin/file conftest.$ac_objext` in      case `/usr/bin/file conftest.$ac_objext` in
     *32-bit*)      *32-bit*)
       LD="${LD-ld} -32"        LD="${LD-ld} -32"
Line 4480  case $host in Line 4526  case $host in
   SAVE_CFLAGS="$CFLAGS"    SAVE_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS -belf"    CFLAGS="$CFLAGS -belf"
   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6    echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
 echo "configure:4484: checking whether the C compiler needs -belf" >&5  echo "configure:4530: checking whether the C compiler needs -belf" >&5
 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then  if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4493  ac_link='${CC-cc} -o conftest${ac_exeext Line 4539  ac_link='${CC-cc} -o conftest${ac_exeext
 cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
   
      cat > conftest.$ac_ext <<EOF       cat > conftest.$ac_ext <<EOF
 #line 4497 "configure"  #line 4543 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   lt_cv_cc_needs_belf=yes    lt_cv_cc_needs_belf=yes
 else  else
Line 4530  echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 Line 4576  echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.    # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 set dummy ${ac_tool_prefix}dlltool; ac_word=$2  set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4534: checking for $ac_word" >&5  echo "configure:4580: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then  if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4562  if test -n "$ac_tool_prefix"; then Line 4608  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "dlltool", so it can be a program name with args.    # Extract the first word of "dlltool", so it can be a program name with args.
 set dummy dlltool; ac_word=$2  set dummy dlltool; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4566: checking for $ac_word" >&5  echo "configure:4612: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then  if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4597  fi Line 4643  fi
   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.    # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 set dummy ${ac_tool_prefix}as; ac_word=$2  set dummy ${ac_tool_prefix}as; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4601: checking for $ac_word" >&5  echo "configure:4647: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then  if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4629  if test -n "$ac_tool_prefix"; then Line 4675  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "as", so it can be a program name with args.    # Extract the first word of "as", so it can be a program name with args.
 set dummy as; ac_word=$2  set dummy as; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4633: checking for $ac_word" >&5  echo "configure:4679: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then  if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4664  fi Line 4710  fi
   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.    # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 set dummy ${ac_tool_prefix}objdump; ac_word=$2  set dummy ${ac_tool_prefix}objdump; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4668: checking for $ac_word" >&5  echo "configure:4714: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then  if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4696  if test -n "$ac_tool_prefix"; then Line 4742  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "objdump", so it can be a program name with args.    # Extract the first word of "objdump", so it can be a program name with args.
 set dummy objdump; ac_word=$2  set dummy objdump; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:4700: checking for $ac_word" >&5  echo "configure:4746: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then  if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4732  fi Line 4778  fi
   # recent cygwin and mingw systems supply a stub DllMain which the user    # recent cygwin and mingw systems supply a stub DllMain which the user
   # can override, but on older systems we have to supply one    # can override, but on older systems we have to supply one
   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6    echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
 echo "configure:4736: checking if libtool should supply DllMain function" >&5  echo "configure:4782: checking if libtool should supply DllMain function" >&5
 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then  if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 4741 "configure"  #line 4787 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
Line 4745  extern int __attribute__((__stdcall__)) Line 4791  extern int __attribute__((__stdcall__))
       DllMain (0, 0, 0);        DllMain (0, 0, 0);
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   lt_cv_need_dllmain=no    lt_cv_need_dllmain=no
 else  else
Line 4766  echo "$ac_t""$lt_cv_need_dllmain" 1>&6 Line 4812  echo "$ac_t""$lt_cv_need_dllmain" 1>&6
     SAVE_CFLAGS="$CFLAGS"      SAVE_CFLAGS="$CFLAGS"
     CFLAGS="$CFLAGS -mdll"      CFLAGS="$CFLAGS -mdll"
     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6      echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
 echo "configure:4770: checking how to link DLLs" >&5  echo "configure:4816: checking how to link DLLs" >&5
 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then  if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 4775 "configure"  #line 4821 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   lt_cv_cc_dll_switch=-mdll    lt_cv_cc_dll_switch=-mdll
 else  else
Line 4891  fi Line 4937  fi
 set dummy $CC  set dummy $CC
 compiler="$2"  compiler="$2"
   
   ## FIXME: this should be a separate macro
   ##
 echo $ac_n "checking for objdir""... $ac_c" 1>&6  echo $ac_n "checking for objdir""... $ac_c" 1>&6
 echo "configure:4896: checking for objdir" >&5  echo "configure:4944: checking for objdir" >&5
 rm -f .libs 2>/dev/null  rm -f .libs 2>/dev/null
 mkdir .libs 2>/dev/null  mkdir .libs 2>/dev/null
 if test -d .libs; then  if test -d .libs; then
Line 4903  else Line 4951  else
 fi  fi
 rmdir .libs 2>/dev/null  rmdir .libs 2>/dev/null
 echo "$ac_t""$objdir" 1>&6  echo "$ac_t""$objdir" 1>&6
   ##
   ## END FIXME
   
   
   ## FIXME: this should be a separate macro
   ##
 # Check whether --with-pic or --without-pic was given.  # Check whether --with-pic or --without-pic was given.
 if test "${with_pic+set}" = set; then  if test "${with_pic+set}" = set; then
   withval="$with_pic"    withval="$with_pic"
Line 4919  test -z "$pic_mode" && pic_mode=default Line 4971  test -z "$pic_mode" && pic_mode=default
 # in isolation, and that seeing it set (from the cache) indicates that  # in isolation, and that seeing it set (from the cache) indicates that
 # the associated values are set (in the cache) correctly too.  # the associated values are set (in the cache) correctly too.
 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6  echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
 echo "configure:4923: checking for $compiler option to produce PIC" >&5  echo "configure:4975: checking for $compiler option to produce PIC" >&5
 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then  if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 4950  else Line 5002  else
       # like `-m68040'.        # like `-m68040'.
       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'        lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
       ;;        ;;
     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
       # PIC is the default for these OSes.        # PIC is the default for these OSes.
       ;;        ;;
     darwin* | rhapsody*)      darwin* | rhapsody*)
Line 4993  else Line 5045  else
       lt_cv_prog_cc_pic='+Z'        lt_cv_prog_cc_pic='+Z'
       ;;        ;;
   
     irix5* | irix6*)      irix5* | irix6* | nonstopux*)
       lt_cv_prog_cc_wl='-Wl,'        lt_cv_prog_cc_wl='-Wl,'
       lt_cv_prog_cc_static='-non_shared'        lt_cv_prog_cc_static='-non_shared'
       # PIC (with -KPIC) is the default.        # PIC (with -KPIC) is the default.
Line 5037  else Line 5089  else
     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
       lt_cv_prog_cc_pic='-KPIC'        lt_cv_prog_cc_pic='-KPIC'
       lt_cv_prog_cc_static='-Bstatic'        lt_cv_prog_cc_static='-Bstatic'
       if test "x$host_vendor" = xsni; then        lt_cv_prog_cc_wl='-Wl,'
         lt_cv_prog_cc_wl='-LD'  
       else  
         lt_cv_prog_cc_wl='-Wl,'  
       fi  
       ;;        ;;
   
     uts4*)      uts4*)
Line 5071  else Line 5119  else
   
   # Check to make sure the pic_flag actually works.    # Check to make sure the pic_flag actually works.
   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6    echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
 echo "configure:5075: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5  echo "configure:5123: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
   if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then    if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
       save_CFLAGS="$CFLAGS"        save_CFLAGS="$CFLAGS"
     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"      CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
     cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
 #line 5082 "configure"  #line 5130 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:5089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
         case $host_os in          case $host_os in
       hpux9* | hpux10* | hpux11*)        hpux9* | hpux10* | hpux11*)
Line 5125  fi Line 5173  fi
   
   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6    echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
 fi  fi
   ##
   ## END FIXME
   
 # Check for any special shared library compilation flags.  # Check for any special shared library compilation flags.
 if test -n "$lt_cv_prog_cc_shlib"; then  if test -n "$lt_cv_prog_cc_shlib"; then
Line 5136  if test -n "$lt_cv_prog_cc_shlib"; then Line 5186  if test -n "$lt_cv_prog_cc_shlib"; then
   fi    fi
 fi  fi
   
   ## FIXME: this should be a separate macro
   ##
 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6  echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
 echo "configure:5141: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5  echo "configure:5193: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then  if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 5145  else Line 5197  else
   save_LDFLAGS="$LDFLAGS"    save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"    LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 5149 "configure"  #line 5201 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   lt_cv_prog_cc_static_works=yes    lt_cv_prog_cc_static_works=yes
 else  else
Line 5175  wl="$lt_cv_prog_cc_wl" Line 5227  wl="$lt_cv_prog_cc_wl"
 link_static_flag="$lt_cv_prog_cc_static"  link_static_flag="$lt_cv_prog_cc_static"
 no_builtin_flag="$lt_cv_prog_cc_no_builtin"  no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 can_build_shared="$lt_cv_prog_cc_can_build_shared"  can_build_shared="$lt_cv_prog_cc_can_build_shared"
   ##
   ## END FIXME
   
   
   ## FIXME: this should be a separate macro
   ##
 # Check to see if options -o and -c are simultaneously supported by compiler  # Check to see if options -o and -c are simultaneously supported by compiler
 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6  echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
 echo "configure:5183: checking if $compiler supports -c -o file.$ac_objext" >&5  echo "configure:5239: checking if $compiler supports -c -o file.$ac_objext" >&5
 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then  if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 5198  chmod -w . Line 5254  chmod -w .
 save_CFLAGS="$CFLAGS"  save_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"  CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 compiler_c_o=no  compiler_c_o=no
 if { (eval echo configure:5202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then  if { (eval echo configure:5258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
   # The compiler can only warn and ignore the option if not recognized    # The compiler can only warn and ignore the option if not recognized
   # So say no if there are warnings    # So say no if there are warnings
   if test -s out/conftest.err; then    if test -s out/conftest.err; then
Line 5227  echo "$ac_t""$compiler_c_o" 1>&6 Line 5283  echo "$ac_t""$compiler_c_o" 1>&6
 if test x"$compiler_c_o" = x"yes"; then  if test x"$compiler_c_o" = x"yes"; then
   # Check to see if we can write to a .lo    # Check to see if we can write to a .lo
   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6    echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
 echo "configure:5231: checking if $compiler supports -c -o file.lo" >&5  echo "configure:5287: checking if $compiler supports -c -o file.lo" >&5
   if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then    if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 5238  else Line 5294  else
   save_objext="$ac_objext"    save_objext="$ac_objext"
   ac_objext=lo    ac_objext=lo
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 5242 "configure"  #line 5298 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 int some_variable = 0;  int some_variable = 0;
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
       # The compiler can only warn and ignore the option if not recognized        # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings      # So say no if there are warnings
Line 5270  fi Line 5326  fi
 else  else
   compiler_o_lo=no    compiler_o_lo=no
 fi  fi
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 # Check to see if we can do hard links to lock some files if needed  # Check to see if we can do hard links to lock some files if needed
 hard_links="nottested"  hard_links="nottested"
 if test "$compiler_c_o" = no && test "$need_locks" != no; then  if test "$compiler_c_o" = no && test "$need_locks" != no; then
   # do not overwrite the value of need_locks provided by the user    # do not overwrite the value of need_locks provided by the user
   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6    echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
 echo "configure:5280: checking if we can lock with hard links" >&5  echo "configure:5340: checking if we can lock with hard links" >&5
   hard_links=yes    hard_links=yes
   $rm conftest*    $rm conftest*
   ln conftest.a conftest.b 2>/dev/null && hard_links=no    ln conftest.a conftest.b 2>/dev/null && hard_links=no
Line 5291  echo "configure:5280: checking if we can Line 5351  echo "configure:5280: checking if we can
 else  else
   need_locks=no    need_locks=no
 fi  fi
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 if test "$GCC" = yes; then  if test "$GCC" = yes; then
   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler    # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6    echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
 echo "configure:5299: checking if $compiler supports -fno-rtti -fno-exceptions" >&5  echo "configure:5363: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   echo "int some_variable = 0;" > conftest.$ac_ext    echo "int some_variable = 0;" > conftest.$ac_ext
   save_CFLAGS="$CFLAGS"    save_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"    CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
   compiler_rtti_exceptions=no    compiler_rtti_exceptions=no
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 5305 "configure"  #line 5369 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 int some_variable = 0;  int some_variable = 0;
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
       # The compiler can only warn and ignore the option if not recognized        # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings      # So say no if there are warnings
Line 5332  rm -f conftest* Line 5396  rm -f conftest*
     no_builtin_flag=' -fno-builtin'      no_builtin_flag=' -fno-builtin'
   fi    fi
 fi  fi
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 # See if the linker supports building shared libraries.  # See if the linker supports building shared libraries.
 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6  echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
 echo "configure:5339: checking whether the linker ($LD) supports shared libraries" >&5  echo "configure:5407: checking whether the linker ($LD) supports shared libraries" >&5
   
 allow_undefined_flag=  allow_undefined_flag=
 no_undefined_flag=  no_undefined_flag=
Line 5491  EOF Line 5559  EOF
     # If the export-symbols file already is a .def file (1st line      # If the export-symbols file already is a .def file (1st line
     # is EXPORTS), use it as is.      # is EXPORTS), use it as is.
     # If DATA tags from a recent dlltool are present, honour them!      # If DATA tags from a recent dlltool are present, honour them!
     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then      archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
         cp $export_symbols $output_objdir/$soname-def;          cp $export_symbols $output_objdir/$soname-def;
       else        else
         echo EXPORTS > $output_objdir/$soname-def;          echo EXPORTS > $output_objdir/$soname-def;
Line 5500  EOF Line 5568  EOF
          set dummy \$symbol;           set dummy \$symbol;
          case \$# in           case \$# in
            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
              4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;             *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
          esac;           esac;
          _lt_hint=`expr 1 + \$_lt_hint`;           _lt_hint=`expr 1 + \$_lt_hint`;
Line 5612  else Line 5681  else
       # need to do runtime linking.        # need to do runtime linking.
       case $host_os in aix4.[23]|aix4.[23].*|aix5*)        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
         for ld_flag in $LDFLAGS; do          for ld_flag in $LDFLAGS; do
           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then            case $ld_flag in
             *-brtl*)
             aix_use_runtimelinking=yes              aix_use_runtimelinking=yes
             break              break
           fi            ;;
             esac
         done          done
       esac        esac
   
Line 5729  else Line 5800  else
     esac      esac
     # FIXME: Relying on posixy $() will cause problems for      # FIXME: Relying on posixy $() will cause problems for
     #        cross-compilation, but unfortunately the echo tests do not      #        cross-compilation, but unfortunately the echo tests do not
     #        yet detect zsh echo's removal of \ escapes.      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'      #        `"' quotes if we put them in here... so don't!
       archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
     # We need to add '_' to the symbols in $export_symbols first      # We need to add '_' to the symbols in $export_symbols first
     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'      #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
     hardcode_direct=yes      hardcode_direct=yes
Line 5782  else Line 5854  else
     export_dynamic_flag_spec='${wl}-E'      export_dynamic_flag_spec='${wl}-E'
     ;;      ;;
   
   irix5* | irix6*)    irix5* | irix6* | nonstopux*)
     if test "$GCC" = yes; then      if test "$GCC" = yes; then
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     else      else
       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
         hardcode_libdir_flag_spec='-rpath $libdir'
     fi      fi
     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     hardcode_libdir_separator=:      hardcode_libdir_separator=:
     link_all_deplibs=yes      link_all_deplibs=yes
     ;;      ;;
Line 5816  else Line 5889  else
     hardcode_direct=yes      hardcode_direct=yes
     hardcode_shlibpath_var=no      hardcode_shlibpath_var=no
     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
       export_dynamic_flag_spec='${wl}-E'        export_dynamic_flag_spec='${wl}-E'
     else      else
Line 5826  else Line 5899  else
         hardcode_libdir_flag_spec='-R$libdir'          hardcode_libdir_flag_spec='-R$libdir'
         ;;          ;;
       *)        *)
         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
         ;;          ;;
       esac        esac
Line 5938  EOF Line 6011  EOF
     ;;      ;;
   
   sysv4)    sysv4)
     if test "x$host_vendor" = xsno; then      case $host_vendor in
       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'        sni)
       hardcode_direct=yes # is this really true???          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     else          hardcode_direct=yes # is this really true???
       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'          ;;
       hardcode_direct=no #Motorola manual says yes, but my tests say they lie        siemens)
     fi          ## LD is ld it makes a PLAMLIB
           ## CC just makes a GrossModule.
           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
           reload_cmds='$CC -r -o $output$reload_objs'
           hardcode_direct=no
           ;;
         motorola)
           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
           ;;
       esac
     runpath_var='LD_RUN_PATH'      runpath_var='LD_RUN_PATH'
     hardcode_shlibpath_var=no      hardcode_shlibpath_var=no
     ;;      ;;
Line 6016  EOF Line 6099  EOF
 fi  fi
 echo "$ac_t""$ld_shlibs" 1>&6  echo "$ac_t""$ld_shlibs" 1>&6
 test "$ld_shlibs" = no && can_build_shared=no  test "$ld_shlibs" = no && can_build_shared=no
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 # Check hardcoding attributes.  # Check hardcoding attributes.
 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6  echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
 echo "configure:6023: checking how to hardcode library paths into programs" >&5  echo "configure:6110: checking how to hardcode library paths into programs" >&5
 hardcode_action=  hardcode_action=
 if test -n "$hardcode_libdir_flag_spec" || \  if test -n "$hardcode_libdir_flag_spec" || \
    test -n "$runpath_var"; then     test -n "$runpath_var"; then
Line 6043  else Line 6130  else
   hardcode_action=unsupported    hardcode_action=unsupported
 fi  fi
 echo "$ac_t""$hardcode_action" 1>&6  echo "$ac_t""$hardcode_action" 1>&6
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 striplib=  striplib=
 old_striplib=  old_striplib=
 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6  echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
 echo "configure:6051: checking whether stripping libraries is possible" >&5  echo "configure:6142: checking whether stripping libraries is possible" >&5
 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   test -z "$striplib" && striplib="$STRIP --strip-unneeded"    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Line 6055  if test -n "$STRIP" && $STRIP -V 2>&1 | Line 6146  if test -n "$STRIP" && $STRIP -V 2>&1 |
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  fi
   ##
   ## END FIXME
   
 reload_cmds='$LD$reload_flag -o $output$reload_objs'  reload_cmds='$LD$reload_flag -o $output$reload_objs'
 test -z "$deplibs_check_method" && deplibs_check_method=unknown  test -z "$deplibs_check_method" && deplibs_check_method=unknown
   
   ## FIXME: this should be a separate macro
   ##
 # PORTME Fill in your ld.so characteristics  # PORTME Fill in your ld.so characteristics
 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6  echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
 echo "configure:6065: checking dynamic linker characteristics" >&5  echo "configure:6160: checking dynamic linker characteristics" >&5
 library_names_spec=  library_names_spec=
 libname_spec='lib$name'  libname_spec='lib$name'
 soname_spec=  soname_spec=
Line 6088  aix3*) Line 6183  aix3*)
   
 aix4* | aix5*)  aix4* | aix5*)
   version_type=linux    version_type=linux
     need_lib_prefix=no
     need_version=no
     hardcode_into_libs=yes
   if test "$host_cpu" = ia64; then    if test "$host_cpu" = ia64; then
     # AIX 5 supports IA64      # AIX 5 supports IA64
     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'      library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
Line 6126  aix4* | aix5*) Line 6224  aix4* | aix5*)
     fi      fi
     shlibpath_var=LIBPATH      shlibpath_var=LIBPATH
   fi    fi
     hardcode_into_libs=yes
   ;;    ;;
   
 amigaos*)  amigaos*)
Line 6173  cygwin* | mingw* | pw32*) Line 6272  cygwin* | mingw* | pw32*)
     ;;      ;;
   yes,mingw*)    yes,mingw*)
     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'      library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
     ;;      ;;
   yes,pw32*)    yes,pw32*)
     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
Line 6256  hpux9* | hpux10* | hpux11*) Line 6355  hpux9* | hpux10* | hpux11*)
   postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
   ;;    ;;
   
 irix5* | irix6*)  irix5* | irix6* | nonstopux*)
   version_type=irix    case $host_os in
       nonstopux*) version_type=nonstopux ;;
       *)          version_type=irix ;;
     esac
   need_lib_prefix=no    need_lib_prefix=no
   need_version=no    need_version=no
   soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}.so$major'
   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
   case $host_os in    case $host_os in
   irix5*)    irix5* | nonstopux*)
     libsuff= shlibsuff=      libsuff= shlibsuff=
     ;;      ;;
   *)    *)
Line 6367  os2*) Line 6469  os2*)
 osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
   version_type=osf    version_type=osf
   need_version=no    need_version=no
   soname_spec='${libname}${release}.so'    soname_spec='${libname}${release}.so$major'
   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
   shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
     hardcode_into_libs=yes
   ;;    ;;
   
 sco3.2v5*)  sco3.2v5*)
Line 6414  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 6517  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   case $host_vendor in    case $host_vendor in
     sni)      sni)
       shlibpath_overrides_runpath=no        shlibpath_overrides_runpath=no
         need_lib_prefix=no
         export_dynamic_flag_spec='${wl}-Blargedynsym'
         runpath_var=LD_RUN_PATH
         ;;
       siemens)
         need_lib_prefix=no
       ;;        ;;
     motorola)      motorola)
       need_lib_prefix=no        need_lib_prefix=no
Line 6455  sysv4*MP*) Line 6564  sysv4*MP*)
 esac  esac
 echo "$ac_t""$dynamic_linker" 1>&6  echo "$ac_t""$dynamic_linker" 1>&6
 test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 # Report the final consequences.  # Report the final consequences.
 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6  echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
 echo "configure:6462: checking if libtool supports shared libraries" >&5  echo "configure:6575: checking if libtool supports shared libraries" >&5
 echo "$ac_t""$can_build_shared" 1>&6  echo "$ac_t""$can_build_shared" 1>&6
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6  echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
 echo "configure:6466: checking whether to build shared libraries" >&5  echo "configure:6583: checking whether to build shared libraries" >&5
 test "$can_build_shared" = "no" && enable_shared=no  test "$can_build_shared" = "no" && enable_shared=no
   
 # On AIX, shared libraries and static libraries use the same namespace, and  # On AIX, shared libraries and static libraries use the same namespace, and
Line 6483  aix4*) Line 6600  aix4*)
   ;;    ;;
 esac  esac
 echo "$ac_t""$enable_shared" 1>&6  echo "$ac_t""$enable_shared" 1>&6
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6  echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
 echo "configure:6489: checking whether to build static libraries" >&5  echo "configure:6610: checking whether to build static libraries" >&5
 # Make sure either enable_shared or enable_static is yes.  # Make sure either enable_shared or enable_static is yes.
 test "$enable_shared" = yes || enable_static=yes  test "$enable_shared" = yes || enable_static=yes
 echo "$ac_t""$enable_static" 1>&6  echo "$ac_t""$enable_static" 1>&6
   ##
   ## END FIXME
   
 if test "$hardcode_action" = relink; then  if test "$hardcode_action" = relink; then
   # Fast installation is not supported    # Fast installation is not supported
Line 6526  else Line 6649  else
   
   *)    *)
     echo $ac_n "checking for shl_load""... $ac_c" 1>&6      echo $ac_n "checking for shl_load""... $ac_c" 1>&6
 echo "configure:6530: checking for shl_load" >&5  echo "configure:6653: checking for shl_load" >&5
 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then  if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 6535 "configure"  #line 6658 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char shl_load(); below.  */      which can conflict with char shl_load(); below.  */
Line 6555  f = shl_load; Line 6678  f = shl_load;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_shl_load=yes"    eval "ac_cv_func_shl_load=yes"
 else  else
Line 6573  if eval "test \"`echo '$ac_cv_func_'shl_ Line 6696  if eval "test \"`echo '$ac_cv_func_'shl_
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6  echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
 echo "configure:6577: checking for shl_load in -ldld" >&5  echo "configure:6700: checking for shl_load in -ldld" >&5
 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 6581  else Line 6704  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-ldld  $LIBS"  LIBS="-ldld  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 6585 "configure"  #line 6708 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 6592  int main() { Line 6715  int main() {
 shl_load()  shl_load()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:6596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 6611  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 6734  if eval "test \"`echo '$ac_cv_lib_'$ac_l
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 echo $ac_n "checking for dlopen""... $ac_c" 1>&6  echo $ac_n "checking for dlopen""... $ac_c" 1>&6
 echo "configure:6615: checking for dlopen" >&5  echo "configure:6738: checking for dlopen" >&5
 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then  if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 6620 "configure"  #line 6743 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char dlopen(); below.  */      which can conflict with char dlopen(); below.  */
Line 6640  f = dlopen; Line 6763  f = dlopen;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_dlopen=yes"    eval "ac_cv_func_dlopen=yes"
 else  else
Line 6658  if eval "test \"`echo '$ac_cv_func_'dlop Line 6781  if eval "test \"`echo '$ac_cv_func_'dlop
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
 echo "configure:6662: checking for dlopen in -ldl" >&5  echo "configure:6785: checking for dlopen in -ldl" >&5
 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 6666  else Line 6789  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 6670 "configure"  #line 6793 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 6677  int main() { Line 6800  int main() {
 dlopen()  dlopen()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 6696  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 6819  if eval "test \"`echo '$ac_cv_lib_'$ac_l
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6  echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
 echo "configure:6700: checking for dlopen in -lsvld" >&5  echo "configure:6823: checking for dlopen in -lsvld" >&5
 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 6704  else Line 6827  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lsvld  $LIBS"  LIBS="-lsvld  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 6708 "configure"  #line 6831 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 6715  int main() { Line 6838  int main() {
 dlopen()  dlopen()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 6734  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 6857  if eval "test \"`echo '$ac_cv_lib_'$ac_l
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6  echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
 echo "configure:6738: checking for dld_link in -ldld" >&5  echo "configure:6861: checking for dld_link in -ldld" >&5
 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 6742  else Line 6865  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-ldld  $LIBS"  LIBS="-ldld  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 6746 "configure"  #line 6869 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 6753  int main() { Line 6876  int main() {
 dld_link()  dld_link()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 6809  fi Line 6932  fi
     LIBS="$lt_cv_dlopen_libs $LIBS"      LIBS="$lt_cv_dlopen_libs $LIBS"
   
     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6      echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
 echo "configure:6813: checking whether a program can dlopen itself" >&5  echo "configure:6936: checking whether a program can dlopen itself" >&5
 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then  if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 6819  else Line 6942  else
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 6823 "configure"  #line 6946 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
Line 6880  int main () Line 7003  int main ()
     exit (status);      exit (status);
 }  }
 EOF  EOF
   if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then    if { (eval echo configure:7007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
     (./conftest; exit; ) 2>/dev/null      (./conftest; exit; ) 2>/dev/null
     lt_status=$?      lt_status=$?
     case x$lt_status in      case x$lt_status in
Line 6903  echo "$ac_t""$lt_cv_dlopen_self" 1>&6 Line 7026  echo "$ac_t""$lt_cv_dlopen_self" 1>&6
     if test "x$lt_cv_dlopen_self" = xyes; then      if test "x$lt_cv_dlopen_self" = xyes; then
       LDFLAGS="$LDFLAGS $link_static_flag"        LDFLAGS="$LDFLAGS $link_static_flag"
       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6        echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
 echo "configure:6907: checking whether a statically linked program can dlopen itself" >&5  echo "configure:7030: checking whether a statically linked program can dlopen itself" >&5
 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then  if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 6913  else Line 7036  else
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 6917 "configure"  #line 7040 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
Line 6974  int main () Line 7097  int main ()
     exit (status);      exit (status);
 }  }
 EOF  EOF
   if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then    if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
     (./conftest; exit; ) 2>/dev/null      (./conftest; exit; ) 2>/dev/null
     lt_status=$?      lt_status=$?
     case x$lt_status in      case x$lt_status in
Line 7013  echo "$ac_t""$lt_cv_dlopen_self_static" Line 7136  echo "$ac_t""$lt_cv_dlopen_self_static"
 fi  fi
   
   
   ## FIXME: this should be a separate macro
   ##
 if test "$enable_shared" = yes && test "$GCC" = yes; then  if test "$enable_shared" = yes && test "$GCC" = yes; then
   case $archive_cmds in    case $archive_cmds in
   *'~'*)    *'~'*)
Line 7023  if test "$enable_shared" = yes && test " Line 7148  if test "$enable_shared" = yes && test "
     # systems, -lgcc has to come before -lc. If gcc already passes -lc      # systems, -lgcc has to come before -lc. If gcc already passes -lc
     # to ld, don't add -lc before -lgcc.      # to ld, don't add -lc before -lgcc.
     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6      echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
 echo "configure:7027: checking whether -lc should be explicitly linked in" >&5  echo "configure:7152: checking whether -lc should be explicitly linked in" >&5
     if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then      if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   $rm conftest*    $rm conftest*
     echo 'static int dummy;' > conftest.$ac_ext      echo 'static int dummy;' > conftest.$ac_ext
   
     if { (eval echo configure:7034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then      if { (eval echo configure:7159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
       soname=conftest        soname=conftest
       lib=conftest        lib=conftest
       libobjs=conftest.$ac_objext        libobjs=conftest.$ac_objext
Line 7043  else Line 7168  else
       libname=conftest        libname=conftest
       save_allow_undefined_flag=$allow_undefined_flag        save_allow_undefined_flag=$allow_undefined_flag
       allow_undefined_flag=        allow_undefined_flag=
       if { (eval echo configure:7047: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }        if { (eval echo configure:7172: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
       then        then
         lt_cv_archive_cmds_need_lc=no          lt_cv_archive_cmds_need_lc=no
       else        else
Line 7060  fi Line 7185  fi
   esac    esac
 fi  fi
 need_lc=${lt_cv_archive_cmds_need_lc-yes}  need_lc=${lt_cv_archive_cmds_need_lc-yes}
   ##
   ## END FIXME
   
   ## FIXME: this should be a separate macro
   ##
 # The second clause should only fire when bootstrapping the  # The second clause should only fire when bootstrapping the
 # libtool distribution, otherwise you forgot to ship ltmain.sh  # libtool distribution, otherwise you forgot to ship ltmain.sh
 # with your package, and you will get complaints that there are  # with your package, and you will get complaints that there are
Line 7083  if test -f "$ltmain"; then Line 7212  if test -f "$ltmain"; then
   # Now quote all the things that may contain metacharacters while being    # Now quote all the things that may contain metacharacters while being
   # careful not to overquote the AC_SUBSTed values.  We take copies of the    # careful not to overquote the AC_SUBSTed values.  We take copies of the
   # variables and quote the copies for generation of the libtool script.    # variables and quote the copies for generation of the libtool script.
   for var in echo old_CC old_CFLAGS \    for var in echo old_CC old_CFLAGS SED \
     AR AR_FLAGS CC LD LN_S NM SHELL \      AR AR_FLAGS CC LD LN_S NM SHELL \
     reload_flag reload_cmds wl \      reload_flag reload_cmds wl \
     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \      pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
Line 7145  if test -f "$ltmain"; then Line 7274  if test -f "$ltmain"; then
 # configuration script generated by Autoconf, you may include it under  # configuration script generated by Autoconf, you may include it under
 # the same distribution terms that you use for the rest of that program.  # the same distribution terms that you use for the rest of that program.
   
   # A sed that does not truncate output.
   SED=$lt_SED
   
 # Sed that helps us avoid accidentally triggering echo(1) options like -n.  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
 Xsed="sed -e s/^X//"  Xsed="${SED} -e s/^X//"
   
 # The HP-UX ksh and POSIX shell print the target directory to stdout  # The HP-UX ksh and POSIX shell print the target directory to stdout
 # if CDPATH is set.  # if CDPATH is set.
Line 7610  EOF Line 7742  EOF
     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")      (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
   chmod +x "$ofile"    chmod +x "$ofile"
 fi  fi
   ##
   ## END FIXME
   
   
   
Line 7625  LIBTOOL='$(SHELL) $(top_builddir)/libtoo Line 7759  LIBTOOL='$(SHELL) $(top_builddir)/libtoo
   
   
   
 for ac_prog in mawk gawk nawk awk  
 do  
 # Extract the first word of "$ac_prog", so it can be a program name with args.  
 set dummy $ac_prog; ac_word=$2  
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  
 echo "configure:7634: checking for $ac_word" >&5  
 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   if test -n "$AWK"; then  
   ac_cv_prog_AWK="$AWK" # Let the user override the test.  
 else  
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
   ac_dummy="$PATH"  
   for ac_dir in $ac_dummy; do  
     test -z "$ac_dir" && ac_dir=.  
     if test -f $ac_dir/$ac_word; then  
       ac_cv_prog_AWK="$ac_prog"  
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
 fi  
 fi  
 AWK="$ac_cv_prog_AWK"  
 if test -n "$AWK"; then  
   echo "$ac_t""$AWK" 1>&6  
 else  
   echo "$ac_t""no" 1>&6  
 fi  
   
 test -n "$AWK" && break  
 done  
   
 # test for ln hardlink support  # test for ln hardlink support
 echo $ac_n "checking whether ln works""... $ac_c" 1>&6  echo $ac_n "checking whether ln works""... $ac_c" 1>&6
 echo "configure:7665: checking whether ln works" >&5  echo "configure:7765: checking whether ln works" >&5
 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then  if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 7684  else Line 7784  else
 fi  fi
   
 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 echo "configure:7688: checking whether ln -s works" >&5  echo "configure:7788: checking whether ln -s works" >&5
 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then  if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 7705  else Line 7805  else
 fi  fi
   
   
 # Extract the first word of "sendmail", so it can be a program name with args.  
 set dummy sendmail; ac_word=$2  
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  
 echo "configure:7712: checking for $ac_word" >&5  
 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   case "$SENDMAIL" in  
   /*)  
   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.  
   ;;  
   ?:/*)  
   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.  
   ;;  
   *)  
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
   ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"  
   for ac_dir in $ac_dummy; do   
     test -z "$ac_dir" && ac_dir=.  
     if test -f $ac_dir/$ac_word; then  
       ac_cv_path_SENDMAIL="$ac_dir/$ac_word"  
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"  
   ;;  
 esac  
 fi  
 SENDMAIL="$ac_cv_path_SENDMAIL"  
 if test -n "$SENDMAIL"; then  
   echo "$ac_t""$SENDMAIL" 1>&6  
 else  
   echo "$ac_t""no" 1>&6  
 fi  
   
 # Extract the first word of "vi", so it can be a program name with args.  
 set dummy vi; ac_word=$2  
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  
 echo "configure:7748: checking for $ac_word" >&5  
 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   case "$EDITOR" in  
   /*)  
   ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.  
   ;;  
   ?:/*)  
   ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.  
   ;;  
   *)  
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
   ac_dummy="$PATH:/usr/ucb"  
   for ac_dir in $ac_dummy; do   
     test -z "$ac_dir" && ac_dir=.  
     if test -f $ac_dir/$ac_word; then  
       ac_cv_path_EDITOR="$ac_dir/$ac_word"  
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
   test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"  
   ;;  
 esac  
 fi  
 EDITOR="$ac_cv_path_EDITOR"  
 if test -n "$EDITOR"; then  
   echo "$ac_t""$EDITOR" 1>&6  
 else  
   echo "$ac_t""no" 1>&6  
 fi  
   
 # Extract the first word of "finger", so it can be a program name with args.  
 set dummy finger; ac_word=$2  
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  
 echo "configure:7784: checking for $ac_word" >&5  
 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   case "$FINGER" in  
   /*)  
   ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.  
   ;;  
   ?:/*)  
   ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.  
   ;;  
   *)  
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
   ac_dummy="$PATH:/usr/ucb"  
   for ac_dir in $ac_dummy; do   
     test -z "$ac_dir" && ac_dir=.  
     if test -f $ac_dir/$ac_word; then  
       ac_cv_path_FINGER="$ac_dir/$ac_word"  
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
   test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"  
   ;;  
 esac  
 fi  
 FINGER="$ac_cv_path_FINGER"  
 if test -n "$FINGER"; then  
   echo "$ac_t""$FINGER" 1>&6  
 else  
   echo "$ac_t""no" 1>&6  
 fi  
   
   
 ol_link_perl=no  ol_link_perl=no
 if test $ol_enable_perl != no ; then  if test $ol_enable_perl != no ; then
         # Extract the first word of "perl", so it can be a program name with args.          # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2  set dummy perl; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:7823: checking for $ac_word" >&5  echo "configure:7814: checking for $ac_word" >&5
 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then  if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 7870  fi Line 7861  fi
 fi  fi
   
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 echo "configure:7874: checking how to run the C preprocessor" >&5  echo "configure:7865: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
   CPP=    CPP=
Line 7885  else Line 7876  else
   # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.    # not just through cpp.
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 7889 "configure"  #line 7880 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:7895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:7886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 7902  else Line 7893  else
   rm -rf conftest*    rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 7906 "configure"  #line 7897 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:7912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:7903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 7919  else Line 7910  else
   rm -rf conftest*    rm -rf conftest*
   CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 7923 "configure"  #line 7914 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:7929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:7920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 7964  fi Line 7955  fi
   
   
 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6  echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 echo "configure:7968: checking for Cygwin environment" >&5  echo "configure:7959: checking for Cygwin environment" >&5
 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then  if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 7973 "configure"  #line 7964 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
Line 7980  int main() { Line 7971  int main() {
 return __CYGWIN__;  return __CYGWIN__;
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:7984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_cygwin=yes    ac_cv_cygwin=yes
 else  else
Line 7996  echo "$ac_t""$ac_cv_cygwin" 1>&6 Line 7987  echo "$ac_t""$ac_cv_cygwin" 1>&6
 CYGWIN=  CYGWIN=
 test "$ac_cv_cygwin" = yes && CYGWIN=yes  test "$ac_cv_cygwin" = yes && CYGWIN=yes
 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6  echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 echo "configure:8000: checking for mingw32 environment" >&5  echo "configure:7991: checking for mingw32 environment" >&5
 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then  if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 8005 "configure"  #line 7996 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 return __MINGW32__;  return __MINGW32__;
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:8012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_mingw32=yes    ac_cv_mingw32=yes
 else  else
Line 8027  test "$ac_cv_mingw32" = yes && MINGW32=y Line 8018  test "$ac_cv_mingw32" = yes && MINGW32=y
   
   
 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6  echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 echo "configure:8031: checking for executable suffix" >&5  echo "configure:8022: checking for executable suffix" >&5
 if eval "test \"\${ac_cv_exeext+set}\" = set"; then  if eval "test \"\${ac_cv_exeext+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 8037  else Line 8028  else
   rm -f conftest*    rm -f conftest*
   echo 'int main () { return 0; }' > conftest.$ac_ext    echo 'int main () { return 0; }' > conftest.$ac_ext
   ac_cv_exeext=    ac_cv_exeext=
   if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then    if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     for file in conftest.*; do      for file in conftest.*; do
       case $file in        case $file in
       *.c | *.C | *.o | *.obj | *.xcoff) ;;        *.c | *.C | *.o | *.obj | *.xcoff) ;;
Line 8058  echo "$ac_t""${ac_cv_exeext}" 1>&6 Line 8049  echo "$ac_t""${ac_cv_exeext}" 1>&6
 ac_exeext=$EXEEXT  ac_exeext=$EXEEXT
   
 echo $ac_n "checking for object suffix""... $ac_c" 1>&6  echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 echo "configure:8062: checking for object suffix" >&5  echo "configure:8053: checking for object suffix" >&5
 if eval "test \"\${ac_cv_objext+set}\" = set"; then  if eval "test \"\${ac_cv_objext+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   rm -f conftest*    rm -f conftest*
 echo 'int i = 1;' > conftest.$ac_ext  echo 'int i = 1;' > conftest.$ac_ext
 if { (eval echo configure:8068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   for ac_file in conftest.*; do    for ac_file in conftest.*; do
     case $ac_file in      case $ac_file in
     *.c) ;;      *.c) ;;
Line 8088  EOF Line 8079  EOF
   
   
 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6  echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
 echo "configure:8092: checking for be_app in -lbe" >&5  echo "configure:8083: checking for be_app in -lbe" >&5
 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 8096  else Line 8087  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lbe -lroot -lnet $LIBS"  LIBS="-lbe -lroot -lnet $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 8100 "configure"  #line 8091 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 8107  int main() { Line 8098  int main() {
 be_app()  be_app()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 8133  fi Line 8124  fi
   
   
 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
 echo "configure:8137: checking for ${CC-cc} option to accept ANSI C" >&5  echo "configure:8128: checking for ${CC-cc} option to accept ANSI C" >&5
 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then  if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 8150  for ac_arg in "" -qlanglvl=ansi -std1 -A Line 8141  for ac_arg in "" -qlanglvl=ansi -std1 -A
 do  do
   CC="$ac_save_CC $ac_arg"    CC="$ac_save_CC $ac_arg"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 8154 "configure"  #line 8145 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <stdarg.h>  #include <stdarg.h>
 #include <stdio.h>  #include <stdio.h>
Line 8187  return f (e, argv, 0) != argv[0]  ||  f Line 8178  return f (e, argv, 0) != argv[0]  ||  f
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:8191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   am_cv_prog_cc_stdc="$ac_arg"; break    am_cv_prog_cc_stdc="$ac_arg"; break
 else  else
Line 8221  if test -z "${MKDEP}"; then Line 8212  if test -z "${MKDEP}"; then
         OL_MKDEP="${CC-cc}"          OL_MKDEP="${CC-cc}"
         if test -z "${MKDEP_FLAGS}"; then          if test -z "${MKDEP_FLAGS}"; then
                 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6                  echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
 echo "configure:8225: checking for ${OL_MKDEP} depend flag" >&5  echo "configure:8216: checking for ${OL_MKDEP} depend flag" >&5
 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then  if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 8231  else Line 8222  else
                                 cat > conftest.c <<EOF                                  cat > conftest.c <<EOF
  noCode;   noCode;
 EOF  EOF
                                 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \                                  if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1                                          | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
                                 then                                  then
                                         if test ! -f conftest."${ac_object}" ; then                                          if test ! -f conftest."${ac_object}" ; then
Line 8264  if test "${ol_cv_mkdep}" = no ; then Line 8255  if test "${ol_cv_mkdep}" = no ; then
 fi  fi
   
 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6  echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
 echo "configure:8268: checking for afopen in -ls" >&5  echo "configure:8259: checking for afopen in -ls" >&5
 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 8272  else Line 8263  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-ls  $LIBS"  LIBS="-ls  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 8276 "configure"  #line 8267 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 8283  int main() { Line 8274  int main() {
 afopen()  afopen()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 8310  else Line 8301  else
 fi  fi
   
   
   case "$target" in
   *-ibm-openedition)
           ac_cv_func_getopt=no
           cat >> confdefs.h <<\EOF
   #define BOTH_STRINGS_H 1
   EOF
   
           ;;
   esac
   
 ol_link_modules=no  ol_link_modules=no
 if test $ol_enable_modules != no ; then  if test $ol_enable_modules != no ; then
Line 8416  else Line 8416  else
         ol_with_ldbm_module=static          ol_with_ldbm_module=static
         ol_with_meta_module=static          ol_with_meta_module=static
         ol_with_monitor_module=static          ol_with_monitor_module=static
           ol_with_null_module=static
         ol_with_passwd_module=static          ol_with_passwd_module=static
         ol_with_perl_module=static          ol_with_perl_module=static
         ol_with_shell_module=static          ol_with_shell_module=static
         ol_with_tcl_module=static  
         ol_with_sql_module=static          ol_with_sql_module=static
 fi  fi
   
Line 8880  for ac_hdr in \ Line 8880  for ac_hdr in \
         sys/resource.h  \          sys/resource.h  \
         sys/select.h    \          sys/select.h    \
         sys/socket.h    \          sys/socket.h    \
           sys/stat.h              \
         sys/syslog.h    \          sys/syslog.h    \
         sys/time.h              \          sys/time.h              \
         sys/types.h             \          sys/types.h             \
           sys/ucred.h             \
           sys/uio.h               \
         syslog.h                \          syslog.h                \
         termios.h               \          termios.h               \
         unistd.h                \          unistd.h                \
Line 8892  for ac_hdr in \ Line 8895  for ac_hdr in \
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:8896: checking for $ac_hdr" >&5  echo "configure:8899: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 8901 "configure"  #line 8904 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:8906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 8932  done Line 8935  done
   
   
 echo $ac_n "checking for dlopen""... $ac_c" 1>&6  echo $ac_n "checking for dlopen""... $ac_c" 1>&6
 echo "configure:8936: checking for dlopen" >&5  echo "configure:8939: checking for dlopen" >&5
 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then  if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 8941 "configure"  #line 8944 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char dlopen(); below.  */      which can conflict with char dlopen(); below.  */
Line 8961  f = dlopen; Line 8964  f = dlopen;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_dlopen=yes"    eval "ac_cv_func_dlopen=yes"
 else  else
Line 8979  if eval "test \"`echo '$ac_cv_func_'dlop Line 8982  if eval "test \"`echo '$ac_cv_func_'dlop
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
 echo "configure:8983: checking for dlopen in -ldl" >&5  echo "configure:8986: checking for dlopen in -ldl" >&5
 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 8987  else Line 8990  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 8991 "configure"  #line 8994 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 8998  int main() { Line 9001  int main() {
 dlopen()  dlopen()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 9029  fi Line 9032  fi
   
   
 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6  echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
 echo "configure:9033: checking for sigset in -lV3" >&5  echo "configure:9036: checking for sigset in -lV3" >&5
 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 9037  else Line 9040  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lV3  $LIBS"  LIBS="-lV3  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9041 "configure"  #line 9044 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 9048  int main() { Line 9051  int main() {
 sigset()  sigset()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 9077  fi Line 9080  fi
   
   
 echo $ac_n "checking for winsock""... $ac_c" 1>&6  echo $ac_n "checking for winsock""... $ac_c" 1>&6
 echo "configure:9081: checking for winsock" >&5  echo "configure:9084: checking for winsock" >&5
 save_LIBS="$LIBS"  save_LIBS="$LIBS"
 for curlib in ws2_32 wsock32; do  for curlib in ws2_32 wsock32; do
         LIBS="$LIBS -l$curlib"          LIBS="$LIBS -l$curlib"
         cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
 #line 9086 "configure"  #line 9089 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
                         char socket@12();                          char socket@12();
Line 9099  int main() { Line 9102  int main() {
                                                   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   have_winsock=yes    have_winsock=yes
 else  else
Line 9134  echo "$ac_t""$have_winsock" 1>&6 Line 9137  echo "$ac_t""$have_winsock" 1>&6
   
   
 echo $ac_n "checking for socket""... $ac_c" 1>&6  echo $ac_n "checking for socket""... $ac_c" 1>&6
 echo "configure:9138: checking for socket" >&5  echo "configure:9141: checking for socket" >&5
 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then  if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 9143 "configure"  #line 9146 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char socket(); below.  */      which can conflict with char socket(); below.  */
Line 9163  f = socket; Line 9166  f = socket;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_socket=yes"    eval "ac_cv_func_socket=yes"
 else  else
Line 9182  else Line 9185  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
                   
         echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6          echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
 echo "configure:9186: checking for main in -lsocket" >&5  echo "configure:9189: checking for main in -lsocket" >&5
 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 9190  else Line 9193  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9194 "configure"  #line 9197 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 9225  else Line 9228  else
 fi  fi
   
         echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6          echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
 echo "configure:9229: checking for main in -lnet" >&5  echo "configure:9232: checking for main in -lnet" >&5
 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 9233  else Line 9236  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lnet  $LIBS"  LIBS="-lnet  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9237 "configure"  #line 9240 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 9268  else Line 9271  else
 fi  fi
   
         echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6          echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
 echo "configure:9272: checking for main in -lnsl_s" >&5  echo "configure:9275: checking for main in -lnsl_s" >&5
 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 9276  else Line 9279  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lnsl_s  $LIBS"  LIBS="-lnsl_s  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9280 "configure"  #line 9283 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 9311  else Line 9314  else
 fi  fi
   
         echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6          echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
 echo "configure:9315: checking for main in -lnsl" >&5  echo "configure:9318: checking for main in -lnsl" >&5
 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 9319  else Line 9322  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9323 "configure"  #line 9326 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 9354  else Line 9357  else
 fi  fi
   
         echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6          echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
 echo "configure:9358: checking for socket in -linet" >&5  echo "configure:9361: checking for socket in -linet" >&5
 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 9362  else Line 9365  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-linet  $LIBS"  LIBS="-linet  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9366 "configure"  #line 9369 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 9373  int main() { Line 9376  int main() {
 socket()  socket()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 9401  else Line 9404  else
 fi  fi
   
         echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6          echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
 echo "configure:9405: checking for main in -lgen" >&5  echo "configure:9408: checking for main in -lgen" >&5
 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 9409  else Line 9412  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lgen  $LIBS"  LIBS="-lgen  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9413 "configure"  #line 9416 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 9448  fi Line 9451  fi
   
   
 echo $ac_n "checking for select""... $ac_c" 1>&6  echo $ac_n "checking for select""... $ac_c" 1>&6
 echo "configure:9452: checking for select" >&5  echo "configure:9455: checking for select" >&5
 if eval "test \"\${ac_cv_func_select+set}\" = set"; then  if eval "test \"\${ac_cv_func_select+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 9457 "configure"  #line 9460 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char select(); below.  */      which can conflict with char select(); below.  */
Line 9477  f = select; Line 9480  f = select;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_select=yes"    eval "ac_cv_func_select=yes"
 else  else
Line 9500  fi Line 9503  fi
   
 if test "${ac_cv_header_winsock_h}" != yes; then  if test "${ac_cv_header_winsock_h}" != yes; then
                                 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6                                  echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
 echo "configure:9504: checking types of arguments for select()" >&5  echo "configure:9507: checking types of arguments for select()" >&5
  if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then   if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 9514  else Line 9517  else
      for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do       for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
       for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do        for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
        cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
 #line 9518 "configure"  #line 9521 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #ifdef HAVE_SYS_TYPES_H  #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>  #include <sys/types.h>
Line 9533  int main() { Line 9536  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
           ac_not_found=no ; break 3            ac_not_found=no ; break 3
 else  else
Line 9578  for ac_hdr in regex.h Line 9581  for ac_hdr in regex.h
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:9582: checking for $ac_hdr" >&5  echo "configure:9585: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 9587 "configure"  #line 9590 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:9592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 9619  if test "$ac_cv_header_regex_h" != yes ; Line 9622  if test "$ac_cv_header_regex_h" != yes ;
 fi  fi
   
 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6  echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
 echo "configure:9623: checking for library containing regfree" >&5  echo "configure:9626: checking for library containing regfree" >&5
 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then  if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   ac_func_search_save_LIBS="$LIBS"    ac_func_search_save_LIBS="$LIBS"
 ac_cv_search_regfree="no"  ac_cv_search_regfree="no"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9630 "configure"  #line 9633 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 9637  int main() { Line 9640  int main() {
 regfree()  regfree()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_search_regfree="none required"    ac_cv_search_regfree="none required"
 else  else
Line 9648  rm -f conftest* Line 9651  rm -f conftest*
 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do  test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
 LIBS="-l$ac_lib  $ac_func_search_save_LIBS"  LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9652 "configure"  #line 9655 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 9659  int main() { Line 9662  int main() {
 regfree()  regfree()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_search_regfree="-l$ac_lib"    ac_cv_search_regfree="-l$ac_lib"
 break  break
Line 9682  fi Line 9685  fi
   
   
 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6  echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
 echo "configure:9686: checking for compatible POSIX regex" >&5  echo "configure:9689: checking for compatible POSIX regex" >&5
 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then  if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 9691  else Line 9694  else
   ol_cv_c_posix_regex=cross    ol_cv_c_posix_regex=cross
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 9695 "configure"  #line 9698 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 #include <sys/types.h>  #include <sys/types.h>
Line 9717  main() Line 9720  main()
         return rc;          return rc;
 }  }
 EOF  EOF
 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:9724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   ol_cv_c_posix_regex=yes    ol_cv_c_posix_regex=yes
 else  else
Line 9743  for ac_hdr in sys/uuid.h Line 9746  for ac_hdr in sys/uuid.h
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:9747: checking for $ac_hdr" >&5  echo "configure:9750: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 9752 "configure"  #line 9755 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:9757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:9760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 9783  if test $ac_cv_header_sys_uuid_h = yes ; Line 9786  if test $ac_cv_header_sys_uuid_h = yes ;
         save_LIBS="$LIBS"          save_LIBS="$LIBS"
                   
 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6  echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
 echo "configure:9787: checking for library containing uuid_to_str" >&5  echo "configure:9790: checking for library containing uuid_to_str" >&5
 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then  if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   ac_func_search_save_LIBS="$LIBS"    ac_func_search_save_LIBS="$LIBS"
 ac_cv_search_uuid_to_str="no"  ac_cv_search_uuid_to_str="no"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9794 "configure"  #line 9797 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 9801  int main() { Line 9804  int main() {
 uuid_to_str()  uuid_to_str()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_search_uuid_to_str="none required"    ac_cv_search_uuid_to_str="none required"
 else  else
Line 9812  rm -f conftest* Line 9815  rm -f conftest*
 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do  test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
 LIBS="-l$ac_lib  $ac_func_search_save_LIBS"  LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 9816 "configure"  #line 9819 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 9823  int main() { Line 9826  int main() {
 uuid_to_str()  uuid_to_str()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_search_uuid_to_str="-l$ac_lib"    ac_cv_search_uuid_to_str="-l$ac_lib"
 break  break
Line 9858  fi Line 9861  fi
   
 if test $have_uuid = no ; then  if test $have_uuid = no ; then
         echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6          echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
 echo "configure:9862: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5  echo "configure:9865: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
         save_LIBS="$LIBS"          save_LIBS="$LIBS"
         LIBS="$LIBS -lrpcrt4"          LIBS="$LIBS -lrpcrt4"
         cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
 #line 9866 "configure"  #line 9869 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
                 char UuidCreate@4();                  char UuidCreate@4();
Line 9875  int main() { Line 9878  int main() {
                                   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   need_rpcrt=yes    need_rpcrt=yes
 else  else
Line 9894  fi Line 9897  fi
   
 ol_link_dnssrv=no  ol_link_dnssrv=no
 echo $ac_n "checking for res_query""... $ac_c" 1>&6  echo $ac_n "checking for res_query""... $ac_c" 1>&6
 echo "configure:9898: checking for res_query" >&5  echo "configure:9901: checking for res_query" >&5
 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then  if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 9903 "configure"  #line 9906 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char res_query(); below.  */      which can conflict with char res_query(); below.  */
Line 9923  f = res_query; Line 9926  f = res_query;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_res_query=yes"    eval "ac_cv_func_res_query=yes"
 else  else
Line 9944  fi Line 9947  fi
   
 if test $ac_cv_func_res_query = no ; then   if test $ac_cv_func_res_query = no ; then 
         echo $ac_n "checking for __res_query""... $ac_c" 1>&6          echo $ac_n "checking for __res_query""... $ac_c" 1>&6
 echo "configure:9948: checking for __res_query" >&5  echo "configure:9951: checking for __res_query" >&5
 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then  if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 9953 "configure"  #line 9956 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char __res_query(); below.  */      which can conflict with char __res_query(); below.  */
Line 9973  f = __res_query; Line 9976  f = __res_query;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func___res_query=yes"    eval "ac_cv_func___res_query=yes"
 else  else
Line 9997  fi Line 10000  fi
   
 if test $ac_cv_func_res_query = no ; then   if test $ac_cv_func_res_query = no ; then 
         echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6          echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
 echo "configure:10001: checking for res_query in -lbind" >&5  echo "configure:10004: checking for res_query in -lbind" >&5
 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10005  else Line 10008  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lbind  $LIBS"  LIBS="-lbind  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10009 "configure"  #line 10012 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 10016  int main() { Line 10019  int main() {
 res_query()  res_query()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10048  fi Line 10051  fi
   
 if test $ac_cv_func_res_query = no ; then   if test $ac_cv_func_res_query = no ; then 
         echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6          echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
 echo "configure:10052: checking for __res_query in -lbind" >&5  echo "configure:10055: checking for __res_query in -lbind" >&5
 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10056  else Line 10059  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lbind  $LIBS"  LIBS="-lbind  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10060 "configure"  #line 10063 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 10067  int main() { Line 10070  int main() {
 __res_query()  __res_query()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10099  fi Line 10102  fi
   
 if test $ac_cv_func_res_query = no ; then   if test $ac_cv_func_res_query = no ; then 
         echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6          echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
 echo "configure:10103: checking for res_query in -lresolv" >&5  echo "configure:10106: checking for res_query in -lresolv" >&5
 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10107  else Line 10110  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10111 "configure"  #line 10114 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 10118  int main() { Line 10121  int main() {
 res_query()  res_query()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10150  fi Line 10153  fi
   
 if test $ac_cv_func_res_query = no ; then   if test $ac_cv_func_res_query = no ; then 
         echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6          echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
 echo "configure:10154: checking for __res_query in -lresolv" >&5  echo "configure:10157: checking for __res_query in -lresolv" >&5
 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10158  else Line 10161  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10162 "configure"  #line 10165 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 10169  int main() { Line 10172  int main() {
 __res_query()  __res_query()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10214  if test "$ol_enable_dnssrv" = yes -a "$o Line 10217  if test "$ol_enable_dnssrv" = yes -a "$o
         { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }          { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
 fi  fi
   
 for ac_func in getaddrinfo gai_strerror inet_ntop   for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop 
 do  do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 echo "configure:10221: checking for $ac_func" >&5  echo "configure:10224: checking for $ac_func" >&5
 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then  if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 10226 "configure"  #line 10229 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
Line 10246  f = $ac_func; Line 10249  f = $ac_func;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
 else  else
Line 10278  if test $ac_cv_func_getaddrinfo = no -o Line 10281  if test $ac_cv_func_getaddrinfo = no -o
         fi          fi
 elif test $ol_enable_ipv6 != no ; then  elif test $ol_enable_ipv6 != no ; then
         echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6          echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
 echo "configure:10282: checking INET6_ADDRSTRLEN" >&5  echo "configure:10285: checking INET6_ADDRSTRLEN" >&5
 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then  if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
       
                 cat > conftest.$ac_ext <<EOF                  cat > conftest.$ac_ext <<EOF
 #line 10288 "configure"  #line 10291 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 #                       include <netinet/in.h>  #                       include <netinet/in.h>
Line 10307  fi Line 10310  fi
   
 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6  echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
   
         if test $ol_cv_inet6_addrstrlen = yes ; then  
           echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
   echo "configure:10316: checking struct sockaddr_storage" >&5
   if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
     echo $ac_n "(cached) $ac_c" 1>&6
   else
     
                   cat > conftest.$ac_ext <<EOF
   #line 10322 "configure"
   #include "confdefs.h"
   
   #include <sys/types.h>
   #include <sys/socket.h>
   
   int main() {
   
                           struct sockaddr_storage ss;
   
   ; return 0; }
   EOF
   if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     rm -rf conftest*
     ol_cv_struct_sockaddr_storage=yes
   else
     echo "configure: failed program was:" >&5
     cat conftest.$ac_ext >&5
     rm -rf conftest*
     ol_cv_struct_sockaddr_storage=no
   fi
   rm -f conftest*
   fi
   
   echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
   
           if test $ol_cv_inet6_addrstrlen = yes \
                   -a $ol_cv_struct_sockaddr_storage = yes ; then
                 ol_link_ipv6=yes                  ol_link_ipv6=yes
         elif test $ol_enable_ipv6 = yes ; then          elif test $ol_enable_ipv6 = yes \
                           -a $ol_cv_inet6_addrstrlen = no ; then
                 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }                  { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
           elif test $ol_enable_ipv6 = yes \
                           -a $ol_cv_struct_sockaddr_storage = no ; then
                   { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
         fi          fi
 fi  fi
   
Line 10319  if test $ol_enable_local != no ; then Line 10361  if test $ol_enable_local != no ; then
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:10323: checking for $ac_hdr" >&5  echo "configure:10365: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 10328 "configure"  #line 10370 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:10333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:10375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 10376  if test $ol_with_kerberos = yes -o $ol_w Line 10418  if test $ol_with_kerberos = yes -o $ol_w
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:10380: checking for $ac_hdr" >&5  echo "configure:10422: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 10385 "configure"  #line 10427 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:10390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 10418  done Line 10460  done
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:10422: checking for $ac_hdr" >&5  echo "configure:10464: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 10427 "configure"  #line 10469 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:10474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 10462  done Line 10504  done
   
                 if test $krb5_impl = mit; then                  if test $krb5_impl = mit; then
                         echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6                          echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
 echo "configure:10466: checking for main in -lk5crypto" >&5  echo "configure:10508: checking for main in -lk5crypto" >&5
 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10470  else Line 10512  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lk5crypto  $LIBS"  LIBS="-lk5crypto  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10474 "configure"  #line 10516 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10500  fi Line 10542  fi
   
   
                         echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6                          echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
 echo "configure:10504: checking for main in -lkrb5" >&5  echo "configure:10546: checking for main in -lkrb5" >&5
 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10508  else Line 10550  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"  LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10512 "configure"  #line 10554 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10539  fi Line 10581  fi
   
   
                 elif test $krb5_impl = heimdal; then                  elif test $krb5_impl = heimdal; then
                           echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
   echo "configure:10586: checking for main in -ldes" >&5
   ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
   if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
     echo $ac_n "(cached) $ac_c" 1>&6
   else
     ac_save_LIBS="$LIBS"
   LIBS="-ldes  $LIBS"
   cat > conftest.$ac_ext <<EOF
   #line 10594 "configure"
   #include "confdefs.h"
   
   int main() {
   main()
   ; return 0; }
   EOF
   if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     rm -rf conftest*
     eval "ac_cv_lib_$ac_lib_var=yes"
   else
     echo "configure: failed program was:" >&5
     cat conftest.$ac_ext >&5
     rm -rf conftest*
     eval "ac_cv_lib_$ac_lib_var=no"
   fi
   rm -f conftest*
   LIBS="$ac_save_LIBS"
   
   fi
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     echo "$ac_t""yes" 1>&6
     krb5crypto=des
   else
     echo "$ac_t""no" 1>&6
   krb5crypto=crypto
   fi
   
   
                         echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6                          echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
 echo "configure:10544: checking for main in -lkrb5" >&5  echo "configure:10624: checking for main in -lkrb5" >&5
 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"  LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10552 "configure"  #line 10632 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10571  fi Line 10651  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
   have_krb5=yes    have_krb5=yes
                                 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"                                  KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 have_krb5=no  have_krb5=no
Line 10585  EOF Line 10665  EOF
   
                 else                  else
                         have_krb5=no                          have_krb5=no
                         echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2                          echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
                 fi                  fi
   
                 if test $have_krb5 = yes ; then                  if test $have_krb5 = yes ; then
Line 10618  if test $ol_link_krb5 = yes -a \( $ol_wi Line 10698  if test $ol_link_krb5 = yes -a \( $ol_wi
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:10622: checking for $ac_hdr" >&5  echo "configure:10702: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 10627 "configure"  #line 10707 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:10632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:10712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 10658  done Line 10738  done
         if test $ac_cv_header_kerberosIV_krb_h = yes ; then          if test $ac_cv_header_kerberosIV_krb_h = yes ; then
                 if test $krb5_impl = mit; then                  if test $krb5_impl = mit; then
                         echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6                          echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
 echo "configure:10662: checking for main in -lkrb4" >&5  echo "configure:10742: checking for main in -lkrb4" >&5
 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10666  else Line 10746  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"  LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10670 "configure"  #line 10750 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10698  fi Line 10778  fi
   
                 elif test $krb5_impl = heimdal; then                  elif test $krb5_impl = heimdal; then
                         echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6                          echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
 echo "configure:10702: checking for main in -lkrb4" >&5  echo "configure:10782: checking for main in -lkrb4" >&5
 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"  LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10710 "configure"  #line 10790 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10755  EOF Line 10835  EOF
   
   
                         echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6                          echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
 echo "configure:10759: checking for des_debug in Kerberos libraries" >&5  echo "configure:10839: checking for des_debug in Kerberos libraries" >&5
 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then  if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 10763  else Line 10843  else
                                                                 save_LIBS="$LIBS"                                                                  save_LIBS="$LIBS"
                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"                                  LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
                                 cat > conftest.$ac_ext <<EOF                                  cat > conftest.$ac_ext <<EOF
 #line 10767 "configure"  #line 10847 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 #include <kerberosIV/krb.h>  #include <kerberosIV/krb.h>
Line 10776  des_debug = 1; Line 10856  des_debug = 1;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ol_cv_var_des_debug=yes    ol_cv_var_des_debug=yes
 else  else
Line 10815  if test $ol_with_kerberos = yes -o $ol_w Line 10895  if test $ol_with_kerberos = yes -o $ol_w
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:10819: checking for $ac_hdr" >&5  echo "configure:10899: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 10824 "configure"  #line 10904 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:10829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:10909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 10854  done Line 10934  done
   
         if test $ac_cv_header_krb_h = yes ; then          if test $ac_cv_header_krb_h = yes ; then
                 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6                  echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
 echo "configure:10858: checking for main in -lkrb" >&5  echo "configure:10938: checking for main in -lkrb" >&5
 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10862  else Line 10942  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lkrb -ldes $LIBS"  LIBS="-lkrb -ldes $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10866 "configure"  #line 10946 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 main()  main()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:10953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 10939  if test $ol_with_tls != no ; then Line 11019  if test $ol_with_tls != no ; then
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:10943: checking for $ac_hdr" >&5  echo "configure:11023: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 10948 "configure"  #line 11028 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:10953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:11033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 10976  fi Line 11056  fi
 done  done
   
                   
         if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then          if test $ac_cv_header_openssl_ssl_h = yes \
                   -o $ac_cv_header_ssl_h = yes ; then
                 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6                  echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
 echo "configure:10982: checking for SSLeay_add_ssl_algorithms in -lssl" >&5  echo "configure:11063: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 10986  else Line 11067  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lssl -lcrypto $LIBS"  LIBS="-lssl -lcrypto $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 10990 "configure"  #line 11071 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 10997  int main() { Line 11078  int main() {
 SSLeay_add_ssl_algorithms()  SSLeay_add_ssl_algorithms()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 11022  fi Line 11103  fi
                                                   
                 if test $have_ssleay = no ; then                  if test $have_ssleay = no ; then
                         echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6                          echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
 echo "configure:11026: checking for SSL_library_init in -lssl" >&5  echo "configure:11107: checking for SSL_library_init in -lssl" >&5
 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 11030  else Line 11111  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lssl -lcrypto $LIBS"  LIBS="-lssl -lcrypto $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 11034 "configure"  #line 11115 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 11041  int main() { Line 11122  int main() {
 SSL_library_init()  SSL_library_init()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:11126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 11067  fi Line 11148  fi
   
                 if test $have_ssleay = no ; then                  if test $have_ssleay = no ; then
                         echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6                          echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
 echo "configure:11071: checking for ssl3_accept in -lssl" >&5  echo "configure:11152: checking for ssl3_accept in -lssl" >&5
 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`  ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then  if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 11075  else Line 11156  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"  LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 11079 "configure"  #line 11160 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 11086  int main() { Line 11167  int main() {
 ssl3_accept()  ssl3_accept()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 11133  EOF Line 11214  EOF
         fi          fi
   
 else  else
         echo "configure: warning: TLS privacy protection not supported!" 1>&2          echo "configure: warning: TLS data protection not supported!" 1>&2
 fi  fi
   
 if test $ol_link_tls = yes ; then  if test $ol_link_tls = yes ; then
Line 11144  EOF Line 11225  EOF
   
 elif test $ol_with_tls = auto ; then  elif test $ol_with_tls = auto ; then
         echo "configure: warning: Could not locate TLS/SSL package" 1>&2          echo "configure: warning: Could not locate TLS/SSL package" 1>&2
         echo "configure: warning: TLS privacy protection not supported!" 1>&2          echo "configure: warning: TLS data protection not supported!" 1>&2
   
 elif test $ol_with_tls != no ; then  elif test $ol_with_tls != no ; then
         { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }          { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
Line 11161  EOF Line 11242  EOF
   
 fi  fi
   
 for ac_func in \  
         ctime_r                 \  
         gethostbyname_r gethostbyaddr_r \  
   
 do  
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  
 echo "configure:11171: checking for $ac_func" >&5  
 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 11176 "configure"  
 #include "confdefs.h"  
 /* System header to define __stub macros and hopefully few prototypes,  
     which can conflict with char $ac_func(); below.  */  
 #include <assert.h>  
 /* Override any gcc2 internal prototype to avoid an error.  */  
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char $ac_func();  
 char (*f)();  
   
 int main() {  
   
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  
 choke me  
 #else  
 f = $ac_func;  
 #endif  
   
 ; return 0; }  
 EOF  
 if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_func_$ac_func=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_func_$ac_func=no"  
 fi  
 rm -f conftest*  
 fi  
   
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
    
 else  
   echo "$ac_t""no" 1>&6  
 fi  
 done  
   
   
 if test "$ac_cv_func_ctime_r" = no ; then  
         ol_cv_func_ctime_r_nargs=0  
 else  
         echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6  
 echo "configure:11229: checking number of arguments of ctime_r" >&5  
 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 11234 "configure"  
 #include "confdefs.h"  
 #include <time.h>  
 int main() {  
 time_t ti; char *buffer; ctime_r(&ti,buffer,32);  
 ; return 0; }  
 EOF  
 if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  
   rm -rf conftest*  
   ol_cv_func_ctime_r_nargs3=yes  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   ol_cv_func_ctime_r_nargs3=no  
 fi  
 rm -f conftest*  
   
         cat > conftest.$ac_ext <<EOF  
 #line 11253 "configure"  
 #include "confdefs.h"  
 #include <time.h>  
 int main() {  
 time_t ti; char *buffer; ctime_r(&ti,buffer);  
 ; return 0; }  
 EOF  
 if { (eval echo configure:11260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  
   rm -rf conftest*  
   ol_cv_func_ctime_r_nargs2=yes  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   ol_cv_func_ctime_r_nargs2=no  
 fi  
 rm -f conftest*  
   
         if test $ol_cv_func_ctime_r_nargs3 = yes -a \  
                 $ol_cv_func_ctime_r_nargs2 = no ; then  
   
                 ol_cv_func_ctime_r_nargs=3  
   
         elif test $ol_cv_func_ctime_r_nargs3 = no -a \  
                 $ol_cv_func_ctime_r_nargs2 = yes ; then  
   
                 ol_cv_func_ctime_r_nargs=2  
   
         else  
                 ol_cv_func_ctime_r_nargs=0  
         fi  
     
 fi  
   
 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6  
   
   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then  
         cat >> confdefs.h <<EOF  
 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs  
 EOF  
   
   fi  
   
 fi  
   
 if test "$ac_cv_func_gethostbyname_r" = yes ; then  
         echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6  
 echo "configure:11300: checking number of arguments of gethostbyname_r" >&5  
 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 11305 "configure"  
 #include "confdefs.h"  
 #include <sys/types.h>  
 #include <sys/socket.h>  
 #include <netinet/in.h>  
 #include <netdb.h>  
 #define BUFSIZE (sizeof(struct hostent)+10)  
 int main() {  
 struct hostent hent; char buffer[BUFSIZE];  
                 int bufsize=BUFSIZE;int h_errno;  
                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,  
                         buffer, bufsize, &h_errno);  
 ; return 0; }  
 EOF  
 if { (eval echo configure:11319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  
   rm -rf conftest*  
   ol_cv_func_gethostbyname_r_nargs5=yes  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   ol_cv_func_gethostbyname_r_nargs5=no  
 fi  
 rm -f conftest*  
   
         cat > conftest.$ac_ext <<EOF  
 #line 11331 "configure"  
 #include "confdefs.h"  
 #include <sys/types.h>  
 #include <sys/socket.h>  
 #include <netinet/in.h>  
 #include <netdb.h>  
 #define BUFSIZE (sizeof(struct hostent)+10)  
 int main() {  
 struct hostent hent;struct hostent *rhent;  
                 char buffer[BUFSIZE];  
                 int bufsize=BUFSIZE;int h_errno;  
                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,  
                         &rhent, &h_errno);  
 ; return 0; }  
 EOF  
 if { (eval echo configure:11346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  
   rm -rf conftest*  
   ol_cv_func_gethostbyname_r_nargs6=yes  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   ol_cv_func_gethostbyname_r_nargs6=no  
 fi  
 rm -f conftest*  
   
         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \  
                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then  
   
                 ol_cv_func_gethostbyname_r_nargs=5  
   
         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \  
                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then  
   
                 ol_cv_func_gethostbyname_r_nargs=6  
   
         else  
                 ol_cv_func_gethostbyname_r_nargs=0  
         fi  
     
 fi  
   
 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6  
   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then  
         cat >> confdefs.h <<EOF  
 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs  
 EOF  
   
   fi  
   
 else  
         ol_cv_func_gethostbyname_r_nargs=0  
 fi  
    
 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then  
         echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6  
 echo "configure:11387: checking number of arguments of gethostbyaddr_r" >&5  
 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 11392 "configure"  
 #include "confdefs.h"  
 #include <sys/types.h>  
 #include <sys/socket.h>  
 #include <netinet/in.h>  
 #include <netdb.h>  
 #define BUFSIZE (sizeof(struct hostent)+10)  
 int main() {  
 struct hostent hent; char buffer[BUFSIZE];   
             struct in_addr add;  
             size_t alen=sizeof(struct in_addr);  
             int bufsize=BUFSIZE;int h_errno;  
                 (void)gethostbyaddr_r( (void *)&(add.s_addr),  
                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);  
 ; return 0; }  
 EOF  
 if { (eval echo configure:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  
   rm -rf conftest*  
   ol_cv_func_gethostbyaddr_r_nargs7=yes  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   ol_cv_func_gethostbyaddr_r_nargs7=no  
 fi  
 rm -f conftest*  
   
         cat > conftest.$ac_ext <<EOF  
 #line 11420 "configure"  
 #include "confdefs.h"  
 #include <sys/types.h>  
 #include <sys/socket.h>  
 #include <netinet/in.h>  
 #include <netdb.h>  
 #define BUFSIZE (sizeof(struct hostent)+10)  
 int main() {  
 struct hostent hent;  
                 struct hostent *rhent; char buffer[BUFSIZE];   
                 struct in_addr add;  
                 size_t alen=sizeof(struct in_addr);  
                 int bufsize=BUFSIZE;int h_errno;  
                 (void)gethostbyaddr_r( (void *)&(add.s_addr),  
                         alen, AF_INET, &hent, buffer, bufsize,   
                         &rhent, &h_errno);  
 ; return 0; }  
 EOF  
 if { (eval echo configure:11438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  
   rm -rf conftest*  
   ol_cv_func_gethostbyaddr_r_nargs8=yes  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   ol_cv_func_gethostbyaddr_r_nargs8=no  
 fi  
 rm -f conftest*  
   
         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \  
                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then  
   
                 ol_cv_func_gethostbyaddr_r_nargs=7  
   
         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \  
                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then  
   
                 ol_cv_func_gethostbyaddr_r_nargs=8  
   
         else  
                 ol_cv_func_gethostbyaddr_r_nargs=0  
         fi  
     
 fi  
   
 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6  
   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then  
     cat >> confdefs.h <<EOF  
 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs  
 EOF  
   
   fi  
   
 else  
         ol_cv_func_gethostbyaddr_r_nargs=0  
 fi  
   
 if test "$ac_cv_func_ctime_r" = yes \  
         -a "$ol_cv_func_ctime_r_nargs" -ge 2 \  
         -a "$ol_cv_func_ctime_r_nargs" -le 3 \  
         -a "$ac_cv_func_gethostbyname_r" = yes \  
         -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \  
         -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \  
         -a "$ac_cv_func_gethostbyaddr_r" = yes \  
         -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \  
         -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \  
         ; then  
    
         cat >> confdefs.h <<\EOF  
 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1  
 EOF  
   
 fi  
   
 ol_link_threads=no  ol_link_threads=no
   
 if test $ol_with_threads = auto -o $ol_with_threads = yes \  if test $ol_with_threads = auto -o $ol_with_threads = yes \
Line 11497  if test $ol_with_threads = auto -o $ol_w Line 11249  if test $ol_with_threads = auto -o $ol_w
   
                   
         echo $ac_n "checking for _beginthread""... $ac_c" 1>&6          echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
 echo "configure:11501: checking for _beginthread" >&5  echo "configure:11253: checking for _beginthread" >&5
 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then  if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 11506 "configure"  #line 11258 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char _beginthread(); below.  */      which can conflict with char _beginthread(); below.  */
Line 11526  f = _beginthread; Line 11278  f = _beginthread;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func__beginthread=yes"    eval "ac_cv_func__beginthread=yes"
 else  else
Line 11582  if test $ol_with_threads = auto -o $ol_w Line 11334  if test $ol_with_threads = auto -o $ol_w
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:11586: checking for $ac_hdr" >&5  echo "configure:11338: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 11591 "configure"  #line 11343 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:11596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:11348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 11621  done Line 11373  done
   
         if test $ac_cv_header_pthread_h = yes ; then          if test $ac_cv_header_pthread_h = yes ; then
                 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6                  echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
 echo "configure:11625: checking POSIX thread version" >&5  echo "configure:11377: checking POSIX thread version" >&5
 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then  if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
       
         cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
 #line 11631 "configure"  #line 11383 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 #               include <pthread.h>  #               include <pthread.h>
                 /* this check could be improved */  
 #               ifdef PTHREAD_ONCE_INIT  
                         pthread_version_final;  
 #               endif  
                   
   int main() {
   
                   int i = PTHREAD_CREATE_JOINABLE;
           
   ; return 0; }
   EOF
   if { (eval echo configure:11394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     rm -rf conftest*
     
           cat > conftest.$ac_ext <<EOF
   #line 11398 "configure"
   #include "confdefs.h"
   #include <pthread.h>
 EOF  EOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   egrep "pthread_version_final" >/dev/null 2>&1; then    egrep "pthread_detach" >/dev/null 2>&1; then
   rm -rf conftest*    rm -rf conftest*
   ol_pthread_final=yes    ol_cv_pthread_version=10
 else  else
   rm -rf conftest*    rm -rf conftest*
   ol_pthread_final=no    ol_cv_pthread_version=8
 fi  fi
 rm -f conftest*  rm -f conftest*
   
   else
     echo "configure: failed program was:" >&5
     cat conftest.$ac_ext >&5
     rm -rf conftest*
     
         cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
 #line 11653 "configure"  #line 11418 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 #               include <pthread.h>  #               include <pthread.h>
                 /* this check could be improved */  #               ifdef PTHREAD_CREATE_UNDETACHED
 #               ifdef pthread_once_init                  draft7
                         pthread_version_draft4;  
 #               endif  #               endif
                   
 EOF  EOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   egrep "pthread_version_draft4" >/dev/null 2>&1; then    egrep "draft7" >/dev/null 2>&1; then
     rm -rf conftest*
     ol_cv_pthread_version=7
   else
     rm -rf conftest*
     
           cat > conftest.$ac_ext <<EOF
   #line 11435 "configure"
   #include "confdefs.h"
   #include <pthread.h>
   EOF
   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     egrep "pthread_attr_init" >/dev/null 2>&1; then
   rm -rf conftest*    rm -rf conftest*
   ol_pthread_draft4=yes    ol_cv_pthread_version=6
 else  else
   rm -rf conftest*    rm -rf conftest*
   ol_pthread_draft4=no    
           cat > conftest.$ac_ext <<EOF
   #line 11447 "configure"
   #include "confdefs.h"
   
   #               include <pthread.h>
   #ifdef          PTHREAD_MUTEX_INITIALIZER
                   draft5
   #endif
           
   EOF
   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     egrep "draft5" >/dev/null 2>&1; then
     rm -rf conftest*
     ol_cv_pthread_version=5
   else
     rm -rf conftest*
     ol_cv_pthread_version=4
   fi
   rm -f conftest*
    
   fi
   rm -f conftest*
    
   fi
   rm -f conftest*
    
 fi  fi
 rm -f conftest*  rm -f conftest*
   
   
         if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then  
                 ol_cv_pthread_version=final  
         elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then  
                 ol_cv_pthread_version=draft4  
         else  
                 ol_cv_pthread_version=unknown  
         fi  
   
 fi  fi
   
 echo "$ac_t""$ol_cv_pthread_version" 1>&6  echo "$ac_t""$ol_cv_pthread_version" 1>&6
   
   
                 if test $ol_cv_pthread_version = final ; then                  if test $ol_cv_pthread_version != 0 ; then
                         cat >> confdefs.h <<\EOF                          cat >> confdefs.h <<EOF
 #define HAVE_PTHREADS_FINAL 1  #define HAVE_PTHREADS $ol_cv_pthread_version
 EOF  
   
                 elif test $ol_cv_pthread_version = draft4 ; then  
                         cat >> confdefs.h <<\EOF  
 #define HAVE_PTHREADS_D4 1  
 EOF  EOF
   
                 else                  else
Line 11702  EOF Line 11490  EOF
   
                                   
         echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6          echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
 echo "configure:11706: checking for LinuxThreads pthread.h" >&5  echo "configure:11494: checking for LinuxThreads pthread.h" >&5
 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then  if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 11711 "configure"  #line 11499 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <pthread.h>  #include <pthread.h>
 EOF  EOF
Line 11734  EOF Line 11522  EOF
   
                                   
         echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6          echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
 echo "configure:11738: checking for GNU Pth pthread.h" >&5  echo "configure:11526: checking for GNU Pth pthread.h" >&5
 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then  if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 11743 "configure"  #line 11531 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <pthread.h>  #include <pthread.h>
 #ifdef _POSIX_THREAD_IS_GNU_PTH  #ifdef _POSIX_THREAD_IS_GNU_PTH
Line 11768  echo "$ac_t""$ol_cv_header_gnu_pth_pthre Line 11556  echo "$ac_t""$ol_cv_header_gnu_pth_pthre
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:11772: checking for $ac_hdr" >&5  echo "configure:11560: checking for $ac_hdr" >&5
 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then  if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 11777 "configure"  #line 11565 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:11782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:11570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 11808  done Line 11596  done
   
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
                                 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6                                  echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
 echo "configure:11812: checking for pthread_create in default libraries" >&5  echo "configure:11600: checking for pthread_create in default libraries" >&5
 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then  if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
       
                 if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 11819 "configure"  #line 11607 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 11832  static void *task(p) Line 11623  static void *task(p)
 int main() {  int main() {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 11896  int main() { Line 11670  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:11674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ol_cv_pthread_create=yes    ol_cv_pthread_create=yes
 else  else
Line 11908  fi Line 11682  fi
 rm -f conftest*  rm -f conftest*
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 11912 "configure"  #line 11686 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 11929  int main(argc, argv) Line 11706  int main(argc, argv)
 {  {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  #endif
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 11994  int main(argc, argv) Line 11754  int main(argc, argv)
 }  }
   
 EOF  EOF
 if { (eval echo configure:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:11758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   ol_cv_pthread_create=yes    ol_cv_pthread_create=yes
 else  else
Line 12019  echo "$ac_t""$ol_cv_pthread_create" 1>&6 Line 11779  echo "$ac_t""$ol_cv_pthread_create" 1>&6
 if test "$ol_link_threads" = no ; then  if test "$ol_link_threads" = no ; then
         # try -kthread          # try -kthread
         echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6          echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
 echo "configure:12023: checking for pthread link with -kthread" >&5  echo "configure:11783: checking for pthread link with -kthread" >&5
 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then  if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 12030  else Line 11790  else
   
                 if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12034 "configure"  #line 11794 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12047  static void *task(p) Line 11810  static void *task(p)
 int main() {  int main() {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12111  int main() { Line 11857  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:11861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ol_cv_pthread_kthread=yes    ol_cv_pthread_kthread=yes
 else  else
Line 12123  fi Line 11869  fi
 rm -f conftest*  rm -f conftest*
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12127 "configure"  #line 11873 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12144  int main(argc, argv) Line 11893  int main(argc, argv)
 {  {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12209  int main(argc, argv) Line 11941  int main(argc, argv)
 }  }
   
 EOF  EOF
 if { (eval echo configure:12213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   ol_cv_pthread_kthread=yes    ol_cv_pthread_kthread=yes
 else  else
Line 12239  fi Line 11971  fi
 if test "$ol_link_threads" = no ; then  if test "$ol_link_threads" = no ; then
         # try -pthread          # try -pthread
         echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6          echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
 echo "configure:12243: checking for pthread link with -pthread" >&5  echo "configure:11975: checking for pthread link with -pthread" >&5
 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then  if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 12250  else Line 11982  else
   
                 if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12254 "configure"  #line 11986 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12267  static void *task(p) Line 12002  static void *task(p)
 int main() {  int main() {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  #endif
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12331  int main() { Line 12049  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ol_cv_pthread_pthread=yes    ol_cv_pthread_pthread=yes
 else  else
Line 12343  fi Line 12061  fi
 rm -f conftest*  rm -f conftest*
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12347 "configure"  #line 12065 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12364  int main(argc, argv) Line 12085  int main(argc, argv)
 {  {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12429  int main(argc, argv) Line 12133  int main(argc, argv)
 }  }
   
 EOF  EOF
 if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:12137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   ol_cv_pthread_pthread=yes    ol_cv_pthread_pthread=yes
 else  else
Line 12459  fi Line 12163  fi
 if test "$ol_link_threads" = no ; then  if test "$ol_link_threads" = no ; then
         # try -pthreads          # try -pthreads
         echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6          echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
 echo "configure:12463: checking for pthread link with -pthreads" >&5  echo "configure:12167: checking for pthread link with -pthreads" >&5
 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then  if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 12470  else Line 12174  else
   
                 if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12474 "configure"  #line 12178 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12487  static void *task(p) Line 12194  static void *task(p)
 int main() {  int main() {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12551  int main() { Line 12241  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:12555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:12245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ol_cv_pthread_pthreads=yes    ol_cv_pthread_pthreads=yes
 else  else
Line 12563  fi Line 12253  fi
 rm -f conftest*  rm -f conftest*
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12567 "configure"  #line 12257 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12584  int main(argc, argv) Line 12277  int main(argc, argv)
 {  {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  #endif
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12649  int main(argc, argv) Line 12325  int main(argc, argv)
 }  }
   
 EOF  EOF
 if { (eval echo configure:12653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:12329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   ol_cv_pthread_pthreads=yes    ol_cv_pthread_pthreads=yes
 else  else
Line 12679  fi Line 12355  fi
 if test "$ol_link_threads" = no ; then  if test "$ol_link_threads" = no ; then
         # try -mthreads          # try -mthreads
         echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6          echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
 echo "configure:12683: checking for pthread link with -mthreads" >&5  echo "configure:12359: checking for pthread link with -mthreads" >&5
 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then  if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 12690  else Line 12366  else
   
                 if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12694 "configure"  #line 12370 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12707  static void *task(p) Line 12386  static void *task(p)
 int main() {  int main() {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12771  int main() { Line 12433  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:12775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:12437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ol_cv_pthread_mthreads=yes    ol_cv_pthread_mthreads=yes
 else  else
Line 12783  fi Line 12445  fi
 rm -f conftest*  rm -f conftest*
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12787 "configure"  #line 12449 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12804  int main(argc, argv) Line 12469  int main(argc, argv)
 {  {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12869  int main(argc, argv) Line 12517  int main(argc, argv)
 }  }
   
 EOF  EOF
 if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   ol_cv_pthread_mthreads=yes    ol_cv_pthread_mthreads=yes
 else  else
Line 12899  fi Line 12547  fi
 if test "$ol_link_threads" = no ; then  if test "$ol_link_threads" = no ; then
         # try -thread          # try -thread
         echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6          echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
 echo "configure:12903: checking for pthread link with -thread" >&5  echo "configure:12551: checking for pthread link with -thread" >&5
 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then  if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 12910  else Line 12558  else
   
                 if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 12914 "configure"  #line 12562 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 12927  static void *task(p) Line 12578  static void *task(p)
 int main() {  int main() {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  #endif
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 12991  int main() { Line 12625  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ol_cv_pthread_thread=yes    ol_cv_pthread_thread=yes
 else  else
Line 13003  fi Line 12637  fi
 rm -f conftest*  rm -f conftest*
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 13007 "configure"  #line 12641 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 13024  int main(argc, argv) Line 12661  int main(argc, argv)
 {  {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 13089  int main(argc, argv) Line 12709  int main(argc, argv)
 }  }
   
 EOF  EOF
 if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:12713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   ol_cv_pthread_thread=yes    ol_cv_pthread_thread=yes
 else  else
Line 13120  fi Line 12740  fi
 if test "$ol_link_threads" = no ; then  if test "$ol_link_threads" = no ; then
         # try -lpthread -lmach -lexc -lc_r          # try -lpthread -lmach -lexc -lc_r
         echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6          echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
 echo "configure:13124: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5  echo "configure:12744: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then  if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 13131  else Line 12751  else
   
                 if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 13135 "configure"  #line 12755 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 13148  static void *task(p) Line 12771  static void *task(p)
 int main() {  int main() {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  #endif
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 13212  int main() { Line 12818  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:13216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:12822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes    ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
 else  else
Line 13224  fi Line 12830  fi
 rm -f conftest*  rm -f conftest*
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 13228 "configure"  #line 12834 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* pthread test headers */  /* pthread test headers */
 #include <pthread.h>  #include <pthread.h>
   #if HAVE_PTHREADS < 7
   #include <errno.h>
   #endif
 #ifndef NULL  #ifndef NULL
 #define NULL (void*)0  #define NULL (void*)0
 #endif  #endif
Line 13245  int main(argc, argv) Line 12854  int main(argc, argv)
 {  {
   
         /* pthread test function */          /* pthread test function */
   #ifndef PTHREAD_CREATE_DETACHED
   #define PTHREAD_CREATE_DETACHED 1
   #endif
         pthread_t t;          pthread_t t;
         int status;          int status;
         int detach = 1;          int detach = PTHREAD_CREATE_DETACHED;
   
 #ifdef HAVE_PTHREADS_FINAL  #if HAVE_PTHREADS > 4
         /* Final pthreads */          /* Final pthreads */
         pthread_attr_t attr;          pthread_attr_t attr;
   
         status = pthread_attr_init(&attr);          status = pthread_attr_init(&attr);
         if( status ) return status;          if( status ) return status;
   
 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )  #if HAVE_PTHREADS < 7
         if( !detach ) {          status = pthread_attr_setdetachstate(&attr, &detach);
 #if defined( PTHREAD_CREATE_JOINABLE )          if( status < 0 ) status = errno;
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);  
 #else  #else
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);          status = pthread_attr_setdetachstate(&attr, detach);
 #endif  #endif
   
 #ifdef PTHREAD_CREATE_DETACHED  
         } else {  
                 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);  
 #endif  
         }  
         if( status ) return status;          if( status ) return status;
 #endif  
   
         status = pthread_create( &t, &attr, task, NULL );          status = pthread_create( &t, &attr, task, NULL );
         if( status ) return status;  #if HAVE_PTHREADS < 7
           if( status < 0 ) status = errno;
 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )  
         if( detach ) {  
                 /* give thread a chance to complete */  
                 /* it should remain joinable and hence detachable */  
                 sleep( 1 );  
   
                 status = pthread_detach( t );  
                 if( status ) return status;  
         }  
 #endif  #endif
           if( status ) return status;
 #else  #else
         /* Draft 4 pthreads */          /* Draft 4 pthreads */
         status = pthread_create( &t, pthread_attr_default, task, NULL );          status = pthread_create( &t, pthread_attr_default, task, NULL );
         if( status ) return status;          if( status ) return errno;
   
         if( detach ) {          /* give thread a chance to complete */
                 /* give thread a chance to complete */          /* it should remain joinable and hence detachable */
                 /* it should remain joinable and hence detachable */          sleep( 1 );
                 sleep( 1 );  
   
                 status = pthread_detach( &t );          status = pthread_detach( &t );
                 if( status ) return status;          if( status ) return errno;
         }  
 #endif  #endif
   
 #ifdef HAVE_LINUX_THREADS  #ifdef HAVE_LINUX_THREADS
Line 13310  int main(argc, argv) Line 12902  int main(argc, argv)
 }  }
&nbs