Changeset 2080


Ignore:
Timestamp:
Feb 2, 2011, 4:51:29 PM (13 years ago)
Author:
mmc
Message:

Part 1 of a major reorganization of content. Moving "instant" to "builder"
and setting up "builder" more like the "gui" part as a package. Moving the
Rappture::object stuff from the builder into the main installation, so it
can be shared by the tester as well. Moving "driver" into gui/scripts
where it belongs. Creating a new "launcher.tcl" script that decides
which of the three parts to launch based on command line options. Still
need to sort out the Makefiles to get this all right...

Location:
trunk
Files:
18 added
1 deleted
20 edited
30 copied
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r1944 r2080  
    3535
    3636ifneq ($(ENABLE_GUI),)
    37   TARGETS += gui lang lib instant examples
     37  TARGETS += gui lang lib builder examples
    3838endif
    3939
  • trunk/builder/Makefile.in

    r1944 r2080  
    2222INSTALL         = @INSTALL@
    2323
    24 SCRIPTS         = \
    25                 irappture
    26 
    2724FILES           = \
    2825                $(srcdir)/dragdrop.tcl \
     
    3027                $(srcdir)/hierlist.tcl \
    3128                $(srcdir)/main.tcl \
    32                 $(srcdir)/objects.tcl \
    3329                $(srcdir)/objpath.tcl \
    3430                $(srcdir)/slideframes.tcl \
     
    4339                $(srcdir)/images/err24.png
    4440
    45 OBJECTFILES     = \
    46                 $(srcdir)/objects/base.rp \
    47                 $(srcdir)/objects/boolean.rp \
    48                 $(srcdir)/objects/boolean.png \
    49                 $(srcdir)/objects/curve.rp \
    50                 $(srcdir)/objects/curve.png \
    51                 $(srcdir)/objects/group.rp \
    52                 $(srcdir)/objects/group.png \
    53                 $(srcdir)/objects/histogram.rp \
    54                 $(srcdir)/objects/histogram.png \
    55                 $(srcdir)/objects/integer.rp \
    56                 $(srcdir)/objects/integer.png \
    57                 $(srcdir)/objects/note.rp \
    58                 $(srcdir)/objects/note.png \
    59                 $(srcdir)/objects/number.rp \
    60                 $(srcdir)/objects/number.png \
    61                 $(srcdir)/objects/phase.rp \
    62                 $(srcdir)/objects/phase.png \
    63                 $(srcdir)/objects/string.rp \
    64                 $(srcdir)/objects/string.png \
    65                 $(srcdir)/objects/tool.rp
     41PACKAGE_VERSION = @PACKAGE_VERSION@
    6642
    67 TYPEFILES       = \
    68                 $(srcdir)/types/boolean.tcl \
    69                 $(srcdir)/types/color.tcl \
    70                 $(srcdir)/types/file.tcl \
    71                 $(srcdir)/types/string.tcl \
    72                 $(srcdir)/types/units.tcl
     43version         = $(PACKAGE_VERSION)
     44name            = RapptureBuilder$(version)
    7345
    74 VALIDATEFILES   = \
    75                 $(srcdir)/validations/enable.tcl \
    76                 $(srcdir)/validations/int.tcl \
    77                 $(srcdir)/validations/number.tcl \
    78                 $(srcdir)/validations/size.tcl
     46destdir         = $(libdir)/$(name)
    7947
    80 destdir         = $(libdir)/instant
     48all:
    8149
    82 all: tclIndex
     50install: install-pkg install-scripts
    8351
    84 tclIndex: $(FILES)
    85         $(TCLSH) $(srcdir)/../gui/tclconfig/mkindex.tcl --srcdir $(srcdir) \
    86                 --outfile tclIndex
     52install-pkg:
     53        $(MKDIR_P) -m 0755 $(destdir)
     54        $(INSTALL) -m 444 pkgIndex.tcl $(destdir)
    8755
    88 install: install-scripts install-files install-images install-objects \
    89         install-types install-validations
    90 
    91 install-scripts: tclIndex
    92         $(MKDIR_P) -m 0755 $(destdir)
    93         $(INSTALL) -m 0444 tclIndex $(destdir)
    94         $(MKDIR_P) -m 0755 $(bindir)
    95         @for i in $(SCRIPTS); do \
    96             echo "Installing $$i" ; \
    97             $(INSTALL) -m 555 $$i $(bindir) ; \
    98         done
    99 
    100 install-files: $(FILES)
    101         $(MKDIR_P) -m 0755 $(destdir)
    102         @for i in $(FILES); do \
    103             echo "Installing $$i" ; \
    104             $(INSTALL) -m 0555 $$i $(destdir) ; \
    105         done
    106 
    107 install-images: $(IMAGEFILES)
    108         $(MKDIR_P) -m 0755 $(destdir)/images
    109         @for i in $(IMAGEFILES); do \
    110             echo "Installing $$i" ; \
    111             $(INSTALL) -m 0444 $$i $(destdir)/images ; \
    112         done
    113 
    114 install-objects: $(OBJECTFILES)
    115         $(MKDIR_P) -m 0755 $(destdir)/objects
    116         @for i in $(OBJECTFILES); do \
    117             echo "Installing $$i" ; \
    118             $(INSTALL) -m 555 $$i $(destdir)/objects ; \
    119         done
    120 
    121 install-types: $(TYPEFILES)
    122         $(MKDIR_P) -m 0755 $(destdir)/types
    123         @for i in $(TYPEFILES); do \
    124             echo "Installing $$i" ; \
    125             $(INSTALL) -m 555 $$i $(destdir)/types ; \
    126         done
    127 
    128 install-validations: $(VALIDATEFILES)
    129         $(MKDIR_P) -m 0755 $(destdir)/validations
    130         @for i in $(VALIDATEFILES); do \
    131             echo "Installing $$i" ; \
    132             $(INSTALL) -m 555 $$i $(destdir)/validations ; \
    133         done
     56install-scripts: scripts
     57        $(MAKE) -C scripts install
    13458
    13559clean:
    136         $(RM) tclIndex tool.xml
     60        $(RM) tool.xml
    13761
    13862distclean: clean
    139         $(RM) irappture
    14063        $(RM) Makefile *~
    14164
  • trunk/builder/main.tcl

    r1742 r2080  
    106106set auto_path [linsert $auto_path 0 $dir]
    107107
    108 foreach fname [glob [file join $dir types *.tcl]] {
    109     source $fname
    110 }
    111 
    112 foreach fname [glob [file join $dir validations *.tcl]] {
    113     source $fname
    114 }
    115 
    116 if {[catch {Rappture::objects::load [file join $dir objects *.rp]} err]} {
    117     puts stderr "Error loading object definitions:\n$err"
    118     exit 1
    119 }
    120 
    121108Rappture::icon foo  ;# force loading of this module
    122109lappend Rappture::icon::iconpath [file join $dir images]
  • trunk/configure

    r2065 r2080  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.68 for Rappture 1.1.
     3# Generated by GNU Autoconf 2.64 for Rappture 1.1.
    44#
    55# Report bugs to <rappture@nanohub.org>.
    66#
    7 #
    87# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
     8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
    109# Foundation, Inc.
    11 #
    1210#
    1311# This configure script is free software; the Free Software Foundation
     
    9290
    9391# Find who we are.  Look in the path if we contain no directory separator.
    94 as_myself=
    9592case $0 in #((
    9693  *[\\/]* ) as_myself=$0 ;;
     
    218215        # neutralization value for shells without unset; and this also
    219216        # works around shells that cannot unset nonexistent variables.
    220         # Preserve -v and -x to the replacement shell.
    221217        BASH_ENV=/dev/null
    222218        ENV=/dev/null
    223219        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    224220        export CONFIG_SHELL
    225         case $- in # ((((
    226           *v*x* | *x*v* ) as_opts=-vx ;;
    227           *v* ) as_opts=-v ;;
    228           *x* ) as_opts=-x ;;
    229           * ) as_opts= ;;
    230         esac
    231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
     221        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    232222fi
    233223
     
    328318    done
    329319    test -z "$as_dirs" || eval "mkdir $as_dirs"
    330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    331321
    332322
     
    368358
    369359
    370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    371 # ----------------------------------------
     360# as_fn_error ERROR [LINENO LOG_FD]
     361# ---------------------------------
    372362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    373363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    374 # script with STATUS, using 1 if that was 0.
     364# script with status $?, using 1 if that was 0.
    375365as_fn_error ()
    376366{
    377   as_status=$1; test $as_status -eq 0 && as_status=1
    378   if test "$4"; then
    379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    381   fi
    382   $as_echo "$as_me: error: $2" >&2
     367  as_status=$?; test $as_status -eq 0 && as_status=1
     368  if test "$3"; then
     369    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     370    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
     371  fi
     372  $as_echo "$as_me: error: $1" >&2
    383373  as_fn_exit $as_status
    384374} # as_fn_error
     
    538528
    539529
    540 test -n "$DJDIR" || exec 7<&0 </dev/null
    541 exec 6>&1
     530exec 7<&0 </dev/null 6>&1
    542531
    543532# Name of the host.
    544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
     533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    545534# so uname gets run too.
    546535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     
    865854
    866855  case $ac_option in
    867   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    868   *=)   ac_optarg= ;;
    869   *)    ac_optarg=yes ;;
     856  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     857  *)    ac_optarg=yes ;;
    870858  esac
    871859
     
    912900    # Reject names that are not valid shell variable names.
    913901    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    914       as_fn_error $? "invalid feature name: $ac_useropt"
     902      as_fn_error "invalid feature name: $ac_useropt"
    915903    ac_useropt_orig=$ac_useropt
    916904    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    938926    # Reject names that are not valid shell variable names.
    939927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    940       as_fn_error $? "invalid feature name: $ac_useropt"
     928      as_fn_error "invalid feature name: $ac_useropt"
    941929    ac_useropt_orig=$ac_useropt
    942930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11421130    # Reject names that are not valid shell variable names.
    11431131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1144       as_fn_error $? "invalid package name: $ac_useropt"
     1132      as_fn_error "invalid package name: $ac_useropt"
    11451133    ac_useropt_orig=$ac_useropt
    11461134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11581146    # Reject names that are not valid shell variable names.
    11591147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1160       as_fn_error $? "invalid package name: $ac_useropt"
     1148      as_fn_error "invalid package name: $ac_useropt"
    11611149    ac_useropt_orig=$ac_useropt
    11621150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11881176    x_libraries=$ac_optarg ;;
    11891177
    1190   -*) as_fn_error $? "unrecognized option: \`$ac_option'
    1191 Try \`$0 --help' for more information"
     1178  -*) as_fn_error "unrecognized option: \`$ac_option'
     1179Try \`$0 --help' for more information."
    11921180    ;;
    11931181
     
    11971185    case $ac_envvar in #(
    11981186      '' | [0-9]* | *[!_$as_cr_alnum]* )
    1199       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1187      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    12001188    esac
    12011189    eval $ac_envvar=\$ac_optarg
     
    12071195    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    12081196      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    1209     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
     1197    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    12101198    ;;
    12111199
     
    12151203if test -n "$ac_prev"; then
    12161204  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1217   as_fn_error $? "missing argument to $ac_option"
     1205  as_fn_error "missing argument to $ac_option"
    12181206fi
    12191207
     
    12211209  case $enable_option_checking in
    12221210    no) ;;
    1223     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1211    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
    12241212    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
    12251213  esac
     
    12441232    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    12451233  esac
    1246   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
     1234  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
    12471235done
    12481236
     
    12581246  if test "x$build_alias" = x; then
    12591247    cross_compiling=maybe
    1260     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    1261     If a cross compiler is detected then cross compile mode will be used" >&2
     1248    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     1249    If a cross compiler is detected then cross compile mode will be used." >&2
    12621250  elif test "x$build_alias" != "x$host_alias"; then
    12631251    cross_compiling=yes
     
    12741262ac_ls_di=`ls -di .` &&
    12751263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1276   as_fn_error $? "working directory cannot be determined"
     1264  as_fn_error "working directory cannot be determined"
    12771265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1278   as_fn_error $? "pwd does not report name of working directory"
     1266  as_fn_error "pwd does not report name of working directory"
    12791267
    12801268
     
    13151303if test ! -r "$srcdir/$ac_unique_file"; then
    13161304  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1317   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1305  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
    13181306fi
    13191307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    13201308ac_abs_confdir=`(
    1321         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1309        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
    13221310        pwd)`
    13231311# When building in place, set srcdir=.
     
    13591347      --help=recursive    display the short help of all the included packages
    13601348  -V, --version           display version information and exit
    1361   -q, --quiet, --silent   do not print \`checking ...' messages
     1349  -q, --quiet, --silent   do not print \`checking...' messages
    13621350      --cache-file=FILE   cache test results in FILE [disabled]
    13631351  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    14431431              nonstandard directory <lib dir>
    14441432  LIBS        libraries to pass to the linker, e.g. -l<library>
    1445   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1433  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
    14461434              you have headers in a nonstandard directory <include dir>
    14471435  CXX         C++ compiler command
     
    15191507  cat <<\_ACEOF
    15201508Rappture configure 1.1
    1521 generated by GNU Autoconf 2.68
    1522 
    1523 Copyright (C) 2010 Free Software Foundation, Inc.
     1509generated by GNU Autoconf 2.64
     1510
     1511Copyright (C) 2009 Free Software Foundation, Inc.
    15241512This configure script is free software; the Free Software Foundation
    15251513gives unlimited permission to copy, distribute and modify it.
     
    15651553        ac_retval=1
    15661554fi
    1567   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1568   as_fn_set_status $ac_retval
     1555  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1556  return $ac_retval
    15691557
    15701558} # ac_fn_c_try_compile
     
    16031591        ac_retval=1
    16041592fi
    1605   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1606   as_fn_set_status $ac_retval
     1593  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1594  return $ac_retval
    16071595
    16081596} # ac_fn_cxx_try_compile
     
    16411629        ac_retval=1
    16421630fi
    1643   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1644   as_fn_set_status $ac_retval
     1631  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1632  return $ac_retval
    16451633
    16461634} # ac_fn_f77_try_compile
     
    16671655  fi
    16681656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1669   test $ac_status = 0; } > conftest.i && {
     1657  test $ac_status = 0; } >/dev/null && {
    16701658         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    16711659         test ! -s conftest.err
     
    16781666    ac_retval=1
    16791667fi
    1680   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1681   as_fn_set_status $ac_retval
     1668  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1669  return $ac_retval
    16821670
    16831671} # ac_fn_c_try_cpp
     
    17201708fi
    17211709  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1723   as_fn_set_status $ac_retval
     1710  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1711  return $ac_retval
    17241712
    17251713} # ac_fn_c_try_run
     
    17661754  # left behind by Apple's compiler.  We do this before executing the actions.
    17671755  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1768   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1769   as_fn_set_status $ac_retval
     1756  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1757  return $ac_retval
    17701758
    17711759} # ac_fn_c_try_link
     
    17791767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    17801768$as_echo_n "checking for $2... " >&6; }
    1781 if eval \${$3+:} false; then :
     1769if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    17821770  $as_echo_n "(cached) " >&6
    17831771else
     
    18341822               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    18351823$as_echo "$ac_res" >&6; }
    1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1824  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
    18371825
    18381826} # ac_fn_c_check_func
     
    18791867  # left behind by Apple's compiler.  We do this before executing the actions.
    18801868  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1882   as_fn_set_status $ac_retval
     1869  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1870  return $ac_retval
    18831871
    18841872} # ac_fn_cxx_try_link
     
    18921880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    18931881$as_echo_n "checking for $2... " >&6; }
    1894 if eval \${$3+:} false; then :
     1882if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    18951883  $as_echo_n "(cached) " >&6
    18961884else
     
    19471935               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    19481936$as_echo "$ac_res" >&6; }
    1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1937  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
    19501938
    19511939} # ac_fn_cxx_check_func
     
    19721960  fi
    19731961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1974   test $ac_status = 0; } > conftest.i && {
     1962  test $ac_status = 0; } >/dev/null && {
    19751963         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    19761964         test ! -s conftest.err
     
    19831971    ac_retval=1
    19841972fi
    1985   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1986   as_fn_set_status $ac_retval
     1973  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1974  return $ac_retval
    19871975
    19881976} # ac_fn_cxx_try_cpp
     
    19961984{
    19971985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1998   if eval \${$3+:} false; then :
     1986  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    19991987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    20001988$as_echo_n "checking for $2... " >&6; }
    2001 if eval \${$3+:} false; then :
     1989if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    20021990  $as_echo_n "(cached) " >&6
    20031991fi
     
    20352023  ac_header_preproc=no
    20362024fi
    2037 rm -f conftest.err conftest.i conftest.$ac_ext
     2025rm -f conftest.err conftest.$ac_ext
    20382026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    20392027$as_echo "$ac_header_preproc" >&6; }
     
    20582046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    20592047$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    2060 ( $as_echo "## ----------------------------------- ##
     2048( cat <<\_ASBOX
     2049## ----------------------------------- ##
    20612050## Report this to rappture@nanohub.org ##
    2062 ## ----------------------------------- ##"
     2051## ----------------------------------- ##
     2052_ASBOX
    20632053     ) | sed "s/^/$as_me: WARNING:     /" >&2
    20642054    ;;
     
    20662056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    20672057$as_echo_n "checking for $2... " >&6; }
    2068 if eval \${$3+:} false; then :
     2058if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    20692059  $as_echo_n "(cached) " >&6
    20702060else
     
    20752065$as_echo "$ac_res" >&6; }
    20762066fi
    2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2067  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
    20782068
    20792069} # ac_fn_cxx_check_header_mongrel
     
    20882078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    20892079$as_echo_n "checking for $2... " >&6; }
    2090 if eval \${$3+:} false; then :
     2080if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    20912081  $as_echo_n "(cached) " >&6
    20922082else
     
    21062096               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    21072097$as_echo "$ac_res" >&6; }
    2108   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2098  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
    21092099
    21102100} # ac_fn_cxx_check_header_compile
     
    21472137fi
    21482138  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    2149   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2150   as_fn_set_status $ac_retval
     2139  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2140  return $ac_retval
    21512141
    21522142} # ac_fn_cxx_try_run
     
    23252315
    23262316  fi
    2327   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2328   as_fn_set_status $ac_retval
     2317  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2318  return $ac_retval
    23292319
    23302320} # ac_fn_cxx_compute_int
     
    23342324
    23352325It was created by Rappture $as_me 1.1, which was
    2336 generated by GNU Autoconf 2.68.  Invocation command line was
     2326generated by GNU Autoconf 2.64.  Invocation command line was
    23372327
    23382328  $ $0 $@
     
    24442434    echo
    24452435
    2446     $as_echo "## ---------------- ##
     2436    cat <<\_ASBOX
     2437## ---------------- ##
    24472438## Cache variables. ##
    2448 ## ---------------- ##"
     2439## ---------------- ##
     2440_ASBOX
    24492441    echo
    24502442    # The following way of writing the cache mishandles newlines in values,
     
    24802472    echo
    24812473
    2482     $as_echo "## ----------------- ##
     2474    cat <<\_ASBOX
     2475## ----------------- ##
    24832476## Output variables. ##
    2484 ## ----------------- ##"
     2477## ----------------- ##
     2478_ASBOX
    24852479    echo
    24862480    for ac_var in $ac_subst_vars
     
    24952489
    24962490    if test -n "$ac_subst_files"; then
    2497       $as_echo "## ------------------- ##
     2491      cat <<\_ASBOX
     2492## ------------------- ##
    24982493## File substitutions. ##
    2499 ## ------------------- ##"
     2494## ------------------- ##
     2495_ASBOX
    25002496      echo
    25012497      for ac_var in $ac_subst_files
     
    25112507
    25122508    if test -s confdefs.h; then
    2513       $as_echo "## ----------- ##
     2509      cat <<\_ASBOX
     2510## ----------- ##
    25142511## confdefs.h. ##
    2515 ## ----------- ##"
     2512## ----------- ##
     2513_ASBOX
    25162514      echo
    25172515      cat confdefs.h
     
    25682566ac_site_file2=NONE
    25692567if test -n "$CONFIG_SITE"; then
    2570   # We do not want a PATH search for config.site.
    2571   case $CONFIG_SITE in #((
    2572     -*)  ac_site_file1=./$CONFIG_SITE;;
    2573     */*) ac_site_file1=$CONFIG_SITE;;
    2574     *)   ac_site_file1=./$CONFIG_SITE;;
    2575   esac
     2568  ac_site_file1=$CONFIG_SITE
    25762569elif test "x$prefix" != xNONE; then
    25772570  ac_site_file1=$prefix/share/config.site
     
    25842577do
    25852578  test "x$ac_site_file" = xNONE && continue
    2586   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2579  if test -r "$ac_site_file"; then
    25872580    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
    25882581$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    25892582    sed 's/^/| /' "$ac_site_file" >&5
    2590     . "$ac_site_file" \
    2591       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2593 as_fn_error $? "failed to load site script $ac_site_file
    2594 See \`config.log' for more details" "$LINENO" 5; }
     2583    . "$ac_site_file"
    25952584  fi
    25962585done
    25972586
    25982587if test -r "$cache_file"; then
    2599   # Some versions of bash will fail to source /dev/null (special files
    2600   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
    2601   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     2588  # Some versions of bash will fail to source /dev/null (special
     2589  # files actually), so we avoid doing that.
     2590  if test -f "$cache_file"; then
    26022591    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
    26032592$as_echo "$as_me: loading cache $cache_file" >&6;}
     
    26682657  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
    26692658$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    2670   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2659  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
    26712660fi
    26722661## -------------------- ##
     
    26832672ac_aux_dir=
    26842673for ac_dir in cf "$srcdir"/cf; do
    2685   if test -f "$ac_dir/install-sh"; then
    2686     ac_aux_dir=$ac_dir
    2687     ac_install_sh="$ac_aux_dir/install-sh -c"
    2688     break
    2689   elif test -f "$ac_dir/install.sh"; then
    2690     ac_aux_dir=$ac_dir
    2691     ac_install_sh="$ac_aux_dir/install.sh -c"
    2692     break
    2693   elif test -f "$ac_dir/shtool"; then
    2694     ac_aux_dir=$ac_dir
    2695     ac_install_sh="$ac_aux_dir/shtool install -c"
    2696     break
    2697   fi
     2674  for ac_t in install-sh install.sh shtool; do
     2675    if test -f "$ac_dir/$ac_t"; then
     2676      ac_aux_dir=$ac_dir
     2677      ac_install_sh="$ac_aux_dir/$ac_t -c"
     2678      break 2
     2679    fi
     2680  done
    26982681done
    26992682if test -z "$ac_aux_dir"; then
    2700   as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
     2683  as_fn_error "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
    27012684fi
    27022685
     
    27512734$as_echo_n "checking for a BSD-compatible install... " >&6; }
    27522735if test -z "$INSTALL"; then
    2753 if ${ac_cv_path_install+:} false; then :
     2736if test "${ac_cv_path_install+set}" = set; then :
    27542737  $as_echo_n "(cached) " >&6
    27552738else
     
    28332816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    28342817$as_echo_n "checking for $ac_word... " >&6; }
    2835 if ${ac_cv_prog_RANLIB+:} false; then :
     2818if test "${ac_cv_prog_RANLIB+set}" = set; then :
    28362819  $as_echo_n "(cached) " >&6
    28372820else
     
    28732856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    28742857$as_echo_n "checking for $ac_word... " >&6; }
    2875 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
     2858if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
    28762859  $as_echo_n "(cached) " >&6
    28772860else
     
    29342917$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
    29352918if test -z "$MKDIR_P"; then
    2936   if ${ac_cv_path_mkdir+:} false; then :
     2919  if test "${ac_cv_path_mkdir+set}" = set; then :
    29372920  $as_echo_n "(cached) " >&6
    29382921else
     
    29592942fi
    29602943
    2961   test -d ./--version && rmdir ./--version
    29622944  if test "${ac_cv_path_mkdir+set}" = set; then
    29632945    MKDIR_P="$ac_cv_path_mkdir -p"
     
    29672949    # break other packages using the cache if that directory is
    29682950    # removed, or if the value is a relative name.
     2951    test -d ./--version && rmdir ./--version
    29692952    MKDIR_P="$ac_install_sh -d"
    29702953  fi
     
    29772960set x ${MAKE-make}
    29782961ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
    2979 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
     2962if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
    29802963  $as_echo_n "(cached) " >&6
    29812964else
     
    29852968        @echo '@@@%%%=$(MAKE)=@@@%%%'
    29862969_ACEOF
    2987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     2970# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    29882971case `${MAKE-make} -f conftest.make 2>/dev/null` in
    29892972  *@@@%%%=?*=@@@%%%*)
     
    30162999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    30173000$as_echo_n "checking for $ac_word... " >&6; }
    3018 if ${ac_cv_prog_CC+:} false; then :
     3001if test "${ac_cv_prog_CC+set}" = set; then :
    30193002  $as_echo_n "(cached) " >&6
    30203003else
     
    30563039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    30573040$as_echo_n "checking for $ac_word... " >&6; }
    3058 if ${ac_cv_prog_ac_ct_CC+:} false; then :
     3041if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
    30593042  $as_echo_n "(cached) " >&6
    30603043else
     
    31093092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    31103093$as_echo_n "checking for $ac_word... " >&6; }
    3111 if ${ac_cv_prog_CC+:} false; then :
     3094if test "${ac_cv_prog_CC+set}" = set; then :
    31123095  $as_echo_n "(cached) " >&6
    31133096else
     
    31493132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    31503133$as_echo_n "checking for $ac_word... " >&6; }
    3151 if ${ac_cv_prog_CC+:} false; then :
     3134if test "${ac_cv_prog_CC+set}" = set; then :
    31523135  $as_echo_n "(cached) " >&6
    31533136else
     
    32083191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    32093192$as_echo_n "checking for $ac_word... " >&6; }
    3210 if ${ac_cv_prog_CC+:} false; then :
     3193if test "${ac_cv_prog_CC+set}" = set; then :
    32113194  $as_echo_n "(cached) " >&6
    32123195else
     
    32523235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    32533236$as_echo_n "checking for $ac_word... " >&6; }
    3254 if ${ac_cv_prog_ac_ct_CC+:} false; then :
     3237if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
    32553238  $as_echo_n "(cached) " >&6
    32563239else
     
    33063289test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    33073290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3308 as_fn_error $? "no acceptable C compiler found in \$PATH
    3309 See \`config.log' for more details" "$LINENO" 5; }
     3291as_fn_error "no acceptable C compiler found in \$PATH
     3292See \`config.log' for more details." "$LINENO" 5; }
    33103293
    33113294# Provide some information about the compiler.
     
    33283311         10q' conftest.err >conftest.er1
    33293312    cat conftest.er1 >&5
    3330   fi
    3331   rm -f conftest.er1 conftest.err
     3313    rm -f conftest.er1 conftest.err
     3314  fi
    33323315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    33333316  test $ac_status = 0; }
     
    33363319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33373320/* end confdefs.h.  */
    3338 
     3321#include <stdio.h>
    33393322int
    33403323main ()
    33413324{
     3325FILE *f = fopen ("conftest.out", "w");
     3326 return ferror (f) || fclose (f) != 0;
    33423327
    33433328  ;
     
    33463331_ACEOF
    33473332ac_clean_files_save=$ac_clean_files
    3348 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
     3333ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
    33493334# Try to create an executable without -o first, disregard a.out.
    33503335# It will help us diagnose broken compilers, and finding out an intuition
    33513336# of exeext.
    3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
    3353 $as_echo_n "checking whether the C compiler works... " >&6; }
     3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     3338$as_echo_n "checking for C compiler default output file name... " >&6; }
    33543339ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    33553340
     
    34133398  ac_file=''
    34143399fi
     3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     3401$as_echo "$ac_file" >&6; }
    34153402if test -z "$ac_file"; then :
    3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    3417 $as_echo "no" >&6; }
    3418 $as_echo "$as_me: failed program was:" >&5
     3403  $as_echo "$as_me: failed program was:" >&5
    34193404sed 's/^/| /' conftest.$ac_ext >&5
    34203405
    34213406{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    34223407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3423 as_fn_error 77 "C compiler cannot create executables
    3424 See \`config.log' for more details" "$LINENO" 5; }
    3425 else
    3426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     3408{ as_fn_set_status 77
     3409as_fn_error "C compiler cannot create executables
     3410See \`config.log' for more details." "$LINENO" 5; }; }
     3411fi
     3412ac_exeext=$ac_cv_exeext
     3413
     3414# Check that the compiler produces executables we can run.  If not, either
     3415# the compiler is broken, or we cross compile.
     3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     3417$as_echo_n "checking whether the C compiler works... " >&6; }
     3418# If not cross compiling, check that we can run a simple program.
     3419if test "$cross_compiling" != yes; then
     3420  if { ac_try='./$ac_file'
     3421  { { case "(($ac_try" in
     3422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3423  *) ac_try_echo=$ac_try;;
     3424esac
     3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3426$as_echo "$ac_try_echo"; } >&5
     3427  (eval "$ac_try") 2>&5
     3428  ac_status=$?
     3429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3430  test $ac_status = 0; }; }; then
     3431    cross_compiling=no
     3432  else
     3433    if test "$cross_compiling" = maybe; then
     3434        cross_compiling=yes
     3435    else
     3436        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3438as_fn_error "cannot run C compiled programs.
     3439If you meant to cross compile, use \`--host'.
     3440See \`config.log' for more details." "$LINENO" 5; }
     3441    fi
     3442  fi
     3443fi
     3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    34273445$as_echo "yes" >&6; }
    3428 fi
    3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
    3430 $as_echo_n "checking for C compiler default output file name... " >&6; }
    3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
    3432 $as_echo "$ac_file" >&6; }
    3433 ac_exeext=$ac_cv_exeext
    3434 
    3435 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     3446
     3447rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
    34363448ac_clean_files=$ac_clean_files_save
     3449# Check that the compiler produces executables we can run.  If not, either
     3450# the compiler is broken, or we cross compile.
     3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     3452$as_echo_n "checking whether we are cross compiling... " >&6; }
     3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     3454$as_echo "$cross_compiling" >&6; }
     3455
    34373456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
    34383457$as_echo_n "checking for suffix of executables... " >&6; }
     
    34643483  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    34653484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3466 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    3467 See \`config.log' for more details" "$LINENO" 5; }
    3468 fi
    3469 rm -f conftest conftest$ac_cv_exeext
     3485as_fn_error "cannot compute suffix of executables: cannot compile and link
     3486See \`config.log' for more details." "$LINENO" 5; }
     3487fi
     3488rm -f conftest$ac_cv_exeext
    34703489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
    34713490$as_echo "$ac_cv_exeext" >&6; }
     
    34743493EXEEXT=$ac_cv_exeext
    34753494ac_exeext=$EXEEXT
    3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3477 /* end confdefs.h.  */
    3478 #include <stdio.h>
    3479 int
    3480 main ()
    3481 {
    3482 FILE *f = fopen ("conftest.out", "w");
    3483  return ferror (f) || fclose (f) != 0;
    3484 
    3485   ;
    3486   return 0;
    3487 }
    3488 _ACEOF
    3489 ac_clean_files="$ac_clean_files conftest.out"
    3490 # Check that the compiler produces executables we can run.  If not, either
    3491 # the compiler is broken, or we cross compile.
    3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
    3493 $as_echo_n "checking whether we are cross compiling... " >&6; }
    3494 if test "$cross_compiling" != yes; then
    3495   { { ac_try="$ac_link"
    3496 case "(($ac_try" in
    3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3498   *) ac_try_echo=$ac_try;;
    3499 esac
    3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3501 $as_echo "$ac_try_echo"; } >&5
    3502   (eval "$ac_link") 2>&5
    3503   ac_status=$?
    3504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3505   test $ac_status = 0; }
    3506   if { ac_try='./conftest$ac_cv_exeext'
    3507   { { case "(($ac_try" in
    3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3509   *) ac_try_echo=$ac_try;;
    3510 esac
    3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3512 $as_echo "$ac_try_echo"; } >&5
    3513   (eval "$ac_try") 2>&5
    3514   ac_status=$?
    3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3516   test $ac_status = 0; }; }; then
    3517     cross_compiling=no
    3518   else
    3519     if test "$cross_compiling" = maybe; then
    3520         cross_compiling=yes
    3521     else
    3522         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3524 as_fn_error $? "cannot run C compiled programs.
    3525 If you meant to cross compile, use \`--host'.
    3526 See \`config.log' for more details" "$LINENO" 5; }
    3527     fi
    3528   fi
    3529 fi
    3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
    3531 $as_echo "$cross_compiling" >&6; }
    3532 
    3533 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
    3534 ac_clean_files=$ac_clean_files_save
    35353495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
    35363496$as_echo_n "checking for suffix of object files... " >&6; }
    3537 if ${ac_cv_objext+:} false; then :
     3497if test "${ac_cv_objext+set}" = set; then :
    35383498  $as_echo_n "(cached) " >&6
    35393499else
     
    35753535{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    35763536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3577 as_fn_error $? "cannot compute suffix of object files: cannot compile
    3578 See \`config.log' for more details" "$LINENO" 5; }
     3537as_fn_error "cannot compute suffix of object files: cannot compile
     3538See \`config.log' for more details." "$LINENO" 5; }
    35793539fi
    35803540rm -f conftest.$ac_cv_objext conftest.$ac_ext
     
    35863546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
    35873547$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    3588 if ${ac_cv_c_compiler_gnu+:} false; then :
     3548if test "${ac_cv_c_compiler_gnu+set}" = set; then :
    35893549  $as_echo_n "(cached) " >&6
    35903550else
     
    36233583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
    36243584$as_echo_n "checking whether $CC accepts -g... " >&6; }
    3625 if ${ac_cv_prog_cc_g+:} false; then :
     3585if test "${ac_cv_prog_cc_g+set}" = set; then :
    36263586  $as_echo_n "(cached) " >&6
    36273587else
     
    37013661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
    37023662$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    3703 if ${ac_cv_prog_cc_c89+:} false; then :
     3663if test "${ac_cv_prog_cc_c89+set}" = set; then :
    37043664  $as_echo_n "(cached) " >&6
    37053665else
     
    38123772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    38133773$as_echo_n "checking for $ac_word... " >&6; }
    3814 if ${ac_cv_prog_CXX+:} false; then :
     3774if test "${ac_cv_prog_CXX+set}" = set; then :
    38153775  $as_echo_n "(cached) " >&6
    38163776else
     
    38563816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    38573817$as_echo_n "checking for $ac_word... " >&6; }
    3858 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
     3818if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
    38593819  $as_echo_n "(cached) " >&6
    38603820else
     
    39263886         10q' conftest.err >conftest.er1
    39273887    cat conftest.er1 >&5
    3928   fi
    3929   rm -f conftest.er1 conftest.err
     3888    rm -f conftest.er1 conftest.err
     3889  fi
    39303890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    39313891  test $ac_status = 0; }
     
    39343894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
    39353895$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    3936 if ${ac_cv_cxx_compiler_gnu+:} false; then :
     3896if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
    39373897  $as_echo_n "(cached) " >&6
    39383898else
     
    39713931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
    39723932$as_echo_n "checking whether $CXX accepts -g... " >&6; }
    3973 if ${ac_cv_prog_cxx_g+:} false; then :
     3933if test "${ac_cv_prog_cxx_g+set}" = set; then :
    39743934  $as_echo_n "(cached) " >&6
    39753935else
     
    40654025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    40664026$as_echo_n "checking for $ac_word... " >&6; }
    4067 if ${ac_cv_prog_F77+:} false; then :
     4027if test "${ac_cv_prog_F77+set}" = set; then :
    40684028  $as_echo_n "(cached) " >&6
    40694029else
     
    41094069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    41104070$as_echo_n "checking for $ac_word... " >&6; }
    4111 if ${ac_cv_prog_ac_ct_F77+:} false; then :
     4071if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
    41124072  $as_echo_n "(cached) " >&6
    41134073else
     
    41784138         10q' conftest.err >conftest.er1
    41794139    cat conftest.er1 >&5
    4180   fi
    4181   rm -f conftest.er1 conftest.err
     4140    rm -f conftest.er1 conftest.err
     4141  fi
    41824142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    41834143  test $ac_status = 0; }
     
    41914151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
    41924152$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
    4193 if ${ac_cv_f77_compiler_gnu+:} false; then :
     4153if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
    41944154  $as_echo_n "(cached) " >&6
    41954155else
     
    42194179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
    42204180$as_echo_n "checking whether $F77 accepts -g... " >&6; }
    4221 if ${ac_cv_prog_f77_g+:} false; then :
     4181if test "${ac_cv_prog_f77_g+set}" = set; then :
    42224182  $as_echo_n "(cached) " >&6
    42234183else
     
    42864246fi
    42874247if test -z "$CPP"; then
    4288   if ${ac_cv_prog_CPP+:} false; then :
     4248  if test "${ac_cv_prog_CPP+set}" = set; then :
    42894249  $as_echo_n "(cached) " >&6
    42904250else
     
    43164276continue
    43174277fi
    4318 rm -f conftest.err conftest.i conftest.$ac_ext
     4278rm -f conftest.err conftest.$ac_ext
    43194279
    43204280  # OK, works on sane cases.  Now check whether nonexistent headers
     
    43324292break
    43334293fi
    4334 rm -f conftest.err conftest.i conftest.$ac_ext
     4294rm -f conftest.err conftest.$ac_ext
    43354295
    43364296done
    43374297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4338 rm -f conftest.i conftest.err conftest.$ac_ext
     4298rm -f conftest.err conftest.$ac_ext
    43394299if $ac_preproc_ok; then :
    43404300  break
     
    43754335continue
    43764336fi
    4377 rm -f conftest.err conftest.i conftest.$ac_ext
     4337rm -f conftest.err conftest.$ac_ext
    43784338
    43794339  # OK, works on sane cases.  Now check whether nonexistent headers
     
    43914351break
    43924352fi
    4393 rm -f conftest.err conftest.i conftest.$ac_ext
     4353rm -f conftest.err conftest.$ac_ext
    43944354
    43954355done
    43964356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4397 rm -f conftest.i conftest.err conftest.$ac_ext
     4357rm -f conftest.err conftest.$ac_ext
    43984358if $ac_preproc_ok; then :
    43994359
     
    44014361  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    44024362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    4403 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    4404 See \`config.log' for more details" "$LINENO" 5; }
     4363as_fn_error "C preprocessor \"$CPP\" fails sanity check
     4364See \`config.log' for more details." "$LINENO" 5; }
    44054365fi
    44064366
     
    44144374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
    44154375$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    4416 if ${ac_cv_path_GREP+:} false; then :
     4376if test "${ac_cv_path_GREP+set}" = set; then :
    44174377  $as_echo_n "(cached) " >&6
    44184378else
     
    44634423IFS=$as_save_IFS
    44644424  if test -z "$ac_cv_path_GREP"; then
    4465     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4425    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    44664426  fi
    44674427else
     
    44774437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
    44784438$as_echo_n "checking for egrep... " >&6; }
    4479 if ${ac_cv_path_EGREP+:} false; then :
     4439if test "${ac_cv_path_EGREP+set}" = set; then :
    44804440  $as_echo_n "(cached) " >&6
    44814441else
     
    45294489IFS=$as_save_IFS
    45304490  if test -z "$ac_cv_path_EGREP"; then
    4531     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4491    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    45324492  fi
    45334493else
     
    45444504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
    45454505$as_echo_n "checking for ANSI C header files... " >&6; }
    4546 if ${ac_cv_header_stdc+:} false; then :
     4506if test "${ac_cv_header_stdc+set}" = set; then :
    45474507  $as_echo_n "(cached) " >&6
    45484508else
     
    46554615
    46564616ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
    4657 if test "x$ac_cv_func_atol" = xyes; then :
    4658 
    4659 else
    4660   as_fn_error $? "oops! no atol ?!?" "$LINENO" 5
     4617if test "x$ac_cv_func_atol" = x""yes; then :
     4618
     4619else
     4620  as_fn_error "oops! no atol ?!?" "$LINENO" 5
    46614621fi
    46624622
     
    46734633do :
    46744634  ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
    4675 if test "x$ac_cv_func_sysinfo" = xyes; then :
     4635if test "x$ac_cv_func_sysinfo" = x""yes; then :
    46764636  cat >>confdefs.h <<_ACEOF
    46774637#define HAVE_SYSINFO 1
     
    46894649$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
    46904650if test -z "$CXXCPP"; then
    4691   if ${ac_cv_prog_CXXCPP+:} false; then :
     4651  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
    46924652  $as_echo_n "(cached) " >&6
    46934653else
     
    47194679continue
    47204680fi
    4721 rm -f conftest.err conftest.i conftest.$ac_ext
     4681rm -f conftest.err conftest.$ac_ext
    47224682
    47234683  # OK, works on sane cases.  Now check whether nonexistent headers
     
    47354695break
    47364696fi
    4737 rm -f conftest.err conftest.i conftest.$ac_ext
     4697rm -f conftest.err conftest.$ac_ext
    47384698
    47394699done
    47404700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4741 rm -f conftest.i conftest.err conftest.$ac_ext
     4701rm -f conftest.err conftest.$ac_ext
    47424702if $ac_preproc_ok; then :
    47434703  break
     
    47784738continue
    47794739fi
    4780 rm -f conftest.err conftest.i conftest.$ac_ext
     4740rm -f conftest.err conftest.$ac_ext
    47814741
    47824742  # OK, works on sane cases.  Now check whether nonexistent headers
     
    47944754break
    47954755fi
    4796 rm -f conftest.err conftest.i conftest.$ac_ext
     4756rm -f conftest.err conftest.$ac_ext
    47974757
    47984758done
    47994759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4800 rm -f conftest.i conftest.err conftest.$ac_ext
     4760rm -f conftest.err conftest.$ac_ext
    48014761if $ac_preproc_ok; then :
    48024762
     
    48044764  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    48054765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    4806 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
    4807 See \`config.log' for more details" "$LINENO" 5; }
     4766as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
     4767See \`config.log' for more details." "$LINENO" 5; }
    48084768fi
    48094769
     
    48224782ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
    48234783"
    4824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     4784eval as_val=\$$as_ac_Header
     4785   if test "x$as_val" = x""yes; then :
    48254786  cat >>confdefs.h <<_ACEOF
    48264787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    48354796do :
    48364797  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
    4837 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
     4798if test "x$ac_cv_header_sys_sysinfo_h" = x""yes; then :
    48384799  cat >>confdefs.h <<_ACEOF
    48394800#define HAVE_SYS_SYSINFO_H 1
     
    48474808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
    48484809$as_echo_n "checking for main in -lm... " >&6; }
    4849 if ${ac_cv_lib_m_main+:} false; then :
     4810if test "${ac_cv_lib_m_main+set}" = set; then :
    48504811  $as_echo_n "(cached) " >&6
    48514812else
     
    48754836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
    48764837$as_echo "$ac_cv_lib_m_main" >&6; }
    4877 if test "x$ac_cv_lib_m_main" = xyes; then :
     4838if test "x$ac_cv_lib_m_main" = x""yes; then :
    48784839  cat >>confdefs.h <<_ACEOF
    48794840#define HAVE_LIBM 1
     
    48834844
    48844845else
    4885   as_fn_error $? "librappture requires libm" "$LINENO" 5
     4846  as_fn_error "librappture requires libm" "$LINENO" 5
    48864847fi
    48874848
    48884849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
    48894850$as_echo_n "checking for main in -lstdc++... " >&6; }
    4890 if ${ac_cv_lib_stdcpp_main+:} false; then :
     4851if test "${ac_cv_lib_stdcpp_main+set}" = set; then :
    48914852  $as_echo_n "(cached) " >&6
    48924853else
     
    49164877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
    49174878$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
    4918 if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
     4879if test "x$ac_cv_lib_stdcpp_main" = x""yes; then :
    49194880  cat >>confdefs.h <<_ACEOF
    49204881#define HAVE_LIBSTDC__ 1
     
    49244885
    49254886else
    4926   as_fn_error $? "librappture requires libstdc++" "$LINENO" 5
     4887  as_fn_error "librappture requires libstdc++" "$LINENO" 5
    49274888fi
    49284889
     
    49304891do :
    49314892  ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
    4932 if test "x$ac_cv_header_algorithm" = xyes; then :
     4893if test "x$ac_cv_header_algorithm" = x""yes; then :
    49334894  cat >>confdefs.h <<_ACEOF
    49344895#define HAVE_ALGORITHM 1
     
    49454906do :
    49464907  ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default"
    4947 if test "x$ac_cv_header_cctype" = xyes; then :
     4908if test "x$ac_cv_header_cctype" = x""yes; then :
    49484909  cat >>confdefs.h <<_ACEOF
    49494910#define HAVE_CCTYPE 1
     
    49604921do :
    49614922  ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default"
    4962 if test "x$ac_cv_header_cfloat" = xyes; then :
     4923if test "x$ac_cv_header_cfloat" = x""yes; then :
    49634924  cat >>confdefs.h <<_ACEOF
    49644925#define HAVE_CFLOAT 1
     
    49754936do :
    49764937  ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"
    4977 if test "x$ac_cv_header_cmath" = xyes; then :
     4938if test "x$ac_cv_header_cmath" = x""yes; then :
    49784939  cat >>confdefs.h <<_ACEOF
    49794940#define HAVE_CMATH 1
     
    49904951do :
    49914952  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default"
    4992 if test "x$ac_cv_header_cstdio" = xyes; then :
     4953if test "x$ac_cv_header_cstdio" = x""yes; then :
    49934954  cat >>confdefs.h <<_ACEOF
    49944955#define HAVE_CSTDIO 1
     
    50054966do :
    50064967  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default"
    5007 if test "x$ac_cv_header_cstdlib" = xyes; then :
     4968if test "x$ac_cv_header_cstdlib" = x""yes; then :
    50084969  cat >>confdefs.h <<_ACEOF
    50094970#define HAVE_CSTDLIB 1
     
    50204981do :
    50214982  ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default"
    5022 if test "x$ac_cv_header_cstring" = xyes; then :
     4983if test "x$ac_cv_header_cstring" = x""yes; then :
    50234984  cat >>confdefs.h <<_ACEOF
    50244985#define HAVE_CSTRING 1
     
    50354996do :
    50364997  ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"
    5037 if test "x$ac_cv_header_fstream" = xyes; then :
     4998if test "x$ac_cv_header_fstream" = x""yes; then :
    50384999  cat >>confdefs.h <<_ACEOF
    50395000#define HAVE_FSTREAM 1
     
    50505011do :
    50515012  ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default"
    5052 if test "x$ac_cv_header_list" = xyes; then :
     5013if test "x$ac_cv_header_list" = x""yes; then :
    50535014  cat >>confdefs.h <<_ACEOF
    50545015#define HAVE_LIST 1
     
    50655026do :
    50665027  ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
    5067 if test "x$ac_cv_header_iostream" = xyes; then :
     5028if test "x$ac_cv_header_iostream" = x""yes; then :
    50685029  cat >>confdefs.h <<_ACEOF
    50695030#define HAVE_IOSTREAM 1
     
    50805041do :
    50815042  ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default"
    5082 if test "x$ac_cv_header_iterator" = xyes; then :
     5043if test "x$ac_cv_header_iterator" = x""yes; then :
    50835044  cat >>confdefs.h <<_ACEOF
    50845045#define HAVE_ITERATOR 1
     
    50955056do :
    50965057  ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
    5097 if test "x$ac_cv_header_sstream" = xyes; then :
     5058if test "x$ac_cv_header_sstream" = x""yes; then :
    50985059  cat >>confdefs.h <<_ACEOF
    50995060#define HAVE_SSTREAM 1
     
    51105071do :
    51115072  ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default"
    5112 if test "x$ac_cv_header_stack" = xyes; then :
     5073if test "x$ac_cv_header_stack" = x""yes; then :
    51135074  cat >>confdefs.h <<_ACEOF
    51145075#define HAVE_STACK 1
     
    51255086do :
    51265087  ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
    5127 if test "x$ac_cv_header_string" = xyes; then :
     5088if test "x$ac_cv_header_string" = x""yes; then :
    51285089  cat >>confdefs.h <<_ACEOF
    51295090#define HAVE_STRING 1
     
    51405101do :
    51415102  ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
    5142 if test "x$ac_cv_header_vector" = xyes; then :
     5103if test "x$ac_cv_header_vector" = x""yes; then :
    51435104  cat >>confdefs.h <<_ACEOF
    51445105#define HAVE_VECTOR 1
     
    51565117do :
    51575118  ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
    5158 if test "x$ac_cv_header_assert_h" = xyes; then :
     5119if test "x$ac_cv_header_assert_h" = x""yes; then :
    51595120  cat >>confdefs.h <<_ACEOF
    51605121#define HAVE_ASSERT_H 1
     
    51715132do :
    51725133  ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
    5173 if test "x$ac_cv_header_ctype_h" = xyes; then :
     5134if test "x$ac_cv_header_ctype_h" = x""yes; then :
    51745135  cat >>confdefs.h <<_ACEOF
    51755136#define HAVE_CTYPE_H 1
     
    51865147do :
    51875148  ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
    5188 if test "x$ac_cv_header_errno_h" = xyes; then :
     5149if test "x$ac_cv_header_errno_h" = x""yes; then :
    51895150  cat >>confdefs.h <<_ACEOF
    51905151#define HAVE_ERRNO_H 1
     
    52015162do :
    52025163  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
    5203 if test "x$ac_cv_header_limits_h" = xyes; then :
     5164if test "x$ac_cv_header_limits_h" = x""yes; then :
    52045165  cat >>confdefs.h <<_ACEOF
    52055166#define HAVE_LIMITS_H 1
     
    52165177do :
    52175178  ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
    5218 if test "x$ac_cv_header_string_h" = xyes; then :
     5179if test "x$ac_cv_header_string_h" = x""yes; then :
    52195180  cat >>confdefs.h <<_ACEOF
    52205181#define HAVE_STRING_H 1
     
    52315192do :
    52325193  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
    5233 if test "x$ac_cv_header_stdlib_h" = xyes; then :
     5194if test "x$ac_cv_header_stdlib_h" = x""yes; then :
    52345195  cat >>confdefs.h <<_ACEOF
    52355196#define HAVE_STDLIB_H 1
     
    52465207do :
    52475208  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
    5248 if test "x$ac_cv_header_stddef_h" = xyes; then :
     5209if test "x$ac_cv_header_stddef_h" = x""yes; then :
    52495210  cat >>confdefs.h <<_ACEOF
    52505211#define HAVE_STDDEF_H 1
     
    52615222do :
    52625223  ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
    5263 if test "x$ac_cv_header_float_h" = xyes; then :
     5224if test "x$ac_cv_header_float_h" = x""yes; then :
    52645225  cat >>confdefs.h <<_ACEOF
    52655226#define HAVE_FLOAT_H 1
     
    52765237do :
    52775238  ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
    5278 if test "x$ac_cv_header_math_h" = xyes; then :
     5239if test "x$ac_cv_header_math_h" = x""yes; then :
    52795240  cat >>confdefs.h <<_ACEOF
    52805241#define HAVE_MATH_H 1
     
    52915252do :
    52925253  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
    5293 if test "x$ac_cv_header_malloc_h" = xyes; then :
     5254if test "x$ac_cv_header_malloc_h" = x""yes; then :
    52945255  cat >>confdefs.h <<_ACEOF
    52955256#define HAVE_MALLOC_H 1
     
    53065267do :
    53075268  ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
    5308 if test "x$ac_cv_header_memory_h" = xyes; then :
     5269if test "x$ac_cv_header_memory_h" = x""yes; then :
    53095270  cat >>confdefs.h <<_ACEOF
    53105271#define HAVE_MEMORY_H 1
     
    53215282do :
    53225283  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
    5323 if test "x$ac_cv_header_unistd_h" = xyes; then :
     5284if test "x$ac_cv_header_unistd_h" = x""yes; then :
    53245285  cat >>confdefs.h <<_ACEOF
    53255286#define HAVE_UNISTD_H 1
     
    53375298do :
    53385299  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
    5339 if test "x$ac_cv_header_inttypes_h" = xyes; then :
     5300if test "x$ac_cv_header_inttypes_h" = x""yes; then :
    53405301  cat >>confdefs.h <<_ACEOF
    53415302#define HAVE_INTTYPES_H 1
     
    53985359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
    53995360$as_echo_n "checking system version... " >&6; }
    5400 if ${tcl_cv_sys_version+:} false; then :
     5361if test "${tcl_cv_sys_version+set}" = set; then :
    54015362  $as_echo_n "(cached) " >&6
    54025363else
     
    54345395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
    54355396$as_echo_n "checking for dlopen in -ldl... " >&6; }
    5436 if ${ac_cv_lib_dl_dlopen+:} false; then :
     5397if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
    54375398  $as_echo_n "(cached) " >&6
    54385399else
     
    54685429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
    54695430$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
    5470 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
     5431if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
    54715432  have_dl=yes
    54725433else
     
    55025463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    55035464$as_echo_n "checking for $ac_word... " >&6; }
    5504 if ${ac_cv_prog_AR+:} false; then :
     5465if test "${ac_cv_prog_AR+set}" = set; then :
    55055466  $as_echo_n "(cached) " >&6
    55065467else
     
    55365497
    55375498    if test "${AR}" = "" ; then
    5538         as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
     5499        as_fn_error "Required archive tool 'ar' not found on PATH." "$LINENO" 5
    55395500    fi
    55405501    STLIB_LD='${AR} cr'
     
    56275588            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
    56285589$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
    5629 if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
     5590if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then :
    56305591  $as_echo_n "(cached) " >&6
    56315592else
     
    56615622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
    56625623$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
    5663 if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
     5624if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then :
    56645625  libbsd=yes
    56655626else
     
    56885649            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
    56895650$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
    5690 if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
     5651if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then :
    56915652  $as_echo_n "(cached) " >&6
    56925653else
     
    57225683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
    57235684$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
    5724 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
     5685if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then :
    57255686  LIBS="$LIBS -lbind -lsocket"
    57265687fi
     
    57735734            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    57745735$as_echo_n "checking for shl_load in -ldld... " >&6; }
    5775 if ${ac_cv_lib_dld_shl_load+:} false; then :
     5736if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
    57765737  $as_echo_n "(cached) " >&6
    57775738else
     
    58075768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    58085769$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    5809 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     5770if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
    58105771  tcl_ok=yes
    58115772else
     
    58625823            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    58635824$as_echo_n "checking for shl_load in -ldld... " >&6; }
    5864 if ${ac_cv_lib_dld_shl_load+:} false; then :
     5825if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
    58655826  $as_echo_n "(cached) " >&6
    58665827else
     
    58965857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    58975858$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    5898 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     5859if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
    58995860  tcl_ok=yes
    59005861else
     
    60055966            else
    60065967                ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    6007 if test "x$ac_cv_header_dld_h" = xyes; then :
     5968if test "x$ac_cv_header_dld_h" = x""yes; then :
    60085969
    60095970                    SHLIB_LD="ld -shared"
     
    60225983                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
    60235984$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
    6024 if ${tcl_cv_cc_m64+:} false; then :
     5985if test "${tcl_cv_cc_m64+set}" = set; then :
    60255986  $as_echo_n "(cached) " >&6
    60265987else
     
    60866047            else
    60876048                ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    6088 if test "x$ac_cv_header_dld_h" = xyes; then :
     6049if test "x$ac_cv_header_dld_h" = x""yes; then :
    60896050
    60906051                    SHLIB_LD="ld -shared"
     
    61376098            # Not available on all versions:  check for include file.
    61386099            ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
    6139 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
     6100if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
    61406101
    61416102                # NetBSD/SPARC needs -fPIC, -fpic will not do.
     
    61506111                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
    61516112$as_echo_n "checking for ELF... " >&6; }
    6152 if ${tcl_cv_ld_elf+:} false; then :
     6113if test "${tcl_cv_ld_elf+set}" = set; then :
    61536114  $as_echo_n "(cached) " >&6
    61546115else
     
    62326193                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
    62336194$as_echo_n "checking for ELF... " >&6; }
    6234 if ${tcl_cv_ld_elf+:} false; then :
     6195if test "${tcl_cv_ld_elf+set}" = set; then :
    62356196  $as_echo_n "(cached) " >&6
    62366197else
     
    63106271                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
    63116272$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
    6312 if ${tcl_cv_cc_arch_ppc64+:} false; then :
     6273if test "${tcl_cv_cc_arch_ppc64+set}" = set; then :
    63136274  $as_echo_n "(cached) " >&6
    63146275else
     
    63456306                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
    63466307$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
    6347 if ${tcl_cv_cc_arch_x86_64+:} false; then :
     6308if test "${tcl_cv_cc_arch_x86_64+set}" = set; then :
    63486309  $as_echo_n "(cached) " >&6
    63496310else
     
    63906351            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
    63916352$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
    6392 if ${tcl_cv_ld_single_module+:} false; then :
     6353if test "${tcl_cv_ld_single_module+set}" = set; then :
    63936354  $as_echo_n "(cached) " >&6
    63946355else
     
    64326393            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
    64336394$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
    6434 if ${tcl_cv_ld_search_paths_first+:} false; then :
     6395if test "${tcl_cv_ld_search_paths_first+set}" = set; then :
    64356396  $as_echo_n "(cached) " >&6
    64366397else
     
    64826443                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
    64836444$as_echo_n "checking for CoreFoundation.framework... " >&6; }
    6484 if ${tcl_cv_lib_corefoundation+:} false; then :
     6445if test "${tcl_cv_lib_corefoundation+set}" = set; then :
    64856446  $as_echo_n "(cached) " >&6
    64866447else
     
    65286489                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
    65296490$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
    6530 if ${tcl_cv_lib_corefoundation_64+:} false; then :
     6491if test "${tcl_cv_lib_corefoundation_64+set}" = set; then :
    65316492  $as_echo_n "(cached) " >&6
    65326493else
     
    68536814            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
    68546815$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
    6855 if ${tcl_cv_ld_Bexport+:} false; then :
     6816if test "${tcl_cv_ld_Bexport+set}" = set; then :
    68566817  $as_echo_n "(cached) " >&6
    68576818else
     
    69196880        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
    69206881$as_echo_n "checking sys/exec.h... " >&6; }
    6921 if ${tcl_cv_sysexec_h+:} false; then :
     6882if test "${tcl_cv_sysexec_h+set}" = set; then :
    69226883  $as_echo_n "(cached) " >&6
    69236884else
     
    69606921            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
    69616922$as_echo_n "checking a.out.h... " >&6; }
    6962 if ${tcl_cv_aout_h+:} false; then :
     6923if test "${tcl_cv_aout_h+set}" = set; then :
    69636924  $as_echo_n "(cached) " >&6
    69646925else
     
    70016962                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
    70026963$as_echo_n "checking sys/exec_aout.h... " >&6; }
    7003 if ${tcl_cv_sysexecaout_h+:} false; then :
     6964if test "${tcl_cv_sysexecaout_h+set}" = set; then :
    70046965  $as_echo_n "(cached) " >&6
    70056966else
     
    71807141done
    71817142if test "x${make_command}" = "x" ; then
    7182   as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
     7143  as_fn_error "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
    71837144fi
    71847145MAKE=${make_command}
     
    72297190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    72307191$as_echo_n "checking for $ac_word... " >&6; }
    7231 if ${ac_cv_path_TCLSH+:} false; then :
     7192if test "${ac_cv_path_TCLSH+set}" = set; then :
    72327193  $as_echo_n "(cached) " >&6
    72337194else
     
    72717232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    72727233$as_echo_n "checking for $ac_word... " >&6; }
    7273 if ${ac_cv_path_TCLSH+:} false; then :
     7234if test "${ac_cv_path_TCLSH+set}" = set; then :
    72747235  $as_echo_n "(cached) " >&6
    72757236else
     
    73107271  fi
    73117272  if test "x${TCLSH}" = "x" ; then
    7312     as_fn_error $? "can't find tclsh" "$LINENO" 5
     7273    as_fn_error "can't find tclsh" "$LINENO" 5
    73137274  fi
    73147275fi
     
    73797340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    73807341$as_echo_n "checking for $ac_word... " >&6; }
    7381 if ${ac_cv_path_MATLAB+:} false; then :
     7342if test "${ac_cv_path_MATLAB+set}" = set; then :
    73827343  $as_echo_n "(cached) " >&6
    73837344else
     
    74207381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    74217382$as_echo_n "checking for $ac_word... " >&6; }
    7422 if ${ac_cv_path_MATLAB+:} false; then :
     7383if test "${ac_cv_path_MATLAB+set}" = set; then :
    74237384  $as_echo_n "(cached) " >&6
    74247385else
     
    74717432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    74727433$as_echo_n "checking for $ac_word... " >&6; }
    7473 if ${ac_cv_path_MEX+:} false; then :
     7434if test "${ac_cv_path_MEX+set}" = set; then :
    74747435  $as_echo_n "(cached) " >&6
    74757436else
     
    75117472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    75127473$as_echo_n "checking for $ac_word... " >&6; }
    7513 if ${ac_cv_path_MEXEXT+:} false; then :
     7474if test "${ac_cv_path_MEXEXT+set}" = set; then :
    75147475  $as_echo_n "(cached) " >&6
    75157476else
     
    75627523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    75637524$as_echo_n "checking for $ac_word... " >&6; }
    7564 if ${ac_cv_path_MCC+:} false; then :
     7525if test "${ac_cv_path_MCC+set}" = set; then :
    75657526  $as_echo_n "(cached) " >&6
    75667527else
     
    76327593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    76337594$as_echo_n "checking for $ac_word... " >&6; }
    7634 if ${ac_cv_path_OCTAVE+:} false; then :
     7595if test "${ac_cv_path_OCTAVE+set}" = set; then :
    76357596  $as_echo_n "(cached) " >&6
    76367597else
     
    76727633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    76737634$as_echo_n "checking for $ac_word... " >&6; }
    7674 if ${ac_cv_path_MKOCTFILE+:} false; then :
     7635if test "${ac_cv_path_MKOCTFILE+set}" = set; then :
    76757636  $as_echo_n "(cached) " >&6
    76767637else
     
    77427703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    77437704$as_echo_n "checking for $ac_word... " >&6; }
    7744 if ${ac_cv_path_octave2+:} false; then :
     7705if test "${ac_cv_path_octave2+set}" = set; then :
    77457706  $as_echo_n "(cached) " >&6
    77467707else
     
    77827743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    77837744$as_echo_n "checking for $ac_word... " >&6; }
    7784 if ${ac_cv_path_mkoctfile2+:} false; then :
     7745if test "${ac_cv_path_mkoctfile2+set}" = set; then :
    77857746  $as_echo_n "(cached) " >&6
    77867747else
     
    78497810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    78507811$as_echo_n "checking for $ac_word... " >&6; }
    7851 if ${ac_cv_path_octave3+:} false; then :
     7812if test "${ac_cv_path_octave3+set}" = set; then :
    78527813  $as_echo_n "(cached) " >&6
    78537814else
     
    78897850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    78907851$as_echo_n "checking for $ac_word... " >&6; }
    7891 if ${ac_cv_path_mkoctfile3+:} false; then :
     7852if test "${ac_cv_path_mkoctfile3+set}" = set; then :
    78927853  $as_echo_n "(cached) " >&6
    78937854else
     
    79757936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    79767937$as_echo_n "checking for $ac_word... " >&6; }
    7977 if ${ac_cv_path_PERL+:} false; then :
     7938if test "${ac_cv_path_PERL+set}" = set; then :
    79787939  $as_echo_n "(cached) " >&6
    79797940else
     
    80177978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    80187979$as_echo_n "checking for $ac_word... " >&6; }
    8019 if ${ac_cv_path_PERL+:} false; then :
     7980if test "${ac_cv_path_PERL+set}" = set; then :
    80207981  $as_echo_n "(cached) " >&6
    80217982else
     
    81118072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    81128073$as_echo_n "checking for $ac_word... " >&6; }
    8113 if ${ac_cv_path_PYTHON+:} false; then :
     8074if test "${ac_cv_path_PYTHON+set}" = set; then :
    81148075  $as_echo_n "(cached) " >&6
    81158076else
     
    81528113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    81538114$as_echo_n "checking for $ac_word... " >&6; }
    8154 if ${ac_cv_path_PYTHON+:} false; then :
     8115if test "${ac_cv_path_PYTHON+set}" = set; then :
    81558116  $as_echo_n "(cached) " >&6
    81568117else
     
    82368197do :
    82378198  ac_fn_cxx_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
    8238 if test "x$ac_cv_header_Python_h" = xyes; then :
     8199if test "x$ac_cv_header_Python_h" = x""yes; then :
    82398200  cat >>confdefs.h <<_ACEOF
    82408201#define HAVE_PYTHON_H 1
     
    82848245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    82858246$as_echo_n "checking for $ac_word... " >&6; }
    8286 if ${ac_cv_path_RUBY+:} false; then :
     8247if test "${ac_cv_path_RUBY+set}" = set; then :
    82878248  $as_echo_n "(cached) " >&6
    82888249else
     
    83258286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    83268287$as_echo_n "checking for $ac_word... " >&6; }
    8327 if ${ac_cv_path_RUBY+:} false; then :
     8288if test "${ac_cv_path_RUBY+set}" = set; then :
    83288289  $as_echo_n "(cached) " >&6
    83298290else
     
    83718332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
    83728333$as_echo_n "checking for a sed that does not truncate output... " >&6; }
    8373 if ${ac_cv_path_SED+:} false; then :
     8334if test "${ac_cv_path_SED+set}" = set; then :
    83748335  $as_echo_n "(cached) " >&6
    83758336else
     
    84268387IFS=$as_save_IFS
    84278388  if test -z "$ac_cv_path_SED"; then
    8428     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
     8389    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
    84298390  fi
    84308391else
     
    84648425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    84658426$as_echo_n "checking for $ac_word... " >&6; }
    8466 if ${ac_cv_prog_AWK+:} false; then :
     8427if test "${ac_cv_prog_AWK+set}" = set; then :
    84678428  $as_echo_n "(cached) " >&6
    84688429else
     
    87038664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    87048665$as_echo_n "checking for $ac_word... " >&6; }
    8705 if ${ac_cv_path_JAVA+:} false; then :
     8666if test "${ac_cv_path_JAVA+set}" = set; then :
    87068667  $as_echo_n "(cached) " >&6
    87078668else
     
    87438704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    87448705$as_echo_n "checking for $ac_word... " >&6; }
    8745 if ${ac_cv_path_JAVAC+:} false; then :
     8706if test "${ac_cv_path_JAVAC+set}" = set; then :
    87468707  $as_echo_n "(cached) " >&6
    87478708else
     
    87838744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    87848745$as_echo_n "checking for $ac_word... " >&6; }
    8785 if ${ac_cv_path_JAVAH+:} false; then :
     8746if test "${ac_cv_path_JAVAH+set}" = set; then :
    87868747  $as_echo_n "(cached) " >&6
    87878748else
     
    88248785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    88258786$as_echo_n "checking for $ac_word... " >&6; }
    8826 if ${ac_cv_path_JAVA+:} false; then :
     8787if test "${ac_cv_path_JAVA+set}" = set; then :
    88278788  $as_echo_n "(cached) " >&6
    88288789else
     
    88658826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    88668827$as_echo_n "checking for $ac_word... " >&6; }
    8867 if ${ac_cv_path_JAVAC+:} false; then :
     8828if test "${ac_cv_path_JAVAC+set}" = set; then :
    88688829  $as_echo_n "(cached) " >&6
    88698830else
     
    89068867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    89078868$as_echo_n "checking for $ac_word... " >&6; }
    8908 if ${ac_cv_path_JAVAH+:} false; then :
     8869if test "${ac_cv_path_JAVAH+set}" = set; then :
    89098870  $as_echo_n "(cached) " >&6
    89108871else
     
    90439004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
    90449005$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
    9045 if ${ac_cv_c_bigendian+:} false; then :
     9006if test "${ac_cv_c_bigendian+set}" = set; then :
    90469007  $as_echo_n "(cached) " >&6
    90479008else
     
    92619222     ;; #(
    92629223   *)
    9263      as_fn_error $? "unknown endianness
     9224     as_fn_error "unknown endianness
    92649225 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
    92659226 esac
     
    92719232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
    92729233$as_echo_n "checking size of int... " >&6; }
    9273 if ${ac_cv_sizeof_int+:} false; then :
     9234if test "${ac_cv_sizeof_int+set}" = set; then :
    92749235  $as_echo_n "(cached) " >&6
    92759236else
     
    92809241     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    92819242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9282 as_fn_error 77 "cannot compute sizeof (int)
    9283 See \`config.log' for more details" "$LINENO" 5; }
     9243{ as_fn_set_status 77
     9244as_fn_error "cannot compute sizeof (int)
     9245See \`config.log' for more details." "$LINENO" 5; }; }
    92849246   else
    92859247     ac_cv_sizeof_int=0
     
    93049266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
    93059267$as_echo_n "checking size of long... " >&6; }
    9306 if ${ac_cv_sizeof_long+:} false; then :
     9268if test "${ac_cv_sizeof_long+set}" = set; then :
    93079269  $as_echo_n "(cached) " >&6
    93089270else
     
    93139275     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    93149276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9315 as_fn_error 77 "cannot compute sizeof (long)
    9316 See \`config.log' for more details" "$LINENO" 5; }
     9277{ as_fn_set_status 77
     9278as_fn_error "cannot compute sizeof (long)
     9279See \`config.log' for more details." "$LINENO" 5; }; }
    93179280   else
    93189281     ac_cv_sizeof_long=0
     
    93379300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
    93389301$as_echo_n "checking size of long long... " >&6; }
    9339 if ${ac_cv_sizeof_long_long+:} false; then :
     9302if test "${ac_cv_sizeof_long_long+set}" = set; then :
    93409303  $as_echo_n "(cached) " >&6
    93419304else
     
    93469309     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    93479310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9348 as_fn_error 77 "cannot compute sizeof (long long)
    9349 See \`config.log' for more details" "$LINENO" 5; }
     9311{ as_fn_set_status 77
     9312as_fn_error "cannot compute sizeof (long long)
     9313See \`config.log' for more details." "$LINENO" 5; }; }
    93509314   else
    93519315     ac_cv_sizeof_long_long=0
     
    93709334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
    93719335$as_echo_n "checking size of void *... " >&6; }
    9372 if ${ac_cv_sizeof_void_p+:} false; then :
     9336if test "${ac_cv_sizeof_void_p+set}" = set; then :
    93739337  $as_echo_n "(cached) " >&6
    93749338else
     
    93799343     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    93809344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9381 as_fn_error 77 "cannot compute sizeof (void *)
    9382 See \`config.log' for more details" "$LINENO" 5; }
     9345{ as_fn_set_status 77
     9346as_fn_error "cannot compute sizeof (void *)
     9347See \`config.log' for more details." "$LINENO" 5; }; }
    93839348   else
    93849349     ac_cv_sizeof_void_p=0
     
    94789443
    94799444"
    9480 if test "x$ac_cv_header_ffmpeg_avcodec_h" = xyes; then :
     9445if test "x$ac_cv_header_ffmpeg_avcodec_h" = x""yes; then :
    94819446  cat >>confdefs.h <<_ACEOF
    94829447#define HAVE_FFMPEG_AVCODEC_H 1
     
    94969461
    94979462"
    9498 if test "x$ac_cv_header_libavcodec_avcodec_h" = xyes; then :
     9463if test "x$ac_cv_header_libavcodec_avcodec_h" = x""yes; then :
    94999464  cat >>confdefs.h <<_ACEOF
    95009465#define HAVE_LIBAVCODEC_AVCODEC_H 1
     
    95149479
    95159480"
    9516 if test "x$ac_cv_header_ffmpeg_avformat_h" = xyes; then :
     9481if test "x$ac_cv_header_ffmpeg_avformat_h" = x""yes; then :
    95179482  cat >>confdefs.h <<_ACEOF
    95189483#define HAVE_FFMPEG_AVFORMAT_H 1
     
    95329497
    95339498"
    9534 if test "x$ac_cv_header_libavformat_avformat_h" = xyes; then :
     9499if test "x$ac_cv_header_libavformat_avformat_h" = x""yes; then :
    95359500  cat >>confdefs.h <<_ACEOF
    95369501#define HAVE_LIBAVFORMAT_AVFORMAT_H 1
     
    95509515
    95519516"
    9552 if test "x$ac_cv_header_ffmpeg_avutil_h" = xyes; then :
     9517if test "x$ac_cv_header_ffmpeg_avutil_h" = x""yes; then :
    95539518  cat >>confdefs.h <<_ACEOF
    95549519#define HAVE_FFMPEG_AVUTIL_H 1
     
    95689533
    95699534"
    9570 if test "x$ac_cv_header_libavutil_avutil_h" = xyes; then :
     9535if test "x$ac_cv_header_libavutil_avutil_h" = x""yes; then :
    95719536  cat >>confdefs.h <<_ACEOF
    95729537#define HAVE_LIBAVUTIL_AVUTIL_H 1
     
    95869551
    95879552"
    9588 if test "x$ac_cv_header_ffmpeg_swscale_h" = xyes; then :
     9553if test "x$ac_cv_header_ffmpeg_swscale_h" = x""yes; then :
    95899554  cat >>confdefs.h <<_ACEOF
    95909555#define HAVE_FFMPEG_SWSCALE_H 1
     
    96049569
    96059570"
    9606 if test "x$ac_cv_header_libswscale_swscale_h" = xyes; then :
     9571if test "x$ac_cv_header_libswscale_swscale_h" = x""yes; then :
    96079572  cat >>confdefs.h <<_ACEOF
    96089573#define HAVE_LIBSWSCALE_SWSCALE_H 1
     
    96349599do :
    96359600  ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
    9636 if test "x$ac_cv_func_img_convert" = xyes; then :
     9601if test "x$ac_cv_func_img_convert" = x""yes; then :
    96379602  cat >>confdefs.h <<_ACEOF
    96389603#define HAVE_IMG_CONVERT 1
     
    96459610do :
    96469611  ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
    9647 if test "x$ac_cv_func_sws_scale" = xyes; then :
     9612if test "x$ac_cv_func_sws_scale" = x""yes; then :
    96489613  cat >>confdefs.h <<_ACEOF
    96499614#define HAVE_SWS_SCALE 1
     
    96619626
    96629627
    9663 ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile instant/Makefile instant/irappture lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/src/Makefile lang/tcl/scripts/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/2/Makefile examples/app-fermi/octave/3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/contour/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/cloud/Makefile examples/zoo/cloud/matlab/Makefile examples/zoo/curve/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/loadrun/Makefile examples/zoo/log/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile examples/zoo/unirect2d/Makefile oldtest/Makefile oldtest/src/Makefile"
     9628ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile builder/Makefile builder/pkgIndex.tcl tester/Makefile tester/pkgIndex.tcl lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/src/Makefile lang/tcl/scripts/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/2/Makefile examples/app-fermi/octave/3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/contour/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/cloud/Makefile examples/zoo/cloud/matlab/Makefile examples/zoo/curve/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/loadrun/Makefile examples/zoo/log/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile examples/zoo/unirect2d/Makefile oldtest/Makefile oldtest/src/Makefile"
    96649629
    96659630cat >confcache <<\_ACEOF
     
    97279692if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
    97289693  if test -w "$cache_file"; then
    9729     if test "x$cache_file" != "x/dev/null"; then
     9694    test "x$cache_file" != "x/dev/null" &&
    97309695      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
    97319696$as_echo "$as_me: updating cache $cache_file" >&6;}
    9732       if test ! -f "$cache_file" || test -h "$cache_file"; then
    9733         cat confcache >"$cache_file"
    9734       else
    9735         case $cache_file in #(
    9736         */* | ?:*)
    9737           mv -f confcache "$cache_file"$$ &&
    9738           mv -f "$cache_file"$$ "$cache_file" ;; #(
    9739         *)
    9740           mv -f confcache "$cache_file" ;;
    9741         esac
    9742       fi
    9743     fi
     9697    cat confcache >$cache_file
    97449698  else
    97459699    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     
    97579711ac_libobjs=
    97589712ac_ltlibobjs=
    9759 U=
    97609713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    97619714  # 1. Remove the extension, and $U if already installed.
     
    97749727
    97759728
    9776 : "${CONFIG_STATUS=./config.status}"
     9729: ${CONFIG_STATUS=./config.status}
    97779730ac_write_fail=0
    97789731ac_clean_files_save=$ac_clean_files
     
    98759828
    98769829# Find who we are.  Look in the path if we contain no directory separator.
    9877 as_myself=
    98789830case $0 in #((
    98799831  *[\\/]* ) as_myself=$0 ;;
     
    99219873
    99229874
    9923 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    9924 # ----------------------------------------
     9875# as_fn_error ERROR [LINENO LOG_FD]
     9876# ---------------------------------
    99259877# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    99269878# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    9927 # script with STATUS, using 1 if that was 0.
     9879# script with status $?, using 1 if that was 0.
    99289880as_fn_error ()
    99299881{
    9930   as_status=$1; test $as_status -eq 0 && as_status=1
    9931   if test "$4"; then
    9932     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    9933     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    9934   fi
    9935   $as_echo "$as_me: error: $2" >&2
     9882  as_status=$?; test $as_status -eq 0 && as_status=1
     9883  if test "$3"; then
     9884    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     9885    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
     9886  fi
     9887  $as_echo "$as_me: error: $1" >&2
    99369888  as_fn_exit $as_status
    99379889} # as_fn_error
     
    1012910081    done
    1013010082    test -z "$as_dirs" || eval "mkdir $as_dirs"
    10131   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     10083  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    1013210084
    1013310085
     
    1018310135ac_log="
    1018410136This file was extended by Rappture $as_me 1.1, which was
    10185 generated by GNU Autoconf 2.68.  Invocation command line was
     10137generated by GNU Autoconf 2.64.  Invocation command line was
    1018610138
    1018710139  CONFIG_FILES    = $CONFIG_FILES
     
    1022210174  -h, --help       print this help, then exit
    1022310175  -V, --version    print version number and configuration settings, then exit
    10224       --config     print configuration, then exit
    1022510176  -q, --quiet, --silent
    1022610177                   do not print progress messages
     
    1024210193_ACEOF
    1024310194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    10244 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    1024510195ac_cs_version="\\
    1024610196Rappture config.status 1.1
    10247 configured by $0, generated by GNU Autoconf 2.68,
    10248   with options \\"\$ac_cs_config\\"
    10249 
    10250 Copyright (C) 2010 Free Software Foundation, Inc.
     10197configured by $0, generated by GNU Autoconf 2.64,
     10198  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
     10199
     10200Copyright (C) 2009 Free Software Foundation, Inc.
    1025110201This config.status script is free software; the Free Software Foundation
    1025210202gives unlimited permission to copy, distribute and modify it."
     
    1026610216do
    1026710217  case $1 in
    10268   --*=?*)
     10218  --*=*)
    1026910219    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    1027010220    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    10271     ac_shift=:
    10272     ;;
    10273   --*=)
    10274     ac_option=`expr "X$1" : 'X\([^=]*\)='`
    10275     ac_optarg=
    1027610221    ac_shift=:
    1027710222    ;;
     
    1028910234  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    1029010235    $as_echo "$ac_cs_version"; exit ;;
    10291   --config | --confi | --conf | --con | --co | --c )
    10292     $as_echo "$ac_cs_config"; exit ;;
    1029310236  --debug | --debu | --deb | --de | --d | -d )
    1029410237    debug=: ;;
     
    1029710240    case $ac_optarg in
    1029810241    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10299     '') as_fn_error $? "missing file argument" ;;
    1030010242    esac
    1030110243    as_fn_append CONFIG_FILES " '$ac_optarg'"
     
    1031010252  --he | --h)
    1031110253    # Conflict between --help and --header
    10312     as_fn_error $? "ambiguous option: \`$1'
     10254    as_fn_error "ambiguous option: \`$1'
    1031310255Try \`$0 --help' for more information.";;
    1031410256  --help | --hel | -h )
     
    1031910261
    1032010262  # This is an error.
    10321   -*) as_fn_error $? "unrecognized option: \`$1'
     10263  -*) as_fn_error "unrecognized option: \`$1'
    1032210264Try \`$0 --help' for more information." ;;
    1032310265
     
    1038910331    "gui/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES gui/pkgIndex.tcl" ;;
    1039010332    "gui/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES gui/scripts/Makefile" ;;
    10391     "instant/Makefile") CONFIG_FILES="$CONFIG_FILES instant/Makefile" ;;
    10392     "instant/irappture") CONFIG_FILES="$CONFIG_FILES instant/irappture" ;;
     10333    "builder/Makefile") CONFIG_FILES="$CONFIG_FILES builder/Makefile" ;;
     10334    "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;;
     10335    "tester/Makefile") CONFIG_FILES="$CONFIG_FILES tester/Makefile" ;;
     10336    "tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tester/pkgIndex.tcl" ;;
    1039310337    "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
    1039410338    "lang/java/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/Makefile" ;;
     
    1049110435    "oldtest/src/Makefile") CONFIG_FILES="$CONFIG_FILES oldtest/src/Makefile" ;;
    1049210436
    10493   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     10437  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
    1049410438  esac
    1049510439done
     
    1051310457$debug ||
    1051410458{
    10515   tmp= ac_tmp=
     10459  tmp=
    1051610460  trap 'exit_status=$?
    10517   : "${ac_tmp:=$tmp}"
    10518   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
     10461  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
    1051910462' 0
    1052010463  trap 'as_fn_exit 1' 1 2 13 15
     
    1052410467{
    1052510468  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    10526   test -d "$tmp"
     10469  test -n "$tmp" && test -d "$tmp"
    1052710470}  ||
    1052810471{
    1052910472  tmp=./conf$$-$RANDOM
    1053010473  (umask 077 && mkdir "$tmp")
    10531 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
    10532 ac_tmp=$tmp
     10474} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
    1053310475
    1053410476# Set up the scripts for CONFIG_FILES section.
     
    1054710489ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
    1054810490if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
    10549   ac_cs_awk_cr='\\r'
     10491  ac_cs_awk_cr='\r'
    1055010492else
    1055110493  ac_cs_awk_cr=$ac_cr
    1055210494fi
    1055310495
    10554 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
     10496echo 'BEGIN {' >"$tmp/subs1.awk" &&
    1055510497_ACEOF
    1055610498
     
    1056110503  echo "_ACEOF"
    1056210504} >conf$$subs.sh ||
    10563   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    10564 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     10505  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
     10506ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
    1056510507ac_delim='%!_!# '
    1056610508for ac_last_try in false false false false false :; do
    1056710509  . ./conf$$subs.sh ||
    10568     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     10510    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
    1056910511
    1057010512  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     
    1057210514    break
    1057310515  elif $ac_last_try; then
    10574     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     10516    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
    1057510517  else
    1057610518    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    1058010522
    1058110523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    10582 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
     10524cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
    1058310525_ACEOF
    1058410526sed -n '
     
    1059410536:nl
    1059510537h
    10596 s/\(.\{148\}\)..*/\1/
     10538s/\(.\{148\}\).*/\1/
    1059710539t more1
    1059810540s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     
    1060810550:delim
    1060910551h
    10610 s/\(.\{148\}\)..*/\1/
     10552s/\(.\{148\}\).*/\1/
    1061110553t more2
    1061210554s/["\\]/\\&/g; s/^/"/; s/$/"/
     
    1062810570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    1062910571_ACAWK
    10630 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
     10572cat >>"\$tmp/subs1.awk" <<_ACAWK &&
    1063110573  for (key in S) S_is_set[key] = 1
    1063210574  FS = ""
     
    1066010602else
    1066110603  cat
    10662 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
    10663   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
    10664 _ACEOF
    10665 
    10666 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
    10667 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     10604fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     10605  || as_fn_error "could not setup config files machinery" "$LINENO" 5
     10606_ACEOF
     10607
     10608# VPATH may cause trouble with some makes, so we remove $(srcdir),
     10609# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    1066810610# trailing colons and then remove the whole line if VPATH becomes empty
    1066910611# (actually we leave an empty line to preserve line numbers).
    1067010612if test "x$srcdir" = x.; then
    10671   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
    10672 h
    10673 s///
    10674 s/^/:/
    10675 s/[      ]*$/:/
    10676 s/:\$(srcdir):/:/g
    10677 s/:\${srcdir}:/:/g
    10678 s/:@srcdir@:/:/g
    10679 s/^:*//
     10613  ac_vpsub='/^[  ]*VPATH[        ]*=/{
     10614s/:*\$(srcdir):*/:/
     10615s/:*\${srcdir}:*/:/
     10616s/:*@srcdir@:*/:/
     10617s/^\([^=]*=[     ]*\):*/\1/
    1068010618s/:*$//
    10681 x
    10682 s/\(=[   ]*\).*/\1/
    10683 G
    10684 s/\n//
    1068510619s/^[^=]*=[       ]*$//
    1068610620}'
     
    1069410628# This happens for instance with `./config.status Makefile'.
    1069510629if test -n "$CONFIG_HEADERS"; then
    10696 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
     10630cat >"$tmp/defines.awk" <<\_ACAWK ||
    1069710631BEGIN {
    1069810632_ACEOF
     
    1070610640ac_delim='%!_!# '
    1070710641for ac_last_try in false false :; do
    10708   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
    10709   if test -z "$ac_tt"; then
     10642  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
     10643  if test -z "$ac_t"; then
    1071010644    break
    1071110645  elif $ac_last_try; then
    10712     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     10646    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
    1071310647  else
    1071410648    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    1079510729_ACEOF
    1079610730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    10797   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     10731  as_fn_error "could not setup config headers machinery" "$LINENO" 5
    1079810732fi # test -n "$CONFIG_HEADERS"
    1079910733
     
    1080810742  case $ac_mode$ac_tag in
    1080910743  :[FHL]*:*);;
    10810   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
     10744  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
    1081110745  :[FH]-) ac_tag=-:-;;
    1081210746  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     
    1082710761    do
    1082810762      case $ac_f in
    10829       -) ac_f="$ac_tmp/stdin";;
     10763      -) ac_f="$tmp/stdin";;
    1083010764      *) # Look for the file first in the build tree, then in the source tree
    1083110765         # (if the path is not absolute).  The absolute path cannot be DOS-style,
     
    1083610770           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    1083710771           esac ||
    10838            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
     10772           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
    1083910773      esac
    1084010774      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     
    1086210796
    1086310797    case $ac_tag in
    10864     *:-:* | *:-) cat >"$ac_tmp/stdin" \
    10865       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
     10798    *:-:* | *:-) cat >"$tmp/stdin" \
     10799      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
    1086610800    esac
    1086710801    ;;
     
    1099910933$ac_datarootdir_hack
    1100010934"
    11001 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
    11002   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     10935eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     10936  || as_fn_error "could not create $ac_file" "$LINENO" 5
    1100310937
    1100410938test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
    11005   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
    11006   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
    11007       "$ac_tmp/out"`; test -z "$ac_out"; } &&
     10939  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     10940  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
    1100810941  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    11009 which seems to be undefined.  Please make sure it is defined" >&5
     10942which seems to be undefined.  Please make sure it is defined." >&5
    1101010943$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    11011 which seems to be undefined.  Please make sure it is defined" >&2;}
    11012 
    11013   rm -f "$ac_tmp/stdin"
     10944which seems to be undefined.  Please make sure it is defined." >&2;}
     10945
     10946  rm -f "$tmp/stdin"
    1101410947  case $ac_file in
    11015   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
    11016   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
     10948  -) cat "$tmp/out" && rm -f "$tmp/out";;
     10949  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
    1101710950  esac \
    11018   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     10951  || as_fn_error "could not create $ac_file" "$LINENO" 5
    1101910952 ;;
    1102010953  :H)
     
    1102510958    {
    1102610959      $as_echo "/* $configure_input  */" \
    11027       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    11028     } >"$ac_tmp/config.h" \
    11029       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    11030     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
     10960      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
     10961    } >"$tmp/config.h" \
     10962      || as_fn_error "could not create $ac_file" "$LINENO" 5
     10963    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
    1103110964      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
    1103210965$as_echo "$as_me: $ac_file is unchanged" >&6;}
    1103310966    else
    1103410967      rm -f "$ac_file"
    11035       mv "$ac_tmp/config.h" "$ac_file" \
    11036         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     10968      mv "$tmp/config.h" "$ac_file" \
     10969        || as_fn_error "could not create $ac_file" "$LINENO" 5
    1103710970    fi
    1103810971  else
    1103910972    $as_echo "/* $configure_input  */" \
    11040       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
    11041       || as_fn_error $? "could not create -" "$LINENO" 5
     10973      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
     10974      || as_fn_error "could not create -" "$LINENO" 5
    1104210975  fi
    1104310976 ;;
     
    1105410987
    1105510988test $ac_write_fail = 0 ||
    11056   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
     10989  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
    1105710990
    1105810991
     
    1107511008  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    1107611009  # would make configure fail if this is the last instruction.
    11077   $ac_cs_success || as_fn_exit 1
     11010  $ac_cs_success || as_fn_exit $?
    1107811011fi
    1107911012
     
    1121611149      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
    1121711150           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
    11218         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
     11151        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    1121911152    fi
    1122011153
  • trunk/configure.in

    r2065 r2080  
    723723    gui/pkgIndex.tcl
    724724    gui/scripts/Makefile
    725     instant/Makefile
    726     instant/irappture
     725    builder/Makefile
     726    builder/pkgIndex.tcl
     727    tester/Makefile
     728    tester/pkgIndex.tcl
    727729    lang/Makefile
    728730    lang/java/Makefile
  • trunk/gui/apps/Makefile.in

    r1944 r2080  
    2222SCRIPTS = \
    2323                encodedata \
    24                 $(srcdir)/driver \
     24                $(srcdir)/launcher.tcl \
    2525                $(srcdir)/grabdata \
    2626                $(srcdir)/nanovis-test \
  • trunk/gui/apps/rappture.in

    r1981 r2080  
    99# ======================================================================
    1010#  AUTHOR:  Michael McLennan, Purdue University
    11 #  Copyright (c) 2004-2007  Purdue Research Foundation
     11#  Copyright (c) 2004-2011  Purdue Research Foundation
    1212#
    1313#  See the file "license.terms" for information on usage and
     
    1616dir=`dirname $0`
    1717. $dir/rappture.env
    18 exec $dir/driver $*
     18exec $dir/launcher.tcl $*
  • trunk/gui/scripts/main.tcl

    r2076 r2080  
    99#
    1010#  RUN AS FOLLOWS:
    11 #    driver ?-tool <toolfile>?
     11#    wish main.tcl ?-tool <toolfile>?
    1212#
    1313#  If the <toolfile> is not specified, it defaults to "tool.xml" in
     
    1616# ======================================================================
    1717#  AUTHOR:  Michael McLennan, Purdue University
    18 #  Copyright (c) 2004-2005  Purdue Research Foundation
     18#  Copyright (c) 2004-2011  Purdue Research Foundation
    1919#
    2020#  See the file "license.terms" for information on usage and
    2121#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
    2222# ======================================================================
    23 #\
    24 exec wish "$0" $*
    25 # ----------------------------------------------------------------------
    26 # wish executes everything from here on...
    27 
    2823package require Itcl
    2924package require Rappture
  • trunk/lang/tcl/scripts/Makefile.in

    r2061 r2080  
    4141                $(srcdir)/exec.tcl \
    4242                $(srcdir)/library.tcl \
     43                $(srcdir)/objects.tcl \
     44                $(srcdir)/objects/base.rp \
    4345                $(srcdir)/result.tcl \
    4446                $(srcdir)/units.tcl
    4547
     48OBJECTS         = \
     49                boolean \
     50                choice \
     51                curve \
     52                group \
     53                histogram \
     54                integer \
     55                note \
     56                number \
     57                phase \
     58                string
     59
     60TYPEFILES       = \
     61                $(srcdir)/types/boolean.tcl \
     62                $(srcdir)/types/color.tcl \
     63                $(srcdir)/types/file.tcl \
     64                $(srcdir)/types/string.tcl \
     65                $(srcdir)/types/units.tcl
     66
     67VALIDATEFILES   = \
     68                $(srcdir)/validations/enable.tcl \
     69                $(srcdir)/validations/int.tcl \
     70                $(srcdir)/validations/number.tcl \
     71                $(srcdir)/validations/size.tcl
     72
    4673all: tclIndex
    4774
    48 tclIndex: $(FILES)
     75tclIndex: install-objects install-types install-validations $(FILES)
    4976        $(TCLSH) $(srcdir)/../tclconfig/mkindex.tcl --srcdir $(srcdir) \
    5077                --outfile tclIndex
     
    5784        $(INSTALL) -m 0444 tclIndex $(destdir)
    5885
     86install-objects:
     87        $(MKDIR_P) -m 0755 $(destdir)/objects
     88        for i in $(OBJECTS); do \
     89            echo "Installing object definition: $$i" ; \
     90            $(MKDIR_P) -m 0755 $(destdir)/objects/$$i ; \
     91            for j in $(srcdir)/objects/$$i/*; do \
     92                $(INSTALL) -m 0444 $$j $(destdir)/objects/$$i ; \
     93            done
     94        done
     95
     96install-types: $(TYPEFILES)
     97        $(MKDIR_P) -m 0755 $(destdir)/types
     98        @for i in $(TYPEFILES); do \
     99            echo "Installing $$i" ; \
     100            $(INSTALL) -m 555 $$i $(destdir)/types ; \
     101        done
     102
     103install-validations: $(VALIDATEFILES)
     104        $(MKDIR_P) -m 0755 $(destdir)/validations
     105        @for i in $(VALIDATEFILES); do \
     106            echo "Installing $$i" ; \
     107            $(INSTALL) -m 555 $$i $(destdir)/validations ; \
     108        done
     109
    59110clean:
    60111        $(RM) tclIndex
  • trunk/lang/tcl/scripts/library.tcl

    r2079 r2080  
    1616namespace eval Rappture {
    1717    variable stdlib ""
     18}
     19
     20# automatically load all Rappture object types
     21if {[catch {Rappture::objects::init} err]} {
     22    puts stderr "Error loading object definitions:\n$err"
     23    exit 1
    1824}
    1925
  • trunk/lang/tcl/scripts/objects.tcl

    r2076 r2080  
    1717# ======================================================================
    1818#  AUTHOR:  Michael McLennan, Purdue University
    19 #  Copyright (c) 2004-2010  Purdue Research Foundation
     19#  Copyright (c) 2004-2011  Purdue Research Foundation
    2020#
    2121#  See the file "license.terms" for information on usage and
     
    2626namespace eval Rappture { # forward declaration }
    2727namespace eval Rappture::objects {
     28    # location of system object info
     29    variable installdir [file dirname [file normalize [info script]]]
     30
    2831    #
    2932    # Set up a safe interpreter for loading object defn files...
     
    6164    # this variable will hold the name of the object file being parsed
    6265    variable currFile ""
     66}
     67
     68# ----------------------------------------------------------------------
     69# USAGE: Rappture::objects::init
     70#
     71# Called at the beginning of a Rappture program to initialize the
     72# object system.  Loads all object definitions in the "objects"
     73# directory found at the system location.  Object types can be
     74# queried by calling Rappture::objects::get.
     75# ----------------------------------------------------------------------
     76proc Rappture::objects::init {} {
     77    variable installdir
     78
     79    # load supporting type definitions
     80    foreach fname [glob [file join $installdir types *.tcl]] {
     81        source $fname
     82    }
     83
     84    # load supporting validation procs
     85    foreach fname [glob [file join $installdir validations *.tcl]] {
     86        source $fname
     87    }
     88
     89    # load the base class
     90    Rappture::objects::load [file join $installdir objects base.rp]
     91
     92    # load any other classes found
     93    foreach dir [glob -nocomplain -types d [file join $installdir objects *]] {
     94        Rappture::objects::load [file join $dir *.rp]
     95    }
    6396}
    6497
  • trunk/p2p/client.tcl

    r1273 r2080  
    8686    public method send {message}
    8787    public method address {}
    88 
    89     protected method handlerType {}
    9088}
    9189
     
    10199            set _sid ""
    102100        } else {
    103             log debug "sending: $message"
     101            log debug "outgoing message to [address]: $message"
    104102            puts $_sid $message
    105103        }
     
    116114    return $_addr
    117115}
    118 
    119 # ----------------------------------------------------------------------
    120 #  USAGE: handlerType
    121 #
    122 #  Returns a descriptive string describing this handler.  Derived
    123 #  classes override this method to provide their own string.  Used
    124 #  for debug messages.
    125 # ----------------------------------------------------------------------
    126 itcl::body Client::handlerType {} {
    127     return "client"
    128 }
  • trunk/p2p/foreman.tcl

    r1273 r2080  
    119119
    120120    if {"" != [statedata authoritycnx]} {
     121        [statedata authoritycnx] send "identity foreman"
    121122        [statedata authoritycnx] send "workers"
    122123    } else {
     
    160161
    161162    if {"" != [statedata workercnx]} {
     163        [statedata workercnx] send "identity foreman"
    162164        [statedata workercnx] send "solicit -job [expr {rand()}]"
    163165    } else {
  • trunk/p2p/handler.tcl

    r1273 r2080  
    5959    protected method finalize {protocol}
    6060    protected method dropped {cid}
    61     protected method handlerType {}
    6261}
    6362
     
    196195                append mesg "exception: $result"
    197196            }
    198             log debug "[handlerType] message from [connectionName $cid]: [string trimright $request \n] $mesg"
     197            log debug "incoming message from [connectionName $cid]: [string trimright $request \n] $mesg"
    199198        }
    200199    }
     
    237236    catch {unset _cname($cid)}
    238237}
    239 
    240 # ----------------------------------------------------------------------
    241 #  USAGE: handlerType
    242 #
    243 #  Returns a descriptive string describing this handler.  Derived
    244 #  classes override this method to provide their own string.  Used
    245 #  for debug messages.
    246 # ----------------------------------------------------------------------
    247 itcl::body Handler::handlerType {} {
    248     return "handler"
    249 }
  • trunk/p2p/protocols.tcl

    r1273 r2080  
    8181            $obj protocol $name
    8282            $obj define $name exception {message} {
    83                 log error "ERROR from client:  $message"
     83                variable cid
     84                variable handler
     85                log error "ERROR from client [$handler connectionName $cid]:  $message"
     86            }
     87            $obj define $name identity {name} {
     88                variable cid
     89                variable handler
     90                $handler connectionName $cid $name
     91                return ""
    8492            }
    8593
  • trunk/p2p/server.tcl

    r1273 r2080  
    106106
    107107    protected method dropped {cid}
    108     protected method handlerType {}
    109 
    110108    private method accept {cid addr port}
    111109}
     
    235233    chain $cid
    236234}
    237 
    238 # ----------------------------------------------------------------------
    239 #  USAGE: handlerType
    240 #
    241 #  Returns a descriptive string describing this handler.  Derived
    242 #  classes override this method to provide their own string.  Used
    243 #  for debug messages.
    244 # ----------------------------------------------------------------------
    245 itcl::body Server::handlerType {} {
    246     return "server"
    247 }
  • trunk/p2p/test.tcl

    r1273 r2080  
    142142    # ------------------------------------------------------------------
    143143    public proc draw {canvas time} {
     144        global times
    144145        if {[info exists _shapesOnCanvas($canvas)]} {
     146            set y0 5
     147            if {[info exists times($time)]} {
     148                $canvas create text 5 $y0 -anchor nw -text $times($time)
     149                incr y0 15
     150            }
     151            $canvas create text 5 $y0 -anchor nw -tags entity
     152
    145153            foreach obj $_shapesOnCanvas($canvas) {
    146154                if {[$obj exists $time]} {
     
    222230pack .player.fwd -side left -padx 4 -pady 2
    223231
     232button .player.err -text "0 errors" -command {wm deiconify .errors; raise .errors}
     233pack .player.err -side right -padx 4 -pady 2
     234.player.err configure -state disabled
     235
    224236scale .player.scale -label "Frame" -orient horizontal \
    225237    -from 0 -to 1 -showvalue 0 -command {test_frame_go 1}
     
    242254after idle .view.traffic invoke
    243255
     256toplevel .errors
     257wm title .errors "Error Messages"
     258wm withdraw .errors
     259wm protocol .errors WM_DELETE_WINDOW {wm withdraw .errors}
     260scrollbar .errors.ysbar -orient vertical -command {.errors.info yview}
     261pack .errors.ysbar -side right -fill y
     262text .errors.info -yscrollcommand {.errors.ysbar set} -font {Courier 12}
     263pack .errors.info -expand yes -fill both
     264.errors.info tag configure timecode -foreground gray
     265.errors.info tag configure error -foreground red -font {Courier 12 bold}
     266
    244267proc test_stop {} {
    245268    global processes
     
    279302
    280303proc test_reload {} {
    281     global time0 nodes actions nodeRadius
     304    global time0 nodes actions times nodeRadius
    282305
    283306    array set colors {
    284307        authority blue
    285308        worker gray
     309        foreman red
    286310    }
    287311
    288312    Shape::clear .diagram.network
    289313    Shape::clear .diagram.traffic
     314    .errors.info configure -state normal
     315    .errors.info delete 1.0 end
    290316    set tmax 0
     317    set errs 0
    291318
    292319    #
     
    298325        close $fid
    299326
    300         if {[regexp -- {foreman<-} $info]} {
    301             # skip log file from foreman
     327        set lasttime ""
     328        set t0val ""; set first ""
     329        set t1val ""; set last ""
     330        set info [split $info \n]
     331        foreach line $info {
     332            if {[regexp {^([0-9]+/[0-9]+/[0-9]+ [0-9]+:[0-9]+:[0-9]+)} $line match tval]} {
     333                if {"" == $t0val} {
     334                    set first $line
     335                    set t0val [expr {([clock scan $tval]-$time0)*100}]
     336                } else {
     337                    set last $line
     338                    set t1val [expr {([clock scan $tval]-$time0)*100 + 99}]
     339                }
     340            }
     341        }
     342
     343        if {"" == $t0val || "" == $t1val} {
     344            # can't find any log statements -- skip this file!
    302345            continue
    303346        }
    304347
    305348        # get the address for this host
    306         regexp {started at port ([0-9]+)} $info match port
    307         if {[regexp {options [^\n]+ ip ([^ ]+)} $info match ip]} {
    308             set addr $ip:$port
     349        if {[regexp {started at port ([0-9]+)} $info match port]} {
     350            if {[regexp {options [^\n]+ ip ([^ ]+)} $info match ip]} {
     351                set addr $ip:$port
     352            } else {
     353                set addr 127.0.0.1:$port
     354            }
     355            set shape oval
     356            regexp {^([0-9]+/[0-9]+/[0-9]+ [0-9]+:[0-9]+:[0-9]+) +(authority|worker)} $first match t0 type
     357        } elseif {[regexp -- {foreman<-} $info]} {
     358            set shape rectangle
     359            set addr "foreman"
     360            set type "foreman"
    309361        } else {
    310             set addr 127.0.0.1:$port
    311         }
    312 
    313         set lasttime ""
    314         set info [split $info \n]
    315         set first [lindex $info 0]
    316         regexp {^([0-9]+/[0-9]+/[0-9]+ [0-9]+:[0-9]+:[0-9]+) +(authority|worker)} $first match t0 type
    317         set t0val [expr {([clock scan $t0]-$time0)*100}]
    318 
    319         set last [lindex $info end-1]
    320         regexp {^([0-9]+/[0-9]+/[0-9]+ [0-9]+:[0-9]+:[0-9]+)} $last match t1
    321         set t1val [expr {([clock scan $t1]-$time0)*100 + 99}]
     362            # unknown log file -- skip it
     363            continue
     364        }
    322365        set margin 20
    323366        set r $nodeRadius
     
    337380        foreach canv {.diagram.traffic .diagram.network} {
    338381            set s [Shape ::#auto $canv -command \
    339                 [list %c create oval [expr {$x-$r}] [expr {$y-$r}] \
     382                [list %c create $shape [expr {$x-$r}] [expr {$y-$r}] \
    340383                [expr {$x+$r}] [expr {$y+$r}] \
    341384                -outline black -fill $colors($type) \
     
    359402puts "\nscanning $fname"
    360403
    361         if {[regexp -- {foreman<-} $info]} {
    362             # skip log file from foreman
    363             continue
    364         }
    365 
    366404        catch {unset started}
    367405        set peerlist(addrs) ""
     
    380418                if {$tval > $tmax} { set tmax $tval }
    381419
     420                set cid ""
    382421                if {[regexp {accepted: +([^ ]+) +\((.+)\)} $mesg match addr cid]} {
    383422                    append actions($tval) $mesg \n
     
    386425
    387426                } elseif {[regexp {dropped: +([^ ]+) +\((.+)\)} $mesg match addr cid] && [info exists started(connect$cid-time)]} {
     427                    incr tval 99  ;# end of this second
    388428                    append actions($tval) $mesg \n
    389429                    set from $nodes($fname)
     
    399439                    unset started(connect$cid-addr)
    400440
    401                 } elseif {[regexp {(server|client) message from ([a-zA-Z0-9\.]+:[0-9]+) \(([a-z0-9]+)\): +(.+) => (.*)} $mesg match which addr cid cmd result]} {
    402                     if {![string match identity* $cmd]} {
    403                         append actions($tval) $mesg \n
    404                         set from $nodes($fname)
    405                         set x0 $nodes($from-x)
    406                         set y0 $nodes($from-y)
    407                         set x1 $nodes($addr-x)
    408                         set y1 $nodes($addr-y)
    409                         set w [expr {[winfo width .diagram]/2}]
    410 
    411                         set s [Shape ::#auto .diagram.traffic -command \
    412                             [list %c create line [expr $x0-3] [expr $y0-3] [expr $x1-3] [expr $y1-3] -fill black -arrow first -tags transient]]
    413                         $s addRange $tval $tval
    414 
    415                         set s [Shape ::#auto .diagram.traffic -command \
    416                             [list %c create text [expr {0.5*($x0+$x1)}] [expr {0.5*($y0+$y1)-1}] -width $w -fill black -anchor s -text $cmd -tags transient]]
    417                         $s addRange $tval $tval
    418 
    419                         if {"" != [string trim $result]} {
    420                             if {[regexp {^ok:} $result]} {
    421                                 set color black
    422                             } else {
    423                                 set color red
    424                             }
    425                             set s [Shape ::#auto .diagram.traffic -command \
    426                                 [list %c create line [expr $x0+3] [expr $y0+3] [expr $x1+3] [expr $y1+3] -fill $color -arrow last -tags transient]]
    427                             $s addRange $tval $tval
    428 
    429                             set s [Shape ::#auto .diagram.traffic -command \
    430                                 [list %c create text [expr {0.5*($x0+$x1)}] [expr {0.5*($y0+$y1)+1}] -width $w -fill $color -anchor n -text $result -tags transient]]
    431                             $s addRange $tval $tval
     441                } elseif {[regexp {(incoming) message from ([^ ]+) \((sock[0-9]+)\): +(.+) => (.*)} $mesg match which addr cid cmd result]
     442                       || [regexp {(outgoing) message to ([^ ]+): +(.+)} $mesg match which addr cmd]} {
     443                    switch -- $which {
     444                        outgoing {
     445                            set from $addr
     446                            set to $nodes($fname)
     447                        }
     448                        incoming {
     449                            set from $nodes($fname)
     450                            set to $addr
     451                            # show incoming messages later in time
     452                            incr tval 50
    432453                        }
    433454                    }
     455                    append actions($tval) $mesg \n
     456                    set x0 $nodes($from-x)
     457                    set y0 $nodes($from-y)
     458                    set x1 $nodes($to-x)
     459                    set y1 $nodes($to-y)
     460                    set w [expr {[winfo width .diagram]/2}]
     461
     462                    set s [Shape ::#auto .diagram.traffic -command \
     463                        [list %c create line [expr $x0-3] [expr $y0-3] [expr $x1-3] [expr $y1-3] -fill black -arrow first -tags transient]]
     464                    $s addRange $tval $tval
     465
     466                    set s [Shape ::#auto .diagram.traffic -command \
     467                        [list %c create text [expr {0.5*($x0+$x1)}] [expr {0.5*($y0+$y1)-1}] -width $w -fill black -anchor s -text $cmd -tags transient]]
     468                    $s addRange $tval $tval
     469
     470                    if {$which == "incoming" && "" != [string trim $result]} {
     471                        if {[regexp {^ok:} $result]} {
     472                            set color black
     473                        } else {
     474                            set color red
     475                        }
     476                        set s [Shape ::#auto .diagram.traffic -command \
     477                            [list %c create line [expr $x0+3] [expr $y0+3] [expr $x1+3] [expr $y1+3] -fill $color -arrow last -tags transient]]
     478                        $s addRange $tval $tval
     479
     480                        set s [Shape ::#auto .diagram.traffic -command \
     481                            [list %c create text [expr {0.5*($x0+$x1)}] [expr {0.5*($y0+$y1)+1}] -width $w -fill $color -anchor n -text $result -tags transient]]
     482                        $s addRange $tval $tval
     483                    }
    434484
    435485                    # no address for this client yet?  then save this info
    436                     if {[info exists started(connect$cid-addr)]
     486                    if {"" != $cid
     487                           && [info exists started(connect$cid-addr)]
    437488                           && $started(connect$cid-addr) == "?"} {
    438489                        set started(connect$cid-addr) $addr
     
    466517                    set peerlist(addrs) $plist
    467518                    set peerlist(time) $tval
     519                } elseif {[regexp {ERROR} $mesg match addr]} {
     520                    .errors.info insert end $time timecode $mesg error "\n"
     521                    incr errs
    468522                }
     523                set times($tval) $time
    469524            }
    470525        }
     
    497552            %W itemconfigure $fname-cnx -fill red
    498553            %W raise $fname-cnx
     554            %W itemconfigure entity -text {$nodes($fname)}
    499555        "
    500556        .diagram.traffic bind $fname <Leave> "
     
    502558            %W itemconfigure $fname-cnx -fill gray
    503559            %W raise transient
     560            %W itemconfigure entity -text {}
    504561        "
    505562
     
    537594    }
    538595    .player.scale configure -to $tmax
     596    .errors.info configure -state disabled
     597    if {$errs == 0} {
     598        .player.err configure -state normal -text "0 errors"
     599        .player.err configure -state disabled
     600    } else {
     601        .player.err configure -state normal -text "$errs error[expr {($errs == 1) ? {} : {s}}]"
     602    }
    539603
    540604    after cancel test_visualize
     
    565629
    566630proc test_frame_go {dir position} {
    567     global actions
     631    global actions times
    568632
    569633    set tmax [.player.scale cget -to]
  • trunk/p2p/worker.tcl

    r1273 r2080  
    118118    # ------------------------------------------------------------------
    119119    define solicit {args} {
    120 log debug "SOLICIT from foreman: $args"
    121120        variable cid
    122121        log debug "solicitation request from foreman: $args"
     
    161160    # ------------------------------------------------------------------
    162161    define solicit {args} {
    163 log debug "SOLICIT from peer: $args"
    164162        variable cid
    165163        log debug "solicitation request from peer: $args"
     
    177175    # ------------------------------------------------------------------
    178176    define proffer {token details} {
    179 log debug "PROFFER from peer: $token $details"
    180177        Solicitation::proffer $token $details
    181178        return ""
     
    226223    # ------------------------------------------------------------------
    227224    define solicit {args} {
    228 log debug "SOLICIT from peer: $args"
    229225        variable cid
    230226        log debug "solicitation request from peer: $args"
     
    242238    # ------------------------------------------------------------------
    243239    define proffer {token details} {
    244 log debug "PROFFER from peer: $token $details"
    245240        Solicitation::proffer $token $details
    246241        return ""
     
    636631            set mesg [list solicit -job $job -path $path -avoid "$avoid @RECIPIENTS" -token $_serial]
    637632            set _waitfor [broadcast_to_peers $mesg $avoid]
    638 log debug "WAIT FOR: $_waitfor"
    639633
    640634            if {$_waitfor > 0} {
     
    643637            }
    644638        }
    645 log debug "TIMEOUT: $delay"
    646639        set _timeout [after $delay [itcl::code $this finalize]]
    647640    }
     
    656649        append _response $details "\n"
    657650        if {[incr _waitfor -1] <= 0} {
    658 log debug "ALL RESPONSES"
    659651            finalize
    660652        }
     
    676668        # add details about this client to the message
    677669        append block "$myaddress -job $job -cost 1 -wonks [p2p::wonks::current]"
    678 log debug "FINALIZE {$block}"
    679670
    680671        # send the composite results back to the caller
  • trunk/tester/test.tcl

    r2077 r2080  
    2424    public method getResult {}
    2525    public method getTestInfo {path}
     26    public method getDiffs {}
    2627
    2728    public method run {args}
     
    3233    private variable _testobj ""  ;# Rappture::Library object for _testxml
    3334
    34     private variable _added ""
    35     private variable _diffs ""
    36     private variable _missing ""
    37     private variable _result "?"
    38     private variable _runobj ""
     35    private variable _result "?"  ;# current status of this test
     36    private variable _runobj ""   ;# results from last run
     37    private variable _diffs ""    ;# diffs with respect to _runobj
    3938
    4039    # don't need this?
    41     public method getAdded {}
    42     public method getDiffs {}
    43     public method getInputs {{path input}}
    44     public method getMissing {}
    45     public method getOutputs {{path output}}
    4640    public method getRunobj {}
    47     public method getTestobj {}
    48 
     41
     42    private method _setWaiting {{newval ""}}
    4943    private method _setResult {name}
    50     private method added {lib1 lib2 {path output}}
    51     private method compareElements {lib1 lib2 path}
    52     private method diffs {lib1 lib2 {path output}}
    53     private method merge {toolobj golden driver {path input}}
    54     private method missing {lib1 lib2 {path output}}
     44    private method _computeDiffs {obj1 obj2 args}
     45    private method _getStructure {xmlobj path}
     46
     47    # use this to add tests to the "run" queue
     48    public proc queue {op args}
     49
     50    private common _queue       ;# queue of objects waiting to run
     51    set _queue(tests) ""        ;# list of tests in the queue
     52    set _queue(pending) ""      ;# after event for "next" call
     53    set _queue(running) ""      ;# test object currently running
     54    set _queue(outputcmd) ""    ;# callback for reporting output
    5555}
    5656
     
    118118        itcl::delete object $_runobj
    119119        set _runobj ""
     120        set _diffs ""
    120121    }
    121122
    122123    # copy inputs from the test into the run file
     124    $_toolobj reset
    123125    foreach path [Rappture::entities -as path $_testobj input] {
    124126        if {[$_testobj element -as type $path.current] ne ""} {
     
    130132    # run the test case...
    131133    _setResult "Running"
    132     foreach {status _runobj} [eval $_toolobj run $args] break
    133 
    134     if {$status == 0 && [Rappture::library isvalid $_runobj]} {
    135         # HACK: Add a new input to differentiate between results
    136         $_runobj put input.TestRun.current "Test result"
    137         set _diffs [diffs $_testobj $_runobj]
    138         set _missing [missing $_testobj $_runobj]
    139         set _added [added $_testobj $_runobj]
    140         if {$_diffs == "" && $_missing == "" && $_added == ""} {
    141             _setResult "Pass"
     134    foreach {status result} [eval $_toolobj run $args] break
     135
     136    if {$status == 0} {
     137        if {$result eq "ABORT"} {
     138            _setResult "?"
     139            return "aborted"
     140        } elseif {[Rappture::library isvalid $result]} {
     141            set _runobj $result
     142            set _diffs [_computeDiffs $_testobj $_runobj -section output]
     143puts "DIFFS:"
     144foreach {op path what v1 v2} $_diffs {
     145puts "  $op $path ($what) $v1 $v2"
     146}
     147
     148            # HACK: Add a new input to differentiate between results
     149            $_runobj put input.TestRun.current "Test result"
     150
     151            # any differences from expected result mean test failed
     152            if {[llength $_diffs] == 0} {
     153                _setResult "Pass"
     154            } else {
     155                _setResult "Fail"
     156            }
     157            return "finished"
    142158        } else {
    143159            _setResult "Fail"
     160            return "failed: $result"
    144161        }
    145162    } else {
    146         set _runobj ""
    147         set _setResult "Error"
     163        _setResult "Fail"
     164        tk_messageBox -icon error -message "Tool failed: $result"
     165        return "finished"
    148166    }
    149167}
     
    160178itcl::body Rappture::Tester::Test::regoldenize {} {
    161179    if {$_runobj eq ""} {
    162         error "Test has not yet been run."
     180        error "no test result to goldenize"
    163181    }
    164182    $_runobj put test.label [$_testobj get test.label]
    165183    $_runobj put test.description [$_testobj get test.description]
     184
    166185    set fid [open $_testxml w]
    167186    puts $fid "<?xml version=\"1.0\"?>"
    168187    puts $fid [$_runobj xml]
    169188    close $fid
     189
     190    itcl::delete object $_testobj
    170191    set _testobj $_runobj
     192
     193    set _runobj ""
    171194    set _diffs ""
    172     set _added ""
    173     set _missing ""
    174195    _setResult Pass
    175 }
    176 
    177 # ----------------------------------------------------------------------
    178 # USAGE: getAdded
    179 #
    180 # Return a list of paths that have been added that do not exist in the
    181 # golden results.  Throws an error if the test has not been ran.
    182 # ----------------------------------------------------------------------
    183 itcl::body Rappture::Tester::Test::getAdded {} {
    184     if {$_runobj eq ""} {
    185         error "Test has not yet been run."
    186     }
    187     return $_added
    188196}
    189197
     
    196204# ----------------------------------------------------------------------
    197205itcl::body Rappture::Tester::Test::getDiffs {} {
    198     return [list \
    199         input.number(temperature) label \
    200         output.curve(f12) units \
    201         output.curve(f12) result]
    202 }
    203 
    204 # -----------------------------------------------------------------------
    205 # USAGE: getInputs
    206 #
    207 # Returns a list of key value pairs for all inputs given in the test xml.
    208 # Each key is the path to the input element, and each key is its current
    209 # value.
    210 # -----------------------------------------------------------------------
    211 itcl::body Rappture::Tester::Test::getInputs {{path input}} {
    212     set retval [list]
    213     foreach child [$_testobj children $path] {
    214         set fullpath $path.$child
    215         if {$fullpath != "input.TestRun"} {
    216             set val [$_testobj get $fullpath.current]
    217             if {$val != ""} {
    218                 lappend retval $fullpath $val
    219             }
    220         }
    221         append retval [getInputs $fullpath]
    222     }
    223     return $retval
    224 }
    225 
    226 # ----------------------------------------------------------------------
    227 # USAGE: getMissing
    228 #
    229 # Return a list of paths that are present in the golden results, but are
    230 # missing in the new test results.  Throws an error if the test has not
    231 # been ran.
    232 # ----------------------------------------------------------------------
    233 itcl::body Rappture::Tester::Test::getMissing {} {
    234     if {$_runobj eq ""} {
    235         error "Test has not yet been run."
    236     }
    237     return $_missing
    238 }
    239 
    240 # ----------------------------------------------------------------------
    241 # USAGE: getOutputs
    242 #
    243 # Returns a list of key value pairs for all outputs in the runfile
    244 # generated by the last run of the test.  Each key is the path to the
    245 # element, and each value is its status (ok, diff, added, or missing).
    246 # Throws an error if the test has not been run.
    247 # ----------------------------------------------------------------------
    248 itcl::body Rappture::Tester::Test::getOutputs {{path output}} {
    249     if {$_runobj eq ""} {
    250         error "Test has not yet been run."
    251     }
    252     set retval [list]
    253     foreach child [$_runobj children $path] {
    254         set fullpath $path.$child
    255         if {$fullpath != "output.time" && $fullpath != "output.user" \
    256             && $fullpath != "output.status"} {
    257             if {[lsearch $fullpath [getDiffs]] != -1} {
    258                 set status diff
    259             } elseif {[lsearch $fullpath [getAdded]] != -1} {
    260                 set status added
    261             } else {
    262                 if {[$_runobj get $fullpath] != ""} {
    263                     set status ok
    264                 } else {
    265                     set status ""
    266                 }
    267             }
    268             lappend retval $fullpath $status
    269         }
    270         append retval " [getOutputs $fullpath]"
    271     }
    272     # We won't find missing elements by searching through runobj.  Instead,
    273     # tack on all missing items at the end (only do this once)
    274     if {$path == "output"} {
    275         foreach item $_missing {
    276             lappend retval $item missing
    277         }
    278     }
    279     return $retval
     206    return $_diffs
    280207}
    281208
     
    294221
    295222# ----------------------------------------------------------------------
    296 # USAGE: getTestobj
    297 #
    298 # Returns the test library object containing the set of golden results.
    299 # ----------------------------------------------------------------------
    300 itcl::body Rappture::Tester::Test::getTestobj {} {
    301     return $_testobj
    302 }
    303 
    304 # ----------------------------------------------------------------------
    305 # USAGE: added lib1 lib2 ?path?
    306 #
    307 # Compares two library objects and returns a list of paths that have
    308 # been added in the second library and do not exist in the first.
    309 # Return value will contain all differences that occur as descendants of
    310 # an optional starting path.  If the path argument is not given, then
    311 # only the output sections will be compared.
    312 # ----------------------------------------------------------------------
    313 itcl::body Rappture::Tester::Test::added {lib1 lib2 {path output}} {
    314     set paths [list]
    315     foreach child [$lib2 children $path] {
    316         foreach p [added $lib1 $lib2 $path.$child] {
    317             lappend paths $p
    318         }
    319     }
    320     if {[$lib1 get $path] == "" && [$lib2 get $path] != ""} {
    321         lappend paths $path
    322     }
    323     return $paths
    324 }
    325 
    326 # ----------------------------------------------------------------------
    327 # USAGE: compareElements <lib1> <lib2> <path>
    328 #
    329 # Compare data found in two library objects at the given path.  Returns
    330 # 1 if match, 0 if no match.  For now, just check if ascii identical.
    331 # Later, we can do something more sophisticated for different types of
    332 # elements.
    333 # ----------------------------------------------------------------------
    334 itcl::body Rappture::Tester::Test::compareElements {lib1 lib2 path} {
    335     set val1 [$lib1 get $path]
    336     set val2 [$lib2 get $path]
    337     return [expr {$val1} != {$val2}]
    338 }
    339 
    340 # ----------------------------------------------------------------------
    341 # USAGE: diffs <lib1> <lib2> ?path?
    342 #
    343 # Compares two library objects and returns a list of paths that do not
    344 # match.  Only paths which exist in both libraries are considered.
    345 # Return value will contain all differences that occur as descendants of
    346 # an optional starting path.  If the path argument is not given, then
    347 # only the output sections will be compared.
    348 # ----------------------------------------------------------------------
    349 itcl::body Rappture::Tester::Test::diffs {lib1 lib2 {path output}} {
    350     set paths [list]
    351     set clist1 [$lib1 children $path]
    352     set clist2 [$lib2 children $path]
    353     foreach child $clist1 {
    354         # Ignore if not present in both libraries
    355         if {[lsearch -exact $clist2 $child] != -1} {
    356             foreach p [diffs $lib1 $lib2 $path.$child] {
    357                 lappend paths $p
    358             }
    359         }
    360     }
    361     if {[compareElements $lib1 $lib2 $path]} {
    362         # Ignore output.time and output.user
    363         if {$path != "output.time" && $path != "output.user"} {
    364             lappend paths $path
    365         }
    366     }
    367     return $paths
    368 }
    369 
    370 # ----------------------------------------------------------------------
    371 # USAGE: merge <toolobj> <golden> <driver> ?path?
    372 #
    373 # Used to recursively build up a driver library object for running a
    374 # test.  Should not be called directly - see makeDriver.
    375 # ----------------------------------------------------------------------
    376 itcl::body Rappture::Tester::Test::merge {toolobj golden driver {path input}} {
    377     foreach child [$toolobj children $path] {
    378         set val [$golden get $path.$child.current]
    379         if {$val != ""} {
    380             $driver put $path.$child.current $val
    381         } else {
    382             set def [$toolobj get $path.$child.default]
    383             if {$def != ""} {
    384                 $driver put $path.$child.current $def
    385             }
    386         }
    387         merge $toolobj $golden $driver $path.$child
    388     }
    389     return $driver
    390 }
    391 
    392 # ----------------------------------------------------------------------
    393 # USAGE: added lib1 lib2 ?path?
    394 #
    395 # Compares two library objects and returns a list of paths that do not
    396 # exist in the first library and have been added in the second.
    397 # Return value will contain all differences that occur as descendants of
    398 # an optional starting path.  If the path argument is not given, then
    399 # only the output sections will be compared.
    400 # ----------------------------------------------------------------------
    401 itcl::body Rappture::Tester::Test::missing {lib1 lib2 {path output}} {
    402     set paths [list]
    403     foreach child [$lib1 children $path] {
    404         foreach p [missing $lib1 $lib2 $path.$child] {
    405             lappend paths $p
    406         }
    407     }
    408     if {[$lib1 get $path] != "" && [$lib2 get $path] == ""} {
    409         lappend paths $path
    410     }
    411     return $paths
    412 }
    413 
    414 # ----------------------------------------------------------------------
    415223# USAGE: _setResult ?|Pass|Fail|Waiting|Running
    416224#
     
    420228# ----------------------------------------------------------------------
    421229itcl::body Rappture::Tester::Test::_setResult {name} {
    422 puts "CHANGED: $this => $name"
    423230    set _result $name
    424231    if {[string length $notifycommand] > 0} {
    425 puts "  notified $notifycommand"
    426232        uplevel #0 $notifycommand $this
    427233    }
    428234}
     235
     236# ----------------------------------------------------------------------
     237# USAGE: _setWaiting ?boolean?
     238#
     239# Used to mark a Test as "waiting".  This usually happens when a test
     240# is added to the queue, about to be run.
     241# ----------------------------------------------------------------------
     242itcl::body Rappture::Tester::Test::_setWaiting {{newval ""}} {
     243    if {$newval ne "" && [string is boolean $newval]} {
     244        if {$newval} {
     245            _setResult "Waiting"
     246        } else {
     247            _setResult "?"
     248        }
     249    }
     250    return $_result
     251}
     252
     253# ----------------------------------------------------------------------
     254# USAGE: _computeDiffs <xmlObj1> <xmlObj2> ?-section xxx? \
     255#            ?-what value|structure|all?
     256#
     257# Used internally to compute differences between two different XML
     258# objects.  This is normally used to look for differences in the
     259# output section between a test case and a new run, but can also
     260# be used to look for differences in other sections via the -section
     261# flag.
     262#
     263# Returns a list of the following form:
     264#     <op> <path> <what> <val1> <val2>
     265#
     266#       where <op> is one of:
     267#         - ...... element is missing from <xmlObj2>
     268#         c ...... element changed between <xmlObj1> and <xmlObj2>
     269#         + ...... element is missing from <xmlObj1>
     270#
     271#       and <what> is something like:
     272#         value .............. difference affects "current" value
     273#         structure <path> ... affects structure of parent at <path>
     274# ----------------------------------------------------------------------
     275itcl::body Rappture::Tester::Test::_computeDiffs {obj1 obj2 args} {
     276    Rappture::getopts args params {
     277        value -section output
     278        value -what all
     279    }
     280    if {$params(-what) == "all"} {
     281        set params(-what) "structure value"
     282    }
     283
     284    # query the values for all entities in both objects
     285    set v1paths [Rappture::entities $obj1 $params(-section)]
     286    set v2paths [Rappture::entities $obj2 $params(-section)]
     287
     288    # scan through values for obj1 and compare against obj2
     289    set rlist ""
     290    foreach path $v1paths {
     291puts "checking $path"
     292        set i [lsearch -exact $v2paths $path]
     293        if {$i < 0} {
     294puts "  missing from $obj2"
     295            # missing from obj2
     296            foreach {raw norm} [Rappture::LibraryObj::value $obj1 $path] break
     297            lappend rlist - $path value $raw ""
     298        } else {
     299            foreach part $params(-what) {
     300                switch -- $part {
     301                  value {
     302                    foreach {raw1 norm1} \
     303                        [Rappture::LibraryObj::value $obj1 $path] break
     304                    foreach {raw2 norm2} \
     305                        [Rappture::LibraryObj::value $obj2 $path] break
     306puts "  checking values $norm1 vs $norm2"
     307                    if {![string equal $norm1 $norm2]} {
     308puts "  => different!"
     309                        # different from obj2
     310                        lappend rlist c $path value $raw1 $raw2
     311                    }
     312                    # handled this comparison
     313                    set v2paths [lreplace $v2paths $i $i]
     314                  }
     315                  structure {
     316                    set what [list structure $path]
     317                    set s1paths [_getStructure $obj1 $path]
     318                    set s2paths [_getStructure $obj2 $path]
     319                    foreach spath $s1paths {
     320puts "  checking internal structure $spath"
     321                        set i [lsearch -exact $s2paths $spath]
     322                        if {$i < 0} {
     323puts "    missing from $obj2"
     324                            # missing from obj2
     325                            set val1 [$obj1 get $spath]
     326                            lappend rlist - $spath $what $val1 ""
     327                        } else {
     328                            set val1 [$obj1 get $spath]
     329                            set val2 [$obj2 get $spath]
     330                            if {![string match $val1 $val2]} {
     331puts "    different from $obj2 ($val1 vs $val2)"
     332                                # different from obj2
     333                                lappend rlist c $spath $what $val1 $val2
     334                            }
     335                            # handled this comparison
     336                            set s2paths [lreplace $s2paths $i $i]
     337                        }
     338                    }
     339
     340                    # look for leftover values
     341                    foreach spath $s2paths {
     342                        set val2 [$obj2 get $spath]
     343puts "    extra $spath in $obj2"
     344                        lappend rlist + $spath $what "" $val2
     345                    }
     346                  }
     347                  default {
     348                    error "bad part \"$part\": should be structure, value"
     349                  }
     350                }
     351            }
     352        }
     353    }
     354
     355    # add any values left over in the obj2
     356    foreach path $v2paths {
     357puts "    extra $path in $obj2"
     358        foreach {raw2 norm2} [Rappture::LibraryObj::value $obj2 $path] break
     359        lappend rlist + $path value "" $raw2
     360    }
     361    return $rlist
     362}
     363
     364# ----------------------------------------------------------------------
     365# USAGE: _getStructure <xmlObj> <path>
     366#
     367# Used internally by _computeDiffs to get a list of paths for important
     368# parts of the internal structure of an object.  Avoids the "current"
     369# element, but includes "default", "units", etc.
     370# ----------------------------------------------------------------------
     371itcl::body Rappture::Tester::Test::_getStructure {xmlobj path} {
     372    set rlist ""
     373    set queue $path
     374    while {[llength $queue] > 0} {
     375        set qpath [lindex $queue 0]
     376        set queue [lrange $queue 1 end]
     377
     378        foreach p [$xmlobj children -as path $qpath] {
     379            if {[string match *.current $p]} {
     380                continue
     381            }
     382            if {[llength [$xmlobj children $p]] > 0} {
     383                # continue exploring nodes with children
     384                lappend queue $p
     385            } else {
     386                # return the terminal nodes
     387                lappend rlist $p
     388            }
     389        }
     390    }
     391    return $rlist
     392}
     393
     394# ======================================================================
     395# RUN QUEUE
     396# ======================================================================
     397# USAGE: queue add <testObj> <testObj>...
     398# USAGE: queue clear ?<testObj> <testObj>...?
     399# USAGE: queue status <command>
     400# USAGE: queue next
     401# USAGE: queue output <string>
     402#
     403# Used to manipulate the run queue for the program as a whole.
     404#
     405# The "queue add" option adds the given <testObj> objects to the run
     406# queue.  As soon as an object is added to the queue, it is marked
     407# "waiting".  When it runs, it is marked "running", and it finally
     408# goes to the "pass" or "fail" state.  If an object is already in
     409# the queue, then this operation does nothing.
     410#
     411# The "queue clear" option clears specific objects from the queue.
     412# If no objects are specified, then it clears all remaining objects.
     413#
     414# The "queue status" option is used to set the callback for handling
     415# output from runs.  This command is called two ways:
     416#    command start <testObj>
     417#    command add <testObj> "string of output"
     418#
     419# The "queue next" option is used internally to run the next object
     420# in the queue.  The "queue output" option is also used internally
     421# to handle the output coming back from a run.  The output gets
     422# shuttled along to the callback specified by "queue status".
     423# ----------------------------------------------------------------------
     424itcl::body Rappture::Tester::Test::queue {option args} {
     425    switch -- $option {
     426        add {
     427            # add these tests to the run queue
     428            foreach obj $args {
     429                if {[catch {$obj isa Rappture::Tester::Test} valid] || !$valid} {
     430                    error "bad value \"$obj\": should be Test object"
     431                }
     432                if {[lsearch $_queue(tests) $obj] < 0} {
     433                    $obj _setWaiting 1
     434                    lappend _queue(tests) $obj
     435                }
     436            }
     437            if {$_queue(running) eq "" && $_queue(pending) eq ""} {
     438                set _queue(pending) [after idle \
     439                    Rappture::Tester::Test::queue next]
     440            }
     441        }
     442        clear {
     443            # remove these tests from the run queue
     444            foreach obj $args {
     445                if {[catch {$obj isa Rappture::Tester::Test} valid] || !$valid} {
     446                    error "bad value \"$obj\": should be Test object"
     447                }
     448
     449                # remove the test from the queue
     450                set i [lsearch $_queue(tests) $obj]
     451                if {$i >= 0} {
     452                    set _queue(tests) [lreplace $_queue(tests) $i $i]
     453                }
     454
     455                # mark object as no longer "waiting"
     456                if {[$obj _setWaiting]} {
     457                    $obj _setWaiting 0
     458                }
     459            }
     460        }
     461        status {
     462            if {[llength $args] != 1} {
     463                error "wrong # args: should be \"status command\""
     464            }
     465            set _queue(outputcmd) [lindex $args 0]
     466        }
     467        next {
     468            set _queue(pending) ""
     469
     470            # get the next object from the queue
     471            set obj [lindex $_queue(tests) 0]
     472            set _queue(tests) [lrange $_queue(tests) 1 end]
     473
     474            if {$obj ne ""} {
     475                set _queue(running) $obj
     476                # invoke the callback to signal start of a run
     477                if {[string length $_queue(outputcmd)] > 0} {
     478                    uplevel #0 $_queue(outputcmd) start $obj
     479                }
     480
     481                # run the test
     482                set callback "Rappture::Tester::Test::queue output"
     483                set status [$obj run -output $callback]
     484                set _queue(running) ""
     485
     486                if {$status == "aborted"} {
     487                    # if the test was aborted, clear any waiting tests
     488                    Rappture::Tester::Test::queue clear
     489                } elseif {[string match failed:* $status]} {
     490                    bgerror $status
     491                }
     492
     493                # set up to run the next test in the queue
     494                set _queue(pending) [after idle \
     495                    Rappture::Tester::Test::queue next]
     496            }
     497        }
     498        output {
     499            if {[llength $args] != 1} {
     500                error "wrong # args: should be \"output string\""
     501            }
     502            if {[string length $_queue(outputcmd)] > 0} {
     503                uplevel #0 $_queue(outputcmd) add $_queue(running) $args
     504            }
     505        }
     506        default {
     507            error "bad option \"$option\": should be add, clear, status, output, next"
     508        }
     509    }
     510}
  • trunk/tester/tester.tcl

    r2077 r2080  
    7777set Rappture::icon::iconpath [linsert $Rappture::icon::iconpath 0 [file join $testerdir images]]
    7878
    79 # current list of running tests
    80 set RunQueue ""
    81 
    8279
    8380Rappture::getopts argv params {
     
    161158# ----------------------------------------------------------------------
    162159frame $win.testrun
     160label $win.testrun.title -text "Output from test run:" -anchor w
     161pack $win.testrun.title -side top -anchor w
     162
    163163button $win.testrun.abort -text "Abort"
    164 pack $win.testrun.abort -side bottom
     164pack $win.testrun.abort -side bottom -pady {8 0}
    165165
    166166Rappture::Scroller $win.testrun.scrl -xscrollmode auto -yscrollmode auto
     
    213213            pack forget $win
    214214        }
    215         pack $detailwidget -expand yes -fill both
     215        if {$detailwidget ne ""} {
     216            pack $detailwidget -expand yes -fill both -padx 8 -pady 8
     217        }
    216218    }
    217219
    218220    if {[llength $tests] > 0} {
    219221        eval $testview.overview show $tests
    220         pack $testview -expand yes -fill both -padx 8 -pady 8
    221222        if {[llength $tests] == 1 && [$tests getResult] eq "Fail"} {
    222223            pack $testview.regoldenize -side bottom -anchor w
     
    228229            set testobj [lindex $tests 0]
    229230            $testview.details.scrl.list delete 0 end
    230             foreach {path info} [$testobj getDiffs] {
    231                 set title [$testobj getTestInfo $path.about.label]
    232                 if {[string match output.* $path]} {
    233                     set title "Output: $title"
    234                 }
    235                 switch -- [lindex $info 0] {
    236                     result {
    237                         set desc "Result differs from expected value"
    238                         set icon [Rappture::icon fail16]
     231            foreach {op path what v1 v2} [$testobj getDiffs] {
     232                switch -- [lindex $what 0] {
     233                  value {
     234                    set title "Output: [$testobj getTestInfo $path.about.label]"
     235                    set icon [Rappture::icon fail16]
     236                    switch -- $op {
     237                      - { set desc "Result is missing from current output" }
     238                      + { set desc "Result was not expected to appear" }
     239                      c { set desc "Result differs from expected value" }
     240                      default {
     241                          error "don't know how to handle difference $op"
     242                      }
    239243                    }
    240                     default {
    241                         set desc $info
    242                         set icon [Rappture::icon warn16]
     244                  }
     245                  structure {
     246                    set ppath [lindex $what 1]
     247                    set title "Output: [$testobj getTestInfo $ppath.about.label]"
     248                    set icon [Rappture::icon warn16]
     249                    set pplen [string length $ppath]
     250                    set tail [string range $path [expr {$pplen+1}] end]
     251                    switch -- $op {
     252                      - { set desc "Missing value \"$v1\" at $tail" }
     253                      + { set desc "Extra value \"$v2\" at $tail" }
     254                      c { set desc "Details at $tail have changed:\n       got: $v2\n  expected: $v1" }
     255                      default {
     256                          error "don't know how to handle difference $op"
     257                      }
    243258                    }
     259                  }
     260                  default {
     261                    error "don't know how to handle difference \"$what\""
     262                  }
    244263                }
    245264
     
    265284# ----------------------------------------------------------------------
    266285proc tester_run {args} {
    267     global RunQueue
    268     set testtree [.pw pane 0].tree
     286    # set up a callback for handling output from runs
     287    Rappture::Tester::Test::queue status tester_run_output
    269288
    270289    # add these tests to the run queue
    271     foreach obj $args {
    272         if {[lsearch $RunQueue $obj] < 0} {
    273             lappend RunQueue $obj
    274         }
    275     }
    276 
    277     after idle tester_run_next
    278 }
    279 
    280 # ----------------------------------------------------------------------
    281 # USAGE: tester_run_next
    282 #
    283 # Takes the next test from the queue and runs it.  Displays any
    284 # output during the run, then compares results and shows a final
    285 # pass/fail status.
    286 # ----------------------------------------------------------------------
    287 proc tester_run_next {} {
    288     global RunQueue
    289 
    290     set obj [lindex $RunQueue 0]
    291     set RunQueue [lrange $RunQueue 1 end]
    292 
    293     if {$obj ne ""} {
    294 puts "RUNNING: $obj"
    295         set testrun [.pw pane 1].testrun
    296         $testrun.abort configure -command [list $obj abort]
    297         $obj run -output tester_run_output
    298     }
    299 
    300     # keep running remaining tests
    301     after idle tester_run_next
    302 }
    303 
    304 # ----------------------------------------------------------------------
    305 # USAGE: tester_run_output <string>
    306 #
    307 # Adds the <string> output from running a test case into the viewer
    308 # for that test.
    309 # ----------------------------------------------------------------------
    310 proc tester_run_output {string} {
     290    eval Rappture::Tester::Test::queue add $args
     291
     292    # show the run output window
     293    set rhs [.pw pane 1]
     294    foreach win [pack slaves $rhs] {
     295        pack forget $win
     296    }
     297    pack $rhs.testrun -expand yes -fill both -padx 8 -pady 8
     298}
     299
     300# ----------------------------------------------------------------------
     301# USAGE: tester_run_output start <testObj>
     302# USAGE: tester_run_output add <testObj> <string>
     303#
     304# Handles the output from running tests.  The "start" option clears
     305# the current output area.  The "add" option adds output from a run.
     306# ----------------------------------------------------------------------
     307proc tester_run_output {option testobj args} {
    311308    set testrun [.pw pane 1].testrun
    312     $testrun.scrl.info configure -state normal
    313     $testrun.scrl.info insert end $string
    314 
    315     # if there are too many lines, delete some
    316     set lines [lindex [split [$testrun.scrl.info index end-2char] .] 0]
    317     if {$lines > 500} {
    318         set extra [expr {$lines-500+1}]
    319         $testrun.scrl.info delete 1.0 $extra.0
    320     }
    321 
    322     # show the newest stuff
    323     $testrun.scrl.info see end
    324     $testrun.scrl.info configure -state disabled
     309
     310    switch -- $option {
     311        start {
     312            # clear out any previous output
     313            $testrun.scrl.info configure -state normal
     314            $testrun.scrl.info delete 1.0 end
     315            $testrun.scrl.info configure -state disabled
     316
     317            # plug this object into the "Abort" button
     318            $testrun.abort configure -command [list $testobj abort]
     319        }
     320        add {
     321            $testrun.scrl.info configure -state normal
     322            $testrun.scrl.info insert end [lindex $args 0]
     323
     324            # if there are too many lines, delete some
     325            set lines [lindex [split [$testrun.scrl.info index end-2char] .] 0]
     326            if {$lines > 500} {
     327                set extra [expr {$lines-500+1}]
     328                $testrun.scrl.info delete 1.0 $extra.0
     329            }
     330
     331            # show the newest stuff
     332            $testrun.scrl.info see end
     333            $testrun.scrl.info configure -state disabled
     334        }
     335        default {
     336            error "bad option \"$option\": should be start, add"
     337        }
     338    }
    325339}
    326340
  • trunk/tester/testtree.tcl

    r2077 r2080  
    225225                Pass    { set data(result) "@[Rappture::icon pass16]" }
    226226                Fail    { set data(result) "@[Rappture::icon fail16]" }
    227                 Waiting { set data(result) "@[Rappture::icon wait]" }
     227                Waiting { set data(result) "@[Rappture::icon wait16]" }
    228228                Running { set data(result) "@[spinner use]" }
    229229                default { set data(result) "" }
     
    231231puts "ICON: $data(result)"
    232232            $itk_component(treeview) entry configure $n -data [array get data]
     233
     234            # if the node that's changed is selected, invoke the
     235            # -selectcommand code so the GUI will react to the new state
     236            if {[$itk_component(treeview) selection includes $n]} {
     237                set cmd [$itk_component(treeview) cget -selectcommand]
     238                if {[string length $cmd] > 0} {
     239                    uplevel #0 $cmd
     240                }
     241            }
    233242        }
    234243    }
  • trunk/tester/testview.tcl

    r2077 r2080  
    144144                    set color $itk_option(-statusfailcolor)
    145145                }
     146                Running - Waiting {
     147                    set smesg "Test waiting to run"
     148                    set sicon [Rappture::icon wait64]
     149                    set color $itk_option(-statuspasscolor)
     150                }
    146151                default { error "unknown test state \"[$obj getResult]\"" }
    147152            }
     
    161166        }
    162167        default {
    163             array set states { ? 0  Pass 0  Fail 0  total 0 }
     168            array set states { ? 0  Pass 0  Fail 0  Running 0  Waiting 0  total 0 }
    164169            foreach obj $_testobjs {
    165170                incr states(total)
Note: See TracChangeset for help on using the changeset viewer.