summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-16 03:44:28 -0500
committermidipix <writeonce@midipix.org>2018-12-19 20:16:27 -0500
commit644d3c4d97daeb298b375526821db2fdb3810b77 (patch)
treeb7f09f6c0591131517c8e6bb594468ccb9d5eca9 /project
parentdc46408138199c27c408664f7da0d09e0cf60a0e (diff)
downloadsbpython2-644d3c4d97daeb298b375526821db2fdb3810b77.tar.bz2
sbpython2-644d3c4d97daeb298b375526821db2fdb3810b77.tar.xz
custom config: detect the version of the target's tcl/tk libraries.
Diffstat (limited to 'project')
-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
}