From 970c7e8f454fdaaa5d8826b5d696c05208e5a233 Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Fri, 26 Jan 2018 18:51:38 -0800 Subject: Tell R's configure about tcltk config (#7085) * Tell R's configure about tcltk config Add configure arguments that specify the location of the tcl and tk config scripts. Fixes #7072 * Flake8 cleanup --- var/spack/repos/builtin/packages/r/package.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/r/package.py b/var/spack/repos/builtin/packages/r/package.py index 8235e8bd24..ebd83ec9a8 100644 --- a/var/spack/repos/builtin/packages/r/package.py +++ b/var/spack/repos/builtin/packages/r/package.py @@ -96,11 +96,16 @@ class R(AutotoolsPackage): spec = self.spec prefix = self.prefix + tclConfig_path = join_path(spec['tcl'].prefix.lib, 'tclConfig.sh') + tkConfig_path = join_path(spec['tk'].prefix.lib, 'tkConfig.sh') + config_args = [ '--libdir={0}'.format(join_path(prefix, 'rlib')), '--enable-R-shlib', '--enable-BLAS-shlib', - '--enable-R-framework=no' + '--enable-R-framework=no', + '--with-tcl-config={0}'.format(tclConfig_path), + '--with-tk-config={0}'.format(tkConfig_path), ] if '+external-lapack' in spec: -- cgit v1.2.3-70-g09d2