Skip to content
Snippets Groups Projects
configure 291 KiB
Newer Older
  • Learn to ignore specific revisions
  •   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:3023: 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
    
    #line 3031 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3038: \"$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:3066: 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
    
    #line 3074 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3081: \"$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:3109: 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
    
    #line 3117 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3124: \"$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:3152: 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
    
    #line 3160 "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 socket();
    
    int main() {
    socket()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3171: \"$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:3199: 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
    
    #line 3207 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3214: \"$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:3248: 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
    
    #line 3253 "configure"
    
    #include "confdefs.h"
    /* System header to define __stub macros and hopefully few prototypes,
        which can conflict with char $ac_func(); below.  */
    #include <assert.h>
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char $ac_func();
    
    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:3276: \"$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:3302: 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
    
    #line 3310 "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 res_search();
    
    int main() {
    res_search()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3321: \"$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:3355: 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
    
    #line 3363 "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 res_search();
    
    int main() {
    res_search()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3374: \"$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:3411: 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
    
    #line 3419 "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 sigset();
    
    int main() {
    sigset()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3430: \"$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
    
    
    # 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:3462: 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
    
    #line 3470 "configure"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3477: \"$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:3506: 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
    
    #line 3514 "configure"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3521: \"$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:3550: 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
    
    #line 3558 "configure"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3565: \"$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:3597: 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
    
    #line 3605 "configure"
    
    #include "confdefs.h"
    
    int main() {
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3612: \"$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:3643: 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:3684: 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
    
    #line 3689 "configure"
    
    #include "confdefs.h"
    #include <$ac_hdr>
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3694: \"$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:3723: 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
    
    #line 3731 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3738: \"$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
      have_k5=yes
    else
      echo "$ac_t""no" 1>&6
    have_k5=no
    fi
    
    
    		if test $have_k5 = yes ; then
    			ol_with_kerberos=found
    			ol_link_kerberos=yes
    
    			KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
    
    
    			LIBS="$KRB_LIBS $LIBS"
    
    			echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
    
    echo "configure:3769: checking for des_debug in Kerberos libraries" >&5
    
    if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      
    								save_LIBS="$LIBS"
    				LIBS="$KRB_LIBS $LIBS"
    				cat > conftest.$ac_ext <<EOF
    
    #line 3777 "configure"
    
    #include "confdefs.h"
    
    #include <kerberosIV/krb.h>
    #include <kerberosIV/des.h>
    extern int des_debug;
    
    int main() {
    
    des_debug = 1;
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    
      rm -rf conftest*
      ol_cv_var_des_debug=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      ol_cv_var_des_debug=no
    fi
    rm -f conftest*
    								LIBS="$save_LIBS"
    			
    fi
    
    echo "$ac_t""$ol_cv_var_des_debug" 1>&6
    
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    			if test $ol_cv_var_des_debug = yes ; then
    
    				cat >> confdefs.h <<\EOF
    #define HAVE_DES_DEBUG 1
    EOF
    
    			fi
    
    			LIBS="$save_LIBS"
    
    if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
    	for ac_hdr in krb.h des.h
    do
    ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    
    echo "configure:3823: 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
    
    #line 3828 "configure"
    
    #include "confdefs.h"
    #include <$ac_hdr>
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3833: \"$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_krb_h = yes ; then
    		echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
    
    echo "configure:3862: checking for main in -lkrb" >&5
    
    ac_lib_var=`echo krb'_'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="-lkrb -ldes $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #line 3870 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3877: \"$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
      have_k4=yes
    else
      echo "$ac_t""no" 1>&6
    have_k4=no
    fi
    
    
    		if test $have_k4 = yes ; then
    			ol_with_kerberos=found
    			ol_link_kerberos=yes
    
    			KRB_LIBS="-lkrb -ldes"
    
    if test $ol_link_kerberos = yes ; then
    	cat >> confdefs.h <<\EOF
    #define HAVE_KERBEROS 1
    EOF
    
    fi
    
    if test $ol_with_tls != no ; then
    
    	
    	for ac_hdr in ssl.h
    do
    ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    
    echo "configure:3922: 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
    
    #line 3927 "configure"
    
    #include "confdefs.h"
    #include <$ac_hdr>
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3932: \"$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_ssl_h = yes ; then
    		echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
    
    echo "configure:3961: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
    
    ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | 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="-lssl -lcrypto $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #line 3969 "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 SSLeay_add_ssl_algorithms();
    
    int main() {
    SSLeay_add_ssl_algorithms()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3980: \"$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
      have_ssleay=yes