This repository was archived by the owner on Jan 30, 2023. It is now read-only.
File tree 1 file changed +21
-7
lines changed
1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change 1
1
SAGE_SPKG_CONFIGURE([ openssl] , [
2
- AX_CHECK_OPENSSL ( [ ] , [
2
+ AX_CHECK_OPENSSL ( [
3
+ AC_MSG_CHECKING ( [ whether OpenSSL >= 1.1.1, as required by PEP 644] )
4
+ AC_COMPILE_IFELSE (
5
+ dnl Trac #32580: Need OpenSSL >= 1.1.1 for PEP 644
6
+ dnl If M is the number from OPENSSL_VERSION_MAJOR
7
+ dnl NN is the number from OPENSSL_VERSION_MINOR
8
+ dnl PP is the number from OPENSSL_VERSION_PATCH
9
+ dnl -> OPENSSL_VERSION_NUMBER is 0xMNN00PP0L
10
+ [ AC_LANG_PROGRAM ( [ [
11
+ #include <openssl/ssl.h>
12
+ #if OPENSSL_VERSION_NUMBER < 0x10100010L
13
+ # error OpenSSL >= 1.1.1 is required according to PEP 644
14
+ #endif
15
+ ] ] , [ ] ) ] , [
16
+ AC_MSG_RESULT ( [ yes] )
17
+ sage_spkg_install_openssl=no
18
+ ] , [
19
+ AC_MSG_RESULT ( [ no] )
20
+ sage_spkg_install_openssl=yes
21
+ ] )
22
+ ] , [ dnl No openssl found
3
23
sage_spkg_install_openssl=yes
4
- AC_MSG_WARN ( [ Because your system does not have a suitable OpenSSL library,
5
- Sage will install a prerelease version of OpenSSL from the 3.0 alpha series.
6
- The OpenSSL Project Team indicates that this prerelease version has been provided
7
- for testing ONLY. It should NOT be used for security critical purposes.
8
- We strongly recommend to install OpenSSL using the system package manager and
9
- to re-run configure.] )
10
24
] )
11
25
] )
You can’t perform that action at this time.
0 commit comments