Skip to content
Snippets Groups Projects
configure 291 KiB
Newer Older
  • Learn to ignore specific revisions
  • echo "configure:2002: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    
    echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    cross_compiling=$ac_cv_prog_cc_cross
    
    echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    
    echo "configure:2007: checking whether we are using GNU C" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.c <<EOF
    #ifdef __GNUC__
      yes;
    #endif
    EOF
    
    if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    
      ac_cv_prog_gcc=yes
    else
      ac_cv_prog_gcc=no
    fi
    fi
    
    echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    
    if test $ac_cv_prog_gcc = yes; then
      GCC=yes
    
    else
      GCC=
    fi
    
    ac_test_CFLAGS="${CFLAGS+set}"
    ac_save_CFLAGS="$CFLAGS"
    CFLAGS=
    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    
    echo "configure:2035: checking whether ${CC-cc} accepts -g" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      echo 'void f(){}' > conftest.c
    if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
      ac_cv_prog_cc_g=yes
    else
      ac_cv_prog_cc_g=no
    fi
    rm -f conftest*
    
    fi
    
    echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    
    if test "$ac_test_CFLAGS" = set; then
      CFLAGS="$ac_save_CFLAGS"
    elif test $ac_cv_prog_cc_g = yes; then
      if test "$GCC" = yes; then
    
        CFLAGS="-g -O2"
      else
    
      if test "$GCC" = yes; then
        CFLAGS="-O2"
      else
        CFLAGS=
      fi
    
    # Check whether --with-gnu-ld or --without-gnu-ld was given.
    if test "${with_gnu_ld+set}" = set; then
      withval="$with_gnu_ld"
      test "$withval" = no || with_gnu_ld=yes
    else
      with_gnu_ld=no
    fi
    
    
    ac_prog=ld
    if test "$ac_cv_prog_gcc" = yes; then
      # Check if gcc -print-prog-name=ld gives a path.
      echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
    
    echo "configure:2079: checking for ld used by GCC" >&5
    
      ac_prog=`($CC -print-prog-name=ld) 2>&5`
      case "$ac_prog" in
      # Accept absolute paths.
      /* | A-Za-z:\\*)
        test -z "$LD" && LD="$ac_prog"
        ;;
      "")
        # If it fails, then pretend we aren't using GCC.
        ac_prog=ld
        ;;
      *)
        # If it is relative, then search for the first ld in PATH.
        with_gnu_ld=unknown
        ;;
      esac
    elif test "$with_gnu_ld" = yes; then
      echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
    
    echo "configure:2097: checking for GNU ld" >&5
    
    else
      echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
    
    echo "configure:2100: checking for non-GNU ld" >&5
    
    fi
    if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -z "$LD"; then
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
      for ac_dir in $PATH; do
        test -z "$ac_dir" && ac_dir=.
        if test -f "$ac_dir/$ac_prog"; then
          ac_cv_path_LD="$ac_dir/$ac_prog"
          # Check to see if the program is GNU ld.  I'd rather use --version,
          # but apparently some GNU ld's only accept -v.
          # Break only if it was the GNU/non-GNU ld that we prefer.
          if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
    	test "$with_gnu_ld" != no && break
          else
            test "$with_gnu_ld" != yes && break
          fi
        fi
      done
      IFS="$ac_save_ifs"
    else
      ac_cv_path_LD="$LD" # Let the user override the test with a path.
    fi
    fi
    
    LD="$ac_cv_path_LD"
    if test -n "$LD"; then
      echo "$ac_t""$LD" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    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 "configure:2136: checking if the linker ($LD) is GNU ld" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      # I'd rather use --version here, but apparently some GNU ld's only accept -v.
    if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
      ac_cv_prog_gnu_ld=yes
    else
      ac_cv_prog_gnu_ld=no
    fi
    fi
    
    echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
    
    
    echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
    
    echo "configure:2152: checking for BSD-compatible nm" >&5
    
    if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      case "$NM" in
    /* | A-Za-z:\\*)
      ac_cv_path_NM="$NM" # Let the user override the test with a path.
      ;;
    *)
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
      for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/nm; then
          # Check to see if the nm accepts a BSD-compat flag.
          # Adding the `sed 1q' prevents false positives on HP-UX, which says:
          #   nm: unknown option "B" ignored
          if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
            ac_cv_path_NM="$ac_dir/nm -B"
          elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
            ac_cv_path_NM="$ac_dir/nm -p"
          else
            ac_cv_path_NM="$ac_dir/nm"
          fi
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
      ;;
    esac
    fi
    
    NM="$ac_cv_path_NM"
    echo "$ac_t""$NM" 1>&6
    
    
    echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    
    echo "configure:2189: checking whether ln -s works" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftestdata
    if ln -s X conftestdata 2>/dev/null
    then
      rm -f conftestdata
      ac_cv_prog_LN_S="ln -s"
    else
      ac_cv_prog_LN_S=ln
    fi
    fi
    LN_S="$ac_cv_prog_LN_S"
    if test "$ac_cv_prog_LN_S" = "ln -s"; then
      echo "$ac_t""yes" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    # Always use our own libtool.
    LIBTOOL='$(SHELL) $(top_builddir)/libtool'
    
    # Check for any special flags to pass to ltconfig.
    libtool_flags=
    test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
    test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
    test "$silent" = yes && libtool_flags="$libtool_flags --silent"
    test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
    test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
    
    # Some flags need to be propagated to the compiler or linker for good
    # libtool support.
    case "$host" in
    *-*-irix6*)
      # Find out which ABI we are using.
    
      echo '#line 2225 "configure"' > conftest.$ac_ext
      if { (eval echo configure:2226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
        case "`/usr/bin/file conftest.o`" in
        *32-bit*)
          LD="${LD-ld} -32"
          ;;
        *N32*)
          LD="${LD-ld} -n32"
          ;;
        *64-bit*)
          LD="${LD-ld} -64"
          ;;
        esac
      fi
      rm -rf conftest*
      ;;
    
    *-*-sco3.2v5*)
      # On SCO OpenServer 5, we need -belf to get full-featured binaries.
      CFLAGS="$CFLAGS -belf"
      ;;
    esac
    
    # Actually configure libtool.  ac_aux_dir is where install-sh is found.
    CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
    LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
    ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
    $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
    || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
    
    
    
    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:2261: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'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
    echo $ac_n "checking whether ln works""... $ac_c" 1>&6
    echo "configure:2292: checking whether ln works" >&5
    if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftest.src conftest.dst
    echo "conftest" > conftest.src
    if ln conftest.src conftest.dst 2>/dev/null
    then
      ol_cv_prog_LN_H="ln"
    else
      ol_cv_prog_LN_H="cp"
    fi
    rm -f conftest.src conftest.dst
    
    fi
    LN_H="$ol_cv_prog_LN_H"
    if test "$ol_cv_prog_LN_H" = "ln"; then
    	echo "$ac_t""yes" 1>&6
    else
    	echo "$ac_t""no" 1>&6
    fi
    
    
    echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    
    echo "configure:2315: checking whether ln -s works" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftestdata
    if ln -s X conftestdata 2>/dev/null
    then
      rm -f conftestdata
      ac_cv_prog_LN_S="ln -s"
    else
      ac_cv_prog_LN_S=ln
    fi
    fi
    LN_S="$ac_cv_prog_LN_S"
    if test "$ac_cv_prog_LN_S" = "ln -s"; then
      echo "$ac_t""yes" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    
    if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
    	LN_S="$LN_H"
    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:2343: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'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:2379: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'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:2415: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'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
    
    
    
    if test $ol_enable_perl = yes ; then
    	# Extract the first word of "perl", so it can be a program name with args.
    set dummy perl; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:2453: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      case "$PERLBIN" in
      /*)
      ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
      ;;
    
      ?:/*)			 
      ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
      ;;
    
      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_path_PERLBIN="$ac_dir/$ac_word"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
      ;;
    esac
    fi
    PERLBIN="$ac_cv_path_PERLBIN"
    if test -n "$PERLBIN"; then
      echo "$ac_t""$PERLBIN" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    	if test "no$PERLBIN" = "no" ; then
    		ol_enable_perl=no
    	fi
    
    	SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
    	SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
    fi
    
    
    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    
    echo "configure:2496: checking how to run the C preprocessor" >&5
    
    # On Suns, sometimes $CPP names a directory.
    if test -n "$CPP" && test -d "$CPP"; then
      CPP=
    fi
    if test -z "$CPP"; then
    if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
        # This must be in double quotes, not single quotes, because CPP may get
      # substituted into the Makefile and "${CC-cc}" will confuse make.
      CPP="${CC-cc} -E"
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp.
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    
    if test -z "$ac_err"; then
      :
    else
      echo "$ac_err" >&5
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      CPP="${CC-cc} -E -traditional-cpp"
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    if test -z "$ac_err"; then
      :
    else
      echo "$ac_err" >&5
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      CPP="${CC-cc} -nologo -E"
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    
    if test -z "$ac_err"; then
      :
    else
      echo "$ac_err" >&5
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      CPP=/lib/cpp
    fi
    rm -f conftest*
    fi
    
    rm -f conftest*
      ac_cv_prog_CPP="$CPP"
    fi
      CPP="$ac_cv_prog_CPP"
    else
      ac_cv_prog_CPP="$CPP"
    fi
    echo "$ac_t""$CPP" 1>&6
    
    
    
    if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
    	echo "configure: warning: cross compiling....  some functionality will be removed." 1>&2
    
    elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
    	echo "configure: warning: programs compiled here do run here..." 1>&2
    	{ echo "configure: error:   if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
    
    elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
    	echo "configure: warning: programs compiled here do not run here..." 1>&2
    	{ echo "configure: error:   if cross compiling,  add --enable-x-compile." 1>&2; exit 1; }
    fi
    
    
    echo $ac_n "checking for AIX""... $ac_c" 1>&6
    
    echo "configure:2589: checking for AIX" >&5
    
    cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #ifdef _AIX
      yes
    #endif
    
    EOF
    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
      egrep "yes" >/dev/null 2>&1; then
      rm -rf conftest*
      echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
    #define _ALL_SOURCE 1
    EOF
    
    else
      rm -rf conftest*
      echo "$ac_t""no" 1>&6
    fi
    rm -f conftest*
    
    
    echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    
    echo "configure:2613: checking for POSIXized ISC" >&5
    
    if test -d /etc/conf/kconfig.d &&
      grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    then
      echo "$ac_t""yes" 1>&6
      ISC=yes # If later tests want to check for ISC.
      cat >> confdefs.h <<\EOF
    #define _POSIX_SOURCE 1
    EOF
    
      if test "$GCC" = yes; then
        CC="$CC -posix"
      else
        CC="$CC -Xp"
      fi
    else
      echo "$ac_t""no" 1>&6
      ISC=
    fi
    
    ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    
    echo "configure:2635: checking for minix/config.h" >&5
    
    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #include <minix/config.h>
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    
    if test -z "$ac_err"; then
      rm -rf conftest*
      eval "ac_cv_header_$ac_safe=yes"
    else
      echo "$ac_err" >&5
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      eval "ac_cv_header_$ac_safe=no"
    fi
    rm -f conftest*
    fi
    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      MINIX=yes
    else
      echo "$ac_t""no" 1>&6
    MINIX=
    fi
    
    if test "$MINIX" = yes; then
      cat >> confdefs.h <<\EOF
    #define _POSIX_SOURCE 1
    EOF
    
      cat >> confdefs.h <<\EOF
    #define _POSIX_1_SOURCE 2
    EOF
    
      cat >> confdefs.h <<\EOF
    #define _MINIX 1
    EOF
    
    fi
    
    
    
    echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
    
    echo "configure:2684: checking for be_app in -lbe" >&5
    
    ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      ac_save_LIBS="$LIBS"
    
    LIBS="-lbe -lroot $LIBS"
    
    #include "confdefs.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 be_app();
    
    int main() {
    be_app()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2703: \"$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
      LIBS="$LIBS -lbe -lroot"
    else
      echo "$ac_t""no" 1>&6
    
    echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
    
    echo "configure:2726: checking for Cygwin environment" >&5
    
    if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #line 2731 "configure"
    
    #include "confdefs.h"
    
    int main() {
    
    #ifndef __CYGWIN__
    #define __CYGWIN__ __CYGWIN32__
    #endif
    return __CYGWIN__;
    ; return 0; }
    EOF
    
    if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      rm -rf conftest*
      ac_cv_cygwin=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      ac_cv_cygwin=no
    fi
    rm -f conftest*
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_cygwin" 1>&6
    CYGWIN=
    test "$ac_cv_cygwin" = yes && CYGWIN=yes
    echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
    
    echo "configure:2759: checking for mingw32 environment" >&5
    
    if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #line 2764 "configure"
    
    #include "confdefs.h"
    
    int main() {
    return __MINGW32__;
    ; return 0; }
    EOF
    
    if { (eval echo configure:2771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      rm -rf conftest*
      ac_cv_mingw32=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      ac_cv_mingw32=no
    fi
    rm -f conftest*
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_mingw32" 1>&6
    MINGW32=
    test "$ac_cv_mingw32" = yes && MINGW32=yes
    
    
    echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    
    echo "configure:2790: checking for executable suffix" >&5
    
    if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
      ac_cv_exeext=.exe
    else
      rm -f conftest*
      echo 'int main () { return 0; }' > conftest.$ac_ext
      ac_cv_exeext=
    
      if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    
        for file in conftest.*; do
          case $file in
          *.c | *.o | *.obj) ;;
          *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
          esac
        done
      else
        { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
      fi
      rm -f conftest*
      test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
    fi
    fi
    
    EXEEXT=""
    test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
    echo "$ac_t""${ac_cv_exeext}" 1>&6
    ac_exeext=$EXEEXT
    
    echo $ac_n "checking for object suffix""... $ac_c" 1>&6
    
    echo "configure:2821: checking for object suffix" >&5
    
    if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftest*
    echo 'int i = 1;' > conftest.$ac_ext
    
    if { (eval echo configure:2827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      for ac_file in conftest.*; do
        case $ac_file in
        *.c) ;;
        *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
        esac
      done
    else
      { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
    fi
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_objext" 1>&6
    OBJEXT=$ac_cv_objext
    ac_objext=$ac_cv_objext
    
    
    
    
    echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    
    echo "configure:2849: checking for ${CC-cc} option to accept ANSI C" >&5
    
    if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      am_cv_prog_cc_stdc=no
    ac_save_CC="$CC"
    # Don't try gcc -ansi; that turns off useful extensions and
    # breaks some systems' header files.
    # AIX			-qlanglvl=ansi
    # Ultrix and OSF/1	-std1
    # HP-UX			-Aa -D_HPUX_SOURCE
    # SVR4			-Xc -D__EXTENSIONS__
    for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    do
      CC="$ac_save_CC $ac_arg"
      cat > conftest.$ac_ext <<EOF
    
    #line 2865 "configure"
    
    #include "confdefs.h"
    #include <stdarg.h>
    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    struct buf { int x; };
    FILE * (*rcsopen) (struct buf *, struct stat *, int);
    static char *e (p, i)
         char **p;
         int i;
    {
      return p[i];
    }
    static char *f (char * (*g) (char **, int), char **p, ...)
    {
      char *s;
      va_list v;
      va_start (v,p);
      s = g (p, va_arg (v,int));
      va_end (v);
      return s;
    }
    int test (int i, double x);
    struct s1 {int (*f) (int a);};
    struct s2 {int (*f) (double a);};
    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    int argc;
    char **argv;
    
    int main() {
    
    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      rm -rf conftest*
      am_cv_prog_cc_stdc="$ac_arg"; break
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
    fi
    rm -f conftest*
    done
    CC="$ac_save_CC"
    
    fi
    
    if test -z "$am_cv_prog_cc_stdc"; then
      echo "$ac_t""none needed" 1>&6
    else
      echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
    fi
    case "x$am_cv_prog_cc_stdc" in
      x|xno) ;;
      *) CC="$CC $am_cv_prog_cc_stdc" ;;
    esac
    
    if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
    	{ echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
    fi
    
    
    
    
    
    echo $ac_n "checking for socket""... $ac_c" 1>&6
    
    echo "configure:2933: checking for socket" >&5
    
    if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #line 2938 "configure"
    
    #include "confdefs.h"
    /* System header to define __stub macros and hopefully few prototypes,
        which can conflict with char socket(); 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 socket();
    
    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_socket) || defined (__stub___socket)
    choke me
    #else
    socket();
    #endif
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    
      rm -rf conftest*
      eval "ac_cv_func_socket=yes"
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      eval "ac_cv_func_socket=no"
    fi
    rm -f conftest*
    fi
    
    if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
      echo "$ac_t""yes" 1>&6
    
    else
      echo "$ac_t""no" 1>&6
    	
    	echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
    
    echo "configure:2980: checking for main in -lsocket" >&5
    
    ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      ac_save_LIBS="$LIBS"
    LIBS="-lsocket  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #line 2988 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2995: \"$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*