summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-16 03:44:28 -0500
committermidipix <writeonce@midipix.org>2018-12-18 20:38:39 -0500
commit84ca86ba85ae6f789cc4cedeae82db90915e953b (patch)
tree9860ceb5ba538e32aa0d2202fec737625b4d10e9 /project/config
parentbacfcfbe9de0d71a29041da6e0636e7ec9f2c446 (diff)
downloadsbpython3-84ca86ba85ae6f789cc4cedeae82db90915e953b.tar.bz2
sbpython3-84ca86ba85ae6f789cc4cedeae82db90915e953b.tar.xz
custom config: detect the version of the target's tcl/tk libraries.
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 8b7ac20..245ba3f 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -134,6 +134,18 @@ cfgdefs_perform_target_tests()
mb_cfgtest_makevar='LDFLAGS_NCURSES_LIBS'
cfgtest_makevar_append $mb_ncurses_libs
+ # tcl/tk libc
+ 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"
+ cfgtest_library_presence $mb_tcltk_libs \
+ || mb_tcltk_libs=''
+ fi
+ done
+
+ mb_cfgtest_makevar='LDFLAGS_TCLTK_LIBS'
+ cfgtest_makevar_append "$mb_tcltk_libs"
+
# pretty cfgdefs.mk
cfgtest_newline
}