Changeset 1757 for branches/blt4
- Timestamp:
- Jun 14, 2010 12:04:02 PM (14 years ago)
- Location:
- branches/blt4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/configure
r1744 r1757 7704 7704 *) 7705 7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7706 as_dummy="${with_octave}/bin /mkoctfile:${with_octave}"7706 as_dummy="${with_octave}/bin:${with_octave}" 7707 7707 for as_dir in $as_dummy 7708 7708 do … … 8038 8038 8039 8039 8040 rappture_with_ruby="yes"8040 with_ruby="yes" 8041 8041 8042 8042 RUBY="" … … 8046 8046 # Check whether --with-ruby was given. 8047 8047 if test "${with_ruby+set}" = set; then : 8048 withval=$with_ruby; rappture_with_ruby=$with_val8049 fi 8050 8051 if test "${ rappture_with_ruby}" != "no" ; then8052 if test "${ rappture_with_ruby}" = "yes" ; then8048 withval=$with_ruby; with_ruby=$with_val 8049 fi 8050 8051 if test "${with_ruby}" != "no" ; then 8052 if test "${with_ruby}" = "yes" ; then 8053 8053 # Extract the first word of "ruby", so it can be a program name with args. 8054 8054 set dummy ruby; ac_word=$2 … … 8105 8105 *) 8106 8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8107 as_dummy="${ rappture_with_ruby}/bin/ruby:${rappture_with_ruby}"8107 as_dummy="${with_ruby}/bin/ruby:${with_ruby}" 8108 8108 for as_dir in $as_dummy 8109 8109 do … … 8456 8456 8457 8457 8458 rappture_with_java="yes"8458 with_java="yes" 8459 8459 JAVA="" 8460 8460 JAVAH="" … … 8462 8462 JAVA_DEV_PKG="no" 8463 8463 8464 JDK= 8465 JAVA_HOME= 8466 JAVA_INC_DIR= 8467 JAVA_INC_SPEC= 8468 8469 # If java exists, let's look for the jni.h file. 8470 if test "x${JAVA}" != "x" ; then 8471 for d in \ 8472 ${with_java} \ 8473 /apps/java/jdk1.6.0_01 \ 8474 /opt/icedtea6-* \ 8475 /opt/sun-jdk-1.6* \ 8476 /opt/sun-jdk-1.5* 8477 do 8478 if test -r "${d}/include/jni.h" ; then 8479 JDK=${d} 8480 break; 8481 fi 8482 done 8483 JAVA_HOME=$JDK 8484 JAVA_INC_DIR=${JDK}/include 8485 JAVA_INC_SPEC="-I${JDK}/include -I${JDK}/include/linux" 8486 fi 8487 8464 8488 8465 8489 # Check whether --with-java was given. 8466 8490 if test "${with_java+set}" = set; then : 8467 withval=$with_java; rappture_with_java=$with_val8468 fi 8469 8470 if test "${ rappture_with_java}" != "no" ; then8471 if test "${ rappture_with_java}" = "yes" ; then8491 withval=$with_java; with_java=$with_val 8492 fi 8493 8494 if test "${with_java}" != "no" ; then 8495 if test "${with_java}" = "yes" ; then 8472 8496 # Extract the first word of "java", so it can be a program name with args. 8473 8497 set dummy java; ac_word=$2 … … 8604 8628 *) 8605 8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8606 as_dummy="${ rappture_with_java}/bin/java:${rappture_with_java}"8630 as_dummy="${with_java}/bin:${with_java}" 8607 8631 for as_dir in $as_dummy 8608 8632 do … … 8645 8669 *) 8646 8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8647 as_dummy="${ rappture_with_java}/bin/java:${rappture_with_java}"8671 as_dummy="${with_java}/bin:${with_java}" 8648 8672 for as_dir in $as_dummy 8649 8673 do … … 8686 8710 *) 8687 8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8688 as_dummy="${ rappture_with_java}/bin/java:${rappture_with_java}"8712 as_dummy="${with_java}/bin:${with_java}" 8689 8713 for as_dir in $as_dummy 8690 8714 do … … 8715 8739 8716 8740 fi 8717 fi8718 JDK=8719 JAVA_HOME=8720 JAVA_INC_DIR=8721 JAVA_INC_SPEC=8722 8723 # If java exists, let's look for the jni.h file.8724 if test "x${JAVA}" != "x" ; then8725 for d in \8726 /apps/java/jdk1.6.0_01 \8727 /opt/icedtea6-* \8728 /opt/sun-jdk-1.6* \8729 /opt/sun-jdk-1.5*8730 do8731 if test -r "${d}/include/jni.h" ; then8732 JDK=${d}8733 break;8734 fi8735 done8736 JAVA_HOME=$JDK8737 JAVA_INC_DIR=${JDK}/include8738 JAVA_INC_SPEC="-I${JDK}/include -I${JDK}/include/linux"8739 8741 fi 8740 8742 -
branches/blt4/configure.in
r1744 r1757 268 268 AC_PATH_PROG(OCTAVE, octave, [], [$with_octave/bin:$with_octave]) 269 269 AC_PATH_PROG(MKOCTFILE, mkoctfile, [], 270 [${with_octave}/bin /mkoctfile:${with_octave}])270 [${with_octave}/bin:${with_octave}]) 271 271 fi 272 272 if test "x${OCTAVE}" != "x" ; then … … 442 442 AC_SUBST(HAVE_PYTHON_DISTUTILS) 443 443 444 rappture_with_ruby="yes"444 with_ruby="yes" 445 445 446 446 RUBY="" … … 449 449 AC_ARG_WITH(ruby, 450 450 AS_HELP_STRING([--with-ruby=PATH], [absolute path to ruby executable]), 451 [ rappture_with_ruby=$with_val])452 if test "${ rappture_with_ruby}" != "no" ; then453 if test "${ rappture_with_ruby}" = "yes" ; then451 [with_ruby=$with_val]) 452 if test "${with_ruby}" != "no" ; then 453 if test "${with_ruby}" = "yes" ; then 454 454 AC_PATH_PROG(RUBY, ruby) 455 455 else 456 456 AC_PATH_PROG(RUBY, ruby, [], 457 [${ rappture_with_ruby}/bin/ruby:${rappture_with_ruby}])457 [${with_ruby}/bin/ruby:${with_ruby}]) 458 458 fi 459 459 fi … … 476 476 AC_SUBST(RUBY_PLATFORM) 477 477 478 rappture_with_java="yes"478 with_java="yes" 479 479 JAVA="" 480 480 JAVAH="" … … 482 482 JAVA_DEV_PKG="no" 483 483 484 AC_ARG_WITH(java,485 AS_HELP_STRING([--with-java=PATH], [absolute path to java executable]),486 [rappture_with_java=$with_val])487 if test "${rappture_with_java}" != "no" ; then488 if test "${rappture_with_java}" = "yes" ; then489 AC_PATH_PROG(JAVA, java)490 AC_PATH_PROG(JAVAC, javac)491 AC_PATH_PROG(JAVAH, javah)492 else493 AC_PATH_PROG(JAVA, java, [],494 [${rappture_with_java}/bin/java:${rappture_with_java}])495 AC_PATH_PROG(JAVAC, javac, [],496 [${rappture_with_java}/bin/java:${rappture_with_java}])497 AC_PATH_PROG(JAVAH, javah, [],498 [${rappture_with_java}/bin/java:${rappture_with_java}])499 fi500 fi501 484 JDK= 502 485 JAVA_HOME= … … 507 490 if test "x${JAVA}" != "x" ; then 508 491 for d in \ 492 ${with_java} \ 509 493 /apps/java/jdk1.6.0_01 \ 510 494 /opt/icedtea6-* \ … … 520 504 JAVA_INC_DIR=${JDK}/include 521 505 JAVA_INC_SPEC="-I${JDK}/include -I${JDK}/include/linux" 506 fi 507 508 AC_ARG_WITH(java, 509 AS_HELP_STRING([--with-java=PATH], [absolute path to java executable]), 510 [with_java=$with_val]) 511 if test "${with_java}" != "no" ; then 512 if test "${with_java}" = "yes" ; then 513 AC_PATH_PROG(JAVA, java) 514 AC_PATH_PROG(JAVAC, javac) 515 AC_PATH_PROG(JAVAH, javah) 516 else 517 AC_PATH_PROG(JAVA, java, [], 518 [${with_java}/bin:${with_java}]) 519 AC_PATH_PROG(JAVAC, javac, [], 520 [${with_java}/bin:${with_java}]) 521 AC_PATH_PROG(JAVAH, javah, [], 522 [${with_java}/bin:${with_java}]) 523 fi 522 524 fi 523 525 -
branches/blt4/gui/scripts/xylegend.tcl
r1755 r1757 474 474 $sum length [$xcoords length] 475 475 476 foreach node $nodes { 477 set elem [$_tree label $node] 478 $x set [GetData $elem -x] 479 $y set [GetData $elem -y] 480 blt::spline natural $x $y $xcoords $ycoords 481 482 # Sum the interpolated y-coordinate values. 483 $sum expr "$sum + $ycoords" 484 } 485 blt::vector destroy $x $y 486 476 foreach node $nodes { 477 set elem [$_tree label $node] 478 $x set [GetData $elem -x] 479 $y set [GetData $elem -y] 480 if { [catch { 481 blt::spline natural $x $y $xcoords $ycoords 482 }] != 0 } { 483 } 484 # Sum the interpolated y-coordinate values. 485 $sum expr "$sum + $ycoords" 486 } 487 blt::vector destroy $x $y 488 } 487 489 # Get the average 488 490 $sum expr "$sum / [llength $elements]"
Note: See TracChangeset
for help on using the changeset viewer.