Changeset 2063 for trunk/configure.in


Ignore:
Timestamp:
Jan 25, 2011, 8:49:29 AM (14 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r2058 r2063  
    123123    [rp_with_tclsh=$withval])
    124124
    125 TCLSH=
    126 if test "${rp_with_tclsh}" != "no" ; then
    127   AC_MSG_CHECKING([for tclsh])
    128   if test -x "${rp_with_tclsh}/bin/tclsh"
    129   then
    130     TCLSH="${rp_with_tclsh}/bin/tclsh"
    131   else
    132     if test -x "${rp_with_tclsh}"
    133     then
    134       TCLSH="${rp_with_tclsh}"
    135     else
    136       if test -x "${exec_prefix}/bin/tclsh"
    137       then
    138         TCLSH="${exec_prefix}/bin/tclsh"
    139       else
    140         for v in 8.4 8.5 8.6 ; do
    141           if test -x "${exec_prefix}/bin/tclsh${v}"
    142           then
    143             TCLSH="${exec_prefix}/bin/tclsh${v}"
    144             break
    145           fi
    146         done
    147       fi
    148     fi
    149   fi
    150   if ! test -x ${TCLSH} ; then
    151     AC_PATH_PROG(TCLSH, tclsh)
    152   fi
    153 fi
    154 AC_MSG_RESULT([${TCLSH}])
    155 AC_SUBST(TCLSH)
    156 
    157125TCL_VERSION="8.4"
    158126for dir in \
     
    165133  fi
    166134done
     135
     136TCLSH=""
     137if 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
     147fi
     148AC_SUBST(TCLSH)
     149
     150 
    167151TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    168152
    169153if test "x$rp_with_tcllib" != "x" ; then
    170    tclconfig="${rp_with_tcllib}/tclConfig.sh"
    171    if test -f "$tclconfig" ; then
     154  tclconfig="${rp_with_tcllib}/tclConfig.sh"
     155  if test -f "$tclconfig" ; then
    172156    . $tclconfig
    173    fi
    174    TCL_LIB_SPEC="-L${rp_with_tcllib} -ltcl${TCL_VERSION}"
     157  fi
     158  TCL_LIB_SPEC="-L${rp_with_tcllib} -ltcl${TCL_VERSION}"
    175159fi
    176160if test "x$rp_with_tclinclude" != "x" ; then
Note: See TracChangeset for help on using the changeset viewer.