comparison configure @ 5816:5de7b6d1e752

Check for TLS headers as well as libraries. See xemacs-patches message <CAHCOHQ=6SZuGB1zmOwQMgVqVtOXdaLy_=4yfOqULDkRjHEiNcA@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Thu, 09 Oct 2014 15:45:16 -0600
parents a216b3c2b09e
children a58070ee1f31
comparison
equal deleted inserted replaced
5815:d59bfb050ca8 5816:5de7b6d1e752
21019 21019
21020 $as_echo "#define WITH_MP 1" >>confdefs.h 21020 $as_echo "#define WITH_MP 1" >>confdefs.h
21021 21021
21022 fi 21022 fi
21023 21023
21024 if test "$with_tls" = "yes"; then 21024 if test "$with_tls" = "gnutls"; then
21025 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
21026 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
21026 $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; } 21028 $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
21027 if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then : 21029 if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then :
21028 $as_echo_n "(cached) " >&6 21030 $as_echo_n "(cached) " >&6
21029 else 21031 else
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
21060 $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; } 21062 $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
21061 if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then : 21063 if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then :
21062 with_tls=gnutls 21064 with_tls=gnutls
21063 else 21065 else
21066 { echo "Error:" "Required gnutls support cannot be provided." >&2; exit 1; }
21067 fi
21068
21069 else
21070 { echo "Error:" "Required gnutls support cannot be provided." >&2; exit 1; }
21071 fi
21072
21073
21074 elif test "$with_tls" = "nss"; then
21075 ac_fn_c_check_header_mongrel "$LINENO" "nss.h" "ac_cv_header_nss_h" "$ac_includes_default"
21076 if test "x$ac_cv_header_nss_h" = xyes; then :
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_InitContext in -lnss3" >&5 21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_InitContext in -lnss3" >&5
21065 $as_echo_n "checking for NSS_InitContext in -lnss3... " >&6; } 21078 $as_echo_n "checking for NSS_InitContext in -lnss3... " >&6; }
21066 if ${ac_cv_lib_nss3_NSS_InitContext+:} false; then : 21079 if ${ac_cv_lib_nss3_NSS_InitContext+:} false; then :
21067 $as_echo_n "(cached) " >&6 21080 $as_echo_n "(cached) " >&6
21068 else 21081 else
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_InitContext" >&5 21111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_InitContext" >&5
21099 $as_echo "$ac_cv_lib_nss3_NSS_InitContext" >&6; } 21112 $as_echo "$ac_cv_lib_nss3_NSS_InitContext" >&6; }
21100 if test "x$ac_cv_lib_nss3_NSS_InitContext" = xyes; then : 21113 if test "x$ac_cv_lib_nss3_NSS_InitContext" = xyes; then :
21101 with_tls=nss 21114 with_tls=nss
21102 else 21115 else
21116 { echo "Error:" "Required NSS support cannot be provided." >&2; exit 1; }
21117 fi
21118
21119 else
21120 { echo "Error:" "Required NSS support cannot be provided." >&2; exit 1; }
21121 fi
21122
21123
21124 elif test "$with_tls" = "openssl"; then
21125 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
21126 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
21104 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } 21128 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
21105 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : 21129 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
21106 $as_echo_n "(cached) " >&6 21130 $as_echo_n "(cached) " >&6
21107 else 21131 else
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
21138 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } 21162 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
21139 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : 21163 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
21140 with_tls=openssl 21164 with_tls=openssl
21141 else 21165 else
21142 with_tls=no 21166 { echo "Error:" "Required openssl support cannot be provided." >&2; exit 1; }
21143 fi 21167 fi
21144 21168
21145 fi 21169 else
21146 21170 { echo "Error:" "Required openssl support cannot be provided." >&2; exit 1; }
21147 fi 21171 fi
21148 21172
21149 elif test "$with_tls" = "gnutls"; then 21173
21174 fi
21175 if test "$with_tls" = "yes"; then
21176 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
21177 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5 21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
21151 $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; } 21179 $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
21152 if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then : 21180 if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then :
21153 $as_echo_n "(cached) " >&6 21181 $as_echo_n "(cached) " >&6
21154 else 21182 else
21183 fi 21211 fi
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5 21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
21185 $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; } 21213 $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
21186 if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then : 21214 if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then :
21187 with_tls=gnutls 21215 with_tls=gnutls
21188 else 21216 fi
21189 { echo "Error:" "Required gnutls support cannot be provided." >&2; exit 1; } 21217
21190 fi 21218 fi
21191 21219
21192 elif test "$with_tls" = "nss"; then 21220
21221 fi
21222 if test "$with_tls" = "yes"; then
21223 ac_fn_c_check_header_mongrel "$LINENO" "nss.h" "ac_cv_header_nss_h" "$ac_includes_default"
21224 if test "x$ac_cv_header_nss_h" = xyes; then :
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_InitContext in -lnss3" >&5 21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_InitContext in -lnss3" >&5
21194 $as_echo_n "checking for NSS_InitContext in -lnss3... " >&6; } 21226 $as_echo_n "checking for NSS_InitContext in -lnss3... " >&6; }
21195 if ${ac_cv_lib_nss3_NSS_InitContext+:} false; then : 21227 if ${ac_cv_lib_nss3_NSS_InitContext+:} false; then :
21196 $as_echo_n "(cached) " >&6 21228 $as_echo_n "(cached) " >&6
21197 else 21229 else
21226 fi 21258 fi
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_InitContext" >&5 21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_InitContext" >&5
21228 $as_echo "$ac_cv_lib_nss3_NSS_InitContext" >&6; } 21260 $as_echo "$ac_cv_lib_nss3_NSS_InitContext" >&6; }
21229 if test "x$ac_cv_lib_nss3_NSS_InitContext" = xyes; then : 21261 if test "x$ac_cv_lib_nss3_NSS_InitContext" = xyes; then :
21230 with_tls=nss 21262 with_tls=nss
21231 else 21263 fi
21232 { echo "Error:" "Required NSS support cannot be provided." >&2; exit 1; } 21264
21233 fi 21265 fi
21234 21266
21235 elif test "$with_tls" = "openssl"; then 21267
21268 fi
21269 if test "$with_tls" = "yes"; then
21270 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
21271 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
21237 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } 21273 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
21238 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : 21274 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
21239 $as_echo_n "(cached) " >&6 21275 $as_echo_n "(cached) " >&6
21240 else 21276 else
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
21271 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } 21307 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
21272 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : 21308 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
21273 with_tls=openssl 21309 with_tls=openssl
21274 else 21310 else
21275 { echo "Error:" "Required openssl support cannot be provided." >&2; exit 1; } 21311 with_tls=no
21276 fi 21312 fi
21313
21314 fi
21315
21277 21316
21278 fi 21317 fi
21279 if test "$with_tls" != "no"; then 21318 if test "$with_tls" != "no"; then
21280 $as_echo "#define WITH_TLS 1" >>confdefs.h 21319 $as_echo "#define WITH_TLS 1" >>confdefs.h
21281 21320