Skip to content
Snippets Groups Projects
configure 593 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Do some error checking and defaulting for the host and target type.
    # The inputs are:
    #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
    #
    # The rules are:
    # 1. You are not allowed to specify --host, --target, and nonopt at the
    #    same time.
    # 2. Host defaults to nonopt.
    # 3. If nonopt is not specified, then host defaults to the current host,
    #    as determined by config.guess.
    # 4. Target and build default to nonopt.
    # 5. If nonopt is not specified, then target and build default to host.
    
    # The aliases save the names the user supplied, while $host etc.
    # will get canonicalized.
    case $host---$target---$nonopt in
    NONE---*---* | *---NONE---* | *---*---NONE) ;;
    *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
    esac
    
    test "$host_alias" != "$target_alias" &&
      test "$program_prefix$program_suffix$program_transform_name" = \
        NONENONEs,x,x, &&
      program_prefix=${target_alias}-
    
    
    
    # Find a good install program.  We prefer a C program (faster),
    # so one script is as good as another.  But avoid the broken or
    # incompatible versions:
    # SysV /etc/install, /usr/sbin/install
    # SunOS /usr/etc/install
    # IRIX /sbin/install
    # AIX /bin/install
    
    # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    
    # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    # ./install, which can be erroneously created by make from ./install.sh.
    echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1041: checking for a BSD compatible install" >&5
    
    if eval "test \"\${ac_cv_path_install+set}\" = set"; then
    
        IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
    
      for ac_dir in $PATH; do
        # Account for people who put trailing slashes in PATH elements.
        case "$ac_dir/" in
        /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
        *)
          # OSF1 and SCO ODT 3.0 have their own names for install.
    
          # Don't use installbsd from OSF since it installs stuff as root
          # by default.
          for ac_prog in ginstall scoinst install; do
    
            if test -f $ac_dir/$ac_prog; then
    	  if test $ac_prog = install &&
                grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    	    # AIX install.  It has an incompatible calling convention.
    	    :
    
    	  elif test $ac_prog = install &&
    	    grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
    	    # program-specific install script used by HP pwplus--don't use.
    	    :
    
    	  else
    	    ac_cv_path_install="$ac_dir/$ac_prog -c"
    	    break 2
    	  fi
    	fi
          done
          ;;
        esac
      done
      IFS="$ac_save_IFS"
    
    fi
      if test "${ac_cv_path_install+set}" = set; then
        INSTALL="$ac_cv_path_install"
      else
        # As a last resort, use the slow shell script.  We don't cache a
        # path for INSTALL within a source directory, because that will
        # break other packages using the cache if that directory is
        # removed, or if the path is relative.
        INSTALL="$ac_install_sh"
      fi
    fi
    echo "$ac_t""$INSTALL" 1>&6
    
    # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    # It thinks the first close brace ends the variable substitution.
    test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    
    
    test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    
    test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    
    
    echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1098: checking whether build environment is sane" >&5
    
    # Just in case
    sleep 1
    echo timestamp > conftestfile
    # Do `set' in a subshell so we don't clobber the current shell's
    # arguments.  Must try -L first in case configure is actually a
    # symlink; some systems play weird games with the mod time of symlinks
    # (eg FreeBSD returns the mod time of the symlink's containing
    # directory).
    if (
       set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
       if test "$*" = "X"; then
          # -L didn't work.
          set X `ls -t $srcdir/configure conftestfile`
       fi
       if test "$*" != "X $srcdir/configure conftestfile" \
          && test "$*" != "X conftestfile $srcdir/configure"; then
    
          # If neither matched, then we have a broken ls.  This can happen
          # if, for instance, CONFIG_SHELL is bash and it inherits a
          # broken ls alias from the environment.  This has actually
          # happened.  Such a system could not be considered "sane".
          { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
    alias in your environment" 1>&2; exit 1; }
       fi
    
       test "$2" = conftestfile
       )
    then
       # Ok.
       :
    else
       { echo "configure: error: newly created file is older than distributed files!
    Check your system clock" 1>&2; exit 1; }
    fi
    rm -f conftest*
    echo "$ac_t""yes" 1>&6
    if test "$program_transform_name" = s,x,x,; then
      program_transform_name=
    else
      # Double any \ or $.  echo might interpret backslashes.
      cat <<\EOF_SED > conftestsed
    s,\\,\\\\,g; s,\$,$$,g
    EOF_SED
      program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
      rm -f conftestsed
    fi
    test "$program_prefix" != NONE &&
    
      program_transform_name="s,^,${program_prefix},;$program_transform_name"
    
    # Use a double $ so make ignores it.
    test "$program_suffix" != NONE &&
    
      program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
    
    
    # sed with no file args requires a program.
    test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    
    
    for ac_prog in mawk gawk nawk awk
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    do
    # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1159: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$AWK"; then
      ac_cv_prog_AWK="$AWK" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_AWK="$ac_prog"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    AWK="$ac_cv_prog_AWK"
    if test -n "$AWK"; then
      echo "$ac_t""$AWK" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    test -n "$AWK" && break
    done
    
    
    echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1189: checking whether ${MAKE-make} sets \${MAKE}" >&5
    
    set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    
    if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftestmake <<\EOF
    all:
    	@echo 'ac_maketemp="${MAKE}"'
    EOF
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
    if test -n "$ac_maketemp"; then
      eval ac_cv_prog_make_${ac_make}_set=yes
    else
      eval ac_cv_prog_make_${ac_make}_set=no
    fi
    rm -f conftestmake
    fi
    if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      SET_MAKE=
    else
      echo "$ac_t""no" 1>&6
      SET_MAKE="MAKE=${MAKE-make}"
    fi
    
    
    
    PACKAGE=$OL_PACKAGE
    
    
    if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
      { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
    fi
    
    
    
    missing_dir=`cd $ac_aux_dir && pwd`
    echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1229: checking for working aclocal" >&5
    
    # Run test in a subshell; some versions of sh will print an error if
    # an executable is not found, even if stderr is redirected.
    # Redirect stdin to placate older versions of autoconf.  Sigh.
    if (aclocal --version) < /dev/null > /dev/null 2>&1; then
       ACLOCAL=aclocal
       echo "$ac_t""found" 1>&6
    else
       ACLOCAL="$missing_dir/missing aclocal"
       echo "$ac_t""missing" 1>&6
    fi
    
    echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1242: checking for working autoconf" >&5
    
    # Run test in a subshell; some versions of sh will print an error if
    # an executable is not found, even if stderr is redirected.
    # Redirect stdin to placate older versions of autoconf.  Sigh.
    if (autoconf --version) < /dev/null > /dev/null 2>&1; then
       AUTOCONF=autoconf
       echo "$ac_t""found" 1>&6
    else
       AUTOCONF="$missing_dir/missing autoconf"
       echo "$ac_t""missing" 1>&6
    fi
    
    echo $ac_n "checking for working automake""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1255: checking for working automake" >&5
    
    # Run test in a subshell; some versions of sh will print an error if
    # an executable is not found, even if stderr is redirected.
    # Redirect stdin to placate older versions of autoconf.  Sigh.
    if (automake --version) < /dev/null > /dev/null 2>&1; then
       AUTOMAKE=automake
       echo "$ac_t""found" 1>&6
    else
       AUTOMAKE="$missing_dir/missing automake"
       echo "$ac_t""missing" 1>&6
    fi
    
    echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1268: checking for working autoheader" >&5
    
    # Run test in a subshell; some versions of sh will print an error if
    # an executable is not found, even if stderr is redirected.
    # Redirect stdin to placate older versions of autoconf.  Sigh.
    if (autoheader --version) < /dev/null > /dev/null 2>&1; then
       AUTOHEADER=autoheader
       echo "$ac_t""found" 1>&6
    else
       AUTOHEADER="$missing_dir/missing autoheader"
       echo "$ac_t""missing" 1>&6
    fi
    
    echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1281: checking for working makeinfo" >&5
    
    # Run test in a subshell; some versions of sh will print an error if
    # an executable is not found, even if stderr is redirected.
    # Redirect stdin to placate older versions of autoconf.  Sigh.
    if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
       MAKEINFO=makeinfo
       echo "$ac_t""found" 1>&6
    else
       MAKEINFO="$missing_dir/missing makeinfo"
       echo "$ac_t""missing" 1>&6
    fi
    
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    install_sh="$missing_dir/install-sh"
    test -f "$install_sh" || install_sh="$missing_dir/install.sh"
    
    for ac_prog in gnutar gtar tar
    do
    # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1301: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$AMTAR"; then
      ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_AMTAR="$ac_prog"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    AMTAR="$ac_cv_prog_AMTAR"
    if test -n "$AMTAR"; then
      echo "$ac_t""$AMTAR" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    test -n "$AMTAR" && break
    done
    
    
    AMTARFLAGS=
    if test -n "$AMTAR"; then
      if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
            AMTARFLAGS=o
      fi
    fi
    
    
    cat >> confdefs.h <<EOF
    #define OPENLDAP_PACKAGE "$PACKAGE"
    EOF
    
    cat >> confdefs.h <<EOF
    #define OPENLDAP_VERSION "$VERSION"
    EOF
    
    
    cat >> confdefs.h <<EOF
    #define LDAP_VENDOR_VERSION $OL_API_INC
    EOF
    
    cat >> confdefs.h <<EOF
    #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
    EOF
    
    cat >> confdefs.h <<EOF
    #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
    EOF
    
    cat >> confdefs.h <<EOF
    #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
    EOF
    
    
    OPENLDAP_LIBVERSION=$OL_API_LIB
    
    
    
    Julio Sánchez Fernández's avatar
     
    Julio Sánchez Fernández committed
    
    
    echo $ac_n "checking configure arguments""... $ac_c" 1>&6
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    echo "configure:1369: checking configure arguments" >&5
    
    ldap_subdir="/openldap"
    
    # Check whether --with-subdir or --without-subdir was given.
    if test "${with_subdir+set}" = set; then
      withval="$with_subdir"
    
      case "$withval" in
    	no) ldap_subdir=""
    		;;
    	yes)
    		;;
    	/*|\\*)
    
    		;;
    	*)
    		ldap_subdir="/$withval"
    		;;
    esac
    
    # OpenLDAP --enable-debug
    	# Check whether --enable-debug or --disable-debug was given.
    if test "${enable_debug+set}" = set; then
      enableval="$enable_debug"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
    	fi
    	ol_enable_debug="$ol_arg"
    
    else
      	ol_enable_debug="yes"
    fi
    # end --enable-debug
    
    # OpenLDAP --enable-syslog
    	# Check whether --enable-syslog or --disable-syslog was given.
    if test "${enable_syslog+set}" = set; then
      enableval="$enable_syslog"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
    	fi
    	ol_enable_syslog="$ol_arg"
    
    else
      	ol_enable_syslog="auto"
    fi
    # end --enable-syslog
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    # OpenLDAP --enable-proctitle
    	# Check whether --enable-proctitle or --disable-proctitle was given.
    if test "${enable_proctitle+set}" = set; then
      enableval="$enable_proctitle"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
    	fi
    	ol_enable_proctitle="$ol_arg"
    
    else
      	ol_enable_proctitle="yes"
    fi
    # end --enable-proctitle
    
    # OpenLDAP --enable-cache
    	# Check whether --enable-cache or --disable-cache was given.
    if test "${enable_cache+set}" = set; then
      enableval="$enable_cache"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
    	fi
    	ol_enable_cache="$ol_arg"
    
    else
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      	ol_enable_cache="no"
    
    fi
    # end --enable-cache
    # OpenLDAP --enable-referrals
    	# Check whether --enable-referrals or --disable-referrals was given.
    if test "${enable_referrals+set}" = set; then
      enableval="$enable_referrals"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
    	fi
    	ol_enable_referrals="$ol_arg"
    
    else
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      	ol_enable_referrals="no"
    
    fi
    # end --enable-referrals
    
    # OpenLDAP --enable-kbind
    	# Check whether --enable-kbind or --disable-kbind was given.
    if test "${enable_kbind+set}" = set; then
      enableval="$enable_kbind"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
    	fi
    	ol_enable_kbind="$ol_arg"
    
    else
    
    # OpenLDAP --enable-ipv6
    	# Check whether --enable-ipv6 or --disable-ipv6 was given.
    if test "${enable_ipv6+set}" = set; then
      enableval="$enable_ipv6"
    
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    
    		{ echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
    
    # OpenLDAP --enable-local
    	# Check whether --enable-local or --disable-local was given.
    if test "${enable_local+set}" = set; then
      enableval="$enable_local"
    
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    
    		{ echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
    
    	ol_enable_local="$ol_arg"
    
      	ol_enable_local="auto"
    
    # end --enable-local
    
    # OpenLDAP --enable-x_compile
    	# Check whether --enable-x_compile or --disable-x_compile was given.
    if test "${enable_x_compile+set}" = set; then
      enableval="$enable_x_compile"
      
    	ol_arg=invalid
    	for ol_val in yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
    	fi
    	ol_enable_x_compile="$ol_arg"
    
    else
      	ol_enable_x_compile="no"
    fi
    # end --enable-x_compile
    
    # OpenLDAP --with-cyrus_sasl
    	# Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
    
    if test "${with_cyrus_sasl+set}" = set; then
      withval="$with_cyrus_sasl"
      
    	ol_arg=invalid
    	for ol_val in auto yes no  ; do
    		if test "$withval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    
    		{ echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
    
    	fi
    	ol_with_cyrus_sasl="$ol_arg"
    
    else
      	ol_with_cyrus_sasl="auto"
    fi
    
    
    # OpenLDAP --with-fetch
    	# Check whether --with-fetch or --without-fetch was given.
    if test "${with_fetch+set}" = set; then
      withval="$with_fetch"
      
    	ol_arg=invalid
    	for ol_val in auto yes no  ; do
    		if test "$withval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
    	fi
    	ol_with_fetch="$ol_arg"
    
    else
      	ol_with_fetch="auto"
    fi
    # end --with-fetch
    
    
    # OpenLDAP --with-kerberos
    	# Check whether --with-kerberos or --without-kerberos was given.
    if test "${with_kerberos+set}" = set; then
      withval="$with_kerberos"
      
    	ol_arg=invalid
    
    	for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
    
    		if test "$withval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
    	fi
    	ol_with_kerberos="$ol_arg"
    
    else
      	ol_with_kerberos="auto"
    fi
    # end --with-kerberos
    
    
    # OpenLDAP --with-readline
    	# Check whether --with-readline or --without-readline was given.
    if test "${with_readline+set}" = set; then
      withval="$with_readline"
    
      
    	ol_arg=invalid
    
    		if test "$withval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    
    		{ echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
    
    # OpenLDAP --with-threads
    	# Check whether --with-threads or --without-threads was given.
    if test "${with_threads+set}" = set; then
      withval="$with_threads"
    
      
    	ol_arg=invalid
    
    	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
    
    		if test "$withval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    
    		{ echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
    
    # OpenLDAP --with-tls
    	# Check whether --with-tls or --without-tls was given.
    if test "${with_tls+set}" = set; then
      withval="$with_tls"
      
    	ol_arg=invalid
    	for ol_val in auto ssleay openssl yes no  ; do
    		if test "$withval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
    	fi
    	ol_with_tls="$ol_arg"
    
    else
      	ol_with_tls="auto"
    fi
    # end --with-tls
    
    
    # OpenLDAP --with-yielding_select
    	# Check whether --with-yielding_select or --without-yielding_select was given.
    if test "${with_yielding_select+set}" = set; then
      withval="$with_yielding_select"
      
    	ol_arg=invalid
    	for ol_val in auto yes no manual  ; do
    		if test "$withval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
    	fi
    	ol_with_yielding_select="$ol_arg"
    
    else
      	ol_with_yielding_select="auto"
    fi
    # end --with-yielding_select
    
    
    # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
    if test "${with_xxslapdoptions+set}" = set; then
      withval="$with_xxslapdoptions"
      :
    fi
    
    
    # OpenLDAP --enable-slapd
    	# Check whether --enable-slapd or --disable-slapd was given.
    if test "${enable_slapd+set}" = set; then
      enableval="$enable_slapd"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
    	fi
    	ol_enable_slapd="$ol_arg"
    
    else
      	ol_enable_slapd="yes"
    fi
    # end --enable-slapd
    
    # OpenLDAP --enable-aci
    	# Check whether --enable-aci or --disable-aci was given.
    if test "${enable_aci+set}" = set; then
      enableval="$enable_aci"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
    	fi
    	ol_enable_aci="$ol_arg"
    
    else
      	ol_enable_aci="no"
    fi
    # end --enable-aci
    
    # OpenLDAP --enable-cleartext
    	# Check whether --enable-cleartext or --disable-cleartext was given.
    if test "${enable_cleartext+set}" = set; then
      enableval="$enable_cleartext"
    
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    
    		{ echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
    
    # end --enable-cleartext
    # OpenLDAP --enable-crypt
    	# Check whether --enable-crypt or --disable-crypt was given.
    if test "${enable_crypt+set}" = set; then
      enableval="$enable_crypt"
    
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    
    		{ echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
    
    # OpenLDAP --enable-dynamic
    	# Check whether --enable-dynamic or --disable-dynamic was given.
    if test "${enable_dynamic+set}" = set; then
      enableval="$enable_dynamic"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
    	fi
    	ol_enable_dynamic="$ol_arg"
    
    else
      	ol_enable_dynamic="no"
    fi
    # end --enable-dynamic
    
    # OpenLDAP --enable-kpasswd
    	# Check whether --enable-kpasswd or --disable-kpasswd was given.
    if test "${enable_kpasswd+set}" = set; then
      enableval="$enable_kpasswd"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
    	fi
    	ol_enable_kpasswd="$ol_arg"
    
    else
      	ol_enable_kpasswd="no"
    fi
    # end --enable-kpasswd
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    # OpenLDAP --enable-lmpasswd
    	# Check whether --enable-lmpasswd or --disable-lmpasswd was given.
    if test "${enable_lmpasswd+set}" = set; then
      enableval="$enable_lmpasswd"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
    	fi
    	ol_enable_lmpasswd="$ol_arg"
    
    else
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    fi
    # end --enable-lmpasswd
    
    # OpenLDAP --enable-spasswd
    	# Check whether --enable-spasswd or --disable-spasswd was given.
    if test "${enable_spasswd+set}" = set; then
      enableval="$enable_spasswd"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
    	fi
    	ol_enable_spasswd="$ol_arg"
    
    else
      	ol_enable_spasswd="no"
    fi
    # end --enable-spasswd
    # OpenLDAP --enable-modules
    	# Check whether --enable-modules or --disable-modules was given.
    if test "${enable_modules+set}" = set; then
      enableval="$enable_modules"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
    	fi
    	ol_enable_modules="$ol_arg"
    
    
      	ol_enable_modules="no"
    
    # end --enable-modules
    
    # OpenLDAP --enable-phonetic
    	# Check whether --enable-phonetic or --disable-phonetic was given.
    if test "${enable_phonetic+set}" = set; then
      enableval="$enable_phonetic"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
    	fi
    	ol_enable_phonetic="$ol_arg"
    
    else
      	ol_enable_phonetic="no"
    fi
    # end --enable-phonetic
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    # OpenLDAP --enable-rewrite
    	# Check whether --enable-rewrite or --disable-rewrite was given.
    if test "${enable_rewrite+set}" = set; then
      enableval="$enable_rewrite"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
    	fi
    	ol_enable_rewrite="$ol_arg"
    
    else
      	ol_enable_rewrite="no"
    fi
    # end --enable-rewrite
    
    # OpenLDAP --enable-rlookups
    	# Check whether --enable-rlookups or --disable-rlookups was given.
    if test "${enable_rlookups+set}" = set; then
      enableval="$enable_rlookups"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
    	fi
    	ol_enable_rlookups="$ol_arg"
    
    else
    
      	ol_enable_rlookups="no"
    
    fi
    # end --enable-rlookups
    
    # OpenLDAP --enable-slp
    	# Check whether --enable-slp or --disable-slp was given.
    if test "${enable_slp+set}" = set; then
      enableval="$enable_slp"
    
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi
    	done
    	if test "$ol_arg" = "invalid" ; then
    
    		{ echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
    
    # OpenLDAP --enable-wrappers
    	# Check whether --enable-wrappers or --disable-wrappers was given.
    if test "${enable_wrappers+set}" = set; then
      enableval="$enable_wrappers"
      
    	ol_arg=invalid
    	for ol_val in auto yes no ; do
    		if test "$enableval" = "$ol_val" ; then
    			ol_arg="$ol_val"
    		fi