Loading configure.ac +30 −2 Original line number Original line Diff line number Diff line Loading @@ -90,6 +90,7 @@ dnl initialize all the info variables curl_verbose_msg="enabled (--disable-verbose)" curl_verbose_msg="enabled (--disable-verbose)" curl_sspi_msg="no (--enable-sspi)" curl_sspi_msg="no (--enable-sspi)" curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" curl_ldaps_msg="no (--enable-ldaps)" dnl dnl dnl Save anything in $LIBS for later dnl Save anything in $LIBS for later Loading Loading @@ -285,6 +286,32 @@ AC_HELP_STRING([--disable-ldap],[Disable LDAP support]), esac ], esac ], AC_MSG_RESULT(yes) AC_MSG_RESULT(yes) ) ) AC_MSG_CHECKING([whether to support ldaps]) AC_ARG_ENABLE(ldaps, AC_HELP_STRING([--enable-ldaps],[Enable LDAPS support]) AC_HELP_STRING([--disable-ldaps],[Disable LDAPS support]), [ case "$enableval" in no) AC_MSG_RESULT(no) AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS]) AC_SUBST(CURL_DISABLE_LDAPS, [1]) ;; *) if test x$CURL_DISABLE_LDAP = x1 ; then AC_MSG_RESULT(LDAP support needs to be enabled in order to enable LDAPS support!) AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS]) AC_SUBST(CURL_DISABLE_LDAPS, [1]) else AC_MSG_RESULT(yes) AC_DEFINE(HAVE_LDAP_SSL, 1, [Use LDAPS implementation]) curl_ldaps_msg="enabled" fi ;; esac ], AC_MSG_RESULT(no) AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS]) AC_SUBST(CURL_DISABLE_LDAPS, [1]) ) AC_MSG_CHECKING([whether to support dict]) AC_MSG_CHECKING([whether to support dict]) AC_ARG_ENABLE(dict, AC_ARG_ENABLE(dict, AC_HELP_STRING([--enable-dict],[Enable DICT support]) AC_HELP_STRING([--enable-dict],[Enable DICT support]) Loading Loading @@ -565,7 +592,7 @@ if test x$CURL_DISABLE_LDAP != x1 ; then AC_CHECK_FUNCS([ldap_url_parse]) AC_CHECK_FUNCS([ldap_url_parse]) if test "$LDAPLIBNAME" = "wldap32"; then if test "$LDAPLIBNAME" = "wldap32"; then curl_ldap_msg="yes (winldap)" curl_ldap_msg="enabled (winldap)" AC_DEFINE(CURL_LDAP_WIN, 1, [Use W$ LDAP implementation]) AC_DEFINE(CURL_LDAP_WIN, 1, [Use W$ LDAP implementation]) case $host in case $host in *-*-cygwin* | *-*-pw32*) *-*-cygwin* | *-*-pw32*) Loading @@ -573,7 +600,7 @@ if test x$CURL_DISABLE_LDAP != x1 ; then ;; ;; esac esac else else curl_ldap_msg="yes (OpenLDAP)" curl_ldap_msg="enabled (OpenLDAP)" fi fi fi fi Loading Loading @@ -2388,4 +2415,5 @@ AC_MSG_NOTICE([Configured to build curl/libcurl: SSPI support: ${curl_sspi_msg} SSPI support: ${curl_sspi_msg} ca cert path: ${ca} ca cert path: ${ca} LDAP support: ${curl_ldap_msg} LDAP support: ${curl_ldap_msg} LDAPS support: ${curl_ldaps_msg} ]) ]) Loading
configure.ac +30 −2 Original line number Original line Diff line number Diff line Loading @@ -90,6 +90,7 @@ dnl initialize all the info variables curl_verbose_msg="enabled (--disable-verbose)" curl_verbose_msg="enabled (--disable-verbose)" curl_sspi_msg="no (--enable-sspi)" curl_sspi_msg="no (--enable-sspi)" curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" curl_ldaps_msg="no (--enable-ldaps)" dnl dnl dnl Save anything in $LIBS for later dnl Save anything in $LIBS for later Loading Loading @@ -285,6 +286,32 @@ AC_HELP_STRING([--disable-ldap],[Disable LDAP support]), esac ], esac ], AC_MSG_RESULT(yes) AC_MSG_RESULT(yes) ) ) AC_MSG_CHECKING([whether to support ldaps]) AC_ARG_ENABLE(ldaps, AC_HELP_STRING([--enable-ldaps],[Enable LDAPS support]) AC_HELP_STRING([--disable-ldaps],[Disable LDAPS support]), [ case "$enableval" in no) AC_MSG_RESULT(no) AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS]) AC_SUBST(CURL_DISABLE_LDAPS, [1]) ;; *) if test x$CURL_DISABLE_LDAP = x1 ; then AC_MSG_RESULT(LDAP support needs to be enabled in order to enable LDAPS support!) AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS]) AC_SUBST(CURL_DISABLE_LDAPS, [1]) else AC_MSG_RESULT(yes) AC_DEFINE(HAVE_LDAP_SSL, 1, [Use LDAPS implementation]) curl_ldaps_msg="enabled" fi ;; esac ], AC_MSG_RESULT(no) AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS]) AC_SUBST(CURL_DISABLE_LDAPS, [1]) ) AC_MSG_CHECKING([whether to support dict]) AC_MSG_CHECKING([whether to support dict]) AC_ARG_ENABLE(dict, AC_ARG_ENABLE(dict, AC_HELP_STRING([--enable-dict],[Enable DICT support]) AC_HELP_STRING([--enable-dict],[Enable DICT support]) Loading Loading @@ -565,7 +592,7 @@ if test x$CURL_DISABLE_LDAP != x1 ; then AC_CHECK_FUNCS([ldap_url_parse]) AC_CHECK_FUNCS([ldap_url_parse]) if test "$LDAPLIBNAME" = "wldap32"; then if test "$LDAPLIBNAME" = "wldap32"; then curl_ldap_msg="yes (winldap)" curl_ldap_msg="enabled (winldap)" AC_DEFINE(CURL_LDAP_WIN, 1, [Use W$ LDAP implementation]) AC_DEFINE(CURL_LDAP_WIN, 1, [Use W$ LDAP implementation]) case $host in case $host in *-*-cygwin* | *-*-pw32*) *-*-cygwin* | *-*-pw32*) Loading @@ -573,7 +600,7 @@ if test x$CURL_DISABLE_LDAP != x1 ; then ;; ;; esac esac else else curl_ldap_msg="yes (OpenLDAP)" curl_ldap_msg="enabled (OpenLDAP)" fi fi fi fi Loading Loading @@ -2388,4 +2415,5 @@ AC_MSG_NOTICE([Configured to build curl/libcurl: SSPI support: ${curl_sspi_msg} SSPI support: ${curl_sspi_msg} ca cert path: ${ca} ca cert path: ${ca} LDAP support: ${curl_ldap_msg} LDAP support: ${curl_ldap_msg} LDAPS support: ${curl_ldaps_msg} ]) ])