Ignore:
Timestamp:
Aug 4, 2005, 1:10:08 PM (15 years ago)
Author:
pguyot (Paul Guyot)
Message:

Fixed a problem with 10.3's tclsh sending cr instead of lf by default with puts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r13350 r13352  
    310310                case $host_os in
    311311                    darwin*)
    312                         tcl_autopath=`echo 'puts \$auto_path' | $TCLSH`
     312                        tcl_autopath=`echo 'puts -nonewline \$auto_path' | $TCLSH`
    313313                        for path in $tcl_autopath; do
    314314                            if test "$path" = "/Library/Tcl"; then
     
    327327                if test x"${ac_cv_c_tclpkgd}" = x ; then
    328328                    # Fudge a path from the first entry in the auto_path
    329                     tcl_pkgpath=`echo 'puts [[lindex \$auto_path 0]]' | $TCLSH`
     329                    tcl_pkgpath=`echo 'puts -nonewline [[lindex \$auto_path 0]]' | $TCLSH`
    330330                    if test -d "$tcl_pkgpath"; then
    331331                        ac_cv_c_tclpkgd="$tcl_pkgpath"
     
    400400
    401401        AC_MSG_CHECKING([whether tclsh was compiled with threads])
    402         tcl_threadenabled=`echo 'puts [[info exists tcl_platform\(threaded\)]]' | $TCLSH`
     402        tcl_threadenabled=`echo 'puts -nonewline [[info exists tcl_platform(threaded)]]' | $TCLSH`
    403403        if test "$tcl_threadenabled" = "1" ; then
    404404                AC_MSG_RESULT([yes])
     
    410410        if test "x$with_tclthread" = "xno" ; then
    411411                AC_MSG_CHECKING([for Tcl thread package])
    412                 tcl_present=`echo 'if {[[catch {package require Thread}]]} {puts 0} else {puts 1}' | $TCLSH`
     412                tcl_present=`echo 'if {[[catch {package require Thread}]]} {puts -nonewline 0} else {puts -nonewline 1}' | $TCLSH`
    413413                if test "$tcl_present" = "1" ; then
    414414                        AC_MSG_RESULT([yes])
Note: See TracChangeset for help on using the changeset viewer.