summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-19 17:23:17 -0500
committermidipix <writeonce@midipix.org>2018-12-19 22:12:12 -0500
commit2cf4337bc32b7baad49649232b1c01215adeb5ba (patch)
tree53a9c56e576279267d9fb4aafc8d4dd637ded12d /project
parent29547005dcc952a634123ce08643d2f463ffc613 (diff)
downloadsbpython3-2cf4337bc32b7baad49649232b1c01215adeb5ba.tar.bz2
sbpython3-2cf4337bc32b7baad49649232b1c01215adeb5ba.tar.xz
project: custom config: refactored unit-specific tests.
Diffstat (limited to 'project')
-rw-r--r--project/config/cfgdefs.sh21
1 files changed, 15 insertions, 6 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index a94a143..f184cb3 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -134,20 +134,29 @@ cfgdefs_perform_target_tests()
# common tests
cfgdefs_perform_common_tests
+ # ncurses libs
+ mb_cfgtest_makevar='LDFLAGS_NCURSES_LIBS'
+ cfgtest_makevar_append $mb_ncurses_libs
+
# ndbm
+ cfgtest_newline
+ cfgtest_comment 'ndbm'
cfgtest_header_presence 'ndbm.h'
# openssl
- mb_cfgtest_headers='openssl/x509.h'
+ cfgtest_newline
+ cfgtest_comment 'openssl/libressl'
- cfgtest_interface_presence 'X509_NAME_ENTRY_set' \
- && cfgtest_cflags_append '-DOPENSSL_VERSION_1_1'
+ mb_cfgtest_headers='openssl/x509.h'
- # ncurses libs
- mb_cfgtest_makevar='LDFLAGS_NCURSES_LIBS'
- cfgtest_makevar_append $mb_ncurses_libs
+ if cfgtest_interface_presence 'X509_NAME_ENTRY_set'; then
+ cfgtest_cflags_append '-DOPENSSL_VERSION_1_1'
+ fi
# tcl/tk libc
+ cfgtest_newline
+ cfgtest_comment 'tcl/tk'
+
for mb_tcltk_ver in 8.9 8.8 8.7 8.6 8.5; do
if [ -z "$mb_tcltk_libs" ]; then
mb_tcltk_libs="-ltk$mb_tcltk_ver -ltcl$mb_tcltk_ver"