44dnl
55dnl This file is covered by the same licence as the entire SQLite3 Multiple Ciphers package.
66
7- AC_INIT ( [ sqlite3mc] ,
[ 2.0.1 ] ,
[ [email protected] ] ) 7+ AC_INIT ( [ sqlite3mc] ,
[ 2.0.2 ] ,
[ [email protected] ] ) 88
99dnl This is the version tested with, might work with earlier ones.
1010AC_PREREQ ( [ 2.69] )
@@ -95,6 +95,15 @@ AC_ARG_WITH([ascon128],
9595AS_IF ( [ test "x$with_ascon128" = xno] ,
9696 [ AC_DEFINE ( [ HAVE_CIPHER_ASCON128] , [ 0] , [ Define if you have Ascon-128 disabled] ) ] )
9797
98+ AC_ARG_WITH ( [ aegis] ,
99+ [ AS_HELP_STRING ( [ --without-aegis] ,
100+ [ Disable support for AEGIS Encryption] ) ] ,
101+ [ ] ,
102+ [ with_aegis=yes] )
103+
104+ AS_IF ( [ test "x$with_aegis" = xno] ,
105+ [ AC_DEFINE ( [ HAVE_CIPHER_AEGIS] , [ 0] , [ Define if you have AEGIS disabled] ) ] )
106+
98107dnl Enable cipher codec
99108
100109AC_ARG_ENABLE ( codec ,
@@ -104,7 +113,8 @@ AC_ARG_ENABLE(codec,
104113 chacha20 [ default] : ChaCha20-Poly1305 Encryption
105114 sqlcipher: SQLCipher Encryption
106115 rc4: System.Data.SQLite RC4 Encryption
107- ascon128: Ascon-128 Encryption] ,
116+ ascon128: Ascon-128 Encryption
117+ aegis: AEGIS Encryption] ,
108118 [ if test "x$enableval" = "xaes128" && test "x$with_aes128cbc" = xyes ; then
109119 codec_type=CODEC_TYPE_AES128
110120 elif test "x$enableval" = "xaes256" && test "x$with_aes256cbc" = xyes ; then
@@ -117,6 +127,8 @@ AC_ARG_ENABLE(codec,
117127 codec_type=CODEC_TYPE_RC4
118128 elif test "x$enableval" = "xascon128" && test "x$with_ascon128" = xyes ; then
119129 codec_type=CODEC_TYPE_ASCON128
130+ elif test "x$enableval" = "xaegis" && test "x$with_aegis" = xyes ; then
131+ codec_type=CODEC_TYPE_AEGIS
120132 else
121133 echo
122134 echo "Error!"
@@ -131,7 +143,8 @@ AS_IF([test "x$with_aes128cbc" = xno &&
131143 test "x$with_chacha20" = xno &&
132144 test "x$with_sqlcipher" = xno &&
133145 test "x$with_rc4" = xno &&
134- test "x$with_ascon128" = xno] ,
146+ test "x$with_ascon128" = xno &&
147+ test "x$with_aegis" = xno] ,
135148 [ AC_DEFINE ( [ SQLITE_HAS_CODEC] , [ 0] , [ All ciphers disabled so encryption is disabled] ) ] )
136149
137150dnl Check for zlib
0 commit comments