Changeset 2063 for trunk/configure.in
- Timestamp:
- Jan 25, 2011, 8:49:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r2058 r2063 123 123 [rp_with_tclsh=$withval]) 124 124 125 TCLSH=126 if test "${rp_with_tclsh}" != "no" ; then127 AC_MSG_CHECKING([for tclsh])128 if test -x "${rp_with_tclsh}/bin/tclsh"129 then130 TCLSH="${rp_with_tclsh}/bin/tclsh"131 else132 if test -x "${rp_with_tclsh}"133 then134 TCLSH="${rp_with_tclsh}"135 else136 if test -x "${exec_prefix}/bin/tclsh"137 then138 TCLSH="${exec_prefix}/bin/tclsh"139 else140 for v in 8.4 8.5 8.6 ; do141 if test -x "${exec_prefix}/bin/tclsh${v}"142 then143 TCLSH="${exec_prefix}/bin/tclsh${v}"144 break145 fi146 done147 fi148 fi149 fi150 if ! test -x ${TCLSH} ; then151 AC_PATH_PROG(TCLSH, tclsh)152 fi153 fi154 AC_MSG_RESULT([${TCLSH}])155 AC_SUBST(TCLSH)156 157 125 TCL_VERSION="8.4" 158 126 for dir in \ … … 165 133 fi 166 134 done 135 136 TCLSH="" 137 if test "${rp_with_tclsh}" != "no" ; then 138 tclsh="tclsh${TCL_VERSION}" 139 if test "${rp_with_tclsh}" = "yes" ; then 140 AC_PATH_PROG(TCLSH, ${tclsh}, [], [${exec_prefix}/bin:${PATH}]) 141 else 142 AC_PATH_PROG(TCLSH, ${tclsh}, [], [${rp_with_tclsh}/bin:${rp_with_tclsh}]) 143 fi 144 if test "x${TCLSH}" = "x" ; then 145 AC_ERROR([cant find tclsh]) 146 fi 147 fi 148 AC_SUBST(TCLSH) 149 150 167 151 TCL_INC_SPEC="$TCL_INCLUDE_SPEC" 168 152 169 153 if test "x$rp_with_tcllib" != "x" ; then 170 171 154 tclconfig="${rp_with_tcllib}/tclConfig.sh" 155 if test -f "$tclconfig" ; then 172 156 . $tclconfig 173 174 157 fi 158 TCL_LIB_SPEC="-L${rp_with_tcllib} -ltcl${TCL_VERSION}" 175 159 fi 176 160 if test "x$rp_with_tclinclude" != "x" ; then
Note: See TracChangeset
for help on using the changeset viewer.