This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: java tests



This patch enables the existing java tests, and adds infrastructure
for some real tests.

AG

-- 
Anthony Green                                                        Red Hat
                                                       Sunnyvale, California


2000-03-04  Anthony Green  <green@redhat.com>

	* configure.in (configdirs): Add gdb.java
	* gdb.java/jmisc.java: New file.
	* gdb.java/jmisc.exp: New file.
	* gdb.java/Makefile.in: New file.
	* gdb.java/configure: Rebuilt.
	* gdb.java/configure.in: New file.
	* lib/java.exp: New file.


Index: gdb/testsuite/configure.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/configure.in,v
retrieving revision 1.2
diff -p -r1.2 configure.in
*** configure.in	2000/02/23 00:25:43	1.2
--- configure.in	2000/03/05 01:16:13
*************** configdirs="gdb.asm \
*** 18,23 ****
--- 18,24 ----
              gdb.c++ \
              gdb.disasm \
              gdb.chill \
+             gdb.java \
              gdb.mi \
              gdb.threads \
              gdb.trace"
Index: gdb/testsuite/configure
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/configure,v
retrieving revision 1.2
diff -p -r1.2 configure
*** configure	2000/02/23 00:25:43	1.2
--- configure	2000/03/05 01:16:14
*************** configdirs="gdb.asm \
*** 654,659 ****
--- 654,660 ----
              gdb.c++ \
              gdb.disasm \
              gdb.chill \
+             gdb.java \
              gdb.mi \
              gdb.threads \
              gdb.trace"



These are the new files...


#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 2000-03-04 02:02 PST by <green@redhat.com>.
# Source directory was `/home/green/java/net/gdb/src'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#  31186 -rwxrwxr-x gdb/testsuite/gdb.java/configure
#    635 -rw-rw-r-- gdb/testsuite/gdb.java/Makefile.in
#    222 -rw-rw-r-- gdb/testsuite/gdb.java/configure.in
#   2889 -rw-rw-r-- gdb/testsuite/gdb.java/jmisc.exp
#     85 -rw-rw-r-- gdb/testsuite/gdb.java/jmisc.java
#   2451 -rw-rw-r-- gdb/testsuite/lib/java.exp
#
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    set `$dir/gettext --version 2>&1`
    if test "$3" = GNU
    then
      gettext_dir=$dir
    fi
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
else
  shar_touch=:
  echo
  $echo 'WARNING: not restoring timestamps.  Consider getting and'
  $echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 1231235999 $$.touch
#
if mkdir _sh22239; then
  $echo 'x -' 'creating lock directory'
else
  $echo 'failed to create lock directory'
  exit 1
fi
# ============= gdb/testsuite/gdb.java/configure ==============
if test ! -d 'gdb'; then
  $echo 'x -' 'creating directory' 'gdb'
  mkdir 'gdb'
fi
if test ! -d 'gdb/testsuite'; then
  $echo 'x -' 'creating directory' 'gdb/testsuite'
  mkdir 'gdb/testsuite'
fi
if test ! -d 'gdb/testsuite/gdb.java'; then
  $echo 'x -' 'creating directory' 'gdb/testsuite/gdb.java'
  mkdir 'gdb/testsuite/gdb.java'
fi
if test -f 'gdb/testsuite/gdb.java/configure' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'gdb/testsuite/gdb.java/configure' '(file already exists)'
else
  $echo 'x -' extracting 'gdb/testsuite/gdb.java/configure' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'gdb/testsuite/gdb.java/configure' &&
#! /bin/sh
X
# 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.
X
# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
X
# 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=
sitefile=
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'
X
# 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
X
ac_prev=
for ac_option
do
X
X  # If the previous option needs an argument, assign it.
X  if test -n "$ac_prev"; then
X    eval "$ac_prev=\$ac_option"
X    ac_prev=
X    continue
X  fi
X
X  case "$ac_option" in
X  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
X  *) ac_optarg= ;;
X  esac
X
X  # Accept the important Cygnus configure options, so we can diagnose typos.
X
X  case "$ac_option" in
X
X  -bindir | --bindir | --bindi | --bind | --bin | --bi)
X    ac_prev=bindir ;;
X  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
X    bindir="$ac_optarg" ;;
X
X  -build | --build | --buil | --bui | --bu)
X    ac_prev=build ;;
X  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
X    build="$ac_optarg" ;;
X
X  -cache-file | --cache-file | --cache-fil | --cache-fi \
X  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
X    ac_prev=cache_file ;;
X  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
X  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
X    cache_file="$ac_optarg" ;;
X
X  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
X    ac_prev=datadir ;;
X  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
X  | --da=*)
X    datadir="$ac_optarg" ;;
X
X  -disable-* | --disable-*)
X    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
X    # Reject names that are not valid shell variable names.
X    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
X      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
X    fi
X    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
X    eval "enable_${ac_feature}=no" ;;
X
X  -enable-* | --enable-*)
X    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
X    # Reject names that are not valid shell variable names.
X    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
X      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
X    fi
X    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
X    case "$ac_option" in
X      *=*) ;;
X      *) ac_optarg=yes ;;
X    esac
X    eval "enable_${ac_feature}='$ac_optarg'" ;;
X
X  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
X  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
X  | --exec | --exe | --ex)
X    ac_prev=exec_prefix ;;
X  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
X  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
X  | --exec=* | --exe=* | --ex=*)
X    exec_prefix="$ac_optarg" ;;
X
X  -gas | --gas | --ga | --g)
X    # Obsolete; use --with-gas.
X    with_gas=yes ;;
X
X  -help | --help | --hel | --he)
X    # Omit some internal or obsolete options to make the list less imposing.
X    # This message is too long to be a string in the A/UX 3.1 sh.
X    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
X  --cache-file=FILE       cache test results in FILE
X  --help                  print this message
X  --no-create             do not create output files
X  --quiet, --silent       do not print \`checking...' messages
X  --site-file=FILE        use FILE as the site file
X  --version               print the version of autoconf that created configure
Directory and file names:
X  --prefix=PREFIX         install architecture-independent files in PREFIX
X                          [$ac_default_prefix]
X  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
X                          [same as prefix]
X  --bindir=DIR            user executables in DIR [EPREFIX/bin]
X  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
X  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
X  --datadir=DIR           read-only architecture-independent data in DIR
X                          [PREFIX/share]
X  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
X  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
X                          [PREFIX/com]
X  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
X  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
X  --includedir=DIR        C header files in DIR [PREFIX/include]
X  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
X  --infodir=DIR           info documentation in DIR [PREFIX/info]
X  --mandir=DIR            man documentation in DIR [PREFIX/man]
X  --srcdir=DIR            find the sources in DIR [configure dir or ..]
X  --program-prefix=PREFIX prepend PREFIX to installed program names
X  --program-suffix=SUFFIX append SUFFIX to installed program names
X  --program-transform-name=PROGRAM
X                          run sed PROGRAM on installed program names
EOF
X    cat << EOF
Host type:
X  --build=BUILD           configure for building on BUILD [BUILD=HOST]
X  --host=HOST             configure for HOST [guessed]
X  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
X  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
X  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
X  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
X  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
X  --x-includes=DIR        X include files are in DIR
X  --x-libraries=DIR       X library files are in DIR
EOF
X    if test -n "$ac_help"; then
X      echo "--enable and --with options recognized:$ac_help"
X    fi
X    exit 0 ;;
X
X  -host | --host | --hos | --ho)
X    ac_prev=host ;;
X  -host=* | --host=* | --hos=* | --ho=*)
X    host="$ac_optarg" ;;
X
X  -includedir | --includedir | --includedi | --included | --include \
X  | --includ | --inclu | --incl | --inc)
X    ac_prev=includedir ;;
X  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
X  | --includ=* | --inclu=* | --incl=* | --inc=*)
X    includedir="$ac_optarg" ;;
X
X  -infodir | --infodir | --infodi | --infod | --info | --inf)
X    ac_prev=infodir ;;
X  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
X    infodir="$ac_optarg" ;;
X
X  -libdir | --libdir | --libdi | --libd)
X    ac_prev=libdir ;;
X  -libdir=* | --libdir=* | --libdi=* | --libd=*)
X    libdir="$ac_optarg" ;;
X
X  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
X  | --libexe | --libex | --libe)
X    ac_prev=libexecdir ;;
X  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
X  | --libexe=* | --libex=* | --libe=*)
X    libexecdir="$ac_optarg" ;;
X
X  -localstatedir | --localstatedir | --localstatedi | --localstated \
X  | --localstate | --localstat | --localsta | --localst \
X  | --locals | --local | --loca | --loc | --lo)
X    ac_prev=localstatedir ;;
X  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
X  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
X  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
X    localstatedir="$ac_optarg" ;;
X
X  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
X    ac_prev=mandir ;;
X  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
X    mandir="$ac_optarg" ;;
X
X  -nfp | --nfp | --nf)
X    # Obsolete; use --without-fp.
X    with_fp=no ;;
X
X  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
X  | --no-cr | --no-c)
X    no_create=yes ;;
X
X  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
X  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
X    no_recursion=yes ;;
X
X  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
X  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
X  | --oldin | --oldi | --old | --ol | --o)
X    ac_prev=oldincludedir ;;
X  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
X  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
X  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
X    oldincludedir="$ac_optarg" ;;
X
X  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
X    ac_prev=prefix ;;
X  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
X    prefix="$ac_optarg" ;;
X
X  -program-prefix | --program-prefix | --program-prefi | --program-pref \
X  | --program-pre | --program-pr | --program-p)
X    ac_prev=program_prefix ;;
X  -program-prefix=* | --program-prefix=* | --program-prefi=* \
X  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
X    program_prefix="$ac_optarg" ;;
X
X  -program-suffix | --program-suffix | --program-suffi | --program-suff \
X  | --program-suf | --program-su | --program-s)
X    ac_prev=program_suffix ;;
X  -program-suffix=* | --program-suffix=* | --program-suffi=* \
X  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
X    program_suffix="$ac_optarg" ;;
X
X  -program-transform-name | --program-transform-name \
X  | --program-transform-nam | --program-transform-na \
X  | --program-transform-n | --program-transform- \
X  | --program-transform | --program-transfor \
X  | --program-transfo | --program-transf \
X  | --program-trans | --program-tran \
X  | --progr-tra | --program-tr | --program-t)
X    ac_prev=program_transform_name ;;
X  -program-transform-name=* | --program-transform-name=* \
X  | --program-transform-nam=* | --program-transform-na=* \
X  | --program-transform-n=* | --program-transform-=* \
X  | --program-transform=* | --program-transfor=* \
X  | --program-transfo=* | --program-transf=* \
X  | --program-trans=* | --program-tran=* \
X  | --progr-tra=* | --program-tr=* | --program-t=*)
X    program_transform_name="$ac_optarg" ;;
X
X  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
X  | -silent | --silent | --silen | --sile | --sil)
X    silent=yes ;;
X
X  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
X    ac_prev=sbindir ;;
X  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
X  | --sbi=* | --sb=*)
X    sbindir="$ac_optarg" ;;
X
X  -sharedstatedir | --sharedstatedir | --sharedstatedi \
X  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
X  | --sharedst | --shareds | --shared | --share | --shar \
X  | --sha | --sh)
X    ac_prev=sharedstatedir ;;
X  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
X  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
X  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
X  | --sha=* | --sh=*)
X    sharedstatedir="$ac_optarg" ;;
X
X  -site | --site | --sit)
X    ac_prev=site ;;
X  -site=* | --site=* | --sit=*)
X    site="$ac_optarg" ;;
X
X  -site-file | --site-file | --site-fil | --site-fi | --site-f)
X    ac_prev=sitefile ;;
X  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
X    sitefile="$ac_optarg" ;;
X
X  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
X    ac_prev=srcdir ;;
X  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
X    srcdir="$ac_optarg" ;;
X
X  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
X  | --syscon | --sysco | --sysc | --sys | --sy)
X    ac_prev=sysconfdir ;;
X  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
X  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
X    sysconfdir="$ac_optarg" ;;
X
X  -target | --target | --targe | --targ | --tar | --ta | --t)
X    ac_prev=target ;;
X  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
X    target="$ac_optarg" ;;
X
X  -v | -verbose | --verbose | --verbos | --verbo | --verb)
X    verbose=yes ;;
X
X  -version | --version | --versio | --versi | --vers)
X    echo "configure generated by autoconf version 2.13"
X    exit 0 ;;
X
X  -with-* | --with-*)
X    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
X    # Reject names that are not valid shell variable names.
X    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
X      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
X    fi
X    ac_package=`echo $ac_package| sed 's/-/_/g'`
X    case "$ac_option" in
X      *=*) ;;
X      *) ac_optarg=yes ;;
X    esac
X    eval "with_${ac_package}='$ac_optarg'" ;;
X
X  -without-* | --without-*)
X    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
X    # Reject names that are not valid shell variable names.
X    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
X      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
X    fi
X    ac_package=`echo $ac_package| sed 's/-/_/g'`
X    eval "with_${ac_package}=no" ;;
X
X  --x)
X    # Obsolete; use --with-x.
X    with_x=yes ;;
X
X  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
X  | --x-incl | --x-inc | --x-in | --x-i)
X    ac_prev=x_includes ;;
X  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
X  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
X    x_includes="$ac_optarg" ;;
X
X  -x-libraries | --x-libraries | --x-librarie | --x-librari \
X  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
X    ac_prev=x_libraries ;;
X  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
X  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
X    x_libraries="$ac_optarg" ;;
X
X  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
X    ;;
X
X  *)
X    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
X      echo "configure: warning: $ac_option: invalid host type" 1>&2
X    fi
X    if test "x$nonopt" != xNONE; then
X      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
X    fi
X    nonopt="$ac_option"
X    ;;
X
X  esac
done
X
if test -n "$ac_prev"; then
X  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi
X
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
X
# 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
X  exec 6>/dev/null
else
X  exec 6>&1
fi
exec 5>./config.log
X
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
X
# 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
X  case "$ac_arg" in
X  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
X  | --no-cr | --no-c) ;;
X  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
X  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
X  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
X  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
X  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
X  esac
done
X
# 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
X
# 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
X
# 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=javamisc.exp
X
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
X  ac_srcdir_defaulted=yes
X  # Try the directory containing this script, then its parent.
X  ac_prog=$0
X  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
X  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
X  srcdir=$ac_confdir
X  if test ! -r $srcdir/$ac_unique_file; then
X    srcdir=..
X  fi
else
X  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
X  if test "$ac_srcdir_defaulted" = yes; then
X    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
X  else
X    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
X  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
X
# Prefer explicitly selected file to automatically selected ones.
if test -z "$sitefile"; then
X  if test -z "$CONFIG_SITE"; then
X    if test "x$prefix" != xNONE; then
X      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
X    else
X      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
X    fi
X  fi
else
X  CONFIG_SITE="$sitefile"
fi
for ac_site_file in $CONFIG_SITE; do
X  if test -r "$ac_site_file"; then
X    echo "loading site script $ac_site_file"
X    . "$ac_site_file"
X  fi
done
X
if test -r "$cache_file"; then
X  echo "loading cache $cache_file"
X  . $cache_file
else
X  echo "creating cache $cache_file"
X  > $cache_file
fi
X
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
X
ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
X  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
X  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
X    ac_n= ac_c='
' ac_t='	'
X  else
X    ac_n=-n ac_c= ac_t=
X  fi
else
X  ac_n= ac_c='\c' ac_t=
fi
X
X
X
CC=${CC-cc}
X
ac_aux_dir=
for ac_dir in `cd $srcdir;pwd`/../../.. $srcdir/`cd $srcdir;pwd`/../../..; do
X  if test -f $ac_dir/install-sh; then
X    ac_aux_dir=$ac_dir
X    ac_install_sh="$ac_aux_dir/install-sh -c"
X    break
X  elif test -f $ac_dir/install.sh; then
X    ac_aux_dir=$ac_dir
X    ac_install_sh="$ac_aux_dir/install.sh -c"
X    break
X  fi
done
if test -z "$ac_aux_dir"; then
X  { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../../.. $srcdir/`cd $srcdir;pwd`/../../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
X
X
# Do some error checking and defaulting for the host and target type.
# The inputs are:
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
#    same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
#    as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.
X
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac
X
X
# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
X
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:586: checking host system type" >&5
X
host_alias=$host
case "$host_alias" in
NONE)
X  case $nonopt in
X  NONE)
X    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
X    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
X    fi ;;
X  *) host_alias=$nonopt ;;
X  esac ;;
esac
X
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6
X
echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:607: checking target system type" >&5
X
target_alias=$target
case "$target_alias" in
NONE)
X  case $nonopt in
X  NONE) target_alias=$host_alias ;;
X  *) target_alias=$nonopt ;;
X  esac ;;
esac
X
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6
X
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:625: checking build system type" >&5
X
build_alias=$build
case "$build_alias" in
NONE)
X  case $nonopt in
X  NONE) build_alias=$host_alias ;;
X  *) build_alias=$nonopt ;;
X  esac ;;
esac
X
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6
X
test "$host_alias" != "$target_alias" &&
X  test "$program_prefix$program_suffix$program_transform_name" = \
X    NONENONEs,x,x, &&
X  program_prefix=${target_alias}-
X
X
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 |
X  case `(ac_space=' '; set | grep ac_space) 2>&1` in
X  *ac_space=\ *)
X    # `set' does not quote correctly, so add quotes (double-quote substitution
X    # turns \\\\ into \\, and sed turns \\ into \).
X    sed -n \
X      -e "s/'/'\\\\''/g" \
X      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
X    ;;
X  *)
X    # `set' quotes correctly as required by POSIX, so do not add quotes.
X    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
X    ;;
X  esac >> confcache
if cmp -s $cache_file confcache; then
X  :
else
X  if test -w $cache_file; then
X    echo "updating cache $cache_file"
X    cat confcache > $cache_file
X  else
X    echo "not updating unwritable cache $cache_file"
X  fi
fi
rm -f confcache
X
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
X
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
X
# 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
X  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi
X
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
X
# 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
X
X
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
X
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
X
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
X  case "\$ac_option" in
X  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
X    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
X    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
X  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
X    echo "$CONFIG_STATUS generated by autoconf version 2.13"
X    exit 0 ;;
X  -help | --help | --hel | --he | --h)
X    echo "\$ac_cs_usage"; exit 0 ;;
X  *) echo "\$ac_cs_usage"; exit 1 ;;
X  esac
done
X
ac_given_srcdir=$srcdir
X
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
X
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
X s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > 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%@CC@%$CC%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g
s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
X
CEOF
EOF
X
cat >> $CONFIG_STATUS <<\EOF
X
# 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
X  if test $ac_beg -gt 1; then
X    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
X  else
X    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
X  fi
X  if test ! -s conftest.s$ac_file; then
X    ac_more_lines=false
X    rm -f conftest.s$ac_file
X  else
X    if test -z "$ac_sed_cmds"; then
X      ac_sed_cmds="sed -f conftest.s$ac_file"
X    else
X      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
X    fi
X    ac_file=`expr $ac_file + 1`
X    ac_beg=$ac_end
X    ac_end=`expr $ac_end + $ac_max_sed_cmds`
X  fi
done
if test -z "$ac_sed_cmds"; then
X  ac_sed_cmds=cat
fi
EOF
X
cat >> $CONFIG_STATUS <<EOF
X
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
X  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
X  case "$ac_file" in
X  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
X       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
X  *) ac_file_in="${ac_file}.in" ;;
X  esac
X
X  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
X
X  # Remove last slash and all that follows it.  Not all systems have dirname.
X  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
X  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
X    # The file is in a subdirectory.
X    test ! -d "$ac_dir" && mkdir "$ac_dir"
X    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
X    # A "../" for each directory in $ac_dir_suffix.
X    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
X  else
X    ac_dir_suffix= ac_dots=
X  fi
X
X  case "$ac_given_srcdir" in
X  .)  srcdir=.
X      if test -z "$ac_dots"; then top_srcdir=.
X      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
X  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
X  *) # Relative path.
X    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
X    top_srcdir="$ac_dots$ac_given_srcdir" ;;
X  esac
X
X
X  echo creating "$ac_file"
X  rm -f "$ac_file"
X  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
X  case "$ac_file" in
X  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
X  *) ac_comsub= ;;
X  esac
X
X  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
X  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*
X
EOF
cat >> $CONFIG_STATUS <<EOF
X
EOF
cat >> $CONFIG_STATUS <<\EOF
X
Xexit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
X
SHAR_EOF
  $shar_touch -am 03071625100 'gdb/testsuite/gdb.java/configure' &&
  chmod 0775 'gdb/testsuite/gdb.java/configure' ||
  $echo 'restore of' 'gdb/testsuite/gdb.java/configure' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'gdb/testsuite/gdb.java/configure:' 'MD5 check failed'
71d98b87de4b3bfcdac6b53fb3340567  gdb/testsuite/gdb.java/configure
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'gdb/testsuite/gdb.java/configure'`"
    test 31186 -eq "$shar_count" ||
    $echo 'gdb/testsuite/gdb.java/configure:' 'original size' '31186,' 'current size' "$shar_count!"
  fi
fi
# ============= gdb/testsuite/gdb.java/Makefile.in ==============
if test -f 'gdb/testsuite/gdb.java/Makefile.in' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'gdb/testsuite/gdb.java/Makefile.in' '(file already exists)'
else
  $echo 'x -' extracting 'gdb/testsuite/gdb.java/Makefile.in' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'gdb/testsuite/gdb.java/Makefile.in' &&
srcdir = @srcdir@
VPATH = @srcdir@
X
all: 
X	@echo "Nothing to be done for all..."
X
#### host, target, and site specific Makefile frags come in here.
X
X.SUFFIXES: .java .class .o .exe .exp .check
X
# Do 'make javamisc.check' to run just the javamisc.exp test.
X
X.exp.check:
X	rootme=`pwd`/; export rootme; \
X	cd .. ; \
X	$(MAKE) just-check RUNTESTFLAGS="${RUNTESTFLAGS} $*.exp" \
X	  EXPECT=${EXPECT}
X
clean mostlyclean:
X	-rm -f *.o ${OBJS}  *.class *.exe *~ core
X
distclean maintainer-clean realclean: clean
X	-rm -f Makefile config.status config.log
X
Makefile: $(srcdir)/Makefile.in $(srcdir)/configure.in
X	$(SHELL) ./config.status --recheck
SHAR_EOF
  $shar_touch -am 03071615100 'gdb/testsuite/gdb.java/Makefile.in' &&
  chmod 0664 'gdb/testsuite/gdb.java/Makefile.in' ||
  $echo 'restore of' 'gdb/testsuite/gdb.java/Makefile.in' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'gdb/testsuite/gdb.java/Makefile.in:' 'MD5 check failed'
6903cabb1bfd36804fed75a99b0be5cc  gdb/testsuite/gdb.java/Makefile.in
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'gdb/testsuite/gdb.java/Makefile.in'`"
    test 635 -eq "$shar_count" ||
    $echo 'gdb/testsuite/gdb.java/Makefile.in:' 'original size' '635,' 'current size' "$shar_count!"
  fi
fi
# ============= gdb/testsuite/gdb.java/configure.in ==============
if test -f 'gdb/testsuite/gdb.java/configure.in' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'gdb/testsuite/gdb.java/configure.in' '(file already exists)'
else
  $echo 'x -' extracting 'gdb/testsuite/gdb.java/configure.in' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'gdb/testsuite/gdb.java/configure.in' &&
dnl Process this file file with autoconf to produce a configure script.
X
AC_PREREQ(2.5)
AC_INIT(javamisc.exp)
X
CC=${CC-cc}
AC_SUBST(CC)
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../../..)
AC_CANONICAL_SYSTEM
X
AC_OUTPUT(Makefile)
SHAR_EOF
  $shar_touch -am 03071624100 'gdb/testsuite/gdb.java/configure.in' &&
  chmod 0664 'gdb/testsuite/gdb.java/configure.in' ||
  $echo 'restore of' 'gdb/testsuite/gdb.java/configure.in' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'gdb/testsuite/gdb.java/configure.in:' 'MD5 check failed'
337897a01cd7ee3ab5e3d1741f172387  gdb/testsuite/gdb.java/configure.in
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'gdb/testsuite/gdb.java/configure.in'`"
    test 222 -eq "$shar_count" ||
    $echo 'gdb/testsuite/gdb.java/configure.in:' 'original size' '222,' 'current size' "$shar_count!"
  fi
fi
# ============= gdb/testsuite/gdb.java/jmisc.exp ==============
if test -f 'gdb/testsuite/gdb.java/jmisc.exp' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'gdb/testsuite/gdb.java/jmisc.exp' '(file already exists)'
else
  $echo 'x -' extracting 'gdb/testsuite/gdb.java/jmisc.exp' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'gdb/testsuite/gdb.java/jmisc.exp' &&
# Copyright (C) 2000 Free Software Foundation, Inc.
X
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
X
# Please email any bugs, comments, and/or additions to this file to:
# bug-gdb@prep.ai.mit.edu
X
# This file was written by Anthony Green. (green@redhat.com)
#
X
if $tracelevel then {
X	strace $tracelevel
}
X
load_lib "java.exp"
X
set testfile "jmisc"
set srcfile ${srcdir}/$subdir/${testfile}.java
set binfile ${objdir}/${subdir}/${testfile}
if  { [compile_java_from_source ${srcfile} ${binfile} "-g"] != "" } {
X    untested "Couldn't compile ${srcfile}"
X    return -1
}
X
# Set the current language to java.  This counts as a test.  If it
# fails, then we skip the other tests.
X
proc set_lang_java {} {
X    global gdb_prompt
X    global binfile objdir subdir
X
X    verbose "loading file '$binfile'"
X    gdb_load $binfile
X
X    send_gdb "set language java\n"
X    gdb_expect {
X	-re ".*$gdb_prompt $" {}
X	timeout { fail "set language java (timeout)" ; return 0 }
X    }
X
X    return [gdb_test "show language" ".* source language is \"java\".*" \
X	"set language to \"java\""]
}
X
set prms_id 0
set bug_id 0
X
# Start with a fresh gdb.
X
gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
X
gdb_test "set print sevenbit-strings" ".*"
X
if ![set_lang_java] then {
X    runto ${testfile}.main
X
X    send_gdb "ptype jmisc\n"   
X    gdb_expect {   
X	-re "type = class jmisc  extends java.lang.Object \{\[\r\n\ \t]+void main\\(java\.lang\.String\\\[]\\);\[\r\n\ \t]+void <init>\\(void\\);\[\r\n\ \t]+\}\[\r\n\ \t]+$gdb_prompt $"               { pass "ptype jmisc" }
X	-re ".*$gdb_prompt $"             { fail "ptype jmisc" }
X	timeout { fail "ptype jmisc (timeout)" ; return }
X    }
X
X    send_gdb "p args\n"
X    gdb_expect {   
X	-re "\\\$1 = java\.lang\.String\\\[]@\[a-f0-9]+\[\r\n\ \t]+$gdb_prompt $"                                        { pass "p args" }
X	-re ".*$gdb_prompt $"             { fail "p args" }
X	timeout { fail "p args (timeout)" ; return }
X    }
X
X    send_gdb "p *args\n"
X    gdb_expect {   
X	-re "\\\$2 = \{length: 0\}\[\r\n\ \t]+$gdb_prompt $"                                                             { pass "p *args" }
X	-re ".*$gdb_prompt $"             { fail "p *args" }
X	timeout { fail "p *args (timeout)" ; return }
X    }
}
SHAR_EOF
  $shar_touch -am 03080153100 'gdb/testsuite/gdb.java/jmisc.exp' &&
  chmod 0664 'gdb/testsuite/gdb.java/jmisc.exp' ||
  $echo 'restore of' 'gdb/testsuite/gdb.java/jmisc.exp' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'gdb/testsuite/gdb.java/jmisc.exp:' 'MD5 check failed'
27a7a634df35ecf13fa6161fb1b076a4  gdb/testsuite/gdb.java/jmisc.exp
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'gdb/testsuite/gdb.java/jmisc.exp'`"
    test 2889 -eq "$shar_count" ||
    $echo 'gdb/testsuite/gdb.java/jmisc.exp:' 'original size' '2889,' 'current size' "$shar_count!"
  fi
fi
# ============= gdb/testsuite/gdb.java/jmisc.java ==============
if test -f 'gdb/testsuite/gdb.java/jmisc.java' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'gdb/testsuite/gdb.java/jmisc.java' '(file already exists)'
else
  $echo 'x -' extracting 'gdb/testsuite/gdb.java/jmisc.java' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'gdb/testsuite/gdb.java/jmisc.java' &&
public class jmisc
{
X  public static void main (String[] args)
X  {
X    return;
X  }
}
SHAR_EOF
  $shar_touch -am 03071710100 'gdb/testsuite/gdb.java/jmisc.java' &&
  chmod 0664 'gdb/testsuite/gdb.java/jmisc.java' ||
  $echo 'restore of' 'gdb/testsuite/gdb.java/jmisc.java' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'gdb/testsuite/gdb.java/jmisc.java:' 'MD5 check failed'
e3a680cfde66129ed9607ad7c20fd6a0  gdb/testsuite/gdb.java/jmisc.java
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'gdb/testsuite/gdb.java/jmisc.java'`"
    test 85 -eq "$shar_count" ||
    $echo 'gdb/testsuite/gdb.java/jmisc.java:' 'original size' '85,' 'current size' "$shar_count!"
  fi
fi
# ============= gdb/testsuite/lib/java.exp ==============
if test ! -d 'gdb/testsuite/lib'; then
  $echo 'x -' 'creating directory' 'gdb/testsuite/lib'
  mkdir 'gdb/testsuite/lib'
fi
if test -f 'gdb/testsuite/lib/java.exp' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'gdb/testsuite/lib/java.exp' '(file already exists)'
else
  $echo 'x -' extracting 'gdb/testsuite/lib/java.exp' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'gdb/testsuite/lib/java.exp' &&
# Copyright (C) 1998, 1999 Red Hat, Inc.
X
load_lib "libgloss.exp"
X
# GCJ_UNDER_TEST is the compiler under test.
X
global tmpdir
X
if ![info exists tmpdir] {
X    set tmpdir "/tmp"
}
X
set java_initialized 0
X
#
# Build the status wrapper library as needed.
#
proc java_init { args } {
X    global wrapper_file;
X    global wrap_compile_flags;
X    global java_initialized
X    global GCJ_UNDER_TEST
X    global TOOL_EXECUTABLE
X    global env
X
X    if { $java_initialized == 1 } { return; }
X
X    if ![info exists GCJ_UNDER_TEST] {
X	if [info exists TOOL_EXECUTABLE] {
X	    set GCJ_UNDER_TEST $TOOL_EXECUTABLE;
X	} else {
X	    if [info exists env(GCJ)] {
X		set GCJ_UNDER_TEST $env(GCJ)
X	    } else {
X		global tool_root_dir
X		
X		if ![is_remote host] {
X		    set file [lookfor_file $tool_root_dir gcj];
X		    if { $file == "" } {
X			set file [lookfor_file $tool_root_dir gcc/gcj];
X		    }
X		    if { $file != "" } {
X			set CC "$file -B[file dirname $file]/ --specs=$tool_root_dir/$target_alias/libjava/libgcj-test.spec";
X		    } else {
X			set CC [transform gcj];
X		    }
X		} else {
X		    set CC [transform gcj]
X		}
X		set GCJ_UNDER_TEST $CC
X	    }
X	}
X    }
X
X    set wrapper_file "";
X    set wrap_compile_flags "";
X    if [target_info exists needs_status_wrapper] {
X	set result [build_wrapper "testglue.o"];
X	if { $result != "" } {
X	    set wrapper_file [lindex $result 0];
X	    set wrap_compile_flags [lindex $result 1];
X	} else {
X	    warning "Status wrapper failed to build."
X	}
X    }
X
X    set java_initialized 1
}
X
#
# Run the test specified by srcfile and resultfile. compile_args and
# exec_args are options telling this proc how to work.
#
proc compile_java_from_source { srcfile binfile compile_args } {
X    global GCJ_UNDER_TEST
X    global runtests
X    global java_initialized
X
X    if { $java_initialized != 1 } { java_init }
X
X    set errname [file rootname [file tail $srcfile]]
X    if {! [runtest_file_p $runtests $errname]} {
X        return
X    }
X
X    set args "compiler=$GCJ_UNDER_TEST"
X    lappend args "additional_flags=--main=[file rootname [file tail $srcfile]]"
X    if { $compile_args != "" } {
X	lappend args "additional_flags=$compile_args"
X    }
X
X    if { $compile_args != "" } {
X	set errname "$errname $compile_args"
X    }
X
X    set x [target_compile $srcfile ${binfile} ${binfile} $args]
X    if { $x != "" } {
X	verbose "target_compile failed: $x" 2
X	return "$errname compilation from source";
X    }
}
X
# Local Variables:
# tcl-indent-level:4
# End:
SHAR_EOF
  $shar_touch -am 03080138100 'gdb/testsuite/lib/java.exp' &&
  chmod 0664 'gdb/testsuite/lib/java.exp' ||
  $echo 'restore of' 'gdb/testsuite/lib/java.exp' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'gdb/testsuite/lib/java.exp:' 'MD5 check failed'
7a925979465f1dbaed26e478d6364dc2  gdb/testsuite/lib/java.exp
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'gdb/testsuite/lib/java.exp'`"
    test 2451 -eq "$shar_count" ||
    $echo 'gdb/testsuite/lib/java.exp:' 'original size' '2451,' 'current size' "$shar_count!"
  fi
fi
rm -fr _sh22239
exit 0

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]