Changeset 1111 for trunk/packages


Ignore:
Timestamp:
Aug 13, 2008, 1:33:28 PM (16 years ago)
Author:
gah
Message:

nanovis/heightmap update

Location:
trunk/packages/vizservers
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/Makefile.in

    r1082 r1111  
    3434          $(MAKE) -C $$i install || exit 1 ; \
    3535        done
    36         $(INSTALL) -m 555 start_viz.sh $(prefix)/start_viz.sh
     36        $(INSTALL) -m 555 start_viz.sh $(bindir)/start_viz.sh
    3737
    3838clean:
  • trunk/packages/vizservers/configure

    r944 r1111  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.61 for vizservers 0.1.
     3# Generated by GNU Autoconf 2.62 for vizservers 0.1.
    44#
    55# Report bugs to <rappture@nanohub.org>.
    66#
    77# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    99# This configure script is free software; the Free Software Foundation
    1010# gives unlimited permission to copy, distribute and modify it.
     
    1818  emulate sh
    1919  NULLCMD=:
    20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    2121  # is contrary to our usage.  Disable this feature.
    2222  alias -g '${1+"$@"}'='"$@"'
     
    4040as_cr_alnum=$as_cr_Letters$as_cr_digits
    4141
     42as_nl='
     43'
     44export as_nl
     45# Printing a long string crashes Solaris 7 /usr/bin/printf.
     46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50  as_echo='printf %s\n'
     51  as_echo_n='printf %s'
     52else
     53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55    as_echo_n='/usr/ucb/echo -n'
     56  else
     57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58    as_echo_n_body='eval
     59      arg=$1;
     60      case $arg in
     61      *"$as_nl"*)
     62        expr "X$arg" : "X\\(.*\\)$as_nl";
     63        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64      esac;
     65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66    '
     67    export as_echo_n_body
     68    as_echo_n='sh -c $as_echo_n_body as_echo'
     69  fi
     70  export as_echo_body
     71  as_echo='sh -c $as_echo_body as_echo'
     72fi
     73
    4274# The user is always right.
    4375if test "${PATH_SEPARATOR+set}" != set; then
    44   echo "#! /bin/sh" >conf$$.sh
    45   echo  "exit 0"   >>conf$$.sh
    46   chmod +x conf$$.sh
    47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    48     PATH_SEPARATOR=';'
    49   else
    50     PATH_SEPARATOR=:
    51   fi
    52   rm -f conf$$.sh
     76  PATH_SEPARATOR=:
     77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79      PATH_SEPARATOR=';'
     80  }
    5381fi
    5482
     
    6694# (If _AS_PATH_WALK were called with IFS unset, it would disable word
    6795# splitting by setting IFS to empty value.)
    68 as_nl='
    69 '
    7096IFS=" ""        $as_nl"
    7197
     
    90116fi
    91117if test ! -f "$as_myself"; then
    92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    93119  { (exit 1); exit 1; }
    94120fi
     
    103129
    104130# NLS nuisances.
    105 for as_var in \
    106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    108   LC_TELEPHONE LC_TIME
    109 do
    110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    111     eval $as_var=C; export $as_var
    112   else
    113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    114   fi
    115 done
     131LC_ALL=C
     132export LC_ALL
     133LANGUAGE=C
     134export LANGUAGE
    116135
    117136# Required to use basename.
     
    135154         X"$0" : 'X\(//\)$' \| \
    136155         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    137 echo X/"$0" |
     156$as_echo X/"$0" |
    138157    sed '/^.*\/\([^/][^/]*\)\/*$/{
    139158            s//\1/
     
    161180fi
    162181
    163   if test $as_have_required = yes &&     (eval ":
     182  if test $as_have_required = yes &&     (eval ":
    164183(as_func_return () {
    165184  (exit \$1)
     
    243262  emulate sh
    244263  NULLCMD=:
    245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    246265  # is contrary to our usage.  Disable this feature.
    247266  alias -g '${1+"$@"}'='"$@"'
     
    264283  emulate sh
    265284  NULLCMD=:
    266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    267286  # is contrary to our usage.  Disable this feature.
    268287  alias -g '${1+"$@"}'='"$@"'
     
    344363      if test "x$CONFIG_SHELL" != x; then
    345364  for as_var in BASH_ENV ENV
    346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    347         done
    348         export CONFIG_SHELL
    349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
     365        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     366        done
     367        export CONFIG_SHELL
     368        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    350369fi
    351370
     
    416435test \$exitcode = 0") || {
    417436  echo No shell found that supports shell functions.
    418   echo Please tell autoconf@gnu.org about your system,
    419   echo including any error possibly output before this
    420   echo message
     437  echo Please tell bug-autoconf@gnu.org about your system,
     438  echo including any error possibly output before this message.
     439  echo This can help us improve future autoconf versions.
     440  echo Configuration will now proceed without shell functions.
    421441}
    422442
     
    454474    ' >$as_me.lineno &&
    455475  chmod +x "$as_me.lineno" ||
    456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    457477   { (exit 1); exit 1; }; }
    458478
     
    482502  ECHO_N='-n';;
    483503esac
    484 
    485504if expr a : '\(a\)' >/dev/null 2>&1 &&
    486505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     
    495514else
    496515  rm -f conf$$.dir
    497   mkdir conf$$.dir
    498 fi
    499 echo >conf$$.file
    500 if ln -s conf$$.file conf$$ 2>/dev/null; then
    501   as_ln_s='ln -s'
    502   # ... but there are two gotchas:
    503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    505   # In both cases, we have to default to `cp -p'.
    506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     516  mkdir conf$$.dir 2>/dev/null
     517fi
     518if (echo >conf$$.file) 2>/dev/null; then
     519  if ln -s conf$$.file conf$$ 2>/dev/null; then
     520    as_ln_s='ln -s'
     521    # ... but there are two gotchas:
     522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     524    # In both cases, we have to default to `cp -p'.
     525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     526      as_ln_s='cp -p'
     527  elif ln conf$$.file conf$$ 2>/dev/null; then
     528    as_ln_s=ln
     529  else
    507530    as_ln_s='cp -p'
    508 elif ln conf$$.file conf$$ 2>/dev/null; then
    509   as_ln_s=ln
     531  fi
    510532else
    511533  as_ln_s='cp -p'
     
    532554    eval sh -c '\''
    533555      if test -d "$1"; then
    534         test -d "$1/.";
     556        test -d "$1/.";
    535557      else
    536558        case $1 in
    537         -*)set "./$1";;
     559        -*)set "./$1";;
    538560        esac;
    539561        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     
    657679INSTALL_SCRIPT
    658680INSTALL_DATA
    659 SET_MAKE
     681RANLIB
     682LN_S
     683MKDIR_P
    660684CC
    661685CFLAGS
     
    665689EXEEXT
    666690OBJEXT
    667 RANLIB
    668691CXX
    669692CXXFLAGS
     
    683706LTLIBOBJS'
    684707ac_subst_files=''
     708ac_user_opts='
     709enable_option_checking
     710with_tcllib
     711with_tclinclude
     712with_rappture
     713'
    685714      ac_precious_vars='build_alias
    686715host_alias
     
    700729ac_init_help=
    701730ac_init_version=false
     731ac_unrecognized_opts=
     732ac_unrecognized_sep=
    702733# The variables have the same names as the options, with
    703734# dashes changed to underlines.
     
    798829
    799830  -disable-* | --disable-*)
    800     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     831    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    801832    # Reject names that are not valid shell variable names.
    802     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    803       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     833    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     834      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
    804835   { (exit 1); exit 1; }; }
    805     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    806     eval enable_$ac_feature=no ;;
     836    ac_useropt_orig=$ac_useropt
     837    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     838    case $ac_user_opts in
     839      *"
     840"enable_$ac_useropt"
     841"*) ;;
     842      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     843         ac_unrecognized_sep=', ';;
     844    esac
     845    eval enable_$ac_useropt=no ;;
    807846
    808847  -docdir | --docdir | --docdi | --doc | --do)
     
    817856
    818857  -enable-* | --enable-*)
    819     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     858    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    820859    # Reject names that are not valid shell variable names.
    821     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    822       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     860    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     861      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
    823862   { (exit 1); exit 1; }; }
    824     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    825     eval enable_$ac_feature=\$ac_optarg ;;
     863    ac_useropt_orig=$ac_useropt
     864    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     865    case $ac_user_opts in
     866      *"
     867"enable_$ac_useropt"
     868"*) ;;
     869      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     870         ac_unrecognized_sep=', ';;
     871    esac
     872    eval enable_$ac_useropt=\$ac_optarg ;;
    826873
    827874  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    10141061
    10151062  -with-* | --with-*)
    1016     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     1063    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    10171064    # Reject names that are not valid shell variable names.
    1018     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    1019       { echo "$as_me: error: invalid package name: $ac_package" >&2
     1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1066      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
    10201067   { (exit 1); exit 1; }; }
    1021     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
    1022     eval with_$ac_package=\$ac_optarg ;;
     1068    ac_useropt_orig=$ac_useropt
     1069    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1070    case $ac_user_opts in
     1071      *"
     1072"with_$ac_useropt"
     1073"*) ;;
     1074      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     1075         ac_unrecognized_sep=', ';;
     1076    esac
     1077    eval with_$ac_useropt=\$ac_optarg ;;
    10231078
    10241079  -without-* | --without-*)
    1025     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     1080    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    10261081    # Reject names that are not valid shell variable names.
    1027     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    1028       { echo "$as_me: error: invalid package name: $ac_package" >&2
     1082    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1083      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
    10291084   { (exit 1); exit 1; }; }
    1030     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
    1031     eval with_$ac_package=no ;;
     1085    ac_useropt_orig=$ac_useropt
     1086    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1087    case $ac_user_opts in
     1088      *"
     1089"with_$ac_useropt"
     1090"*) ;;
     1091      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     1092         ac_unrecognized_sep=', ';;
     1093    esac
     1094    eval with_$ac_useropt=no ;;
    10321095
    10331096  --x)
     
    10491112    x_libraries=$ac_optarg ;;
    10501113
    1051   -*) { echo "$as_me: error: unrecognized option: $ac_option
     1114  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
    10521115Try \`$0 --help' for more information." >&2
    10531116   { (exit 1); exit 1; }; }
     
    10581121    # Reject names that are not valid shell variable names.
    10591122    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    1060       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     1123      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    10611124   { (exit 1); exit 1; }; }
    10621125    eval $ac_envvar=\$ac_optarg
     
    10651128  *)
    10661129    # FIXME: should be removed in autoconf 3.0.
    1067     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     1130    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    10681131    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    1069       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     1132      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    10701133    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    10711134    ;;
     
    10761139if test -n "$ac_prev"; then
    10771140  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1078   { echo "$as_me: error: missing argument to $ac_option" >&2
     1141  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
    10791142   { (exit 1); exit 1; }; }
    10801143fi
    10811144
    1082 # Be sure to have absolute directory names.
     1145if test -n "$ac_unrecognized_opts"; then
     1146  case $enable_option_checking in
     1147    no) ;;
     1148    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
     1149   { (exit 1); exit 1; }; } ;;
     1150    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
     1151  esac
     1152fi
     1153
     1154# Check all directory arguments for consistency.
    10831155for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
    10841156                datadir sysconfdir sharedstatedir localstatedir includedir \
     
    10871159do
    10881160  eval ac_val=\$$ac_var
     1161  # Remove trailing slashes.
     1162  case $ac_val in
     1163    */ )
     1164      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     1165      eval $ac_var=\$ac_val;;
     1166  esac
     1167  # Be sure to have absolute directory names.
    10891168  case $ac_val in
    10901169    [\\/$]* | ?:[\\/]* )  continue;;
    10911170    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    10921171  esac
    1093   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     1172  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    10941173   { (exit 1); exit 1; }; }
    10951174done
     
    11061185  if test "x$build_alias" = x; then
    11071186    cross_compiling=maybe
    1108     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     1187    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    11091188    If a cross compiler is detected then cross compile mode will be used." >&2
    11101189  elif test "x$build_alias" != "x$host_alias"; then
     
    11221201ac_ls_di=`ls -di .` &&
    11231202ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1124   { echo "$as_me: error: Working directory cannot be determined" >&2
     1203  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
    11251204   { (exit 1); exit 1; }; }
    11261205test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1127   { echo "$as_me: error: pwd does not report name of working directory" >&2
     1206  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
    11281207   { (exit 1); exit 1; }; }
    11291208
     
    11331212  ac_srcdir_defaulted=yes
    11341213  # Try the directory containing this script, then the parent directory.
    1135   ac_confdir=`$as_dirname -- "$0" ||
    1136 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    1137          X"$0" : 'X\(//\)[^/]' \| \
    1138          X"$0" : 'X\(//\)$' \| \
    1139          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    1140 echo X"$0" |
     1214  ac_confdir=`$as_dirname -- "$as_myself" ||
     1215$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     1216         X"$as_myself" : 'X\(//\)[^/]' \| \
     1217         X"$as_myself" : 'X\(//\)$' \| \
     1218         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     1219$as_echo X"$as_myself" |
    11411220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    11421221            s//\1/
     
    11651244if test ! -r "$srcdir/$ac_unique_file"; then
    11661245  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1167   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     1246  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    11681247   { (exit 1); exit 1; }; }
    11691248fi
    11701249ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    11711250ac_abs_confdir=`(
    1172         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
     1251        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
    11731252   { (exit 1); exit 1; }; }
    11741253        pwd)`
     
    12191298Installation directories:
    12201299  --prefix=PREFIX         install architecture-independent files in PREFIX
    1221                           [$ac_default_prefix]
     1300                          [$ac_default_prefix]
    12221301  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    1223                           [PREFIX]
     1302                          [PREFIX]
    12241303
    12251304By default, \`make install' will install all the files in
     
    12311310
    12321311Fine tuning of the installation directories:
    1233   --bindir=DIR           user executables [EPREFIX/bin]
    1234   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    1235   --libexecdir=DIR       program executables [EPREFIX/libexec]
    1236   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    1237   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    1238   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    1239   --libdir=DIR           object code libraries [EPREFIX/lib]
    1240   --includedir=DIR       C header files [PREFIX/include]
    1241   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    1242   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
    1243   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
    1244   --infodir=DIR          info documentation [DATAROOTDIR/info]
    1245   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
    1246   --mandir=DIR           man documentation [DATAROOTDIR/man]
    1247   --docdir=DIR           documentation root [DATAROOTDIR/doc/vizservers]
    1248   --htmldir=DIR          html documentation [DOCDIR]
    1249   --dvidir=DIR           dvi documentation [DOCDIR]
    1250   --pdfdir=DIR           pdf documentation [DOCDIR]
    1251   --psdir=DIR            ps documentation [DOCDIR]
     1312  --bindir=DIR            user executables [EPREFIX/bin]
     1313  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     1314  --libexecdir=DIR        program executables [EPREFIX/libexec]
     1315  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     1316  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     1317  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     1318  --libdir=DIR            object code libraries [EPREFIX/lib]
     1319  --includedir=DIR        C header files [PREFIX/include]
     1320  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     1321  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     1322  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     1323  --infodir=DIR           info documentation [DATAROOTDIR/info]
     1324  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     1325  --mandir=DIR            man documentation [DATAROOTDIR/man]
     1326  --docdir=DIR            documentation root [DATAROOTDIR/doc/vizservers]
     1327  --htmldir=DIR           html documentation [DOCDIR]
     1328  --dvidir=DIR            dvi documentation [DOCDIR]
     1329  --pdfdir=DIR            pdf documentation [DOCDIR]
     1330  --psdir=DIR             ps documentation [DOCDIR]
    12521331_ACEOF
    12531332
     
    12941373  # If there are subdirs, report their specific --help.
    12951374  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    1296     test -d "$ac_dir" || continue
     1375    test -d "$ac_dir" ||
     1376      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     1377      continue
    12971378    ac_builddir=.
    12981379
     
    13001381.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
    13011382*)
    1302   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     1383  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
    13031384  # A ".." for each directory in $ac_dir_suffix.
    1304   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
     1385  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
    13051386  case $ac_top_builddir_sub in
    13061387  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     
    13381419      $SHELL "$ac_srcdir/configure" --help=recursive
    13391420    else
    1340       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     1421      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    13411422    fi || ac_status=$?
    13421423    cd "$ac_pwd" || { ac_status=$?; break; }
     
    13481429  cat <<\_ACEOF
    13491430vizservers configure 0.1
    1350 generated by GNU Autoconf 2.61
     1431generated by GNU Autoconf 2.62
    13511432
    13521433Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    1353 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     14342002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    13541435This configure script is free software; the Free Software Foundation
    13551436gives unlimited permission to copy, distribute and modify it.
     
    13621443
    13631444It was created by vizservers $as_me 0.1, which was
    1364 generated by GNU Autoconf 2.61.  Invocation command line was
     1445generated by GNU Autoconf 2.62.  Invocation command line was
    13651446
    13661447  $ $0 $@
     
    13981479  IFS=$as_save_IFS
    13991480  test -z "$as_dir" && as_dir=.
    1400   echo "PATH: $as_dir"
     1481  $as_echo "PATH: $as_dir"
    14011482done
    14021483IFS=$as_save_IFS
     
    14331514      continue ;;
    14341515    *\'*)
    1435       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1516      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    14361517    esac
    14371518    case $ac_pass in
     
    14851566    *${as_nl}*)
    14861567      case $ac_var in #(
    1487       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
    1488 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
     1568      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
     1569$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
    14891570      esac
    14901571      case $ac_var in #(
    14911572      _ | IFS | as_nl) ;; #(
     1573      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
    14921574      *) $as_unset $ac_var ;;
    14931575      esac ;;
     
    15191601      eval ac_val=\$$ac_var
    15201602      case $ac_val in
    1521       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     1603      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
    15221604      esac
    1523       echo "$ac_var='\''$ac_val'\''"
     1605      $as_echo "$ac_var='\''$ac_val'\''"
    15241606    done | sort
    15251607    echo
     
    15361618        eval ac_val=\$$ac_var
    15371619        case $ac_val in
    1538         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     1620        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
    15391621        esac
    1540         echo "$ac_var='\''$ac_val'\''"
     1622        $as_echo "$ac_var='\''$ac_val'\''"
    15411623      done | sort
    15421624      echo
     
    15541636    fi
    15551637    test "$ac_signal" != 0 &&
    1556       echo "$as_me: caught signal $ac_signal"
    1557     echo "$as_me: exit $exit_status"
     1638      $as_echo "$as_me: caught signal $ac_signal"
     1639    $as_echo "$as_me: exit $exit_status"
    15581640  } >&5
    15591641  rm -f core *.core core.conftest.* &&
     
    15971679
    15981680# Let the site file select an alternate cache file if it wants to.
    1599 # Prefer explicitly selected file to automatically selected ones.
     1681# Prefer an explicitly selected file to automatically selected ones.
     1682ac_site_file1=NONE
     1683ac_site_file2=NONE
    16001684if test -n "$CONFIG_SITE"; then
    1601   set x "$CONFIG_SITE"
     1685  ac_site_file1=$CONFIG_SITE
    16021686elif test "x$prefix" != xNONE; then
    1603   set x "$prefix/share/config.site" "$prefix/etc/config.site"
    1604 else
    1605   set x "$ac_default_prefix/share/config.site" \
    1606         "$ac_default_prefix/etc/config.site"
    1607 fi
    1608 shift
    1609 for ac_site_file
     1687  ac_site_file1=$prefix/share/config.site
     1688  ac_site_file2=$prefix/etc/config.site
     1689else
     1690  ac_site_file1=$ac_default_prefix/share/config.site
     1691  ac_site_file2=$ac_default_prefix/etc/config.site
     1692fi
     1693for ac_site_file in "$ac_site_file1" "$ac_site_file2"
    16101694do
     1695  test "x$ac_site_file" = xNONE && continue
    16111696  if test -r "$ac_site_file"; then
    1612     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1613 echo "$as_me: loading site script $ac_site_file" >&6;}
     1697    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     1698$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    16141699    sed 's/^/| /' "$ac_site_file" >&5
    16151700    . "$ac_site_file"
     
    16211706  # files actually), so we avoid doing that.
    16221707  if test -f "$cache_file"; then
    1623     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1624 echo "$as_me: loading cache $cache_file" >&6;}
     1708    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
     1709$as_echo "$as_me: loading cache $cache_file" >&6;}
    16251710    case $cache_file in
    16261711      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     
    16291714  fi
    16301715else
    1631   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1632 echo "$as_me: creating cache $cache_file" >&6;}
     1716  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
     1717$as_echo "$as_me: creating cache $cache_file" >&6;}
    16331718  >$cache_file
    16341719fi
     
    16441729  case $ac_old_set,$ac_new_set in
    16451730    set,)
    1646       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1647 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1731      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1732$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    16481733      ac_cache_corrupted=: ;;
    16491734    ,set)
    1650       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1651 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1735      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1736$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    16521737      ac_cache_corrupted=: ;;
    16531738    ,);;
    16541739    *)
    16551740      if test "x$ac_old_val" != "x$ac_new_val"; then
    1656         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1657 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1658         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1659 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1660         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1661 echo "$as_me:   current value: $ac_new_val" >&2;}
    1662         ac_cache_corrupted=:
     1741        # differences in whitespace do not lead to failure.
     1742        ac_old_val_w=`echo x $ac_old_val`
     1743        ac_new_val_w=`echo x $ac_new_val`
     1744        if test "$ac_old_val_w" != "$ac_new_val_w"; then
     1745          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1746$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1747          ac_cache_corrupted=:
     1748        else
     1749          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     1750$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
     1751          eval $ac_var=\$ac_old_val
     1752        fi
     1753        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
     1754$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
     1755        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
     1756$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    16631757      fi;;
    16641758  esac
     
    16661760  if test "$ac_new_set" = set; then
    16671761    case $ac_new_val in
    1668     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1762    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    16691763    *) ac_arg=$ac_var=$ac_new_val ;;
    16701764    esac
     
    16761770done
    16771771if $ac_cache_corrupted; then
    1678   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1679 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1680   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1681 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1772  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1773$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1774  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1775$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    16821776   { (exit 1); exit 1; }; }
    16831777fi
     
    17541848done
    17551849if test -z "$ac_aux_dir"; then
    1756   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
    1757 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
     1850  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
     1851$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
    17581852   { (exit 1); exit 1; }; }
    17591853fi
     
    17811875# OS/2's system install, which has a completely different semantic
    17821876# ./install, which can be erroneously created by make from ./install.sh.
    1783 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    1784 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
     1877# Reject install programs that cannot install multiple files.
     1878{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     1879$as_echo_n "checking for a BSD-compatible install... " >&6; }
    17851880if test -z "$INSTALL"; then
    17861881if test "${ac_cv_path_install+set}" = set; then
    1787   echo $ECHO_N "(cached) $ECHO_C" >&6
     1882  $as_echo_n "(cached) " >&6
    17881883else
    17891884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    18141909            :
    18151910          else
    1816             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    1817             break 3
     1911            rm -rf conftest.one conftest.two conftest.dir
     1912            echo one > conftest.one
     1913            echo two > conftest.two
     1914            mkdir conftest.dir
     1915            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
     1916              test -s conftest.one && test -s conftest.two &&
     1917              test -s conftest.dir/conftest.one &&
     1918              test -s conftest.dir/conftest.two
     1919            then
     1920              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     1921              break 3
     1922            fi
    18181923          fi
    18191924        fi
     
    18221927    ;;
    18231928esac
     1929
    18241930done
    18251931IFS=$as_save_IFS
    18261932
     1933rm -rf conftest.one conftest.two conftest.dir
    18271934
    18281935fi
     
    18371944  fi
    18381945fi
    1839 { echo "$as_me:$LINENO: result: $INSTALL" >&5
    1840 echo "${ECHO_T}$INSTALL" >&6; }
     1946{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
     1947$as_echo "$INSTALL" >&6; }
    18411948
    18421949# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    18481955test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    18491956
    1850 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    1851 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
    1852 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
    1853 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
    1854   echo $ECHO_N "(cached) $ECHO_C" >&6
    1855 else
    1856   cat >conftest.make <<\_ACEOF
    1857 SHELL = /bin/sh
    1858 all:
    1859         @echo '@@@%%%=$(MAKE)=@@@%%%'
    1860 _ACEOF
    1861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
    1863   *@@@%%%=?*=@@@%%%*)
    1864     eval ac_cv_prog_make_${ac_make}_set=yes;;
    1865   *)
    1866     eval ac_cv_prog_make_${ac_make}_set=no;;
    1867 esac
    1868 rm -f conftest.make
    1869 fi
    1870 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
    1871   { echo "$as_me:$LINENO: result: yes" >&5
    1872 echo "${ECHO_T}yes" >&6; }
    1873   SET_MAKE=
    1874 else
    1875   { echo "$as_me:$LINENO: result: no" >&5
    1876 echo "${ECHO_T}no" >&6; }
    1877   SET_MAKE="MAKE=${MAKE-make}"
    1878 fi
     1957if test -n "$ac_tool_prefix"; then
     1958  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     1959set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     1960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     1961$as_echo_n "checking for $ac_word... " >&6; }
     1962if test "${ac_cv_prog_RANLIB+set}" = set; then
     1963  $as_echo_n "(cached) " >&6
     1964else
     1965  if test -n "$RANLIB"; then
     1966  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     1967else
     1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1969for as_dir in $PATH
     1970do
     1971  IFS=$as_save_IFS
     1972  test -z "$as_dir" && as_dir=.
     1973  for ac_exec_ext in '' $ac_executable_extensions; do
     1974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1975    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     1976    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1977    break 2
     1978  fi
     1979done
     1980done
     1981IFS=$as_save_IFS
     1982
     1983fi
     1984fi
     1985RANLIB=$ac_cv_prog_RANLIB
     1986if test -n "$RANLIB"; then
     1987  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
     1988$as_echo "$RANLIB" >&6; }
     1989else
     1990  { $as_echo "$as_me:$LINENO: result: no" >&5
     1991$as_echo "no" >&6; }
     1992fi
     1993
     1994
     1995fi
     1996if test -z "$ac_cv_prog_RANLIB"; then
     1997  ac_ct_RANLIB=$RANLIB
     1998  # Extract the first word of "ranlib", so it can be a program name with args.
     1999set dummy ranlib; ac_word=$2
     2000{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2001$as_echo_n "checking for $ac_word... " >&6; }
     2002if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2003  $as_echo_n "(cached) " >&6
     2004else
     2005  if test -n "$ac_ct_RANLIB"; then
     2006  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2007else
     2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2009for as_dir in $PATH
     2010do
     2011  IFS=$as_save_IFS
     2012  test -z "$as_dir" && as_dir=.
     2013  for ac_exec_ext in '' $ac_executable_extensions; do
     2014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2015    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2016    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2017    break 2
     2018  fi
     2019done
     2020done
     2021IFS=$as_save_IFS
     2022
     2023fi
     2024fi
     2025ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2026if test -n "$ac_ct_RANLIB"; then
     2027  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     2028$as_echo "$ac_ct_RANLIB" >&6; }
     2029else
     2030  { $as_echo "$as_me:$LINENO: result: no" >&5
     2031$as_echo "no" >&6; }
     2032fi
     2033
     2034  if test "x$ac_ct_RANLIB" = x; then
     2035    RANLIB=":"
     2036  else
     2037    case $cross_compiling:$ac_tool_warned in
     2038yes:)
     2039{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     2040whose name does not start with the host triplet.  If you think this
     2041configuration is useful to you, please write to autoconf@gnu.org." >&5
     2042$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     2043whose name does not start with the host triplet.  If you think this
     2044configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     2045ac_tool_warned=yes ;;
     2046esac
     2047    RANLIB=$ac_ct_RANLIB
     2048  fi
     2049else
     2050  RANLIB="$ac_cv_prog_RANLIB"
     2051fi
     2052
     2053{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2054$as_echo_n "checking whether ln -s works... " >&6; }
     2055LN_S=$as_ln_s
     2056if test "$LN_S" = "ln -s"; then
     2057  { $as_echo "$as_me:$LINENO: result: yes" >&5
     2058$as_echo "yes" >&6; }
     2059else
     2060  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2061$as_echo "no, using $LN_S" >&6; }
     2062fi
     2063
     2064{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
     2065$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
     2066if test -z "$MKDIR_P"; then
     2067  if test "${ac_cv_path_mkdir+set}" = set; then
     2068  $as_echo_n "(cached) " >&6
     2069else
     2070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2071for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
     2072do
     2073  IFS=$as_save_IFS
     2074  test -z "$as_dir" && as_dir=.
     2075  for ac_prog in mkdir gmkdir; do
     2076         for ac_exec_ext in '' $ac_executable_extensions; do
     2077           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
     2078           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
     2079             'mkdir (GNU coreutils) '* | \
     2080             'mkdir (coreutils) '* | \
     2081             'mkdir (fileutils) '4.1*)
     2082               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
     2083               break 3;;
     2084           esac
     2085         done
     2086       done
     2087done
     2088IFS=$as_save_IFS
     2089
     2090fi
     2091
     2092  if test "${ac_cv_path_mkdir+set}" = set; then
     2093    MKDIR_P="$ac_cv_path_mkdir -p"
     2094  else
     2095    # As a last resort, use the slow shell script.  Don't cache a
     2096    # value for MKDIR_P within a source directory, because that will
     2097    # break other packages using the cache if that directory is
     2098    # removed, or if the value is a relative name.
     2099    test -d ./--version && rmdir ./--version
     2100    MKDIR_P="$ac_install_sh -d"
     2101  fi
     2102fi
     2103{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
     2104$as_echo "$MKDIR_P" >&6; }
    18792105
    18802106
     
    18872113  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    18882114set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2116$as_echo_n "checking for $ac_word... " >&6; }
    18912117if test "${ac_cv_prog_CC+set}" = set; then
    1892   echo $ECHO_N "(cached) $ECHO_C" >&6
     2118  $as_echo_n "(cached) " >&6
    18932119else
    18942120  if test -n "$CC"; then
     
    19032129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    19042130    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2131    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19062132    break 2
    19072133  fi
     
    19142140CC=$ac_cv_prog_CC
    19152141if test -n "$CC"; then
    1916   { echo "$as_me:$LINENO: result: $CC" >&5
    1917 echo "${ECHO_T}$CC" >&6; }
    1918 else
    1919   { echo "$as_me:$LINENO: result: no" >&5
    1920 echo "${ECHO_T}no" >&6; }
     2142  { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2143$as_echo "$CC" >&6; }
     2144else
     2145  { $as_echo "$as_me:$LINENO: result: no" >&5
     2146$as_echo "no" >&6; }
    19212147fi
    19222148
     
    19272153  # Extract the first word of "gcc", so it can be a program name with args.
    19282154set dummy gcc; ac_word=$2
    1929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2156$as_echo_n "checking for $ac_word... " >&6; }
    19312157if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1932   echo $ECHO_N "(cached) $ECHO_C" >&6
     2158  $as_echo_n "(cached) " >&6
    19332159else
    19342160  if test -n "$ac_ct_CC"; then
     
    19432169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    19442170    ac_cv_prog_ac_ct_CC="gcc"
    1945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2171    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19462172    break 2
    19472173  fi
     
    19542180ac_ct_CC=$ac_cv_prog_ac_ct_CC
    19552181if test -n "$ac_ct_CC"; then
    1956   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1957 echo "${ECHO_T}$ac_ct_CC" >&6; }
    1958 else
    1959   { echo "$as_me:$LINENO: result: no" >&5
    1960 echo "${ECHO_T}no" >&6; }
     2182  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2183$as_echo "$ac_ct_CC" >&6; }
     2184else
     2185  { $as_echo "$as_me:$LINENO: result: no" >&5
     2186$as_echo "no" >&6; }
    19612187fi
    19622188
     
    19662192    case $cross_compiling:$ac_tool_warned in
    19672193yes:)
    1968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     2194{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    19692195whose name does not start with the host triplet.  If you think this
    19702196configuration is useful to you, please write to autoconf@gnu.org." >&5
    1971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     2197$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    19722198whose name does not start with the host triplet.  If you think this
    19732199configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     
    19842210    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    19852211set dummy ${ac_tool_prefix}cc; ac_word=$2
    1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2213$as_echo_n "checking for $ac_word... " >&6; }
    19882214if test "${ac_cv_prog_CC+set}" = set; then
    1989   echo $ECHO_N "(cached) $ECHO_C" >&6
     2215  $as_echo_n "(cached) " >&6
    19902216else
    19912217  if test -n "$CC"; then
     
    20002226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    20012227    ac_cv_prog_CC="${ac_tool_prefix}cc"
    2002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2228    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    20032229    break 2
    20042230  fi
     
    20112237CC=$ac_cv_prog_CC
    20122238if test -n "$CC"; then
    2013   { echo "$as_me:$LINENO: result: $CC" >&5
    2014 echo "${ECHO_T}$CC" >&6; }
    2015 else
    2016   { echo "$as_me:$LINENO: result: no" >&5
    2017 echo "${ECHO_T}no" >&6; }
     2239  { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2240$as_echo "$CC" >&6; }
     2241else
     2242  { $as_echo "$as_me:$LINENO: result: no" >&5
     2243$as_echo "no" >&6; }
    20182244fi
    20192245
     
    20242250  # Extract the first word of "cc", so it can be a program name with args.
    20252251set dummy cc; ac_word=$2
    2026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2252{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2253$as_echo_n "checking for $ac_word... " >&6; }
    20282254if test "${ac_cv_prog_CC+set}" = set; then
    2029   echo $ECHO_N "(cached) $ECHO_C" >&6
     2255  $as_echo_n "(cached) " >&6
    20302256else
    20312257  if test -n "$CC"; then
     
    20452271     fi
    20462272    ac_cv_prog_CC="cc"
    2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2273    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    20482274    break 2
    20492275  fi
     
    20682294CC=$ac_cv_prog_CC
    20692295if test -n "$CC"; then
    2070   { echo "$as_me:$LINENO: result: $CC" >&5
    2071 echo "${ECHO_T}$CC" >&6; }
    2072 else
    2073   { echo "$as_me:$LINENO: result: no" >&5
    2074 echo "${ECHO_T}no" >&6; }
     2296  { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2297$as_echo "$CC" >&6; }
     2298else
     2299  { $as_echo "$as_me:$LINENO: result: no" >&5
     2300$as_echo "no" >&6; }
    20752301fi
    20762302
     
    20832309    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    20842310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2312$as_echo_n "checking for $ac_word... " >&6; }
    20872313if test "${ac_cv_prog_CC+set}" = set; then
    2088   echo $ECHO_N "(cached) $ECHO_C" >&6
     2314  $as_echo_n "(cached) " >&6
    20892315else
    20902316  if test -n "$CC"; then
     
    20992325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    21002326    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2327    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    21022328    break 2
    21032329  fi
     
    21102336CC=$ac_cv_prog_CC
    21112337if test -n "$CC"; then
    2112   { echo "$as_me:$LINENO: result: $CC" >&5
    2113 echo "${ECHO_T}$CC" >&6; }
    2114 else
    2115   { echo "$as_me:$LINENO: result: no" >&5
    2116 echo "${ECHO_T}no" >&6; }
     2338  { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2339$as_echo "$CC" >&6; }
     2340else
     2341  { $as_echo "$as_me:$LINENO: result: no" >&5
     2342$as_echo "no" >&6; }
    21172343fi
    21182344
     
    21272353  # Extract the first word of "$ac_prog", so it can be a program name with args.
    21282354set dummy $ac_prog; ac_word=$2
    2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2356$as_echo_n "checking for $ac_word... " >&6; }
    21312357if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2132   echo $ECHO_N "(cached) $ECHO_C" >&6
     2358  $as_echo_n "(cached) " >&6
    21332359else
    21342360  if test -n "$ac_ct_CC"; then
     
    21432369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    21442370    ac_cv_prog_ac_ct_CC="$ac_prog"
    2145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2371    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    21462372    break 2
    21472373  fi
     
    21542380ac_ct_CC=$ac_cv_prog_ac_ct_CC
    21552381if test -n "$ac_ct_CC"; then
    2156   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2157 echo "${ECHO_T}$ac_ct_CC" >&6; }
    2158 else
    2159   { echo "$as_me:$LINENO: result: no" >&5
    2160 echo "${ECHO_T}no" >&6; }
     2382  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2383$as_echo "$ac_ct_CC" >&6; }
     2384else
     2385  { $as_echo "$as_me:$LINENO: result: no" >&5
     2386$as_echo "no" >&6; }
    21612387fi
    21622388
     
    21702396    case $cross_compiling:$ac_tool_warned in
    21712397yes:)
    2172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     2398{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    21732399whose name does not start with the host triplet.  If you think this
    21742400configuration is useful to you, please write to autoconf@gnu.org." >&5
    2175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     2401$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    21762402whose name does not start with the host triplet.  If you think this
    21772403configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     
    21852411
    21862412
    2187 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2413test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    21882414See \`config.log' for more details." >&5
    2189 echo "$as_me: error: no acceptable C compiler found in \$PATH
     2415$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
    21902416See \`config.log' for more details." >&2;}
    21912417   { (exit 1); exit 1; }; }
    21922418
    21932419# Provide some information about the compiler.
    2194 echo "$as_me:$LINENO: checking for C compiler version" >&5
    2195 ac_compiler=`set X $ac_compile; echo $2`
     2420$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
     2421set X $ac_compile
     2422ac_compiler=$2
    21962423{ (ac_try="$ac_compiler --version >&5"
    21972424case "(($ac_try" in
     
    21992426  *) ac_try_echo=$ac_try;;
    22002427esac
    2201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2429$as_echo "$ac_try_echo") >&5
    22022430  (eval "$ac_compiler --version >&5") 2>&5
    22032431  ac_status=$?
    2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22052433  (exit $ac_status); }
    22062434{ (ac_try="$ac_compiler -v >&5"
     
    22092437  *) ac_try_echo=$ac_try;;
    22102438esac
    2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2440$as_echo "$ac_try_echo") >&5
    22122441  (eval "$ac_compiler -v >&5") 2>&5
    22132442  ac_status=$?
    2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22152444  (exit $ac_status); }
    22162445{ (ac_try="$ac_compiler -V >&5"
     
    22192448  *) ac_try_echo=$ac_try;;
    22202449esac
    2221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2451$as_echo "$ac_try_echo") >&5
    22222452  (eval "$ac_compiler -V >&5") 2>&5
    22232453  ac_status=$?
    2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22252455  (exit $ac_status); }
    22262456
     
    22412471_ACEOF
    22422472ac_clean_files_save=$ac_clean_files
    2243 ac_clean_files="$ac_clean_files a.out a.exe b.out"
     2473ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    22442474# Try to create an executable without -o first, disregard a.out.
    22452475# It will help us diagnose broken compilers, and finding out an intuition
    22462476# of exeext.
    2247 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2248 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
    2249 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    2250 #
    2251 # List of possible output files, starting from the most likely.
    2252 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
    2253 # only as a last resort.  b.out is created by i960 compilers.
    2254 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
    2255 #
    2256 # The IRIX 6 linker writes into existing files which may not be
    2257 # executable, retaining their permissions.  Remove them first so a
    2258 # subsequent execution test works.
     2477{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2478$as_echo_n "checking for C compiler default output file name... " >&6; }
     2479ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2480
     2481# The possible output files:
     2482ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2483
    22592484ac_rmfiles=
    22602485for ac_file in $ac_files
    22612486do
    22622487  case $ac_file in
    2263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
     2488    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    22642489    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
    22652490  esac
     
    22722497  *) ac_try_echo=$ac_try;;
    22732498esac
    2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2500$as_echo "$ac_try_echo") >&5
    22752501  (eval "$ac_link_default") 2>&5
    22762502  ac_status=$?
    2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22782504  (exit $ac_status); }; then
    22792505  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     
    22862512  test -f "$ac_file" || continue
    22872513  case $ac_file in
    2288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
     2514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    22892515        ;;
    22902516    [ab].out )
     
    23132539fi
    23142540
    2315 { echo "$as_me:$LINENO: result: $ac_file" >&5
    2316 echo "${ECHO_T}$ac_file" >&6; }
     2541{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
     2542$as_echo "$ac_file" >&6; }
    23172543if test -z "$ac_file"; then
    2318   echo "$as_me: failed program was:" >&5
     2544  $as_echo "$as_me: failed program was:" >&5
    23192545sed 's/^/| /' conftest.$ac_ext >&5
    23202546
    2321 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
     2547{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
    23222548See \`config.log' for more details." >&5
    2323 echo "$as_me: error: C compiler cannot create executables
     2549$as_echo "$as_me: error: C compiler cannot create executables
    23242550See \`config.log' for more details." >&2;}
    23252551   { (exit 77); exit 77; }; }
     
    23302556# Check that the compiler produces executables we can run.  If not, either
    23312557# the compiler is broken, or we cross compile.
    2332 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2333 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
     2558{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2559$as_echo_n "checking whether the C compiler works... " >&6; }
    23342560# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    23352561# If not cross compiling, check that we can run a simple program.
     
    23402566  *) ac_try_echo=$ac_try;;
    23412567esac
    2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2569$as_echo "$ac_try_echo") >&5
    23432570  (eval "$ac_try") 2>&5
    23442571  ac_status=$?
    2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23462573  (exit $ac_status); }; }; then
    23472574    cross_compiling=no
     
    23502577        cross_compiling=yes
    23512578    else
    2352         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     2579        { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
    23532580If you meant to cross compile, use \`--host'.
    23542581See \`config.log' for more details." >&5
    2355 echo "$as_me: error: cannot run C compiled programs.
     2582$as_echo "$as_me: error: cannot run C compiled programs.
    23562583If you meant to cross compile, use \`--host'.
    23572584See \`config.log' for more details." >&2;}
     
    23602587  fi
    23612588fi
    2362 { echo "$as_me:$LINENO: result: yes" >&5
    2363 echo "${ECHO_T}yes" >&6; }
    2364 
    2365 rm -f a.out a.exe conftest$ac_cv_exeext b.out
     2589{ $as_echo "$as_me:$LINENO: result: yes" >&5
     2590$as_echo "yes" >&6; }
     2591
     2592rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    23662593ac_clean_files=$ac_clean_files_save
    23672594# Check that the compiler produces executables we can run.  If not, either
    23682595# the compiler is broken, or we cross compile.
    2369 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2370 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
    2371 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2372 echo "${ECHO_T}$cross_compiling" >&6; }
    2373 
    2374 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2375 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
     2596{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2597$as_echo_n "checking whether we are cross compiling... " >&6; }
     2598{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2599$as_echo "$cross_compiling" >&6; }
     2600
     2601{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
     2602$as_echo_n "checking for suffix of executables... " >&6; }
    23762603if { (ac_try="$ac_link"
    23772604case "(($ac_try" in
     
    23792606  *) ac_try_echo=$ac_try;;
    23802607esac
    2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2609$as_echo "$ac_try_echo") >&5
    23822610  (eval "$ac_link") 2>&5
    23832611  ac_status=$?
    2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23852613  (exit $ac_status); }; then
    23862614  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     
    23912619  test -f "$ac_file" || continue
    23922620  case $ac_file in
    2393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
     2621    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    23942622    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    23952623          break;;
     
    23982626done
    23992627else
    2400   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2628  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    24012629See \`config.log' for more details." >&5
    2402 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2630$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    24032631See \`config.log' for more details." >&2;}
    24042632   { (exit 1); exit 1; }; }
     
    24062634
    24072635rm -f conftest$ac_cv_exeext
    2408 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    2409 echo "${ECHO_T}$ac_cv_exeext" >&6; }
     2636{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2637$as_echo "$ac_cv_exeext" >&6; }
    24102638
    24112639rm -f conftest.$ac_ext
    24122640EXEEXT=$ac_cv_exeext
    24132641ac_exeext=$EXEEXT
    2414 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2415 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
     2642{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2643$as_echo_n "checking for suffix of object files... " >&6; }
    24162644if test "${ac_cv_objext+set}" = set; then
    2417   echo $ECHO_N "(cached) $ECHO_C" >&6
     2645  $as_echo_n "(cached) " >&6
    24182646else
    24192647  cat >conftest.$ac_ext <<_ACEOF
     
    24382666  *) ac_try_echo=$ac_try;;
    24392667esac
    2440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2669$as_echo "$ac_try_echo") >&5
    24412670  (eval "$ac_compile") 2>&5
    24422671  ac_status=$?
    2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2672  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24442673  (exit $ac_status); }; then
    24452674  for ac_file in conftest.o conftest.obj conftest.*; do
    24462675  test -f "$ac_file" || continue;
    24472676  case $ac_file in
    2448     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
     2677    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    24492678    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    24502679       break;;
     
    24522681done
    24532682else
    2454   echo "$as_me: failed program was:" >&5
     2683  $as_echo "$as_me: failed program was:" >&5
    24552684sed 's/^/| /' conftest.$ac_ext >&5
    24562685
    2457 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2686{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    24582687See \`config.log' for more details." >&5
    2459 echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2688$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
    24602689See \`config.log' for more details." >&2;}
    24612690   { (exit 1); exit 1; }; }
     
    24642693rm -f conftest.$ac_cv_objext conftest.$ac_ext
    24652694fi
    2466 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2467 echo "${ECHO_T}$ac_cv_objext" >&6; }
     2695{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2696$as_echo "$ac_cv_objext" >&6; }
    24682697OBJEXT=$ac_cv_objext
    24692698ac_objext=$OBJEXT
    2470 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2471 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
     2699{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2700$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    24722701if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2473   echo $ECHO_N "(cached) $ECHO_C" >&6
     2702  $as_echo_n "(cached) " >&6
    24742703else
    24752704  cat >conftest.$ac_ext <<_ACEOF
     
    24972726  *) ac_try_echo=$ac_try;;
    24982727esac
    2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2729$as_echo "$ac_try_echo") >&5
    25002730  (eval "$ac_compile") 2>conftest.er1
    25012731  ac_status=$?
     
    25032733  rm -f conftest.er1
    25042734  cat conftest.err >&5
    2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    25062736  (exit $ac_status); } && {
    25072737         test -z "$ac_c_werror_flag" ||
     
    25102740  ac_compiler_gnu=yes
    25112741else
    2512   echo "$as_me: failed program was:" >&5
     2742  $as_echo "$as_me: failed program was:" >&5
    25132743sed 's/^/| /' conftest.$ac_ext >&5
    25142744
     
    25202750
    25212751fi
    2522 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2523 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
    2524 GCC=`test $ac_compiler_gnu = yes && echo yes`
     2752{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2753$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     2754if test $ac_compiler_gnu = yes; then
     2755  GCC=yes
     2756else
     2757  GCC=
     2758fi
    25252759ac_test_CFLAGS=${CFLAGS+set}
    25262760ac_save_CFLAGS=$CFLAGS
    2527 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2528 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
     2761{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2762$as_echo_n "checking whether $CC accepts -g... " >&6; }
    25292763if test "${ac_cv_prog_cc_g+set}" = set; then
    2530   echo $ECHO_N "(cached) $ECHO_C" >&6
     2764  $as_echo_n "(cached) " >&6
    25312765else
    25322766  ac_save_c_werror_flag=$ac_c_werror_flag
     
    25552789  *) ac_try_echo=$ac_try;;
    25562790esac
    2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2792$as_echo "$ac_try_echo") >&5
    25582793  (eval "$ac_compile") 2>conftest.er1
    25592794  ac_status=$?
     
    25612796  rm -f conftest.er1
    25622797  cat conftest.err >&5
    2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2798  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    25642799  (exit $ac_status); } && {
    25652800         test -z "$ac_c_werror_flag" ||
     
    25682803  ac_cv_prog_cc_g=yes
    25692804else
    2570   echo "$as_me: failed program was:" >&5
     2805  $as_echo "$as_me: failed program was:" >&5
    25712806sed 's/^/| /' conftest.$ac_ext >&5
    25722807
     
    25932828  *) ac_try_echo=$ac_try;;
    25942829esac
    2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2831$as_echo "$ac_try_echo") >&5
    25962832  (eval "$ac_compile") 2>conftest.er1
    25972833  ac_status=$?
     
    25992835  rm -f conftest.er1
    26002836  cat conftest.err >&5
    2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26022838  (exit $ac_status); } && {
    26032839         test -z "$ac_c_werror_flag" ||
     
    26062842  :
    26072843else
    2608   echo "$as_me: failed program was:" >&5
     2844  $as_echo "$as_me: failed program was:" >&5
    26092845sed 's/^/| /' conftest.$ac_ext >&5
    26102846
     
    26322868  *) ac_try_echo=$ac_try;;
    26332869esac
    2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2871$as_echo "$ac_try_echo") >&5
    26352872  (eval "$ac_compile") 2>conftest.er1
    26362873  ac_status=$?
     
    26382875  rm -f conftest.er1
    26392876  cat conftest.err >&5
    2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26412878  (exit $ac_status); } && {
    26422879         test -z "$ac_c_werror_flag" ||
     
    26452882  ac_cv_prog_cc_g=yes
    26462883else
    2647   echo "$as_me: failed program was:" >&5
     2884  $as_echo "$as_me: failed program was:" >&5
    26482885sed 's/^/| /' conftest.$ac_ext >&5
    26492886
     
    26602897   ac_c_werror_flag=$ac_save_c_werror_flag
    26612898fi
    2662 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2663 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
     2899{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2900$as_echo "$ac_cv_prog_cc_g" >&6; }
    26642901if test "$ac_test_CFLAGS" = set; then
    26652902  CFLAGS=$ac_save_CFLAGS
     
    26772914  fi
    26782915fi
    2679 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
    2680 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
     2916{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
     2917$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    26812918if test "${ac_cv_prog_cc_c89+set}" = set; then
    2682   echo $ECHO_N "(cached) $ECHO_C" >&6
     2919  $as_echo_n "(cached) " >&6
    26832920else
    26842921  ac_cv_prog_cc_c89=no
     
    27512988  *) ac_try_echo=$ac_try;;
    27522989esac
    2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2991$as_echo "$ac_try_echo") >&5
    27542992  (eval "$ac_compile") 2>conftest.er1
    27552993  ac_status=$?
     
    27572995  rm -f conftest.er1
    27582996  cat conftest.err >&5
    2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2997  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27602998  (exit $ac_status); } && {
    27612999         test -z "$ac_c_werror_flag" ||
     
    27643002  ac_cv_prog_cc_c89=$ac_arg
    27653003else
    2766   echo "$as_me: failed program was:" >&5
     3004  $as_echo "$as_me: failed program was:" >&5
    27673005sed 's/^/| /' conftest.$ac_ext >&5
    27683006
     
    27803018case "x$ac_cv_prog_cc_c89" in
    27813019  x)
    2782     { echo "$as_me:$LINENO: result: none needed" >&5
    2783 echo "${ECHO_T}none needed" >&6; } ;;
     3020    { $as_echo "$as_me:$LINENO: result: none needed" >&5
     3021$as_echo "none needed" >&6; } ;;
    27843022  xno)
    2785     { echo "$as_me:$LINENO: result: unsupported" >&5
    2786 echo "${ECHO_T}unsupported" >&6; } ;;
     3023    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
     3024$as_echo "unsupported" >&6; } ;;
    27873025  *)
    27883026    CC="$CC $ac_cv_prog_cc_c89"
    2789     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
    2790 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
     3027    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
     3028$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    27913029esac
    27923030
     
    28033041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    28043042ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2805 
    2806 
    2807 if test -n "$ac_tool_prefix"; then
    2808   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    2809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    2812 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2813   echo $ECHO_N "(cached) $ECHO_C" >&6
    2814 else
    2815   if test -n "$RANLIB"; then
    2816   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    2817 else
    2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2819 for as_dir in $PATH
    2820 do
    2821   IFS=$as_save_IFS
    2822   test -z "$as_dir" && as_dir=.
    2823   for ac_exec_ext in '' $ac_executable_extensions; do
    2824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    2825     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2827     break 2
    2828   fi
    2829 done
    2830 done
    2831 IFS=$as_save_IFS
    2832 
    2833 fi
    2834 fi
    2835 RANLIB=$ac_cv_prog_RANLIB
    2836 if test -n "$RANLIB"; then
    2837   { echo "$as_me:$LINENO: result: $RANLIB" >&5
    2838 echo "${ECHO_T}$RANLIB" >&6; }
    2839 else
    2840   { echo "$as_me:$LINENO: result: no" >&5
    2841 echo "${ECHO_T}no" >&6; }
    2842 fi
    2843 
    2844 
    2845 fi
    2846 if test -z "$ac_cv_prog_RANLIB"; then
    2847   ac_ct_RANLIB=$RANLIB
    2848   # Extract the first word of "ranlib", so it can be a program name with args.
    2849 set dummy ranlib; ac_word=$2
    2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    2852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2853   echo $ECHO_N "(cached) $ECHO_C" >&6
    2854 else
    2855   if test -n "$ac_ct_RANLIB"; then
    2856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2857 else
    2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2859 for as_dir in $PATH
    2860 do
    2861   IFS=$as_save_IFS
    2862   test -z "$as_dir" && as_dir=.
    2863   for ac_exec_ext in '' $ac_executable_extensions; do
    2864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    2865     ac_cv_prog_ac_ct_RANLIB="ranlib"
    2866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2867     break 2
    2868   fi
    2869 done
    2870 done
    2871 IFS=$as_save_IFS
    2872 
    2873 fi
    2874 fi
    2875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2876 if test -n "$ac_ct_RANLIB"; then
    2877   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    2878 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
    2879 else
    2880   { echo "$as_me:$LINENO: result: no" >&5
    2881 echo "${ECHO_T}no" >&6; }
    2882 fi
    2883 
    2884   if test "x$ac_ct_RANLIB" = x; then
    2885     RANLIB=":"
    2886   else
    2887     case $cross_compiling:$ac_tool_warned in
    2888 yes:)
    2889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    2890 whose name does not start with the host triplet.  If you think this
    2891 configuration is useful to you, please write to autoconf@gnu.org." >&5
    2892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    2893 whose name does not start with the host triplet.  If you think this
    2894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
    2895 ac_tool_warned=yes ;;
    2896 esac
    2897     RANLIB=$ac_ct_RANLIB
    2898   fi
    2899 else
    2900   RANLIB="$ac_cv_prog_RANLIB"
    2901 fi
    29023043
    29033044
     
    29163057    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    29173058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     3060$as_echo_n "checking for $ac_word... " >&6; }
    29203061if test "${ac_cv_prog_CXX+set}" = set; then
    2921   echo $ECHO_N "(cached) $ECHO_C" >&6
     3062  $as_echo_n "(cached) " >&6
    29223063else
    29233064  if test -n "$CXX"; then
     
    29323073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    29333074    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    2934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3075    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    29353076    break 2
    29363077  fi
     
    29433084CXX=$ac_cv_prog_CXX
    29443085if test -n "$CXX"; then
    2945   { echo "$as_me:$LINENO: result: $CXX" >&5
    2946 echo "${ECHO_T}$CXX" >&6; }
    2947 else
    2948   { echo "$as_me:$LINENO: result: no" >&5
    2949 echo "${ECHO_T}no" >&6; }
     3086  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
     3087$as_echo "$CXX" >&6; }
     3088else
     3089  { $as_echo "$as_me:$LINENO: result: no" >&5
     3090$as_echo "no" >&6; }
    29503091fi
    29513092
     
    29603101  # Extract the first word of "$ac_prog", so it can be a program name with args.
    29613102set dummy $ac_prog; ac_word=$2
    2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3103{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     3104$as_echo_n "checking for $ac_word... " >&6; }
    29643105if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    2965   echo $ECHO_N "(cached) $ECHO_C" >&6
     3106  $as_echo_n "(cached) " >&6
    29663107else
    29673108  if test -n "$ac_ct_CXX"; then
     
    29763117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    29773118    ac_cv_prog_ac_ct_CXX="$ac_prog"
    2978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3119    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    29793120    break 2
    29803121  fi
     
    29873128ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    29883129if test -n "$ac_ct_CXX"; then
    2989   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    2990 echo "${ECHO_T}$ac_ct_CXX" >&6; }
    2991 else
    2992   { echo "$as_me:$LINENO: result: no" >&5
    2993 echo "${ECHO_T}no" >&6; }
     3130  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     3131$as_echo "$ac_ct_CXX" >&6; }
     3132else
     3133  { $as_echo "$as_me:$LINENO: result: no" >&5
     3134$as_echo "no" >&6; }
    29943135fi
    29953136
     
    30033144    case $cross_compiling:$ac_tool_warned in
    30043145yes:)
    3005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     3146{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    30063147whose name does not start with the host triplet.  If you think this
    30073148configuration is useful to you, please write to autoconf@gnu.org." >&5
    3008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     3149$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    30093150whose name does not start with the host triplet.  If you think this
    30103151configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     
    30183159fi
    30193160# Provide some information about the compiler.
    3020 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
    3021 ac_compiler=`set X $ac_compile; echo $2`
     3161$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
     3162set X $ac_compile
     3163ac_compiler=$2
    30223164{ (ac_try="$ac_compiler --version >&5"
    30233165case "(($ac_try" in
     
    30253167  *) ac_try_echo=$ac_try;;
    30263168esac
    3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3170$as_echo "$ac_try_echo") >&5
    30283171  (eval "$ac_compiler --version >&5") 2>&5
    30293172  ac_status=$?
    3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30313174  (exit $ac_status); }
    30323175{ (ac_try="$ac_compiler -v >&5"
     
    30353178  *) ac_try_echo=$ac_try;;
    30363179esac
    3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3181$as_echo "$ac_try_echo") >&5
    30383182  (eval "$ac_compiler -v >&5") 2>&5
    30393183  ac_status=$?
    3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30413185  (exit $ac_status); }
    30423186{ (ac_try="$ac_compiler -V >&5"
     
    30453189  *) ac_try_echo=$ac_try;;
    30463190esac
    3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3192$as_echo "$ac_try_echo") >&5
    30483193  (eval "$ac_compiler -V >&5") 2>&5
    30493194  ac_status=$?
    3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30513196  (exit $ac_status); }
    30523197
    3053 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    3054 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
     3198{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     3199$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    30553200if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    3056   echo $ECHO_N "(cached) $ECHO_C" >&6
     3201  $as_echo_n "(cached) " >&6
    30573202else
    30583203  cat >conftest.$ac_ext <<_ACEOF
     
    30803225  *) ac_try_echo=$ac_try;;
    30813226esac
    3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3228$as_echo "$ac_try_echo") >&5
    30833229  (eval "$ac_compile") 2>conftest.er1
    30843230  ac_status=$?
     
    30863232  rm -f conftest.er1
    30873233  cat conftest.err >&5
    3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30893235  (exit $ac_status); } && {
    30903236         test -z "$ac_cxx_werror_flag" ||
     
    30933239  ac_compiler_gnu=yes
    30943240else
    3095   echo "$as_me: failed program was:" >&5
     3241  $as_echo "$as_me: failed program was:" >&5
    30963242sed 's/^/| /' conftest.$ac_ext >&5
    30973243
     
    31033249
    31043250fi
    3105 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    3106 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
    3107 GXX=`test $ac_compiler_gnu = yes && echo yes`
     3251{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     3252$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     3253if test $ac_compiler_gnu = yes; then
     3254  GXX=yes
     3255else
     3256  GXX=
     3257fi
    31083258ac_test_CXXFLAGS=${CXXFLAGS+set}
    31093259ac_save_CXXFLAGS=$CXXFLAGS
    3110 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    3111 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
     3260{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     3261$as_echo_n "checking whether $CXX accepts -g... " >&6; }
    31123262if test "${ac_cv_prog_cxx_g+set}" = set; then
    3113   echo $ECHO_N "(cached) $ECHO_C" >&6
     3263  $as_echo_n "(cached) " >&6
    31143264else
    31153265  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     
    31383288  *) ac_try_echo=$ac_try;;
    31393289esac
    3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3291$as_echo "$ac_try_echo") >&5
    31413292  (eval "$ac_compile") 2>conftest.er1
    31423293  ac_status=$?
     
    31443295  rm -f conftest.er1
    31453296  cat conftest.err >&5
    3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31473298  (exit $ac_status); } && {
    31483299         test -z "$ac_cxx_werror_flag" ||
     
    31513302  ac_cv_prog_cxx_g=yes
    31523303else
    3153   echo "$as_me: failed program was:" >&5
     3304  $as_echo "$as_me: failed program was:" >&5
    31543305sed 's/^/| /' conftest.$ac_ext >&5
    31553306
     
    31763327  *) ac_try_echo=$ac_try;;
    31773328esac
    3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3330$as_echo "$ac_try_echo") >&5
    31793331  (eval "$ac_compile") 2>conftest.er1
    31803332  ac_status=$?
     
    31823334  rm -f conftest.er1
    31833335  cat conftest.err >&5
    3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31853337  (exit $ac_status); } && {
    31863338         test -z "$ac_cxx_werror_flag" ||
     
    31893341  :
    31903342else
    3191   echo "$as_me: failed program was:" >&5
     3343  $as_echo "$as_me: failed program was:" >&5
    31923344sed 's/^/| /' conftest.$ac_ext >&5
    31933345
     
    32153367  *) ac_try_echo=$ac_try;;
    32163368esac
    3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3370$as_echo "$ac_try_echo") >&5
    32183371  (eval "$ac_compile") 2>conftest.er1
    32193372  ac_status=$?
     
    32213374  rm -f conftest.er1
    32223375  cat conftest.err >&5
    3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32243377  (exit $ac_status); } && {
    32253378         test -z "$ac_cxx_werror_flag" ||
     
    32283381  ac_cv_prog_cxx_g=yes
    32293382else
    3230   echo "$as_me: failed program was:" >&5
     3383  $as_echo "$as_me: failed program was:" >&5
    32313384sed 's/^/| /' conftest.$ac_ext >&5
    32323385
     
    32433396   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    32443397fi
    3245 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    3246 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
     3398{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     3399$as_echo "$ac_cv_prog_cxx_g" >&6; }
    32473400if test "$ac_test_CXXFLAGS" = set; then
    32483401  CXXFLAGS=$ac_save_CXXFLAGS
     
    32793432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    32803433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    3281 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
    3282 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
     3434{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
     3435$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
    32833436if test -z "$CXXCPP"; then
    32843437  if test "${ac_cv_prog_CXXCPP+set}" = set; then
    3285   echo $ECHO_N "(cached) $ECHO_C" >&6
     3438  $as_echo_n "(cached) " >&6
    32863439else
    32873440      # Double quotes because CXXCPP needs to be expanded
     
    33153468  *) ac_try_echo=$ac_try;;
    33163469esac
    3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3471$as_echo "$ac_try_echo") >&5
    33183472  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    33193473  ac_status=$?
     
    33213475  rm -f conftest.er1
    33223476  cat conftest.err >&5
    3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33243478  (exit $ac_status); } >/dev/null && {
    33253479         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     
    33283482  :
    33293483else
    3330   echo "$as_me: failed program was:" >&5
     3484  $as_echo "$as_me: failed program was:" >&5
    33313485sed 's/^/| /' conftest.$ac_ext >&5
    33323486
     
    33523506  *) ac_try_echo=$ac_try;;
    33533507esac
    3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3509$as_echo "$ac_try_echo") >&5
    33553510  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    33563511  ac_status=$?
     
    33583513  rm -f conftest.er1
    33593514  cat conftest.err >&5
    3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33613516  (exit $ac_status); } >/dev/null && {
    33623517         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     
    33663521continue
    33673522else
    3368   echo "$as_me: failed program was:" >&5
     3523  $as_echo "$as_me: failed program was:" >&5
    33693524sed 's/^/| /' conftest.$ac_ext >&5
    33703525
     
    33913546  ac_cv_prog_CXXCPP=$CXXCPP
    33923547fi
    3393 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
    3394 echo "${ECHO_T}$CXXCPP" >&6; }
     3548{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
     3549$as_echo "$CXXCPP" >&6; }
    33953550ac_preproc_ok=false
    33963551for ac_cxx_preproc_warn_flag in '' yes
     
    34203575  *) ac_try_echo=$ac_try;;
    34213576esac
    3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3578$as_echo "$ac_try_echo") >&5
    34233579  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    34243580  ac_status=$?
     
    34263582  rm -f conftest.er1
    34273583  cat conftest.err >&5
    3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3584  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    34293585  (exit $ac_status); } >/dev/null && {
    34303586         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     
    34333589  :
    34343590else
    3435   echo "$as_me: failed program was:" >&5
     3591  $as_echo "$as_me: failed program was:" >&5
    34363592sed 's/^/| /' conftest.$ac_ext >&5
    34373593
     
    34573613  *) ac_try_echo=$ac_try;;
    34583614esac
    3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3616$as_echo "$ac_try_echo") >&5
    34603617  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    34613618  ac_status=$?
     
    34633620  rm -f conftest.er1
    34643621  cat conftest.err >&5
    3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    34663623  (exit $ac_status); } >/dev/null && {
    34673624         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     
    34713628continue
    34723629else
    3473   echo "$as_me: failed program was:" >&5
     3630  $as_echo "$as_me: failed program was:" >&5
    34743631sed 's/^/| /' conftest.$ac_ext >&5
    34753632
     
    34873644  :
    34883645else
    3489   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     3646  { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    34903647See \`config.log' for more details." >&5
    3491 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     3648$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    34923649See \`config.log' for more details." >&2;}
    34933650   { (exit 1); exit 1; }; }
     
    35013658
    35023659
    3503 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
    3504 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
     3660{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
     3661$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    35053662if test "${ac_cv_path_GREP+set}" = set; then
    3506   echo $ECHO_N "(cached) $ECHO_C" >&6
    3507 else
    3508   # Extract the first word of "grep ggrep" to use in msg output
    3509 if test -z "$GREP"; then
    3510 set dummy grep ggrep; ac_prog_name=$2
    3511 if test "${ac_cv_path_GREP+set}" = set; then
    3512   echo $ECHO_N "(cached) $ECHO_C" >&6
    3513 else
     3663  $as_echo_n "(cached) " >&6
     3664else
     3665  if test -z "$GREP"; then
    35143666  ac_path_GREP_found=false
    3515 # Loop through the user's path and test for each of PROGNAME-LIST
    3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3667  # Loop through the user's path and test for each of PROGNAME-LIST
     3668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    35173669for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    35183670do
     
    35203672  test -z "$as_dir" && as_dir=.
    35213673  for ac_prog in grep ggrep; do
    3522   for ac_exec_ext in '' $ac_executable_extensions; do
    3523     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    3524     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    3525     # Check for GNU ac_path_GREP and select it if it is found.
     3674    for ac_exec_ext in '' $ac_executable_extensions; do
     3675      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     3676      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     3677# Check for GNU ac_path_GREP and select it if it is found.
    35263678  # Check for GNU $ac_path_GREP
    35273679case `"$ac_path_GREP" --version 2>&1` in
     
    35303682*)
    35313683  ac_count=0
    3532   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
     3684  $as_echo_n 0123456789 >"conftest.in"
    35333685  while :
    35343686  do
     
    35363688    mv "conftest.tmp" "conftest.in"
    35373689    cp "conftest.in" "conftest.nl"
    3538     echo 'GREP' >> "conftest.nl"
     3690    $as_echo 'GREP' >> "conftest.nl"
    35393691    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    35403692    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     
    35513703esac
    35523704
    3553 
    3554     $ac_path_GREP_found && break 3
     3705      $ac_path_GREP_found && break 3
     3706    done
    35553707  done
    35563708done
    3557 
    3558 done
    35593709IFS=$as_save_IFS
    3560 
    3561 
    3562 fi
    3563 
    3564 GREP="$ac_cv_path_GREP"
    3565 if test -z "$GREP"; then
    3566   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    3567 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     3710  if test -z "$ac_cv_path_GREP"; then
     3711    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     3712$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
    35683713   { (exit 1); exit 1; }; }
    3569 fi
    3570 
     3714  fi
    35713715else
    35723716  ac_cv_path_GREP=$GREP
    35733717fi
    35743718
    3575 
    3576 fi
    3577 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
    3578 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
     3719fi
     3720{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
     3721$as_echo "$ac_cv_path_GREP" >&6; }
    35793722 GREP="$ac_cv_path_GREP"
    35803723
    35813724
    3582 { echo "$as_me:$LINENO: checking for egrep" >&5
    3583 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
     3725{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
     3726$as_echo_n "checking for egrep... " >&6; }
    35843727if test "${ac_cv_path_EGREP+set}" = set; then
    3585   echo $ECHO_N "(cached) $ECHO_C" >&6
     3728  $as_echo_n "(cached) " >&6
    35863729else
    35873730  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
    35883731   then ac_cv_path_EGREP="$GREP -E"
    35893732   else
    3590      # Extract the first word of "egrep" to use in msg output
    3591 if test -z "$EGREP"; then
    3592 set dummy egrep; ac_prog_name=$2
    3593 if test "${ac_cv_path_EGREP+set}" = set; then
    3594   echo $ECHO_N "(cached) $ECHO_C" >&6
    3595 else
     3733     if test -z "$EGREP"; then
    35963734  ac_path_EGREP_found=false
    3597 # Loop through the user's path and test for each of PROGNAME-LIST
    3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3735  # Loop through the user's path and test for each of PROGNAME-LIST
     3736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    35993737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    36003738do
     
    36023740  test -z "$as_dir" && as_dir=.
    36033741  for ac_prog in egrep; do
    3604   for ac_exec_ext in '' $ac_executable_extensions; do
    3605     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    3606     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    3607     # Check for GNU ac_path_EGREP and select it if it is found.
     3742    for ac_exec_ext in '' $ac_executable_extensions; do
     3743      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     3744      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     3745# Check for GNU ac_path_EGREP and select it if it is found.
    36083746  # Check for GNU $ac_path_EGREP
    36093747case `"$ac_path_EGREP" --version 2>&1` in
     
    36123750*)
    36133751  ac_count=0
    3614   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
     3752  $as_echo_n 0123456789 >"conftest.in"
    36153753  while :
    36163754  do
     
    36183756    mv "conftest.tmp" "conftest.in"
    36193757    cp "conftest.in" "conftest.nl"
    3620     echo 'EGREP' >> "conftest.nl"
     3758    $as_echo 'EGREP' >> "conftest.nl"
    36213759    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    36223760    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     
    36333771esac
    36343772
    3635 
    3636     $ac_path_EGREP_found && break 3
     3773      $ac_path_EGREP_found && break 3
     3774    done
    36373775  done
    36383776done
    3639 
    3640 done
    36413777IFS=$as_save_IFS
    3642 
    3643 
    3644 fi
    3645 
    3646 EGREP="$ac_cv_path_EGREP"
    3647 if test -z "$EGREP"; then
    3648   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    3649 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     3778  if test -z "$ac_cv_path_EGREP"; then
     3779    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     3780$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
    36503781   { (exit 1); exit 1; }; }
    3651 fi
    3652 
     3782  fi
    36533783else
    36543784  ac_cv_path_EGREP=$EGREP
    36553785fi
    36563786
    3657 
    36583787   fi
    36593788fi
    3660 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
    3661 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
     3789{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
     3790$as_echo "$ac_cv_path_EGREP" >&6; }
    36623791 EGREP="$ac_cv_path_EGREP"
    36633792
    36643793
    3665 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3666 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
     3794{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3795$as_echo_n "checking for ANSI C header files... " >&6; }
    36673796if test "${ac_cv_header_stdc+set}" = set; then
    3668   echo $ECHO_N "(cached) $ECHO_C" >&6
     3797  $as_echo_n "(cached) " >&6
    36693798else
    36703799  cat >conftest.$ac_ext <<_ACEOF
     
    36933822  *) ac_try_echo=$ac_try;;
    36943823esac
    3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3825$as_echo "$ac_try_echo") >&5
    36963826  (eval "$ac_compile") 2>conftest.er1
    36973827  ac_status=$?
     
    36993829  rm -f conftest.er1
    37003830  cat conftest.err >&5
    3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    37023832  (exit $ac_status); } && {
    37033833         test -z "$ac_cxx_werror_flag" ||
     
    37063836  ac_cv_header_stdc=yes
    37073837else
    3708   echo "$as_me: failed program was:" >&5
     3838  $as_echo "$as_me: failed program was:" >&5
    37093839sed 's/^/| /' conftest.$ac_ext >&5
    37103840
     
    37983928  *) ac_try_echo=$ac_try;;
    37993929esac
    3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3931$as_echo "$ac_try_echo") >&5
    38013932  (eval "$ac_link") 2>&5
    38023933  ac_status=$?
    3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38043935  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    38053936  { (case "(($ac_try" in
     
    38073938  *) ac_try_echo=$ac_try;;
    38083939esac
    3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3941$as_echo "$ac_try_echo") >&5
    38103942  (eval "$ac_try") 2>&5
    38113943  ac_status=$?
    3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38133945  (exit $ac_status); }; }; then
    38143946  :
    38153947else
    3816   echo "$as_me: program exited with status $ac_status" >&5
    3817 echo "$as_me: failed program was:" >&5
     3948  $as_echo "$as_me: program exited with status $ac_status" >&5
     3949$as_echo "$as_me: failed program was:" >&5
    38183950sed 's/^/| /' conftest.$ac_ext >&5
    38193951
     
    38213953ac_cv_header_stdc=no
    38223954fi
     3955rm -rf conftest.dSYM
    38233956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    38243957fi
     
    38273960fi
    38283961fi
    3829 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3830 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
     3962{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3963$as_echo "$ac_cv_header_stdc" >&6; }
    38313964if test $ac_cv_header_stdc = yes; then
    38323965
     
    38503983                  inttypes.h stdint.h unistd.h
    38513984do
    3852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
    3854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     3985as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3986{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     3987$as_echo_n "checking for $ac_header... " >&6; }
    38553988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    3856   echo $ECHO_N "(cached) $ECHO_C" >&6
     3989  $as_echo_n "(cached) " >&6
    38573990else
    38583991  cat >conftest.$ac_ext <<_ACEOF
     
    38724005  *) ac_try_echo=$ac_try;;
    38734006esac
    3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4008$as_echo "$ac_try_echo") >&5
    38754009  (eval "$ac_compile") 2>conftest.er1
    38764010  ac_status=$?
     
    38784012  rm -f conftest.er1
    38794013  cat conftest.err >&5
    3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38814015  (exit $ac_status); } && {
    38824016         test -z "$ac_cxx_werror_flag" ||
     
    38854019  eval "$as_ac_Header=yes"
    38864020else
    3887   echo "$as_me: failed program was:" >&5
     4021  $as_echo "$as_me: failed program was:" >&5
    38884022sed 's/^/| /' conftest.$ac_ext >&5
    38894023
     
    38934027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    38944028fi
    3895 ac_res=`eval echo '${'$as_ac_Header'}'`
    3896                { echo "$as_me:$LINENO: result: $ac_res" >&5
    3897 echo "${ECHO_T}$ac_res" >&6; }
    3898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4029ac_res=`eval 'as_val=${'$as_ac_Header'}
     4030                 $as_echo "$as_val"'`
     4031               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     4032$as_echo "$ac_res" >&6; }
     4033if test `eval 'as_val=${'$as_ac_Header'}
     4034                 $as_echo "$as_val"'` = yes; then
    38994035  cat >>confdefs.h <<_ACEOF
    3900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4036#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    39014037_ACEOF
    39024038
     
    39064042
    39074043
    3908 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    3909 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
     4044{ $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
     4045$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
    39104046if test "${ac_cv_c_bigendian+set}" = set; then
    3911   echo $ECHO_N "(cached) $ECHO_C" >&6
     4047  $as_echo_n "(cached) " >&6
    39124048else
    39134049  # See if sys/param.h defines the BYTE_ORDER macro.
     
    39394075  *) ac_try_echo=$ac_try;;
    39404076esac
    3941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4078$as_echo "$ac_try_echo") >&5
    39424079  (eval "$ac_compile") 2>conftest.er1
    39434080  ac_status=$?
     
    39454082  rm -f conftest.er1
    39464083  cat conftest.err >&5
    3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39484085  (exit $ac_status); } && {
    39494086         test -z "$ac_cxx_werror_flag" ||
     
    39774114  *) ac_try_echo=$ac_try;;
    39784115esac
    3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4117$as_echo "$ac_try_echo") >&5
    39804118  (eval "$ac_compile") 2>conftest.er1
    39814119  ac_status=$?
     
    39834121  rm -f conftest.er1
    39844122  cat conftest.err >&5
    3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39864124  (exit $ac_status); } && {
    39874125         test -z "$ac_cxx_werror_flag" ||
     
    39904128  ac_cv_c_bigendian=yes
    39914129else
    3992   echo "$as_me: failed program was:" >&5
     4130  $as_echo "$as_me: failed program was:" >&5
    39934131sed 's/^/| /' conftest.$ac_ext >&5
    39944132
     
    39984136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    39994137else
    4000   echo "$as_me: failed program was:" >&5
     4138  $as_echo "$as_me: failed program was:" >&5
    40014139sed 's/^/| /' conftest.$ac_ext >&5
    40024140
     
    40314169  *) ac_try_echo=$ac_try;;
    40324170esac
    4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4172$as_echo "$ac_try_echo") >&5
    40344173  (eval "$ac_compile") 2>conftest.er1
    40354174  ac_status=$?
     
    40374176  rm -f conftest.er1
    40384177  cat conftest.err >&5
    4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40404179  (exit $ac_status); } && {
    40414180         test -z "$ac_cxx_werror_flag" ||
     
    40544193fi
    40554194else
    4056   echo "$as_me: failed program was:" >&5
     4195  $as_echo "$as_me: failed program was:" >&5
    40574196sed 's/^/| /' conftest.$ac_ext >&5
    40584197
     
    40924231  *) ac_try_echo=$ac_try;;
    40934232esac
    4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4234$as_echo "$ac_try_echo") >&5
    40954235  (eval "$ac_link") 2>&5
    40964236  ac_status=$?
    4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40984238  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    40994239  { (case "(($ac_try" in
     
    41014241  *) ac_try_echo=$ac_try;;
    41024242esac
    4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4244$as_echo "$ac_try_echo") >&5
    41044245  (eval "$ac_try") 2>&5
    41054246  ac_status=$?
    4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41074248  (exit $ac_status); }; }; then
    41084249  ac_cv_c_bigendian=no
    41094250else
    4110   echo "$as_me: program exited with status $ac_status" >&5
    4111 echo "$as_me: failed program was:" >&5
     4251  $as_echo "$as_me: program exited with status $ac_status" >&5
     4252$as_echo "$as_me: failed program was:" >&5
    41124253sed 's/^/| /' conftest.$ac_ext >&5
    41134254
     
    41154256ac_cv_c_bigendian=yes
    41164257fi
     4258rm -rf conftest.dSYM
    41174259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    41184260fi
     
    41234265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    41244266fi
    4125 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    4126 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
     4267{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
     4268$as_echo "$ac_cv_c_bigendian" >&6; }
    41274269case $ac_cv_c_bigendian in
    41284270  yes)
     
    41354277     ;;
    41364278  *)
    4137     { { echo "$as_me:$LINENO: error: unknown endianness
     4279    { { $as_echo "$as_me:$LINENO: error: unknown endianness
    41384280presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    4139 echo "$as_me: error: unknown endianness
     4281$as_echo "$as_me: error: unknown endianness
    41404282presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    41414283   { (exit 1); exit 1; }; } ;;
     
    41554297
    41564298
     4299#
     4300# Need to check for the following dependencies:
     4301#       Rappture headers and library (done)
     4302#       Tcl headers and library (done)
     4303#       GL headers and library
     4304#       GLuT headers and library
     4305#       GLui header and library
     4306#       GLEW header and library
     4307#       Cg headers and library
     4308#       CgGL headers and library
     4309#       pthread library
     4310#       DX headers and library (done, sort of)
     4311#
     4312
    41574313TCL_LIB_DIR=""
    41584314TCL_LIB=""
    41594315TCL_LIB_VERSION=""
    4160 { echo "$as_me:$LINENO: checking for tcl binary libraries" >&5
    4161 echo $ECHO_N "checking for tcl binary libraries... $ECHO_C" >&6; }
     4316{ $as_echo "$as_me:$LINENO: checking for tcl binary libraries" >&5
     4317$as_echo_n "checking for tcl binary libraries... " >&6; }
    41624318if test "x$with_tcllib" != "x" ; then
    41634319    if test -f "$with_tcllib"
     
    41744330                TCL_LIB_DIR="$with_tcllib"
    41754331            else
    4176                 { echo "$as_me:$LINENO: result: no" >&5
    4177 echo "${ECHO_T}no" >&6; }
    4178                 { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries, try using --with-tcllib" >&5
    4179 echo "$as_me: error: cannot find tcl binary libraries, try using --with-tcllib" >&2;}
     4332                { $as_echo "$as_me:$LINENO: result: no" >&5
     4333$as_echo "no" >&6; }
     4334                { { $as_echo "$as_me:$LINENO: error: cannot find tcl binary libraries, try using --with-tcllib" >&5
     4335$as_echo "$as_me: error: cannot find tcl binary libraries, try using --with-tcllib" >&2;}
    41804336   { (exit 1); exit 1; }; }
    41814337            fi
    41824338        else
    4183             { echo "$as_me:$LINENO: result: no" >&5
    4184 echo "${ECHO_T}no" >&6; }
    4185             { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&5
    4186 echo "$as_me: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&2;}
     4339            { $as_echo "$as_me:$LINENO: result: no" >&5
     4340$as_echo "no" >&6; }
     4341            { { $as_echo "$as_me:$LINENO: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&5
     4342$as_echo "$as_me: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&2;}
    41874343   { (exit 1); exit 1; }; }
    41884344        fi
     
    41924348for ac_header in tcl.h
    41934349do
    4194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4350as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    41954351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4196   { echo "$as_me:$LINENO: checking for $ac_header" >&5
    4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4352  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     4353$as_echo_n "checking for $ac_header... " >&6; }
    41984354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4199   echo $ECHO_N "(cached) $ECHO_C" >&6
    4200 fi
    4201 ac_res=`eval echo '${'$as_ac_Header'}'`
    4202                { echo "$as_me:$LINENO: result: $ac_res" >&5
    4203 echo "${ECHO_T}$ac_res" >&6; }
     4355  $as_echo_n "(cached) " >&6
     4356fi
     4357ac_res=`eval 'as_val=${'$as_ac_Header'}
     4358                 $as_echo "$as_val"'`
     4359               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     4360$as_echo "$ac_res" >&6; }
    42044361else
    42054362  # Is the header compilable?
    4206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
     4363{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4364$as_echo_n "checking $ac_header usability... " >&6; }
    42084365cat >conftest.$ac_ext <<_ACEOF
    42094366/* confdefs.h.  */
     
    42214378  *) ac_try_echo=$ac_try;;
    42224379esac
    4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4381$as_echo "$ac_try_echo") >&5
    42244382  (eval "$ac_compile") 2>conftest.er1
    42254383  ac_status=$?
     
    42274385  rm -f conftest.er1
    42284386  cat conftest.err >&5
    4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42304388  (exit $ac_status); } && {
    42314389         test -z "$ac_cxx_werror_flag" ||
     
    42344392  ac_header_compiler=yes
    42354393else
    4236   echo "$as_me: failed program was:" >&5
     4394  $as_echo "$as_me: failed program was:" >&5
    42374395sed 's/^/| /' conftest.$ac_ext >&5
    42384396
     
    42414399
    42424400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4244 echo "${ECHO_T}$ac_header_compiler" >&6; }
     4401{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4402$as_echo "$ac_header_compiler" >&6; }
    42454403
    42464404# Is the header present?
    4247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
     4405{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4406$as_echo_n "checking $ac_header presence... " >&6; }
    42494407cat >conftest.$ac_ext <<_ACEOF
    42504408/* confdefs.h.  */
     
    42604418  *) ac_try_echo=$ac_try;;
    42614419esac
    4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4421$as_echo "$ac_try_echo") >&5
    42634422  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    42644423  ac_status=$?
     
    42664425  rm -f conftest.er1
    42674426  cat conftest.err >&5
    4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4427  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42694428  (exit $ac_status); } >/dev/null && {
    42704429         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     
    42734432  ac_header_preproc=yes
    42744433else
    4275   echo "$as_me: failed program was:" >&5
     4434  $as_echo "$as_me: failed program was:" >&5
    42764435sed 's/^/| /' conftest.$ac_ext >&5
    42774436
     
    42804439
    42814440rm -f conftest.err conftest.$ac_ext
    4282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4283 echo "${ECHO_T}$ac_header_preproc" >&6; }
     4441{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4442$as_echo "$ac_header_preproc" >&6; }
    42844443
    42854444# So?  What about this header?
    42864445case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    42874446  yes:no: )
    4288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    4289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    4291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4447    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4448$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4449    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4450$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    42924451    ac_header_preproc=yes
    42934452    ;;
    42944453  no:yes:* )
    4295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    4296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    4298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    4299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    4300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    4301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    4302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    4303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    4306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4455$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4456    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4457$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4458    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4459$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4460    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4461$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4462    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4463$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4464    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4465$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    43074466    ( cat <<\_ASBOX
    43084467## ----------------------------------- ##
     
    43134472    ;;
    43144473esac
    4315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
    4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4474{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     4475$as_echo_n "checking for $ac_header... " >&6; }
    43174476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4318   echo $ECHO_N "(cached) $ECHO_C" >&6
     4477  $as_echo_n "(cached) " >&6
    43194478else
    43204479  eval "$as_ac_Header=\$ac_header_preproc"
    43214480fi
    4322 ac_res=`eval echo '${'$as_ac_Header'}'`
    4323                { echo "$as_me:$LINENO: result: $ac_res" >&5
    4324 echo "${ECHO_T}$ac_res" >&6; }
    4325 
    4326 fi
    4327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4481ac_res=`eval 'as_val=${'$as_ac_Header'}
     4482                 $as_echo "$as_val"'`
     4483               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     4484$as_echo "$ac_res" >&6; }
     4485
     4486fi
     4487if test `eval 'as_val=${'$as_ac_Header'}
     4488                 $as_echo "$as_val"'` = yes; then
    43284489  cat >>confdefs.h <<_ACEOF
    4329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4330 _ACEOF
    4331 
    4332 else
    4333   { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
    4334 echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
     4490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4491_ACEOF
     4492
     4493else
     4494  { { $as_echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
     4495$as_echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
    43354496   { (exit 1); exit 1; }; }
    43364497fi
     
    43434504# TCL_LIB=`ls ${TCL_LIB_DIR} | sed -e '/libtcl([0-9]\.?[0-9])?\.so$/ {p}'`
    43444505# TCL_LIB_VERSION=$(echo ${TCL_LIB} | sed -e s/libtcl// -e s/\.so//)
    4345 { echo "$as_me:$LINENO: result: ${TCL_LIB_DIR}/${TCL_LIB}" >&5
    4346 echo "${ECHO_T}${TCL_LIB_DIR}/${TCL_LIB}" >&6; }
     4506{ $as_echo "$as_me:$LINENO: result: ${TCL_LIB_DIR}/${TCL_LIB}" >&5
     4507$as_echo "${TCL_LIB_DIR}/${TCL_LIB}" >&6; }
    43474508# echo TCL_LIB_DIR = ${TCL_LIB_DIR}
    43484509# echo TCL_LIB = ${TCL_LIB}
     
    43624523
    43634524TCL_INCL_DIR=""
    4364 { echo "$as_me:$LINENO: checking for tcl.h" >&5
    4365 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
     4525{ $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
     4526$as_echo_n "checking for tcl.h... " >&6; }
    43664527if test "x$with_tclinclude" != "x" ; then
    43674528    if test -f "$with_tclinclude"
     
    43824543                    TCL_INCL_DIR="$with_tclinclude/tcl${TCL_LIB_VERSION}"
    43834544                else
    4384                     { echo "$as_me:$LINENO: result: no" >&5
    4385 echo "${ECHO_T}no" >&6; }
    4386                     { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
    4387 echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
     4545                    { $as_echo "$as_me:$LINENO: result: no" >&5
     4546$as_echo "no" >&6; }
     4547                    { { $as_echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
     4548$as_echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
    43884549   { (exit 1); exit 1; }; }
    43894550                fi
    43904551            fi
    43914552        else
    4392             { echo "$as_me:$LINENO: result: no" >&5
    4393 echo "${ECHO_T}no" >&6; }
    4394             { { echo "$as_me:$LINENO: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&5
    4395 echo "$as_me: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&2;}
     4553            { $as_echo "$as_me:$LINENO: result: no" >&5
     4554$as_echo "no" >&6; }
     4555            { { $as_echo "$as_me:$LINENO: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&5
     4556$as_echo "$as_me: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&2;}
    43964557   { (exit 1); exit 1; }; }
    43974558        fi
     
    44014562for ac_header in tcl.h
    44024563do
    4403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4564as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    44044565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4405   { echo "$as_me:$LINENO: checking for $ac_header" >&5
    4406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4566  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     4567$as_echo_n "checking for $ac_header... " >&6; }
    44074568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4408   echo $ECHO_N "(cached) $ECHO_C" >&6
    4409 fi
    4410 ac_res=`eval echo '${'$as_ac_Header'}'`
    4411                { echo "$as_me:$LINENO: result: $ac_res" >&5
    4412 echo "${ECHO_T}$ac_res" >&6; }
     4569  $as_echo_n "(cached) " >&6
     4570fi
     4571ac_res=`eval 'as_val=${'$as_ac_Header'}
     4572                 $as_echo "$as_val"'`
     4573               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     4574$as_echo "$ac_res" >&6; }
    44134575else
    44144576  # Is the header compilable?
    4415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
     4577{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4578$as_echo_n "checking $ac_header usability... " >&6; }
    44174579cat >conftest.$ac_ext <<_ACEOF
    44184580/* confdefs.h.  */
     
    44304592  *) ac_try_echo=$ac_try;;
    44314593esac
    4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4595$as_echo "$ac_try_echo") >&5
    44334596  (eval "$ac_compile") 2>conftest.er1
    44344597  ac_status=$?
     
    44364599  rm -f conftest.er1
    44374600  cat conftest.err >&5
    4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4601  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44394602  (exit $ac_status); } && {
    44404603         test -z "$ac_cxx_werror_flag" ||
     
    44434606  ac_header_compiler=yes
    44444607else
    4445   echo "$as_me: failed program was:" >&5
     4608  $as_echo "$as_me: failed program was:" >&5
    44464609sed 's/^/| /' conftest.$ac_ext >&5
    44474610
     
    44504613
    44514614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4453 echo "${ECHO_T}$ac_header_compiler" >&6; }
     4615{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4616$as_echo "$ac_header_compiler" >&6; }
    44544617
    44554618# Is the header present?
    4456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
     4619{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4620$as_echo_n "checking $ac_header presence... " >&6; }
    44584621cat >conftest.$ac_ext <<_ACEOF
    44594622/* confdefs.h.  */
     
    44694632  *) ac_try_echo=$ac_try;;
    44704633esac
    4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4635$as_echo "$ac_try_echo") >&5
    44724636  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    44734637  ac_status=$?
     
    44754639  rm -f conftest.er1
    44764640  cat conftest.err >&5
    4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44784642  (exit $ac_status); } >/dev/null && {
    44794643         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     
    44824646  ac_header_preproc=yes
    44834647else
    4484   echo "$as_me: failed program was:" >&5
     4648  $as_echo "$as_me: failed program was:" >&5
    44854649sed 's/^/| /' conftest.$ac_ext >&5
    44864650
     
    44894653
    44904654rm -f conftest.err conftest.$ac_ext
    4491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4492 echo "${ECHO_T}$ac_header_preproc" >&6; }
     4655{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4656$as_echo "$ac_header_preproc" >&6; }
    44934657
    44944658# So?  What about this header?
    44954659case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    44964660  yes:no: )
    4497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    4498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    4500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4661    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4662$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4663    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4664$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    45014665    ac_header_preproc=yes
    45024666    ;;
    45034667  no:yes:* )
    4504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    4505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4506     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    4507 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    4508     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    4509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    4510     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    4511 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    4512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4514     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    4515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4668    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4669$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4670    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4671$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4672    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4673$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4674    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4675$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4676    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4677$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4678    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4679$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    45164680    ( cat <<\_ASBOX
    45174681## ----------------------------------- ##
     
    45224686    ;;
    45234687esac
    4524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
    4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4688{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     4689$as_echo_n "checking for $ac_header... " >&6; }
    45264690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4527   echo $ECHO_N "(cached) $ECHO_C" >&6
     4691  $as_echo_n "(cached) " >&6
    45284692else
    45294693  eval "$as_ac_Header=\$ac_header_preproc"
    45304694fi
    4531 ac_res=`eval echo '${'$as_ac_Header'}'`
    4532                { echo "$as_me:$LINENO: result: $ac_res" >&5
    4533 echo "${ECHO_T}$ac_res" >&6; }
    4534 
    4535 fi
    4536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4695ac_res=`eval 'as_val=${'$as_ac_Header'}
     4696                 $as_echo "$as_val"'`
     4697               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     4698$as_echo "$ac_res" >&6; }
     4699
     4700fi
     4701if test `eval 'as_val=${'$as_ac_Header'}
     4702                 $as_echo "$as_val"'` = yes; then
    45374703  cat >>confdefs.h <<_ACEOF
    4538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4539 _ACEOF
    4540 
    4541 else
    4542   { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
    4543 echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
     4704#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4705_ACEOF
     4706
     4707else
     4708  { { $as_echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
     4709$as_echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
    45444710   { (exit 1); exit 1; }; }
    45454711fi
     
    45484714
    45494715fi
    4550 { echo "$as_me:$LINENO: result: ${TCL_INCL_DIR}" >&5
    4551 echo "${ECHO_T}${TCL_INCL_DIR}" >&6; }
     4716{ $as_echo "$as_me:$LINENO: result: ${TCL_INCL_DIR}" >&5
     4717$as_echo "${TCL_INCL_DIR}" >&6; }
    45524718
    45534719
     
    45634729RP2_INCL_DIR=""
    45644730RP_DIR=""
    4565 { echo "$as_me:$LINENO: checking for rappture" >&5
    4566 echo $ECHO_N "checking for rappture... $ECHO_C" >&6; }
     4731{ $as_echo "$as_me:$LINENO: checking for rappture" >&5
     4732$as_echo_n "checking for rappture... " >&6; }
    45674733if test "x$with_rappture" != "x" ; then
    45684734    if test "x$with_rappture" != "xprefix" ; then
    45694735        if test -f "$with_rappture"
    45704736        then
    4571             { echo "$as_me:$LINENO: result: no" >&5
    4572 echo "${ECHO_T}no" >&6; }
    4573             { { echo "$as_me:$LINENO: error: please provide --with-rappture with directory" >&5
    4574 echo "$as_me: error: please provide --with-rappture with directory" >&2;}
     4737            { $as_echo "$as_me:$LINENO: result: no" >&5
     4738$as_echo "no" >&6; }
     4739            { { $as_echo "$as_me:$LINENO: error: please provide --with-rappture with directory" >&5
     4740$as_echo "$as_me: error: please provide --with-rappture with directory" >&2;}
    45754741   { (exit 1); exit 1; }; }
    45764742        else
     
    45814747                    RP2_INCL_DIR="$with_rappture/include/rappture2"
    45824748                    RP_DIR="$with_rappture"
    4583                     { echo "$as_me:$LINENO: result: yes" >&5
    4584 echo "${ECHO_T}yes" >&6; }
     4749                    { $as_echo "$as_me:$LINENO: result: yes" >&5
     4750$as_echo "yes" >&6; }
    45854751                else
    4586                     { echo "$as_me:$LINENO: result: no" >&5
    4587 echo "${ECHO_T}no" >&6; }
    4588                     { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&5
    4589 echo "$as_me: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&2;}
     4752                    { $as_echo "$as_me:$LINENO: result: no" >&5
     4753$as_echo "no" >&6; }
     4754                    { { $as_echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&5
     4755$as_echo "$as_me: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&2;}
    45904756   { (exit 1); exit 1; }; }
    45914757                fi
    45924758            else
    4593                 { echo "$as_me:$LINENO: result: no" >&5
    4594 echo "${ECHO_T}no" >&6; }
    4595                 { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&5
    4596 echo "$as_me: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&2;}
     4759                { $as_echo "$as_me:$LINENO: result: no" >&5
     4760$as_echo "no" >&6; }
     4761                { { $as_echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&5
     4762$as_echo "$as_me: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&2;}
    45974763   { (exit 1); exit 1; }; }
    45984764            fi
     
    46014767        RP2_INCL_DIR="$prefix/include/rappture2"
    46024768        RP_DIR="$prefix"
    4603         { echo "$as_me:$LINENO: result: set to prefix" >&5
    4604 echo "${ECHO_T}set to prefix" >&6; }
     4769        { $as_echo "$as_me:$LINENO: result: set to prefix" >&5
     4770$as_echo "set to prefix" >&6; }
    46054771    fi
    46064772else
     
    46084774for ac_header in rappture.h
    46094775do
    4610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4776as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    46114777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4612   { echo "$as_me:$LINENO: checking for $ac_header" >&5
    4613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4778  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     4779$as_echo_n "checking for $ac_header... " >&6; }
    46144780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4615   echo $ECHO_N "(cached) $ECHO_C" >&6
    4616 fi
    4617 ac_res=`eval echo '${'$as_ac_Header'}'`
    4618                { echo "$as_me:$LINENO: result: $ac_res" >&5
    4619 echo "${ECHO_T}$ac_res" >&6; }
     4781  $as_echo_n "(cached) " >&6
     4782fi
     4783ac_res=`eval 'as_val=${'$as_ac_Header'}
     4784                 $as_echo "$as_val"'`
     4785               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     4786$as_echo "$ac_res" >&6; }
    46204787else
    46214788  # Is the header compilable?
    4622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
     4789{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4790$as_echo_n "checking $ac_header usability... " >&6; }
    46244791cat >conftest.$ac_ext <<_ACEOF
    46254792/* confdefs.h.  */
     
    46374804  *) ac_try_echo=$ac_try;;
    46384805esac
    4639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4807$as_echo "$ac_try_echo") >&5
    46404808  (eval "$ac_compile") 2>conftest.er1
    46414809  ac_status=$?
     
    46434811  rm -f conftest.er1
    46444812  cat conftest.err >&5
    4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    46464814  (exit $ac_status); } && {
    46474815         test -z "$ac_cxx_werror_flag" ||
     
    46504818  ac_header_compiler=yes
    46514819else
    4652   echo "$as_me: failed program was:" >&5
     4820  $as_echo "$as_me: failed program was:" >&5
    46534821sed 's/^/| /' conftest.$ac_ext >&5
    46544822
     
    46574825
    46584826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4660 echo "${ECHO_T}$ac_header_compiler" >&6; }
     4827{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4828$as_echo "$ac_header_compiler" >&6; }
    46614829
    46624830# Is the header present?
    4663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
     4831{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4832$as_echo_n "checking $ac_header presence... " >&6; }
    46654833cat >conftest.$ac_ext <<_ACEOF
    46664834/* confdefs.h.  */
     
    46764844  *) ac_try_echo=$ac_try;;
    46774845esac
    4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4847$as_echo "$ac_try_echo") >&5
    46794848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    46804849  ac_status=$?
     
    46824851  rm -f conftest.er1
    46834852  cat conftest.err >&5
    4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    46854854  (exit $ac_status); } >/dev/null && {
    46864855         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     
    46894858  ac_header_preproc=yes
    46904859else
    4691   echo "$as_me: failed program was:" >&5
     4860  $as_echo "$as_me: failed program was:" >&5
    46924861sed 's/^/| /' conftest.$ac_ext >&5
    46934862
     
    46964865
    46974866rm -f conftest.err conftest.$ac_ext
    4698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4699 echo "${ECHO_T}$ac_header_preproc" >&6; }
     4867{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4868$as_echo "$ac_header_preproc" >&6; }
    47004869
    47014870# So?  What about this header?
    47024871case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    47034872  yes:no: )
    4704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    4705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    4707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4873    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4874$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4875    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4876$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    47084877    ac_header_preproc=yes
    47094878    ;;
    47104879  no:yes:* )
    4711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    4712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4713     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    4714 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    4715     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    4716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    4717     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    4718 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    4719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4721     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    4722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4880    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4881$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4882    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4883$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4884    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4885$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4886    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4887$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4888    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4889$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4890    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4891$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    47234892    ( cat <<\_ASBOX
    47244893## ----------------------------------- ##
     
    47294898    ;;
    47304899esac
    4731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
    4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4900{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     4901$as_echo_n "checking for $ac_header... " >&6; }
    47334902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4734   echo $ECHO_N "(cached) $ECHO_C" >&6
     4903  $as_echo_n "(cached) " >&6
    47354904else
    47364905  eval "$as_ac_Header=\$ac_header_preproc"
    47374906fi
    4738 ac_res=`eval echo '${'$as_ac_Header'}'`
    4739                { echo "$as_me:$LINENO: result: $ac_res" >&5
    4740 echo "${ECHO_T}$ac_res" >&6; }
    4741 
    4742 fi
    4743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4907ac_res=`eval 'as_val=${'$as_ac_Header'}
     4908                 $as_echo "$as_val"'`
     4909               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     4910$as_echo "$ac_res" >&6; }
     4911
     4912fi
     4913if test `eval 'as_val=${'$as_ac_Header'}
     4914                 $as_echo "$as_val"'` = yes; then
    47444915  cat >>confdefs.h <<_ACEOF
    4745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4746 _ACEOF
    4747 
    4748 else
    4749   { { echo "$as_me:$LINENO: error: cannot find rappture.h, try using --with-rappture" >&5
    4750 echo "$as_me: error: cannot find rappture.h, try using --with-rappture" >&2;}
     4916#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4917_ACEOF
     4918
     4919else
     4920  { { $as_echo "$as_me:$LINENO: error: cannot find rappture.h, try using --with-rappture" >&5
     4921$as_echo "$as_me: error: cannot find rappture.h, try using --with-rappture" >&2;}
    47514922   { (exit 1); exit 1; }; }
    47524923fi
     
    47574928
    47584929fi
    4759 { echo "$as_me:$LINENO: result: ${RP_DIR}/include" >&5
    4760 echo "${ECHO_T}${RP_DIR}/include" >&6; }
    4761 
    4762 
    4763 
    4764 { echo "$as_me:$LINENO: checking for DX installation" >&5
    4765 echo $ECHO_N "checking for DX installation... $ECHO_C" >&6; }
     4930{ $as_echo "$as_me:$LINENO: result: ${RP_DIR}/include" >&5
     4931$as_echo "${RP_DIR}/include" >&6; }
     4932
     4933
     4934
     4935if test "${ac_cv_header_GL_glui_h+set}" = set; then
     4936  { $as_echo "$as_me:$LINENO: checking for GL/glui.h" >&5
     4937$as_echo_n "checking for GL/glui.h... " >&6; }
     4938if test "${ac_cv_header_GL_glui_h+set}" = set; then
     4939  $as_echo_n "(cached) " >&6
     4940fi
     4941{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glui_h" >&5
     4942$as_echo "$ac_cv_header_GL_glui_h" >&6; }
     4943else
     4944  # Is the header compilable?
     4945{ $as_echo "$as_me:$LINENO: checking GL/glui.h usability" >&5
     4946$as_echo_n "checking GL/glui.h usability... " >&6; }
     4947cat >conftest.$ac_ext <<_ACEOF
     4948/* confdefs.h.  */
     4949_ACEOF
     4950cat confdefs.h >>conftest.$ac_ext
     4951cat >>conftest.$ac_ext <<_ACEOF
     4952/* end confdefs.h.  */
     4953$ac_includes_default
     4954#include <GL/glui.h>
     4955_ACEOF
     4956rm -f conftest.$ac_objext
     4957if { (ac_try="$ac_compile"
     4958case "(($ac_try" in
     4959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4960  *) ac_try_echo=$ac_try;;
     4961esac
     4962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4963$as_echo "$ac_try_echo") >&5
     4964  (eval "$ac_compile") 2>conftest.er1
     4965  ac_status=$?
     4966  grep -v '^ *+' conftest.er1 >conftest.err
     4967  rm -f conftest.er1
     4968  cat conftest.err >&5
     4969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4970  (exit $ac_status); } && {
     4971         test -z "$ac_cxx_werror_flag" ||
     4972         test ! -s conftest.err
     4973       } && test -s conftest.$ac_objext; then
     4974  ac_header_compiler=yes
     4975else
     4976  $as_echo "$as_me: failed program was:" >&5
     4977sed 's/^/| /' conftest.$ac_ext >&5
     4978
     4979        ac_header_compiler=no
     4980fi
     4981
     4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4983{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4984$as_echo "$ac_header_compiler" >&6; }
     4985
     4986# Is the header present?
     4987{ $as_echo "$as_me:$LINENO: checking GL/glui.h presence" >&5
     4988$as_echo_n "checking GL/glui.h presence... " >&6; }
     4989cat >conftest.$ac_ext <<_ACEOF
     4990/* confdefs.h.  */
     4991_ACEOF
     4992cat confdefs.h >>conftest.$ac_ext
     4993cat >>conftest.$ac_ext <<_ACEOF
     4994/* end confdefs.h.  */
     4995#include <GL/glui.h>
     4996_ACEOF
     4997if { (ac_try="$ac_cpp conftest.$ac_ext"
     4998case "(($ac_try" in
     4999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5000  *) ac_try_echo=$ac_try;;
     5001esac
     5002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5003$as_echo "$ac_try_echo") >&5
     5004  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     5005  ac_status=$?
     5006  grep -v '^ *+' conftest.er1 >conftest.err
     5007  rm -f conftest.er1
     5008  cat conftest.err >&5
     5009  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5010  (exit $ac_status); } >/dev/null && {
     5011         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     5012         test ! -s conftest.err
     5013       }; then
     5014  ac_header_preproc=yes
     5015else
     5016  $as_echo "$as_me: failed program was:" >&5
     5017sed 's/^/| /' conftest.$ac_ext >&5
     5018
     5019  ac_header_preproc=no
     5020fi
     5021
     5022rm -f conftest.err conftest.$ac_ext
     5023{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5024$as_echo "$ac_header_preproc" >&6; }
     5025
     5026# So?  What about this header?
     5027case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     5028  yes:no: )
     5029    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5030$as_echo "$as_me: WARNING: GL/glui.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5031    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: proceeding with the compiler's result" >&5
     5032$as_echo "$as_me: WARNING: GL/glui.h: proceeding with the compiler's result" >&2;}
     5033    ac_header_preproc=yes
     5034    ;;
     5035  no:yes:* )
     5036    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: present but cannot be compiled" >&5
     5037$as_echo "$as_me: WARNING: GL/glui.h: present but cannot be compiled" >&2;}
     5038    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h:     check for missing prerequisite headers?" >&5
     5039$as_echo "$as_me: WARNING: GL/glui.h:     check for missing prerequisite headers?" >&2;}
     5040    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: see the Autoconf documentation" >&5
     5041$as_echo "$as_me: WARNING: GL/glui.h: see the Autoconf documentation" >&2;}
     5042    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h:     section \"Present But Cannot Be Compiled\"" >&5
     5043$as_echo "$as_me: WARNING: GL/glui.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5044    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: proceeding with the preprocessor's result" >&5
     5045$as_echo "$as_me: WARNING: GL/glui.h: proceeding with the preprocessor's result" >&2;}
     5046    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: in the future, the compiler will take precedence" >&5
     5047$as_echo "$as_me: WARNING: GL/glui.h: in the future, the compiler will take precedence" >&2;}
     5048    ( cat <<\_ASBOX
     5049## ----------------------------------- ##
     5050## Report this to rappture@nanohub.org ##
     5051## ----------------------------------- ##
     5052_ASBOX
     5053     ) | sed "s/^/$as_me: WARNING:     /" >&2
     5054    ;;
     5055esac
     5056{ $as_echo "$as_me:$LINENO: checking for GL/glui.h" >&5
     5057$as_echo_n "checking for GL/glui.h... " >&6; }
     5058if test "${ac_cv_header_GL_glui_h+set}" = set; then
     5059  $as_echo_n "(cached) " >&6
     5060else
     5061  ac_cv_header_GL_glui_h=$ac_header_preproc
     5062fi
     5063{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glui_h" >&5
     5064$as_echo "$ac_cv_header_GL_glui_h" >&6; }
     5065
     5066fi
     5067
     5068
     5069if test "${ac_cv_header_glui_h+set}" = set; then
     5070  { $as_echo "$as_me:$LINENO: checking for glui.h" >&5
     5071$as_echo_n "checking for glui.h... " >&6; }
     5072if test "${ac_cv_header_glui_h+set}" = set; then
     5073  $as_echo_n "(cached) " >&6
     5074fi
     5075{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_glui_h" >&5
     5076$as_echo "$ac_cv_header_glui_h" >&6; }
     5077else
     5078  # Is the header compilable?
     5079{ $as_echo "$as_me:$LINENO: checking glui.h usability" >&5
     5080$as_echo_n "checking glui.h usability... " >&6; }
     5081cat >conftest.$ac_ext <<_ACEOF
     5082/* confdefs.h.  */
     5083_ACEOF
     5084cat confdefs.h >>conftest.$ac_ext
     5085cat >>conftest.$ac_ext <<_ACEOF
     5086/* end confdefs.h.  */
     5087$ac_includes_default
     5088#include <glui.h>
     5089_ACEOF
     5090rm -f conftest.$ac_objext
     5091if { (ac_try="$ac_compile"
     5092case "(($ac_try" in
     5093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5094  *) ac_try_echo=$ac_try;;
     5095esac
     5096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5097$as_echo "$ac_try_echo") >&5
     5098  (eval "$ac_compile") 2>conftest.er1
     5099  ac_status=$?
     5100  grep -v '^ *+' conftest.er1 >conftest.err
     5101  rm -f conftest.er1
     5102  cat conftest.err >&5
     5103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5104  (exit $ac_status); } && {
     5105         test -z "$ac_cxx_werror_flag" ||
     5106         test ! -s conftest.err
     5107       } && test -s conftest.$ac_objext; then
     5108  ac_header_compiler=yes
     5109else
     5110  $as_echo "$as_me: failed program was:" >&5
     5111sed 's/^/| /' conftest.$ac_ext >&5
     5112
     5113        ac_header_compiler=no
     5114fi
     5115
     5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5117{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5118$as_echo "$ac_header_compiler" >&6; }
     5119
     5120# Is the header present?
     5121{ $as_echo "$as_me:$LINENO: checking glui.h presence" >&5
     5122$as_echo_n "checking glui.h presence... " >&6; }
     5123cat >conftest.$ac_ext <<_ACEOF
     5124/* confdefs.h.  */
     5125_ACEOF
     5126cat confdefs.h >>conftest.$ac_ext
     5127cat >>conftest.$ac_ext <<_ACEOF
     5128/* end confdefs.h.  */
     5129#include <glui.h>
     5130_ACEOF
     5131if { (ac_try="$ac_cpp conftest.$ac_ext"
     5132case "(($ac_try" in
     5133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5134  *) ac_try_echo=$ac_try;;
     5135esac
     5136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5137$as_echo "$ac_try_echo") >&5
     5138  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     5139  ac_status=$?
     5140  grep -v '^ *+' conftest.er1 >conftest.err
     5141  rm -f conftest.er1
     5142  cat conftest.err >&5
     5143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5144  (exit $ac_status); } >/dev/null && {
     5145         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     5146         test ! -s conftest.err
     5147       }; then
     5148  ac_header_preproc=yes
     5149else
     5150  $as_echo "$as_me: failed program was:" >&5
     5151sed 's/^/| /' conftest.$ac_ext >&5
     5152
     5153  ac_header_preproc=no
     5154fi
     5155
     5156rm -f conftest.err conftest.$ac_ext
     5157{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5158$as_echo "$ac_header_preproc" >&6; }
     5159
     5160# So?  What about this header?
     5161case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     5162  yes:no: )
     5163    { $as_echo "$as_me:$LINENO: WARNING: glui.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5164$as_echo "$as_me: WARNING: glui.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5165    { $as_echo "$as_me:$LINENO: WARNING: glui.h: proceeding with the compiler's result" >&5
     5166$as_echo "$as_me: WARNING: glui.h: proceeding with the compiler's result" >&2;}
     5167    ac_header_preproc=yes
     5168    ;;
     5169  no:yes:* )
     5170    { $as_echo "$as_me:$LINENO: WARNING: glui.h: present but cannot be compiled" >&5
     5171$as_echo "$as_me: WARNING: glui.h: present but cannot be compiled" >&2;}
     5172    { $as_echo "$as_me:$LINENO: WARNING: glui.h:     check for missing prerequisite headers?" >&5
     5173$as_echo "$as_me: WARNING: glui.h:     check for missing prerequisite headers?" >&2;}
     5174    { $as_echo "$as_me:$LINENO: WARNING: glui.h: see the Autoconf documentation" >&5
     5175$as_echo "$as_me: WARNING: glui.h: see the Autoconf documentation" >&2;}
     5176    { $as_echo "$as_me:$LINENO: WARNING: glui.h:     section \"Present But Cannot Be Compiled\"" >&5
     5177$as_echo "$as_me: WARNING: glui.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5178    { $as_echo "$as_me:$LINENO: WARNING: glui.h: proceeding with the preprocessor's result" >&5
     5179$as_echo "$as_me: WARNING: glui.h: proceeding with the preprocessor's result" >&2;}
     5180    { $as_echo "$as_me:$LINENO: WARNING: glui.h: in the future, the compiler will take precedence" >&5
     5181$as_echo "$as_me: WARNING: glui.h: in the future, the compiler will take precedence" >&2;}
     5182    ( cat <<\_ASBOX
     5183## ----------------------------------- ##
     5184## Report this to rappture@nanohub.org ##
     5185## ----------------------------------- ##
     5186_ASBOX
     5187     ) | sed "s/^/$as_me: WARNING:     /" >&2
     5188    ;;
     5189esac
     5190{ $as_echo "$as_me:$LINENO: checking for glui.h" >&5
     5191$as_echo_n "checking for glui.h... " >&6; }
     5192if test "${ac_cv_header_glui_h+set}" = set; then
     5193  $as_echo_n "(cached) " >&6
     5194else
     5195  ac_cv_header_glui_h=$ac_header_preproc
     5196fi
     5197{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_glui_h" >&5
     5198$as_echo "$ac_cv_header_glui_h" >&6; }
     5199
     5200fi
     5201
     5202
     5203if test "${ac_cv_header_GL_glut_h+set}" = set; then
     5204  { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
     5205$as_echo_n "checking for GL/glut.h... " >&6; }
     5206if test "${ac_cv_header_GL_glut_h+set}" = set; then
     5207  $as_echo_n "(cached) " >&6
     5208fi
     5209{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
     5210$as_echo "$ac_cv_header_GL_glut_h" >&6; }
     5211else
     5212  # Is the header compilable?
     5213{ $as_echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
     5214$as_echo_n "checking GL/glut.h usability... " >&6; }
     5215cat >conftest.$ac_ext <<_ACEOF
     5216/* confdefs.h.  */
     5217_ACEOF
     5218cat confdefs.h >>conftest.$ac_ext
     5219cat >>conftest.$ac_ext <<_ACEOF
     5220/* end confdefs.h.  */
     5221$ac_includes_default
     5222#include <GL/glut.h>
     5223_ACEOF
     5224rm -f conftest.$ac_objext
     5225if { (ac_try="$ac_compile"
     5226case "(($ac_try" in
     5227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5228  *) ac_try_echo=$ac_try;;
     5229esac
     5230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5231$as_echo "$ac_try_echo") >&5
     5232  (eval "$ac_compile") 2>conftest.er1
     5233  ac_status=$?
     5234  grep -v '^ *+' conftest.er1 >conftest.err
     5235  rm -f conftest.er1
     5236  cat conftest.err >&5
     5237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5238  (exit $ac_status); } && {
     5239         test -z "$ac_cxx_werror_flag" ||
     5240         test ! -s conftest.err
     5241       } && test -s conftest.$ac_objext; then
     5242  ac_header_compiler=yes
     5243else
     5244  $as_echo "$as_me: failed program was:" >&5
     5245sed 's/^/| /' conftest.$ac_ext >&5
     5246
     5247        ac_header_compiler=no
     5248fi
     5249
     5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5251{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5252$as_echo "$ac_header_compiler" >&6; }
     5253
     5254# Is the header present?
     5255{ $as_echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
     5256$as_echo_n "checking GL/glut.h presence... " >&6; }
     5257cat >conftest.$ac_ext <<_ACEOF
     5258/* confdefs.h.  */
     5259_ACEOF
     5260cat confdefs.h >>conftest.$ac_ext
     5261cat >>conftest.$ac_ext <<_ACEOF
     5262/* end confdefs.h.  */
     5263#include <GL/glut.h>
     5264_ACEOF
     5265if { (ac_try="$ac_cpp conftest.$ac_ext"
     5266case "(($ac_try" in
     5267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5268  *) ac_try_echo=$ac_try;;
     5269esac
     5270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5271$as_echo "$ac_try_echo") >&5
     5272  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     5273  ac_status=$?
     5274  grep -v '^ *+' conftest.er1 >conftest.err
     5275  rm -f conftest.er1
     5276  cat conftest.err >&5
     5277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5278  (exit $ac_status); } >/dev/null && {
     5279         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     5280         test ! -s conftest.err
     5281       }; then
     5282  ac_header_preproc=yes
     5283else
     5284  $as_echo "$as_me: failed program was:" >&5
     5285sed 's/^/| /' conftest.$ac_ext >&5
     5286
     5287  ac_header_preproc=no
     5288fi
     5289
     5290rm -f conftest.err conftest.$ac_ext
     5291{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5292$as_echo "$ac_header_preproc" >&6; }
     5293
     5294# So?  What about this header?
     5295case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     5296  yes:no: )
     5297    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5298$as_echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5299    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
     5300$as_echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
     5301    ac_header_preproc=yes
     5302    ;;
     5303  no:yes:* )
     5304    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
     5305$as_echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
     5306    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&5
     5307$as_echo "$as_me: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&2;}
     5308    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
     5309$as_echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
     5310    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&5
     5311$as_echo "$as_me: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5312    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
     5313$as_echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
     5314    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
     5315$as_echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
     5316    ( cat <<\_ASBOX
     5317## ----------------------------------- ##
     5318## Report this to rappture@nanohub.org ##
     5319## ----------------------------------- ##
     5320_ASBOX
     5321     ) | sed "s/^/$as_me: WARNING:     /" >&2
     5322    ;;
     5323esac
     5324{ $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
     5325$as_echo_n "checking for GL/glut.h... " >&6; }
     5326if test "${ac_cv_header_GL_glut_h+set}" = set; then
     5327  $as_echo_n "(cached) " >&6
     5328else
     5329  ac_cv_header_GL_glut_h=$ac_header_preproc
     5330fi
     5331{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
     5332$as_echo "$ac_cv_header_GL_glut_h" >&6; }
     5333
     5334fi
     5335
     5336
     5337
     5338{ $as_echo "$as_me:$LINENO: checking for DX installation" >&5
     5339$as_echo_n "checking for DX installation... " >&6; }
    47665340DX_DIR=""
    47675341for dir in \
     
    47765350done
    47775351if test "x${DX_DIR}" = "x" ; then
    4778   { { echo "$as_me:$LINENO: error: can't find OpenDX installation" >&5
    4779 echo "$as_me: error: can't find OpenDX installation" >&2;}
     5352  { { $as_echo "$as_me:$LINENO: error: can't find OpenDX installation" >&5
     5353$as_echo "$as_me: error: can't find OpenDX installation" >&2;}
    47805354   { (exit 1); exit 1; }; }
    47815355fi
     
    47845358fi
    47855359
    4786 { echo "$as_me:$LINENO: result: ${DX_DIR}" >&5
    4787 echo "${ECHO_T}${DX_DIR}" >&6; }
     5360{ $as_echo "$as_me:$LINENO: result: ${DX_DIR}" >&5
     5361$as_echo "${DX_DIR}" >&6; }
    47885362
    47895363
     
    48185392    *${as_nl}*)
    48195393      case $ac_var in #(
    4820       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
    4821 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
     5394      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
     5395$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
    48225396      esac
    48235397      case $ac_var in #(
    48245398      _ | IFS | as_nl) ;; #(
     5399      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
    48255400      *) $as_unset $ac_var ;;
    48265401      esac ;;
     
    48555430  if test -w "$cache_file"; then
    48565431    test "x$cache_file" != "x/dev/null" &&
    4857       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
    4858 echo "$as_me: updating cache $cache_file" >&6;}
     5432      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
     5433$as_echo "$as_me: updating cache $cache_file" >&6;}
    48595434    cat confcache >$cache_file
    48605435  else
    4861     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
    4862 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
     5436    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
     5437$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    48635438  fi
    48645439fi
     
    48775452# look for a macro that doesn't take arguments.
    48785453ac_script='
     5454:mline
     5455/\\$/{
     5456 N
     5457 s,\\\n,,
     5458 b mline
     5459}
    48795460t clear
    48805461:clear
     
    49065487  # 1. Remove the extension, and $U if already installed.
    49075488  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
    4908   ac_i=`echo "$ac_i" | sed "$ac_script"`
     5489  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
    49095490  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
    49105491  #    will be set to the directory where LIBOBJS objects are built.
     
    49195500
    49205501: ${CONFIG_STATUS=./config.status}
     5502ac_write_fail=0
    49215503ac_clean_files_save=$ac_clean_files
    49225504ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    4923 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    4924 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    4925 cat >$CONFIG_STATUS <<_ACEOF
     5505{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
     5506$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
     5507cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    49265508#! $SHELL
    49275509# Generated by $as_me.
     
    49365518_ACEOF
    49375519
    4938 cat >>$CONFIG_STATUS <<\_ACEOF
     5520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    49395521## --------------------- ##
    49405522## M4sh Initialization.  ##
     
    49465528  emulate sh
    49475529  NULLCMD=:
    4948   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     5530  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    49495531  # is contrary to our usage.  Disable this feature.
    49505532  alias -g '${1+"$@"}'='"$@"'
     
    49685550as_cr_alnum=$as_cr_Letters$as_cr_digits
    49695551
     5552as_nl='
     5553'
     5554export as_nl
     5555# Printing a long string crashes Solaris 7 /usr/bin/printf.
     5556as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     5557as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     5558as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     5559if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     5560  as_echo='printf %s\n'
     5561  as_echo_n='printf %s'
     5562else
     5563  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     5564    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     5565    as_echo_n='/usr/ucb/echo -n'
     5566  else
     5567    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     5568    as_echo_n_body='eval
     5569      arg=$1;
     5570      case $arg in
     5571      *"$as_nl"*)
     5572        expr "X$arg" : "X\\(.*\\)$as_nl";
     5573        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     5574      esac;
     5575      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     5576    '
     5577    export as_echo_n_body
     5578    as_echo_n='sh -c $as_echo_n_body as_echo'
     5579  fi
     5580  export as_echo_body
     5581  as_echo='sh -c $as_echo_body as_echo'
     5582fi
     5583
    49705584# The user is always right.
    49715585if test "${PATH_SEPARATOR+set}" != set; then
    4972   echo "#! /bin/sh" >conf$$.sh
    4973   echo  "exit 0"   >>conf$$.sh
    4974   chmod +x conf$$.sh
    4975   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    4976     PATH_SEPARATOR=';'
    4977   else
    4978     PATH_SEPARATOR=:
    4979   fi
    4980   rm -f conf$$.sh
     5586  PATH_SEPARATOR=:
     5587  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     5588    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     5589      PATH_SEPARATOR=';'
     5590  }
    49815591fi
    49825592
     
    49945604# (If _AS_PATH_WALK were called with IFS unset, it would disable word
    49955605# splitting by setting IFS to empty value.)
    4996 as_nl='
    4997 '
    49985606IFS=" ""        $as_nl"
    49995607
     
    50185626fi
    50195627if test ! -f "$as_myself"; then
    5020   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     5628  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    50215629  { (exit 1); exit 1; }
    50225630fi
     
    50315639
    50325640# NLS nuisances.
    5033 for as_var in \
    5034   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    5035   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    5036   LC_TELEPHONE LC_TIME
    5037 do
    5038   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    5039     eval $as_var=C; export $as_var
    5040   else
    5041     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    5042   fi
    5043 done
     5641LC_ALL=C
     5642export LC_ALL
     5643LANGUAGE=C
     5644export LANGUAGE
    50445645
    50455646# Required to use basename.
     
    50635664         X"$0" : 'X\(//\)$' \| \
    50645665         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    5065 echo X/"$0" |
     5666$as_echo X/"$0" |
    50665667    sed '/^.*\/\([^/][^/]*\)\/*$/{
    50675668            s//\1/
     
    51145715    ' >$as_me.lineno &&
    51155716  chmod +x "$as_me.lineno" ||
    5116     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     5717    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    51175718   { (exit 1); exit 1; }; }
    51185719
     
    51425743  ECHO_N='-n';;
    51435744esac
    5144 
    51455745if expr a : '\(a\)' >/dev/null 2>&1 &&
    51465746   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     
    51555755else
    51565756  rm -f conf$$.dir
    5157   mkdir conf$$.dir
    5158 fi
    5159 echo >conf$$.file
    5160 if ln -s conf$$.file conf$$ 2>/dev/null; then
    5161   as_ln_s='ln -s'
    5162   # ... but there are two gotchas:
    5163   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    5164   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    5165   # In both cases, we have to default to `cp -p'.
    5166   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     5757  mkdir conf$$.dir 2>/dev/null
     5758fi
     5759if (echo >conf$$.file) 2>/dev/null; then
     5760  if ln -s conf$$.file conf$$ 2>/dev/null; then
     5761    as_ln_s='ln -s'
     5762    # ... but there are two gotchas:
     5763    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     5764    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     5765    # In both cases, we have to default to `cp -p'.
     5766    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     5767      as_ln_s='cp -p'
     5768  elif ln conf$$.file conf$$ 2>/dev/null; then
     5769    as_ln_s=ln
     5770  else
    51675771    as_ln_s='cp -p'
    5168 elif ln conf$$.file conf$$ 2>/dev/null; then
    5169   as_ln_s=ln
     5772  fi
    51705773else
    51715774  as_ln_s='cp -p'
     
    51925795    eval sh -c '\''
    51935796      if test -d "$1"; then
    5194         test -d "$1/.";
     5797        test -d "$1/.";
    51955798      else
    51965799        case $1 in
    5197         -*)set "./$1";;
     5800        -*)set "./$1";;
    51985801        esac;
    51995802        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     
    52185821ac_log="
    52195822This file was extended by vizservers $as_me 0.1, which was
    5220 generated by GNU Autoconf 2.61.  Invocation command line was
     5823generated by GNU Autoconf 2.62.  Invocation command line was
    52215824
    52225825  CONFIG_FILES    = $CONFIG_FILES
     
    52315834_ACEOF
    52325835
    5233 cat >>$CONFIG_STATUS <<_ACEOF
     5836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    52345837# Files that config.status was made for.
    5235 config_files="$ac_config_files"
    5236 
    5237 _ACEOF
    5238 
    5239 cat >>$CONFIG_STATUS <<\_ACEOF
     5838config_files="`echo $ac_config_files`"
     5839
     5840_ACEOF
     5841
     5842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    52405843ac_cs_usage="\
    52415844\`$as_me' instantiates files from templates according to the
     
    52505853      --recheck    update $as_me by reconfiguring in the same conditions
    52515854  --file=FILE[:TEMPLATE]
    5252                    instantiate the configuration file FILE
     5855                   instantiate the configuration file FILE
    52535856
    52545857Configuration files:
     
    52585861
    52595862_ACEOF
    5260 cat >>$CONFIG_STATUS <<_ACEOF
     5863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    52615864ac_cs_version="\\
    52625865vizservers config.status 0.1
    5263 configured by $0, generated by GNU Autoconf 2.61,
    5264   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
    5265 
    5266 Copyright (C) 2006 Free Software Foundation, Inc.
     5866configured by $0, generated by GNU Autoconf 2.62,
     5867  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
     5868
     5869Copyright (C) 2008 Free Software Foundation, Inc.
    52675870This config.status script is free software; the Free Software Foundation
    52685871gives unlimited permission to copy, distribute and modify it."
     
    52715874srcdir='$srcdir'
    52725875INSTALL='$INSTALL'
    5273 _ACEOF
    5274 
    5275 cat >>$CONFIG_STATUS <<\_ACEOF
    5276 # If no file are specified by the user, then we need to provide default
    5277 # value.  By we need to know if files were specified by the user.
     5876MKDIR_P='$MKDIR_P'
     5877test -n "\$AWK" || AWK=awk
     5878_ACEOF
     5879
     5880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     5881# The default lists apply if the user does not specify any file.
    52785882ac_need_defaults=:
    52795883while test $# != 0
     
    52975901    ac_cs_recheck=: ;;
    52985902  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    5299     echo "$ac_cs_version"; exit ;;
     5903    $as_echo "$ac_cs_version"; exit ;;
    53005904  --debug | --debu | --deb | --de | --d | -d )
    53015905    debug=: ;;
    53025906  --file | --fil | --fi | --f )
    53035907    $ac_shift
    5304     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
     5908    case $ac_optarg in
     5909    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     5910    esac
     5911    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
    53055912    ac_need_defaults=false;;
    53065913  --he | --h |  --help | --hel | -h )
    5307     echo "$ac_cs_usage"; exit ;;
     5914    $as_echo "$ac_cs_usage"; exit ;;
    53085915  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    53095916  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     
    53115918
    53125919  # This is an error.
    5313   -*) { echo "$as_me: error: unrecognized option: $1
     5920  -*) { $as_echo "$as_me: error: unrecognized option: $1
    53145921Try \`$0 --help' for more information." >&2
    53155922   { (exit 1); exit 1; }; } ;;
     
    53305937
    53315938_ACEOF
    5332 cat >>$CONFIG_STATUS <<_ACEOF
     5939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    53335940if \$ac_cs_recheck; then
    5334   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    5335   CONFIG_SHELL=$SHELL
     5941  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     5942  shift
     5943  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     5944  CONFIG_SHELL='$SHELL'
    53365945  export CONFIG_SHELL
    5337   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    5338 fi
    5339 
    5340 _ACEOF
    5341 cat >>$CONFIG_STATUS <<\_ACEOF
     5946  exec "\$@"
     5947fi
     5948
     5949_ACEOF
     5950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    53425951exec 5>>config.log
    53435952{
     
    53465955## Running $as_me. ##
    53475956_ASBOX
    5348   echo "$ac_log"
     5957  $as_echo "$ac_log"
    53495958} >&5
    53505959
    53515960_ACEOF
    5352 cat >>$CONFIG_STATUS <<_ACEOF
    5353 _ACEOF
    5354 
    5355 cat >>$CONFIG_STATUS <<\_ACEOF
     5961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     5962_ACEOF
     5963
     5964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    53565965
    53575966# Handling of arguments.
     
    53695978    "start_viz.sh") CONFIG_FILES="$CONFIG_FILES start_viz.sh" ;;
    53705979
    5371   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    5372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     5980  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     5981$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    53735982   { (exit 1); exit 1; }; };;
    53745983  esac
     
    54096018} ||
    54106019{
    5411    echo "$me: cannot create a temporary directory in ." >&2
     6020   $as_echo "$as_me: cannot create a temporary directory in ." >&2
    54126021   { (exit 1); exit 1; }
    54136022}
    54146023
    5415 #
    5416 # Set up the sed scripts for CONFIG_FILES section.
    5417 #
    5418 
    5419 # No need to generate the scripts if there are no CONFIG_FILES.
    5420 # This happens for instance when ./config.status config.h
     6024# Set up the scripts for CONFIG_FILES section.
     6025# No need to generate them if there are no CONFIG_FILES.
     6026# This happens for instance with `./config.status config.h'.
    54216027if test -n "$CONFIG_FILES"; then
    54226028
    5423 _ACEOF
    5424 
    5425 
    5426 
     6029
     6030ac_cr='
     6031'
     6032ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     6033if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     6034  ac_cs_awk_cr='\\r'
     6035else
     6036  ac_cs_awk_cr=$ac_cr
     6037fi
     6038
     6039echo 'BEGIN {' >"$tmp/subs1.awk" &&
     6040_ACEOF
     6041
     6042
     6043{
     6044  echo "cat >conf$$subs.awk <<_ACEOF" &&
     6045  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     6046  echo "_ACEOF"
     6047} >conf$$subs.sh ||
     6048  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
     6049$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
     6050   { (exit 1); exit 1; }; }
     6051ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
    54276052ac_delim='%!_!# '
    54286053for ac_last_try in false false false false false :; do
    5429   cat >conf$$subs.sed <<_ACEOF
    5430 SHELL!$SHELL$ac_delim
    5431 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
    5432 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
    5433 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
    5434 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
    5435 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
    5436 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
    5437 exec_prefix!$exec_prefix$ac_delim
    5438 prefix!$prefix$ac_delim
    5439 program_transform_name!$program_transform_name$ac_delim
    5440 bindir!$bindir$ac_delim
    5441 sbindir!$sbindir$ac_delim
    5442 libexecdir!$libexecdir$ac_delim
    5443 datarootdir!$datarootdir$ac_delim
    5444 datadir!$datadir$ac_delim
    5445 sysconfdir!$sysconfdir$ac_delim
    5446 sharedstatedir!$sharedstatedir$ac_delim
    5447 localstatedir!$localstatedir$ac_delim
    5448 includedir!$includedir$ac_delim
    5449 oldincludedir!$oldincludedir$ac_delim
    5450 docdir!$docdir$ac_delim
    5451 infodir!$infodir$ac_delim
    5452 htmldir!$htmldir$ac_delim
    5453 dvidir!$dvidir$ac_delim
    5454 pdfdir!$pdfdir$ac_delim
    5455 psdir!$psdir$ac_delim
    5456 libdir!$libdir$ac_delim
    5457 localedir!$localedir$ac_delim
    5458 mandir!$mandir$ac_delim
    5459 DEFS!$DEFS$ac_delim
    5460 ECHO_C!$ECHO_C$ac_delim
    5461 ECHO_N!$ECHO_N$ac_delim
    5462 ECHO_T!$ECHO_T$ac_delim
    5463 LIBS!$LIBS$ac_delim
    5464 build_alias!$build_alias$ac_delim
    5465 host_alias!$host_alias$ac_delim
    5466 target_alias!$target_alias$ac_delim
    5467 VERSION!$VERSION$ac_delim
    5468 LIB_SEARCH_DIRS!$LIB_SEARCH_DIRS$ac_delim
    5469 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
    5470 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
    5471 INSTALL_DATA!$INSTALL_DATA$ac_delim
    5472 SET_MAKE!$SET_MAKE$ac_delim
    5473 CC!$CC$ac_delim
    5474 CFLAGS!$CFLAGS$ac_delim
    5475 LDFLAGS!$LDFLAGS$ac_delim
    5476 CPPFLAGS!$CPPFLAGS$ac_delim
    5477 ac_ct_CC!$ac_ct_CC$ac_delim
    5478 EXEEXT!$EXEEXT$ac_delim
    5479 OBJEXT!$OBJEXT$ac_delim
    5480 RANLIB!$RANLIB$ac_delim
    5481 CXX!$CXX$ac_delim
    5482 CXXFLAGS!$CXXFLAGS$ac_delim
    5483 ac_ct_CXX!$ac_ct_CXX$ac_delim
    5484 CXXCPP!$CXXCPP$ac_delim
    5485 GREP!$GREP$ac_delim
    5486 EGREP!$EGREP$ac_delim
    5487 SUBDIRS!$SUBDIRS$ac_delim
    5488 TCL_LIB_DIR!$TCL_LIB_DIR$ac_delim
    5489 TCL_LIB!$TCL_LIB$ac_delim
    5490 TCL_LIB_VERSION!$TCL_LIB_VERSION$ac_delim
    5491 TCL_INCL_DIR!$TCL_INCL_DIR$ac_delim
    5492 RP2_INCL_DIR!$RP2_INCL_DIR$ac_delim
    5493 RP_DIR!$RP_DIR$ac_delim
    5494 DX_DIR!$DX_DIR$ac_delim
    5495 LIBOBJS!$LIBOBJS$ac_delim
    5496 LTLIBOBJS!$LTLIBOBJS$ac_delim
    5497 _ACEOF
    5498 
    5499   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
     6054  . ./conf$$subs.sh ||
     6055    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
     6056$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
     6057   { (exit 1); exit 1; }; }
     6058
     6059  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
    55006060    break
    55016061  elif $ac_last_try; then
    5502     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
    5503 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
     6062    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
     6063$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
    55046064   { (exit 1); exit 1; }; }
    55056065  else
     
    55076067  fi
    55086068done
    5509 
    5510 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
    5511 if test -n "$ac_eof"; then
    5512   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
    5513   ac_eof=`expr $ac_eof + 1`
    5514 fi
    5515 
    5516 cat >>$CONFIG_STATUS <<_ACEOF
    5517 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
    5518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
    5519 _ACEOF
    5520 sed '
    5521 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
    5522 s/^/s,@/; s/!/@,|#_!!_#|/
    5523 :n
    5524 t n
    5525 s/'"$ac_delim"'$/,g/; t
    5526 s/$/\\/; p
    5527 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
    5528 ' >>$CONFIG_STATUS <conf$$subs.sed
    5529 rm -f conf$$subs.sed
    5530 cat >>$CONFIG_STATUS <<_ACEOF
    5531 :end
    5532 s/|#_!!_#|//g
    5533 CEOF$ac_eof
    5534 _ACEOF
    5535 
     6069rm -f conf$$subs.sh
     6070
     6071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6072cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     6073_ACEOF
     6074sed -n '
     6075h
     6076s/^/S["/; s/!.*/"]=/
     6077p
     6078g
     6079s/^[^!]*!//
     6080:repl
     6081t repl
     6082s/'"$ac_delim"'$//
     6083t delim
     6084:nl
     6085h
     6086s/\(.\{148\}\).*/\1/
     6087t more1
     6088s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     6089p
     6090n
     6091b repl
     6092:more1
     6093s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     6094p
     6095g
     6096s/.\{148\}//
     6097t nl
     6098:delim
     6099h
     6100s/\(.\{148\}\).*/\1/
     6101t more2
     6102s/["\\]/\\&/g; s/^/"/; s/$/"/
     6103p
     6104b
     6105:more2
     6106s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     6107p
     6108g
     6109s/.\{148\}//
     6110t delim
     6111' <conf$$subs.awk | sed '
     6112/^[^""]/{
     6113  N
     6114  s/\n//
     6115}
     6116' >>$CONFIG_STATUS || ac_write_fail=1
     6117rm -f conf$$subs.awk
     6118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6119_ACAWK
     6120cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     6121  for (key in S) S_is_set[key] = 1
     6122  FS = ""
     6123
     6124}
     6125{
     6126  line = $ 0
     6127  nfields = split(line, field, "@")
     6128  substed = 0
     6129  len = length(field[1])
     6130  for (i = 2; i < nfields; i++) {
     6131    key = field[i]
     6132    keylen = length(key)
     6133    if (S_is_set[key]) {
     6134      value = S[key]
     6135      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     6136      len += length(value) + length(field[++i])
     6137      substed = 1
     6138    } else
     6139      len += 1 + keylen
     6140  }
     6141
     6142  print line
     6143}
     6144
     6145_ACAWK
     6146_ACEOF
     6147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     6148if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     6149  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     6150else
     6151  cat
     6152fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     6153  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
     6154$as_echo "$as_me: error: could not setup config files machinery" >&2;}
     6155   { (exit 1); exit 1; }; }
     6156_ACEOF
    55366157
    55376158# VPATH may cause trouble with some makes, so we remove $(srcdir),
     
    55506171fi
    55516172
    5552 cat >>$CONFIG_STATUS <<\_ACEOF
     6173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    55536174fi # test -n "$CONFIG_FILES"
    55546175
    55556176
    5556 for ac_tag in  :F $CONFIG_FILES
     6177eval set X "  :F $CONFIG_FILES      "
     6178shift
     6179for ac_tag
    55576180do
    55586181  case $ac_tag in
     
    55616184  case $ac_mode$ac_tag in
    55626185  :[FHL]*:*);;
    5563   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
    5564 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
     6186  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
     6187$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
    55656188   { (exit 1); exit 1; }; };;
    55666189  :[FH]-) ac_tag=-:-;;
     
    55916214           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    55926215           esac ||
    5593            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
    5594 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
     6216           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
     6217$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
    55956218   { (exit 1); exit 1; }; };;
    55966219      esac
    5597       ac_file_inputs="$ac_file_inputs $ac_f"
     6220      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     6221      ac_file_inputs="$ac_file_inputs '$ac_f'"
    55986222    done
    55996223
     
    56016225    # use $as_me), people would be surprised to read:
    56026226    #    /* config.h.  Generated by config.status.  */
    5603     configure_input="Generated from "`IFS=:
    5604           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
     6227    configure_input='Generated from '`
     6228          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     6229        `' by configure.'
    56056230    if test x"$ac_file" != x-; then
    56066231      configure_input="$ac_file.  $configure_input"
    5607       { echo "$as_me:$LINENO: creating $ac_file" >&5
    5608 echo "$as_me: creating $ac_file" >&6;}
     6232      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
     6233$as_echo "$as_me: creating $ac_file" >&6;}
    56096234    fi
     6235    # Neutralize special characters interpreted by sed in replacement strings.
     6236    case $configure_input in #(
     6237    *\&* | *\|* | *\\* )
     6238       ac_sed_conf_input=`$as_echo "$configure_input" |
     6239       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     6240    *) ac_sed_conf_input=$configure_input;;
     6241    esac
    56106242
    56116243    case $ac_tag in
    5612     *:-:* | *:-) cat >"$tmp/stdin";;
     6244    *:-:* | *:-) cat >"$tmp/stdin" \
     6245      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
     6246$as_echo "$as_me: error: could not create $ac_file" >&2;}
     6247   { (exit 1); exit 1; }; } ;;
    56136248    esac
    56146249    ;;
     
    56206255         X"$ac_file" : 'X\(//\)$' \| \
    56216256         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
    5622 echo X"$ac_file" |
     6257$as_echo X"$ac_file" |
    56236258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    56246259            s//\1/
     
    56466281    while :; do
    56476282      case $as_dir in #(
    5648       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
     6283      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    56496284      *) as_qdir=$as_dir;;
    56506285      esac
     
    56556290         X"$as_dir" : 'X\(//\)$' \| \
    56566291         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    5657 echo X"$as_dir" |
     6292$as_echo X"$as_dir" |
    56586293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    56596294            s//\1/
     
    56766311    done
    56776312    test -z "$as_dirs" || eval "mkdir $as_dirs"
    5678   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
    5679 echo "$as_me: error: cannot create directory $as_dir" >&2;}
     6313  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
     6314$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
    56806315   { (exit 1); exit 1; }; }; }
    56816316  ac_builddir=.
     
    56846319.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
    56856320*)
    5686   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     6321  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
    56876322  # A ".." for each directory in $ac_dir_suffix.
    5688   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
     6323  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
    56896324  case $ac_top_builddir_sub in
    56906325  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     
    57246359  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    57256360  esac
    5726 _ACEOF
    5727 
    5728 cat >>$CONFIG_STATUS <<\_ACEOF
     6361  ac_MKDIR_P=$MKDIR_P
     6362  case $MKDIR_P in
     6363  [\\/$]* | ?:[\\/]* ) ;;
     6364  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
     6365  esac
     6366_ACEOF
     6367
     6368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    57296369# If the template does not know about datarootdir, expand it.
    57306370# FIXME: This hack should be removed a few years after 2.60.
    57316371ac_datarootdir_hack=; ac_datarootdir_seen=
    57326372
    5733 case `sed -n '/datarootdir/ {
     6373ac_sed_dataroot='
     6374/datarootdir/ {
    57346375  p
    57356376  q
     
    57406381/@localedir@/p
    57416382/@mandir@/p
    5742 ' $ac_file_inputs` in
     6383'
     6384case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
    57436385*datarootdir*) ac_datarootdir_seen=yes;;
    57446386*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
    5745   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
    5746 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
    5747 _ACEOF
    5748 cat >>$CONFIG_STATUS <<_ACEOF
     6387  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     6388$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     6389_ACEOF
     6390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    57496391  ac_datarootdir_hack='
    57506392  s&@datadir@&$datadir&g
     
    57606402# Shell code in configure.ac might set extrasub.
    57616403# FIXME: do we really want to maintain this feature?
    5762 cat >>$CONFIG_STATUS <<_ACEOF
    5763   sed "$ac_vpsub
     6404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6405ac_sed_extra="$ac_vpsub
    57646406$extrasub
    57656407_ACEOF
    5766 cat >>$CONFIG_STATUS <<\_ACEOF
     6408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    57676409:t
    57686410/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    5769 s&@configure_input@&$configure_input&;t t
     6411s|@configure_input@|$ac_sed_conf_input|;t t
    57706412s&@top_builddir@&$ac_top_builddir_sub&;t t
     6413s&@top_build_prefix@&$ac_top_build_prefix&;t t
    57716414s&@srcdir@&$ac_srcdir&;t t
    57726415s&@abs_srcdir@&$ac_abs_srcdir&;t t
     
    57776420s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
    57786421s&@INSTALL@&$ac_INSTALL&;t t
     6422s&@MKDIR_P@&$ac_MKDIR_P&;t t
    57796423$ac_datarootdir_hack
    5780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
     6424"
     6425eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     6426  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
     6427$as_echo "$as_me: error: could not create $ac_file" >&2;}
     6428   { (exit 1); exit 1; }; }
    57816429
    57826430test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
    57836431  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
    57846432  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
    5785   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     6433  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    57866434which seems to be undefined.  Please make sure it is defined." >&5
    5787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     6435$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    57886436which seems to be undefined.  Please make sure it is defined." >&2;}
    57896437
    57906438  rm -f "$tmp/stdin"
    57916439  case $ac_file in
    5792   -) cat "$tmp/out"; rm -f "$tmp/out";;
    5793   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
    5794   esac
     6440  -) cat "$tmp/out" && rm -f "$tmp/out";;
     6441  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     6442  esac \
     6443  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
     6444$as_echo "$as_me: error: could not create $ac_file" >&2;}
     6445   { (exit 1); exit 1; }; }
    57956446 ;;
    57966447
     
    58066457chmod +x $CONFIG_STATUS
    58076458ac_clean_files=$ac_clean_files_save
     6459
     6460test $ac_write_fail = 0 ||
     6461  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
     6462$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
     6463   { (exit 1); exit 1; }; }
    58086464
    58096465
     
    58286484  $ac_cs_success || { (exit 1); exit 1; }
    58296485fi
    5830 
     6486if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     6487  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
     6488$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
     6489fi
     6490
  • trunk/packages/vizservers/configure.in

    r948 r1111  
    2424
    2525AC_PROG_INSTALL
    26 AC_PROG_MAKE_SET
     26AC_PROG_RANLIB
     27AC_PROG_LN_S
     28AC_PROG_MKDIR_P
    2729
    2830dnl find and test the C compiler
    2931AC_PROG_CC
    3032AC_LANG_C
    31 
    32 AC_PROG_RANLIB
    3333
    3434AC_PROG_CXX
  • trunk/packages/vizservers/nanoscale/client.c

    r409 r1111  
    1919 * "unnecessary" pointer comparison.
    2020 */
    21 #define min(x,y) ({ \
    22         typeof(x) _x = (x);     \
    23         typeof(y) _y = (y);     \
    24         (void) (&_x == &_y);            \
    25         _x < _y ? _x : _y; })
     21#define min(x,y) ({                             \
     22            typeof(x) _x = (x);                 \
     23            typeof(y) _y = (y);                 \
     24            (void) (&_x == &_y);                \
     25            _x < _y ? _x : _y; })
    2626
    27 #define max(x,y) ({ \
    28         typeof(x) _x = (x);     \
    29         typeof(y) _y = (y);     \
    30         (void) (&_x == &_y);            \
    31         _x > _y ? _x : _y; })
     27#define max(x,y) ({                             \
     28            typeof(x) _x = (x);                 \
     29            typeof(y) _y = (y);                 \
     30            (void) (&_x == &_y);                \
     31            _x > _y ? _x : _y; })
    3232
    3333void help(const char *argv0)
    3434{
    35   fprintf(stderr,
    36           "Syntax: %s addr:port load\n",
    37           argv0);
    38   exit(1);
     35    fprintf(stderr,
     36            "Syntax: %s addr:port load\n",
     37            argv0);
     38    exit(1);
    3939}
    4040
    4141int connect_fd = -1;
    4242
    43 void activity(int signum)
     43void
     44activity(int signum)
    4445{
    45   write(connect_fd, "hello\n\r", 7);
    46   write(1,".",1);
     46    write(connect_fd, "hello\n\r", 7);
     47    write(1,".",1);
    4748}
    4849
    4950
    50 int main(int argc, char *argv[])
     51int
     52main(int argc, char *argv[])
    5153{
    52   int val;
    53   int status;
    54   struct sockaddr_in connect_addr;
    55   int connect_port = -1;
     54    int status;
     55    int connect_port = -1;
    5656
    57   if (argc != 3) {
    58     help(argv[0]);
    59   }
     57    if (argc != 3) {
     58        help(argv[0]);
     59    }
    6060
    61   char addr[100];
    62   if (sscanf(argv[1], "%100[^:\n]:%d\n", addr, &connect_port) != 2) {
    63     help(argv[0]);
    64   }
    65   int memory = strtoul(argv[2],0,0);
     61    char addr[100];
     62    if (sscanf(argv[1], "%100[^:\n]:%d\n", addr, &connect_port) != 2) {
     63        help(argv[0]);
     64    }
     65    int memory = strtoul(argv[2],0,0);
    6666
    67   connect_fd = connect_renderer(addr, connect_port, memory);
     67    connect_fd = connect_renderer(addr, connect_port, memory);
    6868
    69   if (connect_fd == -1) {
    70     return 1;
    71   }
     69    if (connect_fd == -1) {
     70        return 1;
     71    }
    7272
    73   printf("Connection accepted.\n");
     73    printf("Connection accepted.\n");
    7474
    7575#ifdef DEBUGGING
    76   if (signal(SIGALRM, activity) == SIG_ERR) {
    77     perror("signal");
    78   }
     76    if (signal(SIGALRM, activity) == SIG_ERR) {
     77        perror("signal");
     78    }
    7979
    80   struct itimerval itvalue = {
    81     {0,500000}, {0,500000}
    82   };
    83   status = setitimer(ITIMER_REAL, &itvalue, NULL);
     80    struct itimerval itvalue = {
     81        {0,500000}, {0,500000}
     82    };
     83    status = setitimer(ITIMER_REAL, &itvalue, NULL);
    8484#endif
    8585
    86   fd_set rfds;
    87   FD_ZERO(&rfds);
    88   while(1) {
    89     char buffer[100];
    90     FD_SET(0,&rfds);
    91     FD_SET(connect_fd,&rfds);
    92     status = select(connect_fd+1, &rfds, NULL, NULL, NULL);
    93     if (FD_ISSET(0,&rfds)) {
    94       status = read(0,buffer,sizeof(buffer));
    95       if (status <= 0) {
    96         fprintf(stderr,"Goodbye\n");
    97         exit(0);
    98       } else {
    99         status = write(connect_fd, buffer, status);
    100         if (status < 0) {
    101           perror("write");
    102         }
    103       }
     86    fd_set rfds;
     87    FD_ZERO(&rfds);
     88    while(1) {
     89        char buffer[100];
     90        FD_SET(0,&rfds);
     91        FD_SET(connect_fd,&rfds);
     92        status = select(connect_fd+1, &rfds, NULL, NULL, NULL);
     93        if (FD_ISSET(0,&rfds)) {
     94            status = read(0,buffer,sizeof(buffer));
     95            if (status <= 0) {
     96                fprintf(stderr,"Goodbye\n");
     97                exit(0);
     98            } else {
     99                status = write(connect_fd, buffer, status);
     100                if (status < 0) {
     101                    perror("write");
     102                }
     103            }
     104        } else if (FD_ISSET(connect_fd,&rfds)) {
     105            status = read(connect_fd,buffer,sizeof(buffer));
     106            if (status <= 0) {
     107                fprintf(stderr,"Server closed connection\n");
     108                exit(0);
     109            } else {
     110                status = write(1, buffer, status);
     111                if (status < 0) {
     112                    perror("write");
     113                }
     114            }
     115        } else {
     116            fprintf(stderr,"Strange case for select: %d\n", status);
     117            exit(1);
     118        }
    104119    }
    105120
    106     else if (FD_ISSET(connect_fd,&rfds)) {
    107       status = read(connect_fd,buffer,sizeof(buffer));
    108       if (status <= 0) {
    109         fprintf(stderr,"Server closed connection\n");
    110         exit(0);
    111       } else {
    112         status = write(1, buffer, status);
    113         if (status < 0) {
    114           perror("write");
    115         }
    116       }
    117     }
    118 
    119     else {
    120       fprintf(stderr,"Strange case for select: %d\n", status);
    121       exit(1);
    122     }
    123   }
    124 
    125   return 0;
     121    return 0;
    126122}
    127123
  • trunk/packages/vizservers/nanovis/Axis.cpp

    r1028 r1111  
    8383Ticks::SetTicks(void)
    8484{
    85     _nTicks = 0;
    86     _ticks = new float[_nSteps];
    87     if (_step == 0.0) {
     85    numTicks_ = 0;
     86    ticks_ = new float[nSteps_];
     87    if (step_ == 0.0) {
    8888        /* Hack: A zero step indicates to use log values. */
    8989        unsigned int i;
     
    101101            1.0
    102102        };
    103         for (i = 0; i < _nSteps; i++) {
    104             _ticks[i] = logTable[i];
     103        for (i = 0; i < nSteps_; i++) {
     104            ticks_[i] = logTable[i];
    105105        }
    106106    } else {
     
    108108        unsigned int i;
    109109   
    110         value = _initial;       /* Start from smallest axis tick */
    111         for (i = 0; i < _nSteps; i++) {
    112             value = _initial + (_step * i);
    113             _ticks[i] = UROUND(value, _step);
    114         }
    115     }
    116     _nTicks = _nSteps;
    117 }
    118 
    119 Axis::Axis(const char *name) :
    120     _major(5), _minor(2)
    121 {
    122     _name = NULL;
    123     SetName(name);
    124     _units = NULL;
    125     _title = NULL;
    126     _valueMin = DBL_MAX, _valueMax = -DBL_MAX;
    127     _min = DBL_MAX, _max = -DBL_MAX;
    128     _reqMin = _reqMax = _NaN;
    129     _range = 0.0, _scale = 0.0;
    130     _reqStep = 0.0;
    131     _flags = AUTOSCALE;
     110        value = initial_;       /* Start from smallest axis tick */
     111        for (i = 0; i < nSteps_; i++) {
     112            value = initial_ + (step_ * i);
     113            ticks_[i] = UROUND(value, step_);
     114        }
     115    }
     116    numTicks_ = nSteps_;
     117}
     118
     119Axis::Axis(const char *axisName) :
     120    major_(5), minor_(2)
     121{
     122    name_ = NULL;
     123    name(axisName);
     124    units_ = NULL;
     125    title_ = NULL;
     126    valueMin_ = DBL_MAX, valueMax_ = -DBL_MAX;
     127    min_ = DBL_MAX, max_ = -DBL_MAX;
     128    reqMin_ = reqMax_ = _NaN;
     129    range_ = 0.0, scale_ = 0.0;
     130    reqStep_ = 0.0;
     131    flags_ = AUTOSCALE;
    132132}
    133133
     
    156156Axis::InRange(double x)
    157157{
    158     if (_range < DBL_EPSILON) {
    159         return (fabs(_max - x) >= DBL_EPSILON);
     158    if (range_ < DBL_EPSILON) {
     159        return (fabs(max_ - x) >= DBL_EPSILON);
    160160    } else {
    161         x = (x - _min) * _scale;
     161        x = (x - min_) * scale_;
    162162        return ((x >= -DBL_EPSILON) && ((x - 1.0) < DBL_EPSILON));
    163163    }
     
    168168{
    169169    if (min == DBL_MAX) {
    170         if (DEFINED(_reqMin)) {
    171             min = _reqMin;
    172         } else {
    173             min = (_flags & LOGSCALE) ? 0.001 : 0.0;
     170        if (DEFINED(reqMin_)) {
     171            min = reqMin_;
     172        } else {
     173            min = (flags_ & LOGSCALE) ? 0.001 : 0.0;
    174174        }
    175175    }
    176176    if (max == -DBL_MAX) {
    177         if (DEFINED(_reqMax)) {
    178             max = _reqMax;
     177        if (DEFINED(reqMax_)) {
     178            max = reqMax_;
    179179        } else {
    180180            max = 1.0;
     
    197197     * values selected by the user with the -min or -max options.
    198198     */
    199     _valueMin = (DEFINED(_reqMin)) ? _reqMin : min;
    200     _valueMax = (DEFINED(_reqMax)) ? _reqMax : max;
    201     if (_valueMax < _valueMin) {
     199    valueMin_ = (DEFINED(reqMin_)) ? reqMin_ : min;
     200    valueMax_ = (DEFINED(reqMax_)) ? reqMax_ : max;
     201    if (valueMax_ < valueMin_) {
    202202        /*   
    203203         * If the limits still don't make sense, it's because one limit
     
    206206         * up a new min or max from the user-defined limit.
    207207         */
    208         if (!DEFINED(_reqMin)) {
    209             _valueMin = _valueMax - (fabs(_valueMax) * 0.1);
    210         }
    211         if (!DEFINED(_reqMax)) {
    212             _valueMax = _valueMin + (fabs(_valueMax) * 0.1);
     208        if (!DEFINED(reqMin_)) {
     209            valueMin_ = valueMax_ - (fabs(valueMax_) * 0.1);
     210        }
     211        if (!DEFINED(reqMax_)) {
     212            valueMax_ = valueMin_ + (fabs(valueMax_) * 0.1);
    213213        }
    214214    }
     
    301301    majorStep = minorStep = 0.0;
    302302    tickMin = tickMax = _NaN;
    303     min = _valueMin, max = _valueMax;
     303    min = valueMin_, max = valueMax_;
    304304    if (min < max) {
    305305        min = (min != 0.0) ? log10(fabs(min)) : 0.0;
     
    314314             * decade.  Instead, treat the axis as a linear scale.  */
    315315            range = NiceNum(range, 0);
    316             majorStep = NiceNum(range / _major.reqNumTicks, 1);
     316            majorStep = NiceNum(range / major_.reqNumTicks, 1);
    317317            tickMin = UFLOOR(tickMin, majorStep);
    318318            tickMax = UCEIL(tickMax, majorStep);
     
    339339            nMinor = 10;
    340340        }
    341         if ((_flags & TIGHT_MIN) || (DEFINED(_reqMin))) {
     341        if ((flags_ & TIGHT_MIN) || (DEFINED(reqMin_))) {
    342342            tickMin = min;
    343343            nMajor++;
    344344        }
    345         if ((_flags & TIGHT_MAX) || (DEFINED(_reqMax))) {
     345        if ((flags_ & TIGHT_MAX) || (DEFINED(reqMax_))) {
    346346            tickMax = max;
    347347        }
    348348    }
    349     _major.SetValues(majorStep, nMajor, floor(tickMin));
    350     _minor.SetValues(minorStep, nMinor, minorStep);
    351     _min = tickMin;
    352     _max = tickMax;
    353     _range = _max - _min;
    354     _scale = 1.0 / _range;
     349    major_.SetValues(majorStep, nMajor, floor(tickMin));
     350    minor_.SetValues(minorStep, nMinor, minorStep);
     351    min_ = tickMin;
     352    max_ = tickMax;
     353    range_ = max_ - min_;
     354    scale_ = 1.0 / range_;
    355355}
    356356
     
    427427    /* Suppress compiler warning. */
    428428    tickMin = tickMax = 0.0;
    429     if (_valueMin < _valueMax) {
     429    if (valueMin_ < valueMax_) {
    430430        double range;
    431431
    432         range = _valueMax - _valueMin;
     432        range = valueMax_ - valueMin_;
    433433        /* Calculate the major tick stepping. */
    434         if (_reqStep > 0.0) {
     434        if (reqStep_ > 0.0) {
    435435            /* An interval was designated by the user.  Keep scaling it until
    436436             * it fits comfortably within the current range of the axis.  */
    437             step = _reqStep;
     437            step = reqStep_;
    438438            while ((2 * step) >= range) {
    439439                step *= 0.5;
     
    441441        } else {
    442442            range = NiceNum(range, 0);
    443             step = NiceNum(range / _major.reqNumTicks, 1);
     443            step = NiceNum(range / major_.reqNumTicks, 1);
    444444        }
    445445       
    446446        /* Find the outer tick values. Add 0.0 to prevent getting -0.0. */
    447         tickMin = floor(_valueMin / step) * step + 0.0;
    448         tickMax = ceil(_valueMax / step) * step + 0.0;
     447        tickMin = floor(valueMin_ / step) * step + 0.0;
     448        tickMax = ceil(valueMax_ / step) * step + 0.0;
    449449       
    450450        nTicks = ROUND((tickMax - tickMin) / step) + 1;
    451451    }
    452     _major.SetValues(tickMin, step, nTicks);
     452    major_.SetValues(tickMin, step, nTicks);
    453453
    454454    /*
     
    460460     * assume that user would have picked a different number).
    461461     */
    462     _min = ((_flags & TIGHT_MIN)||(DEFINED(_reqMin))) ? _valueMin : tickMin;
    463     _max = ((_flags & TIGHT_MAX)||(DEFINED(_reqMax))) ? _valueMax : tickMax;
    464     _range = _max - _min;
    465     _scale = 1.0 / _range;
     462    min_ = ((flags_ & TIGHT_MIN)||(DEFINED(reqMin_))) ? valueMin_ : tickMin;
     463    max_ = ((flags_ & TIGHT_MAX)||(DEFINED(reqMax_))) ? valueMax_ : tickMax;
     464    range_ = max_ - min_;
     465    scale_ = 1.0 / range_;
    466466
    467467    /* Now calculate the minor tick step and number. */
    468468
    469     if ((_minor.reqNumTicks > 0) && (_minor.IsAutoScale())) {
    470         nTicks = _minor.reqNumTicks - 1;
     469    if ((minor_.reqNumTicks > 0) && (minor_.autoscale())) {
     470        nTicks = minor_.reqNumTicks - 1;
    471471        step = 1.0 / (nTicks + 1);
    472472    } else {
     
    476476                                 * create minor log-scale tick marks.  */
    477477    }
    478     _minor.SetValues(step, step, nTicks);
     478    minor_.SetValues(step, step, nTicks);
    479479}
    480480
     
    484484{
    485485    FixRange(min, max);
    486     if (_flags & LOGSCALE) {
     486    if (flags_ & LOGSCALE) {
    487487        LogScale();
    488488    } else {
    489489        LinearScale();
    490490    }
    491     _major.SweepTicks();
    492     _minor.SweepTicks();
     491    major_.SweepTicks();
     492    minor_.SweepTicks();
    493493    MakeTicks();
    494494}
     
    497497Axis::MakeTicks(void)
    498498{
    499     _major.Reset();
    500     _minor.Reset();
     499    major_.Reset();
     500    minor_.Reset();
    501501    int i;
    502     for (i = 0; i < _major.NumTicks(); i++) {
     502    for (i = 0; i < major_.numTicks(); i++) {
    503503        double t1, t2;
    504504        int j;
    505505       
    506         t1 = _major.GetTick(i);
     506        t1 = major_.tick(i);
    507507        /* Minor ticks */
    508         for (j = 0; j < _minor.NumTicks(); j++) {
    509             t2 = t1 + (_major.Step() * _minor.GetTick(j));
     508        for (j = 0; j < minor_.numTicks(); j++) {
     509            t2 = t1 + (major_.step() * minor_.tick(j));
    510510            if (!InRange(t2)) {
    511511                continue;
     
    514514                continue;       // Don't add duplicate minor ticks.
    515515            }
    516             _minor.Append(t2);
     516            minor_.Append(t2);
    517517        }
    518518        if (!InRange(t1)) {
    519519            continue;
    520520        }
    521         _major.Append(t1);
     521        major_.Append(t1);
    522522    }
    523523}
     
    526526Axis::Map(double x)
    527527{
    528     if ((_flags & LOGSCALE) && (x != 0.0)) {
     528    if ((flags_ & LOGSCALE) && (x != 0.0)) {
    529529        x = log10(fabs(x));
    530530    }
    531531    /* Map graph coordinate to normalized coordinates [0..1] */
    532     x = (x - _min) * _scale;
    533     if (_flags & DESCENDING) {
     532    x = (x - min_) * scale_;
     533    if (flags_ & DESCENDING) {
    534534        x = 1.0 - x;
    535535    }
     
    540540Axis::InvMap(double x)
    541541{
    542     if (_flags & DESCENDING) {
     542    if (flags_ & DESCENDING) {
    543543        x = 1.0 - x;
    544544    }
    545     x = (x * _range) + _min;
    546     if (_flags & LOGSCALE) {
     545    x = (x * range_) + min_;
     546    if (flags_ & LOGSCALE) {
    547547        x = EXP10(x);
    548548    }
  • trunk/packages/vizservers/nanovis/Axis.h

    r1028 r1111  
    88class NaN {
    99private:
    10     double _x;
     10    double x_;
    1111public:
    1212    NaN(void) {
     
    2323        result.words[1] = 0x7ff80000;
    2424#endif
    25         _x = result.value;
     25        x_ = result.value;
    2626    }
    2727    operator const double() {
    28         return _x;
     28        return x_;
    2929    }
    3030};
     
    3333
    3434class TickIter {
    35     ChainLink *_linkPtr;
     35    ChainLink *linkPtr_;
    3636public:
    3737    void SetStartingLink(ChainLink *linkPtr) {
    38         _linkPtr = linkPtr;
     38        linkPtr_ = linkPtr;
    3939    }
    4040    bool Next(void) {
    41         if (_linkPtr == NULL) {
     41        if (linkPtr_ == NULL) {
    4242            return false;
    4343        }
    44         _linkPtr = _linkPtr->Next();
    45         return (_linkPtr != NULL);
     44        linkPtr_ = linkPtr_->Next();
     45        return (linkPtr_ != NULL);
    4646    }
    4747    float GetValue(void) {
     
    5050            void *clientData;
    5151        } value;
    52         value.clientData = _linkPtr->GetValue();
     52        value.clientData = linkPtr_->GetValue();
    5353        return value.x;
    5454    }
     
    6666 */
    6767class Ticks {
    68     bool _autoscale;            /* Indicates if the ticks are autoscaled. */
     68    bool autoscale_;            /* Indicates if the ticks are autoscaled. */
    6969    /*
    7070     * Tick locations may be generated in two fashions
    7171     */
    7272    /*   1. an array of values provided by the user. */
    73     int _nTicks;                /* # of ticks on axis */
    74     float *_ticks;              /* Array of tick values (alloc-ed).  Right now
     73    int numTicks_;              /* # of ticks on axis */
     74    float *ticks_;              /* Array of tick values (alloc-ed).  Right now
    7575                                 * it's a float so we don't have to allocate
    7676                                 * store for the list of ticks generated.  In
     
    8383     *      will generate the an array of values.
    8484     */
    85     double _initial;            /* Initial value */
    86     double _step;               /* Size of interval */
    87     unsigned int _nSteps;       /* Number of intervals. */
     85    double initial_;            /* Initial value */
     86    double step_;               /* Size of interval */
     87    unsigned int nSteps_;       /* Number of intervals. */
    8888
    8989    /*
     
    9393     * the chain.
    9494     */
    95     Chain _chain;               
     95    Chain chain_;               
    9696
    9797    void SetTicks(void);        /* Routine used internally to create the array
     
    111111    Ticks(int numTicks) {
    112112        reqNumTicks = numTicks;
    113         _ticks = NULL;
    114         _nTicks = 0;
    115         _autoscale = true;
     113        ticks_ = NULL;
     114        numTicks_ = 0;
     115        autoscale_ = true;
    116116    }
    117117    ~Ticks(void) {
    118         if (_ticks != NULL) {
    119             delete [] _ticks;
    120         }
    121         _chain.Reset();
     118        if (ticks_ != NULL) {
     119            delete [] ticks_;
     120        }
     121        chain_.Reset();
    122122       
    123123    }
    124124    void SetTicks(float *ticks, int nTicks) {
    125         _ticks = ticks, _nTicks = nTicks;
    126     }
    127     int NumTicks(void) {
    128         return _nTicks;
    129     }
    130     double GetTick(int i) {
    131         if ((i < 0) || (i >= _nTicks)) {
     125        ticks_ = ticks, numTicks_ = nTicks;
     126    }
     127    int numTicks(void) {
     128        return numTicks_;
     129    }
     130    double tick(int i) {
     131        if ((i < 0) || (i >= numTicks_)) {
    132132            return _NaN;
    133133        }
    134         return _ticks[i];
     134        return ticks_[i];
    135135    }
    136136    void Reset(void) {
    137         _chain.Reset();
    138     }
    139     float Step() {
    140         return _step;
     137        chain_.Reset();
     138    }
     139    float step() {
     140        return step_;
    141141    }
    142142    void Append (float x) {
    143         _chain.Append(GetClientData(x));
     143        chain_.Append(GetClientData(x));
    144144    }   
    145145    void SetValues(double initial, double step, unsigned int nSteps) {
    146         _initial = initial, _step = step, _nSteps = nSteps;
    147     }
    148     bool IsAutoScale(void) {
    149         return _autoscale;
     146        initial_ = initial, step_ = step, nSteps_ = nSteps;
     147    }
     148    bool autoscale(void) {
     149        return autoscale_;
    150150    }
    151151    void SweepTicks(void) {
    152         if (_autoscale) {
    153             if (_ticks != NULL) {
    154                 delete [] _ticks;
     152        if (autoscale_) {
     153            if (ticks_ != NULL) {
     154                delete [] ticks_;
    155155            }
    156156            SetTicks();
     
    160160        ChainLink *linkPtr;
    161161
    162         linkPtr = _chain.FirstLink();
     162        linkPtr = chain_.FirstLink();
    163163        iter.SetStartingLink(linkPtr);
    164164        return (linkPtr != NULL);
     
    187187    };
    188188
    189     const char *_name;          /* Name of the axis. Malloc-ed */
    190 
    191     unsigned int _flags;
    192 
    193     const char *_title;         /* Title of the axis. */
    194 
    195     const char *_units;         /* Units of the axis. */
    196 
    197     double _valueMin, _valueMax; /* The limits of the data. */
    198 
    199     double _reqMin, _reqMax;    /* Requested axis bounds. Consult the
     189    const char *name_;          /* Name of the axis. Malloc-ed */
     190
     191    unsigned int flags_;
     192
     193    const char *title_;         /* Title of the axis. */
     194
     195    const char *units_;         /* Units of the axis. */
     196
     197    double valueMin_, valueMax_; /* The limits of the data. */
     198
     199    double reqMin_, reqMax_;    /* Requested axis bounds. Consult the
    200200                                 * axisPtr->flags field for
    201201                                 * Axis::CONFIG_MIN and Axis::CONFIG_MAX
     
    205205                                 * (determined by auto-scaling). */
    206206
    207     double _min, _max;          /* Smallest and largest major tick values for
     207    double min_, max_;          /* Smallest and largest major tick values for
    208208                                 * the axis.  If loose, the tick values lie
    209209                                 * outside the range of data values.  If
     
    211211                                 * the data. */
    212212
    213     double _range;              /* Range of values on axis (_max - _min) */
    214     double _scale;              /* Scale factor for axis (1.0/_range) */
    215 
    216     double _reqStep;            /* If > 0.0, overrides the computed major tick
     213    double range_;              /* Range of values on axis (max_ - min_) */
     214    double scale_;              /* Scale factor for axis (1.0/_range) */
     215
     216    double reqStep_;            /* If > 0.0, overrides the computed major tick
    217217                                 * interval.  Otherwise a stepsize is
    218218                                 * automatically calculated, based upon the
     
    220220                                 * default value is 0.0. */
    221221
    222     Ticks _major, _minor;
     222    Ticks major_, minor_;
    223223
    224224    void LogScale(void);
     
    230230    Axis(const char *name);
    231231    ~Axis(void) {
    232         if (_name != NULL) {
    233             free((void *)_name);
    234         }
    235         if (_units != NULL) {
    236             free((void *)_units);
    237         }
    238         if (_title != NULL) {
    239             free((void *)_title);
     232        if (name_ != NULL) {
     233            free((void *)name_);
     234        }
     235        if (units_ != NULL) {
     236            free((void *)units_);
     237        }
     238        if (title_ != NULL) {
     239            free((void *)title_);
    240240        }
    241241    }
     
    244244    void FixRange(double min, double max);
    245245    void SetScale(double min, double max);
    246     double Scale(void) {
    247         return _scale;
    248     }
    249     double Range(void) {
    250         return _range;
     246    double scale(void) {
     247        return scale_;
     248    }
     249    double range(void) {
     250        return range_;
    251251    }
    252252    bool FirstMajor(TickIter &iter) {
    253         return _major.FirstTick(iter);
     253        return major_.FirstTick(iter);
    254254    }
    255255    bool FirstMinor(TickIter &iter) {
    256         return _minor.FirstTick(iter);
     256        return minor_.FirstTick(iter);
    257257    }
    258258    void GetDataLimits(double &min, double &max) {
    259         min = _valueMin, max = _valueMax;
     259        min = valueMin_, max = valueMax_;
    260260    }
    261261    double Map(double x);
    262262    double InvMap(double x);
    263     const char *GetName(void) {
    264         return (_name == NULL) ? "???" : _name;
    265     }
    266     void SetName(const char *name) {
    267         if (_name != NULL) {
    268             free((void *)_name);
    269         }
    270         _name = strdup(name);
    271     }
    272     const char *GetUnits(void) {
    273         return (_units == NULL) ? "???" : _units;
    274     }
    275     void SetUnits(const char *units) {
    276         if (_units != NULL) {
    277             free((void *)_units);
    278         }
    279         _units = strdup(units);
    280     }
    281     const char *GetTitle(void) {
    282         return (_title == NULL) ? "???" : _title;
    283     }
    284     void SetTitle(const char *title) {
    285         if (_title != NULL) {
    286             free((void *)_title);
    287         }
    288         _title = strdup(title);
    289     }
    290     void SetMin(double min) {
    291         _reqMin = min;          // Setting to NaN resets min to "auto"
    292     }
    293     void SetMax(double min) {
    294         _reqMin = min;          // Setting to NaN resets max to "auto"
     263    const char *name(void) {
     264        return (name_ == NULL) ? "???" : name_;
     265    }
     266    void name(const char *name) {
     267        if (name_ != NULL) {
     268            free((void *)name_);
     269        }
     270        name_ = strdup(name);
     271    }
     272    const char *units(void) {
     273        return (units_ == NULL) ? "???" : units_;
     274    }
     275    void units(const char *units) {
     276        if (units_ != NULL) {
     277            free((void *)units_);
     278        }
     279        units_ = strdup(units);
     280    }
     281    const char *title(void) {
     282        return (title_ == NULL) ? "???" : title_;
     283    }
     284    void title(const char *title) {
     285        if (title_ != NULL) {
     286            free((void *)title_);
     287        }
     288        title_ = strdup(title);
     289    }
     290    double min(void) {
     291        return min_;           
     292    }
     293    void min(double min) {
     294        reqMin_ = min; 
     295    }
     296    double max(void) {
     297        return max_;           
     298    }
     299    void max(double max) {
     300        reqMax_ = max; 
    295301    }
    296302    void SetLimits(double min, double max) {
    297         SetMin(min), SetMax(max);
     303        reqMin_ = min, reqMax_ = max;
    298304    }
    299305    void UnsetLimits() {
    300         SetMin(_NaN), SetMax(_NaN);
     306        min(_NaN), max(_NaN);
    301307    }
    302308    void SetDescendingOption(bool value) {
    303309        if (value) {
    304             _flags |= DESCENDING;
     310            flags_ |= DESCENDING;
    305311        } else {
    306             _flags &= ~DESCENDING;
     312            flags_ &= ~DESCENDING;
    307313        }
    308314    }
    309315    void SetTightMinOption(bool value) {
    310316        if (value) {
    311             _flags |= TIGHT_MIN;
     317            flags_ |= TIGHT_MIN;
    312318        } else {
    313             _flags &= ~TIGHT_MIN;
     319            flags_ &= ~TIGHT_MIN;
    314320        }
    315321    }
    316322    void SetTightMaxOption(bool value) {
    317323        if (value) {
    318             _flags |= TIGHT_MAX;
     324            flags_ |= TIGHT_MAX;
    319325        } else {
    320             _flags &= ~TIGHT_MAX;
     326            flags_ &= ~TIGHT_MAX;
    321327        }
    322328    }
    323329    void SetLogScaleOption(bool value) {
    324330        if (value) {
    325             _flags |= LOGSCALE;
     331            flags_ |= LOGSCALE;
    326332        } else {
    327             _flags &= ~LOGSCALE;
     333            flags_ &= ~LOGSCALE;
    328334        }
    329335    }
    330336    void SetMajorStepOption(double value) {
    331         _reqStep = value;       // Setting to 0.0 resets step to "auto"
     337        reqStep_ = value;       // Setting to 0.0 resets step to "auto"
    332338    }
    333339    void SetNumMinorTicksOption(int n) {
    334         _minor.reqNumTicks = n;
     340        minor_.reqNumTicks = n;
    335341    }
    336342    void SetNumMajorTicksOption(int n) {
    337         _major.reqNumTicks = n;
     343        major_.reqNumTicks = n;
    338344    }
    339345};
  • trunk/packages/vizservers/nanovis/AxisRange.h

    r932 r1111  
    33
    44class AxisRange {
    5     double _min, _max;
     5    double min_, max_;
    66public:
    77    AxisRange(void) {
    8         SetRange(0.0, 1.0);
     8        min(0.0), max(1.0);
    99    }
    1010    void SetRange(double min, double max) {
    11         _min = min, _max = max;
     11        min_ = min, max_ = max;
    1212    }
    13     double Min(void) {
    14         return _min;
     13    double min(void) {
     14        return min_;
    1515    }
    16     double Max(void) {
    17         return _max;
     16    void min(double min) {
     17        min_ = min;
     18    }
     19    double max(void) {
     20        return max_;
     21    }
     22    void max(double max) {
     23        max_ = max;
    1824    }
    1925};
  • trunk/packages/vizservers/nanovis/Command.cpp

    r1089 r1111  
    3333 *          the vector. 1) Use a list instead of a vector. 2) carry
    3434 *          an id field that's a number that gets incremented each new volume.
    35  *        x Create R2, matrix, etc. libraries. (done)
    36  *        o Add bookkeeping for volumes, heightmaps, flows, etc. to track
     35 *        x Create R2, matrix, etc. libraries. (done) *        o Add bookkeeping for volumes, heightmaps, flows, etc. to track
    3736 *          1) id #  2) simulation # 3) include/exclude.  The include/exclude
    3837 *          is to indicate whether the item should contribute to the overall
     
    9089// in nanovis.cpp
    9190extern vector<PointSet*> g_pointSet;
     91extern int debug_flag;
    9292
    9393extern PlaneRenderer* plane_render;
     
    655655    char buffer[8096];
    656656
    657     clearerr(stdin);
     657    clearerr(NanoVis::stdin);
    658658    while (nBytes > 0) {
    659659        unsigned int chunk;
     
    662662        chunk = (sizeof(buffer) < (unsigned int) nBytes) ?
    663663            sizeof(buffer) : nBytes;
    664         nRead = fread(buffer, sizeof(char), chunk, stdin);
    665         if (ferror(stdin)) {
     664        nRead = fread(buffer, sizeof(char), chunk, NanoVis::stdin);
     665        if (ferror(NanoVis::stdin)) {
    666666            Tcl_AppendResult(interp, "while reading data stream: ",
    667667                             Tcl_PosixError(interp), (char*)NULL);
    668668            return TCL_ERROR;
    669669        }
    670         if (feof(stdin)) {
     670        if (feof(NanoVis::stdin)) {
    671671            Tcl_AppendResult(interp, "premature EOF while reading data stream",
    672672                             (char*)NULL);
     
    925925        NanoVis::SetVolumeRanges();
    926926    }
    927     NanoVis::render_legend(tf, Volume::valueMin, Volume::valueMax, w, h, label);
     927    NanoVis::render_legend(tf,
     928                           NanoVis::grid->yAxis.min(),
     929                           NanoVis::grid->yAxis.max(), w, h, label);
    928930    return TCL_OK;
    929931}
     
    13321334        volPtr = NanoVis::volume[n];
    13331335        sprintf(info, "nv>data id %d min %g max %g vmin %g vmax %g\n",
    1334                 n, volPtr->wAxis.Min(), volPtr->wAxis.Max(),
     1336                n, volPtr->wAxis.min(), volPtr->wAxis.max(),
    13351337                Volume::valueMin, Volume::valueMax);
    13361338        write(0, info, strlen(info));
     
    17151717                volPtr->height / (float)volPtr->width,
    17161718                volPtr->depth  / (float)volPtr->width,
    1717                 volPtr->wAxis.Max());
     1719                volPtr->wAxis.max());
    17181720            NanoVis::initParticle();
    17191721        }
     
    17231725                1.0f / volPtr->aspect_ratio_height,
    17241726                1.0f / volPtr->aspect_ratio_depth,
    1725                 volPtr->wAxis.Max());
     1727                volPtr->wAxis.max());
    17261728            NanoVis::licRenderer->set_offset(NanoVis::lic_slice_z);
    17271729        }
     
    19301932    result = Tcl_Eval(interp, buf.bytes());
    19311933    if (result != TCL_OK) {
    1932         fprintf(stderr, "error in command: %s\n", Tcl_GetStringResult(interp));
    1933         fflush(stderr);
     1934        fprintf(NanoVis::logfile, "error in command: %s\n",
     1935                Tcl_GetStringResult(interp));
     1936        fflush(NanoVis::logfile);
    19341937    }
    19351938    return result;
     
    22342237        case 2: axisPtr = &NanoVis::grid->zAxis; break;
    22352238        }
    2236         axisPtr->SetName(Tcl_GetString(objv[3]));
    2237         axisPtr->SetUnits(Tcl_GetString(objv[4]));
     2239        axisPtr->name(Tcl_GetString(objv[3]));
     2240        axisPtr->units(Tcl_GetString(objv[4]));
    22382241    }
    22392242    return TCL_OK;
     
    25282531    HeightMap* hmPtr;
    25292532    hmPtr = new HeightMap();
     2533
    25302534    hmPtr->setHeight(xMin, yMin, xMax, yMax, xNum, yNum, zValues);
    25312535    hmPtr->setColorMap(NanoVis::get_transfunc("default"));
     
    25332537    hmPtr->setLineContourVisible(true);
    25342538    NanoVis::heightMap.push_back(hmPtr);
    2535     delete [] zValues;
    25362539    return TCL_OK;
    25372540}
     
    25722575    // create a default transfer function
    25732576    if (Tcl_Eval(interp, def_transfunc) != TCL_OK) {
    2574         fprintf(stdin, "WARNING: bad default transfer function\n");
    2575         fprintf(stdin, Tcl_GetStringResult(interp));
     2577        fprintf(NanoVis::logfile, "WARNING: bad default transfer function\n");
     2578        fprintf(NanoVis::logfile, Tcl_GetStringResult(interp));
    25762579    }
    25772580}
     
    26012604        //
    26022605        while (1) {
    2603             char c = getchar();
     2606            int c = fgetc(NanoVis::stdin);
     2607            char ch;
    26042608            if (c <= 0) {
    26052609                if (npass == 0) {
     
    26092613                }
    26102614            }
    2611             Tcl_DStringAppend(&cmdbuffer, &c, 1);
    2612 
    2613             if (c=='\n' && Tcl_CommandComplete(Tcl_DStringValue(&cmdbuffer))) {
     2615            ch = (char)c;
     2616            Tcl_DStringAppend(&cmdbuffer, &ch, 1);
     2617
     2618            if (ch=='\n' && Tcl_CommandComplete(Tcl_DStringValue(&cmdbuffer))) {
    26142619                break;
    26152620            }
    26162621        }
    2617 
    26182622        // no command? then we're done for now
    26192623        if (Tcl_DStringLength(&cmdbuffer) == 0) {
     
    26232627        // back to original flags during command evaluation...
    26242628        fcntl(0, F_SETFL, flags & ~O_NONBLOCK);
     2629        if (debug_flag) {
     2630            fprintf(NanoVis::logfile, "%s\n", Tcl_DStringValue(&cmdbuffer));
     2631        }
    26252632        status = Tcl_Eval(interp, Tcl_DStringValue(&cmdbuffer));
    26262633        Tcl_DStringSetLength(&cmdbuffer, 0);
     
    26352642        const char *string;
    26362643        int nBytes;
    2637         string = Tcl_GetStringFromObj(Tcl_GetObjResult(_interp), &nBytes);
    2638 
     2644
     2645        string = Tcl_GetStringFromObj(Tcl_GetObjResult(interp), &nBytes);
    26392646        struct iovec iov[3];
    2640         iov[0].iov_base = "NanoVis Server Error: ";
    2641         iov[0].iov_len = strlen(iov[0].iov_base);
    2642         iov[1].iov_base = string;
     2647        iov[0].iov_base = (char *)"NanoVis Server Error: ";
     2648        iov[0].iov_len = strlen((char *)iov[0].iov_base);
     2649        iov[1].iov_base = (char *)string;
    26432650        iov[1].iov_len = nBytes;
    2644         iov[2].iov_base = '\n';
     2651        iov[2].iov_base = (char *)'\n';
    26452652        iov[2].iov_len = 1;
    26462653        writev(0, iov, 3);
  • trunk/packages/vizservers/nanovis/Grid.cpp

    r1053 r1111  
    3232#endif
    3333#ifdef notdef
    34     glScalef(xAxis.Scale(),
    35              yAxis.Range() / xAxis.Range(),
    36              zAxis.Range() / xAxis.Range());
     34    glScalef(xAxis.scale(),
     35             yAxis.range() / xAxis.range(),
     36             zAxis.range() / xAxis.range());
    3737#endif
    3838    glScalef(1.0, 1.0, 1.0);
     
    141141            glLoadIdentity();
    142142            glTranslatef((int) wx, viewport[3] - (int) wy, 0);
    143             _font->draw(xAxis.GetName());
     143            _font->draw(xAxis.name());
    144144        }
    145145       
     
    147147            glLoadIdentity();
    148148            glTranslatef((int) wx, viewport[3] - (int)wy, 0);
    149             _font->draw(yAxis.GetName());
     149            _font->draw(yAxis.name());
    150150        }
    151151       
     
    153153            glLoadIdentity();
    154154            glTranslatef((int) wx, (int) viewport[3] - (int)wy, 0.0f);
    155             _font->draw(zAxis.GetName());
     155            _font->draw(zAxis.name());
    156156        }
    157157       
  • trunk/packages/vizservers/nanovis/HeightMap.cpp

    r1028 r1111  
    11 
    2 #include <GL/glew.h>
    3 #include <GL/gl.h>
    4 #include "HeightMap.h"
    5 #include "ContourLineFilter.h"
    6 #include "TypeDefs.h"
    7 #include <Texture1D.h>
     2#include <memory.h>
    83#include <stdlib.h>
    9 #include <memory.h>
    10 #include <R2/R2FilePath.h>
    11 #include "RpField1D.h"
    124#include <sys/time.h>
    135#include <sys/types.h>
    146#include <unistd.h>
    157#include <fcntl.h>
    16 #include <RenderContext.h>
     8#include <stdlib.h>
     9#include <GL/glew.h>
     10#include <GL/gl.h>
     11#include "Grid.h"
     12#include "HeightMap.h"
     13#include "ContourLineFilter.h"
     14#include "TypeDefs.h"
     15#include "Texture1D.h"
     16#include "R2/R2FilePath.h"
     17#include "RpField1D.h"
     18#include "RenderContext.h"
    1719
    1820bool HeightMap::update_pending = false;
     
    3537    _visible(false),
    3638    _scale(1.0f, 1.0f, 1.0f),
    37     _centerPoint(0.0f, 0.0f, 0.0f)
     39    _centerPoint(0.0f, 0.0f, 0.0f),
     40    heights_(NULL)
    3841{
    3942    _shader = new NvShader();
    40 
    41     R2string path = R2FilePath::getInstance()->getPath("heightcolor.cg");
    42     if (path.getLength() == 0) {
    43         printf("ERROR : file not found %s\n", "heightcolor.cg");
    44     }
    45     _shader->loadFragmentProgram(path, "main");
     43    _shader->loadFragmentProgram("heightcolor.cg", "main");
    4644    _tf = _shader->getNamedParameterFromFP("tf");
    4745}
     
    7371    glPushMatrix();
    7472
     73#ifndef notdef
    7574    if (_scale.x != 0.0) {
    76         glScalef(1 / _scale.x, 1 / _scale.x , 1 / _scale.x);
    77     }
    78 
     75        glScalef(1 / _scale.x, 1 / _scale.y , 1 / _scale.z);
     76    }
     77#endif
    7978    glTranslatef(-_centerPoint.x, -_centerPoint.y, -_centerPoint.z);
    8079
    81     if (_contour) {
     80    if (_contour != NULL) {
    8281        glDepthRange (0.001, 1.0);
    8382    }
     
    140139    glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
    141140   
    142     if (_contour) {
     141    if (_contour != NULL) {
    143142        if (_contourVisible) {
    144143            glDisable(GL_BLEND);
     
    176175    int boundaryHeight = zCount - 1;
    177176    int* ptr = indexBuffer;
    178         int index1, index2, index3, index4;
     177    int index1, index2, index3, index4;
    179178    bool index1Valid, index2Valid, index3Valid, index4Valid;
    180179    index1Valid = index2Valid = index3Valid = index4Valid = true;
     
    257256    reset();
    258257   
     258    heights_ = (float *)heights;
    259259    float min, max;
    260260    min = heights[0].y, max = heights[0].y;
     
    325325
    326326void
    327 HeightMap::setHeight(float startX, float startY, float endX, float endY,
    328                      int xCount, int yCount, float* heights)
    329 {
    330     _vertexCount = xCount * yCount;
    331    
     327HeightMap::setHeight(float xMin, float yMin, float xMax, float yMax,
     328                     int xNum, int yNum, float* heights)
     329{
     330    _vertexCount = xNum * yNum;
     331    xNum_ = xNum, yNum_ = yNum;
     332    heights_ = heights;
    332333    reset();
    333 
     334   
     335    // Get the min/max of the heights. */
    334336    float min, max;
    335     min = heights[0], max = heights[0];
    336     int count = xCount * yCount;
    337     for (int i = 0; i < count; ++i) {
     337    min = max = heights[0];
     338    for (int i = 0; i < _vertexCount; ++i) {
    338339        if (min > heights[i]) {
    339340            min = heights[i];
     
    342343        }
    343344    }
    344     _scale.x = endX - startX;
    345     _scale.y = max - min;
    346     _scale.z = endY - startY;
    347 
    348345    wAxis.SetRange(min, max);
    349     xAxis.SetRange(startX, endX);
    350346    yAxis.SetRange(min, max);
    351     zAxis.SetRange(startY, endY);
     347    xAxis.SetRange(xMin, xMax);
     348    zAxis.SetRange(yMin, yMax);
     349   
     350   
     351    min = 0.0, max = 1.0;
     352    xMin = yMin = min = 0.0;
     353    xMax = yMax = max = 1.0;
     354    // Save the scales.
     355    _scale.x = _scale.y = _scale.z = 1.0;
     356
    352357    update_pending = true;
    353358
    354     _centerPoint.set(_scale.x * 0.5 + startX, _scale.y * 0.5 + min,
    355         _scale.z * 0.5 + startY);
    356    
    357     Vector3* texcoord = new Vector3[count];
    358     for (int i = 0; i < count; ++i) {
     359    _centerPoint.set(0.5, 0.5, 0.5);
     360   
     361#ifndef notdef
     362    Vector3* texcoord = new Vector3[_vertexCount];
     363    for (int i = 0; i < _vertexCount; ++i) {
    359364        texcoord[i].set(0, 0, heights[i]);
    360365    }
    361366   
    362     Vector3* heightMap = createHeightVertices(startX, startY, endX, endY, xCount, yCount, heights);
     367    Vector3* heightMap = createHeightVertices(xMin, yMin, xMax, yMax, xNum, yNum, heights);
    363368   
    364369    glGenBuffers(1, &_vertexBufferObjectID);
     
    377382    ContourLineFilter lineFilter;
    378383    //lineFilter.setColorMap(_colorMap);
    379     _contour = lineFilter.create(0.0f, 1.0f, 10, heightMap, xCount, yCount);
     384    _contour = lineFilter.create(0.0f, 1.0f, 10, heightMap, xNum, yNum);
    380385   
    381386#if TOPCONTOUR
    382387    ContourLineFilter topLineFilter;
    383388    topLineFilter.setHeightTop(true);
    384     _topContour = topLineFilter.create(0.0f, 1.0f, 10, heightMap, xCount, yCount);
     389    _topContour = topLineFilter.create(0.0f, 1.0f, 10, heightMap, xNum, yNum);
    385390#endif
    386391
     
    388393    //if (heightMap)
    389394    //{
    390     //  VertexBuffer* vertexBuffer = new VertexBuffer(VertexBuffer::POSITION3, xCount * yCount,
    391     // sizeof(Vector3) * xCount * yCount, heightMap, false);
     395    //  VertexBuffer* vertexBuffer = new VertexBuffer(VertexBuffer::POSITION3, xNum * yNum,
     396    // sizeof(Vector3) * xNum * yNum, heightMap, false);
    392397    if (_indexBuffer) {
    393398        free(_indexBuffer);
    394399    }
    395     this->createIndexBuffer(xCount, yCount, _indexBuffer, _indexCount, heights);
     400    this->createIndexBuffer(xNum, yNum, _indexBuffer, _indexCount, heights);
    396401    //}
    397402    //else
     
    399404    //printf("ERROR - HeightMap::setHeight\n");
    400405    //}
    401 }
    402 
    403 Vector3* HeightMap::createHeightVertices(float startX, float startY, float endX, float endY, int xCount, int yCount, float* height)
    404 {
    405     Vector3* vertices = (Vector3*) malloc(sizeof(Vector3) * xCount * yCount);
     406#endif
     407}
     408
     409Vector3*
     410HeightMap::createHeightVertices(float xMin, float yMin, float xMax,
     411                                float yMax, int xNum, int yNum, float* height)
     412{
     413    Vector3* vertices = (Vector3*) malloc(sizeof(Vector3) * xNum * yNum);
    406414
    407415    Vector3* dstDataPtr = vertices;
    408416    float* srcDataPtr = height;
    409417   
    410     for (int y = 0; y < yCount; ++y) {
     418    for (int y = 0; y < yNum; ++y) {
    411419        float yCoord;
    412420
    413         yCoord = startY + ((endY - startY) * y) / (yCount - 1);
    414         for (int x = 0; x < xCount; ++x) {
     421        yCoord = yMin + ((yMax - yMin) * y) / (yNum - 1);
     422        for (int x = 0; x < xNum; ++x) {
    415423            float xCoord;
    416424
    417             xCoord = startX + ((endX - startX) * x) / (xCount - 1);
     425            xCoord = xMin + ((xMax - xMin) * x) / (xNum - 1);
    418426            dstDataPtr->set(xCoord, *srcDataPtr, yCoord);
    419427
     
    432440}
    433441
     442// Maps the data coordinates of the surface into the grid's axes.
     443void
     444HeightMap::MapToGrid(Grid *gridPtr)
     445{
     446    int count = xNum_ * yNum_;
     447
     448    reset();
     449
     450    // The range of the grid's y-axis 0..1 represents the distance between the
     451    // smallest and largest major ticks for all surfaces plotted.  Translate
     452    // this surface's y-values (heights) into the grid's axis coordinates.
     453
     454    float yScale = 1.0 / (gridPtr->yAxis.max() - gridPtr->yAxis.min());
     455    float *p, *q, *pend;
     456    float *normHeights = new float[count];
     457    for (p = heights_, pend = p + count, q = normHeights; p < pend; p++, q++) {
     458        *q = (*p - gridPtr->yAxis.min()) * yScale;
     459    }
     460    Vector3 *t, *texcoord;
     461    texcoord = new Vector3[count];
     462    for (t = texcoord, p = normHeights, pend = p + count; p < pend; p++, t++) {
     463        t->set(0, 0, *p);
     464    }
     465
     466    // Normalize the mesh coordinates (x and z min/max) the range of
     467    // the major ticks for the x and z grid axes as well.
     468
     469    float xScale, zScale;
     470    float xMin, xMax, zMin, zMax;
     471
     472    xScale = 1.0 / (gridPtr->xAxis.max() - gridPtr->xAxis.min());
     473    xMin = (xAxis.min() - gridPtr->xAxis.min()) * xScale;
     474    xMax = (xAxis.max() - gridPtr->xAxis.min()) * xScale;
     475    zScale = 1.0 / (gridPtr->zAxis.max() - gridPtr->zAxis.min());
     476    zMin = (zAxis.min() - gridPtr->zAxis.min()) * zScale;
     477    zMax = (zAxis.max() - gridPtr->zAxis.min()) * zScale;
     478
     479    Vector3* vertices;
     480    vertices = createHeightVertices(xMin, zMin, xMax, zMax, xNum_, yNum_,
     481        normHeights);
     482   
     483    glGenBuffers(1, &_vertexBufferObjectID);
     484    glBindBuffer(GL_ARRAY_BUFFER, _vertexBufferObjectID);
     485    glBufferData(GL_ARRAY_BUFFER, _vertexCount * sizeof(Vector3), vertices,
     486        GL_STATIC_DRAW);
     487    glGenBuffers(1, &_textureBufferObjectID);
     488    glBindBuffer(GL_ARRAY_BUFFER, _textureBufferObjectID);
     489    glBufferData(GL_ARRAY_BUFFER, _vertexCount * sizeof(float) * 3, texcoord,
     490        GL_STATIC_DRAW);
     491    glBindBuffer(GL_ARRAY_BUFFER, 0);
     492    delete [] texcoord;
     493
     494    ContourLineFilter lineFilter;
     495    //lineFilter.setColorMap(_colorMap);
     496    _contour = lineFilter.create(0.0f, 1.0f, 10, vertices, xNum_, yNum_);
     497   
     498#if TOPCONTOUR
     499    ContourLineFilter topLineFilter;
     500    topLineFilter.setHeightTop(true);
     501    _topContour = topLineFilter.create(0.0f, 1.0f, 10, vertices, xNum_, yNum_);
     502#endif
     503    if (_indexBuffer) {
     504        free(_indexBuffer);
     505    }
     506    this->createIndexBuffer(xNum_, yNum_, _indexBuffer, _indexCount,
     507        normHeights);
     508    delete [] normHeights;
     509}
  • trunk/packages/vizservers/nanovis/HeightMap.h

    r1000 r1111  
    1515}
    1616
     17class Grid;
     18
    1719/**
    1820 *@class HeightMap
    1921 *@brief Create a surface from height map and line contour of the generated surface
    2022 */
     23
    2124class HeightMap {
    2225    unsigned int _vertexBufferObjectID;
    2326    unsigned int _textureBufferObjectID;
    24    
     27    int xNum_, yNum_;           // Number of elements x and y axes in grid.
     28    float *heights_;            // Array of original (unscaled) heights
     29                                // (y-values)
    2530    int _vertexCount;
    2631    CGparameter _tf;
     
    5964        void reset();
    6065public :
    61         void render(graphics::RenderContext* renderContext);
     66    void render(graphics::RenderContext* renderContext);
    6267    /**
    6368     *@brief Create a height map with heigh values
     
    7075     *@param height a pointer value adrressing xCount * yCount values of heights
    7176     */
    72         void setHeight(float startX, float startY, float endX, float endY, int xCount, int yCount, float* height);
     77    void setHeight(float startX, float startY, float endX, float endY,
     78                   int xCount, int yCount, float* height);
    7379
    7480    /**
     
    7783     *@param yCount the number of rows of height values
    7884     */
    79         void setHeight(int xCount, int yCount, Vector3* heights);
     85    void setHeight(int xCount, int yCount, Vector3* heights);
    8086
     87    void MapToGrid(Grid *gridPtr);
    8188    /**
    8289     *@brief Define a color map for color shading of heightmap
  • trunk/packages/vizservers/nanovis/Lic.cpp

    r755 r1111  
    9090  assert(glGetError()==0);
    9191
    92   R2string path = R2FilePath::getInstance()->getPath("render_vel.cg");
    93   m_render_vel_fprog = loadProgram(m_g_context, CG_PROFILE_FP30, CG_SOURCE, path);
    94   m_vel_tex_param_render_vel = cgGetNamedParameter(m_render_vel_fprog, "vel_tex");
    95   m_plane_normal_param_render_vel = cgGetNamedParameter(m_render_vel_fprog, "plane_normal");
     92  m_render_vel_fprog = LoadProgram(m_g_context, CG_PROFILE_FP30, CG_SOURCE,
     93        NULL, "render_vel.cg");
     94  m_vel_tex_param_render_vel = cgGetNamedParameter(m_render_vel_fprog,
     95        "vel_tex");
     96  m_plane_normal_param_render_vel = cgGetNamedParameter(m_render_vel_fprog,
     97        "plane_normal");
    9698  cgGLSetTextureParameter(m_vel_tex_param_render_vel, _vector_field);
    9799
  • trunk/packages/vizservers/nanovis/NvColorTableShader.cpp

    r848 r1111  
    22#include "NvColorTableShader.h"
    33#include <Trace.h>
     4#include <global.h>
    45
    56NvColorTableShader::NvColorTableShader()
     
    1415void NvColorTableShader::init()
    1516{
    16     R2string path = R2FilePath::getInstance()->getPath("one_plane.cg");
    17     if (path.getLength() == 0)
    18     {
    19         Trace("%s is not found", (const char*) path);
    20     }
    21    
    22     _cgFP = cgCreateProgramFromFile(g_context, CG_SOURCE,
    23             path, CG_PROFILE_FP30, "main", NULL);
    24     cgGLLoadProgram(_cgFP);
    25 
     17    _cgFP = LoadCgSourceProgram(g_context, "one_plane.cg", CG_PROFILE_FP30,
     18        "main");
    2619    _dataParam = cgGetNamedParameter(_cgFP, "data");
    2720    _tfParam = cgGetNamedParameter(_cgFP, "tf");
  • trunk/packages/vizservers/nanovis/NvEventLog.cpp

    r599 r1111  
    2525    char* logName = NULL;
    2626    int logNameLen = 0;
     27    extern int debug_flag;
    2728
    2829    if (user == NULL) {
     
    3839    }
    3940
    40     //open log and map stderr to log file
    41     xinetd_log = fopen(logName, "w");
    42     close(2);
    43     dup2(fileno(xinetd_log), 2);
    44     dup2(2,1);
    45 
    46     //flush junk
    47     fflush(stdout);
    48     fflush(stderr);
     41    if (!debug_flag) {
     42        //open log and map stderr to log file
     43        xinetd_log = fopen(logName, "w");
     44        close(2);
     45        dup2(fileno(xinetd_log), 2);
     46        dup2(2,1);
     47        //flush junk
     48        fflush(stdout);
     49        fflush(stderr);
     50    }
    4951
    5052    // clean up malloc'd memory
  • trunk/packages/vizservers/nanovis/NvLIC.cpp

    r1028 r1111  
    2323#include "NvLIC.h"
    2424#include <Trace.h>
     25#include "global.h"
    2526
    2627NvLIC::NvLIC(int _size, int _width, int _height, float _offset,
     
    110111    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
    111112
    112     R2string path = R2FilePath::getInstance()->getPath("render_vel.cg");
    113     m_render_vel_fprog = loadProgram(m_g_context, CG_PROFILE_FP30, CG_SOURCE, path);
    114     m_vel_tex_param_render_vel = cgGetNamedParameter(m_render_vel_fprog, "vel_tex");
    115     m_plane_normal_param_render_vel = cgGetNamedParameter(m_render_vel_fprog, "plane_normal");
     113    m_render_vel_fprog = LoadCgSourceProgram(m_g_context, "render_vel.cg",
     114        CG_PROFILE_FP30, "main");
     115    m_vel_tex_param_render_vel = cgGetNamedParameter(m_render_vel_fprog,
     116        "vel_tex");
     117    m_plane_normal_param_render_vel = cgGetNamedParameter(m_render_vel_fprog,
     118        "plane_normal");
    116119    m_max_param = cgGetNamedParameter(m_render_vel_fprog, "vmax");
    117120
  • trunk/packages/vizservers/nanovis/NvParticleAdvectionShader.cpp

    r953 r1111  
    22#include <Trace.h>
    33#include "NvParticleAdvectionShader.h"
     4#include <global.h>
    45
    56NvParticleAdvectionShader::NvParticleAdvectionShader() :
     
    1819void NvParticleAdvectionShader::init()
    1920{
    20     R2string path = R2FilePath::getInstance()->getPath("update_pos.cg");
    21    
    22     if (path.getLength() == 0)
    23     {
    24         Trace("%s is not found\n", (const char*) path);
    25     }
    26 
    27     _cgFP= cgCreateProgramFromFile(g_context, CG_SOURCE, path,
    28         CG_PROFILE_FP30, "main", NULL);
    29 
    30 
    31     cgGLLoadProgram(_cgFP);
    32 
     21    _cgFP = LoadCgSourceProgram(g_context, "update_pos.cg", CG_PROFILE_FP30,
     22        "main");
    3323    _posTimestepParam  = cgGetNamedParameter(_cgFP, "timestep");
    3424    _maxParam  = cgGetNamedParameter(_cgFP, "max");
  • trunk/packages/vizservers/nanovis/NvParticleRenderer.cpp

    r1028 r1111  
    8080      m_g_context = context;
    8181
    82       R2string path = R2FilePath::getInstance()->getPath("update_pos.cg");
    83       m_pos_fprog = loadProgram(m_g_context, CG_PROFILE_FP30, CG_SOURCE, path);
     82      m_pos_fprog = LoadCgSourceProgram(m_g_context, "update_pos.cg",
     83        CG_PROFILE_FP30, NULL);
    8484      m_pos_timestep_param  = cgGetNamedParameter(m_pos_fprog, "timestep");
    8585      m_vel_tex_param = cgGetNamedParameter(m_pos_fprog, "vel_tex");
  • trunk/packages/vizservers/nanovis/NvRegularVolumeShader.cpp

    r870 r1111  
    1 #include <R2/R2FilePath.h>
    21#include "NvRegularVolumeShader.h"
     2#include <global.h>
    33
    44NvRegularVolumeShader::NvRegularVolumeShader()
     
    1313void NvRegularVolumeShader::init()
    1414{
    15     R2string path = R2FilePath::getInstance()->getPath("one_volume.cg");
    16     _cgFP= cgCreateProgramFromFile(g_context, CG_SOURCE, path, CG_PROFILE_FP30, "main", NULL);
    17     cgGLLoadProgram(_cgFP);
    18 
     15    _cgFP = LoadCgSourceProgram(g_context, "one_volume.cg", CG_PROFILE_FP30,
     16        "main");
    1917    m_mvi_one_volume_param = cgGetNamedParameter(_cgFP, "modelViewInv");
    2018    m_mv_one_volume_param = cgGetNamedParameter(_cgFP, "modelView");
  • trunk/packages/vizservers/nanovis/NvShader.cpp

    r851 r1111  
     1#include <stdio.h>
     2#include "global.h"
    13#include "NvShader.h"
    2 #include <stdio.h>
    34
    45CGcontext g_context = 0;
     
    1011
    1112NvShader::NvShader()
     13
    1214: _cgVP(0), _cgFP(0)
    1315{
     
    2224    resetPrograms();
    2325
    24     printf("[%s] loading\n", fileName);
    25     _cgVP = cgCreateProgramFromFile(g_context, CG_SOURCE, fileName, CG_PROFILE_VP30,
    26                             entryPoint, NULL);
    27 
    28     cgGLLoadProgram(_cgVP);
     26    _cgFP = LoadCgSourceProgram(g_context, fileName, CG_PROFILE_VP30, entryPoint);
    2927}
    3028
    3129void NvShader::loadFragmentProgram(const char* fileName, const char* entryPoint)
    3230{
    33     printf("[%s] loading\n", fileName);
    34     _cgFP = cgCreateProgramFromFile(g_context, CG_SOURCE, fileName, CG_PROFILE_FP30,
    35                             entryPoint, NULL);
    36 
    37     cgGLLoadProgram(_cgFP);
     31    _cgFP = LoadCgSourceProgram(g_context, fileName, CG_PROFILE_FP30, entryPoint);
    3832}
    3933
  • trunk/packages/vizservers/nanovis/NvStdVertexShader.cpp

    r617 r1111  
    1 #include <R2/R2FilePath.h>
     1#include <stdio.h>
     2#include "global.h"
    23#include "NvStdVertexShader.h"
    34
     
    1314void NvStdVertexShader::init()
    1415{
    15     R2string path = R2FilePath::getInstance()->getPath("vertex_std.cg");
    16     _cgVP= cgCreateProgramFromFile(g_context, CG_SOURCE,
    17                 (const char*) path, CG_PROFILE_VP30, "main", NULL);
    18     cgGLLoadProgram(_cgVP);
    19 
     16    _cgVP = LoadCgSourceProgram(g_context, "vertex_std.cg", CG_PROFILE_VP30,
     17        "main");
    2018    _mvp_vert_std_param = cgGetNamedParameter(_cgVP, "modelViewProjMatrix");
    2119    _mvi_vert_std_param = cgGetNamedParameter(_cgVP, "modelViewInv");
  • trunk/packages/vizservers/nanovis/NvZincBlendeVolumeShader.cpp

    r870 r1111  
    11
    2 #include <R2/R2string.h>
    3 #include <R2/R2FilePath.h>
     2
     3#include <string.h>
     4#include "global.h"
    45#include "Nv.h"
    56#include "NvZincBlendeVolumeShader.h"
    67
    7 #include <string.h>
    88
    99NvZincBlendeVolumeShader::NvZincBlendeVolumeShader()
     
    1818void NvZincBlendeVolumeShader::init()
    1919{
    20     R2string path = R2FilePath::getInstance()->getPath("zincblende_volume.cg");
    21     _cgFP = cgCreateProgramFromFile(g_context, CG_SOURCE,
    22         (const char*) path, CG_PROFILE_FP30, "main", NULL);
    23 
    24     cgGLLoadProgram(_cgFP);
    25 
     20    _cgFP = LoadCgSourceProgram(g_context, "zincblende_volume.cg",
     21        CG_PROFILE_FP30, "main");
    2622    _tfParam = cgGetNamedParameter(_cgFP, "tf");
    2723    _volumeAParam = cgGetNamedParameter(_cgFP, "volumeA");
  • trunk/packages/vizservers/nanovis/PlaneRenderer.cpp

    r953 r1111  
    1515 */
    1616
    17 #include <R2/R2FilePath.h>
     17#include "global.h"
    1818#include "PlaneRenderer.h"
    1919
     
    4040{
    4141    //plane rendering shader
    42     R2string path = R2FilePath::getInstance()->getPath("one_plane.cg");
    43     m_fprog = loadProgram(g_context, CG_PROFILE_FP30, CG_SOURCE, path);
     42    m_fprog = LoadCgSourceProgram(g_context, "one_plane.cg", CG_PROFILE_FP30,
     43        NULL);
    4444    m_data_param = cgGetNamedParameter(m_fprog, "data");
    4545    m_tf_param = cgGetNamedParameter(m_fprog, "tf");
  • trunk/packages/vizservers/nanovis/PointSetRenderer.cpp

    r953 r1111  
    1717{
    1818    _shader = new PointShader();
    19     R2string path = R2FilePath::getInstance()->getPath("particle2.bmp");
    20     if (path.getLength() == 0) {
    21         printf("ERROR : pointset file not found - %s\n", (const char*) path);
     19    const char *path = R2FilePath::getInstance()->getPath("particle2.bmp");
     20    if (path == NULL) {
     21        fprintf(stderr, "ERROR : pointset file not found - %s\n", path);
    2222        fflush(stdout);
    2323        return;
     
    2626    ImageLoader* loader = ImageLoaderFactory::getInstance()->createLoader("bmp");
    2727    Image* image = loader->load(path, Image::IMG_RGBA);
    28 
     28    delete [] path;
    2929    unsigned char* bytes = (unsigned char*) image->getImageBuffer();
    3030    if (bytes) {
  • trunk/packages/vizservers/nanovis/PointShader.cpp

    r1053 r1111  
    22#include <stdio.h>
    33#include <stdlib.h>
    4 #include "PointShader.h"
     4#include <assert.h>
    55#include <R2/R2FilePath.h>
    66#include <R2/R2string.h>
     7#include "PointShader.h"
    78
    8 PointShader::PointShader()
    9 : NvShader(), _normal(0)
     9PointShader::PointShader() :
     10    NvShader(),
     11    _normal(0)
    1012{
    11         R2string path = R2FilePath::getInstance()->getPath("pointsvp.cg");
    12         if (path.getLength() == 0)
    13         {
    14                 path = R2FilePath::getInstance()->getPath("../examples/points/pointsvp.cg");
    15                 if (path.getLength() == 0)
    16                 {
    17                         printf("ERROR : file not found [%s]\n", "pointsvp.cg");
    18                         exit(1);
    19                 }
    20 
    21         }
    22     else
    23     {
    24         printf("point shader loaded...\n");
    25         fflush(stdout);
    26     }
    27 
    28         this->loadVertexProgram(path, "main");
    29 
    30 
    31         _modelviewVP = getNamedParameterFromVP("modelview");
    32         _projectionVP = getNamedParameterFromVP("projection");
    33 
    34         _attenVP = getNamedParameterFromVP("atten");
    35         _posoffsetVP = getNamedParameterFromVP("posoffset");
    36         _baseposVP = getNamedParameterFromVP("basepos");
    37         _scaleVP = getNamedParameterFromVP("scale");
    38 
    39         _normalParam = getNamedParameterFromVP("normal");
     13    this->loadVertexProgram("pointsvp.cg", "main");
     14    _modelviewVP  = getNamedParameterFromVP("modelview");
     15    _projectionVP = getNamedParameterFromVP("projection");
     16    _attenVP      = getNamedParameterFromVP("atten");
     17    _posoffsetVP  = getNamedParameterFromVP("posoffset");
     18    _baseposVP    = getNamedParameterFromVP("basepos");
     19    _scaleVP      = getNamedParameterFromVP("scale");
     20    _normalParam  = getNamedParameterFromVP("normal");
    4021}
    4122
     
    4627void PointShader::setParameters()
    4728{
    48         cgGLSetStateMatrixParameter(_modelviewVP, CG_GL_MODELVIEW_MATRIX, CG_GL_MATRIX_IDENTITY);
     29    cgGLSetStateMatrixParameter(_modelviewVP, CG_GL_MODELVIEW_MATRIX, CG_GL_MATRIX_IDENTITY);
    4930    cgGLSetStateMatrixParameter(_projectionVP, CG_GL_PROJECTION_MATRIX, CG_GL_MATRIX_IDENTITY);
    5031       
    51         cgGLSetParameter1f(_attenVP, 1.0f);
    52         cgGLSetParameter4f(_posoffsetVP, 1.0f, 1.0f, 1.0f, 1.0f);
    53         cgGLSetParameter4f(_baseposVP, 1.0f, 1.0f, 1.0f, 1.0f);
    54         cgGLSetParameter4f(_scaleVP, 1.0f, 1.0f, 1.0f, 1.0f);
    55 
    56         //cgGLSetTextureParameter(_normalParam,_normal->getGraphicsObjectID());
    57         //cgGLEnableTextureParameter(_normalParam);
    58        
     32    cgGLSetParameter1f(_attenVP, 1.0f);
     33    cgGLSetParameter4f(_posoffsetVP, 1.0f, 1.0f, 1.0f, 1.0f);
     34    cgGLSetParameter4f(_baseposVP, 1.0f, 1.0f, 1.0f, 1.0f);
     35    cgGLSetParameter4f(_scaleVP, 1.0f, 1.0f, 1.0f, 1.0f);
     36   
     37    //cgGLSetTextureParameter(_normalParam,_normal->getGraphicsObjectID());
     38    //cgGLEnableTextureParameter(_normalParam);
     39   
    5940}
    6041
    6142void PointShader::resetParameters()
    6243{
    63         //cgGLDisableTextureParameter(_normalParam);
     44    //cgGLDisableTextureParameter(_normalParam);
    6445}
  • trunk/packages/vizservers/nanovis/R2/include/R2/R2FilePath.h

    r611 r1111  
    66
    77class R2FilePath {
    8         typedef std::list<R2string> R2stringList;
    9         typedef std::list<R2string>::iterator R2stringListIter;
    10 
    11         /**
    12         * @brief application directory
    13         */
    14         static R2string _curDirectory;
    15 
    16         /**
    17         * @brief R2FilePath instance
    18         */
    19         static R2FilePath _instance;
    20 
    21         /**
    22         * @brief all default file paths
    23         */
    24         R2stringList _pathList;
     8    typedef std::list<R2string> R2stringList;
     9    typedef std::list<R2string>::iterator R2stringListIter;
     10   
     11    /**
     12    * @brief application directory
     13    */
     14    static R2string _curDirectory;
     15   
     16    /**
     17    * @brief R2FilePath instance
     18    */
     19    static R2FilePath _instance;
     20   
     21    /**
     22    * @brief all default file paths
     23    */
     24    R2stringList _pathList;
    2525public :
    26         /**
    27         * @brief constructor
    28         */
    29         R2FilePath();
    30 
    31         /**
    32         * @brief find a file whose name is fileName and return its full path
    33         * @param fileName a file name
    34         * @return return full path of the file, but if not found, return ""
    35         */
    36         R2string getPath(const char* fileName);
    37 
    38         /**
    39         * @brief set default data paths
    40         * @param filePath all default paths separated by colon(:)
    41         */
    42         void setPath(const R2string& filePath);
    43 
     26    /**
     27    * @brief constructor
     28    */
     29    R2FilePath();
     30   
     31    /**
     32    * @brief find a file whose name is fileName and return its full path
     33    * @param fileName a file name
     34    * @return return full path of the file, but if not found, return ""
     35    */
     36    const char *getPath(const char* fileName);
     37   
     38    /**
     39    * @brief set default data paths
     40    * @param filePath all default paths separated by colon(:)
     41    */
     42    bool setPath(const char *path);
     43   
    4444    /**
    4545     *
     
    4747    void setWorkingDirectory(int argc, const char** argv);
    4848public :
    49 
    50         /**
    51          * @brief get R2FilePath instance
    52          */
    53         static R2FilePath* getInstance();
    54 
     49   
     50    /**
     51     * @brief get R2FilePath instance
     52     */
     53    static R2FilePath* getInstance();
    5554};
    5655
  • trunk/packages/vizservers/nanovis/R2/include/R2/R2Fonts.h

    r953 r1111  
    1010
    1111    struct R2FontAttributes {
    12         R2string _fontName;
     12        char *_fontName;
    1313        R2int32 _textureWidth;
    1414        R2int32 _textureHeight;
  • trunk/packages/vizservers/nanovis/R2/src/R2FilePath.cpp

    r1053 r1111  
    55#include <direct.h>
    66#endif
     7#include <stdio.h>
     8#include <sys/types.h>
     9#include <sys/stat.h>
    710#include <unistd.h>
    8 #include <stdio.h>
    911
    1012R2string R2FilePath::_curDirectory;
     
    1214
    1315char seps[]   = ":";
     16
    1417R2FilePath::R2FilePath()
    1518{
    16         char buff[255];
     19    char buff[255];
    1720#ifdef WIN32
    18         _getcwd(buff, 255);
     21    _getcwd(buff, 255);
    1922#else
    2023    getcwd(buff, 100);
    2124#endif
     25    int length = strlen(buff);
     26    buff[length] = '/';
     27    buff[length + 1] = '\0';
    2228
    23         int length = strlen(buff);
    24         buff[length] = '/';
    25         buff[length + 1] = '\0';
    26 
    27         _curDirectory = buff;
     29    _curDirectory = buff;
    2830
    2931}
    3032
    31 void R2FilePath::setPath(const R2string& filePath)
     33bool
     34R2FilePath::setPath(const char *filePath)
    3235{
    33         char buff[255];
     36    char buff[255];
    3437
    35         _pathList.clear();
     38    if (filePath == NULL) {
     39        return false;
     40    }
     41    _pathList.clear();
    3642
    37         char *token;
    38         strcpy(buff, filePath);
    39         token = strtok(buff, seps );
    40 
     43    char *p;
     44    strcpy(buff, filePath);
     45    for (p = strtok(buff, seps); p != NULL; p = strtok(NULL, seps)) {
    4146        int lastIndex;
    42         while( token != NULL )
    43         {
    44                 lastIndex = strlen(token) - 1;
    45                 //if (token[0] == '/' || token[1] == ':')
    46                 if (token[0] == '/')
    47                 {
    48                         if (token[lastIndex] == '/' || token[lastIndex] == '\\')
    49                         {
    50                                 _pathList.push_back(R2string(token));
    51                         }
    52                         else
    53                         {
    54                                 _pathList.push_back(R2string(token) + "/");
    55                         }
    56                        
    57                 }
    58                 else
    59                 {
    60                         if (token[lastIndex] == '/' || token[lastIndex] == '\\')
    61                         {
    62                                 _pathList.push_back(_curDirectory + R2string(token));
    63                         }
    64                         else
    65                         {
    66                                 _pathList.push_back(_curDirectory + R2string(token) + "/");
    67                         }
    68 
    69                        
    70                 }
    71                 token = strtok( NULL, seps );
     47        char *last;
     48        struct stat buf;
     49        if ((stat(p, &buf) != 0) || (!S_ISDIR(buf.st_mode))) {
     50            return false;
    7251        }
     52        last = p + strlen(p) - 1;
     53        if (*p == '/') {
     54            if (*last == '/' || *last == '\\') {
     55                _pathList.push_back(R2string(p));
     56            } else {
     57                _pathList.push_back(R2string(p) + "/");
     58            }
     59        } else {
     60            if (*last == '/' || *last == '\\') {
     61                _pathList.push_back(_curDirectory + R2string(p));
     62            } else {
     63                _pathList.push_back(_curDirectory + R2string(p) + "/");
     64            }
     65        }
     66    }
     67    return true;
    7368}
    7469
    7570R2FilePath* R2FilePath::getInstance()
    7671{
    77         return &_instance;
     72    return &_instance;
    7873}
    7974
    80 R2string R2FilePath::getPath(const char* fileName)
     75const char *
     76R2FilePath::getPath(const char* fileName)
    8177{
    82         R2string path;
    83         FILE* file;
     78    R2string path;
    8479
    85         R2stringListIter iter;
    86         for (iter = _pathList.begin(); iter != _pathList.end(); ++iter)
    87         {
    88                 chdir(*iter);
     80    R2stringListIter iter;
     81    int nameLength = strlen(fileName);
     82    for (iter = _pathList.begin(); iter != _pathList.end(); ++iter) {
     83        char *path;
    8984
    90                 if ((file = fopen(fileName, "rb")) != NULL)
    91                 {
    92                         fclose(file);
    93                        
    94                         path = (*iter) + fileName;
    95 
    96                         break;
    97                 }
    98                
     85        path = new char[strlen((char *)(*iter)) + 1 + nameLength + 1];
     86        sprintf(path, "%s/%s", (char *)(*iter), fileName);
     87        if (access(path, R_OK) == 0) {
     88            return path;
    9989        }
    100 
    101         chdir(_curDirectory);
    102 
    103         return path;
     90        delete [] path;
     91    }
     92    return NULL;
    10493}
    10594
    106 void R2FilePath::setWorkingDirectory(int argc, const char** argv)
     95void
     96R2FilePath::setWorkingDirectory(int argc, const char** argv)
    10797{
    10898    char buff[255];
     99
    109100    strcpy(buff, argv[0]);
    110     for (int i = strlen(buff) - 1; i >= 0; --i)
    111     {
    112         if (buff[i] == '\\' || buff[i] == '/')
    113         {
    114             buff[i] = '/';
    115             buff[i + 1] = '\0';
    116             break;
    117         }
     101    for (int i = strlen(buff) - 1; i >= 0; --i) {
     102        if (buff[i] == '\\' || buff[i] == '/') {
     103            buff[i] = '/';
     104            buff[i + 1] = '\0';
     105            break;
     106        }
    118107    }
    119 
    120         _curDirectory = buff;
     108    _curDirectory = buff;
    121109}
    122110
  • trunk/packages/vizservers/nanovis/R2/src/R2Fonts.cpp

    r953 r1111  
    2525R2Fonts::setFont(const char* fontName)
    2626{
    27     for (unsigned index = 0; index < _fonts.size(); ++index) {
    28         if (_fonts[index]._fontName == fontName) {
    29             _fontIndex = index;
    30             break;
    31         }
     27    if (fontName != NULL) {
     28        unsigned int i;
     29        for (i = 0; i < _fonts.size(); ++i) {
     30            if (strcmp(_fonts[i]._fontName, fontName) == 0) {
     31                _fontIndex = i;
     32                break;
     33            }
     34        }
    3235    }
    3336}
     
    134137{
    135138    R2bool bSuccess = false;
    136     R2string path = R2FilePath::getInstance()->getPath(fontFileName);
    137    
    138     std::ifstream fsInput((const char*) path, std::ios::binary);
     139
     140    const char *path = R2FilePath::getInstance()->getPath(fontFileName);
     141    if (path == NULL) {
     142        return false;
     143    }
     144    std::ifstream fsInput(path, std::ios::binary);
    139145    if (fsInput) {
    140         sFont._fontName = fontName;
    141        
     146        sFont._fontName = new char [strlen(fontName)+1];
     147        strcpy(sFont._fontName, fontName);
     148
    142149        // make sure this file is the correct type by checking the header
    143150        unsigned int uiFileId = 0;
     
    219226        fsInput.close( );
    220227    }
    221 
     228    delete [] path;
    222229    return bSuccess;
    223230}
  • trunk/packages/vizservers/nanovis/VolumeInterpolator.cpp

    r932 r1111  
    146146                             volume->n_components,
    147147                             volume->_data,
    148                              volume->wAxis.Min(),
    149                              volume->wAxis.Max(),
     148                             volume->wAxis.min(),
     149                             volume->wAxis.max(),
    150150                             volume->nonzero_min);
    151151        _referenceOfVolume = volumeId;
  • trunk/packages/vizservers/nanovis/VolumeRenderer.cpp

    r1053 r1111  
    3737    init_shaders();
    3838
    39     R2string path = R2FilePath::getInstance()->getPath("Font.bmp");
    40     init_font((const char*) path);
    41 
     39    const char *path = R2FilePath::getInstance()->getPath("Font.bmp");
     40    if (path == NULL) {
     41        fprintf(stderr, "can't find Font.bmp\n");
     42        assert(path != NULL);
     43    }
     44    init_font(path);
     45    delete [] path;
    4246    _volumeInterpolator = new VolumeInterpolator();
    4347}
  • trunk/packages/vizservers/nanovis/global.h

    r835 r1111  
    4040
    4141
    42 inline CGprogram
    43 loadProgram(CGcontext context, CGprofile profile, CGenum program_type,
    44             char *filename)
    45 {
    46     CGprogram program = cgCreateProgramFromFile(context, program_type, filename,
    47                                                 profile, NULL, NULL);
    48     cgGLLoadProgram(program);
    49     return program;
    50 }
    51 
    5242inline void
    5343draw_quad(int w, int h, int tw, int th)
     
    7464            "-----------------------------------------------------------\n");
    7565}
     66
     67extern CGprogram LoadCgSourceProgram(CGcontext context, const char *filename,
     68        CGprofile profile, const char *entryPoint);
     69
    7670#endif
  • trunk/packages/vizservers/nanovis/nanovis.cpp

    r1089 r1111  
    2323#include <sstream>
    2424#include <string>
     25#include <memory.h>
    2526#include <time.h>
    2627#include <sys/time.h>
     
    100101NvLIC* NanoVis::licRenderer = 0;
    101102
     103FILE *NanoVis::stdin = NULL;
     104FILE *NanoVis::logfile = NULL;
     105
    102106bool NanoVis::lic_on = false;
    103107bool NanoVis::particle_on = false;
     
    122126float color_table[256][4];
    123127
     128int debug_flag = false;
    124129/*
    125130#ifdef XINETD
     
    274279}
    275280
     281
     282CGprogram
     283LoadCgSourceProgram(CGcontext context, const char *fileName, CGprofile profile,
     284                    const char *entryPoint)
     285{
     286    const char *path = R2FilePath::getInstance()->getPath(fileName);
     287    if (path == NULL) {
     288        fprintf(stderr, "can't find program \"%s\"\n", fileName);
     289        assert(path != NULL);
     290    }
     291    CGprogram program;
     292    program = cgCreateProgramFromFile(context, CG_SOURCE, path, profile,
     293        entryPoint, NULL);
     294    delete [] path;
     295    cgGLLoadProgram(program);
     296    return program;
     297}
    276298
    277299/* Load a 3D volume
     
    621643    fprintf(stderr, "Graphics hardware: %s\n", glGetString(GL_RENDERER));
    622644    fprintf(stderr, "-----------------------------------------------------------\n");
    623 
     645    if (path == NULL) {
     646        fprintf(stderr, "no path defined for shaders or resources\n");
     647        fflush(stderr);
     648        exit(1);
     649    }
    624650    // init GLEW
    625651    GLenum err = glewInit();
     
    632658    fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
    633659
    634     if (path)
    635     {
    636         R2FilePath::getInstance()->setPath(path);
     660    if (!R2FilePath::getInstance()->setPath(path)) {
     661        fprintf(stderr, "can't set file path to %s\n", path);
     662        fflush(stderr);
     663        exit(1);
    637664    }
    638665
     
    14471474            continue;
    14481475        }
    1449         if (xMin > volPtr->xAxis.Min()) {
    1450             xMin = volPtr->xAxis.Min();
    1451         }
    1452         if (xMax < volPtr->xAxis.Max()) {
    1453             xMax = volPtr->xAxis.Max();
    1454         }
    1455         if (yMin > volPtr->yAxis.Min()) {
    1456             yMin = volPtr->yAxis.Min();
    1457         }
    1458         if (yMax < volPtr->yAxis.Max()) {
    1459             yMax = volPtr->yAxis.Max();
    1460         }
    1461         if (zMin > volPtr->zAxis.Min()) {
    1462             zMin = volPtr->zAxis.Min();
    1463         }
    1464         if (zMax < volPtr->zAxis.Max()) {
    1465             zMax = volPtr->zAxis.Max();
    1466         }
    1467         if (wMin > volPtr->wAxis.Min()) {
    1468             wMin = volPtr->wAxis.Min();
    1469         }
    1470         if (wMax < volPtr->wAxis.Max()) {
    1471             wMax = volPtr->wAxis.Max();
     1476        if (xMin > volPtr->xAxis.min()) {
     1477            xMin = volPtr->xAxis.min();
     1478        }
     1479        if (xMax < volPtr->xAxis.max()) {
     1480            xMax = volPtr->xAxis.max();
     1481        }
     1482        if (yMin > volPtr->yAxis.min()) {
     1483            yMin = volPtr->yAxis.min();
     1484        }
     1485        if (yMax < volPtr->yAxis.max()) {
     1486            yMax = volPtr->yAxis.max();
     1487        }
     1488        if (zMin > volPtr->zAxis.min()) {
     1489            zMin = volPtr->zAxis.min();
     1490        }
     1491        if (zMax < volPtr->zAxis.max()) {
     1492            zMax = volPtr->zAxis.max();
     1493        }
     1494        if (wMin > volPtr->wAxis.min()) {
     1495            wMin = volPtr->wAxis.min();
     1496        }
     1497        if (wMax < volPtr->wAxis.max()) {
     1498            wMax = volPtr->wAxis.max();
    14721499        }
    14731500    }
     
    15021529            continue;
    15031530        }
    1504         if (xMin > hmPtr->xAxis.Min()) {
    1505             xMin = hmPtr->xAxis.Min();
    1506         }
    1507         if (xMax < hmPtr->xAxis.Max()) {
    1508             xMax = hmPtr->xAxis.Max();
    1509         }
    1510         if (yMin > hmPtr->yAxis.Min()) {
    1511             yMin = hmPtr->yAxis.Min();
    1512         }
    1513         if (yMax < hmPtr->yAxis.Max()) {
    1514             yMax = hmPtr->yAxis.Max();
    1515         }
    1516         if (zMin > hmPtr->zAxis.Min()) {
    1517             zMin = hmPtr->zAxis.Min();
    1518         }
    1519         if (zMax < hmPtr->zAxis.Max()) {
    1520             zMax = hmPtr->zAxis.Max();
    1521         }
    1522         if (wMin > hmPtr->wAxis.Min()) {
    1523             wMin = hmPtr->wAxis.Min();
    1524         }
    1525         if (wMax < hmPtr->wAxis.Max()) {
    1526             wMax = hmPtr->wAxis.Max();
     1531        if (xMin > hmPtr->xAxis.min()) {
     1532            xMin = hmPtr->xAxis.min();
     1533        }
     1534        if (xMax < hmPtr->xAxis.max()) {
     1535            xMax = hmPtr->xAxis.max();
     1536        }
     1537        if (yMin > hmPtr->yAxis.min()) {
     1538            yMin = hmPtr->yAxis.min();
     1539        }
     1540        if (yMax < hmPtr->yAxis.max()) {
     1541            yMax = hmPtr->yAxis.max();
     1542        }
     1543        if (zMin > hmPtr->zAxis.min()) {
     1544            zMin = hmPtr->zAxis.min();
     1545        }
     1546        if (zMax < hmPtr->zAxis.max()) {
     1547            zMax = hmPtr->zAxis.max();
     1548        }
     1549        if (wMin > hmPtr->wAxis.min()) {
     1550            wMin = hmPtr->wAxis.min();
     1551        }
     1552        if (wMax < hmPtr->wAxis.max()) {
     1553            wMax = hmPtr->wAxis.max();
    15271554        }
    15281555    }
     
    15371564    }
    15381565    if ((wMin < DBL_MAX) && (wMax > -DBL_MAX)) {
    1539         HeightMap::valueMin = wMin;
    1540         HeightMap::valueMax = wMax;
     1566        HeightMap::valueMin = grid->yAxis.min();
     1567        HeightMap::valueMax = grid->yAxis.max();
     1568    }
     1569    for (unsigned int i = 0; i < heightMap.size(); i++) {
     1570        HeightMap *hmPtr;
     1571
     1572        hmPtr = heightMap[i];
     1573        if (hmPtr == NULL) {
     1574            continue;
     1575        }
     1576        hmPtr->MapToGrid(grid);
    15411577    }
    15421578    HeightMap::update_pending = false;
     
    18341870init_service()
    18351871{
    1836     //open log and map stderr to log file
    1837     xinetd_log = fopen("/tmp/log.txt", "w");
    1838     close(2);
    1839     dup2(fileno(xinetd_log), 2);
    1840     dup2(2,1);
    1841 
     1872    if (!debug_flag) {
     1873        //open log and map stderr to log file
     1874        xinetd_log = fopen("/tmp/log.txt", "w");
     1875        close(2);
     1876        dup2(fileno(xinetd_log), 2);
     1877        dup2(2,1);
     1878    }
    18421879    //flush junk
    18431880    fflush(stdout);
     
    18931930main(int argc, char** argv)
    18941931{
    1895     char *path;
     1932    const char *path;
     1933    char *newPath;
     1934
     1935    newPath = NULL;
    18961936    path = NULL;
    1897     while(1) {
    1898         int c;
    1899         int option_index = 0;
    1900         struct option long_options[] = {
    1901             // name, has_arg, flag, val
    1902             { 0,0,0,0 },
    1903         };
    1904 
    1905         c = getopt_long(argc, argv, "+p:", long_options, &option_index);
     1937    NanoVis::stdin = stdin;
     1938    NanoVis::logfile = stderr;
     1939    opterr = 1;
     1940    while (1) {
     1941        static struct option long_options[] = {
     1942            {"infile",  required_argument, NULL,           0},
     1943            {"logfile", required_argument, NULL,           1},
     1944            {"path",    required_argument, NULL,           2},
     1945            {"debug",   no_argument,       NULL,           3},
     1946            {0, 0, 0, 0}
     1947        };
     1948        int option_index = 0;
     1949        int c;
     1950
     1951        c = getopt_long(argc, argv, ":dp:i:l:", long_options, &option_index);
    19061952        if (c == -1) {
    19071953            break;
    19081954        }
    1909         switch(c) {
    1910         case 'p':
     1955        switch (c) {
     1956        case '?':
     1957            fprintf(stderr, "unknown option -%c\n", optopt);
     1958            return 1;
     1959        case ':':
     1960            if (optopt < 4) {
     1961                fprintf(stderr, "argument missing for --%s option\n",
     1962                    long_options[optopt].name);
     1963            } else {
     1964                fprintf(stderr, "argument missing for -%c option\n", optopt);
     1965            }
     1966            return 1;
     1967        case 2:
     1968        case 'p':
    19111969            path = optarg;
    1912             break;
    1913         default:
    1914             fprintf(stderr,"Don't know what option '%c'.\n", c);
     1970            break;
     1971        case 3:
     1972        case 'd':
     1973            debug_flag = true;
     1974            break;
     1975        case 0:
     1976        case 'i':
     1977            fprintf(stderr, "opening infile %s\n", optarg);
     1978            NanoVis::stdin = fopen(optarg, "r");
     1979            if (NanoVis::stdin == NULL) {
     1980                perror(optarg);
     1981                return 2;
     1982            }
     1983            break;
     1984        case 1:
     1985        case 'l':
     1986            fprintf(stderr, "opening logfile %s\n", optarg);
     1987            NanoVis::logfile = fopen(optarg, "w");
     1988            if (NanoVis::logfile == NULL) {
     1989                perror(optarg);
     1990                return 2;
     1991            }
     1992            break;
     1993        default:
     1994            fprintf(stderr,"unknown option '%c'.\n", c);
    19151995            return 1;
    19161996        }
    1917     }
    1918 
     1997    }     
     1998    if (path == NULL) {
     1999        char *p;
     2000
     2001        // See if we can derive the path from the location of the program.
     2002        // Assume program is in the form <path>/bin/nanovis.
     2003
     2004        path = argv[0];
     2005        p = strrchr(path, '/');
     2006        if (p != NULL) {
     2007            *p = '\0';
     2008            p = strrchr(path, '/');
     2009        }
     2010        if (p == NULL) {
     2011            fprintf(stderr, "path not specified\n");
     2012            return 1;
     2013        }
     2014        *p = '\0';
     2015        newPath = new char[(strlen(path) + 15) * 2 + 1];
     2016        sprintf(newPath, "%s/lib/shaders:%s/lib/resources", path, path);
     2017        path = newPath;
     2018    }
    19192019    R2FilePath::getInstance()->setWorkingDirectory(argc, (const char**) argv);
    19202020
     
    19432043
    19442044    NanoVis::init(path);
     2045    if (newPath != NULL) {
     2046        delete [] newPath;
     2047    }
    19452048    NanoVis::initGL();
    19462049    initTcl();
     
    19552058
    19562059    NvExit();
    1957 
    19582060    return 0;
    19592061}
  • trunk/packages/vizservers/nanovis/nanovis.h

    r1053 r1111  
    172172#endif
    173173
     174    static FILE *stdin, *logfile;
     175
    174176    static void read_screen(void) {
    175177        glReadPixels(0, 0, win_width, win_height, GL_RGB, GL_UNSIGNED_BYTE,
     
    181183};
    182184
     185
    183186#endif  /* __NANOVIS_H__ */
  • trunk/packages/vizservers/pymolproxy/pymolproxy.c

    r1072 r1111  
    825825
    826826static int
    827 LoadPDBStrCmd(ClientData cdata, Tcl_Interp *interp, int argc,
     827LoadPDB2Cmd(ClientData cdata, Tcl_Interp *interp, int argc,
    828828              const char *argv[])
    829829{
    830     const char *pdbdata, *pdb, *name;
    831     char *buf;
    832     char buffer[800];
    833     struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;
     830    const char *pdbdata, *name;
     831    PymolProxy *pymol = (PymolProxy *) cdata;
    834832    int state = 1;
    835833    int tmpf;
     
    841839   
    842840    clear_error(pymol);
    843    
     841    pdbdata = name = NULL;      /* Suppress compiler warning. */
    844842    for(arg = 1; arg < argc; arg++) {
    845843        if ( strcmp(argv[arg],"-defer") == 0 )
     
    850848            pdbdata = argv[arg];
    851849            varg++;
    852         }
    853         else if (varg == 2) {
     850        } else if (varg == 2) {
    854851            name = argv[arg];
    855852            varg++;
    856         }
    857         else if (varg == 3) {
     853        } else if (varg == 3) {
    858854            state = atoi( argv[arg] );
    859855            varg++;
     
    874870    sendf(pymol, "load %s, %s, %d\n", filename, name, state);
    875871    sendf(pymol, "zoom buffer=2\n");
    876    
     872    /* Can't clean up the temporary file, since we don't when pymol will be
     873     * done reading it. */
    877874    return(pymol->status);
    878875}
     
    959956    clear_error(pymol);
    960957
    961     for(arg = 1; arg < argc; arg++)
    962         {
    963             if (strcmp(argv[arg],"-defer") == 0)
    964                 defer = 1;
    965             else if (strcmp(argv[arg],"-push") == 0)
    966                 push = 1;
    967             else  if (varg == 1) {
    968                 turnx = atof(argv[arg]);
    969                 varg++;
    970             }
    971             else if (varg == 2) {
    972                 turny = atof(argv[arg]);
    973                 varg++;
    974             }
    975             else if (varg == 3) {
    976                 turnz = atof(argv[arg]);
    977                 varg++;
    978             }
    979         }
    980  
     958    for(arg = 1; arg < argc; arg++) {
     959        if (strcmp(argv[arg],"-defer") == 0) {
     960            defer = 1;
     961        } else if (strcmp(argv[arg],"-push") == 0) {
     962            push = 1;
     963        } else  if (varg == 1) {
     964            turnx = atof(argv[arg]);
     965            varg++;
     966        } else if (varg == 2) {
     967            turny = atof(argv[arg]);
     968            varg++;
     969        } else if (varg == 3) {
     970            turnz = atof(argv[arg]);
     971            varg++;
     972        }
     973    }
    981974    pymol->need_update = !defer || push;
    982975    pymol->immediate_update  |= push;
     
    1005998    clear_error(pymol);
    1006999
    1007     for(arg = 1; arg < argc; arg++)
    1008         {
    1009             if (strcmp(argv[arg],"-defer") == 0)
    1010                 defer = 1;
    1011             else if (strcmp(argv[arg],"-push") == 0)
    1012                 push = 1;
    1013             else if (varg == 1) {
    1014                 factor = atof(argv[arg]);
    1015                 varg++;
    1016             }
    1017         }
    1018 
     1000    for(arg = 1; arg < argc; arg++) {
     1001        if (strcmp(argv[arg],"-defer") == 0)
     1002            defer = 1;
     1003        else if (strcmp(argv[arg],"-push") == 0)
     1004            push = 1;
     1005        else if (varg == 1) {
     1006            factor = atof(argv[arg]);
     1007            varg++;
     1008        }
     1009    }
    10191010    zmove = factor * -75;
    10201011 
     
    12241215    Tcl_CreateCommand(interp, "zoom",    ZoomCmd,       &pymol, NULL);
    12251216    Tcl_CreateCommand(interp, "loadpdb", LoadPDBCmd,    &pymol, NULL);
     1217    Tcl_CreateCommand(interp, "loadpdb2", LoadPDB2Cmd,  &pymol, NULL);
    12261218    Tcl_CreateCommand(interp, "ballnstick",BallNStickCmd, &pymol, NULL);
    12271219    Tcl_CreateCommand(interp, "spheres", SpheresCmd,    &pymol, NULL);
  • trunk/packages/vizservers/start_viz.sh.in

    r985 r1111  
    44export DISPLAY
    55
    6 install_dir=@prefix@
    7 nanoscalePort=2000
    8 nanovisPort=2000
    9 pymolPort=2020
     6broadcast="192.168.200.255"
     7install_dir="@prefix@"
     8nanoscale_port=2000
     9nanovis_port=2000
     10pymol_port=2020
    1011
    1112dir=$( mktemp -d /tmp/nanorun.XXXXXX )
     
    1617export PATH LD_LIBRARY_PATH PYMOL_PATH
    1718
     19nanoscale="${dir}/bin/nanoscale -b $nanoscale_port -s $broadcast"
     20nanovis="${dir}/bin/nanovis -p ${dir}/lib/shaders:${dir}/lib/resources"
     21pymolproxy="${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0"
     22
    1823cp -r ${install_dir}/* ${dir}
    1924
     
    2328ulimit -t $(expr ${minutes} \* 60 )
    2429
    25 #${dir}/bin/nanoscale -d -b ${nanoscalePort} -s 192.168.200.255 -l ${nanovisPort} -c "${dir}/bin/nanovis -p ${dir}/lib/shaders:${dir}/lib/resources"
    26 #${dir}/bin/nanoscale -d -b ${nanoscalePort} -s 192.168.200.255 -l ${pymolPort} -c "${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0"
    27 ${dir}/bin/nanoscale -b ${nanoscalePort} -s 192.168.200.255 -l ${nanovisPort} -c "${dir}/bin/nanovis -p ${dir}/lib/shaders:${dir}/lib/resources" -l ${pymolPort} -c "${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0"
     30#$nanoscale -d -l $nanovis_port -c $nanovis
     31#$nanoscale -d -l $pymol_port -c $pymolproxy
     32
     33#echo "$nanoscale -l $nanovis_port -c \"$nanovis\" -l $pymol_port -c \"$pymolproxy\""
     34#$nanoscale -l $nanovis_port -c "$nanovis" -l $pymol_port -c "$pymolproxy"
     35
     36echo "$nanoscale -l $nanovis_port -c \"$nanovis\""
     37$nanoscale -l $nanovis_port -c "$nanovis"
Note: See TracChangeset for help on using the changeset viewer.