Changeset 1680 for branches/blt4


Ignore:
Timestamp:
Mar 31, 2010, 9:17:51 AM (14 years ago)
Author:
gah
Message:
 
Location:
branches/blt4
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/configure

    r1643 r1680  
    646646MEX
    647647MATLAB
     648VTKDIR
    648649TCL_LIB_SPEC
    649650TCL_INC_SPEC
     
    683684FFLAGS
    684685F77
    685 MKDIR_P
    686 LN_S
    687 RANLIB
    688686ac_ct_CXX
    689687CXXFLAGS
     
    697695CC
    698696SET_MAKE
     697MKDIR_P
     698LN_S
     699RANLIB
    699700INSTALL_DATA
    700701INSTALL_SCRIPT
     
    748749enable_gui
    749750with_tclsh
     751with_vtk
    750752with_matlab
    751753with_octave
     
    13941396  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    13951397  --with-tclsh=DIR        location of tclsh [default=yes]
     1398  --with-vtk=DIR          location of vtk library [default=yes]
    13961399  --with-matlab=DIR       location of matlab and mex compiler [default=yes]
    13971400  --with-octave=DIR       location of octave compiler MKOCTFILE [default=yes]
     
    27832786test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    27842787
     2788
     2789if test -n "$ac_tool_prefix"; then
     2790  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2791set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2793$as_echo_n "checking for $ac_word... " >&6; }
     2794if test "${ac_cv_prog_RANLIB+set}" = set; then :
     2795  $as_echo_n "(cached) " >&6
     2796else
     2797  if test -n "$RANLIB"; then
     2798  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     2799else
     2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2801for as_dir in $PATH
     2802do
     2803  IFS=$as_save_IFS
     2804  test -z "$as_dir" && as_dir=.
     2805    for ac_exec_ext in '' $ac_executable_extensions; do
     2806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2807    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2809    break 2
     2810  fi
     2811done
     2812  done
     2813IFS=$as_save_IFS
     2814
     2815fi
     2816fi
     2817RANLIB=$ac_cv_prog_RANLIB
     2818if test -n "$RANLIB"; then
     2819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     2820$as_echo "$RANLIB" >&6; }
     2821else
     2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2823$as_echo "no" >&6; }
     2824fi
     2825
     2826
     2827fi
     2828if test -z "$ac_cv_prog_RANLIB"; then
     2829  ac_ct_RANLIB=$RANLIB
     2830  # Extract the first word of "ranlib", so it can be a program name with args.
     2831set dummy ranlib; ac_word=$2
     2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2833$as_echo_n "checking for $ac_word... " >&6; }
     2834if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
     2835  $as_echo_n "(cached) " >&6
     2836else
     2837  if test -n "$ac_ct_RANLIB"; then
     2838  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2839else
     2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2841for as_dir in $PATH
     2842do
     2843  IFS=$as_save_IFS
     2844  test -z "$as_dir" && as_dir=.
     2845    for ac_exec_ext in '' $ac_executable_extensions; do
     2846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2847    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2849    break 2
     2850  fi
     2851done
     2852  done
     2853IFS=$as_save_IFS
     2854
     2855fi
     2856fi
     2857ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2858if test -n "$ac_ct_RANLIB"; then
     2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     2860$as_echo "$ac_ct_RANLIB" >&6; }
     2861else
     2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2863$as_echo "no" >&6; }
     2864fi
     2865
     2866  if test "x$ac_ct_RANLIB" = x; then
     2867    RANLIB=":"
     2868  else
     2869    case $cross_compiling:$ac_tool_warned in
     2870yes:)
     2871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2873ac_tool_warned=yes ;;
     2874esac
     2875    RANLIB=$ac_ct_RANLIB
     2876  fi
     2877else
     2878  RANLIB="$ac_cv_prog_RANLIB"
     2879fi
     2880
     2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     2882$as_echo_n "checking whether ln -s works... " >&6; }
     2883LN_S=$as_ln_s
     2884if test "$LN_S" = "ln -s"; then
     2885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2886$as_echo "yes" >&6; }
     2887else
     2888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     2889$as_echo "no, using $LN_S" >&6; }
     2890fi
     2891
     2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
     2893$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
     2894if test -z "$MKDIR_P"; then
     2895  if test "${ac_cv_path_mkdir+set}" = set; then :
     2896  $as_echo_n "(cached) " >&6
     2897else
     2898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2899for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
     2900do
     2901  IFS=$as_save_IFS
     2902  test -z "$as_dir" && as_dir=.
     2903    for ac_prog in mkdir gmkdir; do
     2904         for ac_exec_ext in '' $ac_executable_extensions; do
     2905           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
     2906           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
     2907             'mkdir (GNU coreutils) '* | \
     2908             'mkdir (coreutils) '* | \
     2909             'mkdir (fileutils) '4.1*)
     2910               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
     2911               break 3;;
     2912           esac
     2913         done
     2914       done
     2915  done
     2916IFS=$as_save_IFS
     2917
     2918fi
     2919
     2920  test -d ./--version && rmdir ./--version
     2921  if test "${ac_cv_path_mkdir+set}" = set; then
     2922    MKDIR_P="$ac_cv_path_mkdir -p"
     2923  else
     2924    # As a last resort, use the slow shell script.  Don't cache a
     2925    # value for MKDIR_P within a source directory, because that will
     2926    # break other packages using the cache if that directory is
     2927    # removed, or if the value is a relative name.
     2928    MKDIR_P="$ac_install_sh -d"
     2929  fi
     2930fi
     2931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
     2932$as_echo "$MKDIR_P" >&6; }
     2933
    27852934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    27862935$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     
    38654014
    38664015# Avoid g95
    3867 
    3868 if test -n "$ac_tool_prefix"; then
    3869   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    3870 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    3872 $as_echo_n "checking for $ac_word... " >&6; }
    3873 if test "${ac_cv_prog_RANLIB+set}" = set; then :
    3874   $as_echo_n "(cached) " >&6
    3875 else
    3876   if test -n "$RANLIB"; then
    3877   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    3878 else
    3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3880 for as_dir in $PATH
    3881 do
    3882   IFS=$as_save_IFS
    3883   test -z "$as_dir" && as_dir=.
    3884     for ac_exec_ext in '' $ac_executable_extensions; do
    3885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    3886     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    3887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    3888     break 2
    3889   fi
    3890 done
    3891   done
    3892 IFS=$as_save_IFS
    3893 
    3894 fi
    3895 fi
    3896 RANLIB=$ac_cv_prog_RANLIB
    3897 if test -n "$RANLIB"; then
    3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
    3899 $as_echo "$RANLIB" >&6; }
    3900 else
    3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    3902 $as_echo "no" >&6; }
    3903 fi
    3904 
    3905 
    3906 fi
    3907 if test -z "$ac_cv_prog_RANLIB"; then
    3908   ac_ct_RANLIB=$RANLIB
    3909   # Extract the first word of "ranlib", so it can be a program name with args.
    3910 set dummy ranlib; ac_word=$2
    3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    3912 $as_echo_n "checking for $ac_word... " >&6; }
    3913 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
    3914   $as_echo_n "(cached) " >&6
    3915 else
    3916   if test -n "$ac_ct_RANLIB"; then
    3917   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    3918 else
    3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3920 for as_dir in $PATH
    3921 do
    3922   IFS=$as_save_IFS
    3923   test -z "$as_dir" && as_dir=.
    3924     for ac_exec_ext in '' $ac_executable_extensions; do
    3925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    3926     ac_cv_prog_ac_ct_RANLIB="ranlib"
    3927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    3928     break 2
    3929   fi
    3930 done
    3931   done
    3932 IFS=$as_save_IFS
    3933 
    3934 fi
    3935 fi
    3936 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    3937 if test -n "$ac_ct_RANLIB"; then
    3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
    3939 $as_echo "$ac_ct_RANLIB" >&6; }
    3940 else
    3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    3942 $as_echo "no" >&6; }
    3943 fi
    3944 
    3945   if test "x$ac_ct_RANLIB" = x; then
    3946     RANLIB=":"
    3947   else
    3948     case $cross_compiling:$ac_tool_warned in
    3949 yes:)
    3950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    3951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    3952 ac_tool_warned=yes ;;
    3953 esac
    3954     RANLIB=$ac_ct_RANLIB
    3955   fi
    3956 else
    3957   RANLIB="$ac_cv_prog_RANLIB"
    3958 fi
    3959 
    3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
    3961 $as_echo_n "checking whether ln -s works... " >&6; }
    3962 LN_S=$as_ln_s
    3963 if test "$LN_S" = "ln -s"; then
    3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    3965 $as_echo "yes" >&6; }
    3966 else
    3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
    3968 $as_echo "no, using $LN_S" >&6; }
    3969 fi
    3970 
    3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
    3972 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
    3973 if test -z "$MKDIR_P"; then
    3974   if test "${ac_cv_path_mkdir+set}" = set; then :
    3975   $as_echo_n "(cached) " >&6
    3976 else
    3977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3978 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
    3979 do
    3980   IFS=$as_save_IFS
    3981   test -z "$as_dir" && as_dir=.
    3982     for ac_prog in mkdir gmkdir; do
    3983          for ac_exec_ext in '' $ac_executable_extensions; do
    3984            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
    3985            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
    3986              'mkdir (GNU coreutils) '* | \
    3987              'mkdir (coreutils) '* | \
    3988              'mkdir (fileutils) '4.1*)
    3989                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
    3990                break 3;;
    3991            esac
    3992          done
    3993        done
    3994   done
    3995 IFS=$as_save_IFS
    3996 
    3997 fi
    3998 
    3999   test -d ./--version && rmdir ./--version
    4000   if test "${ac_cv_path_mkdir+set}" = set; then
    4001     MKDIR_P="$ac_cv_path_mkdir -p"
    4002   else
    4003     # As a last resort, use the slow shell script.  Don't cache a
    4004     # value for MKDIR_P within a source directory, because that will
    4005     # break other packages using the cache if that directory is
    4006     # removed, or if the value is a relative name.
    4007     MKDIR_P="$ac_install_sh -d"
    4008   fi
    4009 fi
    4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
    4011 $as_echo "$MKDIR_P" >&6; }
    4012 
    4013 
    40144016ac_ext=f
    40154017ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     
    72547256
    72557257
     7258
     7259
     7260
     7261# Check whether --with-vtk was given.
     7262if test "${with_vtk+set}" = set; then :
     7263  withval=$with_vtk; with_vtk=$withval
     7264else
     7265  with_vtk=yes
     7266fi
     7267
     7268
     7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&5
     7270$as_echo_n "checking for vtk... " >&6; }
     7271VTKDIR=""
     7272
     7273if test "$with_vtk" != "no" ; then
     7274  if test "$with_vtk" = "yes" ; then
     7275    for path in \
     7276     $libdir \
     7277     $prefix/lib \
     7278     $exec_prefix/lib \
     7279     /usr/lib
     7280    do
     7281      for vtk in $path/vtk-* ; do
     7282        if test -d "${vtk}" ; then
     7283          VTKDIR=${vtk}
     7284        fi
     7285      done
     7286      if test "x${VTKDIR}" != "x" ; then
     7287        break
     7288      fi
     7289    done
     7290  fi
     7291fi
     7292
     7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTKDIR" >&5
     7294$as_echo "$VTKDIR" >&6; }
    72567295
    72577296
  • branches/blt4/configure.in

    r1643 r1680  
    2424
    2525AC_PROG_INSTALL
     26AC_PROG_INSTALL
     27AC_PROG_RANLIB
     28AC_PROG_LN_S
     29AC_PROG_MKDIR_P
    2630AC_PROG_MAKE_SET
    2731
     
    3034AC_PROG_CXX
    3135# Avoid g95
    32 AC_PROG_INSTALL
    33 AC_PROG_RANLIB
    34 AC_PROG_LN_S
    35 AC_PROG_MKDIR_P
    36 
    3736AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32])
    3837
     
    169168AC_SUBST(TCL_INC_SPEC)
    170169AC_SUBST(TCL_LIB_SPEC)
     170
     171AC_ARG_WITH(
     172    [vtk],
     173    [AS_HELP_STRING([--with-vtk[=DIR]],
     174        [location of vtk library @<:@default=yes@:>@])],
     175    [with_vtk=$withval], [with_vtk=yes])
     176
     177AC_MSG_CHECKING([for vtk])
     178VTKDIR=""
     179
     180if test "$with_vtk" != "no" ; then
     181  if test "$with_vtk" = "yes" ; then
     182    for path in \
     183     $libdir \
     184     $prefix/lib \
     185     $exec_prefix/lib \
     186     /usr/lib
     187    do
     188      for vtk in $path/vtk-* ; do
     189        if test -d "${vtk}" ; then
     190          VTKDIR=${vtk}
     191        fi
     192      done
     193      if test "x${VTKDIR}" != "x" ; then
     194        break
     195      fi
     196    done
     197  fi
     198fi
     199AC_SUBST(VTKDIR)
     200AC_MSG_RESULT([$VTKDIR])
     201
    171202
    172203AC_ARG_WITH(
  • branches/blt4/examples/zoo/filechoice/filechoice.tcl

    r1677 r1680  
    1515$driver put output.string(stats).about.label "Echo of choice"
    1616set choice [$driver get input.filelist(stats).current]
     17set choice [join [split $choice ,] \n]
    1718$driver put output.string(stats).current $choice
    1819
  • branches/blt4/gui/apps/rappture-csh.env.in

    r1583 r1680  
    2121set bindir=@bindir@
    2222set libdir=@libdir@
     23set vtkdir=@VTKDIR@
     24set python_version=@PYTHON_VERSION@
     25set tcl_version=@TCL_VERSION@
    2326
    2427set path = ( $bindir $path )
    2528
    26 if ( $?TCLLIBPATH ) then
    27   setenv TCLLIBPATH "${libdir}/vtk $TCLLIBPATH"
     29if ( $?LD_LIBRARY_PATH ) then
     30  setenv LD_LIBRARY_PATH "${libdir}:${vtkdir}:$LD_LIBRARY_PATH"
    2831else
    29   setenv TCLLIBPATH "${libdir}/vtk"
    30 endif
    31 
    32 if ( $?LD_LIBRARY_PATH ) then
    33   setenv LD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2:${libdir}/vtk:$LD_LIBRARY_PATH"
    34 else
    35   setenv LD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2:${libdir}/vtk"
     32  setenv LD_LIBRARY_PATH "${libdir}:${vtkdir}:${libdir}/vtk"
    3633endif
    3734
    3835if ( $?DYLD_LIBRARY_PATH ) then
    39   setenv DYLD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2/${libdir}/vtk:$DYLD_LIBRARY_PATH"
     36  setenv DYLD_LIBRARY_PATH "${libdir}:${vtkdir}:$DYLD_LIBRARY_PATH"
    4037else
    41   setenv DYLD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2/${libdir}/vtk"
     38  setenv DYLD_LIBRARY_PATH "${libdir}:${vtkdir}"
    4239endif
    4340
     
    6663endif
    6764
     65if ( $?PYTHONPATH ) then
     66  setenv PYTHONPATH  "${libdir}/python${python_version}/site-packages:$PYTHONPATH"
     67else
     68  setenv PYTHONPATH  "${libdir}/python${python_version}/site-packages"
     69endif
     70
    6871if ( $?RUBYLIB ) then
    6972  setenv RUBYLIB "${libdir}/ruby:$RUBYLIB"
     
    7376
    7477if ( $?TCL_LIBRARY ) then
    75   setenv TCL_LIBRARY "${libdir}/tcl8.4:$TCL_LIBRARY"
     78  setenv TCL_LIBRARY "${libdir}/tcl${tcl_version}:$TCL_LIBRARY"
    7679else
    77   setenv TCL_LIBRARY "${libdir}/tcl8.4"
     80  setenv TCL_LIBRARY "${libdir}/tcl${tcl_version}"
    7881endif
    7982
    8083if ( $?TK_LIBRARY ) then
    81   setenv TK_LIBRARY "${libdir}/tk8.4:$TK_LIBRARY"
     84  setenv TK_LIBRARY "${libdir}/tk${tcl_version}:$TK_LIBRARY"
    8285else
    83   setenv TK_LIBRARY "${libdir}/tk8.4"
     86  setenv TK_LIBRARY "${libdir}/tk${tcl_version}"
    8487endif
    8588
    86 set python_version=@PYTHON_VERSION@
    87 
    88 if ( $?PYTHONPATH ) then
    89   setenv PYTHONPATH  "${libdir}/python${python_version}/site-packages:$PYTHONPATH"
     89if ( $?TCLLIBPATH ) then
     90  setenv TCLLIBPATH "${vtkdir} $TCLLIBPATH"
    9091else
    91   setenv PYTHONPATH  "${libdir}/python${python_version}/site-packages"
     92  setenv TCLLIBPATH "${vtkdir}"
    9293endif
  • branches/blt4/gui/apps/rappture.env.in

    r1583 r1680  
    2020libdir=@libdir@
    2121bindir=@bindir@
     22vtkdir=@VTKDIR@
     23python_version=@PYTHON_VERSION@
     24tcl_version=@TCL_VERSION@
    2225
    23 # no need to edit the rest...
    24 export PATH=${bindir}:$PATH
     26# No need to edit anything else
     27PATH=${bindir}:$PATH
    2528
    26 export TCLLIBPATH="${libdir}/vtk $TCLLIBPATH"
     29LD_LIBRARY_PATH=${libdir}:${vtkdir}:$LD_LIBRARY_PATH
    2730
    28 vtk_library_path=${libdir}/vtk-5.2:${libdir}/vtk
     31# For MacOS X
     32DYLD_LIBRARY_PATH=${libdir}:${vtkdir}:$DYLD_LIBRARY_PATH
    2933
    30 export LD_LIBRARY_PATH=${libdir}:$vtk_library_path:$LD_LIBRARY_PATH
    31 
    32 export DYLD_LIBRARY_PATH=${libdir}:${libdir}/vtk:$DYLD_LIBRARY_PATH
     34export PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH
    3335
    3436MATLABPATH=${libdir}/matlab:$MATLABPATH
     37OCTAVE_LOADPATH=:${libdir}/octave:$OCTAVE_LOADPATH
    3538OCTAVE_PATH=:${libdir}/octave:$OCTAVE_PATH
    36 OCTAVE_LOADPATH=:${libdir}/octave:$OCTAVE_LOADPATH
    37 PERL5LIB=${libdir}/perl:$PERL5LIB
    38 RUBYLIB=${libdir}/ruby:$RUBYLIB
    39 TCL_LIBRARY=${libdir}/tcl8.4:$TCL_LIBRARY
    40 TK_LIBRARY=${libdir}/tk8.4:$TK_LIBRARY
    4139
    4240export MATLABPATH OCTAVE_PATH OCTAVE_LOADPATH
    43 export PERL5LIB RUBYLIB TCL_LIBRARY TK_LIBRARY PYTHONPATH
    4441
    45 # This is done specifically for python right now.
    46 python_version="@PYTHON_VERSION@"
     42PERL5LIB=${libdir}/perl:$PERL5LIB
    4743PYTHONPATH=${libdir}/python${python_version}/site-packages:${PYTHONPATH}
     44RUBYLIB=${libdir}/ruby:$RUBYLIB
    4845
     46export PERL5LIB RUBYLIB PYTHONPATH
     47
     48TCLLIBPATH="${vtkdir} $TCLLIBPATH"
     49TCL_LIBRARY=${libdir}/tcl${tcl_version}:$TCL_LIBRARY
     50TK_LIBRARY=${libdir}/tk${tcl_version}:$TK_LIBRARY
     51
     52export TCL_LIBRARY TK_LIBRARY TCLLIBPATH
     53
  • branches/blt4/gui/apps/rappture.use.in

    r1633 r1680  
    1111libdir=@libdir@
    1212bindir=@bindir@
     13vtkdir=@VTKDIR@
     14python_version=@PYTHON_VERSION@
     15tcl_version=@TCL_VERSION@
    1316
    14 destdir=@bindir@
     17prepend PATH ${bindir}/bin
    1518
    16 prepend PATH $destdir/bin
    17 
    18 prepend TCLLIBPATH $destdir/lib/vtk
    19 
    20 prepend LD_LIBRARY_PATH ${libdir}/vtk
    21 prepend LD_LIBRARY_PATH ${libdir}/vtk-5.2
     19prepend LD_LIBRARY_PATH ${vtkdir}
    2220prepend LD_LIBRARY_PATH ${libdir}
    23 
    24 prepend DYLD_LIBRARY_PATH ${libdir}/vtk
    25 prepend DYLD_LIBRARY_PATH ${libdir}/vtk-5.2
     21prepend DYLD_LIBRARY_PATH ${vtkdir}
    2622prepend DYLD_LIBRARY_PATH ${libdir}
    2723
    2824prepend MATLABPATH ${libdir}/matlab
    29 
    3025prepend OCTAVE_PATH :${libdir}/octave:
    3126prepend OCTAVE_LOADPATH :${libdir}/octave:
    3227
    3328prepend PERL5LIB ${libdir}/perl
    34 
    3529prepend RUBYLIB ${libdir}/ruby
    36 
    37 prepend TCL_LIBRARY ${libdir}/tcl8.4
    38 
    39 prepend TK_LIBRARY ${libdir}/tk8.4
    40 
    41 python_version="@PYTHON_VERSION@"
    4230prepend PYTHONPATH ${libdir}/python${python_version}/site-packages
    4331
     32prepend TCLLIBPATH ${vtkdir}
     33prepend TCL_LIBRARY ${libdir}/tcl${tcl_version}
     34prepend TK_LIBRARY ${libdir}/tk${tcl_version}
     35
     36
  • branches/blt4/gui/scripts/filelistentry.tcl

    r1677 r1680  
    3939    public method tooltip {}
    4040
     41    private method Toggle { id }
    4142    protected method _rebuild {}
    42     protected method _newValue {}
     43    protected method _newValue { args }
    4344    protected method _tooltip {}
    4445    protected method _whenidle {}
     
    8182    itk_component add tree {
    8283        blt::treeview $itk_component(scrollset).tree -linewidth 0 \
     84            -alternatebackground "" \
    8385            -bg white -selectmode multiple \
    8486            -highlightthickness 0 \
     
    9496        -weight 1.0 -text "" -pad 0 -borderwidth 0 -edit no
    9597    $itk_component(tree) column configure "show" -style "check" -pad {0 0} \
    96         -edit yes
     98        -edit no
    9799    pack $itk_component(scrollset) -fill both -expand yes
    98100
    99101    blt::table $itk_interior \
    100102        0,0 $itk_component(scrollset) -fill both 
    101 
     103    $_tree trace create all "show" w [itcl::code $this _newValue]
    102104    bind $itk_component(tree) <<Value>> [itcl::code $this _newValue]
     105    $itk_component(tree) bin Entry <Double-ButtonPress-1> \
     106        +[itcl::code $this Toggle current]
    103107
    104108    # First time, parse the <pattern> elements to generate notify callbacks
     
    230234        set glob [string trim [$_owner xml get $_path.$cname]]
    231235        # Successively replace each template with its value.
    232         puts stderr "before glob=$glob"
    233236        while { [regexp -indices {@@[^@]*@@} $glob range] } {
    234237            foreach {first last} $range break
     
    237240            set cpath [string range $glob $i1 $i2]
    238241            set value [$_owner xml get $cpath.current]
    239             puts stderr "$cpath.current: value=$value"
    240242            if { $value == "" } {
    241                 puts stderr "$_owner xml get $cpath.default"
    242243                set value [$_owner xml get $cpath.default]
    243                 puts stderr "$cpath.default: value=$value"
    244244            }
    245245            set glob [string replace $glob $first $last $value]
     
    260260            set data [list path $file show 0]
    261261            set id [$_tree insert root -label $tail -data $data -tag ""]
    262             puts stderr "1. tags $id=[$_tree tag names $id]"
    263262        } else {
    264             $_tree tag delete $id unused
    265             puts stderr "2. tags $id=[$_tree tag names $id]"
     263            $_tree tag delete unused $id
    266264        }
    267265        set len [string length $tail]
    268266        if {$len > $max} { set max $len }
    269267    }
    270     puts stderr ids=[$_tree tag nodes unused]
    271268    eval $_tree delete [$_tree tag nodes unused]
    272269    $itk_component(tree) configure -width $max
     
    280277# Sends a <<Value>> event to notify clients of the change.
    281278# ----------------------------------------------------------------------
    282 itcl::body Rappture::FileListEntry::_newValue {} {
     279itcl::body Rappture::FileListEntry::_newValue { args } {
    283280    event generate $itk_component(hull) <<Value>>
    284281}
     
    324321    }
    325322}
     323
     324itcl::body Rappture::FileListEntry::Toggle { index } {
     325    set id [$itk_component(tree) index $index]
     326    set show [$_tree get $id "show" 0]
     327    set show [expr $show==0]
     328    $_tree set $id "show" $show
     329}
Note: See TracChangeset for help on using the changeset viewer.