Skip to content
Snippets Groups Projects
configure 319 KiB
Newer Older
  • Learn to ignore specific revisions
  •   ac_cv_cygwin=no
    fi
    rm -f conftest*
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_cygwin" 1>&6
    CYGWIN=
    test "$ac_cv_cygwin" = yes && CYGWIN=yes
    echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
    
    echo "configure:3012: checking for mingw32 environment" >&5
    
    if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #line 3017 "configure"
    
    #include "confdefs.h"
    
    int main() {
    return __MINGW32__;
    ; return 0; }
    EOF
    
    if { (eval echo configure:3024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      rm -rf conftest*
      ac_cv_mingw32=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      ac_cv_mingw32=no
    fi
    rm -f conftest*
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_mingw32" 1>&6
    MINGW32=
    test "$ac_cv_mingw32" = yes && MINGW32=yes
    
    
    echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    
    echo "configure:3043: checking for executable suffix" >&5
    
    if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
      ac_cv_exeext=.exe
    else
      rm -f conftest*
      echo 'int main () { return 0; }' > conftest.$ac_ext
      ac_cv_exeext=
    
      if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    
        for file in conftest.*; do
          case $file in
          *.c | *.o | *.obj) ;;
          *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
          esac
        done
      else
        { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
      fi
      rm -f conftest*
      test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
    fi
    fi
    
    EXEEXT=""
    test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
    echo "$ac_t""${ac_cv_exeext}" 1>&6
    ac_exeext=$EXEEXT
    
    echo $ac_n "checking for object suffix""... $ac_c" 1>&6
    
    echo "configure:3074: checking for object suffix" >&5
    
    if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftest*
    echo 'int i = 1;' > conftest.$ac_ext
    
    if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      for ac_file in conftest.*; do
        case $ac_file in
        *.c) ;;
        *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
        esac
      done
    else
      { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
    fi
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_objext" 1>&6
    OBJEXT=$ac_cv_objext
    ac_objext=$ac_cv_objext
    
    
    
    cat >> confdefs.h <<EOF
    #define EXEEXT "${EXEEXT}"
    EOF
    
    
    
    
    echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    
    echo "configure:3107: checking for ${CC-cc} option to accept ANSI C" >&5
    
    if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      am_cv_prog_cc_stdc=no
    ac_save_CC="$CC"
    # Don't try gcc -ansi; that turns off useful extensions and
    # breaks some systems' header files.
    # AIX			-qlanglvl=ansi
    # Ultrix and OSF/1	-std1
    # HP-UX			-Aa -D_HPUX_SOURCE
    # SVR4			-Xc -D__EXTENSIONS__
    for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    do
      CC="$ac_save_CC $ac_arg"
      cat > conftest.$ac_ext <<EOF
    
    #line 3123 "configure"
    
    #include "confdefs.h"
    #include <stdarg.h>
    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    struct buf { int x; };
    FILE * (*rcsopen) (struct buf *, struct stat *, int);
    static char *e (p, i)
         char **p;
         int i;
    {
      return p[i];
    }
    static char *f (char * (*g) (char **, int), char **p, ...)
    {
      char *s;
      va_list v;
      va_start (v,p);
      s = g (p, va_arg (v,int));
      va_end (v);
      return s;
    }
    int test (int i, double x);
    struct s1 {int (*f) (int a);};
    struct s2 {int (*f) (double a);};
    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    int argc;
    char **argv;
    
    int main() {
    
    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3160: \"$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
    
    
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    # test for make depend flag
    OL_MKDEP=
    OL_MKDEP_FLAGS=
    if test -z "${MKDEP}"; then
    	OL_MKDEP="${CC-cc}"
    	if test -z "${MKDEP_FLAGS}"; then
    		echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
    
    echo "configure:3195: checking for ${OL_MKDEP} depend flag" >&5
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      
    			ol_cv_mkdep=no
    			for flag in "-M" "-xM"; do
    				cat > conftest.c <<EOF
    
    				if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    					| egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
    				then
    
    					if test ! -f conftest."${ac_object}" ; then
    						ol_cv_mkdep=$flag
    						OL_MKDEP_FLAGS="$flag"
    						break
    					fi
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    				fi
    			done
    			rm -f conftest*
    		
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "$ac_t""$ol_cv_mkdep" 1>&6
    	else
    		cc_cv_mkdep=yes
    		OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
    	fi
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    	cc_cv_mkdep=yes
    	OL_MKDEP="${MKDEP}"
    	OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    if test "${ol_cv_mkdep}" = no ; then
    	# this will soon become an error
    	echo "configure: warning: do not know how to generate dependencies" 1>&2
    fi
    
    echo $ac_n "checking for socket""... $ac_c" 1>&6
    
    echo "configure:3240: checking for socket" >&5
    
    if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #line 3245 "configure"
    
    #include "confdefs.h"
    /* System header to define __stub macros and hopefully few prototypes,
        which can conflict with char socket(); below.  */
    #include <assert.h>
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char socket();
    
    int main() {
    
    /* The GNU C library defines this for functions which it implements
        to always fail with ENOSYS.  Some functions are actually named
        something starting with __ and the normal name is an alias.  */
    #if defined (__stub_socket) || defined (__stub___socket)
    choke me
    #else
    socket();
    #endif
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3268: \"$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:3287: checking for main in -lsocket" >&5
    
    ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      ac_save_LIBS="$LIBS"
    LIBS="-lsocket  $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #line 3295 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3302: \"$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:3330: 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 3338 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3345: \"$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:3373: 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
    
    #line 3381 "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:3392: \"$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:3420: 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 3428 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3435: \"$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:3463: 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 3471 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3478: \"$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:3506: 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 3514 "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:3525: \"$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:3553: 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 3561 "configure"
    
    #include "confdefs.h"
    
    int main() {
    main()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3568: \"$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:3602: 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 3607 "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:3630: \"$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:3656: 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 3664 "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:3675: \"$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:3709: 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 3717 "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:3728: \"$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:3765: 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 3773 "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:3784: \"$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
    
    
    
    for ac_hdr in regex.h 
    do
    ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    
    echo "configure:3816: 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 3821 "configure"
    
    #include "confdefs.h"
    #include <$ac_hdr>
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3826: \"$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_regex_h" != yes ; then
    
    	{ echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
    fi
    echo $ac_n "checking for regfree""... $ac_c" 1>&6
    
    echo "configure:3856: checking for regfree" >&5
    
    if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #line 3861 "configure"
    
    #include "confdefs.h"
    /* System header to define __stub macros and hopefully few prototypes,
        which can conflict with char regfree(); 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 regfree();
    
    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_regfree) || defined (__stub___regfree)
    choke me
    #else
    regfree();
    #endif
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    
      rm -rf conftest*
      eval "ac_cv_func_regfree=yes"
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      eval "ac_cv_func_regfree=no"
    fi
    rm -f conftest*
    fi
    
    if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      :
    else
      echo "$ac_t""no" 1>&6
    { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
    
    
    echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
    
    echo "configure:3907: checking for compatible POSIX regex" >&5
    
    if eval "test \"`echo '$''{'ol_cv_c_posix_regex'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      
    	if test "$cross_compiling" = yes; then
      ol_cv_c_posix_regex=cross
    else
      cat > conftest.$ac_ext <<EOF
    
    #line 3916 "configure"
    
    #include "confdefs.h"
    
    #include <sys/types.h>
    #include <regex.h>
    static char *pattern, *string;
    main()
    {
    	int rc;
    	regex_t re;
    
    	pattern = "^A";
    
    	if(regcomp(&re, pattern, 0)) {
    		return -1;
    	}
    	
    	string = "ALL MATCH";
    	
    	rc = regexec(&re, string, 0, (void*)0, 0);
    
    	regfree(&re);
    
    	return rc;
    }
    EOF
    
    if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    
    then
      ol_cv_c_posix_regex=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -fr conftest*
      ol_cv_c_posix_regex=no
    fi
    rm -fr conftest*
    fi
    
    fi
    
    echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
    
    if test "$ol_cv_c_posix_regex" = no ; then
    	{ echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
    fi
    
    
    echo $ac_n "checking for select""... $ac_c" 1>&6
    
    echo "configure:3963: 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
    
    #line 3968 "configure"
    
    #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:3991: \"$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