Skip to content
Snippets Groups Projects
configure 319 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Extract the first word of "ranlib", so it can be a program name with args.
    set dummy ranlib; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:2012: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$RANLIB"; then
      ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    fi
    fi
    RANLIB="$ac_cv_prog_RANLIB"
    if test -n "$RANLIB"; then
      echo "$ac_t""$RANLIB" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    # Extract the first word of "gcc", so it can be a program name with args.
    set dummy gcc; ac_word=$2
    
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:2042: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
    
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # 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
    
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    
    fi
    CC="$ac_cv_prog_CC"
    if test -n "$CC"; then
      echo "$ac_t""$CC" 1>&6
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    if test -z "$CC"; then
      # Extract the first word of "cc", so it can be a program name with args.
    set dummy cc; ac_word=$2
    
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:2072: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
    
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # 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
          if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
            ac_prog_rejected=yes
    	continue
          fi
          ac_cv_prog_CC="cc"
          break
        fi
      done
      IFS="$ac_save_ifs"
    if test $ac_prog_rejected = yes; then
      # We found a bogon in the path, so make sure we never use it.
      set dummy $ac_cv_prog_CC
      shift
      if test $# -gt 0; then
        # We chose a different compiler from the bogus one.
        # However, it has the same basename, so the bogon will be chosen
        # first if we set CC to just the basename; use the full file name.
        shift
        set dummy "$ac_dir/$ac_word" "$@"
        shift
        ac_cv_prog_CC="$@"
      fi
    fi
    fi
    fi
    CC="$ac_cv_prog_CC"
    if test -n "$CC"; then
      echo "$ac_t""$CC" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
      if test -z "$CC"; then
        case "`uname -s`" in
        *win32* | *WIN32*)
          # Extract the first word of "cl", so it can be a program name with args.
    set dummy cl; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:2123: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # 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_CC="cl"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    CC="$ac_cv_prog_CC"
    if test -n "$CC"; then
      echo "$ac_t""$CC" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
     ;;
        esac
      fi
    
      test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    fi
    
    echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    
    echo "configure:2155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    
    
    ac_ext=c
    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    
    ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    
    cross_compiling=$ac_cv_prog_cc_cross
    
    
    #line 2166 "configure"
    
    #include "confdefs.h"
    
    main(){return(0);}
    EOF
    
    if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    
      ac_cv_prog_cc_works=yes
      # If we can't run a trivial program, we are probably using a cross compiler.
      if (./conftest; exit) 2>/dev/null; then
        ac_cv_prog_cc_cross=no
      else
        ac_cv_prog_cc_cross=yes
      fi
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      ac_cv_prog_cc_works=no
    fi
    rm -fr conftest*
    
    ac_ext=c
    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    cross_compiling=$ac_cv_prog_cc_cross
    
    
    echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    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; }
    fi
    echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    
    echo "configure:2197: 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:2202: 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:2211: \"$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:2230: 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:2274: 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:2292: checking for GNU ld" >&5
    
    else
      echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
    
    echo "configure:2295: 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:2331: 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:2347: 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:2384: 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 2420 "configure"' > conftest.$ac_ext
      if { (eval echo configure:2421: \"$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:2456: 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:2487: 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:2510: 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:2538: 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:2574: 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:2610: 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
    
    
    
    ol_link_modules=no
    if test $ol_enable_modules != no ; then
    	# Extract the first word of "glib-config", so it can be a program name with args.
    set dummy glib-config; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:2649: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      case "$GLIBCONFIG" in
      /*)
      ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
      ;;
      ?:/*)			 
      ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # 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_GLIBCONFIG="$ac_dir/$ac_word"
          break
        fi
      done
      IFS="$ac_save_ifs"
      ;;
    esac
    fi
    GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
    if test -n "$GLIBCONFIG"; then
      echo "$ac_t""$GLIBCONFIG" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    	if test "no$GLIBCONFIG" = "no" ; then
    		if test $ol_enable_modules = yes ; then
    			{ echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
    		fi
    
    	else
    		SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
    		SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
    		SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
    
    				ol_link_modules=yes
    	fi
    fi
    
    ol_link_perl=no
    if test $ol_enable_perl != no ; 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:2701: 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
    
    		if test $ol_enable_perl = yes ; then
    			{ echo "configure: error: could not locate perl" 1>&2; exit 1; }
    		fi
    
    	else
    		SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
    		SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
    
    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    
    echo "configure:2749: 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
    
    #line 2764 "configure"
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:2770: \"$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
    
    #line 2781 "configure"
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:2787: \"$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
    
    #line 2798 "configure"
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:2804: \"$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:2842: checking for AIX" >&5
    
    cat > conftest.$ac_ext <<EOF
    
    #line 2844 "configure"
    
    #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:2866: 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:2888: 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
    
    #line 2893 "configure"
    
    #include "confdefs.h"
    #include <minix/config.h>
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:2898: \"$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:2937: 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 -lnet $LIBS"
    
    #line 2945 "configure"
    
    #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:2956: \"$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 -lnet"
    
    echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
    
    echo "configure:2979: 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 2984 "configure"
    
    #include "confdefs.h"
    
    int main() {
    
    #ifndef __CYGWIN__
    #define __CYGWIN__ __CYGWIN32__
    #endif
    return __CYGWIN__;
    ; return 0; }
    EOF
    
    if { (eval echo configure:2995: \"$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*