4671
old_cppflags="$CPPFLAGS"
4672
old_ldflags="$LDFLAGS"
4675
# Check whether --with-crypto was given.
4676
if test "${with_crypto+set}" = set; then :
4677
withval=$with_crypto;
4678
if test "$withval" = "yes"; then
4681
openssl_have_headers=0
4685
old_cppflags="$CPPFLAGS"
4686
old_ldflags="$LDFLAGS"
4689
# Check whether --with-openssl was given.
4690
if test "${with_openssl+set}" = set; then :
4691
withval=$with_openssl;
4692
if test "$withval" = "yes"; then
4693
for ac_header in openssl/x509.h
4695
ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
4696
if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
4697
cat >>confdefs.h <<_ACEOF
4698
#define HAVE_OPENSSL_X509_H 1
4700
openssl_have_headers=1
4705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
4706
$as_echo_n "checking for BN_init in -lcrypto... " >&6; }
4707
if test "${ac_cv_lib_crypto_BN_init+set}" = set; then :
4708
$as_echo_n "(cached) " >&6
4710
ac_check_lib_save_LIBS=$LIBS
4711
LIBS="-lcrypto $LIBS"
4712
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713
/* end confdefs.h. */
4715
/* Override any GCC internal prototype to avoid an error.
4716
Use char because int might match the return type of a GCC
4717
builtin and then its argument prototype would still apply. */
4730
if ac_fn_c_try_link "$LINENO"; then :
4731
ac_cv_lib_crypto_BN_init=yes
4733
ac_cv_lib_crypto_BN_init=no
4735
rm -f core conftest.err conftest.$ac_objext \
4736
conftest$ac_exeext conftest.$ac_ext
4737
LIBS=$ac_check_lib_save_LIBS
4739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
4740
$as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
4741
if test "x$ac_cv_lib_crypto_BN_init" = x""yes; then :
4742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
4743
$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
4744
if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then :
4745
$as_echo_n "(cached) " >&6
4747
ac_check_lib_save_LIBS=$LIBS
4748
LIBS="-lssl -lcrypto $LIBS"
4749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750
/* end confdefs.h. */
4752
/* Override any GCC internal prototype to avoid an error.
4753
Use char because int might match the return type of a GCC
4754
builtin and then its argument prototype would still apply. */
4762
return SSL_accept ();
4767
if ac_fn_c_try_link "$LINENO"; then :
4768
ac_cv_lib_ssl_SSL_accept=yes
4770
ac_cv_lib_ssl_SSL_accept=no
4772
rm -f core conftest.err conftest.$ac_objext \
4773
conftest$ac_exeext conftest.$ac_ext
4774
LIBS=$ac_check_lib_save_LIBS
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
4777
$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
4778
if test "x$ac_cv_lib_ssl_SSL_accept" = x""yes; then :
4784
if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
4787
elif test "$withval" = "no"; then
4791
openssl_CPPFLAGS="-I$withval/include"
4792
openssl_LDFLAGS="-L$withval/lib "
4795
if test "x$CPPFLAGS" = "x"; then
4796
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$openssl_CPPFLAGS\""
4797
CPPFLAGS="$openssl_CPPFLAGS"
4799
apr_addto_bugger="$openssl_CPPFLAGS"
4800
for i in $apr_addto_bugger; do
4801
apr_addto_duplicate="0"
4802
for j in $CPPFLAGS; do
4803
if test "x$i" = "x$j"; then
4804
apr_addto_duplicate="1"
4808
if test $apr_addto_duplicate = "0"; then
4809
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
4810
CPPFLAGS="$CPPFLAGS $i"
4816
if test "x$LDFLAGS" = "x"; then
4817
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$openssl_LDFLAGS\""
4818
LDFLAGS="$openssl_LDFLAGS"
4820
apr_addto_bugger="$openssl_LDFLAGS"
4821
for i in $apr_addto_bugger; do
4822
apr_addto_duplicate="0"
4823
for j in $LDFLAGS; do
4824
if test "x$i" = "x$j"; then
4825
apr_addto_duplicate="1"
4829
if test $apr_addto_duplicate = "0"; then
4830
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
4831
LDFLAGS="$LDFLAGS $i"
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in $withval" >&5
4838
$as_echo "$as_me: checking for openssl in $withval" >&6;}
4839
for ac_header in openssl/x509.h
4841
ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
4842
if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
4843
cat >>confdefs.h <<_ACEOF
4844
#define HAVE_OPENSSL_X509_H 1
4846
openssl_have_headers=1
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
4852
$as_echo_n "checking for BN_init in -lcrypto... " >&6; }
4853
if test "${ac_cv_lib_crypto_BN_init+set}" = set; then :
4854
$as_echo_n "(cached) " >&6
4856
ac_check_lib_save_LIBS=$LIBS
4857
LIBS="-lcrypto $LIBS"
4858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859
/* end confdefs.h. */
4861
/* Override any GCC internal prototype to avoid an error.
4862
Use char because int might match the return type of a GCC
4863
builtin and then its argument prototype would still apply. */
4876
if ac_fn_c_try_link "$LINENO"; then :
4877
ac_cv_lib_crypto_BN_init=yes
4879
ac_cv_lib_crypto_BN_init=no
4881
rm -f core conftest.err conftest.$ac_objext \
4882
conftest$ac_exeext conftest.$ac_ext
4883
LIBS=$ac_check_lib_save_LIBS
4885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
4886
$as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
4887
if test "x$ac_cv_lib_crypto_BN_init" = x""yes; then :
4888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
4889
$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
4890
if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then :
4891
$as_echo_n "(cached) " >&6
4893
ac_check_lib_save_LIBS=$LIBS
4894
LIBS="-lssl -lcrypto $LIBS"
4895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896
/* end confdefs.h. */
4898
/* Override any GCC internal prototype to avoid an error.
4899
Use char because int might match the return type of a GCC
4900
builtin and then its argument prototype would still apply. */
4908
return SSL_accept ();
4913
if ac_fn_c_try_link "$LINENO"; then :
4914
ac_cv_lib_ssl_SSL_accept=yes
4916
ac_cv_lib_ssl_SSL_accept=no
4918
rm -f core conftest.err conftest.$ac_objext \
4919
conftest$ac_exeext conftest.$ac_ext
4920
LIBS=$ac_check_lib_save_LIBS
4922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
4923
$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
4924
if test "x$ac_cv_lib_ssl_SSL_accept" = x""yes; then :
4930
if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
4933
if test "x$APRUTIL_LDFLAGS" = "x"; then
4934
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
4935
APRUTIL_LDFLAGS="-L$withval/lib"
4937
apr_addto_bugger="-L$withval/lib"
4938
for i in $apr_addto_bugger; do
4939
apr_addto_duplicate="0"
4940
for j in $APRUTIL_LDFLAGS; do
4941
if test "x$i" = "x$j"; then
4942
apr_addto_duplicate="1"
4946
if test $apr_addto_duplicate = "0"; then
4947
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
4948
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
4954
if test "x$APRUTIL_INCLUDES" = "x"; then
4955
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
4956
APRUTIL_INCLUDES="-I$withval/include"
4958
apr_addto_bugger="-I$withval/include"
4959
for i in $apr_addto_bugger; do
4960
apr_addto_duplicate="0"
4961
for j in $APRUTIL_INCLUDES; do
4962
if test "x$i" = "x$j"; then
4963
apr_addto_duplicate="1"
4967
if test $apr_addto_duplicate = "0"; then
4968
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
4969
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
4976
if test "$apu_have_openssl" != "1"; then
4977
for ac_header in openssl/x509.h
4979
ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
4980
if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
4981
cat >>confdefs.h <<_ACEOF
4982
#define HAVE_OPENSSL_X509_H 1
4984
openssl_have_headers=1
4989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
4990
$as_echo_n "checking for BN_init in -lcrypto... " >&6; }
4991
if test "${ac_cv_lib_crypto_BN_init+set}" = set; then :
4992
$as_echo_n "(cached) " >&6
4994
ac_check_lib_save_LIBS=$LIBS
4995
LIBS="-lcrypto $LIBS"
4996
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997
/* end confdefs.h. */
4999
/* Override any GCC internal prototype to avoid an error.
5000
Use char because int might match the return type of a GCC
5001
builtin and then its argument prototype would still apply. */
5014
if ac_fn_c_try_link "$LINENO"; then :
5015
ac_cv_lib_crypto_BN_init=yes
5017
ac_cv_lib_crypto_BN_init=no
5019
rm -f core conftest.err conftest.$ac_objext \
5020
conftest$ac_exeext conftest.$ac_ext
5021
LIBS=$ac_check_lib_save_LIBS
5023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
5024
$as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
5025
if test "x$ac_cv_lib_crypto_BN_init" = x""yes; then :
5026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
5027
$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
5028
if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then :
5029
$as_echo_n "(cached) " >&6
5031
ac_check_lib_save_LIBS=$LIBS
5032
LIBS="-lssl -lcrypto $LIBS"
5033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034
/* end confdefs.h. */
5036
/* Override any GCC internal prototype to avoid an error.
5037
Use char because int might match the return type of a GCC
5038
builtin and then its argument prototype would still apply. */
5046
return SSL_accept ();
5051
if ac_fn_c_try_link "$LINENO"; then :
5052
ac_cv_lib_ssl_SSL_accept=yes
5054
ac_cv_lib_ssl_SSL_accept=no
5056
rm -f core conftest.err conftest.$ac_objext \
5057
conftest$ac_exeext conftest.$ac_ext
5058
LIBS=$ac_check_lib_save_LIBS
5060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
5061
$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
5062
if test "x$ac_cv_lib_ssl_SSL_accept" = x""yes; then :
5068
if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
5071
if test "x$APRUTIL_LDFLAGS" = "x"; then
5072
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
5073
APRUTIL_LDFLAGS="-L$withval/lib"
5075
apr_addto_bugger="-L$withval/lib"
5076
for i in $apr_addto_bugger; do
5077
apr_addto_duplicate="0"
5078
for j in $APRUTIL_LDFLAGS; do
5079
if test "x$i" = "x$j"; then
5080
apr_addto_duplicate="1"
5084
if test $apr_addto_duplicate = "0"; then
5085
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
5086
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
5092
if test "x$APRUTIL_INCLUDES" = "x"; then
5093
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
5094
APRUTIL_INCLUDES="-I$withval/include"
5096
apr_addto_bugger="-I$withval/include"
5097
for i in $apr_addto_bugger; do
5098
apr_addto_duplicate="0"
5099
for j in $APRUTIL_INCLUDES; do
5100
if test "x$i" = "x$j"; then
5101
apr_addto_duplicate="1"
5105
if test $apr_addto_duplicate = "0"; then
5106
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
5107
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
5115
ac_fn_c_check_decl "$LINENO" "EVP_PKEY_CTX_new" "ac_cv_have_decl_EVP_PKEY_CTX_new" "#include <openssl/evp.h>
5117
if test "x$ac_cv_have_decl_EVP_PKEY_CTX_new" = x""yes; then :
5123
cat >>confdefs.h <<_ACEOF
5124
#define HAVE_DECL_EVP_PKEY_CTX_NEW $ac_have_decl
5139
if test "$apu_have_openssl" = "1"; then
5140
LDADD_crypto_openssl="$openssl_LDFLAGS -lssl -lcrypto"
5143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for const input buffers in OpenSSL" >&5
5144
$as_echo_n "checking for const input buffers in OpenSSL... " >&6; }
5145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146
/* end confdefs.h. */
5147
#include <openssl/rsa.h>
5151
const unsigned char * buf;
5152
unsigned char * outbuf;
5155
RSA_private_decrypt(1,
5166
if ac_fn_c_try_compile "$LINENO"; then :
5167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168
$as_echo "yes" >&6; }
5170
$as_echo "#define CRYPTO_OPENSSL_CONST_BUFFERS 1" >>confdefs.h
5173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174
$as_echo "no" >&6; }
5176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183
CPPFLAGS="$old_cppflags"
5184
LDFLAGS="$old_ldflags"
5192
old_cppflags="$CPPFLAGS"
5193
old_ldflags="$LDFLAGS"
5196
# Check whether --with-nss was given.
5197
if test "${with_nss+set}" = set; then :
5200
if test "$withval" = "yes"; then
5201
if test -n "$ac_tool_prefix"; then
5202
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5203
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205
$as_echo_n "checking for $ac_word... " >&6; }
5206
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5207
$as_echo_n "(cached) " >&6
5211
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218
test -z "$as_dir" && as_dir=.
5219
for ac_exec_ext in '' $ac_executable_extensions; do
5220
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5222
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5233
if test -n "$PKG_CONFIG"; then
5234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5235
$as_echo "$PKG_CONFIG" >&6; }
5237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238
$as_echo "no" >&6; }
5243
if test -z "$ac_cv_path_PKG_CONFIG"; then
5244
ac_pt_PKG_CONFIG=$PKG_CONFIG
5245
# Extract the first word of "pkg-config", so it can be a program name with args.
5246
set dummy pkg-config; ac_word=$2
5247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248
$as_echo_n "checking for $ac_word... " >&6; }
5249
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5250
$as_echo_n "(cached) " >&6
5252
case $ac_pt_PKG_CONFIG in
5254
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261
test -z "$as_dir" && as_dir=.
5262
for ac_exec_ext in '' $ac_executable_extensions; do
5263
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5265
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5276
if test -n "$ac_pt_PKG_CONFIG"; then
5277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5278
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281
$as_echo "no" >&6; }
5284
if test "x$ac_pt_PKG_CONFIG" = x; then
5287
case $cross_compiling:$ac_tool_warned in
5289
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291
ac_tool_warned=yes ;;
5293
PKG_CONFIG=$ac_pt_PKG_CONFIG
5296
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5299
if test -n "$PKG_CONFIG"; then
5300
nss_CPPFLAGS=`$PKG_CONFIG --cflags-only-I nss`
5301
nss_LDFLAGS=`$PKG_CONFIG --libs nss`
5303
if test "x$CPPFLAGS" = "x"; then
5304
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\""
5305
CPPFLAGS="$nss_CPPFLAGS"
5307
apr_addto_bugger="$nss_CPPFLAGS"
5308
for i in $apr_addto_bugger; do
5309
apr_addto_duplicate="0"
5310
for j in $CPPFLAGS; do
5311
if test "x$i" = "x$j"; then
5312
apr_addto_duplicate="1"
5316
if test $apr_addto_duplicate = "0"; then
5317
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5318
CPPFLAGS="$CPPFLAGS $i"
5324
if test "x$LDFLAGS" = "x"; then
5325
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\""
5326
LDFLAGS="$nss_LDFLAGS"
5328
apr_addto_bugger="$nss_LDFLAGS"
5329
for i in $apr_addto_bugger; do
5330
apr_addto_duplicate="0"
5331
for j in $LDFLAGS; do
5332
if test "x$i" = "x$j"; then
5333
apr_addto_duplicate="1"
5337
if test $apr_addto_duplicate = "0"; then
5338
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
5339
LDFLAGS="$LDFLAGS $i"
5345
for ac_header in prerror.h nss/nss.h nss.h nss/pk11pub.h pk11pub.h
5347
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5349
eval as_val=\$$as_ac_Header
5350
if test "x$as_val" = x""yes; then :
5351
cat >>confdefs.h <<_ACEOF
5352
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5
5360
$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; }
5361
if test "${ac_cv_lib_nspr4_PR_Initialize+set}" = set; then :
5362
$as_echo_n "(cached) " >&6
5364
ac_check_lib_save_LIBS=$LIBS
5365
LIBS="-lnspr4 $LIBS"
5366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367
/* end confdefs.h. */
5369
/* Override any GCC internal prototype to avoid an error.
5370
Use char because int might match the return type of a GCC
5371
builtin and then its argument prototype would still apply. */
5375
char PR_Initialize ();
5379
return PR_Initialize ();
5384
if ac_fn_c_try_link "$LINENO"; then :
5385
ac_cv_lib_nspr4_PR_Initialize=yes
5387
ac_cv_lib_nspr4_PR_Initialize=no
5389
rm -f core conftest.err conftest.$ac_objext \
5390
conftest$ac_exeext conftest.$ac_ext
5391
LIBS=$ac_check_lib_save_LIBS
5393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5
5394
$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; }
5395
if test "x$ac_cv_lib_nspr4_PR_Initialize" = x""yes; then :
5396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5
5397
$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; }
5398
if test "${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+set}" = set; then :
5399
$as_echo_n "(cached) " >&6
5401
ac_check_lib_save_LIBS=$LIBS
5402
LIBS="-lnss3 -lnspr4 $LIBS"
5403
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404
/* end confdefs.h. */
5406
/* Override any GCC internal prototype to avoid an error.
5407
Use char because int might match the return type of a GCC
5408
builtin and then its argument prototype would still apply. */
5412
char PK11_CreatePBEV2AlgorithmID ();
5416
return PK11_CreatePBEV2AlgorithmID ();
5421
if ac_fn_c_try_link "$LINENO"; then :
5422
ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes
5424
ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no
5426
rm -f core conftest.err conftest.$ac_objext \
5427
conftest$ac_exeext conftest.$ac_ext
5428
LIBS=$ac_check_lib_save_LIBS
5430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5
5431
$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; }
5432
if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = x""yes; then :
5438
if test "$nss_have_headers" != "0" && test "$nss_have_libs" != "0"; then
5441
elif test "$withval" = "no"; then
5443
elif test "x$withval" != "x"; then
5445
nss_CPPFLAGS="-I$withval/include/nss -I$withval/include/nss3 -I$withval/include/nspr -I$withval/include/nspr4 -I$withval/include -I$withval/../public"
5446
nss_LDFLAGS="-L$withval/lib "
5449
if test "x$CPPFLAGS" = "x"; then
5450
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\""
5451
CPPFLAGS="$nss_CPPFLAGS"
5453
apr_addto_bugger="$nss_CPPFLAGS"
5454
for i in $apr_addto_bugger; do
5455
apr_addto_duplicate="0"
5456
for j in $CPPFLAGS; do
5457
if test "x$i" = "x$j"; then
5458
apr_addto_duplicate="1"
5462
if test $apr_addto_duplicate = "0"; then
5463
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5464
CPPFLAGS="$CPPFLAGS $i"
5470
if test "x$LDFLAGS" = "x"; then
5471
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\""
5472
LDFLAGS="$nss_LDFLAGS"
5474
apr_addto_bugger="$nss_LDFLAGS"
5475
for i in $apr_addto_bugger; do
5476
apr_addto_duplicate="0"
5477
for j in $LDFLAGS; do
5478
if test "x$i" = "x$j"; then
5479
apr_addto_duplicate="1"
5483
if test $apr_addto_duplicate = "0"; then
5484
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
5485
LDFLAGS="$LDFLAGS $i"
5491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss in $withval" >&5
5492
$as_echo "$as_me: checking for nss in $withval" >&6;}
5493
for ac_header in prerror.h nss/nss.h nss.h nss/pk11pub.h pk11pub.h
5495
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5496
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5497
eval as_val=\$$as_ac_Header
5498
if test "x$as_val" = x""yes; then :
5499
cat >>confdefs.h <<_ACEOF
5500
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5
5508
$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; }
5509
if test "${ac_cv_lib_nspr4_PR_Initialize+set}" = set; then :
5510
$as_echo_n "(cached) " >&6
5512
ac_check_lib_save_LIBS=$LIBS
5513
LIBS="-lnspr4 $LIBS"
5514
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515
/* end confdefs.h. */
5517
/* Override any GCC internal prototype to avoid an error.
5518
Use char because int might match the return type of a GCC
5519
builtin and then its argument prototype would still apply. */
5523
char PR_Initialize ();
5527
return PR_Initialize ();
5532
if ac_fn_c_try_link "$LINENO"; then :
5533
ac_cv_lib_nspr4_PR_Initialize=yes
5535
ac_cv_lib_nspr4_PR_Initialize=no
5537
rm -f core conftest.err conftest.$ac_objext \
5538
conftest$ac_exeext conftest.$ac_ext
5539
LIBS=$ac_check_lib_save_LIBS
5541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5
5542
$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; }
5543
if test "x$ac_cv_lib_nspr4_PR_Initialize" = x""yes; then :
5544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5
5545
$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; }
5546
if test "${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+set}" = set; then :
5547
$as_echo_n "(cached) " >&6
5549
ac_check_lib_save_LIBS=$LIBS
5550
LIBS="-lnss3 -lnspr4 $LIBS"
5551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552
/* end confdefs.h. */
5554
/* Override any GCC internal prototype to avoid an error.
5555
Use char because int might match the return type of a GCC
5556
builtin and then its argument prototype would still apply. */
5560
char PK11_CreatePBEV2AlgorithmID ();
5564
return PK11_CreatePBEV2AlgorithmID ();
5569
if ac_fn_c_try_link "$LINENO"; then :
5570
ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes
5572
ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no
5574
rm -f core conftest.err conftest.$ac_objext \
5575
conftest$ac_exeext conftest.$ac_ext
5576
LIBS=$ac_check_lib_save_LIBS
5578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5
5579
$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; }
5580
if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = x""yes; then :
5586
if test "$nss_have_headers" != "0" && test "$nss_have_libs" != "0"; then
5591
if test "$apu_have_nss" != "0"; then
5593
if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
5594
test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$nss_CPPFLAGS\""
5595
APRUTIL_PRIV_INCLUDES="$nss_CPPFLAGS"
5597
apr_addto_bugger="$nss_CPPFLAGS"
5598
for i in $apr_addto_bugger; do
5599
apr_addto_duplicate="0"
5600
for j in $APRUTIL_PRIV_INCLUDES; do
5601
if test "x$i" = "x$j"; then
5602
apr_addto_duplicate="1"
5606
if test $apr_addto_duplicate = "0"; then
5607
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
5608
APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
5624
if test "$apu_have_nss" = "1"; then
5625
LDADD_crypto_nss="$nss_LDFLAGS -lnspr4 -lnss3"
5632
CPPFLAGS="$old_cppflags"
5633
LDFLAGS="$old_ldflags"
5649
openssl_have_headers=0
5653
old_cppflags="$CPPFLAGS"
5654
old_ldflags="$LDFLAGS"
5657
# Check whether --with-openssl was given.
5658
if test "${with_openssl+set}" = set; then :
5659
withval=$with_openssl;
5660
if test "$withval" = "yes"; then
5661
for ac_header in openssl/x509.h
5663
ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
5664
if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
5665
cat >>confdefs.h <<_ACEOF
5666
#define HAVE_OPENSSL_X509_H 1
5668
openssl_have_headers=1
5673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
5674
$as_echo_n "checking for BN_init in -lcrypto... " >&6; }
5675
if test "${ac_cv_lib_crypto_BN_init+set}" = set; then :
5676
$as_echo_n "(cached) " >&6
5678
ac_check_lib_save_LIBS=$LIBS
5679
LIBS="-lcrypto $LIBS"
5680
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681
/* end confdefs.h. */
5683
/* Override any GCC internal prototype to avoid an error.
5684
Use char because int might match the return type of a GCC
5685
builtin and then its argument prototype would still apply. */
5698
if ac_fn_c_try_link "$LINENO"; then :
5699
ac_cv_lib_crypto_BN_init=yes
5701
ac_cv_lib_crypto_BN_init=no
5703
rm -f core conftest.err conftest.$ac_objext \
5704
conftest$ac_exeext conftest.$ac_ext
5705
LIBS=$ac_check_lib_save_LIBS
5707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
5708
$as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
5709
if test "x$ac_cv_lib_crypto_BN_init" = x""yes; then :
5710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
5711
$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
5712
if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then :
5713
$as_echo_n "(cached) " >&6
5715
ac_check_lib_save_LIBS=$LIBS
5716
LIBS="-lssl -lcrypto $LIBS"
5717
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718
/* end confdefs.h. */
5720
/* Override any GCC internal prototype to avoid an error.
5721
Use char because int might match the return type of a GCC
5722
builtin and then its argument prototype would still apply. */
5730
return SSL_accept ();
5735
if ac_fn_c_try_link "$LINENO"; then :
5736
ac_cv_lib_ssl_SSL_accept=yes
5738
ac_cv_lib_ssl_SSL_accept=no
5740
rm -f core conftest.err conftest.$ac_objext \
5741
conftest$ac_exeext conftest.$ac_ext
5742
LIBS=$ac_check_lib_save_LIBS
5744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
5745
$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
5746
if test "x$ac_cv_lib_ssl_SSL_accept" = x""yes; then :
5752
if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
5755
elif test "$withval" = "no"; then
5759
openssl_CPPFLAGS="-I$withval/include"
5760
openssl_LDFLAGS="-L$withval/lib "
5763
if test "x$CPPFLAGS" = "x"; then
5764
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$openssl_CPPFLAGS\""
5765
CPPFLAGS="$openssl_CPPFLAGS"
5767
apr_addto_bugger="$openssl_CPPFLAGS"
5768
for i in $apr_addto_bugger; do
5769
apr_addto_duplicate="0"
5770
for j in $CPPFLAGS; do
5771
if test "x$i" = "x$j"; then
5772
apr_addto_duplicate="1"
5776
if test $apr_addto_duplicate = "0"; then
5777
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5778
CPPFLAGS="$CPPFLAGS $i"
5784
if test "x$LDFLAGS" = "x"; then
5785
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$openssl_LDFLAGS\""
5786
LDFLAGS="$openssl_LDFLAGS"
5788
apr_addto_bugger="$openssl_LDFLAGS"
5789
for i in $apr_addto_bugger; do
5790
apr_addto_duplicate="0"
5791
for j in $LDFLAGS; do
5792
if test "x$i" = "x$j"; then
5793
apr_addto_duplicate="1"
5797
if test $apr_addto_duplicate = "0"; then
5798
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
5799
LDFLAGS="$LDFLAGS $i"
5805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in $withval" >&5
5806
$as_echo "$as_me: checking for openssl in $withval" >&6;}
5807
for ac_header in openssl/x509.h
5809
ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
5810
if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
5811
cat >>confdefs.h <<_ACEOF
5812
#define HAVE_OPENSSL_X509_H 1
5814
openssl_have_headers=1
5819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
5820
$as_echo_n "checking for BN_init in -lcrypto... " >&6; }
5821
if test "${ac_cv_lib_crypto_BN_init+set}" = set; then :
5822
$as_echo_n "(cached) " >&6
5824
ac_check_lib_save_LIBS=$LIBS
5825
LIBS="-lcrypto $LIBS"
5826
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827
/* end confdefs.h. */
5829
/* Override any GCC internal prototype to avoid an error.
5830
Use char because int might match the return type of a GCC
5831
builtin and then its argument prototype would still apply. */
5844
if ac_fn_c_try_link "$LINENO"; then :
5845
ac_cv_lib_crypto_BN_init=yes
5847
ac_cv_lib_crypto_BN_init=no
5849
rm -f core conftest.err conftest.$ac_objext \
5850
conftest$ac_exeext conftest.$ac_ext
5851
LIBS=$ac_check_lib_save_LIBS
5853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
5854
$as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
5855
if test "x$ac_cv_lib_crypto_BN_init" = x""yes; then :
5856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
5857
$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
5858
if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then :
5859
$as_echo_n "(cached) " >&6
5861
ac_check_lib_save_LIBS=$LIBS
5862
LIBS="-lssl -lcrypto $LIBS"
5863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864
/* end confdefs.h. */
5866
/* Override any GCC internal prototype to avoid an error.
5867
Use char because int might match the return type of a GCC
5868
builtin and then its argument prototype would still apply. */
5876
return SSL_accept ();
5881
if ac_fn_c_try_link "$LINENO"; then :
5882
ac_cv_lib_ssl_SSL_accept=yes
5884
ac_cv_lib_ssl_SSL_accept=no
5886
rm -f core conftest.err conftest.$ac_objext \
5887
conftest$ac_exeext conftest.$ac_ext
5888
LIBS=$ac_check_lib_save_LIBS
5890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
5891
$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
5892
if test "x$ac_cv_lib_ssl_SSL_accept" = x""yes; then :
5898
if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
5901
if test "x$APRUTIL_LDFLAGS" = "x"; then
5902
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
5903
APRUTIL_LDFLAGS="-L$withval/lib"
5905
apr_addto_bugger="-L$withval/lib"
5906
for i in $apr_addto_bugger; do
5907
apr_addto_duplicate="0"
5908
for j in $APRUTIL_LDFLAGS; do
5909
if test "x$i" = "x$j"; then
5910
apr_addto_duplicate="1"
5914
if test $apr_addto_duplicate = "0"; then
5915
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
5916
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
5922
if test "x$APRUTIL_INCLUDES" = "x"; then
5923
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
5924
APRUTIL_INCLUDES="-I$withval/include"
5926
apr_addto_bugger="-I$withval/include"
5927
for i in $apr_addto_bugger; do
5928
apr_addto_duplicate="0"
5929
for j in $APRUTIL_INCLUDES; do
5930
if test "x$i" = "x$j"; then
5931
apr_addto_duplicate="1"
5935
if test $apr_addto_duplicate = "0"; then
5936
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
5937
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
5944
if test "$apu_have_openssl" != "1"; then
5945
for ac_header in openssl/x509.h
5947
ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
5948
if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
5949
cat >>confdefs.h <<_ACEOF
5950
#define HAVE_OPENSSL_X509_H 1
5952
openssl_have_headers=1
5957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
5958
$as_echo_n "checking for BN_init in -lcrypto... " >&6; }
5959
if test "${ac_cv_lib_crypto_BN_init+set}" = set; then :
5960
$as_echo_n "(cached) " >&6
5962
ac_check_lib_save_LIBS=$LIBS
5963
LIBS="-lcrypto $LIBS"
5964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965
/* end confdefs.h. */
5967
/* Override any GCC internal prototype to avoid an error.
5968
Use char because int might match the return type of a GCC
5969
builtin and then its argument prototype would still apply. */
5982
if ac_fn_c_try_link "$LINENO"; then :
5983
ac_cv_lib_crypto_BN_init=yes
5985
ac_cv_lib_crypto_BN_init=no
5987
rm -f core conftest.err conftest.$ac_objext \
5988
conftest$ac_exeext conftest.$ac_ext
5989
LIBS=$ac_check_lib_save_LIBS
5991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
5992
$as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
5993
if test "x$ac_cv_lib_crypto_BN_init" = x""yes; then :
5994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
5995
$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
5996
if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then :
5997
$as_echo_n "(cached) " >&6
5999
ac_check_lib_save_LIBS=$LIBS
6000
LIBS="-lssl -lcrypto $LIBS"
6001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002
/* end confdefs.h. */
6004
/* Override any GCC internal prototype to avoid an error.
6005
Use char because int might match the return type of a GCC
6006
builtin and then its argument prototype would still apply. */
6014
return SSL_accept ();
6019
if ac_fn_c_try_link "$LINENO"; then :
6020
ac_cv_lib_ssl_SSL_accept=yes
6022
ac_cv_lib_ssl_SSL_accept=no
6024
rm -f core conftest.err conftest.$ac_objext \
6025
conftest$ac_exeext conftest.$ac_ext
6026
LIBS=$ac_check_lib_save_LIBS
6028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
6029
$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
6030
if test "x$ac_cv_lib_ssl_SSL_accept" = x""yes; then :
6036
if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
6039
if test "x$APRUTIL_LDFLAGS" = "x"; then
6040
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
6041
APRUTIL_LDFLAGS="-L$withval/lib"
6043
apr_addto_bugger="-L$withval/lib"
6044
for i in $apr_addto_bugger; do
6045
apr_addto_duplicate="0"
6046
for j in $APRUTIL_LDFLAGS; do
6047
if test "x$i" = "x$j"; then
6048
apr_addto_duplicate="1"
6052
if test $apr_addto_duplicate = "0"; then
6053
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
6054
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
6060
if test "x$APRUTIL_INCLUDES" = "x"; then
6061
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
6062
APRUTIL_INCLUDES="-I$withval/include"
6064
apr_addto_bugger="-I$withval/include"
6065
for i in $apr_addto_bugger; do
6066
apr_addto_duplicate="0"
6067
for j in $APRUTIL_INCLUDES; do
6068
if test "x$i" = "x$j"; then
6069
apr_addto_duplicate="1"
6073
if test $apr_addto_duplicate = "0"; then
6074
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
6075
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
6083
ac_fn_c_check_decl "$LINENO" "EVP_PKEY_CTX_new" "ac_cv_have_decl_EVP_PKEY_CTX_new" "#include <openssl/evp.h>
6085
if test "x$ac_cv_have_decl_EVP_PKEY_CTX_new" = x""yes; then :
6091
cat >>confdefs.h <<_ACEOF
6092
#define HAVE_DECL_EVP_PKEY_CTX_NEW $ac_have_decl
6107
if test "$apu_have_openssl" = "1"; then
6108
LDADD_crypto_openssl="$openssl_LDFLAGS -lssl -lcrypto"
6111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for const input buffers in OpenSSL" >&5
6112
$as_echo_n "checking for const input buffers in OpenSSL... " >&6; }
6113
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114
/* end confdefs.h. */
6115
#include <openssl/rsa.h>
6119
const unsigned char * buf;
6120
unsigned char * outbuf;
6123
RSA_private_decrypt(1,
6134
if ac_fn_c_try_compile "$LINENO"; then :
6135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6136
$as_echo "yes" >&6; }
6138
$as_echo "#define CRYPTO_OPENSSL_CONST_BUFFERS 1" >>confdefs.h
6141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142
$as_echo "no" >&6; }
6144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151
CPPFLAGS="$old_cppflags"
6152
LDFLAGS="$old_ldflags"
6160
old_cppflags="$CPPFLAGS"
6161
old_ldflags="$LDFLAGS"
6164
# Check whether --with-nss was given.
6165
if test "${with_nss+set}" = set; then :
6168
if test "$withval" = "yes"; then
6169
if test -n "$ac_tool_prefix"; then
6170
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6171
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173
$as_echo_n "checking for $ac_word... " >&6; }
6174
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6175
$as_echo_n "(cached) " >&6
6179
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186
test -z "$as_dir" && as_dir=.
6187
for ac_exec_ext in '' $ac_executable_extensions; do
6188
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6190
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6201
if test -n "$PKG_CONFIG"; then
6202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6203
$as_echo "$PKG_CONFIG" >&6; }
6205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206
$as_echo "no" >&6; }
6211
if test -z "$ac_cv_path_PKG_CONFIG"; then
6212
ac_pt_PKG_CONFIG=$PKG_CONFIG
6213
# Extract the first word of "pkg-config", so it can be a program name with args.
6214
set dummy pkg-config; ac_word=$2
6215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216
$as_echo_n "checking for $ac_word... " >&6; }
6217
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6218
$as_echo_n "(cached) " >&6
6220
case $ac_pt_PKG_CONFIG in
6222
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229
test -z "$as_dir" && as_dir=.
6230
for ac_exec_ext in '' $ac_executable_extensions; do
6231
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6232
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6233
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6244
if test -n "$ac_pt_PKG_CONFIG"; then
6245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6246
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249
$as_echo "no" >&6; }
6252
if test "x$ac_pt_PKG_CONFIG" = x; then
6255
case $cross_compiling:$ac_tool_warned in
6257
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259
ac_tool_warned=yes ;;
6261
PKG_CONFIG=$ac_pt_PKG_CONFIG
6264
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6267
if test -n "$PKG_CONFIG"; then
6268
nss_CPPFLAGS=`$PKG_CONFIG --cflags-only-I nss`
6269
nss_LDFLAGS=`$PKG_CONFIG --libs nss`
6271
if test "x$CPPFLAGS" = "x"; then
6272
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\""
6273
CPPFLAGS="$nss_CPPFLAGS"
6275
apr_addto_bugger="$nss_CPPFLAGS"
6276
for i in $apr_addto_bugger; do
6277
apr_addto_duplicate="0"
6278
for j in $CPPFLAGS; do
6279
if test "x$i" = "x$j"; then
6280
apr_addto_duplicate="1"
6284
if test $apr_addto_duplicate = "0"; then
6285
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6286
CPPFLAGS="$CPPFLAGS $i"
6292
if test "x$LDFLAGS" = "x"; then
6293
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\""
6294
LDFLAGS="$nss_LDFLAGS"
6296
apr_addto_bugger="$nss_LDFLAGS"
6297
for i in $apr_addto_bugger; do
6298
apr_addto_duplicate="0"
6299
for j in $LDFLAGS; do
6300
if test "x$i" = "x$j"; then
6301
apr_addto_duplicate="1"
6305
if test $apr_addto_duplicate = "0"; then
6306
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6307
LDFLAGS="$LDFLAGS $i"
6313
for ac_header in prerror.h nss/nss.h nss.h nss/pk11pub.h pk11pub.h
6315
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6316
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6317
eval as_val=\$$as_ac_Header
6318
if test "x$as_val" = x""yes; then :
6319
cat >>confdefs.h <<_ACEOF
6320
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5
6328
$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; }
6329
if test "${ac_cv_lib_nspr4_PR_Initialize+set}" = set; then :
6330
$as_echo_n "(cached) " >&6
6332
ac_check_lib_save_LIBS=$LIBS
6333
LIBS="-lnspr4 $LIBS"
6334
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335
/* end confdefs.h. */
6337
/* Override any GCC internal prototype to avoid an error.
6338
Use char because int might match the return type of a GCC
6339
builtin and then its argument prototype would still apply. */
6343
char PR_Initialize ();
6347
return PR_Initialize ();
6352
if ac_fn_c_try_link "$LINENO"; then :
6353
ac_cv_lib_nspr4_PR_Initialize=yes
6355
ac_cv_lib_nspr4_PR_Initialize=no
6357
rm -f core conftest.err conftest.$ac_objext \
6358
conftest$ac_exeext conftest.$ac_ext
6359
LIBS=$ac_check_lib_save_LIBS
6361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5
6362
$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; }
6363
if test "x$ac_cv_lib_nspr4_PR_Initialize" = x""yes; then :
6364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5
6365
$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; }
6366
if test "${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+set}" = set; then :
6367
$as_echo_n "(cached) " >&6
6369
ac_check_lib_save_LIBS=$LIBS
6370
LIBS="-lnss3 -lnspr4 $LIBS"
6371
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372
/* end confdefs.h. */
6374
/* Override any GCC internal prototype to avoid an error.
6375
Use char because int might match the return type of a GCC
6376
builtin and then its argument prototype would still apply. */
6380
char PK11_CreatePBEV2AlgorithmID ();
6384
return PK11_CreatePBEV2AlgorithmID ();
6389
if ac_fn_c_try_link "$LINENO"; then :
6390
ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes
6392
ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no
6394
rm -f core conftest.err conftest.$ac_objext \
6395
conftest$ac_exeext conftest.$ac_ext
6396
LIBS=$ac_check_lib_save_LIBS
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5
6399
$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; }
6400
if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = x""yes; then :
6406
if test "$nss_have_headers" != "0" && test "$nss_have_libs" != "0"; then
6409
elif test "$withval" = "no"; then
6411
elif test "x$withval" != "x"; then
6413
nss_CPPFLAGS="-I$withval/include/nss -I$withval/include/nss3 -I$withval/include/nspr -I$withval/include/nspr4 -I$withval/include -I$withval/../public"
6414
nss_LDFLAGS="-L$withval/lib "
6417
if test "x$CPPFLAGS" = "x"; then
6418
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\""
6419
CPPFLAGS="$nss_CPPFLAGS"
6421
apr_addto_bugger="$nss_CPPFLAGS"
6422
for i in $apr_addto_bugger; do
6423
apr_addto_duplicate="0"
6424
for j in $CPPFLAGS; do
6425
if test "x$i" = "x$j"; then
6426
apr_addto_duplicate="1"
6430
if test $apr_addto_duplicate = "0"; then
6431
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6432
CPPFLAGS="$CPPFLAGS $i"
6438
if test "x$LDFLAGS" = "x"; then
6439
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\""
6440
LDFLAGS="$nss_LDFLAGS"
6442
apr_addto_bugger="$nss_LDFLAGS"
6443
for i in $apr_addto_bugger; do
6444
apr_addto_duplicate="0"
6445
for j in $LDFLAGS; do
6446
if test "x$i" = "x$j"; then
6447
apr_addto_duplicate="1"
6451
if test $apr_addto_duplicate = "0"; then
6452
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6453
LDFLAGS="$LDFLAGS $i"
6459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss in $withval" >&5
6460
$as_echo "$as_me: checking for nss in $withval" >&6;}
6461
for ac_header in prerror.h nss/nss.h nss.h nss/pk11pub.h pk11pub.h
6463
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6464
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6465
eval as_val=\$$as_ac_Header
6466
if test "x$as_val" = x""yes; then :
6467
cat >>confdefs.h <<_ACEOF
6468
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5
6476
$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; }
6477
if test "${ac_cv_lib_nspr4_PR_Initialize+set}" = set; then :
6478
$as_echo_n "(cached) " >&6
6480
ac_check_lib_save_LIBS=$LIBS
6481
LIBS="-lnspr4 $LIBS"
6482
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483
/* end confdefs.h. */
6485
/* Override any GCC internal prototype to avoid an error.
6486
Use char because int might match the return type of a GCC
6487
builtin and then its argument prototype would still apply. */
6491
char PR_Initialize ();
6495
return PR_Initialize ();
6500
if ac_fn_c_try_link "$LINENO"; then :
6501
ac_cv_lib_nspr4_PR_Initialize=yes
6503
ac_cv_lib_nspr4_PR_Initialize=no
6505
rm -f core conftest.err conftest.$ac_objext \
6506
conftest$ac_exeext conftest.$ac_ext
6507
LIBS=$ac_check_lib_save_LIBS
6509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5
6510
$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; }
6511
if test "x$ac_cv_lib_nspr4_PR_Initialize" = x""yes; then :
6512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5
6513
$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; }
6514
if test "${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+set}" = set; then :
6515
$as_echo_n "(cached) " >&6
6517
ac_check_lib_save_LIBS=$LIBS
6518
LIBS="-lnss3 -lnspr4 $LIBS"
6519
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520
/* end confdefs.h. */
6522
/* Override any GCC internal prototype to avoid an error.
6523
Use char because int might match the return type of a GCC
6524
builtin and then its argument prototype would still apply. */
6528
char PK11_CreatePBEV2AlgorithmID ();
6532
return PK11_CreatePBEV2AlgorithmID ();
6537
if ac_fn_c_try_link "$LINENO"; then :
6538
ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes
6540
ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no
6542
rm -f core conftest.err conftest.$ac_objext \
6543
conftest$ac_exeext conftest.$ac_ext
6544
LIBS=$ac_check_lib_save_LIBS
6546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5
6547
$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; }
6548
if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = x""yes; then :
6554
if test "$nss_have_headers" != "0" && test "$nss_have_libs" != "0"; then
6559
if test "$apu_have_nss" != "0"; then
6561
if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
6562
test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$nss_CPPFLAGS\""
6563
APRUTIL_PRIV_INCLUDES="$nss_CPPFLAGS"
6565
apr_addto_bugger="$nss_CPPFLAGS"
6566
for i in $apr_addto_bugger; do
6567
apr_addto_duplicate="0"
6568
for j in $APRUTIL_PRIV_INCLUDES; do
6569
if test "x$i" = "x$j"; then
6570
apr_addto_duplicate="1"
6574
if test $apr_addto_duplicate = "0"; then
6575
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
6576
APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
6592
if test "$apu_have_nss" = "1"; then
6593
LDADD_crypto_nss="$nss_LDFLAGS -lnspr4 -lnss3"
6600
CPPFLAGS="$old_cppflags"
6601
LDFLAGS="$old_ldflags"
4610
6605
echo $ac_n "${nl}checking for ldap support..."