@@ -682,6 +682,7 @@ infodir
682
682
docdir
683
683
oldincludedir
684
684
includedir
685
+ runstatedir
685
686
localstatedir
686
687
sharedstatedir
687
688
sysconfdir
@@ -768,6 +769,7 @@ datadir='${datarootdir}'
768
769
sysconfdir=' ${prefix}/etc'
769
770
sharedstatedir=' ${prefix}/com'
770
771
localstatedir=' ${prefix}/var'
772
+ runstatedir=' ${localstatedir}/run'
771
773
includedir=' ${prefix}/include'
772
774
oldincludedir=' /usr/include'
773
775
docdir=' ${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1020,6 +1022,15 @@ do
1020
1022
| -silent | --silent | --silen | --sile | --sil)
1021
1023
silent=yes ;;
1022
1024
1025
+ -runstatedir | --runstatedir | --runstatedi | --runstated \
1026
+ | --runstate | --runstat | --runsta | --runst | --runs \
1027
+ | --run | --ru | --r)
1028
+ ac_prev=runstatedir ;;
1029
+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1030
+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1031
+ | --run=* | --ru=* | --r=* )
1032
+ runstatedir=$ac_optarg ;;
1033
+
1023
1034
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024
1035
ac_prev=sbindir ;;
1025
1036
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157
1168
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158
1169
datadir sysconfdir sharedstatedir localstatedir includedir \
1159
1170
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160
- libdir localedir mandir
1171
+ libdir localedir mandir runstatedir
1161
1172
do
1162
1173
eval ac_val=\$ $ac_var
1163
1174
# Remove trailing slashes.
@@ -1310,6 +1321,7 @@ Fine tuning of the installation directories:
1310
1321
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311
1322
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312
1323
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324
+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1313
1325
--libdir=DIR object code libraries [EPREFIX/lib]
1314
1326
--includedir=DIR C header files [PREFIX/include]
1315
1327
--oldincludedir=DIR C header files for non-gcc [/usr/include]
5196
5208
if test " x$PKG_CONFIG " ! = " x" ; then
5197
5209
5198
5210
pkg_failed=no
5199
- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for libcrypto >= 1.0.1 " >&5
5200
- $as_echo_n " checking for libcrypto >= 1.0.1 ... " >&6 ; }
5211
+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for crypto " >&5
5212
+ $as_echo_n " checking for crypto ... " >&6 ; }
5201
5213
5202
5214
if test -n " $crypto_CFLAGS " ; then
5203
5215
pkg_cv_crypto_CFLAGS=" $crypto_CFLAGS "
5237
5249
5238
5250
5239
5251
if test $pkg_failed = yes; then
5240
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5252
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5241
5253
$as_echo " no" >&6 ; }
5242
5254
5243
5255
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
@@ -5264,7 +5276,7 @@ Alternatively, you may set the environment variables crypto_CFLAGS
5264
5276
and crypto_LIBS to avoid the need to call pkg-config.
5265
5277
See the pkg-config man page for more details." " $LINENO " 5
5266
5278
elif test $pkg_failed = untried; then
5267
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5279
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5268
5280
$as_echo " no" >&6 ; }
5269
5281
{ { $as_echo " $as_me :${as_lineno-$LINENO } : error: in \` $ac_pwd ':" >&5
5270
5282
$as_echo " $as_me : error: in \` $ac_pwd ':" >&2 ; }
@@ -5568,14 +5580,74 @@ as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
5568
5580
See \` config.log' for more details" " $LINENO " 5; }
5569
5581
fi
5570
5582
5583
+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for library containing EVP_chacha20_poly1305" >&5
5584
+ $as_echo_n " checking for library containing EVP_chacha20_poly1305... " >&6 ; }
5585
+ if ${ac_cv_search_EVP_chacha20_poly1305+: } false ; then :
5586
+ $as_echo_n " (cached) " >&6
5587
+ else
5588
+ ac_func_search_save_LIBS=$LIBS
5589
+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
5590
+ /* end confdefs.h. */
5591
+
5592
+ /* Override any GCC internal prototype to avoid an error.
5593
+ Use char because int might match the return type of a GCC
5594
+ builtin and then its argument prototype would still apply. */
5595
+ #ifdef __cplusplus
5596
+ extern "C"
5597
+ #endif
5598
+ char EVP_chacha20_poly1305 ();
5599
+ int
5600
+ main ()
5601
+ {
5602
+ return EVP_chacha20_poly1305 ();
5603
+ ;
5604
+ return 0;
5605
+ }
5606
+ _ACEOF
5607
+ for ac_lib in ' ' crypto; do
5608
+ if test -z " $ac_lib " ; then
5609
+ ac_res=" none required"
5610
+ else
5611
+ ac_res=-l$ac_lib
5612
+ LIBS=" -l$ac_lib $ac_func_search_save_LIBS "
5613
+ fi
5614
+ if ac_fn_c_try_link " $LINENO " ; then :
5615
+ ac_cv_search_EVP_chacha20_poly1305=$ac_res
5616
+ fi
5617
+ rm -f core conftest.err conftest.$ac_objext \
5618
+ conftest$ac_exeext
5619
+ if ${ac_cv_search_EVP_chacha20_poly1305+: } false ; then :
5620
+ break
5621
+ fi
5622
+ done
5623
+ if ${ac_cv_search_EVP_chacha20_poly1305+: } false ; then :
5624
+
5625
+ else
5626
+ ac_cv_search_EVP_chacha20_poly1305=no
5627
+ fi
5628
+ rm conftest.$ac_ext
5629
+ LIBS=$ac_func_search_save_LIBS
5630
+ fi
5631
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_search_EVP_chacha20_poly1305 " >&5
5632
+ $as_echo " $ac_cv_search_EVP_chacha20_poly1305 " >&6 ; }
5633
+ ac_res=$ac_cv_search_EVP_chacha20_poly1305
5634
+ if test " $ac_res " ! = no; then :
5635
+ test " $ac_res " = " none required" || LIBS=" $ac_res $LIBS "
5636
+
5637
+
5638
+ $as_echo " #define CHAPOLY 1" >> confdefs.h
5639
+
5640
+ CHAPOLY_OBJ=" crypto/cipher/chacha20_poly1305_ossl.o"
5641
+ fi
5642
+
5571
5643
5572
5644
5573
5645
$as_echo " #define GCM 1" >> confdefs.h
5574
5646
5575
5647
5576
5648
$as_echo " #define OPENSSL 1" >> confdefs.h
5577
5649
5578
- AES_ICM_OBJS=" crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
5650
+ AES_ICM_OBJS=" crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o $CHAPOLY_OBJ "
5579
5651
HMAC_OBJS=crypto/hash/hmac_ossl.o
5580
5652
USE_EXTERNAL_CRYPTO=1
5581
5653
5796
5868
5797
5869
5798
5870
if test $pkg_failed = yes; then
5799
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5871
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5800
5872
$as_echo " no" >&6 ; }
5801
5873
5802
5874
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
@@ -5823,7 +5895,7 @@ Alternatively, you may set the environment variables nss_CFLAGS
5823
5895
and nss_LIBS to avoid the need to call pkg-config.
5824
5896
See the pkg-config man page for more details." " $LINENO " 5
5825
5897
elif test $pkg_failed = untried; then
5826
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5898
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5827
5899
$as_echo " no" >&6 ; }
5828
5900
{ { $as_echo " $as_me :${as_lineno-$LINENO } : error: in \` $ac_pwd ':" >&5
5829
5901
$as_echo " $as_me : error: in \` $ac_pwd ':" >&2 ; }
@@ -5968,9 +6040,12 @@ fi
5968
6040
$as_echo " #define GCM 1" >> confdefs.h
5969
6041
5970
6042
6043
+ $as_echo " #define CHAPOLY 1" >> confdefs.h
6044
+
6045
+
5971
6046
$as_echo " #define NSS 1" >> confdefs.h
5972
6047
5973
- AES_ICM_OBJS=" crypto/cipher/aes_icm_nss.o crypto/cipher/aes_gcm_nss.o"
6048
+ AES_ICM_OBJS=" crypto/cipher/aes_icm_nss.o crypto/cipher/aes_gcm_nss.o crypto/cipher/chacha20_poly1305_nss.o "
5974
6049
5975
6050
# TODO(RLB): Use NSS for HMAC
5976
6051
HMAC_OBJS=" crypto/hash/hmac.o crypto/hash/sha1.o"
0 commit comments