Skip to content
Snippets Groups Projects
configure 237 KiB
Newer Older
  • Learn to ignore specific revisions
  •   echo '#line 2003 "configure"' > conftest.$ac_ext
      if { (eval echo configure:2004: \"$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; }
    
    
    # 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:2037: 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.
      ;;
      *)
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
      for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$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:2069: 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.
      ;;
      *)
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
      for ac_dir in $PATH:/usr/ucb$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:2101: 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.
      ;;
      *)
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
      for ac_dir in $PATH:/usr/ucb$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 $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 how to run the C preprocessor""... $ac_c" 1>&6
    
    echo "configure:2145: 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:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out`
    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:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out`
    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
    
    
    echo $ac_n "checking for AIX""... $ac_c" 1>&6
    
    echo "configure:2207: 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:2231: 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:2253: 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:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out`
    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 ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    
    echo "configure:2305: 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
    
    #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:2358: \"$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:2389: 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
    
    #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:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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:2436: 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
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
        ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-lsocket $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    	echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
    
    echo "configure:2479: checking for main in -lnet" >&5
    
    ac_lib_var=`echo net'_'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="-lnet  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
        ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-lnet $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    	echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
    
    echo "configure:2522: checking for main in -lnsl_s" >&5
    
    ac_lib_var=`echo nsl_s'_'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="-lnsl_s  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
        ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-lnsl_s $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    	echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
    
    echo "configure:2565: checking for main in -lnsl" >&5
    
    ac_lib_var=`echo nsl'_'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="-lnsl  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
        ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-lnsl $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    	echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
    
    echo "configure:2608: checking for socket in -linet" >&5
    
    ac_lib_var=`echo inet'_'socket | 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="-linet  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #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 socket();
    
    int main() {
    socket()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
        ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-linet $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    	echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
    
    echo "configure:2655: checking for main in -lgen" >&5
    
    ac_lib_var=`echo gen'_'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="-lgen  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
        ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-lgen $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    fi
    
    
    
    echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
    
    echo "configure:2702: checking for res_search in -lresolv" >&5
    
    ac_lib_var=`echo resolv'_'res_search | 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="-lresolv  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #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 res_search();
    
    int main() {
    res_search()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
        ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-lresolv $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
    
    echo "configure:2750: checking for sigset in -lV3" >&5
    
    ac_lib_var=`echo V3'_'sigset | 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="-lV3  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #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 sigset();
    
    int main() {
    sigset()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
        ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-lV3 $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    # ISODE tests
    ol_link_isode=no
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    if test $ol_enable_ldapd != no ; then
    
    		echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
    
    echo "configure:2801: checking for main in -lxtpp" >&5
    
    ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    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="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    cat > conftest.$ac_ext <<EOF
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      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
      
    
    		ol_link_isode=yes
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    		cat >> confdefs.h <<\EOF
    
    #define HAVE_XTPP 1
    
    		LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    		
    else
      echo "$ac_t""no" 1>&6
    :
    fi
    
    
    	echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
    
    echo "configure:2845: checking for main in -ldsap" >&5
    
    ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    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="-ldsap -lisode $LIBS"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    cat > conftest.$ac_ext <<EOF
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      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
      
    
    		ol_link_isode=yes
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    		cat >> confdefs.h <<\EOF
    
    #define HAVE_DSAP 1
    
    		LDAPD_LIBS="$LDAPD_LIBS -ldsap"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    		
    else
      echo "$ac_t""no" 1>&6
    :
    fi
    
    
    	echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
    
    echo "configure:2889: checking for main in -lisode" >&5
    
    ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    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="-lisode  $LIBS"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    cat > conftest.$ac_ext <<EOF
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      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
      
    
    		ol_link_isode=yes
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    		cat >> confdefs.h <<\EOF
    
    #define HAVE_ISODE 1
    
    		LDAPD_LIBS="$LDAPD_LIBS -lisode"
    
    if test $ol_link_isode != no; then
    	echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
    
    echo "configure:2936: checking for main in -lpp" >&5
    
    ac_lib_var=`echo pp'_'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="-lpp  $LIBS"
    
    cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    
    int main() {
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
    
      
    		cat >> confdefs.h <<\EOF
    #define HAVE_PP 1
    
    		LDAPD_LIBS="-lpp $LDAPD_LIBS"
    		
    else
      echo "$ac_t""no" 1>&6
    :
    fi
    
    
    	# Extract the first word of "pepsy", so it can be a program name with args.
    set dummy pepsy; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:2982: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      case "$PEPSY" in
      /*)
      ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
      ;;
      *)
      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_word; then
          ac_cv_path_PEPSY="$ac_dir/$ac_word"
          break
        fi
      done
      IFS="$ac_save_ifs"
      ;;
    esac