#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_default_prefix=$PTII ac_help="$ac_help --with-java=DIR use Java binaries from DIR, defaults to the value of the PTJAVA_DIR environment variable" ac_help="$ac_help --with-commapi=DIR use Java commapi from DIR, defaults to \$PTII/vendors/sun/commapi" ac_help="$ac_help --with-jhdl-jar=JARFILE use JHDL from JARFILE, defaults to \$PTII/vendors/jhdl/JHDL_0_3_4.jar" ac_help="$ac_help --with-jmf-jar=JARFILE use JMF from JARFILE, defaults to \$JMFHOME/lib/jmf.jar" ac_help="$ac_help --with-lejos=DIR use Java lejos from DIR, defaults to \$PTII/vendors/lejos/lejosBeta3" ac_help="$ac_help --with-javacc=DIR use JavaCC.zip from DIR, defaults to \$PTII/vendors/sun/JavaCC" ac_help="$ac_help --with-ptjacl_jar=PTJACL.JAR ptjacl.jar file, used for running the test scripts" ac_help="$ac_help --with-jini=DIR use Jini from DIR, defaults to \$PTII/vendors/sun/$JINI_VERSION" ac_help="$ac_help --with-jode=DIR use JODE from DIR, defaults to \$PTII/vendors/jode/1.1.1" ac_help="$ac_help --with-kvm=DIR use PalmOS KVM from DIR, defaults to \$PTII/vendors/sun/j2me_cldc" ac_help="$ac_help --with-soot=DIR use SOOT from DIR, defaults to \$PTII/lib" ac_help="$ac_help --with-javasystemjar=DIR use rt.lib from DIR, defaults to JRE java.home property" ac_help="$ac_help --with-tini=DIR use TINI from DIR, defaults to \$PTII/vendors/dalsemi/tini" ac_help="$ac_help --with-waba=DIR use PalmOS WABA from DIR, defaults to \$PTII/vendors/misc/waba/wabasdk" # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE 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' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 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 case "$ac_option" in -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # 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 ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$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" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) 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) # 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 << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$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) 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 ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi 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 "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # 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 # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=mk/ptII.mk.in # 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_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 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 "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # 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 "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi # 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 $ac_n "checking if $PTII contains "cygdrive"""... $ac_c" 1>&6 echo "configure:606: checking if $PTII contains "cygdrive"" >&5 echo "$PTII" | grep cygdrive > /dev/null status=$? if test "$status" -eq 1 ; then echo "$ac_t""ok $PTII does not contain cygdrive, which is right." 1>&6 else echo "configure: warning: \$PTII == $PTII, which contains "cygdrive". 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 Under Cygwin, try setting PTII in the control panel (Start->Control Panels->Advanced->Environment Variables) or it with backslashes: PTII=c:\\\\users\\\\yourname\\\\ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" 1>&2 fi 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_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. #-------------------------------------------------------------------- # 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 "$ac_t"" PTJAVA_DIR environment variable was set to '$PTJAVA_DIR', and there is a directory at that location, so we will try it." 1>&6 else if test -z "$PTJAVA_DIR"; then echo "$ac_t""PTJAVA_DIR environment variable was not set, so we search for the java compiler." 1>&6 else echo "configure: warning: PTJAVA_DIR environment variable is set to '${PTJAVA_DIR}', which is not a directory, so we search for the java compiler." 1>&2 fi # Extract the first word of "javac", so it can be a program name with args. set dummy javac; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:693: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_JAVAC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$JAVAC" in /*) ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_JAVAC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi JAVAC="$ac_cv_path_JAVAC" if test -n "$JAVAC"; then echo "$ac_t""$JAVAC" 1>&6 else echo "$ac_t""no" 1>&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 "configure: warning: Found javac in "$JAVABIN", /usr/java exists, so we are setting PTJAVA_DIR to '$PTJAVA_DIR'" 1>&2 fi fi else echo "configure: warning: Failed to find javac, perhaps Java is not installed?" 1>&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 "configure: warning: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" 1>&2 else DEFAULT_JDK=/usr/java if test -d "$DEFAULT_JDK"; then PTJAVA_DIR=`cd "$DEFAULT_JDK"; pwd` echo "configure: warning: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" 1>&2 else { echo "configure: 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." 1>&2; exit 1; } fi fi fi fi # # Check that we have the javac that corresponds with PTJAVA_DIR in our path # echo $ac_n "checking for the java runtime in $PTJAVA_DIR/bin""... $ac_c" 1>&6 echo "configure:779: checking for the java runtime in $PTJAVA_DIR/bin" >&5 if test -f "$PTJAVA_DIR/bin/java" -o -f "$PTJAVA_DIR/bin/java.exe"; then echo "$ac_t""$PTJAVA_DIR/bin/java" 1>&6 echo $ac_n "checking that you have the right java in your path.""... $ac_c" 1>&6 echo "configure:783: checking that you have the right java in your path." >&5 # Extract the first word of "java", so it can be a program name with args. set dummy java; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:787: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_JAVA'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$JAVA" in /*) ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_JAVA="$JAVA" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_JAVA="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi JAVA="$ac_cv_path_JAVA" if test -n "$JAVA"; then echo "$ac_t""$JAVA" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$PTJAVA_DIR/bin/java" = "$JAVA"; then echo "$ac_t"" You have the right java in your path, $PTJAVA_DIR/bin/java = "$JAVA"" 1>&6 else echo "configure: 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." 1>&2 JAVA="$PTJAVA_DIR/bin/java" fi else { echo "configure: error: Cannot find '$PTJAVA_DIR/bin/java'. Try --with-java=DIR, or set the PTJAVA_DIR environment variable. " 1>&2; exit 1; } fi # # Check that we have the javac that corresponds with PTJAVA_DIR in our path # echo $ac_n "checking for the java compiler in $PTJAVA_DIR/bin""... $ac_c" 1>&6 echo "configure:843: checking for the java compiler in $PTJAVA_DIR/bin" >&5 if test -f "$PTJAVA_DIR/bin/javac"; then echo "$ac_t""$PTJAVA_DIR/bin/javac" 1>&6 echo $ac_n "checking that you have the right javac in your path.""... $ac_c" 1>&6 echo "configure:847: checking that you have the right javac in your path." >&5 # Extract the first word of "javac", so it can be a program name with args. set dummy javac; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:851: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_JAVAC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$JAVAC" in /*) ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_JAVAC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi JAVAC="$ac_cv_path_JAVAC" if test -n "$JAVAC"; then echo "$ac_t""$JAVAC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -x "$JAVAC"; then echo "$ac_t""$CMD_PATH" 1>&6 else echo "configure: 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" 1>&2 fi if test "$PTJAVA_DIR/bin/javac" = "$JAVAC"; then echo "$ac_t"" You have the right javac in your path, "$PTJAVA_DIR/bin/javac" = "$JAVAC"" 1>&6 else echo "configure: 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." 1>&2 JAVAC="$PTJAVA_DIR/bin/javac" fi else { echo "configure: error: Cannot find '$PTJAVA_DIR/bin/javac'. Try --with-java=DIR, or set the PTJAVA_DIR environment variable." 1>&2; exit 1; } fi #-------------------------------------------------------------------- # Test the Java Compiler (javac) #-------------------------------------------------------------------- echo $ac_n "checking the Java compiler with a simple compile""... $ac_c" 1>&6 echo "configure:914: checking the Java compiler with a simple compile" >&5 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 "$ac_t""ok" 1>&6 echo $ac_n "checking the value of the java.version Property ""... $ac_c" 1>&6 echo "configure:924: checking the value of the java.version Property " >&5 # 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 "$ac_t""$JVERSION" 1>&6 else { echo "configure: 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. Under Cygwin, try setting PTII in the control panel (Start->Control Panels->Advanced->Environment Variables) or it with backslashes: PTII=c:\\\\users\\\\yourname\\\\ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" 1>&2; exit 1; } fi else { echo "configure: 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 it with backslashes: PTII=c:\\\\users\\\\yourname\\\\ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" 1>&2; exit 1; } fi cd "$startdir" #-------------------------------------------------------------------- # We require JDK1.3 or later #-------------------------------------------------------------------- echo $ac_n "checking the JDK version""... $ac_c" 1>&6 echo "configure:964: checking the JDK version" >&5 JDOCSIZE= case "$JVERSION" in 1.2.*) { echo "configure: error: Ptolemy II requires JDK1.3 or later. JDK1.2.2 has a bug involving compiling inner classes with protected methods. The RTOS domain uses java.util.Timer, which is present in JDK1.3 and later. Please upgrade your JDK to 1.3 and try again" 1>&2; exit 1; } ;; 1.4*) # If we call the jdk1.4 javadoc without -breakiterator, # then we get lots of warnings JDOCBREAKITERATOR=-breakiterator echo "configure: warning: You are running '$JVERSION'. The deep and shallow code generation facilities use Soot, which does not yet work under JDK1.4. Soot requires JDK1.3 or JDK1.3.1. If you do not plan on using code generation, then you may build under JDK1.4. If you plan on using code generation, then you must _build_ under JDK1.4. Soot will not run properly if you compile with JDK1.3 and try to run with JDK1.4 later. To build under JDK1.3, set your path so that 'java -version' prints 1.3 and then do cd $PTII rm config.* ./configure" 1>&2 ;; *) echo "$ac_t""ok, you are running $JVERSION" 1>&6 ;; esac #-------------------------------------------------------------------- # 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 $ac_n "checking for the proper CLASSPATH separator""... $ac_c" 1>&6 echo "configure:1005: checking for the proper CLASSPATH separator" >&5 # If you mess with this, consider changing the jdkClassPathSeparator # proc in ptII/util/testsuite/jdktools.tcl case "`uname -s`" in CYGWIN_NT-*) CLASSPATHSEPARATOR=";";; CYGWIN_98-*) CLASSPATHSEPARATOR=";";; *) CLASSPATHSEPARATOR=":";; esac echo "$ac_t""'$CLASSPATHSEPARATOR'" 1>&6 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1021: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_CMD_PATH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$CMD_PATH" in /*) ac_cv_path_CMD_PATH="$CMD_PATH" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_CMD_PATH="$CMD_PATH" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_CMD_PATH="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi CMD_PATH="$ac_cv_path_CMD_PATH" if test -n "$CMD_PATH"; then echo "$ac_t""$CMD_PATH" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -x "$CMD_PATH"; then echo "$ac_t""$CMD_PATH" 1>&6 else echo "configure: warning: Failed to find the 'cmd' command, which is used by the $PTII/bin/ptolemy script. Usually cmd is found at c:\\winnt\\system32\\cmd.exe. You may need to modify your PATH to explicitly include c:\\winnt\\system32 by going to Start->Settings->Control Panels->System->Environment and changing %SystemRoot%\\system32 to c:\\winnt\\system32" 1>&2 fi ;; *) ;; esac ##################################################################### ##################################################################### # 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 ##################################################################### ##################################################################### #-------------------------------------------------------------------- # 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/comm is present COMMAPI_USER_DIR="$PTII/ptolemy/actor/lib/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/makefile if the Java Communications API was found # PTCOMM_DIR= if test ! -d "$COMMAPI_USER_DIR"; then echo "$ac_t""$COMMAPI_USER_DIR is not present, so we need not find commapi." 1>&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 $ac_n "checking for commapi directory""... $ac_c" 1>&6 echo "configure:1104: checking for commapi directory" >&5 # 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 "$ac_t""$COMMAPI_DIR" 1>&6 # Subdirectories that contains Java Communications API specific code PTLEGO_DIR=lego PTCOMM_DIR=comm COMMAPI_PRESENT=yes else echo "$ac_t""Did not find '$COMMAPI_DIR/comm.jar'" 1>&6 echo $ac_n "checking for commapi by compiling a test program ""... $ac_c" 1>&6 echo "configure:1124: checking for commapi by compiling a test program " >&5 # 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" javaCommAPI.java ; then echo "$ac_t""ok" 1>&6 PTLEGO_DIR=lego PTCOMM_DIR=comm COMMAPI_PRESENT=yes else COMMAPI_DIR='${PTII}/vendors/sun/commapi' fi cd "$startdir" fi if test "$COMMAPI_PRESENT" = "no"; then echo "configure: 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'" 1>&2 fi 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 in $PTII/vendors/jhdl #-------------------------------------------------------------------- # PTJHDL_DIR is set to jhdl and used in # $PTII/ptolemy/codegen/makefile if jhdl was found PTJHDL_DIR= # Directory that contains the jhdl jar files JHDL_JAR='${PTII}/vendors/jhdl/JHDL_0_3_4.jar' # We only need to look for jhdl if $PTII/ptolemy/copernicus/jhdl exists if test ! -d "$PTII/ptolemy/copernicus/jhdl"; then echo "$ac_t""$PTII/ptolemy/copernicus/jhdl is not present, so we need not find the Jhdl - a Java Optimization Framework." 1>&6 JHDL_JAR='${PTII}/vendors/jhdl/JHDL_0_3_4.jar' else echo $ac_n "checking for jhdl jar file""... $ac_c" 1>&6 echo "configure:1170: checking for jhdl jar file" >&5 # 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/JHDL_0_3_4.jar fi if test -f "$JHDL_JAR"; then echo "$ac_t""$JHDL_JAR" 1>&6 # Set to jhdl and used in # $PTII/ptolemy/apps/makefile if jhdl was found PTJHDL_DIR=jhdl else JHDL_JAR=$PTII/vendors/jhdl/JHDL_0_3_4_1.jar if test -f "$JHDL_JAR"; then echo "$ac_t""$JHDL_JAR" 1>&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 "configure: warning: 'Failed to find PTII/vendors/jhdl/JHDL_0_3_4.jar or JHDL_0_3_4_1.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'" 1>&2 # Note that we don't substitute in the ${PTII} here JHDL_JAR='${PTII}/vendors/jhdl/JHDL_0_3_4.jar' fi fi #-------------------------------------------------------------------- # JMF is the Java Media Framework # For more information, # see http://java.sun.com/products/java-media/jmf/index.html # See if there was a command-line option for where JHDL is # If not, look in $PTII/ptolemy/apps/jmf #-------------------------------------------------------------------- # PTJMF_DIR is set to jmf and used in # $PTII/ptolemy/codegen/makefile if jmf was found PTJMF_DIR= # Under Windows, installing JMF will adjust the CLASSPATH. # Ideally, we would check this. JMFHOME="c:/Program Files/JMF2.1.1" # Directory that contains the jmf jar files JMF_JAR='${JMFHOME}/lib/jmf.jar' # We only need to look for jmf if $PTII/ptolemy/apps/jmf exists if test ! -d "$PTII/ptolemy/apps/jmf"; then echo "$ac_t""$PTII/ptolemy/apps/jmf is not present, so we need not find the JMF - The Java Media Framework." 1>&6 JMF_JAR='${PTII}/vendors/jmf/JMF_0_3_4.jar' else echo $ac_n "checking for jmf jar file""... $ac_c" 1>&6 echo "configure:1232: checking for jmf jar file" >&5 # Check whether --with-jmf_jar or --without-jmf_jar was given. if test "${with_jmf_jar+set}" = set; then withval="$with_jmf_jar" JMF_JAR=$withval else JMF_JAR=$JMFHOME/lib/jmf.jar fi if test -f "$JMF_JAR"; then echo "$ac_t""$JMF_JAR" 1>&6 # Set to jmf and used in # $PTII/ptolemy/apps/makefile if jmf was found PTJMF_DIR=jmf fi if test "$PTJMF_DIR" = ""; then echo "configure: warning: 'Failed to find \$JMFHOME/lib/jmf.jar perhaps Jmf is not installed? You need not download Jmf unless you plan on using the video actors in $PTII/apps/jmf The JMF SDK can be downloaded from http://java.sun.com/products/java-media/jmf/index.html'" 1>&2 # Note that we don't substitute in the ${JMFHOME} here JMF_JAR='${JMFHOME}/lib/jmf.jar' fi 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 "$ac_t""$LEJOS_USER_DIR is not present, so we need not find lejos." 1>&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 "configure: warning: 'Lejos requires commapi, which was not found'" 1>&2 else echo $ac_n "checking for lejos directory""... $ac_c" 1>&6 echo "configure:1286: checking for lejos directory" >&5 # 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 "$ac_t""$LEJOS_DIR" 1>&6 # Subdirectory that contains Java Communications API specific code PTLEJOS_DIR=lejos LEJOS_PRESENT=yes else echo "configure: warning: 'Failed to find $LEJOS_DIR/classes/josx/'" 1>&2 LEJOS_DIR='${PTII}/vendors/lejos' fi fi if test "$LEJOS_PRESENT" = "no"; then echo "configure: 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'" 1>&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 "$ac_t""$PTII/ptolemy/data/expr is not present, so we need not find JavaCC." 1>&6 JAVACC_DIR=$PTII/vendors/sun/JavaCC JAVACC=javacc JJTREE=jjtree else echo $ac_n "checking for JavaCC""... $ac_c" 1>&6 echo "configure:1331: checking for JavaCC" >&5 # 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 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 "configure: warning: Be sure that your CLASSPATH includes JavaCC.zip, which is located in" 1>&2; else if test ! -d "$JAVACC_DIR"; then echo "configure: warning: Could not find directory '${JAVACC_DIR}' so we search for the jjtree command." 1>&2 # Extract the first word of "jjtree", so it can be a program name with args. set dummy jjtree; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1355: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_JJTREE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$JJTREE" in /*) ac_cv_path_JJTREE="$JJTREE" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_JJTREE="$JJTREE" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_JJTREE="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi JJTREE="$ac_cv_path_JJTREE" if test -n "$JJTREE"; then echo "$ac_t""$JJTREE" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -x "$JJTREE"; then echo "$ac_t""$JJTREE" 1>&6; JAVACCBIN=`dirname $JJTREE` JAVACC_DIR=`dirname $JAVACCBIN` else echo "configure: warning: Failed to find jjtree" 1>&2; fi fi if test -d "$JAVACC_DIR"; then echo "$ac_t""$JAVACC_DIR" 1>&6 echo $ac_n "checking for jjtree""... $ac_c" 1>&6 echo "configure:1398: checking for jjtree" >&5 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 "$ac_t""$JJTREE" 1>&6 else echo "configure: warning: Failed to find jjtree in '$JAVACC_DIR/bin'" 1>&2; fi echo $ac_n "checking for javacc""... $ac_c" 1>&6 echo "configure:1407: checking for javacc" >&5 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 "$ac_t""$JAVACC" 1>&6 else echo "configure: warning: Failed to find javacc in '$JAVACC_DIR/bin'" 1>&2; fi fi fi if test ! -d "$JAVACC_DIR"; then echo "configure: 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://www.webgain.com/download/javacc/details.html 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, so either install JavaCC in that location or use the --with-javacc= flag and then rerun configure'" 1>&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 JTCLSH='"$(JAVA)" $(JAVAFLAGS) "-Dptolemy.ptII.dir=$(PTII)" 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 "$ac_t""$PTII/util/testsuite is not present, so we need not find Jacl." 1>&6 else echo $ac_n "checking for ptjacl.jar""... $ac_c" 1>&6 echo "configure:1458: checking for ptjacl.jar" >&5 # 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 "$ac_t""$PTJACL_JAR" 1>&6 echo $ac_n "checking for how to run jacl with "$JAVA"""... $ac_c" 1>&6 echo "configure:1471: checking for how to run jacl with "$JAVA"" >&5 # This command starts up Jacl if echo "set java::jdkVersion; exit" | CLASSPATH="$PTJACL_JAR" "$JAVA" tcl.lang.Shell; then echo "$ac_t""ok" 1>&6 PTJACL_DIR=ptjacl else echo "$ac_t""CLASSPATH="$PTJACL_JAR" "$JAVA" tcl.lang.Shell failed" 1>&6 echo $ac_n "checking for how to run jacl with "$JAVA" "$PTJACL_FLAG"""... $ac_c" 1>&6 echo "configure:1479: checking for how to run jacl with "$JAVA" "$PTJACL_FLAG"" >&5 if echo "set java::jdkVersion; exit" | CLASSPATH="$PTJACL_JAR" "$JAVA" tcl.lang.Shell; then echo "$ac_t""ok" 1>&6 else echo "$ac_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." 1>&6 fi JTCLSH='"$(JAVA)" $(JAVAFLAGS) "-Dptolemy.ptII.dir=$(PTII)" tcl.lang.Shell' fi else echo "configure: 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" 1>&2 fi 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= # We only need to look for Java3D if the gr demo is present JAVA3D_USER_DIR="$PTII/ptolemy/domains/gr" if test ! -d "$JAVA3D_USER_DIR"; then echo "$ac_t""$JAVA3D_USER_DIR is not present, so we need not find Java 3D." 1>&6 else echo $ac_n "checking for Java 3D""... $ac_c" 1>&6 echo "configure:1512: checking for Java 3D" >&5 # 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 "$ac_t""ok" 1>&6 PTJAVA3D_DIR=gr else echo "configure: 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 with out Java 3D." 1>&2 fi fi cd "$startdir" #-------------------------------------------------------------------- # Test for javax.sound #-------------------------------------------------------------------- # We need only loo for javax.sound if actor/lib/javasound is present PTJAVASOUND_USER_DIR="$PTII/ptolemy/actor/lib/javasound" # PTJAVASOUND_DIR is set to javasound and used in # $PTII/ptolemy/actor/lib/makefile if javasound was found PTJAVASOUND_DIR= if test ! -d "$PTJAVASOUND_USER_DIR"; then echo "$ac_t""$PTJAVASOUND_USER_DIR is not present, so we need not find javax.sound." 1>&6 else echo $ac_n "checking for javax.sound""... $ac_c" 1>&6 echo "configure:1545: checking for javax.sound" >&5 # 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" javasoundTest.java ; then echo "$ac_t""ok" 1>&6 PTJAVASOUND_DIR=javasound else echo "configure: warning: '"$JAVAC" javasoundTest.java' failed. Perhaps you are running under JDK1.2? javasound is used in actor.lib, but you can probably get away without it." 1>&2 fi cd "$startdir" 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 "$ac_t""$JINI_USER_DIR is not present, so we need not find Jini." 1>&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 $ac_n "checking for jini directory""... $ac_c" 1>&6 echo "configure:1584: checking for jini directory" >&5 # 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 "$ac_t""$JINI_DIR" 1>&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 "configure: 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'" 1>&2 fi 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 "$ac_t""$PTII/vendors/jode is not present, so we need not find Jode, which is a java disassembler." 1>&6 else echo $ac_n "checking for jode directory""... $ac_c" 1>&6 echo "configure:1639: checking for jode directory" >&5 # 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 "$ac_t""$JODE_DIR" 1>&6 echo $ac_n "checking for \$JODE_DIR/jode.jar""... $ac_c" 1>&6 echo "configure:1652: checking for \$JODE_DIR/jode.jar" >&5 if test -f "$JODE_DIR/jode.jar"; then echo "$ac_t""$JODE_DIR/jode.jar" 1>&6 JODE_CLASSES=$JODE_DIR/jode.jar echo "$ac_t""$JODE_CLASSES" 1>&6 else JODE_CLASSES=no fi fi if test "$JODE_CLASSES" = "no"; then echo "configure: 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'" 1>&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 "$ac_t""$PTII/ptolemy/apps/kvm is not present, so we need not find the PalmOS kvm." 1>&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 $ac_n "checking for kvm directory""... $ac_c" 1>&6 echo "configure:1700: checking for kvm directory" >&5 # 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 "$ac_t""$KVM_DIR" 1>&6 echo $ac_n "checking for \$KVM_DIR/bin/api/classes""... $ac_c" 1>&6 echo "configure:1713: checking for \$KVM_DIR/bin/api/classes" >&5 if test -d "$KVM_DIR/bin/api/classes"; then KVM_CLASSES='$(KVM_DIR)/bin/api/classes' echo "$ac_t""$KVM_CLASSES" 1>&6 else KVM_CLASSES=no fi else echo "$ac_t""Not found in $KVM_DIR" 1>&6 echo $ac_n "checking for kvm directory in /j2me_cldc""... $ac_c" 1>&6 echo "configure:1723: checking for kvm directory in /j2me_cldc" >&5 # Likely place for kvm under windows KVM_DIR=/j2me_cldc if test -d "$KVM_DIR"; then echo "$ac_t""$KVM_DIR" 1>&6 echo $ac_n "checking for \$KVM_DIR/bin/api/classes""... $ac_c" 1>&6 echo "configure:1729: checking for \$KVM_DIR/bin/api/classes" >&5 if test -d "$KVM_DIR/bin/api/classes"; then KVM_CLASSES='$(KVM_DIR)/bin/api/classes' echo "$ac_t""$KVM_CLASSES" 1>&6 else KVM_CLASSES=no fi else KVM_CLASSES=no fi fi if test "$KVM_CLASSES" = "no"; then echo "configure: 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'" 1>&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, extern/include/libeng.def and gcc are found PTMATLAB_DIR= # We only need to look for matlab if $PTII/ptolemy/matlab exists if test ! -d "$PTII/ptolemy/matlab"; then echo "$ac_t""$PTII/ptolemy/matlab is not present, so we need not find matlab, gcc and dlltool." 1>&6 MATLAB_DIR=/matlab PTCC=gcc PTDLLTOOL=dlltool else echo $ac_n "checking for matlab""... $ac_c" 1>&6 echo "configure:1774: checking for matlab" >&5 # Extract the first word of "matlab", so it can be a program name with args. set dummy matlab; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1778: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MATLAB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$MATLAB" in /*) ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_MATLAB="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi MATLAB="$ac_cv_path_MATLAB" if test -n "$MATLAB"; then echo "$ac_t""$MATLAB" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "${MATLAB:-none}" = "none"; then echo "configure: 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." 1>&2; else startdir=`pwd` cd "$srcdir/config" if "$JAVAC" MatlabRootDirectory.java ; then echo "$ac_t""ok" 1>&6 echo $ac_n "checking the value of the Matlab root directory ""... $ac_c" 1>&6 echo "configure:1821: checking the value of the Matlab root directory " >&5 if env CLASSPATH="$PTII/config" "$JAVA" MatlabRootDirectory "$MATLAB"> /dev/null; then # Run it again and get the results MATLAB_DIR=`CLASSPATH="$PTII/config" "$JAVA" MatlabRootDirectory "$MATLAB"` echo "$ac_t""'$MATLAB_DIR'" 1>&6 else echo "configure: warning: 'CLASSPATH="$PTII/config" $JAVA MatlabRootDirectory "$MATLAB" failed. We will not be able to compile the Matlab interface in ptolemy/matlab" 1>&2; fi else echo "configure: warning: 'CLASSPATH="$PTII/config" $JAVAC SystemJar.java failed. We will not be able to compile the Matlab interface in ptolemy/matlab" 1>&2; fi cd "$startdir" if test ! -d "$MATLAB_DIR"; then echo "configure: 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." 1>&2; else if test -f "${MATLAB_DIR}/extern/include/libeng.def"; then echo "$ac_t""$MATLAB_DIR" 1>&6 echo $ac_n "checking for gcc""... $ac_c" 1>&6 echo "configure:1845: checking for gcc" >&5 # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1849: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PTCC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PTCC" in /*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_PTCC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi PTCC="$ac_cv_path_PTCC" if test -n "$PTCC"; then echo "$ac_t""$PTCC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "${PTCC:-none}" != "none"; then echo "$ac_t""$PTCC" 1>&6 PTMATLAB_DIR=matlab else echo "configure: warning: Failed to find gcc" 1>&2 echo $ac_n "checking for cc""... $ac_c" 1>&6 echo "configure:1887: checking for cc" >&5 # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1891: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PTCC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PTCC" in /*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_PTCC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi PTCC="$ac_cv_path_PTCC" if test -n "$PTCC"; then echo "$ac_t""$PTCC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "${PTCC:-none}" != "none"; then echo "$ac_t""$PTCC" 1>&6 PTMATLAB_DIR=matlab else echo "configure: warning: Failed to find gcc or cc, so we will not be able to compile the Matlab interface in ptolemy/matlab" 1>&2; fi fi # FIXME: currently, the Matlab interface only works # under Windows echo $ac_n "checking for dlltool""... $ac_c" 1>&6 echo "configure:1934: checking for dlltool" >&5 # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1938: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PTDLLTOOL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PTDLLTOOL" in /*) ac_cv_path_PTDLLTOOL="$PTDLLTOOL" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PTDLLTOOL="$PTDLLTOOL" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_PTDLLTOOL="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi PTDLLTOOL="$ac_cv_path_PTDLLTOOL" if test -n "$PTDLLTOOL"; then echo "$ac_t""$PTDLLTOOL" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "${PTDLLTOOL:-none}" = "none"; then PTMATLAB_DIR= echo "configure: warning: Failed to find dlltool, so we will not be able to compile the Matlab interface in ptolemy/matlab" 1>&2; fi else echo "configure: warning: Failed to find matlab libeng.def file at ${MATLAB_DIR}/extern/include/libeng.def. Perhaps Matlab is not installed?" 1>&2; fi fi 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_DIR}jre/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 "$ac_t""$PTII/ptolemy/copernicus is not present, so we need not find the Soot - a Java Optimization Framework." 1>&6 SOOT_DIR='${PTII}/lib' else echo $ac_n "checking for soot directory""... $ac_c" 1>&6 echo "configure:2017: checking for soot directory" >&5 # 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 "$ac_t""$SOOT_DIR" 1>&6 echo $ac_n "checking for \$SOOT_DIR/sootclasses.jar""... $ac_c" 1>&6 echo "configure:2030: checking for \$SOOT_DIR/sootclasses.jar" >&5 if test -f "$SOOT_DIR/sootclasses.jar"; then echo "$ac_t""$SOOT_DIR/sootclasses.jar" 1>&6 echo $ac_n "checking for \$SOOT_DIR/jasminclasses.jar""... $ac_c" 1>&6 echo "configure:2034: checking for \$SOOT_DIR/jasminclasses.jar" >&5 if test -f "$SOOT_DIR/jasminclasses.jar"; then echo "$ac_t""$SOOT_DIR/jasminclasses.jar" 1>&6 fi echo "$ac_t""$SOOT_CLASSES" 1>&6 else SOOT_CLASSES_FOUND=no fi # else # We could look in other places . . . fi if test "$SOOT_CLASSES_FOUND" = "no"; then echo "configure: 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/" 1>&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 $ac_n "checking for rt.jar by compiling config/SystemJar.java""... $ac_c" 1>&6 echo "configure:2060: checking for rt.jar by compiling config/SystemJar.java" >&5 # 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_DIR)/jre/lib/rt.jar' fi startdir=`pwd` cd "$srcdir/config" if "$JAVAC" SystemJar.java ; then echo "$ac_t""ok" 1>&6 echo $ac_n "checking the value of the java.home property ""... $ac_c" 1>&6 echo "configure:2075: checking the value of the java.home property " >&5 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 "$ac_t""'$JAVA_SYSTEM_JAR'" 1>&6 else { echo "configure: error: 'CLASSPATH="$PTII/config" "$JAVA" SystemJar failed. Classes that use Soot will compile, but will fail to run.'" 1>&2; exit 1; } fi else { echo "configure: error: 'cd "$srcdir/config"; "$JAVAC" SystemJar.java failed. Classes that use Soot will compile, but will fail to run.'" 1>&2; exit 1; } fi cd "$startdir" 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 "$ac_t""$PTII/ptolemy/apps/tini is not present, so we need not find the Dallas Semiconductor tini." 1>&6 TINI_DIR='${PTII}/vendors/dalsemi/tini' TINI_CLASSES='$(TINI_DIR)/bin/tiniclasses.jar$(CLASSPATHSEPARATOR)$(TINI_DIR)/bin/tini.jar' else echo $ac_n "checking for tini directory""... $ac_c" 1>&6 echo "configure:2112: checking for tini directory" >&5 # 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 "$ac_t""$TINI_DIR" 1>&6 echo $ac_n "checking for \$TINI_DIR/bin/tiniclasses.jar""... $ac_c" 1>&6 echo "configure:2125: checking for \$TINI_DIR/bin/tiniclasses.jar" >&5 if test -f "$TINI_DIR/bin/tiniclasses.jar"; then echo "$ac_t""$TINI_DIR/bin/tiniclasses.jar" 1>&6 echo $ac_n "checking for \$TINI_DIR/bin/tini.jar""... $ac_c" 1>&6 echo "configure:2129: checking for \$TINI_DIR/bin/tini.jar" >&5 if test -f "$TINI_DIR/bin/tini.jar"; then echo "$ac_t""$TINI_DIR/bin/tini.jar" 1>&6 TINI_CLASSES='$(TINI_DIR)/bin/tiniclasses.jar$(CLASSPATHSEPARATOR)$(TINI_DIR)/bin/tini.jar' else TINI_CLASSES='$(TINI_DIR)/bin/tiniclasses.jar' fi echo "$ac_t""$TINI_CLASSES" 1>&6 else TINI_CLASSES=no fi else echo "$ac_t""Not found in $TINI_DIR" 1>&6 echo $ac_n "checking for tini directory in /tini""... $ac_c" 1>&6 echo "configure:2143: checking for tini directory in /tini" >&5 # Likely place for tini under windows TINI_DIR=/tini if test -d "$TINI_DIR"; then echo "$ac_t""$TINI_DIR" 1>&6 echo $ac_n "checking for \$TINI_DIR/bin/tiniclasses.jar""... $ac_c" 1>&6 echo "configure:2149: checking for \$TINI_DIR/bin/tiniclasses.jar" >&5 if test -f "$TINI_DIR/bin/tiniclasses.jar"; then echo "$ac_t""$TINI_DIR/bin/tiniclasses.jar" 1>&6 echo $ac_n "checking for \$TINI_DIR/bin/tini.jar""... $ac_c" 1>&6 echo "configure:2153: checking for \$TINI_DIR/bin/tini.jar" >&5 if test -f "$TINI_DIR/bin/tini.jar"; then echo "$ac_t""$TINI_DIR/bin/tini.jar" 1>&6 TINI_CLASSES='$(TINI_DIR)/bin/tiniclasses.jar$(CLASSPATHSEPARATOR)$(TINI_DIR)/bin/tini.jar' else TINI_CLASSES='$(TINI_DIR)/bin/tiniclasses.jar' fi fi echo "$ac_t""$TINI_CLASSES" 1>&6 else TINI_CLASSES='$(TINI_DIR)/bin/tiniclasses.jar$(CLASSPATHSEPARATOR)$(TINI_DIR)/bin/tini.jar' echo "$ac_t""$TINI_CLASSES" 1>&6 fi fi if test "$TINI_CLASSES" = "no"; then echo "configure: 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" 1>&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/tiniclasses.jar$(CLASSPATHSEPARATOR)$(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 #-------------------------------------------------------------------- # 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 "$ac_t""$PTII/ptolemy/apps/kvm is not present, so we need not find the PalmOS waba." 1>&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 $ac_n "checking for waba directory""... $ac_c" 1>&6 echo "configure:2205: checking for waba directory" >&5 # 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 "$ac_t""$WABA_DIR" 1>&6 echo $ac_n "checking for \$WABA_DIR/classes""... $ac_c" 1>&6 echo "configure:2218: checking for \$WABA_DIR/classes" >&5 if test -d "$WABA_DIR/classes"; then WABA_CLASSES='$(WABA_DIR)/classes' echo "$ac_t""$WABA_CLASSES" 1>&6 else WABA_CLASSES=no fi else echo "$ac_t""Not found in $WABA_DIR" 1>&6 echo $ac_n "checking for waba directory in /waba""... $ac_c" 1>&6 echo "configure:2228: checking for waba directory in /waba" >&5 # Likely place for waba under windows WABA_DIR=/waba/wabasdk if test -d "$WABA_DIR"; then echo "$ac_t""$WABA_DIR" 1>&6 echo $ac_n "checking for \$WABA_DIR/classes""... $ac_c" 1>&6 echo "configure:2234: checking for \$WABA_DIR/classes" >&5 if test -d "$WABA_DIR/classes"; then WABA_CLASSES='$(WABA_DIR)/classes' echo "$ac_t""$WABA_CLASSES" 1>&6 else WABA_CLASSES=no fi else WABA_CLASSES=no fi fi if test "$WABA_CLASSES" = "no"; then echo "configure: 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" 1>&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 # Keep these substitutions alphabetical, with a description # Separator in CLASSPATH, For Unix, this should be :, for Cygwin use ; # Directory that contains the Java Serial Comm API # If Commapi is present, then set to yes, otherwise set to no # Location of rt.jar, usually $(PTJAVA_DIR)/jre/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 # 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 JMF # jtclsh script, used for test suites # jtree binary # JDK Version determined by running confTest.class and getting java.version # jode.jar used in bin/ptinvoke to start up Jode, the .class disassembler # 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 # Set to the location of the matlab installation, e.g. /matlabr11 # This directory usually contains bin,... # Set to copernicus and used in $PTII/ptolemy/makefile if Soot was found # Set to gcc if gcc was found and used in $PTII/ptolemy/matlab/makefile. # PTCOMM_DIR is set to comm and used in # $PTII/ptolemy/actor/lib/makefile if the Java Communications API was found # # Set to dlltool if dlltool was found and used in # $PTII/ptolemy/matlab/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 # Location of the JDK # Set to gr and used in # $PTII/ptolemy/domains/makefile if Java 3D was found # Set to javasound and used in # $PTII/ptolemy/actor/lib/makefile if javasound was found # Set to jhdl if JDHL.jar was found # Set to jmf if jmf.jar was found # Set to jspaces and used in # $PTII/ptolemy/actor/lib/makefile if jini 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 matlab and used in # $PTII/ptolemy/makefile if the Matlab was found. # Set to tini and used in # $PTII/ptolemy/apps/makefile if TINI was found # Set to waba and used in # $PTII/ptolemy/apps/makefile if Waba was found # Location of the local $PTII directory as a file:/// URL # This variable is used with the Java Network Launching Protocol files # tini/bin/tinclasses.jar file used Soot - a Java Optimization Framework # Directory that contains the Soot installation # tini/bin/tinclasses.jar file used by the Dallas Semi Tini # Directory that contains the Tini installation # waba/tools/classes.jar file used by the PalmOS WABA # Directory that contains the waba used by PalmOS # Files we substitute in trap '' 1 2 15 cat > confcache <<\EOF # 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. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # 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 \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. cat > conftest.defs <<\EOF s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g s%\[%\\&%g s%\]%\\&%g s%\$%$$%g EOF DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` rm -f conftest.defs # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir trap 'rm -fr `echo "mk/ptII.mk bin/ptinvoke" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@JAVAC@%$JAVAC%g s%@JAVA@%$JAVA%g s%@CMD_PATH@%$CMD_PATH%g s%@JJTREE@%$JJTREE%g s%@MATLAB@%$MATLAB%g s%@PTCC@%$PTCC%g s%@PTDLLTOOL@%$PTDLLTOOL%g s%@CLASSPATHSEPARATOR@%$CLASSPATHSEPARATOR%g s%@COMMAPI_DIR@%$COMMAPI_DIR%g s%@COMMAPI_PRESENT@%$COMMAPI_PRESENT%g s%@JAVA_SYSTEM_JAR@%$JAVA_SYSTEM_JAR%g s%@JAVACC@%$JAVACC%g s%@JAVACC_DIR@%$JAVACC_DIR%g s%@JDOCBREAKITERATOR@%$JDOCBREAKITERATOR%g s%@JHDL_JAR@%$JHDL_JAR%g s%@JINI_DIR@%$JINI_DIR%g s%@JINI_PRESENT@%$JINI_PRESENT%g s%@JMF_JAR@%$JMF_JAR%g s%@JTCLSH@%$JTCLSH%g s%@JTREE@%$JTREE%g s%@JVERSION@%$JVERSION%g s%@JODE_CLASSES@%$JODE_CLASSES%g s%@KVM_CLASSES@%$KVM_CLASSES%g s%@KVM_DIR@%$KVM_DIR%g s%@LEJOS_DIR@%$LEJOS_DIR%g s%@MATLAB_DIR@%$MATLAB_DIR%g s%@PTCOPERNICUS_DIR@%$PTCOPERNICUS_DIR%g s%@PTCOMM_DIR@%$PTCOMM_DIR%g s%@PTII@%$PTII%g s%@PTJACL_DIR@%$PTJACL_DIR%g s%@PTJACL_JAR@%$PTJACL_JAR%g s%@PTJAVA_DIR@%$PTJAVA_DIR%g s%@PTJAVA3D_DIR@%$PTJAVA3D_DIR%g s%@PTJAVASOUND_DIR@%$PTJAVASOUND_DIR%g s%@PTJHDL_DIR@%$PTJHDL_DIR%g s%@PTJMF_DIR@%$PTJMF_DIR%g s%@PTJSPACES_DIR@%$PTJSPACES_DIR%g s%@PTKVM_DIR@%$PTKVM_DIR%g s%@PTLEGO_DIR@%$PTLEGO_DIR%g s%@PTLEJOS_DIR@%$PTLEJOS_DIR%g s%@PTMATLAB_DIR@%$PTMATLAB_DIR%g s%@PTTINI_DIR@%$PTTINI_DIR%g s%@PTWABA_DIR@%$PTWABA_DIR%g s%@PTII_LOCALURL@%$PTII_LOCALURL%g s%@SOOT_CLASSES@%$SOOT_CLASSES%g s%@SOOT_DIR@%$SOOT_DIR%g s%@TINI_CLASSES@%$TINI_CLASSES%g s%@TINI_DIR@%$TINI_DIR%g s%@WABA_CLASSES@%$WABA_CLASSES%g s%@WABA_DIR@%$WABA_DIR%g CEOF EOF cat >> $CONFIG_STATUS <<\EOF # 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_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # 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" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF chmod a+x bin/ptinvoke exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1