Skip to content
Snippets Groups Projects
configure 412 KiB
Newer Older
  • Learn to ignore specific revisions
  • 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
    
    
    
    
    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
    
    echo "configure:1034: 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
    
    echo "configure:1047: 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
    
    echo "configure:1060: 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
    
    echo "configure:1073: 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
    
    echo "configure:1086: 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
    
    echo "configure:1106: 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
    
    
    echo $ac_n "checking configure arguments""... $ac_c" 1>&6
    
    echo "configure:1157: 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
      	ol_enable_cache="yes"
    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
      	ol_enable_referrals="yes"
    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
      	ol_enable_kbind="auto"
    fi
    # end --enable-kbind
    
    # OpenLDAP --enable-cldap
    	# Check whether --enable-cldap or --disable-cldap was given.
    if test "${enable_cldap+set}" = set; then
      enableval="$enable_cldap"
      
    	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-cldap" 1>&2; exit 1; }
    	fi
    	ol_enable_cldap="$ol_arg"
    
    else
      	ol_enable_cldap="no"
    fi
    # end --enable-cldap
    
    # 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; }
    
    # end --enable-ipv6
    # OpenLDAP --enable-unix
    	# Check whether --enable-unix or --disable-unix was given.
    if test "${enable_unix+set}" = set; then
      enableval="$enable_unix"
      
    	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-unix" 1>&2; exit 1; }
    	fi
    	ol_enable_unix="$ol_arg"
    
    else
      	ol_enable_unix="auto"
    fi
    # end --enable-unix
    
    # 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-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-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
    
    # 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-multimaster
    	# Check whether --enable-multimaster or --disable-multimaster was given.
    if test "${enable_multimaster+set}" = set; then
      enableval="$enable_multimaster"
      
    	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-multimaster" 1>&2; exit 1; }
    	fi
    	ol_enable_multimaster="$ol_arg"
    
    else
      	ol_enable_multimaster="no"
    fi
    # end --enable-multimaster
    
    # 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
    
    # OpenLDAP --enable-quipu
    	# Check whether --enable-quipu or --disable-quipu was given.
    if test "${enable_quipu+set}" = set; then
      enableval="$enable_quipu"
      
    	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-quipu" 1>&2; exit 1; }
    	fi
    	ol_enable_quipu="$ol_arg"
    
    else
      	ol_enable_quipu="no"
    fi
    # end --enable-quipu
    
    # 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="auto"
    fi
    # end --enable-rlookups
    
    # 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-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
    	done
    	if test "$ol_arg" = "invalid" ; then
    		{ echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
    	fi
    	ol_enable_wrappers="$ol_arg"
    
    else
      	ol_enable_wrappers="no"
    fi
    # end --enable-wrappers
    
    # 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-dnssrv
    	# Check whether --enable-dnssrv or --disable-dnssrv was given.
    if test "${enable_dnssrv+set}" = set; then
      enableval="$enable_dnssrv"
      
    	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-dnssrv" 1>&2; exit 1; }
    	fi
    	ol_enable_dnssrv="$ol_arg"
    
    else
      	ol_enable_dnssrv="no"
    fi
    # end --enable-dnssrv
    # OpenLDAP --with-dnssrv_module
    	# Check whether --with-dnssrv_module or --without-dnssrv_module was given.
    if test "${with_dnssrv_module+set}" = set; then
      withval="$with_dnssrv_module"
      
    	ol_arg=invalid
    	for ol_val in static dynamic ; 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-dnssrv_module" 1>&2; exit 1; }
    	fi
    	ol_with_dnssrv_module="$ol_arg"
    
    else
      	ol_with_dnssrv_module="static"
    fi
    # end --with-dnssrv_module
    
    
    # OpenLDAP --enable-ldap
    	# Check whether --enable-ldap or --disable-ldap was given.
    if test "${enable_ldap+set}" = set; then
      enableval="$enable_ldap"
      
    	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-ldap" 1>&2; exit 1; }
    	fi
    	ol_enable_ldap="$ol_arg"
    
    else
      	ol_enable_ldap="no"
    fi
    # end --enable-ldap
    
    # OpenLDAP --with-ldap_module
    	# Check whether --with-ldap_module or --without-ldap_module was given.
    if test "${with_ldap_module+set}" = set; then
      withval="$with_ldap_module"
      
    	ol_arg=invalid
    	for ol_val in static dynamic ; 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-ldap_module" 1>&2; exit 1; }
    	fi
    	ol_with_ldap_module="$ol_arg"
    
    else
      	ol_with_ldap_module="static"
    fi
    # end --with-ldap_module
    
    
    # OpenLDAP --enable-ldbm
    	# Check whether --enable-ldbm or --disable-ldbm was given.
    if test "${enable_ldbm+set}" = set; then
      enableval="$enable_ldbm"
      
    	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-ldbm" 1>&2; exit 1; }
    	fi
    	ol_enable_ldbm="$ol_arg"
    
    else
      	ol_enable_ldbm="yes"
    fi
    # end --enable-ldbm
    
    # OpenLDAP --with-ldbm_api
    	# Check whether --with-ldbm_api or --without-ldbm_api was given.
    if test "${with_ldbm_api+set}" = set; then
      withval="$with_ldbm_api"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    	for ol_val in auto berkeley bcompat mdbm gdbm ; 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-ldbm_api" 1>&2; exit 1; }
    
    	ol_with_ldbm_api="$ol_arg"
    
      	ol_with_ldbm_api="auto"
    
    # end --with-ldbm_api
    
    # OpenLDAP --with-ldbm_module
    	# Check whether --with-ldbm_module or --without-ldbm_module was given.
    if test "${with_ldbm_module+set}" = set; then
      withval="$with_ldbm_module"
    
      
    	ol_arg=invalid
    
    	for ol_val in static dynamic ; 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-ldbm_module" 1>&2; exit 1; }
    
    	ol_with_ldbm_module="$ol_arg"
    
      	ol_with_ldbm_module="static"
    
    # end --with-ldbm_module
    
    
    # OpenLDAP --with-ldbm_type
    	# Check whether --with-ldbm_type or --without-ldbm_type was given.
    if test "${with_ldbm_type+set}" = set; then
      withval="$with_ldbm_type"
      
    	ol_arg=invalid
    	for ol_val in auto btree hash ; 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-ldbm_type" 1>&2; exit 1; }
    	fi
    	ol_with_ldbm_type="$ol_arg"
    
    else
      	ol_with_ldbm_type="auto"
    fi
    # end --with-ldbm_type
    
    # OpenLDAP --enable-passwd
    	# Check whether --enable-passwd or --disable-passwd was given.
    if test "${enable_passwd+set}" = set; then
      enableval="$enable_passwd"
      
    	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-passwd" 1>&2; exit 1; }
    	fi
    	ol_enable_passwd="$ol_arg"
    
    else
      	ol_enable_passwd="no"
    fi
    # end --enable-passwd
    
    # OpenLDAP --with-passwd_module
    	# Check whether --with-passwd_module or --without-passwd_module was given.
    if test "${with_passwd_module+set}" = set; then
      withval="$with_passwd_module"
      
    	ol_arg=invalid
    	for ol_val in static dynamic ; 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-passwd_module" 1>&2; exit 1; }
    	fi
    	ol_with_passwd_module="$ol_arg"