#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57.
#
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`


# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  as_mkdir_p=false
fi

as_executable_p="test -f"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"


# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH


# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_config_libobj_dir=.
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=

ac_unique_file="mk/ptII.mk.in"
ac_default_prefix=$PTII
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CMD_PATH JAVAC JAVA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP PTCC CXX CXXFLAGS ac_ct_CXX JJTREE MATLAB PTMATLAB_CC CALTROP_DIR CHIC_DIR CLASSPATHSEPARATOR COLT_DIR CMKIT_DIR COMMAPI_DIR COMMAPI_PRESENT ECLIPSE_DIR GC_INCLUDE_DIR GC_LD_DIRECTIVE ECLIPSE_EXCLUDING_SRC ECLIPSE_CLASSPATHENTRY_LIBS JAI_JARS JAR_INDEX JAVA_SYSTEM_JAR JAVACC JAVACC_DIR JDOCBREAKITERATOR JDOCTAGLET JHDL_JAR JINI_DIR JINI_PRESENT JOYSTICK_JAR JTCLSH JTREE JVERSION JMF_JARS JODE_CLASSES JYTHON_DIR JXTA_DIR KVM_CLASSES KVM_DIR LEJOS_DIR MAJOR_OS_NAME MATLAB_DIR MATLAB_LIBDIR PSDF_DIR PTBACKTRACK_DIR PTBACKTRACK_JARS PTBACKTRACK_PACKAGES PTBOOST_INCLUDE PTCALTROP_DIR PTCHIC_DIR PTCM_DIR PTCOLT_DIR PTCOLT_JARS PTCOLT_PACKAGES PTCOMM_DIR PTCOMM_PACKAGES PTCOPERNICUS_DIR PTDOCLETS_DIR PTGMP_INCLUDE PTGMP_LD_FLAGS PTGMP_LIB PTGRDOMAIN_JAR PTGR_PACKAGES PTII PTJACL_DIR PTJACL_JAR PTJAI_DIR PTJAI_PACKAGES PTJAVA_DIR PTJAVA_DIR_NO_CYGDRIVE PTJAVA_HOME PTJAVA3D_DIR PTJHDL_DIR PTJMF_DIR PTJMF_PACKAGES PTJNI_DIR PTJNI_ARCHITECTURE PTJNI_NO_CYGWIN PTJNI_SHAREDLIBRARY_CFLAG PTJNI_SHAREDLIBRARY_LDFLAG PTJNI_SHAREDLIBRARY_PREFIX PTJNI_SHAREDLIBRARY_SUFFIX PTJOYSTICK_DIR PTJOYSTICK_PACKAGES PTJSPACES_DIR PTJYTHON_DIR PTJXTA_DIR PTKVM_DIR PTLEGO_DIR PTLEJOS_DIR PTMATLAB_DIR PTMATLAB_LD_ARGS PTMESCAL_DIR PTPSDF_DIR PTQUICKTIME_DIR PTQUICKTIME_PACKAGES PTTINI_DIR PTGIOTTO_DIR PTVR_DIR PTVR_JAR PTVR_PACKAGES PTWABA_DIR PTX10_DIR PTX10_PACKAGES PTII_LOCALURL QTJAVA_ZIP SOOT_CLASSES SOOT_DIR TINI_CLASSES TINI_DIR TOOLS_JAR TOSROOT_NO_CYGDRIVE GIOTTO_CLASSES GIOTTO_DIR WABA_CLASSES WABA_DIR X10_CLASSES X10_DIR LIBOBJS LTLIBOBJS'
ac_subst_files=''

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

ac_prev=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_option in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_$ac_feature='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "with_$ac_package='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$0" : 'X\(//\)[^/]' \| \
         X"$0" : 'X\(//\)$' \| \
         X"$0" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$0" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
  else
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
  fi
fi
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
   { (exit 1); exit 1; }; }
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

_ACEOF

  cat <<_ACEOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
_ACEOF

  cat <<\_ACEOF
_ACEOF
fi

if test -n "$ac_init_help"; then

  cat <<\_ACEOF

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-java=DIR         use Java binaries from DIR,
                           defaults to the value of the
                           PTJAVA_DIR environment variable
  --with-cmkit=DIR       use CaffeineMark from DIR,
                          defaults to \$PTII/vendors/cm
  --with-cal=DIR       use ptCal.jar from DIR,
                          defaults to \$PTII/lib
  --with-chic=DIR       use chic.jar from DIR,
                          defaults to \$PTII/lib
  --with-colt=DIR       use colt.jar from DIR,
                          defaults to \$PTII/vendors/misc/colt
  --with-commapi=DIR       use Java commapi from DIR,
                          defaults to \$PTII/vendors/sun/commapi
  --with-tools_jar=DIR    use tools.jar from DIR,
                          defaults to \$PTJAVA_HOME/../lib/tools.jar
  --with-eclipse=ECLIPSE_DIR     use Eclipse from ECLIPSE_DIR,
                          defaults to c:/Program Files/Eclipse
  --with-gc-include=DIR       use gc.h from DIR
                          defaults to \$PTII/vendors/gc/gc/include
  --with-jhdl-jar=JARFILE       use JHDL from JARFILE,
                          defaults to \$PTII/vendors/jhdl/ptjhdllib/JHDL.jar
  --with-joystick-jar=JARFILE       use JOYSTICK from JARFILE,
                          defaults to \$PTII/vendors/misc/joystick/Joystick.jar
  --with-jython=DIR       use jython.jar from DIR,
                          defaults to \$PTII/vendors/jython
  --with-jxta=DIR       use jxta.jar from DIR,
                          defaults to \$PTII/vendors/sun/jxta
  --with-lejos=DIR       use Java lejos from DIR,
                          defaults to \$PTII/vendors/lejos/lejosBeta3
  --with-javacc=DIR       use JavaCC.zip from DIR,
                           defaults to \$PTII/vendors/sun/javacc-3.2
  --with-ptjacl_jar=PTJACL.JAR  ptjacl.jar file,
                           used for running the test scripts
  --with-jini=DIR       use Jini from DIR,
                          defaults to \$PTII/vendors/sun/$JINI_VERSION
  --with-jode=DIR       use JODE from DIR,
                          defaults to \$PTII/vendors/jode/1.1.1
  --with-kvm=DIR       use PalmOS KVM from DIR,
                          defaults to \$PTII/vendors/sun/j2me_cldc
  --with-mapss=DIR       use mapss.jar from DIR,
                          defaults to \$PTII/lib
  --with-soot=DIR       use SOOT from DIR,
                          defaults to \$PTII/lib
  --with-javasystemjar=DIR       use rt.lib from DIR,
                          defaults to JRE java.home property with lib/rt.jar appended
  --with-tini=DIR       use TINI from DIR,
                          defaults to \$PTII/vendors/dalsemi/tini
  --with-giotto=DIR       use GiottoSDF from DIR,
                          defaults to \$PTII/vendors/giotto
  --with-ptvr-jar=DIR       use Volume Rendering from DIR
                          defaults to \$PTII/lib/ptvr.jar
  --with-waba=DIR       use PalmOS WABA from DIR,
                          defaults to \$PTII/vendors/misc/waba/wabasdk
  --with-X10=DIR       use X10 from DIR,
                          defaults to \$PTII/vendors/misc/x10

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

_ACEOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d $ac_dir || continue
    ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

    cd $ac_dir
    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_srcdir/configure.gnu; then
      echo
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_srcdir/configure; then
      echo
      $SHELL $ac_srcdir/configure  --help=recursive
    elif test -f $ac_srcdir/configure.ac ||
           test -f $ac_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\_ACEOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ $0 $@

_ACEOF
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir"
done

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_sep=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    2)
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
      if test $ac_must_keep_next = true; then
        ac_must_keep_next=false # Got value, back to normal.
      else
        case $ac_arg in
          *=* | --config-cache | -C | -disable-* | --disable-* \
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
          | -with-* | --with-* | -without-* | --without-* | --x)
            case "$ac_configure_args0 " in
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
            esac
            ;;
          -* ) ac_must_keep_next=true ;;
        esac
      fi
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
      # Get rid of the leading space.
      ac_sep=" "
      ;;
    esac
  done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
}
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=$`echo $ac_var`
      echo "$ac_var='"'"'$ac_val'"'"'"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=$`echo $ac_var`
        echo "$ac_var='"'"'$ac_val'"'"'"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      sed "/^$/d" confdefs.h | sort
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core core.* *.core &&
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




















# We must have PTII set before running configure.
if test -z "$PTII"; then
    if test -n "$PTOLEMY"; then
	if test -d "$PTOLEMY/tycho/java"; then
	    echo "\$PTOLEMY/tycho/java exists, setting PTII to that value"
	    PTII="$PTOLEMY/tycho/java"
	    # We should not have to call AC_PREFIX_DEFAULT($PTII) here
	    # but autoconf shuffles things around, so the call to
	    # AC_PREFIX_DEFAULT($PTII) that is 15 or so lines below
	    # actually appears at the top of configure.
	    ac_default_prefix=$PTII
	else
	    echo "You must set the PTII environment variable before running configure"
	    exit 3
	fi
    else
	echo "You must set the PTII environment variable before running configure"
	exit 3
    fi

fi

if test  ! -d "$PTII"; then
    echo "\$PTII is set to '$PTII', but it does not exist"
    exit 3
fi

if test  ! -w "$PTII"; then
    echo "Warning: \$PTII is set to '$PTII', but it is not writable by you."
    echo "This may or may not be a problem.  If you are running under"
    echo "Windows, then you might be able to ignore this problem and"
    echo "proceed with the build.  If you continue to have problems,"
    echo "try upgrading to cygwin1.1.0 or later"
fi

echo "$as_me:$LINENO: checking if \$PTII ('$PTII') contains \"cygdrive\"" >&5
echo $ECHO_N "checking if \$PTII ('$PTII') contains \"cygdrive\"... $ECHO_C" >&6
echo "$PTII" | egrep 'cygdrive|cygwin' > /dev/null
status=$?
if test "$status" -eq 1 ; then
    echo "$as_me:$LINENO: result: ok
    '$PTII' does not contain cygdrive or cygwin, which is right." >&5
echo "${ECHO_T}ok
    '$PTII' does not contain cygdrive or cygwin, which is right." >&6
else
    { echo "$as_me:$LINENO: WARNING: '\$PTII == $PTII,
which contains 'cygdrive' or 'cygwin'.
It could be that you have incorrectly set PTII.
If you have installed Cygwin in c:/cygwin, and your Ptolemy II installation
is in a directory outside of the c:/cygwin tree, then Cygwin may
change your PTII variable to include \"/cygdrive/c\".  This
will cause problems with non-Cygwin tools like javac that do
not understand /cygdrive/c

PTII can end up with cygdrive or cygwin in it if
you mistakenly do something like PTII=\`pwd\`.

Under Cygwin, try permanently setting PTII in the control panel
(Start->Control Panels->Advanced->Environment Variables)
or temporary set it within bash:
  PTII=c:/users/yourname/ptII
  export PTII
and then rerun
  ./configure
See $PTII/doc/install.htm for details.'" >&5
echo "$as_me: WARNING: '\$PTII == $PTII,
which contains 'cygdrive' or 'cygwin'.
It could be that you have incorrectly set PTII.
If you have installed Cygwin in c:/cygwin, and your Ptolemy II installation
is in a directory outside of the c:/cygwin tree, then Cygwin may
change your PTII variable to include \"/cygdrive/c\".  This
will cause problems with non-Cygwin tools like javac that do
not understand /cygdrive/c

PTII can end up with cygdrive or cygwin in it if
you mistakenly do something like PTII=\`pwd\`.

Under Cygwin, try permanently setting PTII in the control panel
(Start->Control Panels->Advanced->Environment Variables)
or temporary set it within bash:
  PTII=c:/users/yourname/ptII
  export PTII
and then rerun
  ./configure
See $PTII/doc/install.htm for details.'" >&2;}
fi


case "`uname -s`" in
    CYGWIN_NT-*)
        echo "$as_me:$LINENO: checking if \$PTII ('$PTII') contains \"cygwin\"" >&5
echo $ECHO_N "checking if \$PTII ('$PTII') contains \"cygwin\"... $ECHO_C" >&6
        cygpath -w "$PTII" | grep cygwin > /dev/null
        status=$?
        if test "$status" -eq 1 ; then
	     echo "$as_me:$LINENO: result: ok
  \$PTII is '$PTII', which does not contain cygwin, which is right." >&5
echo "${ECHO_T}ok
  \$PTII is '$PTII', which does not contain cygwin, which is right." >&6
        else
    { echo "$as_me:$LINENO: WARNING:
'cygpath -w \$PTII' == '\`cygpath -w $PTII\`'
which contains 'cygwin'.
This could happen if your home directory is in the default location
for cygwin which cygwin thinks is /home/yourname,
but windows thinks is c:\\cygwin\\home\\yourname.
This will cause problems with non-Cygwin tools like javac that do
not understand Cygwin directory structure and mounts will not
be able to find files in $PTII.
The solution is to move the Ptolemy II tree outside of
c:\\cygwin and to set the PTII variable to point to that location
and then rerun
  cd \$PTII
  ./configure
See $PTII/doc/install.htm for details.'" >&5
echo "$as_me: WARNING:
'cygpath -w \$PTII' == '\`cygpath -w $PTII\`'
which contains 'cygwin'.
This could happen if your home directory is in the default location
for cygwin which cygwin thinks is /home/yourname,
but windows thinks is c:\\cygwin\\home\\yourname.
This will cause problems with non-Cygwin tools like javac that do
not understand Cygwin directory structure and mounts will not
be able to find files in $PTII.
The solution is to move the Ptolemy II tree outside of
c:\\cygwin and to set the PTII variable to point to that location
and then rerun
  cd \$PTII
  ./configure
See $PTII/doc/install.htm for details.'" >&2;}
     fi
     ;;
esac


# If we are under Cygwin, check that we can find CMD
case "`uname -s`" in
    CYGWIN_NT-*)
	# Extract the first word of "cmd", so it can be a program name with args.
set dummy cmd; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_CMD_PATH+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $CMD_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CMD_PATH="$CMD_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_CMD_PATH="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
CMD_PATH=$ac_cv_path_CMD_PATH

if test -n "$CMD_PATH"; then
  echo "$as_me:$LINENO: result: $CMD_PATH" >&5
echo "${ECHO_T}$CMD_PATH" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	if test ! -x "$CMD_PATH"; then
			{ echo "$as_me:$LINENO: WARNING: Failed to find the 'cmd' command, which
    is used by the $PTII/bin/ptolemy script.
    Under Windows 2000, cmd is usually found at c:\\winnt\\system32\\cmd.exe.
    Under Windows XP, cmd is usually found at c:\\windows\\system32\\cmd.exe.
    You may need to modify your PATH to explicitly include
    c:\\winnt\\system32 by going or c:\\windows\\system32 by going to
    to Start->Settings->Control Panels->System->Environment and changing
    %SystemRoot%\\system32 to c:\\winnt\\system32 or c:\\windows\\system32." >&5
echo "$as_me: WARNING: Failed to find the 'cmd' command, which
    is used by the $PTII/bin/ptolemy script.
    Under Windows 2000, cmd is usually found at c:\\winnt\\system32\\cmd.exe.
    Under Windows XP, cmd is usually found at c:\\windows\\system32\\cmd.exe.
    You may need to modify your PATH to explicitly include
    c:\\winnt\\system32 by going or c:\\windows\\system32 by going to
    to Start->Settings->Control Panels->System->Environment and changing
    %SystemRoot%\\system32 to c:\\winnt\\system32 or c:\\windows\\system32." >&2;}
	fi
	;;

    *) ;;
esac

PTII_DEFAULT=$PTII
# The default value of prefix



#--------------------------------------------------------------------
#	The PTII directory as a URL
#--------------------------------------------------------------------

# Read the PTII variable and substitute forward slashes
# for backward slashes

case "`uname -s`" in
CYGWIN_ME-*)
	# Windows ME is not a real os, and it does not have CMD.
	# So, we punt
	PTII_DIR=$PTII
	;;
CYGWIN_98-*)
	# Windows 98 is not a real os, and it does not have CMD.
	# So, we punt
	PTII_DIR=$PTII
	;;
CYGWIN*)
	# We use cmd /c chdir here to get rid of /cygwin/c
	PTII_DIR=`(cd "$PTII"; cmd /c chdir) | tr -d '\r' | sed 's@\\\@/@g'`
	;;
*)
	PTII_DIR=$PTII
	;;
esac

# Substitute %20 for any spaces.
PTII_LOCALURL=`echo "file:///$PTII_DIR" | sed 's/ /%20/g'`
#--------------------------------------------------------------------
#	See if there was a command-line option for where Java is;  if
#	not, check to see if the PTJAVA_DIR environment variable is set;
#       if it is not, look for javac on the path.
#       NOTE: If your javac compiler is in /usr/bin, then PTJAVA_DIR is
#       likely to be set to /usr.  Consider using PTJAVA_HOME if
#       you are looking for Java jar files.
#       Note that PTJAVA_HOME is set to the jre/ directory, wheras
#       PTJAVA_DIR is set to the directory above the jre/ directory.
#--------------------------------------------------------------------


# Check whether --with-java or --without-java was given.
if test "${with_java+set}" = set; then
  withval="$with_java"
  PTJAVA_DIR=$withval
fi;

if test -d "$PTJAVA_DIR"; then
	echo "$as_me:$LINENO: result:
    PTJAVA_DIR environment variable was set to
    '$PTJAVA_DIR', and there is a directory
    at that location, so we will try it." >&5
echo "${ECHO_T}
    PTJAVA_DIR environment variable was set to
    '$PTJAVA_DIR', and there is a directory
    at that location, so we will try it." >&6
else
    if test -z "$PTJAVA_DIR"; then
	echo "$as_me:$LINENO: result: PTJAVA_DIR environment variable was not set,
    so we search for the java compiler." >&5
echo "${ECHO_T}PTJAVA_DIR environment variable was not set,
    so we search for the java compiler." >&6

    else
	{ echo "$as_me:$LINENO: WARNING: PTJAVA_DIR environment variable is set to
    '${PTJAVA_DIR}', which is not a directory,
    so we search for the java compiler." >&5
echo "$as_me: WARNING: PTJAVA_DIR environment variable is set to
    '${PTJAVA_DIR}', which is not a directory,
    so we search for the java compiler." >&2;}
    fi
    # Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $JAVAC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
JAVAC=$ac_cv_path_JAVAC

if test -n "$JAVAC"; then
  echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    if test -x "$JAVAC"; then
	JAVABIN=`dirname "$JAVAC"`
	PTJAVA_DIR=`dirname "$JAVABIN"`
	if test "$PTJAVA_DIR" = "/"; then
	    if test -d /usr/java; then
		PTJAVA_DIR=/usr/java
	        { echo "$as_me:$LINENO: WARNING:  Found javac in \"$JAVABIN\", /usr/java exists, so
  we are setting PTJAVA_DIR to '$PTJAVA_DIR'" >&5
echo "$as_me: WARNING:  Found javac in \"$JAVABIN\", /usr/java exists, so
  we are setting PTJAVA_DIR to '$PTJAVA_DIR'" >&2;}
	    fi
	fi

    else
        { echo "$as_me:$LINENO: WARNING:  Failed to find javac, perhaps Java is not installed?" >&5
echo "$as_me: WARNING:  Failed to find javac, perhaps Java is not installed?" >&2;}
    fi

    # The default location that we look for the JDK.  This should probably
    # be a list that includes /usr/local/jdk and /opt/jdk
    if test ! -d "$PTJAVA_DIR"; then
	DEFAULT_JDK=/opt/jdk1.3
	if test -d "$DEFAULT_JDK"; then
	    PTJAVA_DIR=`cd "$DEFAULT_JDK"; pwd`
	    { echo "$as_me:$LINENO: WARNING: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" >&5
echo "$as_me: WARNING: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" >&2;}

	else
	    DEFAULT_JDK=/usr/java
	    if test -d "$DEFAULT_JDK"; then
		PTJAVA_DIR=`cd "$DEFAULT_JDK"; pwd`
		{ echo "$as_me:$LINENO: WARNING: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" >&5
echo "$as_me: WARNING: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" >&2;}
	    else
			    { { echo "$as_me:$LINENO: error:
Java directory $DEFAULT_JDK doesn't exist.
Be sure that the directory that contains javac and java is in your path.
Typically, under Windows, this directory might be c:\jdk1.3.1\bin
For instructions about adding to a directory to your path permanently,
consult your user documentation.
Under bash, you may temporarily add a directory with something like:
  PATH=/cygdrive/c/jdk1.3.1/bin:\$PATH
  export PATH
  rm config.*; ./configure
You may also try --with-java=DIR, or set the PTJAVA_DIR environment variable
to the directory where your jdk is located:
  PTJAVA_DIR=/cygdrive/c/jdk1.3.1
  export PATH
  rm config.*; ./configure
but adding the directory to your path is likely to work best." >&5
echo "$as_me: error:
Java directory $DEFAULT_JDK doesn't exist.
Be sure that the directory that contains javac and java is in your path.
Typically, under Windows, this directory might be c:\jdk1.3.1\bin
For instructions about adding to a directory to your path permanently,
consult your user documentation.
Under bash, you may temporarily add a directory with something like:
  PATH=/cygdrive/c/jdk1.3.1/bin:\$PATH
  export PATH
  rm config.*; ./configure
You may also try --with-java=DIR, or set the PTJAVA_DIR environment variable
to the directory where your jdk is located:
  PTJAVA_DIR=/cygdrive/c/jdk1.3.1
  export PATH
  rm config.*; ./configure
but adding the directory to your path is likely to work best." >&2;}
   { (exit 1); exit 1; }; }
	    fi
	fi
    fi
fi

# PTJAVA_DIR without /cygdrive
# Use changequote here to preserve square brackets
PTJAVA_DIR_NO_CYGDRIVE="`echo "$PTJAVA_DIR" | sed 's@/cygdrive/\([a-z]\)/@\1:/@'`"

#
# Check that we have the javac that corresponds with PTJAVA_DIR in our path
#
echo "$as_me:$LINENO: checking for the java runtime in $PTJAVA_DIR/bin" >&5
echo $ECHO_N "checking for the java runtime in $PTJAVA_DIR/bin... $ECHO_C" >&6
if test -f "$PTJAVA_DIR/bin/java" -o -f "$PTJAVA_DIR/bin/java.exe"; then
    echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/java" >&5
echo "${ECHO_T}$PTJAVA_DIR/bin/java" >&6
    echo "$as_me:$LINENO: checking that you have the right java in your path." >&5
echo $ECHO_N "checking that you have the right java in your path.... $ECHO_C" >&6
    # Extract the first word of "java", so it can be a program name with args.
set dummy java; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_JAVA+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $JAVA in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
JAVA=$ac_cv_path_JAVA

if test -n "$JAVA"; then
  echo "$as_me:$LINENO: result: $JAVA" >&5
echo "${ECHO_T}$JAVA" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    if test "$PTJAVA_DIR/bin/java" = "$JAVA"; then
	echo "$as_me:$LINENO: result:     You have the right java in your path,
    \"$PTJAVA_DIR/bin/java\"
      = \"$JAVA\"" >&5
echo "${ECHO_T}    You have the right java in your path,
    \"$PTJAVA_DIR/bin/java\"
      = \"$JAVA\"" >&6
    else
	{ echo "$as_me:$LINENO: WARNING: '$PTJAVA_DIR/bin/java' is not
    the same as '$JAVA'.
    Perhaps '$JAVA' is in your path before
    '$PTJAVA_DIR/bin/java'?
    If you have problems later, be sure that you don't have a mismatch
    in JDK versions." >&5
echo "$as_me: WARNING: '$PTJAVA_DIR/bin/java' is not
    the same as '$JAVA'.
    Perhaps '$JAVA' is in your path before
    '$PTJAVA_DIR/bin/java'?
    If you have problems later, be sure that you don't have a mismatch
    in JDK versions." >&2;}
	JAVA="$PTJAVA_DIR/bin/java"
    fi
else
    { { echo "$as_me:$LINENO: error:
  Cannot find '$PTJAVA_DIR/bin/java'.
  Try --with-java=DIR, or set the PTJAVA_DIR environment variable.
" >&5
echo "$as_me: error:
  Cannot find '$PTJAVA_DIR/bin/java'.
  Try --with-java=DIR, or set the PTJAVA_DIR environment variable.
" >&2;}
   { (exit 1); exit 1; }; }
fi

#
# Check that we have the javac that corresponds with PTJAVA_DIR in our path
#
echo "$as_me:$LINENO: checking for the java compiler in $PTJAVA_DIR/bin" >&5
echo $ECHO_N "checking for the java compiler in $PTJAVA_DIR/bin... $ECHO_C" >&6
if test -f "$PTJAVA_DIR/bin/javac"; then
    echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/javac" >&5
echo "${ECHO_T}$PTJAVA_DIR/bin/javac" >&6
    echo "$as_me:$LINENO: checking that you have the right javac in your path." >&5
echo $ECHO_N "checking that you have the right javac in your path.... $ECHO_C" >&6
    # Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $JAVAC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
JAVAC=$ac_cv_path_JAVAC

if test -n "$JAVAC"; then
  echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    if test ! -x "$JAVAC"; then
	{ echo "$as_me:$LINENO: WARNING: Failed to find the 'javac' command in your path.
        This is not necessarily a problem, since
	'$PTJAVA_DIR/bin/javac' was found, but if you have problems,
	then you may want to adjust your path" >&5
echo "$as_me: WARNING: Failed to find the 'javac' command in your path.
        This is not necessarily a problem, since
	'$PTJAVA_DIR/bin/javac' was found, but if you have problems,
	then you may want to adjust your path" >&2;}
    fi
    if test "$PTJAVA_DIR/bin/javac" = "$JAVAC"; then
        echo "$as_me:$LINENO: result:     You have the right javac in your path,
    \"$PTJAVA_DIR/bin/javac\"
      = \"$JAVAC\"" >&5
echo "${ECHO_T}    You have the right javac in your path,
    \"$PTJAVA_DIR/bin/javac\"
      = \"$JAVAC\"" >&6
    else
        { echo "$as_me:$LINENO: WARNING: '$PTJAVA_DIR/bin/javac' is not
	 the same as '$JAVAC'.
	 Perhaps '$JAVAC' is in your path
	 before '$PTJAVA_DIR/bin/javac'?
	 If you have problems later, be sure that you don't have a mismatch
	 in JDK versions." >&5
echo "$as_me: WARNING: '$PTJAVA_DIR/bin/javac' is not
	 the same as '$JAVAC'.
	 Perhaps '$JAVAC' is in your path
	 before '$PTJAVA_DIR/bin/javac'?
	 If you have problems later, be sure that you don't have a mismatch
	 in JDK versions." >&2;}
	JAVAC="$PTJAVA_DIR/bin/javac"
    fi
else
    { { echo "$as_me:$LINENO: error:
  Cannot find '$PTJAVA_DIR/bin/javac'.
  Try --with-java=DIR, or set the PTJAVA_DIR environment variable." >&5
echo "$as_me: error:
  Cannot find '$PTJAVA_DIR/bin/javac'.
  Try --with-java=DIR, or set the PTJAVA_DIR environment variable." >&2;}
   { (exit 1); exit 1; }; }
fi

#--------------------------------------------------------------------
#	Test the Java Compiler (javac)
#--------------------------------------------------------------------
echo "$as_me:$LINENO: checking the Java compiler with a simple compile" >&5
echo $ECHO_N "checking the Java compiler with a simple compile... $ECHO_C" >&6
JVERSION=unknown
# We need to run javac in the config directory so that javac from jdk1.1.6
# under NT and cygwin works properly
startdir=`pwd`
cd "$srcdir/config"
if "$JAVAC" confTest.java ; then
    echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6

    echo "$as_me:$LINENO: checking the value of the java.version Property " >&5
echo $ECHO_N "checking the value of the java.version Property ... $ECHO_C" >&6
    # Older versions of cygwin might not have env, but 1.1 does
    if env CLASSPATH="$PTII/config" "$JAVA" confTest > /dev/null; then
	# Run it again and get the results
	JVERSION=`CLASSPATH="$PTII/config" "$JAVA" confTest`
	echo "$as_me:$LINENO: result: $JVERSION" >&5
echo "${ECHO_T}$JVERSION" >&6
    else
	{ { echo "$as_me:$LINENO: error: 'CLASSPATH=\"$PTII/config\" \"$JAVA\" confTest failed.
If java fails, then you will not be able to run Ptolemy II.
This could be because your PTII variable is set incorrectly, perhaps
it has 'cygwin' or 'cygdrive' in it?

Under Cygwin, try setting PTII in the control panel
(Start->Control Panels->Advanced->Environment Variables)
or temporary set it within bash:
  PTII=c:/users/yourname/ptII
  export PTII
and then rerun
  ./configure
See $PTII/doc/install.htm for details.'" >&5
echo "$as_me: error: 'CLASSPATH=\"$PTII/config\" \"$JAVA\" confTest failed.
If java fails, then you will not be able to run Ptolemy II.
This could be because your PTII variable is set incorrectly, perhaps
it has 'cygwin' or 'cygdrive' in it?

Under Cygwin, try setting PTII in the control panel
(Start->Control Panels->Advanced->Environment Variables)
or temporary set it within bash:
  PTII=c:/users/yourname/ptII
  export PTII
and then rerun
  ./configure
See $PTII/doc/install.htm for details.'" >&2;}
   { (exit 1); exit 1; }; }
   fi
else
   { { echo "$as_me:$LINENO: error: 'CLASSPATH=\"$PTII/config\" \"$JAVAC\" confTest.java failed.
If javac fails, then you will not be able to compile Ptolemy II.
This could be because your PTII variable is set incorrectly.
Under Cygwin, try setting PTII in the control panel
(Start->Control Panels->Advanced->Environment Variables)
or temporary set it within bash:
  PTII=c:/users/yourname/ptII
  export PTII
and then rerun
  ./configure
See $PTII/doc/install.htm for details.'" >&5
echo "$as_me: error: 'CLASSPATH=\"$PTII/config\" \"$JAVAC\" confTest.java failed.
If javac fails, then you will not be able to compile Ptolemy II.
This could be because your PTII variable is set incorrectly.
Under Cygwin, try setting PTII in the control panel
(Start->Control Panels->Advanced->Environment Variables)
or temporary set it within bash:
  PTII=c:/users/yourname/ptII
  export PTII
and then rerun
  ./configure
See $PTII/doc/install.htm for details.'" >&2;}
   { (exit 1); exit 1; }; }

fi

cd "$startdir"

#--------------------------------------------------------------------
#	We require JDK1.4 or later
#--------------------------------------------------------------------

echo "$as_me:$LINENO: checking the JDK version" >&5
echo $ECHO_N "checking the JDK version... $ECHO_C" >&6
JDOCSIZE=
UPGRADE_JVM=no
case "$JVERSION" in
	1.1.*) UPGRADE_JVM=yes;;
	1.2.*) UPGRADE_JVM=yes;;
	1.3.*) UPGRADE_JVM=yes;;
	1.4.*)
		# If we call the jdk1.4 javadoc without -breakiterator,
		# then we get lots of warnings
		JDOCBREAKITERATOR=-breakiterator
		echo "$as_me:$LINENO: result: ok, you are running 1.4 or later" >&5
echo "${ECHO_T}ok, you are running 1.4 or later" >&6
        ;;
	*) echo "$as_me:$LINENO: result: ok, you are running $JVERSION" >&5
echo "${ECHO_T}ok, you are running $JVERSION" >&6
	;;
esac

if test "$UPGRADE_JVM" = "yes"; then
		{ { echo "$as_me:$LINENO: error: Ptolemy II requires JDK 1.4 or later.
    JDK 1.2.2 has a bug involving compiling inner classes with protected
    methods.
    The RTOS domain uses java.util.Timer, which is present in JDK 1.3
    and later.
    ptolemy/kernel/attributes/URIAttribute.java uses java.net.URI, which
    is present in JDK 1.4 and later.
    Please upgrade your JDK to 1.4 and try again" >&5
echo "$as_me: error: Ptolemy II requires JDK 1.4 or later.
    JDK 1.2.2 has a bug involving compiling inner classes with protected
    methods.
    The RTOS domain uses java.util.Timer, which is present in JDK 1.3
    and later.
    ptolemy/kernel/attributes/URIAttribute.java uses java.net.URI, which
    is present in JDK 1.4 and later.
    Please upgrade your JDK to 1.4 and try again" >&2;}
   { (exit 1); exit 1; }; }
fi


# Set PTJAVA_HOME
# Under Cygwin, PTJAVA_HOME will not contain /cygdrive/c
# Under Cygwin, PTJAVA_DIR _will_ contain /cygdrive/c
# We need to run javac in the config directory so that javac from
# jdk1.1.6 under NT and cygwin works properly
startdir=`pwd`
cd "$srcdir/config"
echo "$as_me:$LINENO: checking for java.home property by compiling a test program " >&5
echo $ECHO_N "checking for java.home property by compiling a test program ... $ECHO_C" >&6
# Don't use 'env $JAVAC . . .' here, it will not work under Cygwin
if "$JAVAC" JavaHome.java ; then
   echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
   echo "$as_me:$LINENO: checking for java.home property by running a test program " >&5
echo $ECHO_N "checking for java.home property by running a test program ... $ECHO_C" >&6
   if env CLASSPATH="$PTII/config" "$JAVA" JavaHome > /dev/null; then
      # Run it again and get the results with \ converted to /
      PTJAVA_HOME=`CLASSPATH="$PTII/config" "$JAVA" JavaHome`
      echo "$as_me:$LINENO: result: $PTJAVA_HOME" >&5
echo "${ECHO_T}$PTJAVA_HOME" >&6
      PTDOCLETS_DIR=doclets
   else
      { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA JavaHome' failed.
   Since we cannot determine where the JRE is, we cannot set PTJAVA_HOME.
   for use with doclets or the serial communications protocol" >&5
echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA JavaHome' failed.
   Since we cannot determine where the JRE is, we cannot set PTJAVA_HOME.
   for use with doclets or the serial communications protocol" >&2;}
    fi
fi
cd "$startdir"

#
# Check that jar can handle the -i argument
#
echo "$as_me:$LINENO: checking for the jar command in $PTJAVA_DIR/bin" >&5
echo $ECHO_N "checking for the jar command in $PTJAVA_DIR/bin... $ECHO_C" >&6
if test -f "$PTJAVA_DIR/bin/jar"; then
    echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/jar" >&5
echo "${ECHO_T}$PTJAVA_DIR/bin/jar" >&6
    echo "$as_me:$LINENO: checking that $PTJAVA_DIR/bin/jar can handle -i" >&5
echo $ECHO_N "checking that $PTJAVA_DIR/bin/jar can handle -i... $ECHO_C" >&6

    cd "$srcdir/config"

    "$PTJAVA_DIR/bin/jar" -cf jarTest.jar confTest.class
    if "$PTJAVA_DIR/bin/jar" -i jarTest.jar; then
        echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/jar -i worked" >&5
echo "${ECHO_T}$PTJAVA_DIR/bin/jar -i worked" >&6
	JAR_INDEX='"$(JAR)" -i $@'
    else
        { { echo "$as_me:$LINENO: error: $PTJAVA_DIR/bin/jar -i jarTest.jar failed,
    so we will not index the jar files" >&5
echo "$as_me: error: $PTJAVA_DIR/bin/jar -i jarTest.jar failed,
    so we will not index the jar files" >&2;}
   { (exit 1); exit 1; }; }
	JAR_INDEX=""
    fi

    cd "$startdir"

else
    { echo "$as_me:$LINENO: WARNING: Cannot find '$PTJAVA_DIR/bin/jar'.
    This is usually only a problem if you run 'make install'" >&5
echo "$as_me: WARNING: Cannot find '$PTJAVA_DIR/bin/jar'.
    This is usually only a problem if you run 'make install'" >&2;}
fi


#--------------------------------------------------------------------
#	Figure out which separator to use for CLASSPATH
#	So much for write once, run everywhere.
#       Find NT4 and Windows 2000 (CYGWIN_NT-4.0 and
#       CYGWIN_NT-5.0 respectively)
#--------------------------------------------------------------------
echo "$as_me:$LINENO: checking for the proper CLASSPATH separator" >&5
echo $ECHO_N "checking for the proper CLASSPATH separator... $ECHO_C" >&6

# If you mess with this, consider changing the jdkClassPathSeparator
# proc in ptII/util/testsuite/jdktools.tcl
case "`uname -s`" in
    CYGWIN_ME-*) CLASSPATHSEPARATOR=";";;
    CYGWIN_NT-*) CLASSPATHSEPARATOR=";";;
    CYGWIN_98-*) CLASSPATHSEPARATOR=";";;
    *) CLASSPATHSEPARATOR=":";;
esac
echo "$as_me:$LINENO: result: '$CLASSPATHSEPARATOR'" >&5
echo "${ECHO_T}'$CLASSPATHSEPARATOR'" >&6


#--------------------------------------------------------------------
#	Get ready to accumulate information for Eclipse
#--------------------------------------------------------------------

# These directories are always excluded from Eclipse
# To add to this list, edit .classpath.in
ECLIPSE_EXCLUDING_SRC=""

# Jar files to include in the Eclipse library
#ECLIPSE_CLASSPATHENTRY_LIBS='<classpathentry kind="lib" path="lib/diva.jar"/>'

#####################################################################
#####################################################################
#       Below here we look for various packages.
#       Not all Ptolemy software products need all packages, so
#       we usually look for a directory that uses the package first
#
#       Please try to keep the packages vaguely alphabetical
#####################################################################
#####################################################################

#--------------------------------------------------------------------
#       Boost is used by Mescal, which is not shipped with
#       the standard Ptolemy II download
#	See http://www.boost.org
#--------------------------------------------------------------------

# Set to -Ixxx if we found boost/static_assert.hpp
PTBOOST_INCLUDE=

# Set to yes if we found boost
PTBOOST=no

# We only need to look for Boost if mescal is present
MESCAL_USER_DIR=$PTII/mescal/views/simulation/model/UINT.H

if test ! -f "$MESCAL_USER_DIR"; then
    echo "$as_me:$LINENO: result: $MESCAL_USER_DIR is not present,
    so we need not find Boost." >&5
echo "${ECHO_T}$MESCAL_USER_DIR is not present,
    so we need not find Boost." >&6
else
    case "`uname -s`" in
	Linux) ARCH=linux;;
        *) ARCH=unknown;;
    esac
    if test "$PTBOOST" = "no"; then
        echo "$as_me:$LINENO: checking for Boost in \$PTII/mescal/include/boost/static_assert.hpp" >&5
echo $ECHO_N "checking for Boost in \$PTII/mescal/include/boost/static_assert.hpp... $ECHO_C" >&6
	if test -f "$PTII/mescal/include/boost/static_assert.hpp"; then
	    echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	    PTBOOST_INCLUDE="-I$PTII/mescal/include"
	    PTBOOST=yes
        else
	    echo "$as_me:$LINENO: result: not found, keep looking" >&5
echo "${ECHO_T}not found, keep looking" >&6
	fi
    fi


    if test "$PTBOOST" = "no"; then
        echo "$as_me:$LINENO: checking for Boost in /usr/local/include/boost/static_assert.hpp" >&5
echo $ECHO_N "checking for Boost in /usr/local/include/boost/static_assert.hpp... $ECHO_C" >&6
	if test -f "/usr/local/include/boost/static_assert.hpp"; then
	    echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	    if test "$ARCH" != "linux"; then
		PTBOOST_INCLUDE="-I/usr/local/include"
	    fi
	    PTBOOST=yes
        else
	    echo "$as_me:$LINENO: result: not found, keep looking" >&5
echo "${ECHO_T}not found, keep looking" >&6
	fi
    fi

    if test "$PTBOOST" = "no"; then
            { echo "$as_me:$LINENO: WARNING: Failed to find boost/static_assert.hpp, which is only
    needed to compile files that include $MESCAL_USER_DIR
    boost can be found at http://www.boost.org
    To install boost, download the source and then do
        cd boost-1.30.2
        mkdir $PTII/mescal/include
        cp -r boost $PTII/mescal/include" >&5
echo "$as_me: WARNING: Failed to find boost/static_assert.hpp, which is only
    needed to compile files that include $MESCAL_USER_DIR
    boost can be found at http://www.boost.org
    To install boost, download the source and then do
        cd boost-1.30.2
        mkdir $PTII/mescal/include
        cp -r boost $PTII/mescal/include" >&2;}
    fi

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
fi

fi


test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:$LINENO: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.

# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
        ;;
    conftest.$ac_ext )
        # This is the source file.
        ;;
    [ab].out )
        # We found the default executable, but exeext='' is most
        # certainly right.
        break;;
    *.* )
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
        # FIXME: I believe we export ac_cv_exeext for Libtool,
        # but it would be cool to find out if it's true.  Does anybody
        # maintain Libtool? --akim.
        export ac_cv_exeext
        break;;
    * )
        break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

rm -f a.out a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cc_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
                     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
                     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep


echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_header_stdc=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
                   (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


if test "${ac_cv_header_stdint_h+set}" = set; then
  echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
if test "${ac_cv_header_stdint_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking stdint.h usability" >&5
echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <stdint.h>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking stdint.h presence" >&5
echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdint.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
if test "${ac_cv_header_stdint_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_stdint_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
echo "${ECHO_T}$ac_cv_header_stdint_h" >&6

fi
if test $ac_cv_header_stdint_h = yes; then
  PTSTDINT_H=yes
else
  PTSTDINT_H=no
fi


    if test "$PTSTDINT_H" = "no"; then
       { echo "$as_me:$LINENO: WARNING: Failed to find stdint.h
    mescal/views/simulation/model/UINT.h includes stdint.h so that
    uint32_t and uint64_t are properly typedefd.
    Older versions of Cygwin might not include stdint.h, the solution
    is to update Cygwin from http://sources.redhat.com/cygwin
    See mescal/views/simulation/model/UINT.h for details." >&5
echo "$as_me: WARNING: Failed to find stdint.h
    mescal/views/simulation/model/UINT.h includes stdint.h so that
    uint32_t and uint64_t are properly typedefd.
    Older versions of Cygwin might not include stdint.h, the solution
    is to update Cygwin from http://sources.redhat.com/cygwin
    See mescal/views/simulation/model/UINT.h for details." >&2;}
       fi
fi

#--------------------------------------------------------------------
#       The CaffeineMark Kit is a Java benchmark kit
#	that is used by C code generation
#       See http://www-sor.inria.fr/~java/tools/cmkit
#--------------------------------------------------------------------

# Directory that contains the CaffeineMark Java Benchmark kit
# used by C code generation in copernicus/c
CMKIT_DIR='${PTII}/vendors/cm'

# PTCM_DIR is set to cm and used in $PTII/ptolemy/copernicus/c/test/makefile
# if the CaffeineMark Java Benchmark kit is found
PTCM_DIR=

# We only need to look for cm if $PTII/ptolemy/copernicus/c exists
if test ! -d "$PTII/ptolemy/copernicus/c"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/copernicus/c is not present,
    so we need not find the CaffeineMark Kit." >&5
echo "${ECHO_T}$PTII/ptolemy/copernicus/c is not present,
    so we need not find the CaffeineMark Kit." >&6
else
    echo "$as_me:$LINENO: checking for CaffeineMarkEmbeddedApp.class" >&5
echo $ECHO_N "checking for CaffeineMarkEmbeddedApp.class... $ECHO_C" >&6

# Check whether --with-cmkit or --without-cmkit was given.
if test "${with_cmkit+set}" = set; then
  withval="$with_cmkit"
  CMKIT_DIR=$withval
else
  CMKIT_DIR=$PTII/vendors/cm
fi;

    if test -f "$CMKIT_DIR/CaffeineMarkEmbeddedApp.class"; then
	echo "$as_me:$LINENO: result: $CMKIT_DIR" >&5
echo "${ECHO_T}$CMKIT_DIR" >&6
	PTCM_DIR=cm
    else
        { echo "$as_me:$LINENO: WARNING: Failed to find $CMKIT_DIR/CaffeineMarkEmbeddedApp.class
    perhaps CaffeineMark is not installed?
    You need not download CaffeineMark unless you plan on using C code
    generation.  The CaffeineMark kit can be downloaded from
    http://www-sor.inria.fr/~java/tools/cmkit/embed.zip" >&5
echo "$as_me: WARNING: Failed to find $CMKIT_DIR/CaffeineMarkEmbeddedApp.class
    perhaps CaffeineMark is not installed?
    You need not download CaffeineMark unless you plan on using C code
    generation.  The CaffeineMark kit can be downloaded from
    http://www-sor.inria.fr/~java/tools/cmkit/embed.zip" >&2;}
	# Note that we don't substitute in the ${PTII} here
	CMKIT_DIR='${PTII}/vendors/cm'
    fi
fi

#--------------------------------------------------------------------
#       Caltrop is an language used to define actors
#	For more information,
#       see http://embedded.eecs.berkeley.edu/caltrop/
#       See if there was a command-line option for where Caltrop is.
#--------------------------------------------------------------------

# PTCALTROP_DIR is set to caltrop and used in
# $PTII/ptolemy/makefile if Cal was found.
PTCALTROP_DIR=

# Directory that contains the ptCal jar file
CALTROP_DIR='${PTII}/lib'

# We only need to look for on if $PTII/ptolemy/caltrop exists
CAL_USER_DIR="$PTII/ptolemy/caltrop"
if test ! -d "$CAL_USER_DIR"; then
    echo "$as_me:$LINENO: result: $CAL_USER_DIR is not present,
    so we need not find the Cal, the actor language." >&5
echo "${ECHO_T}$CAL_USER_DIR is not present,
    so we need not find the Cal, the actor language." >&6
else
    echo "$as_me:$LINENO: checking for Cal, the actor language" >&5
echo $ECHO_N "checking for Cal, the actor language... $ECHO_C" >&6

# Check whether --with-cal or --without-cal was given.
if test "${with_cal+set}" = set; then
  withval="$with_cal"
  CALTROP_DIR=$withval
else
  CALTROP_DIR=$PTII/lib
fi;

    if test -f "$CALTROP_DIR/ptCal.jar"; then
	echo "$as_me:$LINENO: result: $CALTROP_DIR" >&5
echo "${ECHO_T}$CALTROP_DIR" >&6
	# We found cal
	echo "$as_me:$LINENO: checking for saxon7.jar (used by caltrop)" >&5
echo $ECHO_N "checking for saxon7.jar (used by caltrop)... $ECHO_C" >&6
	if test -f "$CALTROP_DIR/saxon7.jar"; then
	   echo "$as_me:$LINENO: result: $CALTROP_DIR/saxon7.jar" >&5
echo "${ECHO_T}$CALTROP_DIR/saxon7.jar" >&6
	   echo "$as_me:$LINENO: checking for java_cup.jar (used by caltrop)" >&5
echo $ECHO_N "checking for java_cup.jar (used by caltrop)... $ECHO_C" >&6
	   if test -f "$CALTROP_DIR/java_cup.jar"; then
	       echo "$as_me:$LINENO: result: $CALTROP_DIR/java_cup.jar" >&5
echo "${ECHO_T}$CALTROP_DIR/java_cup.jar" >&6
	       PTCALTROP_DIR=caltrop
	   else
               { echo "$as_me:$LINENO: WARNING: Failed to find $CALTROP_DIR/java_cup.jar
    which is required by Cal, the actor language.
    You can download java_cup from
    http://www.cs.princeton.edu/~appel/modern/java/CUP/
    If it is not present, you will not be able to use the Cal actor
    or run the demonstrations  in ptolemy/caltrop" >&5
echo "$as_me: WARNING: Failed to find $CALTROP_DIR/java_cup.jar
    which is required by Cal, the actor language.
    You can download java_cup from
    http://www.cs.princeton.edu/~appel/modern/java/CUP/
    If it is not present, you will not be able to use the Cal actor
    or run the demonstrations  in ptolemy/caltrop" >&2;}
	       # Note that we don't substitute in the ${PTII} here
	       CALTROP_DIR='${PTII}/lib/'
	   fi
	else
           { echo "$as_me:$LINENO: WARNING: Failed to find $CALTROP_DIR/saxon7.jar
    which is required by Cal, the actor language.
    You can download saxon from http://saxon.sourceforge.net/
    If it is not present, you will not be able to use the Cal actor
    or run the demonstrations  in ptolemy/caltrop" >&5
echo "$as_me: WARNING: Failed to find $CALTROP_DIR/saxon7.jar
    which is required by Cal, the actor language.
    You can download saxon from http://saxon.sourceforge.net/
    If it is not present, you will not be able to use the Cal actor
    or run the demonstrations  in ptolemy/caltrop" >&2;}
	   # Note that we don't substitute in the ${PTII} here
	   CALTROP_DIR='${PTII}/lib/'
        fi
    else
        { echo "$as_me:$LINENO: WARNING: Failed to find PTII/lib/ptCal.jar
    ptCal.jar should be present in your distribution.
    If it is not present, you will not be able to use the Cal actor
    or run the demonstrations  in ptolemy/caltrop" >&5
echo "$as_me: WARNING: Failed to find PTII/lib/ptCal.jar
    ptCal.jar should be present in your distribution.
    If it is not present, you will not be able to use the Cal actor
    or run the demonstrations  in ptolemy/caltrop" >&2;}
	# Note that we don't substitute in the ${PTII} here
	CALTROP_DIR='${PTII}/lib/'
    fi
fi

if test -z "$PTCALTROP_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/caltrop/"
else
   # Note that jasminclasses.jar in soot also includes java_cup
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$CALTROP_DIR/ptCal.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$CALTROP_DIR/java_cup.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$CALTROP_DIR/saxon7.jar\"/> "
fi

#--------------------------------------------------------------------
#       "CHIC is a modular verifier for behavioral compatibility checking
#	 of software and hardware components"
#
#	For more information,
#       see http://www-cad.eecs.berkeley.edu/~tah/chic/
#--------------------------------------------------------------------

# PTCHIC_DIR is set to chic and used in
# $PTII/ptolemy/makefile if Chic was found.
PTCHIC_DIR=

# Directory that contains the chic jar file
CHIC_DIR='${PTII}/lib'

# We only need to look for if $PTII/ptolemy/chic exists
CHIC_USER_DIR="$PTII/ptolemy/chic"
if test ! -d "$CHIC_USER_DIR"; then
    echo "$as_me:$LINENO: result: $CHIC_USER_DIR is not present,
    so we need not find Chic, the modular verifier for
    behavioral compatibility checking of software and hardware components." >&5
echo "${ECHO_T}$CHIC_USER_DIR is not present,
    so we need not find Chic, the modular verifier for
    behavioral compatibility checking of software and hardware components." >&6
else
    echo "$as_me:$LINENO: checking for Chic, the model checker" >&5
echo $ECHO_N "checking for Chic, the model checker... $ECHO_C" >&6

# Check whether --with-chic or --without-chic was given.
if test "${with_chic+set}" = set; then
  withval="$with_chic"
  CHIC_DIR=$withval
else
  CHIC_DIR=$PTII/lib
fi;

    if test -f "$CHIC_DIR/chic.jar"; then
        echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	# We found chic
	PTCHIC_DIR=chic
    else
        { echo "$as_me:$LINENO: WARNING: Failed to find PTII/lib/chic.jar
    chic.jar should be present in your distribution.
    Chic is a modular verifier for behavioral compatibility checking
    of software and hardware components.
    If it is not present, you will not be able to use the Chic facilities
    or run the demonstrations in ptolemy/chic." >&5
echo "$as_me: WARNING: Failed to find PTII/lib/chic.jar
    chic.jar should be present in your distribution.
    Chic is a modular verifier for behavioral compatibility checking
    of software and hardware components.
    If it is not present, you will not be able to use the Chic facilities
    or run the demonstrations in ptolemy/chic." >&2;}
	# Note that we don't substitute in the ${PTII} here
	CHIC_DIR='${PTII}/lib'
    fi
fi

if test -z "$PTCHIC_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/chic/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
	<classpathentry kind=\"lib\" path=\"$CHIC_DIR/chic.jar\"/> "
fi

#--------------------------------------------------------------------
#       COLT is a
#       "Open Source Libraries for High Performance Scientific and Technical
#       Computing in Java"
#	For more information, see
#       http://hoschek.home.cern.ch/hoschek/colt/
#--------------------------------------------------------------------

# PTCOLT_DIR is set to colt and used in
# $PTII/ptolemy/actor/lib/makefile if Colt was found.
PTCOLT_DIR=

# Colt jar files.  We ship $PTII/lib/ptcolt.jar, which is a subset
# of $PTII/vendors/misc/colt.jar
PTCOLT_JARS=

# Directory that contains the colt jar file
COLT_DIR='${PTII}/vendors/misc/colt'

# We only need to look for if $PTII/ptolemy/actor/lib/colt exists
COLT_USER_DIR="$PTII/ptolemy/actor/lib/colt"
if test ! -d "$COLT_USER_DIR"; then
    echo "$as_me:$LINENO: result: $COLT_USER_DIR is not present,
    so we need not find Colt, the
    Open Source Libraries for High Performance Scientific and Technical
    Computing in Java." >&5
echo "${ECHO_T}$COLT_USER_DIR is not present,
    so we need not find Colt, the
    Open Source Libraries for High Performance Scientific and Technical
    Computing in Java." >&6
else
    echo "$as_me:$LINENO: checking for Ptolemy subset of Colt, the scientific computing lib" >&5
echo $ECHO_N "checking for Ptolemy subset of Colt, the scientific computing lib... $ECHO_C" >&6
    if test -f "$PTII/lib/ptcolt.jar"; then
        echo "$as_me:$LINENO: result: $PTII/lib/colt.jar" >&5
echo "${ECHO_T}$PTII/lib/colt.jar" >&6
        PTCOLT_JAR="$PTII/lib/ptcolt.jar"
	PTCOLT_DIR=colt
	# PTCOLT_PACKAGES is used in ptII/doc/makefile
	PTCOLT_PACKAGES=ptolemy.actor.lib.colt

    else
        { echo "$as_me:$LINENO: WARNING: Failed to find $PTII/lib/ptcolt.jar, will look for
    full colt.jar" >&5
echo "$as_me: WARNING: Failed to find $PTII/lib/ptcolt.jar, will look for
    full colt.jar" >&2;}
        PTCOLT_JAR=
    fi

    echo "$as_me:$LINENO: checking for Full version of Colt, the scientific computing lib" >&5
echo $ECHO_N "checking for Full version of Colt, the scientific computing lib... $ECHO_C" >&6

# Check whether --with-colt or --without-colt was given.
if test "${with_colt+set}" = set; then
  withval="$with_colt"
  COLT_DIR=$withval
else
  COLT_DIR=$PTII/vendors/misc/colt
fi;

    if test -f "$COLT_DIR/colt.jar"; then
        echo "$as_me:$LINENO: result: $COLT_DIR/colt.jar" >&5
echo "${ECHO_T}$COLT_DIR/colt.jar" >&6
	PTCOLT_JARS=$COLT_DIR/colt.jar$CLASSPATHSEPARATOR$PTCOLT_JAR
	ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
	<classpathentry kind=\"lib\" path=\"$COLT_DIR/colt.jar\"/> "
	if test -z "$PTCOLT_DIR"; then
 	    ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
	        <classpathentry kind=\"lib\" path=\"$PTCOLT_JAR\"/> "
        fi
	# We found colt
	PTCOLT_DIR=colt
	# PTCOLT_PACKAGES is used in ptII/doc/makefile
	PTCOLT_PACKAGES=ptolemy.actor.lib.colt
    else
	PTCOLT_JARS=$PTCOLT_JAR
	if test -z "PTCOLT_DIR"; then
            { echo "$as_me:$LINENO: WARNING: Failed to find $PTII/lib/ptcolt.jar
    and $COLT_DIR/colt.jar.
    Colt is the 'Open Source Libraries for High Performance
    Scientific and Technical Computing in Java'
    For more information, see http://hoschek.home.cern.ch/hoschek/colt/
    If it is not present, you will not be able to use the Colt facilities
    or run the demonstrations in ptolemy/actor/lib/colt." >&5
echo "$as_me: WARNING: Failed to find $PTII/lib/ptcolt.jar
    and $COLT_DIR/colt.jar.
    Colt is the 'Open Source Libraries for High Performance
    Scientific and Technical Computing in Java'
    For more information, see http://hoschek.home.cern.ch/hoschek/colt/
    If it is not present, you will not be able to use the Colt facilities
    or run the demonstrations in ptolemy/actor/lib/colt." >&2;}
	    # Note that we don't substitute in the ${PTII} here
	    COLT_DIR='${PTII}/vendors/misc/colt'
        else
            echo "$as_me:$LINENO: result: $COLT_DIR/colt.jar not found, using $PTCOLT_JAR" >&5
echo "${ECHO_T}$COLT_DIR/colt.jar not found, using $PTCOLT_JAR" >&6
 	    ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
	        <classpathentry kind=\"lib\" path=\"$PTCOLT_JAR\"/> "
        fi
    fi
fi

if test -z "$PTCOLT_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/colt/"
fi


#--------------------------------------------------------------------
#       commapi is the Java serial interface, see
#	http://java.sun.com/products/javacomm/
#	See if there was a command-line option for commapi is
#       If not, check to see if $PTII/vendors/sun/commapi
#--------------------------------------------------------------------

# We only need to look for commapi if $PTII/ptolemy/actor/lib/io/comm is present
COMMAPI_USER_DIR="$PTII/ptolemy/actor/lib/io/comm"
COMMAPI_PRESENT=no
# PTLEGO_DIR is set to lego
# $PTII/ptolemy/apps/makefile if the Java Communications API was found
#
PTLEGO_DIR=
# PTCOMM_DIR is set to comm and used in
# $PTII/ptolemy/actor/lib/io/makefile if the Java Communications API was found
#
PTCOMM_DIR=
if test ! -d "$COMMAPI_USER_DIR"; then
    echo "$as_me:$LINENO: result: $COMMAPI_USER_DIR is not present,
    so we need not find commapi." >&5
echo "${ECHO_T}$COMMAPI_USER_DIR is not present,
    so we need not find commapi." >&6
    # Use curly brackets around PTII so that if commapi is not present
    # then ${PTII} will appear in ptinvoke.
    COMMAPI_DIR='${PTII}/vendors/sun/commapi'
else
    echo "$as_me:$LINENO: checking for commapi directory" >&5
echo $ECHO_N "checking for commapi directory... $ECHO_C" >&6

# Check whether --with-commapi or --without-commapi was given.
if test "${with_commapi+set}" = set; then
  withval="$with_commapi"
  COMMAPI_DIR=$withval
else
  COMMAPI_DIR=$PTII/vendors/sun/commapi
fi;

    if test -f "$COMMAPI_DIR/comm.jar"; then
        echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	# Subdirectories that contains Java Communications API specific code
	PTLEGO_DIR=lego
	PTCOMM_DIR=comm
	# PTCOMM_PACKAGES is used in ptII/doc/makefile
	PTCOMM_PACKAGES=ptolemy.actor.lib.io.comm
	COMMAPI_PRESENT=yes
    else
	echo "$as_me:$LINENO: result: Did not find
	'$COMMAPI_DIR/comm.jar'" >&5
echo "${ECHO_T}Did not find
	'$COMMAPI_DIR/comm.jar'" >&6
    fi

    echo "$as_me:$LINENO: checking for javax.comm.properties " >&5
echo $ECHO_N "checking for javax.comm.properties ... $ECHO_C" >&6
    if test -f "$PTJAVA_HOME/lib/javax.comm.properties"; then
        echo "$as_me:$LINENO: result: $PTJAVA_HOME/lib/javax.comm.properties" >&5
echo "${ECHO_T}$PTJAVA_HOME/lib/javax.comm.properties" >&6
    else
        { echo "$as_me:$LINENO: WARNING: $PTJAVA_HOME/lib/javax.comm.properties
    not found.
    If you try to access a serial port and get 'No serial ports found!',
    then the problem is that javax.comm.properties is not being found.
    Download the Java Comm API from http://java.sun.com/products/javacomm/
    and place javax.comm.properties in $PTJAVA_HOME/lib" >&5
echo "$as_me: WARNING: $PTJAVA_HOME/lib/javax.comm.properties
    not found.
    If you try to access a serial port and get 'No serial ports found!',
    then the problem is that javax.comm.properties is not being found.
    Download the Java Comm API from http://java.sun.com/products/javacomm/
    and place javax.comm.properties in $PTJAVA_HOME/lib" >&2;}
    fi

    case "`uname -s`" in
    CYGWIN*)	 PTCYGWIN=yes;;
    *) PTCYGWIN=no;
    esac
    if test $PTCYGWIN = "yes"; then
       echo "$as_me:$LINENO: checking for win32com.dll " >&5
echo $ECHO_N "checking for win32com.dll ... $ECHO_C" >&6
       if test -f "$PTJAVA_HOME/bin/win32com.dll"; then
           echo "$as_me:$LINENO: result: $PTJAVA_HOME/bin/win32com.dll" >&5
echo "${ECHO_T}$PTJAVA_HOME/bin/win32com.dll" >&6
       else
           { echo "$as_me:$LINENO: WARNING: $PTJAVA_HOME/bin/win32com.dll
    not found.
    Download the Java Comm API from http://java.sun.com/products/javacomm/
    and place win32com.dll in $PTJAVA_HOME/jre/bin" >&5
echo "$as_me: WARNING: $PTJAVA_HOME/bin/win32com.dll
    not found.
    Download the Java Comm API from http://java.sun.com/products/javacomm/
    and place win32com.dll in $PTJAVA_HOME/jre/bin" >&2;}
       fi
    fi

    if test "$COMMAPI_PRESENT" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Perhaps commapi is not installed?
    You need not download commapi unless you plan the actors in actor.lib.comm.
    The commapi can be downloaded from http://java.sun.com/products/javacomm/
    and placed  in \$PTII/vendors/sun/commapi" >&5
echo "$as_me: WARNING: Perhaps commapi is not installed?
    You need not download commapi unless you plan the actors in actor.lib.comm.
    The commapi can be downloaded from http://java.sun.com/products/javacomm/
    and placed  in \$PTII/vendors/sun/commapi" >&2;}
    fi
fi

if test -z "$PTCOMM_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/io/comm/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$COMMAPI_DIR/comm.jar\"/>"
fi

#--------------------------------------------------------------------
#       doclets are used to control javadoc
#	The Ptolemy II doclets are in $PTII/doc/doclets
#	and use $PTJAVA_HOME/../tools.jar to compile
#--------------------------------------------------------------------

# We only need to look for doclet if $PTII/doc/doclets is present
DOCLETS_USER_DIR="$PTII/doc/doclets"
DOCLETS_PRESENT=no

# Location of tools.jar, usually $(PTJAVA_HOME)/../lib/tools.jar
TOOLS_JAR=

# PTDOCLETS_DIR is set to doclets and used in
# $PTII/doc if com.sun.tools.doclets.Taglet can be found
PTDOCLETS_DIR=

# If we can compile in doc/doclets, we set JDOCTAGLET appropriately
# and use JDOCTAGLET in doc/makefile
JDOCTAGLET=

if test ! -d "$DOCLETS_USER_DIR"; then
    echo "$as_me:$LINENO: result: $DOCLETS_USER_DIR is not present,
    so we need not find tools.jar in the JRE." >&5
echo "${ECHO_T}$DOCLETS_USER_DIR is not present,
    so we need not find tools.jar in the JRE." >&6
    # Use curly brackets around PTII so that if tools.jar is not present

    TOOLS_JAR='${PTJAVA_HOME}/../lib/tools.jar'
else
    echo "$as_me:$LINENO: checking for tools.jar directory" >&5
echo $ECHO_N "checking for tools.jar directory... $ECHO_C" >&6

# Check whether --with-tools_jar or --without-tools_jar was given.
if test "${with_tools_jar+set}" = set; then
  withval="$with_tools_jar"
  TOOLS_JAR=$withval
else
  TOOLS_JAR=${PTJAVA_HOME}/../lib/tools.jar
fi;
    if test -f "$TOOLS_JAR"; then
	echo "$as_me:$LINENO: result: $TOOLS_JAR" >&5
echo "${ECHO_T}$TOOLS_JAR" >&6
	PTDOCLETS_DIR=doclets
	# Use curly brackets so PTII gets expanded in the makefile
	JDOCTAGLET='-tagletpath "${PTII}" -taglet doc.doclets.RatingTaglet'
    else
	{ echo "$as_me:$LINENO: WARNING: Could not find tools.jar.
    PTJAVA_HOME = $PTJAVA_HOME
    Usually, tools.jar is in PTJAVA_HOME/../lib/tools.jar
    Since tools.jar cannot be found, we will not use doclets from
    ptII/doc/doclets" >&5
echo "$as_me: WARNING: Could not find tools.jar.
    PTJAVA_HOME = $PTJAVA_HOME
    Usually, tools.jar is in PTJAVA_HOME/../lib/tools.jar
    Since tools.jar cannot be found, we will not use doclets from
    ptII/doc/doclets" >&2;}
    fi
fi

if test -z "$PTDOCLETS_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|doc/doclets/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$TOOLS_JAR\"/>"
fi

#--------------------------------------------------------------------
#       We use Eclipse for parsing java backtracking.
#       Eclipse is an integrated development environment, see
#	http://www.eclipse.org
#       See if there was a command-line option for where Eclipse can be found
#       is
#       If not, look for for $PTII/vendors/eclipse
#--------------------------------------------------------------------

# PTBACKTRACK_DIR is set to backtrack and used in
# $PTII/ptolemy/makefile if Eclipse was found and the jar files were found
PTBACKTRACK_DIR=

# Jar files used by ptolemy/backtrack
PTBACKTRACK_JARS=

# We only need to look for Eclipse if $PTII/ptolemy/backtrack exists
if test ! -d "$PTII/ptolemy/backtrack"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/backtrack is not present,
    so we need not find Eclipse." >&5
echo "${ECHO_T}$PTII/ptolemy/backtrack is not present,
    so we need not find Eclipse." >&6
else
    echo "$as_me:$LINENO: checking for Eclipse installation" >&5
echo $ECHO_N "checking for Eclipse installation... $ECHO_C" >&6

# Check whether --with-eclipse or --without-eclipse was given.
if test "${with_eclipse+set}" = set; then
  withval="$with_eclipse"
  ECLIPSE_DIR=$withval
else
  ECLIPSE_DIR=c:/Program\ Files/Eclipse
fi;

    if test ! -d "$ECLIPSE_DIR"; then
	{ echo "$as_me:$LINENO: WARNING: Failed to find Eclipse" >&5
echo "$as_me: WARNING: Failed to find Eclipse" >&2;}
	echo "$as_me:$LINENO: checking for $PTII/vendors/eclipse" >&5
echo $ECHO_N "checking for $PTII/vendors/eclipse... $ECHO_C" >&6
	if test -d  "$PTII/vendors/eclipse"; then
	   ECLIPSE_DIR="$PTII/vendors/eclipse"
	fi
    fi
    if test -d "$ECLIPSE_DIR"; then
	echo "$as_me:$LINENO: result: $ECLIPSE_DIR" >&5
echo "${ECHO_T}$ECLIPSE_DIR" >&6
	echo "$as_me:$LINENO: checking for jars used by backtracking" >&5
echo $ECHO_N "checking for jars used by backtracking... $ECHO_C" >&6
	jars="jdtcore.jar osgi.jar resources.jar runtime.jar"
	eclipsejarpath=
	for jar in $jars
	do
	    echo $ECHO_N "$jar "
	    jarpath=`find "$ECLIPSE_DIR/plugins" -name $jar | head -1`
   	    if test -f "$jarpath"; then
  	        eclipsejarpath="$eclipsejarpath$CLASSPATHSEPARATOR$jarpath"
		# FIXME: we should not be adding to ECLIPSE_CLASSPATHENTRY_LIBS
		# unless we are sure that we can find all the jars
		ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
                <classpathentry kind=\"lib\" path=\"$jarpath\"/>"
 	    else
		{ echo "$as_me:$LINENO: WARNING: Failed to find $jar in $ECLIPSE_DIR: $jarpath" >&5
echo "$as_me: WARNING: Failed to find $jar in $ECLIPSE_DIR: $jarpath" >&2;}
	        eclipsejarpath=
		break
	    fi
	done
	if test ! -z "$eclipsejarpath"; then
	    echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	    # Set to backtrack and used in
	    # $PTII/ptolemy/make if Eclipse jar files were found
	    PTBACKTRACK_DIR=backtrack
   	    # PTBACKTRACK_PACKAGES is used in ptII/doc/makefile
	    PTBACKTRACK_PACKAGES="ptolemy.backtrack.ast ptolemy.backtrack.ast.transform ptolemy.backtrack.util ptolemy.backtrack.xmlparser"
	    PTBACKTRACK_JARS=$eclipsejarpath
        fi
    fi
    if test "$PTBACKTRACK_DIR" = ""; then
        { echo "$as_me:$LINENO: WARNING: Failed to find Eclipse
    perhaps the Eclipse is not installed?
    You need not download Eclipse unless you
    plan on using the backtracking facility in ptolemy.backtrack
    Eclipse may be downloaded from
    http://www.eclipse.org/" >&5
echo "$as_me: WARNING: Failed to find Eclipse
    perhaps the Eclipse is not installed?
    You need not download Eclipse unless you
    plan on using the backtracking facility in ptolemy.backtrack
    Eclipse may be downloaded from
    http://www.eclipse.org/" >&2;}
	PTBACKTRACK_JARS=
    fi
fi

if test -z "$PTBACKTRACK_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/backtrack/|ptolemy/backtrack/ast/"
fi

#--------------------------------------------------------------------

#       Garbage Collector (GC)
#       The C code generator can use the Boehm Garbage Collector
#       See http://www.hpl.hp.com/personal/Hans_Boehm/gc/
#--------------------------------------------------------------------
#
# GC_LD_DIRECTIVE is set to the values to pass to cc or ld if
# GC_malloc() can be found either in the default compiler location
# or in $PTII/lib.
# GC_LD_DIRECTIVE is used in ptolemy/copernicus/c/
GC_LD_DIRECTIVE=

# GC_DIR is set to the directory where GC can be found
GC_DIR=

if test ! -d "$PTII/ptolemy/copernicus/c"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/copernicus/c is not present,
    so we need not find the Boehm GC." >&5
echo "${ECHO_T}$PTII/ptolemy/copernicus/c is not present,
    so we need not find the Boehm GC." >&6
else
    # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTCC=$ac_cv_path_PTCC

if test -n "$PTCC"; then
  echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    if test "${PTCC:-none}" = "none"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5
echo "$as_me: WARNING: Failed to find gcc" >&2;}
        # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTCC=$ac_cv_path_PTCC

if test -n "$PTCC"; then
  echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

        if test "${PTCC:-none}" != "none"; then
            echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
        else
            { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will
    not be able use GC in $PTII/ptolemy/copernicus/c" >&5
echo "$as_me: WARNING: Failed to find gcc or cc, so we will
    not be able use GC in $PTII/ptolemy/copernicus/c" >&2;};
        fi
    fi

    if test "${PTCC:-none}" != "none"; then
       echo "$as_me:$LINENO: checking for Garbage Collector" >&5
echo $ECHO_N "checking for Garbage Collector... $ECHO_C" >&6
       echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char GC_malloc ();
int
main ()
{
GC_malloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gc_GC_malloc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gc_GC_malloc=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
if test $ac_cv_lib_gc_GC_malloc = yes; then
  PT_GC=yes
else
  PT_GC=no
fi

       if test "$PT_GC" = "yes"; then
           echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
           if test -f "$PTII/lib/libgc.a"; then
	      # FIXME: what about Windows?
	      GC_LD_DIRECTIVE='"-L${PTII}/lib" -lgc'
	      echo "$as_me:$LINENO: result: use $GC_LD_DIRECTIVE" >&5
echo "${ECHO_T}use $GC_LD_DIRECTIVE" >&6
           else
	      # FIXME: This will not work if $PTII has spaces
	      dirs="$PTII/vendors/gc/gc6.4 $PTII/vendors/gc/gc6.1 $PTII/vendors/gc/gc"
	      for dir in $dirs
	      do
	          if test -d "$dir"; then
                      { echo "$as_me:$LINENO: WARNING: Failed to find GC_malloc(), but
    $dir exists.  See \$PTII/vendors/gc/README.txt
    if you would like to use the Garbage Collector with the C code generator" >&5
echo "$as_me: WARNING: Failed to find GC_malloc(), but
    $dir exists.  See \$PTII/vendors/gc/README.txt
    if you would like to use the Garbage Collector with the C code generator" >&2;}
                  fi
	      done
           fi
       fi
    fi
   echo "$as_me:$LINENO: checking for gc.h" >&5
echo $ECHO_N "checking for gc.h... $ECHO_C" >&6

# Check whether --with-gc-include or --without-gc-include was given.
if test "${with_gc_include+set}" = set; then
  withval="$with_gc_include"
  GC_INCLUDE_DIR=$withval
else
  GC_INCLUDE_DIR=$PTII/vendors/gc/gc/include
fi;

   if test -f "$GC_INCLUDE_DIR/gc.h"; then
       echo "$as_me:$LINENO: result: $GC_INCLUDE_DIR/gc.h" >&5
echo "${ECHO_T}$GC_INCLUDE_DIR/gc.h" >&6
   else
       # FIXME: This will not work if $PTII has spaces
       dirs="$PTII/vendors/gc/gc6.4 $PTII/vendors/gc/gc6.1 $PTII/vendors/gc/gc"
       for dir in $dirs
       do
           if test -f "$dir/include/gc.h"; then
               GC_INCLUDE_DIR=$PTII/vendors/gc/gc6.4/include
	       echo "$as_me:$LINENO: result: $GC_INCLUDE_DIR/gc.h" >&5
echo "${ECHO_T}$GC_INCLUDE_DIR/gc.h" >&6
           fi
       done
       if test ! -f "$GC_INCLUDE_DIR/gc.h"; then
           { echo "$as_me:$LINENO: WARNING: Failed to find gc.h.
    Checked the following directories:
    $dirs
    The Boehm Garbage Collector can be downloaded from
    http://www.hpl.hp.com/personal/Hans_Boehm/gc/
    if you wish to use it with the C code generator" >&5
echo "$as_me: WARNING: Failed to find gc.h.
    Checked the following directories:
    $dirs
    The Boehm Garbage Collector can be downloaded from
    http://www.hpl.hp.com/personal/Hans_Boehm/gc/
    if you wish to use it with the C code generator" >&2;}
       fi
   fi
fi


#--------------------------------------------------------------------
#       GMP - GNU arbitrary precision arithmetic library, needed only by mescal
#
#--------------------------------------------------------------------
# We only need to look for GMP if mescal/relsat is present
MESCAL_RELSAT_USER_DIR="$PTII/mescal/relsat"

PTGMP=no
if test ! -d "$MESCAL_RELSAT_USER_DIR"; then
    echo "$as_me:$LINENO: result: $MESCAL_RELSAT_USER_DIR is not present,
    so we need not find GMP." >&5
echo "${ECHO_T}$MESCAL_RELSAT_USER_DIR is not present,
    so we need not find GMP." >&6
else
    case "`uname -s`" in
	Linux) ARCH=linux;;
        *) ARCH=unknown;;
    esac

    if test "$PTGMP" = "no"; then
        echo "$as_me:$LINENO: checking for GMP in \$PTII/mescal/include/gmp.h" >&5
echo $ECHO_N "checking for GMP in \$PTII/mescal/include/gmp.h... $ECHO_C" >&6
	if test -f "$PTII/mescal/include/gmp.h"; then
	    echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	    PTGMP_INCLUDE="-I$PTII/mescal/include"
	    PTGMP_LIB="-L$PTII/mescal/lib"
	    PTGMP_LD_FLAGS="-Wl,-R$PTII/mescal/lib"
	    PTGMP=yes
        else
	    echo "$as_me:$LINENO: result: not found, keep looking" >&5
echo "${ECHO_T}not found, keep looking" >&6
	fi
    fi

    if test "$PTGMP" = "no"; then
        echo "$as_me:$LINENO: checking for GMP in /usr/local/include/gmp.h" >&5
echo $ECHO_N "checking for GMP in /usr/local/include/gmp.h... $ECHO_C" >&6
        if test -f "/usr/local/include/gmp.h"; then
            echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	    if test "$ARCH" != "linux"; then
	        PTGMP_INCLUDE=-I/usr/local/include
		PTGMP_LIB=-L/usr/local/lib
	        PTGMP_LD_FLAGS="-Wl,-R/usr/local/lib"
            fi
	    PTGMP=yes
        else
	    echo "$as_me:$LINENO: result: not found, keep looking" >&5
echo "${ECHO_T}not found, keep looking" >&6
        fi
    fi

    if test "$PTGMP" = "no"; then
        echo "$as_me:$LINENO: checking for GMP" >&5
echo $ECHO_N "checking for GMP... $ECHO_C" >&6

for ac_header in gmp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 PTGMP=yes
else
  PTGMP=no
fi

done

    fi

    if test "$PTGMP" = "yes"; then
        echo "$as_me:$LINENO: checking for gcc" >&5
echo $ECHO_N "checking for gcc... $ECHO_C" >&6
        # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTCC=$ac_cv_path_PTCC

if test -n "$PTCC"; then
  echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

        if test "${PTCC:-none}" = "none"; then
            { echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5
echo "$as_me: WARNING: Failed to find gcc" >&2;}
	    # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTCC=$ac_cv_path_PTCC

if test -n "$PTCC"; then
  echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	    if test "${PTCC:-none}" = "none"; then
	        { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will
    not be able to compile the mescal output" >&5
echo "$as_me: WARNING: Failed to find gcc or cc, so we will
    not be able to compile the mescal output" >&2;};
            fi
	fi

	PTGMP_OK=no
	startdir=`pwd`
	# Make sure that we check for CXX before cding in to config
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cxx_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        cd "$srcdir/config"
        echo "$as_me:$LINENO: checking gmp by compiling a C small program" >&5
echo $ECHO_N "checking gmp by compiling a C small program... $ECHO_C" >&6
	if "$PTCC" gmpTest.c $PTGMP_INCLUDE -o gmpTest $PTGMP_LD_FLAGS $PTGMP_LIB -lgmp ; then
	    ./gmpTest
	    echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	else
	    RESULTS=`"$PTCC" gmpTest.c $PTGMP_INCLUDE -o gmpTest $PTGMP_LD_FLAGS$PTGMP_LIB -lgmp`
	    { echo "$as_me:$LINENO: WARNING: Failed to compile config/gmpTest.c,
    \"$PTCC\" gmpTest.c $PTGMP_INCLUDE -o gmpTest $PTGMP_LIB -lgmp
    $RESULTS" >&5
echo "$as_me: WARNING: Failed to compile config/gmpTest.c,
    \"$PTCC\" gmpTest.c $PTGMP_INCLUDE -o gmpTest $PTGMP_LIB -lgmp
    $RESULTS" >&2;}
	fi

        echo "$as_me:$LINENO: checking gmp by compiling a C++ small program" >&5
echo $ECHO_N "checking gmp by compiling a C++ small program... $ECHO_C" >&6
	if "$CXX" gmpTest2.cc $PTGMP_INCLUDE -o gmpTest2 $PTGMP_LD_FLAGS $PTGMP_LIB -lgmpxx -lgmp ; then
	    ./gmpTest2
	    echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	else
	    RESULTS=`"$CXX" gmpTest2.cc $PTGMP_INCLUDE -o gmpTest2 $PTGMP_LD_FLAGS $PTGMP_LIB -lgmpcxx -lgmp`
	    { echo "$as_me:$LINENO: WARNING: Failed to compile config/gmpTest2.cc,
    \"$CXX\" gmpTest2.cc $PTGMP_INCLUDE -o gmpTest2 $PTGMP_LD_FLAG $PTGMP_LIB -lgmpxx -lgmp
    $RESULTS
    Under Cygwin, perhaps you need to add $PTII/bin/mescal to your PATH,
    Under Linux, perhaps you need to add $PTII/bin/mescal to
    your LD_LIBRARY_PATH" >&5
echo "$as_me: WARNING: Failed to compile config/gmpTest2.cc,
    \"$CXX\" gmpTest2.cc $PTGMP_INCLUDE -o gmpTest2 $PTGMP_LD_FLAG $PTGMP_LIB -lgmpxx -lgmp
    $RESULTS
    Under Cygwin, perhaps you need to add $PTII/bin/mescal to your PATH,
    Under Linux, perhaps you need to add $PTII/bin/mescal to
    your LD_LIBRARY_PATH" >&2;}
	fi

        cd "$startdir"
    fi

    if test "$PTGMP" = "no"; then
            { echo "$as_me:$LINENO: WARNING: Failed to find gmp.h, which is only
    needed to compile $MESCAL_RELSAT_USER_DIR
    gmp can be found at http://www.swox.com/gmp/
    Mescal uses c++, and configure will look in /usr/local
    and $PTII/mescal/include and $PTII/mescal/lib for gmp,
    so gmp should be configured with
       ./configure --enable-cxx --prefix=$PTII/mescal" >&5
echo "$as_me: WARNING: Failed to find gmp.h, which is only
    needed to compile $MESCAL_RELSAT_USER_DIR
    gmp can be found at http://www.swox.com/gmp/
    Mescal uses c++, and configure will look in /usr/local
    and $PTII/mescal/include and $PTII/mescal/lib for gmp,
    so gmp should be configured with
       ./configure --enable-cxx --prefix=$PTII/mescal" >&2;}
    fi
fi

#--------------------------------------------------------------------
#       JAI is the Java Advanced Imaging Framework
#	For more information,
#       see http://java.sun.com/products/java-media/jai/
#       See if there was a command-line option for where JAI is.
#--------------------------------------------------------------------

# PTJAI_DIR is set to jai and used in
# $PTII/ptolemy/actor/makefile if jai was found
PTJAI_DIR=

# Used in ptolemy/actor/lib/jai/makefile
JAI_JARS=

# We only need to look for JAI if the actor/lib/jai directory is present
JAI_USER_DIR="$PTII/ptolemy/actor/lib/jai"

if test ! -d "$JAI_USER_DIR"; then
    echo "$as_me:$LINENO: result: $JAI_USER_DIR is not present,
    so we need not find JAI - The Java Advanced Imaging API." >&5
echo "${ECHO_T}$JAI_USER_DIR is not present,
    so we need not find JAI - The Java Advanced Imaging API." >&6
else
    echo "$as_me:$LINENO: checking for Java Advanced Imaging (JAI) API" >&5
echo $ECHO_N "checking for Java Advanced Imaging (JAI) API... $ECHO_C" >&6
    # We need to run javac in the config directory so that javac from jdk1.1.6
    # under NT and cygwin works properly
    startdir=`pwd`
    cd "$srcdir/config"
    # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin
    if "$JAVAC" JAITest.java ; then
       echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
       PTJAI_DIR=jai
       # PTJAI_PACKAGES is used in ptII/doc/makefile
       PTJAI_PACKAGES=ptolemy.actor.lib.jai
	echo "$as_me:$LINENO: checking for the jai jar files" >&5
echo $ECHO_N "checking for the jai jar files... $ECHO_C" >&6
	if "$JAVAC" FindClass.java ; then
	    # Usually jai-core.jar will be in the CLASSPATH
	    JAI_JAR=`CLASSPATH="$PTII/config$CLASSPATHSEPARATOR$CLASSPATH" "$JAVA" FindClass javax.media.jai.RenderedOp`
	    if test -f "$JAI_JAR" ; then
	       JAI_JARS_DIR=`dirname "$JAI_JAR"`
	       JAI_JARS="${JAI_JARS_DIR}/jai_core.jar${CLASSPATHSEPARATOR}${JAI_JARS_DIR}/jai_codec.jar"
	       echo "$as_me:$LINENO: result: $JAI_JARS" >&5
echo "${ECHO_T}$JAI_JARS" >&6
	       # Here, we should not be adding JAI_JAR to Eclipse
	       # if jai.jar was in the jre
	       ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
	           <classpathentry kind=\"lib\" path=\"$JAI_JARS_DIR/jai_core.jar\"/> \
		   <classpathentry kind=\"lib\" path=\"$JAI_JARS_DIR/jai_codec.jar\"/>"
	    else
       	       { echo "$as_me:$LINENO: WARNING: Either we could not find
    javax.media.jai.RenderOp or else it was already in the JRE.
    Searching for jai-core.jar returned:
      $JAI_JAR
    If the class cannot be found, then Eclipse might not be able to find
    the JAI files.
    This is only a problem if you are using Eclipse.
    If the class was in the JRE, then Eclipse should compile the JAI files
    without problems" >&5
echo "$as_me: WARNING: Either we could not find
    javax.media.jai.RenderOp or else it was already in the JRE.
    Searching for jai-core.jar returned:
      $JAI_JAR
    If the class cannot be found, then Eclipse might not be able to find
    the JAI files.
    This is only a problem if you are using Eclipse.
    If the class was in the JRE, then Eclipse should compile the JAI files
    without problems" >&2;}
            fi
	else
	    { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" FindClass.java' failed.
    This means that Eclipse might not be able to find the JAI files.
    This is only a problem if you are using Eclipse" >&5
echo "$as_me: WARNING: '\"$JAVAC\" FindClass.java' failed.
    This means that Eclipse might not be able to find the JAI files.
    This is only a problem if you are using Eclipse" >&2;}
        fi
    else
       { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" JAITest.java' failed.
    perhaps the Java Advanced Imaging API is not installed?
    You need not download Jai unless you plan on using the video
    actors in $JAI_USER_DIR
    The JAI API can be downloaded from
    http://java.sun.com/products/java-media/jai/" >&5
echo "$as_me: WARNING: '\"$JAVAC\" JAITest.java' failed.
    perhaps the Java Advanced Imaging API is not installed?
    You need not download Jai unless you plan on using the video
    actors in $JAI_USER_DIR
    The JAI API can be downloaded from
    http://java.sun.com/products/java-media/jai/" >&2;}
    fi
    cd "$startdir"
fi

if test -z "$PTJAI_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/jai/"
fi

#--------------------------------------------------------------------
#       JHDL is a Java Highlevel Description Language, see
#	http://www.jhdl.org
#       See if there was a command-line option for where JHDL is
#       If not, look for $PTII/vendors/jhdl/ptjhdllib/JHDL.jar
#--------------------------------------------------------------------

# PTJHDL_DIR is set to jhdl and used in
# $PTII/ptolemy/actor/makefile if jhdl was found
PTJHDL_DIR=

# Directory that contains the jhdl jar files
JHDL_JAR='${PTII}/vendors/jhdl/ptjhdllib/JHDL.jar'

# We only need to look for jhdl if $PTII/ptolemy/copernicus/jhdl exists
if test ! -d "$PTII/ptolemy/copernicus/jhdl"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/copernicus/jhdl is not present,
    so we need not find the JHDL - a Java Optimization Framework." >&5
echo "${ECHO_T}$PTII/ptolemy/copernicus/jhdl is not present,
    so we need not find the JHDL - a Java Optimization Framework." >&6
    JHDL_JAR='${PTII}/vendors/jhdl/ptjhdllib/JHDL.jar'
else
    echo "$as_me:$LINENO: checking for jhdl jar file" >&5
echo $ECHO_N "checking for jhdl jar file... $ECHO_C" >&6

# Check whether --with-jhdl-jar or --without-jhdl-jar was given.
if test "${with_jhdl_jar+set}" = set; then
  withval="$with_jhdl_jar"
  JHDL_JAR=$withval
else
  JHDL_JAR=$PTII/vendors/jhdl/ptjhdllib/JHDL.jar
fi;

    if test -f "$JHDL_JAR"; then
	echo "$as_me:$LINENO: result: $JHDL_JAR" >&5
echo "${ECHO_T}$JHDL_JAR" >&6
	# Set to jhdl and used in
	# $PTII/ptolemy/apps/makefile if jhdl was found
	PTJHDL_DIR=jhdl
    else
	JHDL_JAR=$PTII/vendors/jhdl/ptjhdllib/JHDL.jar
	if test -f "$JHDL_JAR"; then
	    echo "$as_me:$LINENO: result: $JHDL_JAR" >&5
echo "${ECHO_T}$JHDL_JAR" >&6
	    # Set to jhdl and used in
	    # $PTII/ptolemy/apps/makefile if jhdl was found
	    PTJHDL_DIR=jhdl
	fi
    fi

    if test "$PTJHDL_DIR" = ""; then
        { echo "$as_me:$LINENO: WARNING: Failed to find PTII/vendors/jhdl/ptjhdllib/JHDL.jar
    perhaps JHDL is not installed?
    You need not download JHDL unless you plan on using code generation
    The JHDL SDK can be downloaded from http://www.jhdl.org" >&5
echo "$as_me: WARNING: Failed to find PTII/vendors/jhdl/ptjhdllib/JHDL.jar
    perhaps JHDL is not installed?
    You need not download JHDL unless you plan on using code generation
    The JHDL SDK can be downloaded from http://www.jhdl.org" >&2;}
	# Note that we don't substitute in the ${PTII} here
	JHDL_JAR='${PTII}/vendors/jhdl/ptjhdllib/JHDL.jar'
    fi
fi

if test -z "$PTJHDL_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/copernicus/jhdl/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$JHDL_JAR\"/>"
fi

#--------------------------------------------------------------------
#       JMF is the Java Media Framework
#	For more information,
#       see http://java.sun.com/products/java-media/jmf
#       See if there was a command-line option for where JMF is.
#--------------------------------------------------------------------

# PTJMF_DIR is set to jmf and used in
# $PTII/ptolemy/actor/lib/makefile if jmf was found
PTJMF_DIR=

# Used in ptolemy/actor/lib/jmf/makefile
JMF_JARS=

# We only need to look for jmf if $PTII/ptolemy/actor/lib exists
JMF_USER_DIR="$PTII/ptolemy/actor/lib/jmf"
if test ! -d "$JMF_USER_DIR"; then
    echo "$as_me:$LINENO: result: $JMF_USER_DIR is not present,
    so we need not find the JMF - The Java Media Framework." >&5
echo "${ECHO_T}$JMF_USER_DIR is not present,
    so we need not find the JMF - The Java Media Framework." >&6
else
    echo "$as_me:$LINENO: checking for Java Media Framework (JMF)" >&5
echo $ECHO_N "checking for Java Media Framework (JMF)... $ECHO_C" >&6
    # We need to run javac in the config directory so that javac
    # from jdk1.1.6 under NT and cygwin works properly
    startdir=`pwd`
    cd "$srcdir/config"
    # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin
    if "$JAVAC" JMFTest.java ; then
        echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
        PTJMF_DIR=jmf
	# PTJMF_PACKAGES is used in ptII/doc/makefile
	PTJMF_PACKAGES=ptolemy.actor.lib.jmf
	# Usually, JMF gets installed in C:/Program Files/JMF2.1.1
	# and CLASSPATH gets that C:/Program Files/JMF2.1.1/lib/jmf.jar
	# and C:/Program Files/JMF2.1.1/lib/sound.jar appended to it
	# We need to figure out where it was found so that Eclipse
	# can find it
	echo "$as_me:$LINENO: checking for the JMF directory" >&5
echo $ECHO_N "checking for the JMF directory... $ECHO_C" >&6
	if "$JAVAC" FindClass.java ; then
	    # Usually jmf.jar will be in the CLASSPATH
	    JMF_JAR=`CLASSPATH="$PTII/config$CLASSPATHSEPARATOR$CLASSPATH" "$JAVA" FindClass javax.media.CaptureDeviceInfo`
	    if test -f "$JMF_JAR" ; then
	       JMF_JARS_DIR=`dirname "$JMF_JAR"`
	       echo "$as_me:$LINENO: result: $JMF_JARS_DIR" >&5
echo "${ECHO_T}$JMF_JARS_DIR" >&6
	       # Here, we should not be adding JMF_JAR to Eclipse
	       # if jmf.jar was in the jre
	       ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
	           <classpathentry kind=\"lib\" path=\"$JMF_JAR\"/> \
	           <classpathentry kind=\"lib\" path=\"$JMF_JARS_DIR/sound.jar\"/>"
	       JMF_JARS="$JMF_JAR$CLASSPATHSEPARATOR$JMF_JARS_DIR/sound.jar"
	    else
       	       { echo "$as_me:$LINENO: WARNING: Either we could not find
    javax.media.CaptureDeviceInfo or else it was already in the JRE.
    Searching for jmf.jar returned:
      $JMF_JAR
    If the class cannot be found, then Eclipse might not be able to find
    the JMF files.
    This is only a problem if you are using Eclipse.
    If the class was in the JRE, then Eclipse should compile the JMF files
    without problems" >&5
echo "$as_me: WARNING: Either we could not find
    javax.media.CaptureDeviceInfo or else it was already in the JRE.
    Searching for jmf.jar returned:
      $JMF_JAR
    If the class cannot be found, then Eclipse might not be able to find
    the JMF files.
    This is only a problem if you are using Eclipse.
    If the class was in the JRE, then Eclipse should compile the JMF files
    without problems" >&2;}
            fi
	else
	    { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" FindClass.java' failed.
    This means that Eclipse might not be able to find the JMF files.
    This is only a problem if you are using Eclipse" >&5
echo "$as_me: WARNING: '\"$JAVAC\" FindClass.java' failed.
    This means that Eclipse might not be able to find the JMF files.
    This is only a problem if you are using Eclipse" >&2;}
        fi
    else
        { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" JMFTest.java' failed.
    perhaps the Java Media Framework (JMF) is not installed?
    You need not download the JMF unless you plan on using the video
    actors in $JMF_USER_DIR
    The JMF SDK can be downloaded from
    http://java.sun.com/products/java-media/jmf" >&5
echo "$as_me: WARNING: '\"$JAVAC\" JMFTest.java' failed.
    perhaps the Java Media Framework (JMF) is not installed?
    You need not download the JMF unless you plan on using the video
    actors in $JMF_USER_DIR
    The JMF SDK can be downloaded from
    http://java.sun.com/products/java-media/jmf" >&2;}
    fi
    cd "$startdir"
fi

if test -z "$PTJMF_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/jmf/"
fi



#--------------------------------------------------------------------
#       The Joystick interface is a Java interface to Joysticks, see
#	http://sourceforge.net/projects/javajoystick/
#       See if there was a command-line option for where Joystick interface is
#       If not, look for $PTII/vendors/misc/joystick
#--------------------------------------------------------------------

# PTJOYSTICK_DIR is set to joystick and used in
# $PTII/ptolemy/actor/lib/makefile if Joystick.jar was found
PTJOYSTICK_DIR=

# Joystick Jar file
JOYSTICK_JAR='${PTII}/vendors/misc/joystick/Joystick.jar'

# We only need to look for joystick if $PTII/ptolemy/actor/lib/joystick exists
if test ! -d "$PTII/ptolemy/actor/lib/joystick"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/actor/lib/joystick is not present,
    so we need not find the Joystick interface." >&5
echo "${ECHO_T}$PTII/ptolemy/actor/lib/joystick is not present,
    so we need not find the Joystick interface." >&6
else
    echo "$as_me:$LINENO: checking for joystick jar file" >&5
echo $ECHO_N "checking for joystick jar file... $ECHO_C" >&6

# Check whether --with-joystick-jar or --without-joystick-jar was given.
if test "${with_joystick_jar+set}" = set; then
  withval="$with_joystick_jar"
  JOYSTICK_JAR=$withval
else
  JOYSTICK_JAR=$PTII/vendors/misc/joystick/Joystick.jar
fi;

    if test -f "$JOYSTICK_JAR"; then
	echo "$as_me:$LINENO: result: $JOYSTICK_JAR" >&5
echo "${ECHO_T}$JOYSTICK_JAR" >&6
	# Set to joystick and used in
	# $PTII/ptolemy/actor/lib/joystick if joystick was found
	PTJOYSTICK_DIR=joystick
        # PTJOYSTICK_PACKAGES is used in ptII/doc/makefile
	PTJOYSTICK_PACKAGES=ptolemy.actor.lib.joystick
    fi

    if test "$PTJOYSTICK_DIR" = ""; then
        { echo "$as_me:$LINENO: WARNING: Failed to find $JOYSTICK_JAR
    perhaps the Joystick is not installed?
    You need not download the Joystick interface unless you
    plan on using a Joystick with Ptolemy II.
    The Joystick interface can be downloaded from
    http://sourceforge.net/projects/javajoystick/" >&5
echo "$as_me: WARNING: Failed to find $JOYSTICK_JAR
    perhaps the Joystick is not installed?
    You need not download the Joystick interface unless you
    plan on using a Joystick with Ptolemy II.
    The Joystick interface can be downloaded from
    http://sourceforge.net/projects/javajoystick/" >&2;}
	# Note that we don't substitute in the ${PTII} here
	JOYSTICK_JAR='${PTII}/vendors/misc/joystick/Joystick.jar'
    fi
fi

if test -z "$PTJOYSTICK_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/joystick/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$JOYSTICK_JAR\"/>"
fi

#--------------------------------------------------------------------
#       Jython is an implementation of Python in Java
#	For more information,
#       see http://www.jython.org
#       See if there was a command-line option for where Jython is.
#--------------------------------------------------------------------

# PTJYTHON_DIR is set to python (FIXME: should be jython) and used in
# $PTII/ptolemy/actor/lib/makefile if Jython was found.
PTJYTHON_DIR=

# Directory that contains the jython jar files
JYTHON_DIR='${PTII}/lib'

# We only need to look for jython if $PTII/ptolemy/actor/lib/python exists
# FIXME: Note that the package is called jython, but the directory is python
JYTHON_USER_DIR="$PTII/ptolemy/actor/lib/python"
if test ! -d "$JYTHON_USER_DIR"; then
    echo "$as_me:$LINENO: result: $JYTHON_USER_DIR is not present,
    so we need not find the Jython, the java implementation of Python." >&5
echo "${ECHO_T}$JYTHON_USER_DIR is not present,
    so we need not find the Jython, the java implementation of Python." >&6
else
    echo "$as_me:$LINENO: checking for Jython, the Java implementation of Jython" >&5
echo $ECHO_N "checking for Jython, the Java implementation of Jython... $ECHO_C" >&6

# Check whether --with-jython or --without-jython was given.
if test "${with_jython+set}" = set; then
  withval="$with_jython"
  JYTHON_DIR=$withval
else
  JYTHON_DIR=$PTII/lib
fi;

    if test -f "$JYTHON_DIR/jython.jar"; then
	echo "$as_me:$LINENO: result: $JYTHON_DIR" >&5
echo "${ECHO_T}$JYTHON_DIR" >&6
	# FIXME: This is ugly, but we set to python instead of jythong
	# $PTII/ptolemy/actor/lib/makefile if jython was found
	PTJYTHON_DIR=python
    fi

    if test "$PTJYTHON_DIR" = ""; then
        if test -f "$PTII/vendors/jython/jython.jar"; then
	    JYTHON_DIR="$PTII/vendors/jython"
	    echo "$as_me:$LINENO: result: $JYTHON_DIR" >&5
echo "${ECHO_T}$JYTHON_DIR" >&6
	    # FIXME: This is ugly, but we set to python instead of jythong
 	    # $PTII/ptolemy/actor/lib/makefile if jython was found
	    PTJYTHON_DIR=python
	else
            { echo "$as_me:$LINENO: WARNING: Failed to find PTII/lib/jython.jar
    perhaps Jython is not installed?
    Jython is a java implementation of Python.
    You need not download Jython unless you plan on using the Jython
    actors in ptolemy/actor/lib/python
    The Jython can be downloaded http://www.jython.org/download.html" >&5
echo "$as_me: WARNING: Failed to find PTII/lib/jython.jar
    perhaps Jython is not installed?
    Jython is a java implementation of Python.
    You need not download Jython unless you plan on using the Jython
    actors in ptolemy/actor/lib/python
    The Jython can be downloaded http://www.jython.org/download.html" >&2;}
	# Note that we don't substitute in the ${PTII} here
	JYTHON_DIR='${PTII}/vendors/jython'
        fi
    fi
fi

if test -z "$PTJYTHON_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/jython/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$JYTHON_DIR/jython.jar\"/>"
fi

#--------------------------------------------------------------------
#	"JXTA technology is a set of open protocols that allow any
#	connected device on the network ranging from cell phones and wireless
#	PDAs to PCs and servers to communicate and collaborate in a P2P
#	manner."
#
#	See http://www.jxta.org
#       See if there was a command-line option for where JXTA is
#       If not, look for $PTII/vendors/sun/jxta/jxta.jar
#--------------------------------------------------------------------

# We only need to look for commapi if $PTII/ptolemy/actor/lib/jxta is present
JXTA_USER_DIR="$PTII/ptolemy/actor/lib/jxta"
# PTJXTA_DIR is set to jxta and used in
# $PTII/actor/lib/makefile if jxta was found
PTJXTA_DIR=

# Directory that contains the jxta jar files
JXTA_DIR='${PTII}/vendors/sun/jxta'

if test ! -d "$JXTA_USER_DIR"; then
    echo "$as_me:$LINENO: result: $JXTA_USER_DIR is not present,
    so we need not find JXTA." >&5
echo "${ECHO_T}$JXTA_USER_DIR is not present,
    so we need not find JXTA." >&6
else
    echo "$as_me:$LINENO: checking for jxta directory that contains jxta.jar" >&5
echo $ECHO_N "checking for jxta directory that contains jxta.jar... $ECHO_C" >&6

# Check whether --with-jxta or --without-jxta was given.
if test "${with_jxta+set}" = set; then
  withval="$with_jxta"
  JXTA_DIR=$withval
else
  JXTA_DIR=$PTII/vendors/sun/jxta
fi;

    if test -f "$JXTA_DIR/jxta.jar"; then
	echo "$as_me:$LINENO: result: $JXTA_DIR" >&5
echo "${ECHO_T}$JXTA_DIR" >&6
	# Set to jxta and used in
	# $PTII/ptolemy/actor/lib/makefile if jxta was found
	PTJXTA_DIR=jxta
    fi

    if test "$PTJXTA_DIR" = ""; then
        { echo "$as_me:$LINENO: WARNING: Failed to find PTII/vendors/sun/jxta/jxta.jar
    perhaps JXTA is not installed?
    You need not download JXTA unless you plan on using the peer to peer
    actors in ptolemy/actor/lib/jxta
    The JXTA SDK can be downloaded from http://www.jxta.org" >&5
echo "$as_me: WARNING: Failed to find PTII/vendors/sun/jxta/jxta.jar
    perhaps JXTA is not installed?
    You need not download JXTA unless you plan on using the peer to peer
    actors in ptolemy/actor/lib/jxta
    The JXTA SDK can be downloaded from http://www.jxta.org" >&2;}
	# Note that we don't substitute in the ${PTII} here
	JXTA_DIR='${PTII}/vendors/sun/jxta'
    fi
fi

if test -z "$PTJXTA_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|vendors/sun/jxta/|ptolemy/actor/lib/jxta/|ptolemy/moml/jxta/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$JXTA_DIR/jxta.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$JXTA_DIR/cryptix-asn1.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$JXTA_DIR/cryptix32.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$JXTA_DIR/beepcore.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$JXTA_DIR/minimalBC.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$JXTA_DIR/jxtasecurity.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$JXTA_DIR/log4j.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$JXTA_DIR/jxtaptls.jar\"/>"
fi

#--------------------------------------------------------------------
#       Lejos is a Java Virtual machine that runs on the Lego Mindstorm
#	For more information, see http://lejos.sourceforge.net
#	See if there was a command-line option for commapi is
#       If not, check to see if $PTII/vendors/lejos/lejos/lejosBeta3
#--------------------------------------------------------------------

# We only need to look for commapi if $PTII/ptolemy/apps/lejos
LEJOS_USER_DIR="$PTII/ptolemy/apps/lejos"
LEJOS_PRESENT=no
# PTLEJOS_DIR is set to lejos
# $PTII/ptolemy/apps/makefile if the Java Communications API was found
PTLEJOS_DIR=
if test ! -d "$LEJOS_USER_DIR"; then
    echo "$as_me:$LINENO: result: $LEJOS_USER_DIR is not present,
    so we need not find lejos." >&5
echo "${ECHO_T}$LEJOS_USER_DIR is not present,
    so we need not find lejos." >&6
    # Use curly brackets around PTII so that if lejos is not present
    # then ${PTII} will appear in ptinvoke.
    LEJOS_DIR='${PTII}/vendors/lejos/lejosBeta3'
else
    if test "$COMMAPI_PRESENT" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Lejos requires commapi, which was not found." >&5
echo "$as_me: WARNING: Lejos requires commapi, which was not found." >&2;}
    else
	echo "$as_me:$LINENO: checking for lejos directory" >&5
echo $ECHO_N "checking for lejos directory... $ECHO_C" >&6

# Check whether --with-lejos or --without-lejos was given.
if test "${with_lejos+set}" = set; then
  withval="$with_lejos"
  LEJOS_DIR=$withval
else
  LEJOS_DIR=$PTII/vendors/lejos/lejosBeta3
fi;

	if test -d "$LEJOS_DIR/classes/josx"; then
	    echo "$as_me:$LINENO: result: $LEJOS_DIR" >&5
echo "${ECHO_T}$LEJOS_DIR" >&6
	    # Subdirectory that contains Java Communications API specific code
	    PTLEJOS_DIR=lejos
	    LEJOS_PRESENT=yes
	else
	    { echo "$as_me:$LINENO: WARNING: Failed to find $LEJOS_DIR/classes/josx/" >&5
echo "$as_me: WARNING: Failed to find $LEJOS_DIR/classes/josx/" >&2;}
	    LEJOS_DIR='${PTII}/vendors/lejos'
	fi
    fi
    if test "$LEJOS_PRESENT" = "no"; then
	{ echo "$as_me:$LINENO: WARNING: Perhaps Lejos is not installed?
	You need not download Lejos unless you plan on use the Lego Mindstorm
	demos in \$PTII/ptolemy/apps/lejos. Lejos can be downloaded from
	http://lejos.sourceforge.net
	and placed  in \$PTII/vendors/lejos/lejosBeta3" >&5
echo "$as_me: WARNING: Perhaps Lejos is not installed?
	You need not download Lejos unless you plan on use the Lego Mindstorm
	demos in \$PTII/ptolemy/apps/lejos. Lejos can be downloaded from
	http://lejos.sourceforge.net
	and placed  in \$PTII/vendors/lejos/lejosBeta3" >&2;}
    fi
fi


#--------------------------------------------------------------------
#	See if there was a command-line option for where javacc is;  if
#	not, check to see if $PTII/vendors/sun/JavaCC exists
#       if it is does not, look for javacc on the path.
#--------------------------------------------------------------------

# We only need to look for JavaCC if $PTII/ptolemy/data/expr exists
if test ! -d "$PTII/ptolemy/data/expr"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/data/expr is not present,
    so we need not find JavaCC." >&5
echo "${ECHO_T}$PTII/ptolemy/data/expr is not present,
    so we need not find JavaCC." >&6
    JAVACC_DIR=$PTII/vendors/sun/javacc-3.2
    JAVACC=javacc
    JJTREE=jjtree
else
    echo "$as_me:$LINENO: checking for JavaCC" >&5
echo $ECHO_N "checking for JavaCC... $ECHO_C" >&6

# Check whether --with-javacc or --without-javacc was given.
if test "${with_javacc+set}" = set; then
  withval="$with_javacc"
  JAVACC_DIR=$withval
else
  JAVACC_DIR=$PTII/vendors/sun/javacc-3.2
fi;

    if test "`uname -s`" = "CYGWIN_NT-4.0" -o \
		"`uname -s`" = "CYGWIN_NT-5.0" ; then
	JJTREE='"$(JAVA)" COM.sun.labs.jjtree.Main'
	JAVACC='"$(JAVA)" COM.sun.labs.javacc.Main'
	{ echo "$as_me:$LINENO: WARNING:
Be sure that your CLASSPATH includes JavaCC.zip, which is located in" >&5
echo "$as_me: WARNING:
Be sure that your CLASSPATH includes JavaCC.zip, which is located in" >&2;};
    else
	if test ! -d "$JAVACC_DIR"; then
	    { echo "$as_me:$LINENO: WARNING: Could not find directory
    '${JAVACC_DIR}'
    so we search for the jjtree command." >&5
echo "$as_me: WARNING: Could not find directory
    '${JAVACC_DIR}'
    so we search for the jjtree command." >&2;}
	    # Extract the first word of "jjtree", so it can be a program name with args.
set dummy jjtree; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_JJTREE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $JJTREE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JJTREE="$JJTREE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_JJTREE="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
JJTREE=$ac_cv_path_JJTREE

if test -n "$JJTREE"; then
  echo "$as_me:$LINENO: result: $JJTREE" >&5
echo "${ECHO_T}$JJTREE" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	    if test -x "$JJTREE"; then
		echo "$as_me:$LINENO: result: $JJTREE" >&5
echo "${ECHO_T}$JJTREE" >&6;
		JAVACCBIN=`dirname $JJTREE`
		JAVACC_DIR=`dirname $JAVACCBIN`
	    else
		{ echo "$as_me:$LINENO: WARNING: Failed to find jjtree" >&5
echo "$as_me: WARNING: Failed to find jjtree" >&2;};
	    fi
	fi
	if test -d "$JAVACC_DIR"; then
	    echo "$as_me:$LINENO: result: $JAVACC_DIR" >&5
echo "${ECHO_T}$JAVACC_DIR" >&6
	    echo "$as_me:$LINENO: checking for jjtree" >&5
echo $ECHO_N "checking for jjtree... $ECHO_C" >&6
	    if test -x "$JAVACC_DIR/bin/jjtree"; then
		# Note that we don't substitute in the $(JAVACC_DIR) here
		JJTREE='$(JAVACC_DIR)/bin/jjtree'
		echo "$as_me:$LINENO: result: $JJTREE" >&5
echo "${ECHO_T}$JJTREE" >&6
	    else
		{ echo "$as_me:$LINENO: WARNING: Failed to find jjtree in '$JAVACC_DIR/bin'" >&5
echo "$as_me: WARNING: Failed to find jjtree in '$JAVACC_DIR/bin'" >&2;};
	    fi
	    echo "$as_me:$LINENO: checking for javacc" >&5
echo $ECHO_N "checking for javacc... $ECHO_C" >&6
	    if test -x "$JAVACC_DIR/bin/javacc"; then
		# Note that we don't substitute in the $(JAVACC_DIR) here
		JAVACC='$(JAVACC_DIR)/bin/javacc'
		echo "$as_me:$LINENO: result: $JAVACC" >&5
echo "${ECHO_T}$JAVACC" >&6
	    else
		{ echo "$as_me:$LINENO: WARNING: Failed to find javacc in '$JAVACC_DIR/bin'" >&5
echo "$as_me: WARNING: Failed to find javacc in '$JAVACC_DIR/bin'" >&2;};
	    fi
	fi
    fi

    if test ! -d "$JAVACC_DIR"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find javacc, perhaps JavaCC is not installed?
    You need not download JavaCC unless you plan on modifying .jjt files
    in ptolemy/data/expr.
    JavaCC is available from
    http://javacc.dev.java.net/

    Note that the zip file that gets downloaded is actually an installer
    that must be run to install the JavaCC.zip file that contains the classes.

    Configure looks for JavaCC in $PTII/vendors/sun/javacc-3.2,
    so either install JavaCC in that location or use the --with-javacc= flag
    and then rerun configure.'" >&5
echo "$as_me: WARNING: Failed to find javacc, perhaps JavaCC is not installed?
    You need not download JavaCC unless you plan on modifying .jjt files
    in ptolemy/data/expr.
    JavaCC is available from
    http://javacc.dev.java.net/

    Note that the zip file that gets downloaded is actually an installer
    that must be run to install the JavaCC.zip file that contains the classes.

    Configure looks for JavaCC in $PTII/vendors/sun/javacc-3.2,
    so either install JavaCC in that location or use the --with-javacc= flag
    and then rerun configure.'" >&2;}
	JJTREE=touch
	JAVACC=touch
    fi
fi

#--------------------------------------------------------------------
#	See if there was a command-line option for where Jacl is
#--------------------------------------------------------------------

# We only need to find Jacl if $PTII/util/testsuite
# exists.  If we are shipping ptplot, then this directory might not
# exist
PTJACL_JAR=$PTII/lib/ptjacl.jar
# JTCLSH uses JAVAFLAGS for use with the
# vergil/test/VergilConfiguration.tcl test
# We set the ptolemy.ptII.dir property for use in the
# actor.lib.test.auto.FileWriter{1,2}.xml tests
# JTCLSHFLAGS gets set to -Dptolemy.ptII.isRunningNightlyBuild=true
# when we are running the nightlybuild
JTCLSH='"$(JAVA)" $(JAVAFLAGS) "-Dptolemy.ptII.dir=$(PTII)" $(JTCLSHFLAGS) tcl.lang.Shell'
# PTJACL_DIR is set to ptjacl and used in $PTII/ptolemy/actor/gui/makefile
# if the ptjacl.jar file was found
PTJACL_DIR=

if test ! -d "$PTII/util/testsuite"; then
    echo "$as_me:$LINENO: result: $PTII/util/testsuite is not present,
    so we need not find Jacl." >&5
echo "${ECHO_T}$PTII/util/testsuite is not present,
    so we need not find Jacl." >&6
else
    echo "$as_me:$LINENO: checking for ptjacl.jar" >&5
echo $ECHO_N "checking for ptjacl.jar... $ECHO_C" >&6

# Check whether --with-ptjacl_jar or --without-ptjacl_jar was given.
if test "${with_ptjacl_jar+set}" = set; then
  withval="$with_ptjacl_jar"
  PTJACL_JAR=$withval
else
  PTJACL_JAR=$PTII/lib/ptjacl.jar
fi;

    if test -f "$PTJACL_JAR"; then
	echo "$as_me:$LINENO: result: $PTJACL_JAR" >&5
echo "${ECHO_T}$PTJACL_JAR" >&6
	echo "$as_me:$LINENO: checking for how to run jacl with \"$JAVA\"" >&5
echo $ECHO_N "checking for how to run jacl with \"$JAVA\"... $ECHO_C" >&6
	# This command starts up Jacl
	if echo "set java::jdkVersion; exit" | CLASSPATH="$PTJACL_JAR" "$JAVA" tcl.lang.Shell; then
		echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
		PTJACL_DIR=ptjacl
	else
		echo "$as_me:$LINENO: result: CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell failed" >&5
echo "${ECHO_T}CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell failed" >&6
		echo "$as_me:$LINENO: checking for how to run jacl with \"$JAVA\" \"$PTJACL_FLAG\"" >&5
echo $ECHO_N "checking for how to run jacl with \"$JAVA\" \"$PTJACL_FLAG\"... $ECHO_C" >&6
		if echo "set java::jdkVersion; exit" | CLASSPATH="$PTJACL_JAR" "$JAVA" tcl.lang.Shell; then
			echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
		else
			echo "$as_me:$LINENO: result: 'CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell' failed,
	use 'CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell'
	instead. ptjacl is used by the test suite, so you may be able to
	ignore this error." >&5
echo "${ECHO_T}'CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell' failed,
	use 'CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell'
	instead. ptjacl is used by the test suite, so you may be able to
	ignore this error." >&6
		fi
		JTCLSH='"$(JAVA)" $(JAVAFLAGS) "-Dptolemy.ptII.dir=$(PTII)" $(JTCLFLAGS tcl.lang.Shell'
	fi
    else
	{ echo "$as_me:$LINENO: WARNING: The ptjacl.jar file was not found at '$PTJACL_JAR'
    ptjacl.jar is only necessary if you plan on running the test suite.
    You can download ptjacl.jar from
    http://ptolemy.eecs.berkeley.edu/~cxh/java/jacl/ptjacl.html" >&5
echo "$as_me: WARNING: The ptjacl.jar file was not found at '$PTJACL_JAR'
    ptjacl.jar is only necessary if you plan on running the test suite.
    You can download ptjacl.jar from
    http://ptolemy.eecs.berkeley.edu/~cxh/java/jacl/ptjacl.html" >&2;}
    fi
fi

if test -z "$PTJACL_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/gui/ptjacl/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$PTJACL_JAR\"/>"
fi

#--------------------------------------------------------------------
#	Test for javax.media.j3d (Java 3D)
#--------------------------------------------------------------------
# PTJAVA3D_DIR is set to gr and used in
# $PTII/ptolemy/actor/lib/makefile if Java 3D was found
PTJAVA3D_DIR=

# Name of the jar file that includes the GR domain if Java 3D was found
# Used in domains/makefile
PTGRDOMAIN_JAR=

# We only need to look for Java3D if the gr domain is present
JAVA3D_USER_DIR="$PTII/ptolemy/domains/gr"

if test ! -d "$JAVA3D_USER_DIR"; then
    echo "$as_me:$LINENO: result: $JAVA3D_USER_DIR is not present,
    so we need not find Java 3D." >&5
echo "${ECHO_T}$JAVA3D_USER_DIR is not present,
    so we need not find Java 3D." >&6
else
    echo "$as_me:$LINENO: checking for Java 3D" >&5
echo $ECHO_N "checking for Java 3D... $ECHO_C" >&6
    # We need to run javac in the config directory so that javac from jdk1.1.6
    # under NT and cygwin works properly
    startdir=`pwd`
    cd "$srcdir/config"
    # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin
    if "$JAVAC" java3dTest.java ; then
       echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
       PTJAVA3D_DIR=gr
       PTGRDOMAIN_JAR=gr/gr.jar
       # PTGR_PACKAGES is used in ptII/doc/makefile
       PTGR_PACKAGES="ptolemy.domains.gr.kernel ptolemy.domains.gr.lib"
    else
       { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" java3dTest.java' failed.
    http://java.sun.com/products/java-media/3D/download.html
    Java 3D is only needed if you want to build in
    $JAVA3D_USER_DIR,
    otherwise the build will proceed fine without Java 3D." >&5
echo "$as_me: WARNING: '\"$JAVAC\" java3dTest.java' failed.
    http://java.sun.com/products/java-media/3D/download.html
    Java 3D is only needed if you want to build in
    $JAVA3D_USER_DIR,
    otherwise the build will proceed fine without Java 3D." >&2;}
    fi
    cd "$startdir"
fi

if test -z "$PTJAVA3D_DIR"; then
    ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/gr/"
fi

#--------------------------------------------------------------------
#       Jini is connection technology from Sun, see http://www.sun.com/jini/
#       See if there was a command-line option for where Jini is
#       If not, look in $PTII/vendors/sun/jini/jini1_0_1
#--------------------------------------------------------------------

# We only need to look for jini if the CarTracking demo is present
JINI_USER_DIR="$PTII/ptolemy/domains/ct/demo/jspaces/CarTracking"
JINI_VERSION=jini1_0_1
JINI_PRESENT=no
# PTJSPACES_DIR is set to jspaces and used in
# $PTII/ptolemy/actor/lib/makefile if jini was found
PTJSPACES_DIR=
if test ! -d "$JINI_USER_DIR"; then
    echo "$as_me:$LINENO: result: $JINI_USER_DIR is not present,
    so we need not find Jini." >&5
echo "${ECHO_T}$JINI_USER_DIR is not present,
    so we need not find Jini." >&6
    # We don't use JINI_VERSION here so that we don't expand PTII
    # in the makefile
    JINI_DIR='\$PTII/vendors/sun/jini/jini1_0_1'
else
    echo "$as_me:$LINENO: checking for jini directory" >&5
echo $ECHO_N "checking for jini directory... $ECHO_C" >&6

# Check whether --with-jini or --without-jini was given.
if test "${with_jini+set}" = set; then
  withval="$with_jini"
  JINI_DIR=$withval
else
  JINI_DIR=$PTII/vendors/sun/jini/$JINI_VERSION
fi;

    if test -d "$JINI_DIR"; then
	echo "$as_me:$LINENO: result: $JINI_DIR" >&5
echo "${ECHO_T}$JINI_DIR" >&6
	JINI_PRESENT=yes
	# Subdirectory that contains Java spaces specific code
	PTJSPACES_DIR=jspaces
    else
	JINI_DIR='$PTII'/vendors/sun/jini/$JINI_VERSION
    fi
    if test "$JINI_PRESENT" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find $JINI_DIR/lib/jini-core.jar
    Perhaps Jini is not installed?
    You need not download Jini unless you plan on use Jini and JavaSpaces
    Jini can be downloaded from http://java.sun.com/jini and placed
    in \$PTII/vendors/sun/jini/$JINI_VERSION" >&5
echo "$as_me: WARNING: Failed to find $JINI_DIR/lib/jini-core.jar
    Perhaps Jini is not installed?
    You need not download Jini unless you plan on use Jini and JavaSpaces
    Jini can be downloaded from http://java.sun.com/jini and placed
    in \$PTII/vendors/sun/jini/$JINI_VERSION" >&2;}
    fi

fi



#--------------------------------------------------------------------
#       Java Native Interface (JNI)
#       Ptolemy II can interface to user provided native code using JNI
#	Ptolemy II can interface to Matlab using JNI
#--------------------------------------------------------------------
# PTJNI_DIR is set to jni and used in
# $PTII/makefile if gcc or cc is found.
PTJNI_DIR=

if test ! -d "$PTII/jni" -a ! -d "$PTII/ptolemy/matlab" -a ! -d "$PTII/mescal/kirika" ; then
    echo "$as_me:$LINENO: result: $PTII/jni, $PTII/ptolemy/matlab and $PTII/mescal/kirika are not present,
    so we need not find gcc or cc." >&5
echo "${ECHO_T}$PTII/jni, $PTII/ptolemy/matlab and $PTII/mescal/kirika are not present,
    so we need not find gcc or cc." >&6
else
    # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTCC=$ac_cv_path_PTCC

if test -n "$PTCC"; then
  echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    if test "${PTCC:-none}" != "none"; then
        PTJNI_DIR=jni
    else
        { echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5
echo "$as_me: WARNING: Failed to find gcc" >&2;}
        # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTCC=$ac_cv_path_PTCC

if test -n "$PTCC"; then
  echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

        if test "${PTCC:-none}" != "none"; then
            echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
            PTJNI_DIR=jni
        else
            { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will
    not be able to compile the JNI interface in $PTII/jni" >&5
echo "$as_me: WARNING: Failed to find gcc or cc, so we will
    not be able to compile the JNI interface in $PTII/jni" >&2;};
        fi
    fi

    echo "$as_me:$LINENO: checking for the proper JNI architecture" >&5
echo $ECHO_N "checking for the proper JNI architecture... $ECHO_C" >&6
    case "`uname -s`" in
        CYGWIN_ME-*) PTJNI_ARCHITECTURE=win32;;
	CYGWIN_NT-*) PTJNI_ARCHITECTURE=win32;;
	CYGWIN_98-*) PTJNI_ARCHITECTURE=win32;;
	Linux) PTJNI_ARCHITECTURE=linux;;
	SunOS) PTJNI_ARCHITECTURE=solaris;;
	*) PTJNI_ARCHITECTURE=unknown;;
    esac

    echo "$as_me:$LINENO: result: '$PTJNI_ARCHITECTURE'" >&5
echo "${ECHO_T}'$PTJNI_ARCHITECTURE'" >&6

    echo "$as_me:$LINENO: checking for the proper JNI architecture include directory" >&5
echo $ECHO_N "checking for the proper JNI architecture include directory... $ECHO_C" >&6
    if test ! -d "$PTJAVA_HOME/../include/$PTJNI_ARCHITECTURE"; then
	{ echo "$as_me:$LINENO: WARNING: \"$PTJAVA_HOME/../include/$PTJNI_ARCHITECTURE\" was not found.
    As a result, compilation of JNI actors will fail." >&5
echo "$as_me: WARNING: \"$PTJAVA_HOME/../include/$PTJNI_ARCHITECTURE\" was not found.
    As a result, compilation of JNI actors will fail." >&2;}
    else
	echo "$as_me:$LINENO: result: $PTJAVA_HOME/../include/$PTJNI_ARCHITECTURE" >&5
echo "${ECHO_T}$PTJAVA_HOME/../include/$PTJNI_ARCHITECTURE" >&6
    fi

    echo "$as_me:$LINENO: checking for if the -mno-cygwin flag is available" >&5
echo $ECHO_N "checking for if the -mno-cygwin flag is available... $ECHO_C" >&6
    case "`uname -s`" in
        CYGWIN_ME-*) PTJNI_NO_CYGWIN=-mno-cygwin;;
	CYGWIN_NT-*) PTJNI_NO_CYGWIN=-mno-cygwin;;
	CYGWIN_98-*) PTJNI_NO_CYGWIN=-mno-cygwin;;
	*) PTJNI_NO_CYGWIN=;;
    esac
    echo "$as_me:$LINENO: result: '$PTJNI_NO_CYGWIN'" >&5
echo "${ECHO_T}'$PTJNI_NO_CYGWIN'" >&6

    echo "$as_me:$LINENO: checking for the proper shared library cc flag" >&5
echo $ECHO_N "checking for the proper shared library cc flag... $ECHO_C" >&6
    case "`uname -s`" in
        CYGWIN_ME-*) PTJNI_SHAREDLIBRARY_CFLAG=;;
	CYGWIN_NT-*) PTJNI_SHAREDLIBRARY_CFLAG=;;
	CYGWIN_98-*) PTJNI_SHAREDLIBRARY_CFLAG=;;
	SunOS)	 PTJNI_SHAREDLIBRARY_CFLAG=-fPIC;;
	*) PTJNI_SHAREDLIBRARY_CFLAG=;;
    esac
    echo "$as_me:$LINENO: result: '$PTJNI_SHAREDLIBRARY_CFLAG'" >&5
echo "${ECHO_T}'$PTJNI_SHAREDLIBRARY_CFLAG'" >&6

    echo "$as_me:$LINENO: checking for the proper shared library link flag" >&5
echo $ECHO_N "checking for the proper shared library link flag... $ECHO_C" >&6
    case "`uname -s`" in
        CYGWIN_ME-*) PTJNI_SHAREDLIBRARY_LDFLAG=-Wl,--add-stdcall-alias;;
	CYGWIN_NT-*) PTJNI_SHAREDLIBRARY_LDFLAG=-Wl,--add-stdcall-alias;;
	CYGWIN_98-*) PTJNI_SHAREDLIBRARY_LDFLAG=-Wl,--add-stdcall-alias;;
	SunOS)	 PTJNI_SHAREDLIBRARY_LDFLAG=-fPIC;;
	*) PTJNI_SHAREDLIBRARY_LDFLAG=;;
    esac
    echo "$as_me:$LINENO: result: '$PTJNI_SHAREDLIBRARY_LDFLAG'" >&5
echo "${ECHO_T}'$PTJNI_SHAREDLIBRARY_LDFLAG'" >&6

    echo "$as_me:$LINENO: checking for the proper shared library prefix" >&5
echo $ECHO_N "checking for the proper shared library prefix... $ECHO_C" >&6
    case "`uname -s`" in
        CYGWIN_ME-*) PTJNI_SHAREDLIBRARY_PREFIX=;;
	CYGWIN_NT-*) PTJNI_SHAREDLIBRARY_PREFIX=;;
	CYGWIN_98-*) PTJNI_SHAREDLIBRARY_PREFIX=;;
	SunOS)	 PTJNI_SHAREDLIBRARY_PREFIX=lib;;
	*) PTJNI_SHAREDLIBRARY_PREFIX=lib;;
    esac
    echo "$as_me:$LINENO: result: '$PTJNI_SHAREDLIBRARY_PREFIX'" >&5
echo "${ECHO_T}'$PTJNI_SHAREDLIBRARY_PREFIX'" >&6

    echo "$as_me:$LINENO: checking for the proper shared library suffix" >&5
echo $ECHO_N "checking for the proper shared library suffix... $ECHO_C" >&6
    case "`uname -s`" in
        CYGWIN_ME-*) PTJNI_SHAREDLIBRARY_SUFFIX=dll;;
	CYGWIN_NT-*) PTJNI_SHAREDLIBRARY_SUFFIX=dll;;
	CYGWIN_98-*) PTJNI_SHAREDLIBRARY_SUFFIX=dll;;
	SunOS)	 PTJNI_SHAREDLIBRARY_SUFFIX=so;;
	Linux)   PTJNI_SHAREDLIBRARY_SUFFIX=so;;
	*) PTJNI_SHAREDLIBRARY_SUFFIX=unknown;;
    esac
    echo "$as_me:$LINENO: result: '$PTJNI_SHAREDLIBRARY_SUFFIX'" >&5
echo "${ECHO_T}'$PTJNI_SHAREDLIBRARY_SUFFIX'" >&6
fi

#--------------------------------------------------------------------
#      	Jode is a java decompiler.  It is useful for looking at the contents
#       of class files.  It can be downloaded from
#	http://jode.sourceforge.net/download.php
#	Jode is full GPL, so we can't distribute it without making Ptolemy
#	GPL'd as well.
#--------------------------------------------------------------------

# PTJODE_DIR is set to jode and used in
# $PTII/ptolemy/apps/makefile if jode was found
#PTJODE_DIR=

# Note that we don't substitute in the ${PTII} or $(JODE_DIR) here
# Defaults for ptII.mk and bin/ptinvoke.in
# Use {} here instead of () because bin/ptinvoke uses JODE_DIR and JODE_CLASSES
# and under /bin/sh $(FOO) does not work, but ${FOO} does
JODE_DIR='${PTII}/vendors/jode/1.1.1'
JODE_CLASSES='${JODE_DIR}/jode.jar'

# We only need to look for jode if $PTII/ptolemy/apps/jode exists
if test ! -d "$PTII/vendors/jode"; then
    echo "$as_me:$LINENO: result: $PTII/vendors/jode is not present,
    so we need not find Jode, which is a java disassembler." >&5
echo "${ECHO_T}$PTII/vendors/jode is not present,
    so we need not find Jode, which is a java disassembler." >&6
else
    echo "$as_me:$LINENO: checking for jode directory" >&5
echo $ECHO_N "checking for jode directory... $ECHO_C" >&6

# Check whether --with-jode or --without-jode was given.
if test "${with_jode+set}" = set; then
  withval="$with_jode"
  JODE_DIR=$withval
else
  JODE_DIR=$PTII/vendors/jode/1.1.1
fi;

    if test -d "$JODE_DIR"; then
	echo "$as_me:$LINENO: result: $JODE_DIR" >&5
echo "${ECHO_T}$JODE_DIR" >&6
        echo "$as_me:$LINENO: checking for \$JODE_DIR/jode.jar" >&5
echo $ECHO_N "checking for \$JODE_DIR/jode.jar... $ECHO_C" >&6
	if test -f "$JODE_DIR/jode.jar"; then
	    echo "$as_me:$LINENO: result: $JODE_DIR/jode.jar" >&5
echo "${ECHO_T}$JODE_DIR/jode.jar" >&6
	    JODE_CLASSES=$JODE_DIR/jode.jar
        else
	    JODE_CLASSES=no
        fi
    fi

    if test "$JODE_CLASSES" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find jode/jode.jar
    perhaps Jode is not installed?
    Jode is used to disassemble Java .class files and is only necessary
    if you plan on debugging the byte code based code generator.
    Jode can be downloaded from http://jode.sourceforge.net/download.php" >&5
echo "$as_me: WARNING: Failed to find jode/jode.jar
    perhaps Jode is not installed?
    Jode is used to disassemble Java .class files and is only necessary
    if you plan on debugging the byte code based code generator.
    Jode can be downloaded from http://jode.sourceforge.net/download.php" >&2;}
	# Note that we don't substitute in the ${PTII} or $(JODE_DIR) here
	JODE_DIR='${PTII}/vendors/jode/1.1.1'
   	JODE_CLASSES='${JODE_DIR}/jode.jar'
    #else
	# Set to jode and used in
	# $PTII/ptolemy/apps/makefile if jode was found
	#PTJODE_DIR=jode
    fi
fi


#--------------------------------------------------------------------
#       KVM is the JDK for PalmOS
#	See if there was a command-line option for where
#       j2me_cldc/bin/api/classes is;  if not,
#       check to see if $PTII/vendors/sun/j2me_cldc exists
#--------------------------------------------------------------------

# PTKVM_DIR is set to kvm and used in
# $PTII/ptolemy/makefile if kvm was found
PTKVM_DIR=
#
# We only need to look for kvm if $PTII/ptolemy/apps/kvm exists
if test ! -d "$PTII/ptolemy/apps/kvm"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/apps/kvm is not present,
    so we need not find the PalmOS kvm." >&5
echo "${ECHO_T}$PTII/ptolemy/apps/kvm is not present,
    so we need not find the PalmOS kvm." >&6
    KVM_DIR='${PTII}/vendors/sun/j2me_cldc'
    # Unfortunately, j2me_cldc does not ship with a jar of zip file
    # It needs to be built
    KVM_CLASSES='$(KVM_DIR)/bin/api/classes'
else
    echo "$as_me:$LINENO: checking for kvm directory" >&5
echo $ECHO_N "checking for kvm directory... $ECHO_C" >&6

# Check whether --with-kvm or --without-kvm was given.
if test "${with_kvm+set}" = set; then
  withval="$with_kvm"
  KVM_DIR=$withval
else
  KVM_DIR=$PTII/vendors/sun/j2me_cldc
fi;

    if test -d "$KVM_DIR"; then
	echo "$as_me:$LINENO: result: $KVM_DIR" >&5
echo "${ECHO_T}$KVM_DIR" >&6
        echo "$as_me:$LINENO: checking for \$KVM_DIR/bin/api/classes" >&5
echo $ECHO_N "checking for \$KVM_DIR/bin/api/classes... $ECHO_C" >&6
	if test -d "$KVM_DIR/bin/api/classes"; then
	    KVM_CLASSES='$(KVM_DIR)/bin/api/classes'
	    echo "$as_me:$LINENO: result: $KVM_CLASSES" >&5
echo "${ECHO_T}$KVM_CLASSES" >&6
        else
	    KVM_CLASSES=no
        fi
    else
	echo "$as_me:$LINENO: result: Not found in $KVM_DIR" >&5
echo "${ECHO_T}Not found in $KVM_DIR" >&6
	echo "$as_me:$LINENO: checking for kvm directory in /j2me_cldc" >&5
echo $ECHO_N "checking for kvm directory in /j2me_cldc... $ECHO_C" >&6
	# Likely place for kvm under windows
	KVM_DIR=/j2me_cldc
        if test -d "$KVM_DIR"; then
	    echo "$as_me:$LINENO: result: $KVM_DIR" >&5
echo "${ECHO_T}$KVM_DIR" >&6
            echo "$as_me:$LINENO: checking for \$KVM_DIR/bin/api/classes" >&5
echo $ECHO_N "checking for \$KVM_DIR/bin/api/classes... $ECHO_C" >&6
	    if test -d "$KVM_DIR/bin/api/classes"; then
	        KVM_CLASSES='$(KVM_DIR)/bin/api/classes'
	        echo "$as_me:$LINENO: result: $KVM_CLASSES" >&5
echo "${ECHO_T}$KVM_CLASSES" >&6
            else
	        KVM_CLASSES=no
            fi
        else
		KVM_CLASSES=no
        fi

    fi
    if test "$KVM_CLASSES" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find j2me_cldc/bin/api/classes,
    perhaps Kvm is not installed?
    You need not download Kvm unless you plan on building applications
    for the Palm Pilot or Handspring Visor.
    Kvm can be downloaded from http://java.sun.com/products/cldc" >&5
echo "$as_me: WARNING: Failed to find j2me_cldc/bin/api/classes,
    perhaps Kvm is not installed?
    You need not download Kvm unless you plan on building applications
    for the Palm Pilot or Handspring Visor.
    Kvm can be downloaded from http://java.sun.com/products/cldc" >&2;}
	# Note that we don't substitute in the ${PTII} or $(KVM_DIR) here
	KVM_DIR='${PTII}/vendors/sun/kvm'
   	KVM_CLASSES='$(KVM_DIR)/bin/api/classes'
    else
	# Set to kvm and used in
	# $PTII/ptolemy/makefile if kvm was found
	PTKVM_DIR=kvm
    fi
fi

#--------------------------------------------------------------------
#       MATLAB Interface
#       check to see if matlab is in the user's path
#--------------------------------------------------------------------
# PTMATLAB_DIR is set to matlab and used in $PTII/ptolemy/makefile
# if matlab and gcc are found; PTMATLAB_LIBDIR is then also set to
# the platform-dependent directory containg Matlab's engine libraries
PTMATLAB_DIR=
PTMATLAB_LIBDIR=

PTMATLAB_SUPPORTED=no
case "`uname -s`" in
Linux)
	PTMATLAB_SUPPORTED=yes
	;;
CYGWIN*)
	PTMATLAB_SUPPORTED=yes
	;;
SunOS*)
	PTMATLAB_SUPPORTED=yes
	;;
esac


if test "$PTMATLAB_SUPPORTED" = "no"; then
    { echo "$as_me:$LINENO: WARNING: The Matlab interface is not supported on this platform (you are running \`uname -s\`)." >&5
echo "$as_me: WARNING: The Matlab interface is not supported on this platform (you are running \`uname -s\`)." >&2;}
else
    # We only need to look for matlab if $PTII/ptolemy/matlab exists
    if test ! -d "$PTII/ptolemy/matlab"; then
	echo "$as_me:$LINENO: result: $PTII/ptolemy/matlab is not present,
    so we need not find matlab and gcc." >&5
echo "${ECHO_T}$PTII/ptolemy/matlab is not present,
    so we need not find matlab and gcc." >&6
	MATLAB_DIR=/matlab
	PTCC=gcc
    else
	# Extract the first word of "matlab", so it can be a program name with args.
set dummy matlab; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_MATLAB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MATLAB in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
MATLAB=$ac_cv_path_MATLAB

if test -n "$MATLAB"; then
  echo "$as_me:$LINENO: result: $MATLAB" >&5
echo "${ECHO_T}$MATLAB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	if test "${MATLAB:-none}" = "none"; then
	    { echo "$as_me:$LINENO: WARNING: Failed to find matlab executable in the path.
    Perhaps Matlab is not installed?
    If Matlab is not present, then the Ptolemy II/Matlab interface in
    \$PTII/ptolemy/matlab will not be usable." >&5
echo "$as_me: WARNING: Failed to find matlab executable in the path.
    Perhaps Matlab is not installed?
    If Matlab is not present, then the Ptolemy II/Matlab interface in
    \$PTII/ptolemy/matlab will not be usable." >&2;};
	else
	    startdir=`pwd`
	    cd "$srcdir/config"
	    if "$JAVAC" MatlabRootDirectory.java ; then
		echo "$as_me:$LINENO: checking the value of the Matlab root directory " >&5
echo $ECHO_N "checking the value of the Matlab root directory ... $ECHO_C" >&6
		if env CLASSPATH="$PTII/config" "$JAVA" MatlabRootDirectory "$MATLAB"> /dev/null; then

		    MATLAB_DIR_TMP=`CLASSPATH="$PTII/config" "$JAVA" MatlabRootDirectory "$MATLAB"`

		    # Use changequote to protect the square brackets in sed
		    # Remove /cygdrive so we can compile with MSVC
		    MATLAB_DIR=`echo "$MATLAB_DIR_TMP" | sed 's@/cygdrive/\([a-zA-Z]\)/@\1:/@'`

		    echo "$as_me:$LINENO: result: '$MATLAB_DIR'" >&5
echo "${ECHO_T}'$MATLAB_DIR'" >&6
		else
		    { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MatlabRootDirectory \"$MATLAB\"' failed.
    We will not be able to compile the Matlab interface in ptolemy/matlab/" >&5
echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MatlabRootDirectory \"$MATLAB\"' failed.
    We will not be able to compile the Matlab interface in ptolemy/matlab/" >&2;};
		fi
	    else
		{ echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVAC MatlabRootDirectory.java' failed.
    We will not be able to compile the Matlab interface in ptolemy/matlab" >&5
echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVAC MatlabRootDirectory.java' failed.
    We will not be able to compile the Matlab interface in ptolemy/matlab" >&2;};
	    fi
	    cd "$startdir"

	    if test ! -d "$MATLAB_DIR"; then
		    { echo "$as_me:$LINENO: WARNING: Failed to find '${MATLAB_DIR}'
	    If Matlab is not present, then the Ptolemy II/Matlab interface in
    \$PTII/ptolemy/matlab will not be usable." >&5
echo "$as_me: WARNING: Failed to find '${MATLAB_DIR}'
	    If Matlab is not present, then the Ptolemy II/Matlab interface in
    \$PTII/ptolemy/matlab will not be usable." >&2;};
	    else

	    cd "$srcdir/config"
	    if "$JAVAC" MajorOSName.java ; then
	        echo "$as_me:$LINENO: checking which major type of OS we are running under" >&5
echo $ECHO_N "checking which major type of OS we are running under... $ECHO_C" >&6
		# Older versions of cygwin might not have env, but 1.1 does
		if env CLASSPATH="$PTII/config" "$JAVA" MajorOSName > /dev/null; then
		    # Run it again and get the results
		    MAJOR_OS_NAME=`CLASSPATH="$PTII/config" "$JAVA" MajorOSName`
		    echo "$as_me:$LINENO: result: $MAJOR_OS_NAME" >&5
echo "${ECHO_T}$MAJOR_OS_NAME" >&6
		else
		    { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MajorOSName' failed.
    The Matlab interface will build fine, but not being able to determine
    the major operating system name could cause problems with running
    (cd $PTII/ptolemy/matlab; make install)" >&5
echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MajorOSName' failed.
    The Matlab interface will build fine, but not being able to determine
    the major operating system name could cause problems with running
    (cd $PTII/ptolemy/matlab; make install)" >&2;};
		fi
	    fi
	    cd "$startdir"
		MATLAB_USE_MSVC="no"
		case "`uname -s`" in
		Linux)
			MATLAB_LIBDIR=${MATLAB_DIR}/extern/lib/glnx86
			;;
		CYGWIN*)
			MATLAB_USE_MSVC="yes"
			MATLAB_LIBDIR=${MATLAB_DIR}/bin/win32
			;;
		SunOS*)
			MATLAB_LIBDIR=${MATLAB_DIR}/extern/lib/sol2
			;;
		*)
			MATLAB_LIBDIR=${MATLAB_DIR}/extern/lib
			;;
		esac
		echo "$as_me:$LINENO: result: using '${MATLAB_LIBDIR}' for Matlab's engine libraries" >&5
echo "${ECHO_T}using '${MATLAB_LIBDIR}' for Matlab's engine libraries" >&6
		if test $MATLAB_USE_MSVC = "yes"; then
		    echo "$as_me:$LINENO: checking for Microsoft Visual C cl" >&5
echo $ECHO_N "checking for Microsoft Visual C cl... $ECHO_C" >&6
		    # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTMATLAB_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTMATLAB_CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTMATLAB_CC="$PTMATLAB_CC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTMATLAB_CC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTMATLAB_CC=$ac_cv_path_PTMATLAB_CC

if test -n "$PTMATLAB_CC"; then
  echo "$as_me:$LINENO: result: $PTMATLAB_CC" >&5
echo "${ECHO_T}$PTMATLAB_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

		    if test "${PTMATLAB_CC:-none}" != "none"; then
		        PTMATLAB_DIR=matlab
			PTMATLAB_LD_ARGS="/Tpptmatlab.cc /Feptmatlab.dll /link /dll /libpath:\"${MATLAB_DIR}/extern/lib/win32/microsoft/msvc70\" libeng.lib libmx.lib"

	            else
			{ echo "$as_me:$LINENO: WARNING: Failed to find cl" >&5
echo "$as_me: WARNING: Failed to find cl" >&2;}
			# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTMATLAB_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTMATLAB_CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTMATLAB_CC="$PTMATLAB_CC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTMATLAB_CC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTMATLAB_CC=$ac_cv_path_PTMATLAB_CC

if test -n "$PTMATLAB_CC"; then
  echo "$as_me:$LINENO: result: $PTMATLAB_CC" >&5
echo "${ECHO_T}$PTMATLAB_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

			if test "${PTMATLAB_CC:-none}" != "none"; then
			    PTMATLAB_DIR=matlab
			else
			    { echo "$as_me:$LINENO: WARNING: Failed to find MSVC cl or GNU gcc, so we will
    not be able to compile the Matlab interface in ptolemy/matlab.
    Note that the Matlab interface does not work under Windows with gcc-3.3,
    you must use the Microsoft Visual C 'cl' compiler." >&5
echo "$as_me: WARNING: Failed to find MSVC cl or GNU gcc, so we will
    not be able to compile the Matlab interface in ptolemy/matlab.
    Note that the Matlab interface does not work under Windows with gcc-3.3,
    you must use the Microsoft Visual C 'cl' compiler." >&2;};
			fi
		    fi
                else
		    PTMATLAB_LD_ARGS="ptmatlab.cc -fno-exceptions -c -o ${PTJNI_SHAREDLIBRARY_PREFIX}ptmatlab.${PTJNI_SHAREDLIBRARY_SUFFIX}	-L\"${MATLAB_LIBDIR}\" ${PTJNI_SHAREDLIBRARY_LDFLAG} -lc -leng -lmx"

		    echo "$as_me:$LINENO: checking for gcc" >&5
echo $ECHO_N "checking for gcc... $ECHO_C" >&6
		    # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTCC=$ac_cv_path_PTCC

if test -n "$PTCC"; then
  echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

		    if test "${PTCC:-none}" != "none"; then
		        PTMATLAB_CC=$PTCC
		        PTMATLAB_DIR=matlab
	            else
			{ echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5
echo "$as_me: WARNING: Failed to find gcc" >&2;}
			# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PTCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PTCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PTCC=$ac_cv_path_PTCC

if test -n "$PTCC"; then
  echo "$as_me:$LINENO: result: $PTCC" >&5
echo "${ECHO_T}$PTCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

			if test "${PTCC:-none}" != "none"; then
		            PTMATLAB_CC=$PTCC
			    PTMATLAB_DIR=matlab
			else
			    { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will
    not be able to compile the Matlab interface in ptolemy/matlab" >&5
echo "$as_me: WARNING: Failed to find gcc or cc, so we will
    not be able to compile the Matlab interface in ptolemy/matlab" >&2;};
			fi
		    fi
                fi
	    fi
	fi
    fi
fi

if test -z "$PTMATLAB_DIR"; then
    ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/matlab/"
fi


#--------------------------------------------------------------------
#       Mescal -
#
#--------------------------------------------------------------------
# PTMESCAL_DIR is set to mescal and used in $PTII/makefile
# if $PTII/mescal was found
PTMESCAL_DIR=

MESCAL_USER_DIR="$PTII/mescal"
if test -d "$MESCAL_USER_DIR"; then
   PTMESCAL_DIR=mescal
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|**/devel/|mescal/apps/|mescal/totem/domains/meta/codegen/|mescal/views/memory/registerfile/|mescal/views/simulation/model/probe/|mescal/xml2hmdes/"

fi

#--------------------------------------------------------------------
#       PSDF is the Parameterized Synchronous Data Flow domain
#--------------------------------------------------------------------

# PTPSDF_DIR is set to PSDF and used in
# $PTII/ptolemy/domains/makefile if mapss.jar was found.
PTPSDF_DIR=

# Directory that contains the mapss.jar file
PSDF_DIR='${PTII}/lib'

# We only need to look for on if $PTII/ptolemy/domains/psdf exists
PSDF_USER_DIR="$PTII/ptolemy/domains/psdf"
if test ! -d "$PSDF_USER_DIR"; then
    echo "$as_me:$LINENO: result: $PSDF_USER_DIR is not present,
    so we need not find the mapss.jar." >&5
echo "${ECHO_T}$PSDF_USER_DIR is not present,
    so we need not find the mapss.jar." >&6
else
    echo "$as_me:$LINENO: checking for mapss.jar, used by the PSDF domain" >&5
echo $ECHO_N "checking for mapss.jar, used by the PSDF domain... $ECHO_C" >&6

# Check whether --with-mapss or --without-mapss was given.
if test "${with_mapss+set}" = set; then
  withval="$with_mapss"
  PSDF_DIR=$withval
else
  PSDF_DIR=$PTII/lib
fi;

    if test -f "$PSDF_DIR/mapss.jar"; then
	echo "$as_me:$LINENO: result: $PSDF_DIR" >&5
echo "${ECHO_T}$PSDF_DIR" >&6
	PTPSDF_DIR=psdf
    else
        { echo "$as_me:$LINENO: WARNING: Failed to find PTII/lib/mapss.jar
    If it is not present, you will not be able to use the
    Parameterized Synchronous Data Flow domain." >&5
echo "$as_me: WARNING: Failed to find PTII/lib/mapss.jar
    If it is not present, you will not be able to use the
    Parameterized Synchronous Data Flow domain." >&2;}
	# Note that we don't substitute in the ${PTII} here
	PSDF_DIR='${PTII}/lib/'
    fi
fi

if test -z "$PTPSDF_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/psdf/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$PSDF_DIR/mapss.jar\"/> "
fi

#--------------------------------------------------------------------
#	Test for quicktime
#--------------------------------------------------------------------
# PTQUICKTIME_DIR is set to quicktime and used in
# $PTII/ptolemy/domains/gr/lib/makefile if Quicktime for Java was found
PTQUICKTIME_DIR=

# Set to the location of the QTJava.zip file
QTJAVA_ZIP=

# We only need to look for Java3D if the gr domain is present
QUICKTIME_USER_DIR="$PTII/ptolemy/domains/gr/lib/quicktime"

if test ! -d "$QUICKTIME_USER_DIR"; then
    echo "$as_me:$LINENO: result: $QUICKTIME_USER_DIR is not present,
    so we need not find Quicktime for Java." >&5
echo "${ECHO_T}$QUICKTIME_USER_DIR is not present,
    so we need not find Quicktime for Java." >&6
else
    echo "$as_me:$LINENO: checking for Quicktime for Java" >&5
echo $ECHO_N "checking for Quicktime for Java... $ECHO_C" >&6
    # We need to run javac in the config directory so that javac from jdk1.1.6
    # under NT and cygwin works properly
    startdir=`pwd`
    cd "$srcdir/config"
    # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin
    if "$JAVAC" quickTimeTest.java ; then
       echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
       PTQUICKTIME_DIR=quicktime
    else
       if test "${MAJOR_OS_NAME:-none}" = "none"; then
	    if "$JAVAC" MajorOSName.java ; then
	        echo "$as_me:$LINENO: checking the which major type of OS we are running under" >&5
echo $ECHO_N "checking the which major type of OS we are running under... $ECHO_C" >&6
		# Older versions of cygwin might not have env, but 1.1 does
		if env CLASSPATH="$PTII/config" "$JAVA" MajorOSName > /dev/null; then
		    # Run it again and get the results
		    MAJOR_OS_NAME=`CLASSPATH="$PTII/config" "$JAVA" MajorOSName`
		    echo "$as_me:$LINENO: result: $MAJOR_OS_NAME" >&5
echo "${ECHO_T}$MAJOR_OS_NAME" >&6
		else
		    { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MajorOSName' failed.
    This means we cannot look for the Quicktime zip file in the likely places" >&5
echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MajorOSName' failed.
    This means we cannot look for the Quicktime zip file in the likely places" >&2;};
		fi
	    fi
       fi
       if test "${MAJOR_OS_NAME:-none}" = "Windows"; then
	   SAFE_PROGRAMFILES=`echo $PROGRAMFILES | sed -e 's@\\\@/@g'`

           { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" quickTime3dTest.java' failed, looking for
    QTJava.zip in $SAFE_PROGRAMFILES/java/*/lib/ext/QTJava.zip'" >&5
echo "$as_me: WARNING: '\"$JAVAC\" quickTime3dTest.java' failed, looking for
    QTJava.zip in $SAFE_PROGRAMFILES/java/*/lib/ext/QTJava.zip'" >&2;}
	  # Under Windows try to find the jar file
	  #c:/Program Files/Java/j2re1.4.1_02/lib/ext/QTJava.zip
	  QTJAVA_ZIP=`cd "$SAFE_PROGRAMFILES"; ls -tr java/*/lib/ext/QTJava.zip | head -1`
	  if test -z "$QTJAVA_ZIP" ; then
    	     { echo "$as_me:$LINENO: WARNING: 'Did not find \"$SAFE_PROGRAMFILES/java/*/lib/ext/QTJava.zip\"'" >&5
echo "$as_me: WARNING: 'Did not find \"$SAFE_PROGRAMFILES/java/*/lib/ext/QTJava.zip\"'" >&2;}
	  else
	     QTJAVA_ZIP="$SAFE_PROGRAMFILES/$QTJAVA_ZIP"
	     echo "$as_me:$LINENO: result:     ok, found '$QTJAVA_ZIP'" >&5
echo "${ECHO_T}    ok, found '$QTJAVA_ZIP'" >&6
	     echo "$as_me:$LINENO: checking again for Quicktime for Java" >&5
echo $ECHO_N "checking again for Quicktime for Java... $ECHO_C" >&6
	     if "$JAVAC" -classpath "$QTJAVA_ZIP" quickTimeTest.java ; then
	         echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	         PTQUICKTIME_DIR=quicktime
		 # PTQUICKTIME_PACKAGES is used in ptII/doc/makefile
		 PTQUICKTIME_PACKAGES=ptolemy.domains.gr.lib.quicktime
	     fi
	  fi
       fi
       if test -z "$PTQUICKTIME_DIR" ; then
           { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" quickTime3dTest.java' failed.
    You may need to install QuickTime with the 'QuickTime For
    Java' option from http://developer.apple.com/quicktime/qtjava/
    During installation, choose 'custom' and then 'select all'.
    This drops QTJava.zip into the lib/ext of all your installed JREs.
    Then you have to copy this zip file to the jre/lib/ext directory
    of your SDK and rerun configure.
    If configure still fails, you may need to unzip the QTJava.zip
    file and create a QTJava.jar file:
       # unzip QTJava.zip
       cd QTJava
       jar -cf ../QTJava.jar .
    QuickTime for Java is only needed if you want to build in
    $QUICKTIME_USER_DIR,
    otherwise the build will proceed fine without Quicktime for Java." >&5
echo "$as_me: WARNING: '\"$JAVAC\" quickTime3dTest.java' failed.
    You may need to install QuickTime with the 'QuickTime For
    Java' option from http://developer.apple.com/quicktime/qtjava/
    During installation, choose 'custom' and then 'select all'.
    This drops QTJava.zip into the lib/ext of all your installed JREs.
    Then you have to copy this zip file to the jre/lib/ext directory
    of your SDK and rerun configure.
    If configure still fails, you may need to unzip the QTJava.zip
    file and create a QTJava.jar file:
       # unzip QTJava.zip
       cd QTJava
       jar -cf ../QTJava.jar .
    QuickTime for Java is only needed if you want to build in
    $QUICKTIME_USER_DIR,
    otherwise the build will proceed fine without Quicktime for Java." >&2;}
        fi
    fi
    cd "$startdir"
fi

if test -z "$PTQUICKTIME_DIR"; then
    ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/gr/lib/quicktime/"
else
    if test ! -z "$QTJAVA_ZIP"; then
        ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
        <classpathentry kind=\"lib\" path=\"$QTJAVA_ZIP\"/>"
    fi
fi

#--------------------------------------------------------------------
#       Soot is a Java Optimization Framework, see
#	http://www.sable.mcgill.ca/soot/
#       See if there was a command-line option for where Soot is
#       If not, look in $PTII/vendors/sun/soot
#--------------------------------------------------------------------

# PTCOPERNICUS_DIR is set to copernicus and used in
# $PTII/ptolemy/makefile if soot was found
PTCOPERNICUS_DIR=

# Directory that contains the soot jar files
SOOT_DIR='${PTII}/lib'

# Soot needs to find java.lang.Object
# Use {} here instead of () because bin/ptinvoke uses JAVA_SYSTEM_JAR
# and under /bin/sh $(FOO) does not work, but ${FOO} does
JAVA_SYSTEM_JAR='${PTJAVA_HOME}/lib/rt.jar'

# We don't bother overriding this below so that something close
# to the right default is in ptII.mk and the user can just change
# SOOT_DIR or JAVA_SYSTEM_JAR
# Use {} here instead of () because bin/ptinvoke uses SOOT_CLASSES
SOOT_CLASSES='${SOOT_DIR}/sootclasses.jar${CLASSPATHSEPARATOR}${SOOT_DIR}/jasminclasses.jar${CLASSPATHSEPARATOR}${JAVA_SYSTEM_JAR}'

# We only need to look for soot if $PTII/ptolemy/copernicus exists
if test ! -d "$PTII/ptolemy/copernicus"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/copernicus is not present,
    so we need not find the Soot - a Java Optimization Framework." >&5
echo "${ECHO_T}$PTII/ptolemy/copernicus is not present,
    so we need not find the Soot - a Java Optimization Framework." >&6
    SOOT_DIR='${PTII}/lib'
else
    echo "$as_me:$LINENO: checking for soot directory" >&5
echo $ECHO_N "checking for soot directory... $ECHO_C" >&6

# Check whether --with-soot or --without-soot was given.
if test "${with_soot+set}" = set; then
  withval="$with_soot"
  SOOT_DIR=$withval
else
  SOOT_DIR=$PTII/lib
fi;

    if test -d "$SOOT_DIR"; then
	echo "$as_me:$LINENO: result: $SOOT_DIR" >&5
echo "${ECHO_T}$SOOT_DIR" >&6
        echo "$as_me:$LINENO: checking for \$SOOT_DIR/sootclasses.jar" >&5
echo $ECHO_N "checking for \$SOOT_DIR/sootclasses.jar... $ECHO_C" >&6
	if test -f "$SOOT_DIR/sootclasses.jar"; then
	    echo "$as_me:$LINENO: result: $SOOT_DIR/sootclasses.jar" >&5
echo "${ECHO_T}$SOOT_DIR/sootclasses.jar" >&6
	    echo "$as_me:$LINENO: checking for \$SOOT_DIR/jasminclasses.jar" >&5
echo $ECHO_N "checking for \$SOOT_DIR/jasminclasses.jar... $ECHO_C" >&6
  	    if test -f "$SOOT_DIR/jasminclasses.jar"; then
                echo "$as_me:$LINENO: result: $SOOT_DIR/jasminclasses.jar" >&5
echo "${ECHO_T}$SOOT_DIR/jasminclasses.jar" >&6
            fi
	    echo "$as_me:$LINENO: result: $SOOT_CLASSES" >&5
echo "${ECHO_T}$SOOT_CLASSES" >&6
        else
	    SOOT_CLASSES_FOUND=no
        fi
    # else
    # We could look in other places . . .
    fi

    if test "$SOOT_CLASSES_FOUND" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find soot/sootclasses.jar
    perhaps Soot is not installed?
    You need not download Soot unless you plan on using code generation
    The Soot SDK can be downloaded from http://www.sable.mcgill.ca/soot/" >&5
echo "$as_me: WARNING: Failed to find soot/sootclasses.jar
    perhaps Soot is not installed?
    You need not download Soot unless you plan on using code generation
    The Soot SDK can be downloaded from http://www.sable.mcgill.ca/soot/" >&2;}
	# Note that we don't substitute in the ${PTII} or $(SOOT_DIR) here
	SOOT_DIR='${PTII}/lib'
    else
	# Set to copernicus and used in
	# $PTII/ptolemy/makefile if soot was found
	PTCOPERNICUS_DIR=copernicus
    fi

    echo "$as_me:$LINENO: checking for rt.jar by compiling config/SystemJar.java" >&5
echo $ECHO_N "checking for rt.jar by compiling config/SystemJar.java... $ECHO_C" >&6

# Check whether --with-javasystemjar or --without-javasystemjar was given.
if test "${with_javasystemjar+set}" = set; then
  withval="$with_javasystemjar"
  JAVA_SYSTEM_JAR=$withval
else
  JAVA_SYSTEM_JAR='$(PTJAVA_HOME)/lib/rt.jar'
fi;

    startdir=`pwd`
    cd "$srcdir/config"
    if "$JAVAC" SystemJar.java ; then
	echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
	echo "$as_me:$LINENO: checking the location or rt.jar" >&5
echo $ECHO_N "checking the location or rt.jar... $ECHO_C" >&6
	if env CLASSPATH="$PTII/config" "$JAVA" SystemJar > /dev/null; then
	    # Run it again and get the results
	    JAVA_SYSTEM_JAR=`CLASSPATH="$PTII/config" "$JAVA" SystemJar`
   	    echo "$as_me:$LINENO: result: '$JAVA_SYSTEM_JAR'" >&5
echo "${ECHO_T}'$JAVA_SYSTEM_JAR'" >&6
	else
	    { { echo "$as_me:$LINENO: error: 'CLASSPATH=\"$PTII/config\" \"$JAVA\" SystemJar failed.
    Classes that use Soot will compile, but will fail to run.'" >&5
echo "$as_me: error: 'CLASSPATH=\"$PTII/config\" \"$JAVA\" SystemJar failed.
    Classes that use Soot will compile, but will fail to run.'" >&2;}
   { (exit 1); exit 1; }; }
        fi
    else
	{ { echo "$as_me:$LINENO: error: 'cd \"$srcdir/config\"; \"$JAVAC\" SystemJar.java failed.
    Classes that use Soot will compile, but will fail to run.'" >&5
echo "$as_me: error: 'cd \"$srcdir/config\"; \"$JAVAC\" SystemJar.java failed.
    Classes that use Soot will compile, but will fail to run.'" >&2;}
   { (exit 1); exit 1; }; }
    fi
    cd "$startdir"
fi

if test -z "$PTCOPERNICUS_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/copernicus/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$SOOT_DIR/sootclasses.jar\"/> \
    <classpathentry kind=\"lib\" path=\"$SOOT_DIR/jasminclasses.jar\"/>"
    # What about JAVA_SYSTEM_JAR?
fi

#--------------------------------------------------------------------
#       TINI is the JDK for Dallas Tini board, see
#	www.ibutton.com
#	See if there was a command-line option for where
#       tinisk is;  if not,
#       check to see if $PTII/vendors/dalsemi/tini/bin/tiniclasses.jar exists
#--------------------------------------------------------------------

# PTTINI_DIR is set to tini and used in
# $PTII/ptolemy/apps/makefile if tini was found
PTTINI_DIR=
#
# We only need to look for tini if $PTII/ptolemy/apps/tini exists
if test ! -d "$PTII/ptolemy/apps/tini"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/apps/tini is not present,
    so we need not find the Dallas Semiconductor tini." >&5
echo "${ECHO_T}$PTII/ptolemy/apps/tini is not present,
    so we need not find the Dallas Semiconductor tini." >&6
    TINI_DIR='${PTII}/vendors/dalsemi/tini'
    TINI_CLASSES='${TINI_DIR}/bin/tini.jar'
else
    echo "$as_me:$LINENO: checking for tini directory" >&5
echo $ECHO_N "checking for tini directory... $ECHO_C" >&6

# Check whether --with-tini or --without-tini was given.
if test "${with_tini+set}" = set; then
  withval="$with_tini"
  TINI_DIR=$withval
else
  TINI_DIR=$PTII/vendors/dalsemi/tini
fi;

    if test -d "$TINI_DIR"; then
    	echo "$as_me:$LINENO: result: $TINI_DIR" >&5
echo "${ECHO_T}$TINI_DIR" >&6
      	echo "$as_me:$LINENO: checking for \$TINI_DIR/bin/tini.jar" >&5
echo $ECHO_N "checking for \$TINI_DIR/bin/tini.jar... $ECHO_C" >&6
	if test -f "$TINI_DIR/bin/tini.jar"; then
	   echo "$as_me:$LINENO: result: $TINI_DIR/bin/tini.jar" >&5
echo "${ECHO_T}$TINI_DIR/bin/tini.jar" >&6
	   TINI_CLASSES='${TINI_DIR}/bin/tini.jar'
	else
	   TINI_CLASSES=no
        fi
	echo "$as_me:$LINENO: result: $TINI_CLASSES" >&5
echo "${ECHO_T}$TINI_CLASSES" >&6
    fi
    if test "$TINI_CLASSES" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find tini/bin/tiniclasses.jar
    perhaps Tini is not installed?
    You need not download Tini unless you plan on building applications
    for the Dallas Semiconductor Tini board.
    The Tini SDK can be downloaded from http://www.ibutton.com" >&5
echo "$as_me: WARNING: Failed to find tini/bin/tiniclasses.jar
    perhaps Tini is not installed?
    You need not download Tini unless you plan on building applications
    for the Dallas Semiconductor Tini board.
    The Tini SDK can be downloaded from http://www.ibutton.com" >&2;}
	# Note that we don't substitute in the ${PTII} or $(TINI_DIR) here
	TINI_DIR='${PTII}/vendors/dalsemi/tini'
   	TINI_CLASSES='${TINI_DIR}/bin/tini.jar'
    else
	# Set to tini and used in
	# $PTII/ptolemy/apps/makefile if tini was found
	PTTINI_DIR=tini
    fi
fi

#--------------------------------------------------------------------
#	TinyOS
#--------------------------------------------------------------------
# The problem is that the nesc/configure script does not understand
# "c:/" style syntax, it works with "/cygdrive/c/", yet Java
# does not understand /cygdrive/c syntax, so we hack
if test -z "$TOSROOT" ; then
    echo "$as_me:$LINENO: result: The TOSROOT environment variable is not present,
    so we need not set up for TinyOS." >&5
echo "${ECHO_T}The TOSROOT environment variable is not present,
    so we need not set up for TinyOS." >&6

    # Nothing to exclude
    # ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/nc/"

else
    if test ! -d "$TOSROOT"; then
        { echo "$as_me:$LINENO: WARNING: TOSROOT is set to $TOSROOT,
     but there is no directory by that name, so we will not set up for PtinyOS" >&5
echo "$as_me: WARNING: TOSROOT is set to $TOSROOT,
     but there is no directory by that name, so we will not set up for PtinyOS" >&2;}
    else
        echo "$as_me:$LINENO: result: TOSROOT = $TOSROOT, so we will set up for TinyOS." >&5
echo "${ECHO_T}TOSROOT = $TOSROOT, so we will set up for TinyOS." >&6
        # Use changequote to protect the square brackets in sed
        TOSROOT_NO_CYGDRIVE=`echo "$TOSROOT" | sed 's@^/cygdrive/\([a-zA-Z]\)/@\1:/@'`

        # Add TOSROOT to the classpath
        ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
        <classpathentry kind=\"lib\" path=\"$TOSROOT_NO_CYGDRIVE\"/>"
    fi
fi


#--------------------------------------------------------------------
#       GiottoSDK is an embedded implementation of the Giotto language
#	www.eecs.berkeley.edu/~fresco/giotto
#
#       check to see if $PTII/vendors/giotto/giotto.jar exists
#--------------------------------------------------------------------

# PTGIOTTO_DIR is set to Giotto and used in
# $PTII/ptolemy/apps/makefile if giotto was found
PTGIOTTO_DIR=
#
if test ! -d "$PTII/ptolemy/domains/giotto"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/domains/giotto is not present,
    so we need not find the Giotto SDK." >&5
echo "${ECHO_T}$PTII/ptolemy/domains/giotto is not present,
    so we need not find the Giotto SDK." >&6
    GIOTTO_DIR='${PTII}/vendors/giotto'
    GIOTTO_CLASSES='${GIOTTO_DIR}/gdk.jar'
else
    echo "$as_me:$LINENO: checking for giotto directory" >&5
echo $ECHO_N "checking for giotto directory... $ECHO_C" >&6

# Check whether --with-giotto or --without-giotto was given.
if test "${with_giotto+set}" = set; then
  withval="$with_giotto"
  GIOTTO_DIR=$withval
else
  GIOTTO_DIR=$PTII/vendors/giotto
fi;

    GIOTTO_CLASSES=no
    if test -d "$GIOTTO_DIR"; then
    	echo "$as_me:$LINENO: result: $GIOTTO_DIR" >&5
echo "${ECHO_T}$GIOTTO_DIR" >&6
      	echo "$as_me:$LINENO: checking for \$GIOTTO_DIR/gdk.jar" >&5
echo $ECHO_N "checking for \$GIOTTO_DIR/gdk.jar... $ECHO_C" >&6
	if test -f "$GIOTTO_DIR/gdk.jar"; then
	   echo "$as_me:$LINENO: result: $GIOTTO_DIR/gdk.jar" >&5
echo "${ECHO_T}$GIOTTO_DIR/gdk.jar" >&6
	   GIOTTO_CLASSES='${GIOTTO_DIR}/gdk.jar'
	else
	   GIOTTO_CLASSES=no
        fi
	echo "$as_me:$LINENO: result: $GIOTTO_CLASSES" >&5
echo "${ECHO_T}$GIOTTO_CLASSES" >&6
    fi
    if test "$GIOTTO_CLASSES" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find giotto/gdk.jar
    perhaps Giotto is not installed?
    You need not download Giotto unless you plan on generating code for
    Giotto models.
    The Giotto SDK can be
    downloaded from http://www-cad.eecs.berkeley.edu/~giotto/
    Copy gdk.jar to $PTII/vendors/giotto, for example:
        mkdir -p $PTII/vendors/giotto
        cp C:/Program\ Files/Giotto*/gdk.jar $PTII/vendors/giotto/
    " >&5
echo "$as_me: WARNING: Failed to find giotto/gdk.jar
    perhaps Giotto is not installed?
    You need not download Giotto unless you plan on generating code for
    Giotto models.
    The Giotto SDK can be
    downloaded from http://www-cad.eecs.berkeley.edu/~giotto/
    Copy gdk.jar to $PTII/vendors/giotto, for example:
        mkdir -p $PTII/vendors/giotto
        cp C:/Program\ Files/Giotto*/gdk.jar $PTII/vendors/giotto/
    " >&2;}
	# Note that we don't substitute in the ${PTII} or $(GIOTTO_DIR) here
	GIOTTO_DIR='${PTII}/vendors/giotto'
   	GIOTTO_CLASSES='${GIOTTO_DIR}/gdk.jar'
    else
	# Set to giotto and used in
	# $PTII/ptolemy/copernicus/java/ if giotto was found
	PTGIOTTO_DIR=giotto
    fi
fi

#--------------------------------------------------------------------
#	Test for vendors.vr Volume Rendering code used by gr/lib/vr
#--------------------------------------------------------------------
# PTVR_DIR is set to vr and used in
# $PTII/ptolemy/domains/gr/lib/makefile if Volume Rendering was found
PTVR_DIR=

# We only need to look for Java3D if the vr actors are present
VR_USER_DIR="$PTII/ptolemy/domains/gr/lib/vr"

if test ! -d "$VR_USER_DIR" -o -z "$PTJAVA3D_DIR"; then
    echo "$as_me:$LINENO: result: $VR_USER_DIR is not present
    or Java 3D was not found, so we need not find Java 3D Volume Rendering." >&5
echo "${ECHO_T}$VR_USER_DIR is not present
    or Java 3D was not found, so we need not find Java 3D Volume Rendering." >&6
else
    echo "$as_me:$LINENO: checking for Java 3D Volume Rendering" >&5
echo $ECHO_N "checking for Java 3D Volume Rendering... $ECHO_C" >&6

# Check whether --with-ptvr-jar or --without-ptvr-jar was given.
if test "${with_ptvr_jar+set}" = set; then
  withval="$with_ptvr_jar"
  PTVR_JAR=$withval
else
  PTVR_JAR=$PTII/lib/ptvr.jar
fi;

    if test -f "$PTVR_JAR"; then
       echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
       PTVR_DIR=vr
       # PTVR_PACKAGES is used in ptII/doc/makefile
       PTVR_PACKAGES="ptolemy.domains.gr.lib.vr"
    else
       { echo "$as_me:$LINENO: WARNING: 'Could not find $PTVR_JAR.
    http://www.j3d.org/tutorials/quick_fix/volume.html
    Java 3D Volume Rendering is only needed if you want to build in
    $VR_USER_DIR,
    otherwise the build will proceed fine without Java 3D Volume Rendering." >&5
echo "$as_me: WARNING: 'Could not find $PTVR_JAR.
    http://www.j3d.org/tutorials/quick_fix/volume.html
    Java 3D Volume Rendering is only needed if you want to build in
    $VR_USER_DIR,
    otherwise the build will proceed fine without Java 3D Volume Rendering." >&2;}
    fi
    cd "$startdir"
fi

if test -z "$PTVR_DIR"; then
    ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/gr/lib/vr"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
	<classpathentry kind=\"lib\" path=\"$PTVR_JAR\"/> "
fi

#--------------------------------------------------------------------
#       WABA is the JDK for PalmOS
#	See if there was a command-line option for where
#       wabask is;  if not,
#       check to see if $PTII/vendors/misc/waba/wabasdk exists
#--------------------------------------------------------------------

# PTWABA_DIR is set to waba and used in
# $PTII/ptolemy/makefile if waba was found
PTWABA_DIR=
#
# We only need to look for waba if $PTII/ptolemy/apps/kvm exists
if test ! -d "$PTII/ptolemy/apps/kvm"; then
    echo "$as_me:$LINENO: result: $PTII/ptolemy/apps/kvm is not present,
    so we need not find the PalmOS waba." >&5
echo "${ECHO_T}$PTII/ptolemy/apps/kvm is not present,
    so we need not find the PalmOS waba." >&6
    WABA_DIR='${PTII}/vendors/misc/waba/wabasdk'
    # Unfortunately, j2me_cldc does not ship with a jar of zip file
    # It needs to be built
    WABA_CLASSES='$(WABA_DIR)/classes'
else
    echo "$as_me:$LINENO: checking for waba directory" >&5
echo $ECHO_N "checking for waba directory... $ECHO_C" >&6

# Check whether --with-waba or --without-waba was given.
if test "${with_waba+set}" = set; then
  withval="$with_waba"
  WABA_DIR=$withval
else
  WABA_DIR=$PTII/vendors/misc/waba/wabasdk
fi;

    if test -d "$WABA_DIR"; then
	echo "$as_me:$LINENO: result: $WABA_DIR" >&5
echo "${ECHO_T}$WABA_DIR" >&6
        echo "$as_me:$LINENO: checking for \$WABA_DIR/classes" >&5
echo $ECHO_N "checking for \$WABA_DIR/classes... $ECHO_C" >&6
	if test -d "$WABA_DIR/classes"; then
	    WABA_CLASSES='$(WABA_DIR)/classes'
	    echo "$as_me:$LINENO: result: $WABA_CLASSES" >&5
echo "${ECHO_T}$WABA_CLASSES" >&6
        else
	    WABA_CLASSES=no
        fi
    else
	echo "$as_me:$LINENO: result: Not found in $WABA_DIR" >&5
echo "${ECHO_T}Not found in $WABA_DIR" >&6
	echo "$as_me:$LINENO: checking for waba directory in /waba" >&5
echo $ECHO_N "checking for waba directory in /waba... $ECHO_C" >&6
	# Likely place for waba under windows
	WABA_DIR=/waba/wabasdk
        if test -d "$WABA_DIR"; then
	    echo "$as_me:$LINENO: result: $WABA_DIR" >&5
echo "${ECHO_T}$WABA_DIR" >&6
            echo "$as_me:$LINENO: checking for \$WABA_DIR/classes" >&5
echo $ECHO_N "checking for \$WABA_DIR/classes... $ECHO_C" >&6
	    if test -d "$WABA_DIR/classes"; then
	        WABA_CLASSES='$(WABA_DIR)/classes'
	        echo "$as_me:$LINENO: result: $WABA_CLASSES" >&5
echo "${ECHO_T}$WABA_CLASSES" >&6
            else
	        WABA_CLASSES=no
            fi
        else
		WABA_CLASSES=no
        fi

    fi
    if test "$WABA_CLASSES" = "no"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find waba/wabasdk
    perhaps Waba is not installed?
    You need not download Waba unless you plan on building applications
    for the Palm Pilot or Handspring Visor.
    Waba can be downloaded from http://www.wabasoft.com" >&5
echo "$as_me: WARNING: Failed to find waba/wabasdk
    perhaps Waba is not installed?
    You need not download Waba unless you plan on building applications
    for the Palm Pilot or Handspring Visor.
    Waba can be downloaded from http://www.wabasoft.com" >&2;}
	# Note that we don't substitute in the ${PTII} or $(WABA_DIR) here
	WABA_DIR='${PTII}/vendors/misc/waba/wabasdk'
   	WABA_CLASSES='$(WABA_DIR)/classes'
    else
	# Set to waba and used in
	# $PTII/ptolemy/makefile if waba was found
	PTWABA_DIR=waba
    fi
fi


#--------------------------------------------------------------------
#       X10 is the interface library for power line communication, see
#	http://x10.homelinux.org/download.html
#	See if there was a command-line option for where
#       the X10 sdk is;  if not,
#       check to see if $PTII/vendors/misc/x10 exists
#--------------------------------------------------------------------

# PTX10_DIR is set to x10 and used in
# $PTII/ptolemy/actor/lib/x10/makefile if x10 was found
PTX10_DIR=

# Set to the location of the X10 classes
X10_CLASSES=

# We only need to look for x10 if $PTII/ptolemy/actor/lib/x10 exists
X10_USER_DIR="$PTII/ptolemy/actor/lib/x10"
if test ! -d "$X10_USER_DIR"; then
    echo "$as_me:$LINENO: result: $X10_USER_DIR is not present,
    so we need not find the X10 SDK. X10 is the power line comm interface." >&5
echo "${ECHO_T}$X10_USER_DIR is not present,
    so we need not find the X10 SDK. X10 is the power line comm interface." >&6
else
    echo "$as_me:$LINENO: checking for X10 directory" >&5
echo $ECHO_N "checking for X10 directory... $ECHO_C" >&6

# Check whether --with-x10 or --without-x10 was given.
if test "${with_x10+set}" = set; then
  withval="$with_x10"
  X10_DIR=$withval
else
  X10_DIR=$PTII/vendors/misc/x10
fi;

    if test -d "$X10_DIR"; then
      	echo "$as_me:$LINENO: result: $X10_DIR" >&5
echo "${ECHO_T}$X10_DIR" >&6
      	echo "$as_me:$LINENO: checking for \$X10_DIR/tjx10p-12/lib/x10.jar" >&5
echo $ECHO_N "checking for \$X10_DIR/tjx10p-12/lib/x10.jar... $ECHO_C" >&6
	if test -f "$X10_DIR/tjx10p-12/lib/x10.jar"; then
	   X10_CLASSES=${X10_DIR}/tjx10p-12/lib/x10.jar
	   echo "$as_me:$LINENO: result: $X10_CLASSES" >&5
echo "${ECHO_T}$X10_CLASSES" >&6
	   PTX10_DIR=x10
	   # PTX10_PACKAGES is used in ptII/doc/makefile
	   PTX10_PACKAGES=ptolemy.actor.lib.x10
	else
           echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	   echo "$as_me:$LINENO: checking for \$X10_DIR/tjx10p-11/lib/x10.jar" >&5
echo $ECHO_N "checking for \$X10_DIR/tjx10p-11/lib/x10.jar... $ECHO_C" >&6
	   if test -f "$X10_DIR/tjx10p-11/lib/x10.jar"; then
	       X10_CLASSES=${X10_DIR}/tjx10p-11/lib/x10.jar
	       echo "$as_me:$LINENO: result: $X10_CLASSES" >&5
echo "${ECHO_T}$X10_CLASSES" >&6
	       PTX10_DIR=x10
           else
	       # PTX10_PACKAGES is used in ptII/doc/makefile
	       PTX10_PACKAGES=
	       X10_CLASSES=
	       echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
           fi
        fi
    fi

    if test -z "$PTX10_DIR"; then
        { echo "$as_me:$LINENO: WARNING: Failed to find tjx10p-12/lib/x10.jar
    or tjx10p-11/lib/x10.jar, perhaps X10 is not installed?
    You need not download X10 unless you plan on building applications
    using the X10 interface.
    The X10 SDK can be downloaded from http://x10.homelinux.org.
    See also $PTII/vendors/misc/x10/README.txt" >&5
echo "$as_me: WARNING: Failed to find tjx10p-12/lib/x10.jar
    or tjx10p-11/lib/x10.jar, perhaps X10 is not installed?
    You need not download X10 unless you plan on building applications
    using the X10 interface.
    The X10 SDK can be downloaded from http://x10.homelinux.org.
    See also $PTII/vendors/misc/x10/README.txt" >&2;}
	# Note that we don't substitute in the ${PTII} or $(X10_DIR) here
	X10_DIR='${PTII}/vendors/misc/x10'
   	X10_CLASSES='${X10_DIR}/tjx10p-12/lib/x10.jar'
    else
	# Set to x10 and used in
	# $PTII/ptolemy/actor/lib/x10/makefile if x10 was found
	PTX10_DIR=x10
    fi
fi

if test -z "$PTX10_DIR"; then
   ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/x10/|ptolemy/actor/lib/x10/"
else
   ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \
    <classpathentry kind=\"lib\" path=\"$X10_CLASSES\"/>"
fi


# Keep these substitutions alphabetical, with a description

# Directory that contains the Caltrop jar file ptCal.jar
# used by bin/ptinvoke.in


# Directory that contains chic.jar.
# Chic is a modular verifier for behavioral compatibility checking of
# software and hardware components.
# Used in bin/ptinvoke.in


# Separator in CLASSPATH,  For Unix, this should be :, for Cygwin use ;


# Directory that contains colt.jar
# Colt is a "Open Source Libraries for High Performance Scientific
# and Technical Computing in Java" used in bin/ptinvoke.in


# Directory that contains the CaffeineMark Java Benchmark kit
# used by C code generation in copernicus/c


# Directory that contains the Java Serial Comm API


# If Commapi is present, then set to yes, otherwise set to no


# Location of Eclipse, which is used by ptolemy/backtracking


# Directory that contains gc.h, used in copernicus/c


# GC_LD_DIRECTIVE is set to the values to pass to cc or ld if
# GC_malloc() can be found either in the default compiler location
# or in $PTII/lib.
# GC_LD_DIRECTIVE is used in ptolemy/copernicus/c/


# Eclipse .classpath excluding src values
# of the form "vendors/|ptolemy/matlab/"


# Eclipse .classpath lib elements of the format
#    <classpathentry kind="lib" path="lib/diva.jar"/>


# Jar files for Java Advanced Imaging (JAI) used by ptolemy/actor/lib/jai/makefile


# Command to run that indexes a jar file named tmp.jar
# Usually it looks like '"$(JAR)" -i $@'


# Location of rt.jar, usually $(PTJAVA_HOME)/lib/rt.jar
# However, we have to be careful of backslashes and /cygwin
# Soot uses this variable to find java.lang.Object


# javacc binary


# Directory that contains JavaCC, which is used in ptolemy/data/expr


# If we are running under JDK1.4, then set JDOCBREAKITERATOR = -breakiterator


# If we can compile in doc/doclets, we set JDOCTAGLET appropriately
# and use JDOCTAGLET in doc/makefile


# Jar file that contains JDHL, see http://www.jhdl.org


# Jini home directory, see http://www.sun.com/jini/


# If Jini is present, the set to yes, otherwise, set to no


# Jar file that contains Joystick interface,
# see http://sourceforge.net/projects/javajoystick/


# jtclsh script, used for test suites


# jtree binary


# JDK Version determined by running confTest.class and getting java.version


# Jar files for Java Media Framework (JMF) used by ptolemy/actor/lib/makefile


# jode.jar used in bin/ptinvoke to start up Jode, the .class disassembler


# Jython home directory that contains jython.jar, see http://www.jython.org


# JXTA home directory that contains jxta.jar, see http://www.jxta.org


# kvm/tools/classes.jar file used by the PalmOS KVM


# Directory that contains the kvm used by PalmOS


# Set to the location of the lejos installation, usually in
# $PTII/vendors/lejos


# The major type of OS we are running under.
# Under all forms Windows, this should be Windows; ynder Linux: Linux, etc.
# Used in ptolemy/matlab/makefile


# Set to the location of the matlab installation, e.g. /matlabr11
# This directory usually contains bin,...


# Set the location of Matlab's engine libraries


# Set to $PTII/lib if $PTII/lib/mapss.jar was found and used
# in $PTII/bin/ptinvoke.in


# Set to backtrack if Eclipse was found


# Eclipse jar files used by ptolemy/backtrack


# Ptolemy II packages that use Eclipse
# PTBACKTRACK_PACKAGES is used in ptII/doc/makefile


# Set to -I$PTII/mescal/include or -I/usr/local/include
# if we found boost/static_assert.hpp (mescal)


# Set to caltrop and used in $PTII/ptolemy/makefile if Cal was found.


# Set to gcc if gcc was found and used in $PTII/ptolemy/matlab/makefile.


# Set to chic and used in $PTII/ptolemy/makefile if chic was found.


# PTCM_DIR is set to cm and used in $PTII/ptolemy/copernicus/c/test/makefile
# if the CaffeineMark Java Benchmark kit is found


# Set to colt and used in $PTII/ptolemy/actor/lib/makefile if colt was found.


# Colt jar files.  We ship $PTII/lib/ptcolt.jar, which is a subset
# of $PTII/vendors/misc/colt.jar


# Ptolemy II packages that use COLT
# PTCOLT_PACKAGES is used in ptII/doc/makefile


# PTCOMM_DIR is set to comm and used in
# $PTII/ptolemy/actor/lib/makefile if the Java Communications API was found
#


# Ptolemy II packages that use the Java Serial Communication facility
# PTCOMM_PACKAGES is used in ptII/doc/makefile


# Set to copernicus and used in $PTII/ptolemy/makefile if Soot was found


# PTDOCLETS_DIR is set to doclets and used in
# $PTII/doc if tools.jar can be found.


# Set to -I$PTII/mescal/include or -I/usr/local/include if gmp.h is found
# and used in $PTII/mescal/relsat


# Set to -Wl,-R$PTII/mescal/lib or -Wl,-R/usr/local/lib if the gmp
# libraries are found and used in $PTII/mescal/relsat


# Set to -L$PTII/mescal/lib or -L/usr/local/lib if the gmp libraries are found
# and used in $PTII/mescal/relsat


# Name of the jar file that includes the GR domain if Java 3D was found.
# Used in domains/makefile.


# Ptolemy II packages that use the Java 3D facility
# PTGR_PACKAGES is used in ptII/doc/makefile


# Location of the the PTII directory
# $PTII/ptolemy/plot/ptplot.jnlp.in reads this


# Set to ptjacl and used in
# $PTII/ptolemy/actor/gui/makefile if ptjacl.jar was found


# ptjacl.jar file, used to run the test suites


# Set to jai and used in
# $PTII/ptolemy/actor/lib/makefile if Java Advanced Imaging was found


# Ptolemy II packages that use Java Advanced Imaging
# PTJAI_PACKAGES is used in ptII/doc/makefile


# Location of the JDK


# Location of the JDK


# Value of java.home property, location of the JDK with /cygdrive/c/ converted to c:/


# Set to gr and used in
# $PTII/ptolemy/domains/makefile if Java 3D was found


# Set to jhdl if JDHL.jar was found


# Set to jmf if jmf.jar was found


# Ptolemy II packages that use Java Media Framwork
# PTJMF_PACKAGES is used in ptII/doc/makefile


# Set to jni and used in
# $PTII/makefile if gcc or cc was found


# JNI architecture, used to compile C files


# Set to jni and used in
# $PTII/makefile if gcc or cc was found


# Flag to use with TinyOS under Cygwin (-mno-cygwin)


# JNI shared library C compiler flag, under Solaris this would be -fPIC.


# JNI shared library linker flag, under Solaris this would be -fPIC.


# JNI shared library prefix, under Solaris this would be lib.


# JNI shared library suffix, under Windows this would be dll.


# Set to joystick if Joystick.jar was found


# Ptolemy II packages that use the Java Joystick facilty
# PTJOYSTICK_PACKAGES is used in ptII/doc/makefile


# Set to jspaces and used in
# $PTII/ptolemy/actor/lib/makefile if jini was found


# Set to python if jython.jar was found


# Set to jxta ans used in
# $PTII/actor/lib/makefile if jxta.jar was found


# Set to kvm and used in
# $PTII/ptolemy/apps/makefile if kvm was found


# Set to lego and used in
# $PTII/ptolemy/apps/makefile if the Java Communications API was found


# Set to lejos and used in
# $PTII/ptolemy/apps/makefile if the Java Communications API was found
# and Legos was found


# Set to gcc or cl and used in
# $PTII/ptolemy/matlab/makefile if the Matlab was found.


# Set to matlab and used in
# $PTII/ptolemy/makefile if the Matlab was found.


# Linker args for Matlab
# $PTII/ptolemy/matlab/makefile


# Set to mescal and used in $PTII/makefile
# if $PTII/mescal was found


# Set to psdf and used in $PTII/ptolemy/domains/makefile if
# $PTII/lib/mapss.jar was found


# Set to quicktime and used in $PTII/ptolemy/domains/gr/lib/makefile if
# QuickTime for Java was found.


# Ptolemy II packages that use the Quicktime facility
# PTQUICKTIME_PACKAGES is used in ptII/doc/makefile


# Set to tini and used in
# $PTII/ptolemy/apps/makefile if TINI was found


# Set to giotto and used in
# $PTII/ptolemy/apps/makefile if Giotto was found


# Set to quicktime and used in
# $PTII/ptolemy/domains/gr/lib/makefile if Quicktime for Java was found


# Set to vr and used in
# $PTII/ptolemy/domains/gr/lib if Volume Rendering code was found


# $PTII/lib/ptvr.jar file, used to for Volume Rendering


# Ptolemy II packages that use the Java 3D Volume Rendering
# PTVR_PACKAGES is used in ptII/doc/makefile


# Set to waba and used in
# $PTII/ptolemy/apps/makefile if Waba was found


# Set to x10 and used in
# $PTII/ptolemy/actor/lib/x10/makefile if the X10 jar files were found


# Ptolemy II packages that use the X10 facilty.
# PTX10_PACKAGES is used in ptII/doc/makefile


# Location of the local $PTII directory as a file:/// URL
# This variable is used with the Java Network Launching Protocol files


# Set to the location of the QTJava.zip file


# tini/bin/tinclasses.jar file used Soot - a Java Optimization Framework


# Directory that contains the Soot installation


# tini/bin/tiniclasses.jar file used by the Dallas Semi Tini


# Directory that contains the Tini installation


# Location of tools.jar, usually $(PTJAVA_HOME)/../lib/tools.jar


# Location of TinyOS, used by nc domain


# giotto/gdk.jar file used by GiottoSDK


# Directory that contains the GiottoSDK installation


# waba/tools/classes.jar file used by the PalmOS WABA


# Directory that contains the waba used by PalmOS


# tjx10p-11/lib/x10.jar file used for X10


# Directory that contains the X10 installation


# Files we substitute in
                    ac_config_files="$ac_config_files mk/ptII.mk bin/ptinvoke"
          ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
fi

# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
#
# If the first sed substitution is executed (which looks for macros that
# take arguments), then we branch to the quote section.  Otherwise,
# look for a macro that doesn't take arguments.
cat >confdef2opt.sed <<\_ACEOF
t clear
: clear
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*([^)]*)\)[ 	]*\(.*\),-D\1=\2,g
t quote
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\),-D\1=\2,g
t quote
d
: quote
s,[ 	`~#$^&*(){}\\|;'"<>?],\\&,g
s,\[,\\&,g
s,\],\\&,g
s,\$,$$,g
p
_ACEOF
# We use echo to avoid assuming a particular line-breaking character.
# The extra dot is to prevent the shell from consuming trailing
# line-breaks from the sub-command output.  A line-break within
# single-quotes doesn't work because, if this script is created in a
# platform that uses two characters for line-breaks (e.g., DOS), tr
# would break.
ac_LF_and_DOT=`echo; echo .`
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
rm -f confdef2opt.sed


ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_i=`echo "$ac_i" |
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  # 2. Add them.
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs



: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`


# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  as_mkdir_p=false
fi

as_executable_p="test -f"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"


# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH

exec 6>&1

# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.  Logging --version etc. is OK.
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF

This file was extended by $as_me, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\_ACEOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE

Configuration files:
$config_files

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@gnu.org>."
_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.57,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  -*)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_option=$1
     ac_need_defaults=false;;
  esac

  case $ac_option in
  # Handling of the options.
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    ac_need_defaults=false;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi

_ACEOF





cat >>$CONFIG_STATUS <<\_ACEOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "mk/ptII.mk" ) CONFIG_FILES="$CONFIG_FILES mk/ptII.mk" ;;
  "bin/ptinvoke" ) CONFIG_FILES="$CONFIG_FILES bin/ptinvoke" ;;
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./confstat$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@build_alias@,$build_alias,;t t
s,@host_alias@,$host_alias,;t t
s,@target_alias@,$target_alias,;t t
s,@DEFS@,$DEFS,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@CMD_PATH@,$CMD_PATH,;t t
s,@JAVAC@,$JAVAC,;t t
s,@JAVA@,$JAVA,;t t
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@CPP@,$CPP,;t t
s,@EGREP@,$EGREP,;t t
s,@PTCC@,$PTCC,;t t
s,@CXX@,$CXX,;t t
s,@CXXFLAGS@,$CXXFLAGS,;t t
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
s,@JJTREE@,$JJTREE,;t t
s,@MATLAB@,$MATLAB,;t t
s,@PTMATLAB_CC@,$PTMATLAB_CC,;t t
s,@CALTROP_DIR@,$CALTROP_DIR,;t t
s,@CHIC_DIR@,$CHIC_DIR,;t t
s,@CLASSPATHSEPARATOR@,$CLASSPATHSEPARATOR,;t t
s,@COLT_DIR@,$COLT_DIR,;t t
s,@CMKIT_DIR@,$CMKIT_DIR,;t t
s,@COMMAPI_DIR@,$COMMAPI_DIR,;t t
s,@COMMAPI_PRESENT@,$COMMAPI_PRESENT,;t t
s,@ECLIPSE_DIR@,$ECLIPSE_DIR,;t t
s,@GC_INCLUDE_DIR@,$GC_INCLUDE_DIR,;t t
s,@GC_LD_DIRECTIVE@,$GC_LD_DIRECTIVE,;t t
s,@ECLIPSE_EXCLUDING_SRC@,$ECLIPSE_EXCLUDING_SRC,;t t
s,@ECLIPSE_CLASSPATHENTRY_LIBS@,$ECLIPSE_CLASSPATHENTRY_LIBS,;t t
s,@JAI_JARS@,$JAI_JARS,;t t
s,@JAR_INDEX@,$JAR_INDEX,;t t
s,@JAVA_SYSTEM_JAR@,$JAVA_SYSTEM_JAR,;t t
s,@JAVACC@,$JAVACC,;t t
s,@JAVACC_DIR@,$JAVACC_DIR,;t t
s,@JDOCBREAKITERATOR@,$JDOCBREAKITERATOR,;t t
s,@JDOCTAGLET@,$JDOCTAGLET,;t t
s,@JHDL_JAR@,$JHDL_JAR,;t t
s,@JINI_DIR@,$JINI_DIR,;t t
s,@JINI_PRESENT@,$JINI_PRESENT,;t t
s,@JOYSTICK_JAR@,$JOYSTICK_JAR,;t t
s,@JTCLSH@,$JTCLSH,;t t
s,@JTREE@,$JTREE,;t t
s,@JVERSION@,$JVERSION,;t t
s,@JMF_JARS@,$JMF_JARS,;t t
s,@JODE_CLASSES@,$JODE_CLASSES,;t t
s,@JYTHON_DIR@,$JYTHON_DIR,;t t
s,@JXTA_DIR@,$JXTA_DIR,;t t
s,@KVM_CLASSES@,$KVM_CLASSES,;t t
s,@KVM_DIR@,$KVM_DIR,;t t
s,@LEJOS_DIR@,$LEJOS_DIR,;t t
s,@MAJOR_OS_NAME@,$MAJOR_OS_NAME,;t t
s,@MATLAB_DIR@,$MATLAB_DIR,;t t
s,@MATLAB_LIBDIR@,$MATLAB_LIBDIR,;t t
s,@PSDF_DIR@,$PSDF_DIR,;t t
s,@PTBACKTRACK_DIR@,$PTBACKTRACK_DIR,;t t
s,@PTBACKTRACK_JARS@,$PTBACKTRACK_JARS,;t t
s,@PTBACKTRACK_PACKAGES@,$PTBACKTRACK_PACKAGES,;t t
s,@PTBOOST_INCLUDE@,$PTBOOST_INCLUDE,;t t
s,@PTCALTROP_DIR@,$PTCALTROP_DIR,;t t
s,@PTCHIC_DIR@,$PTCHIC_DIR,;t t
s,@PTCM_DIR@,$PTCM_DIR,;t t
s,@PTCOLT_DIR@,$PTCOLT_DIR,;t t
s,@PTCOLT_JARS@,$PTCOLT_JARS,;t t
s,@PTCOLT_PACKAGES@,$PTCOLT_PACKAGES,;t t
s,@PTCOMM_DIR@,$PTCOMM_DIR,;t t
s,@PTCOMM_PACKAGES@,$PTCOMM_PACKAGES,;t t
s,@PTCOPERNICUS_DIR@,$PTCOPERNICUS_DIR,;t t
s,@PTDOCLETS_DIR@,$PTDOCLETS_DIR,;t t
s,@PTGMP_INCLUDE@,$PTGMP_INCLUDE,;t t
s,@PTGMP_LD_FLAGS@,$PTGMP_LD_FLAGS,;t t
s,@PTGMP_LIB@,$PTGMP_LIB,;t t
s,@PTGRDOMAIN_JAR@,$PTGRDOMAIN_JAR,;t t
s,@PTGR_PACKAGES@,$PTGR_PACKAGES,;t t
s,@PTII@,$PTII,;t t
s,@PTJACL_DIR@,$PTJACL_DIR,;t t
s,@PTJACL_JAR@,$PTJACL_JAR,;t t
s,@PTJAI_DIR@,$PTJAI_DIR,;t t
s,@PTJAI_PACKAGES@,$PTJAI_PACKAGES,;t t
s,@PTJAVA_DIR@,$PTJAVA_DIR,;t t
s,@PTJAVA_DIR_NO_CYGDRIVE@,$PTJAVA_DIR_NO_CYGDRIVE,;t t
s,@PTJAVA_HOME@,$PTJAVA_HOME,;t t
s,@PTJAVA3D_DIR@,$PTJAVA3D_DIR,;t t
s,@PTJHDL_DIR@,$PTJHDL_DIR,;t t
s,@PTJMF_DIR@,$PTJMF_DIR,;t t
s,@PTJMF_PACKAGES@,$PTJMF_PACKAGES,;t t
s,@PTJNI_DIR@,$PTJNI_DIR,;t t
s,@PTJNI_ARCHITECTURE@,$PTJNI_ARCHITECTURE,;t t
s,@PTJNI_NO_CYGWIN@,$PTJNI_NO_CYGWIN,;t t
s,@PTJNI_SHAREDLIBRARY_CFLAG@,$PTJNI_SHAREDLIBRARY_CFLAG,;t t
s,@PTJNI_SHAREDLIBRARY_LDFLAG@,$PTJNI_SHAREDLIBRARY_LDFLAG,;t t
s,@PTJNI_SHAREDLIBRARY_PREFIX@,$PTJNI_SHAREDLIBRARY_PREFIX,;t t
s,@PTJNI_SHAREDLIBRARY_SUFFIX@,$PTJNI_SHAREDLIBRARY_SUFFIX,;t t
s,@PTJOYSTICK_DIR@,$PTJOYSTICK_DIR,;t t
s,@PTJOYSTICK_PACKAGES@,$PTJOYSTICK_PACKAGES,;t t
s,@PTJSPACES_DIR@,$PTJSPACES_DIR,;t t
s,@PTJYTHON_DIR@,$PTJYTHON_DIR,;t t
s,@PTJXTA_DIR@,$PTJXTA_DIR,;t t
s,@PTKVM_DIR@,$PTKVM_DIR,;t t
s,@PTLEGO_DIR@,$PTLEGO_DIR,;t t
s,@PTLEJOS_DIR@,$PTLEJOS_DIR,;t t
s,@PTMATLAB_DIR@,$PTMATLAB_DIR,;t t
s,@PTMATLAB_LD_ARGS@,$PTMATLAB_LD_ARGS,;t t
s,@PTMESCAL_DIR@,$PTMESCAL_DIR,;t t
s,@PTPSDF_DIR@,$PTPSDF_DIR,;t t
s,@PTQUICKTIME_DIR@,$PTQUICKTIME_DIR,;t t
s,@PTQUICKTIME_PACKAGES@,$PTQUICKTIME_PACKAGES,;t t
s,@PTTINI_DIR@,$PTTINI_DIR,;t t
s,@PTGIOTTO_DIR@,$PTGIOTTO_DIR,;t t
s,@PTVR_DIR@,$PTVR_DIR,;t t
s,@PTVR_JAR@,$PTVR_JAR,;t t
s,@PTVR_PACKAGES@,$PTVR_PACKAGES,;t t
s,@PTWABA_DIR@,$PTWABA_DIR,;t t
s,@PTX10_DIR@,$PTX10_DIR,;t t
s,@PTX10_PACKAGES@,$PTX10_PACKAGES,;t t
s,@PTII_LOCALURL@,$PTII_LOCALURL,;t t
s,@QTJAVA_ZIP@,$QTJAVA_ZIP,;t t
s,@SOOT_CLASSES@,$SOOT_CLASSES,;t t
s,@SOOT_DIR@,$SOOT_DIR,;t t
s,@TINI_CLASSES@,$TINI_CLASSES,;t t
s,@TINI_DIR@,$TINI_DIR,;t t
s,@TOOLS_JAR@,$TOOLS_JAR,;t t
s,@TOSROOT_NO_CYGDRIVE@,$TOSROOT_NO_CYGDRIVE,;t t
s,@GIOTTO_CLASSES@,$GIOTTO_CLASSES,;t t
s,@GIOTTO_DIR@,$GIOTTO_DIR,;t t
s,@WABA_CLASSES@,$WABA_CLASSES,;t t
s,@WABA_DIR@,$WABA_DIR,;t t
s,@X10_CLASSES@,$X10_CLASSES,;t t
s,@X10_DIR@,$X10_DIR,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF

_ACEOF

  cat >>$CONFIG_STATUS <<\_ACEOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$as_dir" : 'X\(//\)[^/]' \| \
         X"$as_dir" : 'X\(//\)$' \| \
         X"$as_dir" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

  ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`



  if test x"$ac_file" != x-; then
    { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated from `echo $ac_file_in |
                                     sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@abs_srcdir@,$ac_abs_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
s,@builddir@,$ac_builddir,;t t
s,@abs_builddir@,$ac_abs_builddir,;t t
s,@top_builddir@,$ac_top_builddir,;t t
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_dest" : 'X\(//\)[^/]' \| \
         X"$ac_dest" : 'X\(//\)$' \| \
         X"$ac_dest" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_dest" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`


  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
echo "$as_me: executing $ac_dest commands" >&6;}
  case $ac_dest in
    default ) chmod a+x bin/ptinvoke ;;
  esac
done
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF

{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi


