environment-modules: fix build (#26632)

PR #25904 moved the `--with-tcl` option to only older versions. However,
without this option, the build breaks:
```
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh
```
This commit is contained in:
Michael Kuhn 2021-10-09 19:43:54 +02:00 committed by GitHub
parent 9194ca1e2f
commit 5deb8a05c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,8 @@ def install(self, spec, prefix):
config_args = [
"--prefix=" + prefix,
# It looks for tclConfig.sh
"--with-tcl=" + tcl.libs.directories[0],
'--datarootdir=' + prefix.share
]
@ -117,8 +119,6 @@ def install(self, spec, prefix):
config_args.extend([
"--without-tclx",
"--with-tclx-ver=0.0",
# It looks for tclConfig.sh
"--with-tcl=" + tcl.libs.directories[0],
"--with-tcl-ver={0}".format(tcl.version.up_to(2)),
'--disable-versioning'
])