Skip to content
Snippets Groups Projects
configure 308 KiB
Newer Older
  • Learn to ignore specific revisions
  •   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:3031: 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:3059: \"$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:3078: 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:3093: \"$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
        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:3121: 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:3136: \"$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
        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 socket in -lnet""... $ac_c" 1>&6
    
    echo "configure:3164: checking for socket in -lnet" >&5
    
    ac_lib_var=`echo net'_'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="-lnet  $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:3183: \"$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
        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:3211: 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:3226: \"$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
        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:3254: 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:3269: \"$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
        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:3297: 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:3316: \"$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
        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:3344: 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:3359: \"$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
        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
    
    
    
    for ac_func in res_search
    do
    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    
    echo "configure:3393: checking for $ac_func" >&5
    
    if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); below.  */
    #include <assert.h>
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char $ac_func();
    
    int main() {
    
    /* The GNU C library defines this for functions which it implements
        to always fail with ENOSYS.  Some functions are actually named
        something starting with __ and the normal name is an alias.  */
    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    choke me
    #else
    $ac_func();
    #endif
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    
      rm -rf conftest*
      eval "ac_cv_func_$ac_func=yes"
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      eval "ac_cv_func_$ac_func=no"
    fi
    rm -f conftest*
    fi
    
    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
      echo "$ac_t""yes" 1>&6
        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_func 1
    EOF
     
    else
      echo "$ac_t""no" 1>&6
    fi
    done
    
    if test $ac_cv_func_res_search = "no" ; then 
    	echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
    
    echo "configure:3447: checking for res_search in -lbind" >&5
    
    ac_lib_var=`echo bind'_'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="-lbind  $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:3466: \"$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
        ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_lib 1
    EOF
    
      LIBS="-lbind $LIBS"
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    	if test "$ac_cv_lib_bind_res_search" = "yes" ; then
    
    		cat >> confdefs.h <<\EOF
    #define HAVE_RES_SEARCH 1
    EOF
    
    	else
    		echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
    
    echo "configure:3500: 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:3519: \"$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
        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
    
    
    		if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
    
    			cat >> confdefs.h <<\EOF
    #define HAVE_RES_SEARCH 1
    EOF
    
    		fi
    	fi
    fi
    
    echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
    
    echo "configure:3556: 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:3575: \"$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
        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
    
    
    
    echo $ac_n "checking for select""... $ac_c" 1>&6
    
    echo "configure:3604: checking for select" >&5
    
    if eval "test \"`echo '$''{'ac_cv_func_select'+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 select(); 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 select();
    
    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_select) || defined (__stub___select)
    choke me
    #else
    select();
    #endif
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    
      rm -rf conftest*
      eval "ac_cv_func_select=yes"
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      eval "ac_cv_func_select=no"
    fi
    rm -f conftest*
    fi
    
    if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      :
    else
      echo "$ac_t""no" 1>&6
    { echo "configure: error: select() required." 1>&2; exit 1; }
    fi
    
    
    echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
    
    echo "configure:3654: checking types of arguments for select()" >&5
    
     if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
       if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
        if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
         for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
         for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
          for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
           cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #ifdef HAVE_SYS_TYPES_H
    #include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    #include <sys/time.h>
    #endif
    #ifdef HAVE_SYS_SELECT_H
    #include <sys/select.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    #include <sys/socket.h>
    #endif
    extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
    int main() {
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      rm -rf conftest*
              ac_not_found=no ; break 3
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      ac_not_found=yes
    fi
    rm -f conftest*
          done
         done
        done
       
    fi
      
    fi
     
    fi
     if test "$ac_not_found" = yes; then
      ac_cv_func_select_arg1=int 
      ac_cv_func_select_arg234='int *' 
      ac_cv_func_select_arg5='struct timeval *'
     fi
     echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
     cat >> confdefs.h <<EOF
    #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
    EOF
    
     cat >> confdefs.h <<EOF
    #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
    EOF
    
     cat >> confdefs.h <<EOF
    #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
    EOF
    
    
    
    
    # ISODE tests
    ol_link_isode=no
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    if test $ol_enable_ldapd != no ; then
    
    	echo "configure: warning: ldapd support deprecated.  Manual intervention required." 1>&2
    
    
    		echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
    
    echo "configure:3732: 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:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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:3776: 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:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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:3820: 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:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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:3867: 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:3882: \"$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
    
      
    		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:3913: 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.
      ;;
    
      ?:/*)			 
      ac_cv_path_PEPSY="$PEPSY" # 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_PEPSY="$ac_dir/$ac_word"
          break
        fi
      done
      IFS="$ac_save_ifs"
      ;;
    esac
    fi
    PEPSY="$ac_cv_path_PEPSY"
    if test -n "$PEPSY"; then
      echo "$ac_t""$PEPSY" 1>&6
    
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    ol_link_kerberos=no
    
    
    if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
    	for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
    do
    ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    
    echo "configure:3954: checking for $ac_hdr" >&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 <$ac_hdr>
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3964: \"$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
        ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
      cat >> confdefs.h <<EOF
    #define $ac_tr_hdr 1
    EOF
     
    else
      echo "$ac_t""no" 1>&6
    fi
    done
    
    
    	if test $ac_cv_header_kerberosIV_krb_h = yes ; then
    		echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
    
    echo "configure:3993: checking for main in -lkrb4" >&5
    
    ac_lib_var=`echo krb4'_'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="-lkrb4 -lkrb5 -ldes425 $LIBS"
    cat > conftest.$ac_ext <<EOF