Skip to content
Snippets Groups Projects
configure 319 KiB
Newer Older
  • Learn to ignore specific revisions
  • # 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-dns
    	# Check whether --enable-dns or --disable-dns was given.
    if test "${enable_dns+set}" = set; then
      enableval="$enable_dns"
      
    	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-dns" 1>&2; exit 1; }
    	fi
    	ol_enable_dns="$ol_arg"
    
    else
      	ol_enable_dns="no"
    fi
    # end --enable-dns
    # 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-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-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 --enable-dmalloc
    	# Check whether --enable-dmalloc or --disable-dmalloc was given.
    if test "${enable_dmalloc+set}" = set; then
      enableval="$enable_dmalloc"
      
    	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-dmalloc" 1>&2; exit 1; }
    	fi
    	ol_enable_dmalloc="$ol_arg"
    
    else
      	ol_enable_dmalloc="no"
    fi
    # end --enable-dmalloc
    
    
    # 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 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 posix mach 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-xxldapdoptions or --without-xxldapdoptions was given.
    if test "${with_xxldapdoptions+set}" = set; then
      withval="$with_xxldapdoptions"
      :
    fi
    
    
    # OpenLDAP --enable-ldapd
    	# Check whether --enable-ldapd or --disable-ldapd was given.
    if test "${enable_ldapd+set}" = set; then
      enableval="$enable_ldapd"
      
    	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-ldapd" 1>&2; exit 1; }
    	fi
    	ol_enable_ldapd="$ol_arg"
    
    else
      	ol_enable_ldapd="no"
    fi
    # end --enable-ldapd
    
    
    # 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-aclgroups
    	# Check whether --enable-aclgroups or --disable-aclgroups was given.
    if test "${enable_aclgroups+set}" = set; then
      enableval="$enable_aclgroups"
    
      
    	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-aclgroups" 1>&2; exit 1; }
    
    	ol_enable_aclgroups="$ol_arg"
    
      	ol_enable_aclgroups="auto"
    
    # end --enable-aclgroups
    
    # 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-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; }
    
    	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
    # 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-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-bdb2
    	# Check whether --enable-bdb2 or --disable-bdb2 was given.
    if test "${enable_bdb2+set}" = set; then
      enableval="$enable_bdb2"
      
    	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-bdb2" 1>&2; exit 1; }
    	fi
    	ol_enable_bdb2="$ol_arg"
    
    else
      	ol_enable_bdb2="no"
    fi
    # end --enable-bdb2
    
    # 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 --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"
      
    	ol_arg=invalid
    
    	for ol_val in auto db2 db mdbm gdbm ndbm 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-ldbm_api" 1>&2; exit 1; }
    	fi
    	ol_with_ldbm_api="$ol_arg"
    
    else
      	ol_with_ldbm_api="auto"
    fi
    # end --with-ldbm_api
    
    # 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 --enable-perl
    	# Check whether --enable-perl or --disable-perl was given.
    if test "${enable_perl+set}" = set; then
      enableval="$enable_perl"
      
    	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-perl" 1>&2; exit 1; }
    	fi
    	ol_enable_perl="$ol_arg"
    
    else
      	ol_enable_perl="no"
    fi
    # end --enable-perl
    
    # OpenLDAP --enable-shell
    	# Check whether --enable-shell or --disable-shell was given.
    if test "${enable_shell+set}" = set; then
      enableval="$enable_shell"
      
    	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-shell" 1>&2; exit 1; }
    	fi
    	ol_enable_shell="$ol_arg"
    
    else
      	ol_enable_shell="no"
    fi
    # end --enable-shell
    
    # OpenLDAP --enable-tcl
    	# Check whether --enable-tcl or --disable-tcl was given.
    if test "${enable_tcl+set}" = set; then
      enableval="$enable_tcl"
      
    	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-tcl" 1>&2; exit 1; }
    	fi
    	ol_enable_tcl="$ol_arg"
    
    else
      	ol_enable_tcl="no"
    fi
    # end --enable-tcl
    
    # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
    if test "${with_xxslurpdoptions+set}" = set; then
      withval="$with_xxslurpdoptions"
      :
    fi
    
    
    # OpenLDAP --enable-slurpd
    	# Check whether --enable-slurpd or --disable-slurpd was given.
    if test "${enable_slurpd+set}" = set; then
      enableval="$enable_slurpd"
      
    	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-slurpd" 1>&2; exit 1; }
    	fi
    	ol_enable_slurpd="$ol_arg"
    
    else
      	ol_enable_slurpd="auto"
    fi
    # end --enable-slurpd
    
    
    # Check whether --with-xxliboptions or --without-xxliboptions was given.
    if test "${with_xxliboptions+set}" = set; then
      withval="$with_xxliboptions"
      :
    fi
    
    # Check whether --enable-static or --disable-static was given.
    if test "${enable_static+set}" = set; then
      enableval="$enable_static"
      p=${PACKAGE-default}
    case "$enableval" in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
      enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
      for pkg in $enableval; do
        if test "X$pkg" = "X$p"; then
          enable_static=yes
        fi
      done
      IFS="$ac_save_ifs"
      ;;
    esac
    else
      enable_static=yes
    fi
    
    # Check whether --enable-shared or --disable-shared was given.
    if test "${enable_shared+set}" = set; then
      enableval="$enable_shared"
      p=${PACKAGE-default}
    case "$enableval" in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
      for pkg in $enableval; do
        if test "X$pkg" = "X$p"; then
          enable_shared=yes
        fi
      done
      IFS="$ac_save_ifs"
      ;;
    esac
    else
      enable_shared=yes
    fi
    
    
    
    if test $ol_enable_dns = yes ; then
    	if test $ol_enable_referrals = no ; then
    		{ echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
    	fi
    	if test $ol_enable_referrals = auto ; then
    		echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
    		ol_enable_referrals=yes
    
    if test $ol_enable_slapd = no ; then
    
    		if test $ol_enable_bdb2 = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
    
    	if test $ol_enable_ldap = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
    
    	if test $ol_enable_ldbm = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
    
    	fi
    	if test $ol_enable_passwd = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
    
    	if test $ol_enable_perl = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
    
    	if test $ol_enable_shell = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
    
    	if test $ol_enable_tcl = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
    
    	if test $ol_enable_aclgroups = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
    
    	if test $ol_enable_modules = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
    
    	if test $ol_enable_wrappers = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
    
    	fi
    	if test $ol_enable_phonetic = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
    
    	fi
    	if test $ol_enable_rlookups = yes ; then
    
    		echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
    
    	fi
    	if test $ol_with_ldbm_api != auto ; then
    
    		echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
    
    	fi
    	if test $ol_with_ldbm_type != auto ; then
    
    		echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
    
    	fi
    	if test $ol_enable_slurpd = yes ; then
    
    		{ echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
    
    	fi
    
    	# force settings to no
    
    	ol_enable_ldbm=no
    	ol_enable_passwd=no
    
    	ol_enable_perl=no
    	ol_enable_shell=no
    
    	ol_enable_aclgroups=no
    
    	ol_enable_modules=no
    
    	ol_enable_phonetic=no
    	ol_enable_rlookups=no
    
    	ol_with_ldbm_api=no
    	ol_with_ldbm_type=no
    
    	ol_enable_slurpd=no
    
    elif test $ol_enable_ldbm = no ; then
    	
    	if test $ol_with_ldbm_api != auto ; then
    
    		echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
    
    	fi
    
    	if test $ol_with_ldbm_type != auto ; then
    
    		echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
    
    	if test $ol_enable_bdb2 = yes ; then
    
    		{ echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
    	fi
    
    
    	if test $ol_enable_modules != yes -a \
    
    		$ol_enable_passwd = no -a \
    
    		$ol_enable_shell = no -a \
    		$ol_enable_tcl = no ; then
    
    		{ echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
    
    	fi
    
    	ol_with_ldbm_api=no
    	ol_with_ldbm_type=no
    
    
    elif test $ol_enable_bdb2 = yes ; then
    	
    	if test $ol_with_ldbm_api != auto -a \
    		$ol_with_ldbm_api != db2 ; then
    		{ echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
    	fi
    
    	ol_with_ldbm_api=db2
    
    
    	if test $ol_enable_bdb2 != no ; then
    		if test $ol_with_ldbm_api != auto -a \
    			$ol_with_ldbm_api != db2 ; then
    			echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
    			ol_enable_bdb2=no
    		fi
    	fi
    
    
    	if test $ol_with_ldbm_api = gdbm -a \
    		$ol_with_ldbm_type = btree ; then
    
    		{ echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
    
    	if test $ol_with_ldbm_api = mdbm -a \
    		$ol_with_ldbm_type = btree ; then
    		{ echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
    	fi
    
    	if test $ol_with_ldbm_api = ndbm -a \
    		$ol_with_ldbm_type = btree ; then
    
    		{ echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
    
    	fi
    fi
    
    if test $ol_enable_slurpd = yes ; then
    		if test $ol_with_threads = no ; then
    
    		{ echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
    
    	fi
    fi
    
    echo "$ac_t""done" 1>&6
    
    ## Initialize vars
    LDAP_LIBS=
    LDBM_LIBS=
    LTHREAD_LIBS=
    LUTIL_LIBS=
    
    LDAPD_LIBS=
    SLAPD_LIBS=
    SLURPD_LIBS=
    
    BUILD_LDAPD=no
    BUILD_SLAPD=no
    BUILD_SLURPD=no
    
    
    BUILD_LDBM=no
    BUILD_PASSWD=no
    
    BUILD_SHELL=no
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    BUILD_THREAD=no
    
    SLAPD_MODULES_LDFLAGS=
    SLAPD_MODULES_CPPFLAGS=
    
    
    SLAPD_PERL_LDFLAGS=
    SLAPD_PERL_CPPFLAGS=
    
    
    KRB_LIBS=
    
    TERMCAP_LIBS=
    
    case "$target" in
    *-*-aix*) 	if test -z "CC" ; then
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    		case "$ol_with_threads" in
    
    		auto | yes |  posix) ol_aix_threads=yes ;;
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    if test -z "${CC}" -a $ol_aix_threads = yes ; then
    	for ac_prog in cc_r xlc_r cc
    
    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:1927: checking for $ac_word" >&5
    
    if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # 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_CC="$ac_prog"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    CC="$ac_cv_prog_CC"
    if test -n "$CC"; then
      echo "$ac_t""$CC" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    test -n "$CC" && break
    done
    
    
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    	if test "$CC" = cc ; then
    				if test $ol_with_threads != auto ; then
    
    			{ echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
    		else
    			echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
    		fi
    		ol_with_threads=no
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    
    	elif test "$CC" ; then
    
    		ol_with_threads=posix
    		ol_cv_pthread_create=yes
    	fi
    fi
    
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    if test -z "${CC}"; then
    	for ac_prog in cc
    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:1977: checking for $ac_word" >&5
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # 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_CC="$ac_prog"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    CC="$ac_cv_prog_CC"
    if test -n "$CC"; then
      echo "$ac_t""$CC" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi