llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.84k stars 11.47k forks source link

Make MultiSource/Applications/sqlite3/speedtest.tcl portable. #8243

Open pwo opened 14 years ago

pwo commented 14 years ago
Bugzilla Link 7871
Version trunk
OS FreeBSD

Extended Description

FreeBSD installs TCL in /usr/local/bin.

Index: MultiSource/Applications/sqlite3/speedtest.tcl

--- MultiSource/Applications/sqlite3/speedtest.tcl (revision 110776) +++ MultiSource/Applications/sqlite3/speedtest.tcl (working copy) @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh #

Run this script using TCLSH to do a speed comparison between

various versions of SQLite and PostgreSQL and MySQL

pwo commented 14 years ago

Actually forget that patch, the problem is that llvm/configure doesn't find tclsh on freebsd, the default version is tclsh8.5 which is not checked for and TCLSH is not set so the script is executed without with an empty prefix (and because it is not +x it fails anyway with the patch in comment 0).

So how about something like this ?

Index: autoconf/m4/path_tclsh.m4

--- autoconf/m4/path_tclsh.m4 (revision 110730) +++ autoconf/m4/path_tclsh.m4 (working copy) @@ -24,7 +24,7 @@ dnl see if one is installed if test x"${ac_cv_path_tclsh}" = x ; then AC_MSG_RESULT(none)