summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-19 17:23:17 -0500
committermidipix <writeonce@midipix.org>2018-12-19 20:16:28 -0500
commit817f377b77db3ab144d10f188e95dd70332852df (patch)
tree981daaf0daeae9d3b2f8e6be994d12dae844b865 /project/config
parent0d929e5cc17857483810f994de5e5334dfc46d02 (diff)
downloadsbpython2-817f377b77db3ab144d10f188e95dd70332852df.tar.bz2
sbpython2-817f377b77db3ab144d10f188e95dd70332852df.tar.xz
project: custom config: refactored unit-specific tests.
Diffstat (limited to 'project/config')
-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"