diff options
| author | 2014-12-14 08:24:26 -0500 | |
|---|---|---|
| committer | 2014-12-14 08:24:26 -0500 | |
| commit | 89214766d8e3e7b8dd749a1fa18a5b9727f5010d (patch) | |
| tree | 34ad5aa84ac9674ebb5b7a23b5a3377e8629ee33 /Plugins/ScriptingTcl/ScriptingTcl.pro | |
| parent | 7167ce41b61d2ba2cdb526777a4233eb84a3b66a (diff) | |
Imported Upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'Plugins/ScriptingTcl/ScriptingTcl.pro')
| -rw-r--r-- | Plugins/ScriptingTcl/ScriptingTcl.pro | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Plugins/ScriptingTcl/ScriptingTcl.pro b/Plugins/ScriptingTcl/ScriptingTcl.pro index 4b89ce6..08d8796 100644 --- a/Plugins/ScriptingTcl/ScriptingTcl.pro +++ b/Plugins/ScriptingTcl/ScriptingTcl.pro @@ -36,6 +36,17 @@ linux: { # Find tclConfig.sh TCL_CONFIG_DIR = $$system(echo "puts [info library]" | tclsh) TCL_CONFIG = $$TCL_CONFIG_DIR/tclConfig.sh + message("Looking for $$TCL_CONFIG") + !exists($$TCL_CONFIG) { + # Debian case + DEBIAN_ARCH_PATH=$$system(dpkg-architecture -qDEB_HOST_MULTIARCH) + TCL_CONFIG = /usr/lib/$$DEBIAN_ARCH_PATH/tcl$$TCL_VERSION/tclConfig.sh + } + message("Looking for $$TCL_CONFIG") + !exists($$TCL_CONFIG) { + error("Could not find tclConfig.sh file. You can define its absolute path by qmake parameter: TCL_CONFIG=/path/to/tclConfig.sh") + } + message("Using tclconfig: $$TCL_CONFIG") # Define other libs required when linking with Tcl eval($$system(cat $$TCL_CONFIG | grep TCL_LIBS)) |
