diff options
author | Eduardo Chappa <chappa@washington.edu> | 2017-09-29 23:51:00 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2017-09-29 23:51:00 -0600 |
commit | 4681adf1bb1d0a1313706d7d96a3ef930ebe5fd9 (patch) | |
tree | a0d1bfd05325921860e7578a54b7b4afb3112262 /configure | |
parent | 4ef47e8fa6934d003434f3a37875d0abb98636d8 (diff) | |
download | alpine-4681adf1bb1d0a1313706d7d96a3ef930ebe5fd9.tar.xz |
* NTLM authentication support with the ntlm library, in Unix systems.
Based on code provided by Maciej W. Rozycki.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 118 |
1 files changed, 114 insertions, 4 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Rev:21 by chappa@washington.edu. +# From configure.ac Rev:23 by chappa@washington.edu. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for alpine 2.21.9. # @@ -647,6 +647,7 @@ WEB_BINDIR WEB_BUILD REGEX_BUILD C_CLIENT_SPECIALS +C_CLIENT_AUTHS C_CLIENT_GCCOPTLEVEL C_CLIENT_LDFLAGS C_CLIENT_CFLAGS @@ -918,6 +919,7 @@ with_pthread with_system_mail_directory with_c_client_target with_ipv6 +with_ntlm ' ac_precious_vars='build_alias host_alias @@ -1759,6 +1761,7 @@ Optional Packages: IMAP build target (see imap/Makefile) --without-ipv6 Disable IPv6, primarily to work around resolver problems + --without-ntlm Disable NTLM client support Some influential environment variables: CC C compiler command @@ -3510,8 +3513,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host))" >&5 -$as_echo "$as_me: Configuring for $PACKAGE_STRING ($host))" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5 +$as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;} # start out with intent to build Web Alpine WEB_BUILD=web/src/alpined.d @@ -19181,6 +19184,101 @@ $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;} fi fi + +# Check whether --with-ntlm was given. +if test "${with_ntlm+set}" = set; then : + withval=$with_ntlm; with_ntlm=$withval +fi + + +if test "x$with_ntlm" = "xno" ; then + alpine_NTLM="none" +else + alpine_NTLM= + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5 +$as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; } +if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char buildSmbNtlmAuthRequest (); +int +main () +{ +return buildSmbNtlmAuthRequest (); + ; + return 0; +} +_ACEOF +for ac_lib in '' ntlm; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_buildSmbNtlmAuthRequest=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then : + break +fi +done +if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then : + +else + ac_cv_search_buildSmbNtlmAuthRequest=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5 +$as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; } +ac_res=$ac_cv_search_buildSmbNtlmAuthRequest +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default" +if test "x$ac_cv_header_ntlm_h" = xyes; then : + + extra_auth_ntlm=ntl + { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5 +$as_echo "$as_me: including NTLM support" >&6;} + +else + + alpine_NTLM="none" + alpine_ntlm_none_reason="header file ntlm.h not found" + +fi + + + +else + + alpine_NTLM="none" + alpine_ntlm_none_reason="ntlm library not found" + +fi + + if test -n "$alpine_ntlm_none_reason" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5 +$as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;} + fi +fi + if test -n "$WEB_BUILD" ; then TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3" TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`" @@ -21593,12 +21691,20 @@ $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;} fi fi +extra_auth_gss= if test "x$alpine_GSSTYPE" != "xnone" ; then - c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss " + extra_auth_gss=gss { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;} fi +extra_auth_ntlm= +if test "x$alpine_NTLM" != "xnone" ; then + extra_auth_ntlm=ntl + { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5 +$as_echo "$as_me: * * * Including NTLM Authenticator" >&6;} +fi + if test -n "$CPPFLAGS" ; then alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}" fi @@ -21628,6 +21734,10 @@ if test -n "$alpine_c_client_gccoptlevel" ; then fi +c_client_auths="$extra_auth_gss $extra_auth_ntlm" +C_CLIENT_AUTHS=$c_client_auths + + C_CLIENT_SPECIALS=$c_client_specials |