#! /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_help="$ac_help
  --with-cpp              Flag to force compile the C++ clients."
ac_help="$ac_help
  --with-mico=DIR         base path name of mico's installation (default is to
                          search in \$prefix:/usr/local:/usr),
  --without-mico          to disable mico detection"
ac_help="$ac_help
  --with-xerces-c=DIR     base path name of xerces-c's installation (default is
                          to search in \$prefix:/usr/local:/usr),
  --without-xerces-c      to disable xerces-c detection"
ac_help="$ac_help
  --enable-debugging      includes -g in java compilation"
ac_help="$ac_help
  --with-jdk-home=DIR     Where is your JDK root directory."
ac_help="$ac_help
  --with-java-platform=VAL Force the Java platorm
                          (value is 1 for 1.1.x or 2 for 1.2.x or greater)"
ac_help="$ac_help
  --with-java=prog        Java runtime you want to use"
ac_help="$ac_help
  --with-javac=prog       Java compiler you want to use"
ac_help="$ac_help
  --with-javadoc=prog     Java documentation compiler you want to use"
ac_help="$ac_help
  --with-jar=prog         Java Archiver you want to use"
ac_help="$ac_help
  --with-rmic=prog        Java RMI compiler you want to use, if not the one from JDK"
ac_help="$ac_help
  --enable-overview       enables the overview option for javadoc, using the
                          package.html as an overview file."
ac_help="$ac_help
  --with-signature[=alias] sign the JAR archive with the given alias
                          (logged user is default)."
ac_help="$ac_help
  --with-jarsigner=prog    JAR file signer you want to use"

# 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=src/java/org/xmlBlaster/Main.java

# 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



ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 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.

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:592: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if test -f $ac_dir/$ac_prog; then
	  if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS="$ac_save_IFS"

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL="$ac_cv_path_install"
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
  fi
fi
echo "$ac_t""$INSTALL" 1>&6

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
echo "configure:645: checking whether build environment is sane" >&5
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftestfile`
   fi
   if test "$*" != "X $srcdir/configure conftestfile" \
      && test "$*" != "X conftestfile $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" 1>&2; exit 1; }
   fi

   test "$2" = conftestfile
   )
then
   # Ok.
   :
else
   { echo "configure: error: newly created file is older than distributed files!
Check your system clock" 1>&2; exit 1; }
fi
rm -f conftest*
echo "$ac_t""yes" 1>&6
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
else
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF_SED > conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF_SED
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  rm -f conftestsed
fi
test "$program_prefix" != NONE &&
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"

# sed with no file args requires a program.
test "$program_transform_name" = "" && program_transform_name="s,x,x,"

echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:702: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftestmake <<\EOF
all:
	@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  SET_MAKE=
else
  echo "$ac_t""no" 1>&6
  SET_MAKE="MAKE=${MAKE-make}"
fi


PACKAGE=xmlBlaster

VERSION=0.79.b

if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
fi
cat >> confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF

cat >> confdefs.h <<EOF
#define VERSION "$VERSION"
EOF



missing_dir=`cd $ac_aux_dir && pwd`
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
echo "configure:748: checking for working aclocal" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
   ACLOCAL=aclocal
   echo "$ac_t""found" 1>&6
else
   ACLOCAL="$missing_dir/missing aclocal"
   echo "$ac_t""missing" 1>&6
fi

echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
echo "configure:761: checking for working autoconf" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
   AUTOCONF=autoconf
   echo "$ac_t""found" 1>&6
else
   AUTOCONF="$missing_dir/missing autoconf"
   echo "$ac_t""missing" 1>&6
fi

echo $ac_n "checking for working automake""... $ac_c" 1>&6
echo "configure:774: checking for working automake" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (automake --version) < /dev/null > /dev/null 2>&1; then
   AUTOMAKE=automake
   echo "$ac_t""found" 1>&6
else
   AUTOMAKE="$missing_dir/missing automake"
   echo "$ac_t""missing" 1>&6
fi

echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
echo "configure:787: checking for working autoheader" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
   AUTOHEADER=autoheader
   echo "$ac_t""found" 1>&6
else
   AUTOHEADER="$missing_dir/missing autoheader"
   echo "$ac_t""missing" 1>&6
fi

echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
echo "configure:800: checking for working makeinfo" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
   MAKEINFO=makeinfo
   echo "$ac_t""found" 1>&6
else
   MAKEINFO="$missing_dir/missing makeinfo"
   echo "$ac_t""missing" 1>&6
fi




# The things below might be a little bit overkill, but better that than
# failing with no obvious reason...

XMLBLASTER_HOME="`pwd`"


PATH=${XMLBLASTER_HOME}/bin:${PATH}

# Extract the first word of "echo", so it can be a program name with args.
set dummy echo; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:826: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ECHO" in
  /*)
  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ECHO="$ECHO" # 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_ECHO="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
  ;;
esac
fi
ECHO="$ac_cv_path_ECHO"
if test -n "$ECHO"; then
  echo "$ac_t""$ECHO" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "find", so it can be a program name with args.
set dummy find; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:861: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_FIND'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$FIND" in
  /*)
  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_FIND="$FIND" # 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_FIND="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="$PATH"
  ;;
esac
fi
FIND="$ac_cv_path_FIND"
if test -n "$FIND"; then
  echo "$ac_t""$FIND" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "sed", so it can be a program name with args.
set dummy sed; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:896: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$SED" in
  /*)
  ac_cv_path_SED="$SED" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_SED="$SED" # 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_SED="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_SED" && ac_cv_path_SED="$PATH"
  ;;
esac
fi
SED="$ac_cv_path_SED"
if test -n "$SED"; then
  echo "$ac_t""$SED" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:931: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_TEST'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$TEST" in
  /*)
  ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_TEST="$TEST" # 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_TEST="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="$PATH"
  ;;
esac
fi
TEST="$ac_cv_path_TEST"
if test -n "$TEST"; then
  echo "$ac_t""$TEST" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:966: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$RM" in
  /*)
  ac_cv_path_RM="$RM" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_RM="$RM" # 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_RM="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_RM" && ac_cv_path_RM="$PATH"
  ;;
esac
fi
RM="$ac_cv_path_RM"
if test -n "$RM"; then
  echo "$ac_t""$RM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1001: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MKDIR" in
  /*)
  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$PATH"
  ;;
esac
fi
MKDIR="$ac_cv_path_MKDIR"
if test -n "$MKDIR"; then
  echo "$ac_t""$MKDIR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "head", so it can be a program name with args.
set dummy head; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1036: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_HEAD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$HEAD" in
  /*)
  ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_HEAD="$HEAD" # 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_HEAD="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_HEAD" && ac_cv_path_HEAD="$PATH"
  ;;
esac
fi
HEAD="$ac_cv_path_HEAD"
if test -n "$HEAD"; then
  echo "$ac_t""$HEAD" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "tr", so it can be a program name with args.
set dummy tr; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1071: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_TR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$TR" in
  /*)
  ac_cv_path_TR="$TR" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_TR="$TR" # 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_TR="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_TR" && ac_cv_path_TR="$PATH"
  ;;
esac
fi
TR="$ac_cv_path_TR"
if test -n "$TR"; then
  echo "$ac_t""$TR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "grep", so it can be a program name with args.
set dummy grep; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1106: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GREP" in
  /*)
  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_GREP="$GREP" # 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_GREP="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="$PATH"
  ;;
esac
fi
GREP="$ac_cv_path_GREP"
if test -n "$GREP"; then
  echo "$ac_t""$GREP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "cut", so it can be a program name with args.
set dummy cut; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1141: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CUT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CUT" in
  /*)
  ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_CUT="$CUT" # 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_CUT="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_CUT" && ac_cv_path_CUT="$PATH"
  ;;
esac
fi
CUT="$ac_cv_path_CUT"
if test -n "$CUT"; then
  echo "$ac_t""$CUT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "touch", so it can be a program name with args.
set dummy touch; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1176: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$TOUCH" in
  /*)
  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_TOUCH="$TOUCH" # 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_TOUCH="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_TOUCH" && ac_cv_path_TOUCH="$PATH"
  ;;
esac
fi
TOUCH="$ac_cv_path_TOUCH"
if test -n "$TOUCH"; then
  echo "$ac_t""$TOUCH" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "ln", so it can be a program name with args.
set dummy ln; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1211: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$LN" in
  /*)
  ac_cv_path_LN="$LN" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_LN="$LN" # 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_LN="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_LN" && ac_cv_path_LN="$PATH"
  ;;
esac
fi
LN="$ac_cv_path_LN"
if test -n "$LN"; then
  echo "$ac_t""$LN" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "cat", so it can be a program name with args.
set dummy cat; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1246: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CAT" in
  /*)
  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_CAT="$CAT" # 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_CAT="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="$PATH"
  ;;
esac
fi
CAT="$ac_cv_path_CAT"
if test -n "$CAT"; then
  echo "$ac_t""$CAT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
# Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1281: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CP" in
  /*)
  ac_cv_path_CP="$CP" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_CP="$CP" # 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_CP="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_CP" && ac_cv_path_CP="$PATH"
  ;;
esac
fi
CP="$ac_cv_path_CP"
if test -n "$CP"; then
  echo "$ac_t""$CP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
if test -n ${MAKE}; then 
    # Extract the first word of "make", so it can be a program name with args.
set dummy make; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1317: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MAKE" in
  /*)
  ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_MAKE="$MAKE" # 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_MAKE="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="$PATH"
  ;;
esac
fi
MAKE="$ac_cv_path_MAKE"
if test -n "$MAKE"; then
  echo "$ac_t""$MAKE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
fi
# Extract the first word of "chmod", so it can be a program name with args.
set dummy chmod; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1353: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CHMOD" in
  /*)
  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="$PATH"
  ;;
esac
fi
CHMOD="$ac_cv_path_CHMOD"
if test -n "$CHMOD"; then
  echo "$ac_t""$CHMOD" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "idl", so it can be a program name with args.
set dummy idl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1389: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_IDL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$IDL" in
  /*)
  ac_cv_path_IDL="$IDL" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_IDL="$IDL" # 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_IDL="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_IDL" && ac_cv_path_IDL="$PATH"
  ;;
esac
fi
IDL="$ac_cv_path_IDL"
if test -n "$IDL"; then
  echo "$ac_t""$IDL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
IDL="CLASSPATH=${XMLBLASTER_HOME}/lib/idl.jar ${IDL}"


# Check to make sure that we have GNU make
 
    echo $ac_n "checking for GNU make""... $ac_c" 1>&6
echo "configure:1427: checking for GNU make" >&5
if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
   
       ifGNUmake='#' ; 
       _cv_gnu_make_command='' ;
       if ${TEST} -x ${MAKE} ; then
           if ( ${MAKE} --version 2> /dev/null | ${GREP} GNU ) ; then 
               _cv_gnu_make_command=${MAKE} ; 
               ifGNUmake='' ;
           fi
       fi
       if ${TEST} -n "${ifGNUmake}" ; then
          { echo "configure: error: 
Found: ${MAKE}
GNU make is required and was not found. If GNU make is not installed,
please install it. www.gnu.org. If GNU make is installed, please adjust 
your PATH to make sure that GNU make is found before any other version
of make that is installed on your system. rm config.cache and then 
re-run configure again." 1>&2; exit 1; }
       fi
    
fi

echo "$ac_t""$_cv_gnu_make_command" 1>&6 


echo $ac_n "checking C++ option""... $ac_c" 1>&6
echo "configure:1456: checking C++ option" >&5
# Check whether --with-cpp or --without-cpp was given.
if test "${with_cpp+set}" = set; then
  withval="$with_cpp"
  
    cpp="$withval"
    if ${TEST} x$cpp = xyes; then 
        
        for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1469: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
  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_prog_CXX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CXX="$ac_cv_prog_CXX"
if test -n "$CXX"; then
  echo "$ac_t""$CXX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$CXX" && break
done
test -n "$CXX" || CXX="gcc"


echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1501: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5

ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

cat > conftest.$ac_ext << EOF

#line 1512 "configure"
#include "confdefs.h"

int main(){return(0);}
EOF
if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cxx_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cxx_cross=no
  else
    ac_cv_prog_cxx_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cxx_works=no
fi
rm -fr conftest*
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

echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
if test $ac_cv_prog_cxx_works = no; then
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1543: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross

echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
echo "configure:1548: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.C <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gxx=yes
else
  ac_cv_prog_gxx=no
fi
fi

echo "$ac_t""$ac_cv_prog_gxx" 1>&6

if test $ac_cv_prog_gxx = yes; then
  GXX=yes
else
  GXX=
fi

ac_test_CXXFLAGS="${CXXFLAGS+set}"
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
echo "configure:1576: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.cc
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  ac_cv_prog_cxx_g=yes
else
  ac_cv_prog_cxx_g=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS="$ac_save_CXXFLAGS"
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi

        CXXFLAGS="-g ${CXXFLAGS}"
        
        
#
# first parse the argument given in configure.in to AC_PKG_MICO
#
MICO_REQUEST_VERSION=
MICO_URGENCY="optional"



for a in 2.0.0 required         x; do
    case "$a" in
        x) break;;
        [0-9]*.[0-9]*.[0-9]*) MICO_REQUEST_VERSION="$a";;
        optional|required) MICO_URGENCY="$a";;
        *) { echo "configure: error: "argument to the PKG_MICO macro must be one of 'X.X.X' 'required' or 'optional'"" 1>&2; exit 1; };;
    esac
done



echo $ac_n "checking if mico is wanted""... $ac_c" 1>&6
echo "configure:1630: checking if mico is wanted" >&5
# Check whether --with-mico or --without-mico was given.
if test "${with_mico+set}" = set; then
  withval="$with_mico"
  
    #
    # Run this if -with or -without was specified
    #
    case "$withval" in
        yes) MICO_URGENCY=required;;
        no) if test x$MICO_URGENCY = xrequired; then
                { echo "configure: error: "PKG_MICO was configured with the 'required' option. You can not override it from the command line"" 1>&2; exit 1; }
            fi;
            ;;
        *) MICO_URGENCY=required; MICOSETUP="$withval/lib/mico-setup.sh" ;;
    esac

    
fi


echo "$ac_t""$MICO_URGENCY" 1>&6

#
# Now we know if we want mico or not, only go further if
# it's wanted.
#
if test x$MICO_URGENCY = xrequired -o  x$MICO_URGENCY = xoptional; then
    #
    # If not specified by caller, search in standard places
    #
    if test -z "$MICOSETUP" ; then
      # Extract the first word of "mico-setup.sh", so it can be a program name with args.
set dummy mico-setup.sh; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1665: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MICOSETUP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MICOSETUP" in
  /*)
  ac_cv_path_MICOSETUP="$MICOSETUP" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_MICOSETUP="$MICOSETUP" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$prefix/lib:/usr/local/lib:/usr/lib"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_MICOSETUP="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
MICOSETUP="$ac_cv_path_MICOSETUP"
if test -n "$MICOSETUP"; then
  echo "$ac_t""$MICOSETUP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

    fi
    if test -z "$MICOSETUP" ; then
        if test x$MICO_URGENCY = xrequired ; then
            { echo "configure: error: "mico setup file mico-setup.sh not found"" 1>&2; exit 1; }
        else
            echo "$ac_t"""mico setup file mico-setup.sh not found"" 1>&6
        fi
    else
        # source mico-setup.sh
        # Collect mico version number.
        # But be carefull - mico-setup.sh
        # unsets prefix and exec_prefix so save them first
        sh -c ". $MICOSETUP; echo MICOVERSION=\${MICOVERSION}; echo MICOSHAREDDIR=\${MICOSHAREDDIR}; echo MICODIR=\${MICODIR}" > conftest.mico-setup

        eval `cat conftest.mico-setup`

        if test -z "$MICOVERSION" ; then
            { echo "configure: error: "panic: could not read the MICOVERSION variable"" 1>&2; exit 1; };
        fi
        #
        # Check that mico version matches requested version or above
        #
        if test -n "$MICO_REQUEST_VERSION" ; then
                        MICO_MAJOR=`expr $MICOVERSION : '\([0-9]*\)\.[0-9]*\.[0-9]*'`
            MICO_MINOR=`expr $MICOVERSION : '[0-9]*\.\([0-9]*\)\.[0-9]*'`
            MICO_RELEASE=`expr $MICOVERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
            MICO_REQUEST_MAJOR=`expr $MICO_REQUEST_VERSION : '\([0-9]*\)\.[0-9]*\.[0-9]*'`
            MICO_REQUEST_MINOR=`expr $MICO_REQUEST_VERSION : '[0-9]*\.\([0-9]*\)\.[0-9]*'`
            MICO_REQUEST_RELEASE=`expr $MICO_REQUEST_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
            
            echo $ac_n "checking mico version >= $MICO_REQUEST_VERSION""... $ac_c" 1>&6
echo "configure:1728: checking mico version >= $MICO_REQUEST_VERSION" >&5

            version_ok=yes
            for verpair in "$MICO_MAJOR:$MICO_REQUEST_MAJOR" "$MICO_MINOR:$MICO_REQUEST_MINOR" "$MICO_RELEASE:$MICO_REQUEST_RELEASE"; do
                if eval "test `echo $verpair | sed 's,:, -gt ,'`"; then
                    break
                fi
                if eval "test `echo $verpair | sed 's,:, -lt ,'`"; then
                    version_ok=no
                    break
                fi
            done
            if test  x$version_ok = xno; then
                echo "$ac_t""no" 1>&6
                { echo "configure: error: mico version is $MICOVERSION" 1>&2; exit 1; }
            else
                echo "$ac_t""yes" 1>&6
            fi
        fi
        #
        # look for mico-c++ and scan it for a string match
        # to "-I*ministl"
        #
        # Extract the first word of "mico-c++", so it can be a program name with args.
set dummy mico-c++; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1754: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MICO_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MICO_CXX" in
  /*)
  ac_cv_path_MICO_CXX="$MICO_CXX" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_MICO_CXX="$MICO_CXX" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="${MICODIR}/bin:${MICOSHAREDDIR}/bin"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_MICO_CXX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
MICO_CXX="$ac_cv_path_MICO_CXX"
if test -n "$MICO_CXX"; then
  echo "$ac_t""$MICO_CXX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

        if test -z "$MICO_CXX"; then
            { echo "configure: error: "panic: can not locate and scan the mico script mico-c++"" 1>&2; exit 1; }
        fi

        #
        # look for mico idl and scan it for a string match
        #
        # Extract the first word of "idl", so it can be a program name with args.
set dummy idl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1796: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MICO_IDL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MICO_IDL" in
  /*)
  ac_cv_path_MICO_IDL="$MICO_IDL" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_MICO_IDL="$MICO_IDL" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="${MICODIR}/bin:${MICOSHAREDDIR}/bin"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_MICO_IDL="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
MICO_IDL="$ac_cv_path_MICO_IDL"
if test -n "$MICO_IDL"; then
  echo "$ac_t""$MICO_IDL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

        if test -z "$MICO_IDL"; then
            { echo "configure: error: "panic: can not locate and scan the mico idl program+"" 1>&2; exit 1; }
        fi


        echo $ac_n "checking if mico was compiled using ministl""... $ac_c" 1>&6
echo "configure:1834: checking if mico was compiled using ministl" >&5

        if test -z "`grep -e '-I.*ministl' $MICO_CXX`"; then
            MICO_USE_MINISTL=0
            echo "$ac_t""no" 1>&6
        else
            MICO_USE_MINISTL=1
            echo "$ac_t""yes" 1>&6
        fi
        #
        # look for mico-ld and scan it for -l* libraries
        # needed to link with mico
        #
        # Extract the first word of "mico-ld", so it can be a program name with args.
set dummy mico-ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1850: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MICO_LD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MICO_LD" in
  /*)
  ac_cv_path_MICO_LD="$MICO_LD" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_MICO_LD="$MICO_LD" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="${MICODIR}/bin:${MICOSHAREDDIR}/bin"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_MICO_LD="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
MICO_LD="$ac_cv_path_MICO_LD"
if test -n "$MICO_LD"; then
  echo "$ac_t""$MICO_LD" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


        if test -z "$MICO_LD"; then
            { echo "configure: error: "panic: can not locate and scan the mico script mico-ld"" 1>&2; exit 1; }
        fi

        echo $ac_n "checking mico dependencies""... $ac_c" 1>&6
echo "configure:1888: checking mico dependencies" >&5

        micodeps=
        for item in `grep -- -l $MICO_LD | tr '\"' ' '` ; do
            case $item in
                -l*) micodeps="$micodeps $item" ;;
            esac
        done

        if test -z "$micodeps" ;then
            echo "$ac_t""none" 1>&6
        else
            echo "$ac_t""$micodeps" 1>&6
        fi

        echo $ac_n "checking for mico qt library""... $ac_c" 1>&6
echo "configure:1904: checking for mico qt library" >&5
        if test -r ${MICODIR}/lib/libmicoqt${MICOVERSION}.a; then
           MICO_QTLIB="-lmicoqt${MICOVERSION}"
           echo "$ac_t""${MICO_QTLIB}" 1>&6
        else
             echo "$ac_t"""mico qt library not found"" 1>&6
        fi

        echo $ac_n "checking how to link with the mico library""... $ac_c" 1>&6
echo "configure:1913: checking how to link with the mico library" >&5
        MICO_LIB="-L${MICODIR}/lib -lmico${MICOVERSION} $micodeps"
        echo "$ac_t""$MICO_LIB" 1>&6

        echo $ac_n "checking for mico coss library""... $ac_c" 1>&6
echo "configure:1918: checking for mico coss library" >&5
        MICOCOSS_LIB="-L${MICODIR}/lib -lmicocoss${MICOVERSION} $micodeps"
        echo "$ac_t""$MICOCOSS_LIB" 1>&6

        echo $ac_n "checking how to link with the mico and micoqt library""... $ac_c" 1>&6
echo "configure:1923: checking how to link with the mico and micoqt library" >&5
        MICO_QTLIB="-L${MICODIR}/lib -lmico${MICOVERSION} ${MICO_QTLIB} $micodeps"
        echo "$ac_t""$MICO_QTLIB" 1>&6

        MICO_INCLUDE="-I${MICOSHAREDDIR}/include"
        
        MICO_CFLAGS="${MICO_INCLUDE} -DMICO"

        
        
        
        
        
        
        
        
        
    fi
fi

        
#
# first parse the argument given in configure.in to AC_PKG_XERCESC
#
XERCESC_REQUEST_VERSION=
XERCESC_URGENCY="optional"



for a in 1.0.0 required         x; do
    case "$a" in
        x) break;;
        [0-9]*.[0-9]*.[0-9]*) XERCESC_REQUEST_VERSION="$a";;
        optional|required) XERCESC_URGENCY="$a";;
        *) { echo "configure: error: "argument to the PKG_XERCESC macro must be one of 'X.X.X' 'required' or 'optional'"" 1>&2; exit 1; };;
    esac
done



echo $ac_n "checking if xerces-c is wanted""... $ac_c" 1>&6
echo "configure:1964: checking if xerces-c is wanted" >&5
# Check whether --with-xerces-c or --without-xerces-c was given.
if test "${with_xerces_c+set}" = set; then
  withval="$with_xerces_c"
  
    #
    # Run this if -with or -without was specified
    #
    case "$withval" in
        yes) XERCESC_URGENCY=required;;
        no) if test x$XERCESC_URGENCY = xrequired; then
                { echo "configure: error: "PKG_XERCESC was configured with the 'required' option. You can not override it from the command line"" 1>&2; exit 1; }
            fi;
            ;;
        *) XERCESC_URGENCY=required; XERCESCDIR="$withval"; XERCESC_DEF="$withval/util/XercesDefs.hpp" ;;
    esac

    
fi


echo "$ac_t""$XERCESC_URGENCY" 1>&6

#
# Now we know if we want xerces-c or not, only go further if
# it's wanted.
#
if test x$XERCESC_URGENCY = xrequired -o  x$XERCESC_URGENCY = xoptional; then
    #
    # If not specified by caller, search in standard places
    #
    if test -z "$XERCESC_DEF" ; then
      # Extract the first word of "XercesDefs.hpp", so it can be a program name with args.
set dummy XercesDefs.hpp; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1999: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XERCESC_DEF'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$XERCESC_DEF" in
  /*)
  ac_cv_path_XERCESC_DEF="$XERCESC_DEF" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_XERCESC_DEF="$XERCESC_DEF" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$prefix/util:/usr/local/util:/usr/util"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_XERCESC_DEF="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
XERCESC_DEF="$ac_cv_path_XERCESC_DEF"
if test -n "$XERCESC_DEF"; then
  echo "$ac_t""$XERCESC_DEF" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

      #
      # try to figure out the full path now.
      #
      XERCESCDIR="`echo \"$XERCESC_DEF\" | sed 's/\/util\/XercesDefs.hpp//'`"
      echo "$ac_t"""xerces-c dir is $XERCESCDIR" " 1>&6     
    else
      #
      # This is just to print out what we are doing
      # It does not actually do anything
      #
      echo $ac_n "checking for XercesDefs.hpp""... $ac_c" 1>&6
echo "configure:2042: checking for XercesDefs.hpp" >&5
      echo "$ac_t""$XERCESC_DEF" 1>&6
    fi
    
    if test -z "$XERCESC_DEF" || ! test -f "$XERCESC_DEF"; then
        if test x$XERCESC_URGENCY = xrequired ; then
            { echo "configure: error: xerces-c defs file XercesDefs.hpp not found,
use option --with-xerces-c=DIR if it is installed on your system.
If it is not installed on you system, then you can download it 
from http://xml.apache.org" 1>&2; exit 1; }
        else
            echo "$ac_t"""xerces-c defs file XercesDefs.hpp not found"" 1>&6
        fi
    else
                XERCESCVERSION="`grep gXercesFullVersionStr $XERCESC_DEF | sed 's/^.*\"\([0-9][_0-9]*\).*$/\1/' | sed 's/_/./g'`"
                echo "$ac_t"""Xerces-c Version is $XERCESCVERSION" " 1>&6
        
        if test -z "$XERCESCVERSION" ; then
            { echo "configure: error: "panic: could not read the XERCESCVERSION variable"" 1>&2; exit 1; };
        fi
        #
        # Check that xerces-c version matches requested version or above
        #
        if test -n "$XERCESC_REQUEST_VERSION" ; then
                        XERCESC_MAJOR=`expr $XERCESCVERSION : '\([0-9]*\)\.[0-9]*\.[0-9]*'`
            XERCESC_MINOR=`expr $XERCESCVERSION : '[0-9]*\.\([0-9]*\)\.[0-9]*'`
            XERCESC_RELEASE=`expr $XERCESCVERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
            XERCESC_REQUEST_MAJOR=`expr $XERCESC_REQUEST_VERSION : '\([0-9]*\)\.[0-9]*\.[0-9]*'`
            XERCESC_REQUEST_MINOR=`expr $XERCESC_REQUEST_VERSION : '[0-9]*\.\([0-9]*\)\.[0-9]*'`
            XERCESC_REQUEST_RELEASE=`expr $XERCESC_REQUEST_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
            
            echo $ac_n "checking xerces-c version >= $XERCESC_REQUEST_VERSION""... $ac_c" 1>&6
echo "configure:2074: checking xerces-c version >= $XERCESC_REQUEST_VERSION" >&5

            version_ok=yes
            for verpair in "$XERCESC_MAJOR:$XERCESC_REQUEST_MAJOR" "$XERCESC_MINOR:$XERCESC_REQUEST_MINOR" "$XERCESC_RELEASE:$XERCESC_REQUEST_RELEASE"; do
                if eval "test `echo $verpair | sed 's,:, -gt ,'`"; then
                    break
                fi
                if eval "test `echo $verpair | sed 's,:, -lt ,'`"; then
                    version_ok=no
                    break
                fi
            done
            if test  x$version_ok = xno; then
                echo "$ac_t""no" 1>&6
                { echo "configure: error: xerces-c version is $XERCESCVERSION" 1>&2; exit 1; }
            else
                echo "$ac_t""yes" 1>&6
            fi
        fi

        echo $ac_n "checking how to link with the xerces-c library""... $ac_c" 1>&6
echo "configure:2095: checking how to link with the xerces-c library" >&5

                XERCESC_DLL_VERSION="`grep Xerces_DLLVersionStr $XERCESC_DEF | sed 's/^.*\"\([0-9][_0-9]*\).*$/\1/'`"
                if test ! -f "${XERCESCDIR}/lib/libxerces-c${XERCESC_DLL_VERSION}.so"; then
            { echo "configure: error: xerces-c library libxerces-c${XERCESC_DLL_VERSION}.so not found" 1>&2; exit 1; }
        fi
        
        XERCESC_LIB="-L${XERCESCDIR}/lib -lxerces-c${XERCESC_DLL_VERSION} -lpthread"
        echo "$ac_t""$XERCESC_LIB" 1>&6
        
        XERCESC_INCLUDE="-I$XERCESCDIR"
        
        
        
        
        
    fi
fi

    fi

else
  
    cpp="no"


fi

echo "$ac_t""$cpp" 1>&6


if test x$cpp = xyes; then
  USE_CPP_TRUE=
  USE_CPP_FALSE='#'
else
  USE_CPP_TRUE='#'
  USE_CPP_FALSE=
fi


# allow use of -g in java compilation
# Check whether --enable-debugging or --disable-debugging was given.
if test "${enable_debugging+set}" = set; then
  enableval="$enable_debugging"
  
    case "${enableval}" in
        y | yes) debugging=true ;;
        n | no) debugging=false ;;
        *) { echo "configure: error: bad value ${enableval} for --enable-debugging" 1>&2; exit 1; } ;;
    esac

else
  
    debugging=true

fi

if ${TEST} "${debugging}" = "true" ; then
    JAVACX_OPT="-g -deprecation"
    TURBO='false'
fi




if ${TEST} "${debugging}" = "true"; then
  DEBUGGING_TRUE=
  DEBUGGING_FALSE='#'
else
  DEBUGGING_TRUE='#'
  DEBUGGING_FALSE=
fi

TARGET_CLASSPATH="`cd ${srcdir} && pwd`/src/java"



    echo $ac_n "checking for JDK location (please wait)""... $ac_c" 1>&6
echo "configure:2173: checking for JDK location (please wait)" >&5

    
        
    JAVA_PLATFORM="1"

    # Check whether --with-jdk-home or --without-jdk-home was given.
if test "${with_jdk_home+set}" = set; then
  withval="$with_jdk_home"
  

        # This stuff works if the command line parameter --with-jdk-home was
        # specified, so it takes priority rightfully.

	JDK_HOME=${withval}

	if ${TEST} ! -d "${JDK_HOME}" ; then
	    { echo "configure: error: Not a directory: ${JDK_HOME}" 1>&2; exit 1; }
	fi

	echo "$ac_t""${JDK_HOME}" 1>&6

    
else
  
        # This works if the parameter was NOT specified, so it's a good time
        # to see what the enviroment says.

        # Since Sun uses JAVA_HOME a lot, we check it first and ignore the
        # JDK_HOME, otherwise just use whatever JDK_HOME was specified.

        if ${TEST} -n "${JAVA_HOME}" ; then

            JDK_HOME=${JAVA_HOME}
        fi
    
fi


    if ${TEST} -z "${JDK_HOME}" ; then

        # Oh well, nobody set neither JAVA_HOME nor JDK_HOME, have to guess

        # The following code is based on the code submitted by Henner Zeller
        # for ${srcdir}/src/scripts/package/rpm/ApacheJServ.spec

        # Two variables will be set as a result:
        #
        # JDK_HOME
        # JAVA_PLATFORM


        for JDK_PREFIX in \
    	    /usr/local \
    	    /usr/local/lib \
    	    /usr \
    	    /usr/lib \
            /opt  \
    	    /
        do
            for JAVA_PLATFORM in 3 2 1 ;
            do

                for subversion in .9 .8 .7 .6 .5 .4 .3 .2 .1 "" ;
                do
                    for VARIANT in java java- jdk jdk-;
                    do
                        GUESS="${JDK_PREFIX}/${VARIANT}1.${JAVA_PLATFORM}${subversion}"

                        if ${TEST} -d "${GUESS}/bin" \
                        && ${TEST} -d "${GUESS}/include" ; then

                            JDK_HOME="${GUESS}"
                            echo "$ac_t""${GUESS}" 1>&6
                            break
                        fi

                    done

                    if ${TEST} -n "${JDK_HOME}" ; then
                        break;
                    fi

                done

                if ${TEST} -n "${JDK_HOME}" ; then
                    break;
                fi

            done

            if ${TEST} -n "${JDK_HOME}" ; then
                break;
            fi

        done

        if ${TEST} -n "${JDK_HOME}" ; then

            
            echo $ac_n "checking Java platform""... $ac_c" 1>&6
echo "configure:2274: checking Java platform" >&5
            echo "$ac_t""guess ${JAVA_PLATFORM}" 1>&6
        fi

    else

        echo $ac_n "checking Java platform""... $ac_c" 1>&6
echo "configure:2281: checking Java platform" >&5

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


        echo "$ac_t""forced Java ${JAVA_PLATFORM}" 1>&6

    fi

if ${TEST} -z "${JDK_HOME}" ; then

    { echo "configure: error: JDK home not found, please specify one with --with-jdk-home option (run ./configure --help for more options)" 1>&2; exit 1; }
fi





# Extract the first word of "false", so it can be a program name with args.
set dummy false; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2309: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_FALSE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$FALSE" in
  /*)
  ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_FALSE="$FALSE" # 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_FALSE="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="$PATH"
  ;;
esac
fi
FALSE="$ac_cv_path_FALSE"
if test -n "$FALSE"; then
  echo "$ac_t""$FALSE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi



    
    
    echo $ac_n "checking java""... $ac_c" 1>&6
echo "configure:2347: checking java" >&5

    # Check whether --with-java or --without-java was given.
if test "${with_java+set}" = set; then
  withval="$with_java"
  
        if ${TEST} "$withval" = "yes" || ${TEST} "$withval" = "no" ; then
            { echo "configure: error: You must specify the java binary as the parameter for --with-java" 1>&2; exit 1; }
        fi

        if ${TEST} ! -x "$withval" ; then
            { echo "configure: error: Bad value for --with-java: $withval" 1>&2; exit 1; }
        fi
        JAVA="${withval}"

        if ${TEST} -n "`${ECHO} ${withval}|${GREP} -i /jikes`" ; then
            JIKES="true"
        else
            JIKES="false"
        fi

    
else
  
        JAVA="${JDK_HOME}/bin/java"
        if ${TEST} ! -x "${JAVA}" ; then
            if ${TEST} -n "" ; then
                echo "configure: warning: " 1>&2
                JAVA=${FALSE}
            else
                { echo "configure: error: java binary not found in ${JDK_HOME}" 1>&2; exit 1; }
            fi
        fi
    
fi


    echo "$ac_t""${JAVA}" 1>&6
    

    

        

    OPTION=JAVA
    OPTION="${OPTION}_OPT"

    if ${TEST} "${JAVA_PLATFORM}" = "2" && ${TEST} "${JIKES}" = "false" ; then
    	JAVAX="${JAVA} \${$OPTION} -classpath \${TARGET_CLASSPATH}"
    else
        if ${TEST} -z "${TCSETA}" && ${TEST} -r "${JDK_HOME}/lib/classes.zip" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/lib/classes.zip"
            TCSETA="true"
        fi

                
        if ${TEST} -z "${TCSETB}" && ${TEST} -r "${JDK_HOME}/jre/lib/rt.jar" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/jre/lib/rt.jar"
            TCSETB="true"
        fi

        JAVAX="CLASSPATH=\${CLASSPATH}:\${TARGET_CLASSPATH} ${JAVA} \${$OPTION}"
    fi

    




    
    
    echo $ac_n "checking javac""... $ac_c" 1>&6
echo "configure:2419: checking javac" >&5

    # Check whether --with-javac or --without-javac was given.
if test "${with_javac+set}" = set; then
  withval="$with_javac"
  
        if ${TEST} "$withval" = "yes" || ${TEST} "$withval" = "no" ; then
            { echo "configure: error: You must specify the javac binary as the parameter for --with-javac" 1>&2; exit 1; }
        fi

        if ${TEST} ! -x "$withval" ; then
            { echo "configure: error: Bad value for --with-javac: $withval" 1>&2; exit 1; }
        fi
        JAVAC="${withval}"

        if ${TEST} -n "`${ECHO} ${withval}|${GREP} -i /jikes`" ; then
            JIKES="true"
        else
            JIKES="false"
        fi

    
else
  
        JAVAC="${JDK_HOME}/bin/javac"
        if ${TEST} ! -x "${JAVAC}" ; then
            if ${TEST} -n "" ; then
                echo "configure: warning: " 1>&2
                JAVAC=${FALSE}
            else
                { echo "configure: error: javac binary not found in ${JDK_HOME}" 1>&2; exit 1; }
            fi
        fi
    
fi


    echo "$ac_t""${JAVAC}" 1>&6
    

    

        

    OPTION=JAVAC
    OPTION="${OPTION}_OPT"

    if ${TEST} "${JAVA_PLATFORM}" = "2" && ${TEST} "${JIKES}" = "false" ; then
    	JAVACX="${JAVAC} \${$OPTION} -classpath \${TARGET_CLASSPATH}"
    else
        if ${TEST} -z "${TCSETA}" && ${TEST} -r "${JDK_HOME}/lib/classes.zip" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/lib/classes.zip"
            TCSETA="true"
        fi

                
        if ${TEST} -z "${TCSETB}" && ${TEST} -r "${JDK_HOME}/jre/lib/rt.jar" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/jre/lib/rt.jar"
            TCSETB="true"
        fi

        JAVACX="CLASSPATH=\${CLASSPATH}:\${TARGET_CLASSPATH} ${JAVAC} \${$OPTION}"
    fi

    




    
    
    echo $ac_n "checking javadoc""... $ac_c" 1>&6
echo "configure:2491: checking javadoc" >&5

    # Check whether --with-javadoc or --without-javadoc was given.
if test "${with_javadoc+set}" = set; then
  withval="$with_javadoc"
  
        if ${TEST} "$withval" = "yes" || ${TEST} "$withval" = "no" ; then
            { echo "configure: error: You must specify the javadoc binary as the parameter for --with-javadoc" 1>&2; exit 1; }
        fi

        if ${TEST} ! -x "$withval" ; then
            { echo "configure: error: Bad value for --with-javadoc: $withval" 1>&2; exit 1; }
        fi
        JAVADOC="${withval}"

        if ${TEST} -n "`${ECHO} ${withval}|${GREP} -i /jikes`" ; then
            JIKES="true"
        else
            JIKES="false"
        fi

    
else
  
        JAVADOC="${JDK_HOME}/bin/javadoc"
        if ${TEST} ! -x "${JAVADOC}" ; then
            if ${TEST} -n "You will not be able to create the Javadoc documentation" ; then
                echo "configure: warning: You will not be able to create the Javadoc documentation" 1>&2
                JAVADOC=${FALSE}
            else
                { echo "configure: error: javadoc binary not found in ${JDK_HOME}" 1>&2; exit 1; }
            fi
        fi
    
fi


    echo "$ac_t""${JAVADOC}" 1>&6
    

    

        

    OPTION=JAVADOC
    OPTION="${OPTION}_OPT"

    if ${TEST} "${JAVA_PLATFORM}" = "2" && ${TEST} "${JIKES}" = "false" ; then
    	JAVADOCX="${JAVADOC} \${$OPTION} -classpath \${TARGET_CLASSPATH}"
    else
        if ${TEST} -z "${TCSETA}" && ${TEST} -r "${JDK_HOME}/lib/classes.zip" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/lib/classes.zip"
            TCSETA="true"
        fi

                
        if ${TEST} -z "${TCSETB}" && ${TEST} -r "${JDK_HOME}/jre/lib/rt.jar" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/jre/lib/rt.jar"
            TCSETB="true"
        fi

        JAVADOCX="CLASSPATH=\${CLASSPATH}:\${TARGET_CLASSPATH} ${JAVADOC} \${$OPTION}"
    fi

    




    
    
    echo $ac_n "checking jar""... $ac_c" 1>&6
echo "configure:2563: checking jar" >&5

    # Check whether --with-jar or --without-jar was given.
if test "${with_jar+set}" = set; then
  withval="$with_jar"
  
        if ${TEST} "$withval" = "yes" || ${TEST} "$withval" = "no" ; then
            { echo "configure: error: You must specify the jar binary as the parameter for --with-jar" 1>&2; exit 1; }
        fi

        if ${TEST} ! -x "$withval" ; then
            { echo "configure: error: Bad value for --with-jar: $withval" 1>&2; exit 1; }
        fi
        JAR="${withval}"

        if ${TEST} -n "`${ECHO} ${withval}|${GREP} -i /jikes`" ; then
            JIKES="true"
        else
            JIKES="false"
        fi

    
else
  
        JAR="${JDK_HOME}/bin/jar"
        if ${TEST} ! -x "${JAR}" ; then
            if ${TEST} -n "" ; then
                echo "configure: warning: " 1>&2
                JAR=${FALSE}
            else
                { echo "configure: error: jar binary not found in ${JDK_HOME}" 1>&2; exit 1; }
            fi
        fi
    
fi


    echo "$ac_t""${JAR}" 1>&6
    

    

        

    OPTION=JAR
    OPTION="${OPTION}_OPT"

    if ${TEST} "${JAVA_PLATFORM}" = "2" && ${TEST} "${JIKES}" = "false" ; then
    	JARX="${JAR} \${$OPTION} -classpath \${TARGET_CLASSPATH}"
    else
        if ${TEST} -z "${TCSETA}" && ${TEST} -r "${JDK_HOME}/lib/classes.zip" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/lib/classes.zip"
            TCSETA="true"
        fi

                
        if ${TEST} -z "${TCSETB}" && ${TEST} -r "${JDK_HOME}/jre/lib/rt.jar" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/jre/lib/rt.jar"
            TCSETB="true"
        fi

        JARX="CLASSPATH=\${CLASSPATH}:\${TARGET_CLASSPATH} ${JAR} \${$OPTION}"
    fi

    




    
    
    echo $ac_n "checking rmic binary""... $ac_c" 1>&6
echo "configure:2635: checking rmic binary" >&5

    # Check whether --with-rmic or --without-rmic was given.
if test "${with_rmic+set}" = set; then
  withval="$with_rmic"
  
        if ${TEST} "$withval" = "yes" || ${TEST} "$withval" = "no" ; then
            { echo "configure: error: You must specify the rmic binary as the parameter for --with-rmic" 1>&2; exit 1; }
        fi

        if ${TEST} ! -x "$withval" ; then
            { echo "configure: error: Bad value for --with-rmic: $withval" 1>&2; exit 1; }
        fi
    
else
  
        RMIC="${JDK_HOME}/bin/rmic"
        if ${TEST} ! -x "${RMIC}" ; then
            { echo "configure: error: rmic binary not found in ${JDK_HOME}" 1>&2; exit 1; }
        fi
    
fi


    echo "$ac_t""${RMIC}" 1>&6
    
    

    if ${TEST} "${JAVA_PLATFORM}" = "2" ; then
    	RMICX="${RMIC} -classpath \${TARGET_CLASSPATH}:${JDK_HOME}/jre/lib/rt.jar"
    else
    	RMICX="CLASSPATH=\${CLASSPATH}:\${TARGET_CLASSPATH}:${JDK_HOME}/lib/classes.zip ${RMIC}"
    fi

    



# VT: Make all the alterations to the classpath here

    if ${TEST} -n "${JSDK_CLASSES}" ; then
        TARGET_CLASSPATH="${TARGET_CLASSPATH}:${JSDK_CLASSES}"
    fi


# Check whether --enable-overview or --disable-overview was given.
if test "${enable_overview+set}" = set; then
  enableval="$enable_overview"
  
echo $ac_n "checking overview""... $ac_c" 1>&6
echo "configure:2685: checking overview" >&5

case "${enableval}" in
    y | yes)
        if ${TEST} "${JAVA_PLATFORM}" != "2" ; then
            echo "$ac_t""Overview enabled with non-1.2 JVM - expect problems making javadoc" 1>&6
        else
            echo "$ac_t""enabled" 1>&6
            OVERVIEW="-overview package.html"
        fi
        ;;
    n | no)
        echo "$ac_t""disabled" 1>&6 
        OVERVIEW=""
        ;;
esac


else
  
echo $ac_n "checking overview""... $ac_c" 1>&6
echo "configure:2706: checking overview" >&5

if ${TEST} "${JAVA_PLATFORM}" = "2" ; then
    echo "$ac_t""enabled" 1>&6
    OVERVIEW="-overview package.html"
else
    echo "$ac_t""disabled" 1>&6
    OVERVIEW=""
fi


fi



# Check whether --with-signature or --without-signature was given.
if test "${with_signature+set}" = set; then
  withval="$with_signature"
  

if ${TEST} "${JAVA_PLATFORM}" != "2" ; then 
    { echo "configure: error: --with-signature is not supported with JDK other than 1.2" 1>&2; exit 1; }
fi


    
    
    echo $ac_n "checking jarsigner""... $ac_c" 1>&6
echo "configure:2734: checking jarsigner" >&5

    # Check whether --with-jarsigner or --without-jarsigner was given.
if test "${with_jarsigner+set}" = set; then
  withval="$with_jarsigner"
  
        if ${TEST} "$withval" = "yes" || ${TEST} "$withval" = "no" ; then
            { echo "configure: error: You must specify the jarsigner binary as the parameter for --with-jarsigner" 1>&2; exit 1; }
        fi

        if ${TEST} ! -x "$withval" ; then
            { echo "configure: error: Bad value for --with-jarsigner: $withval" 1>&2; exit 1; }
        fi
        JARSIGNER="${withval}"

        if ${TEST} -n "`${ECHO} ${withval}|${GREP} -i /jikes`" ; then
            JIKES="true"
        else
            JIKES="false"
        fi

    
else
  
        JARSIGNER="${JDK_HOME}/bin/jarsigner"
        if ${TEST} ! -x "${JARSIGNER}" ; then
            if ${TEST} -n "" ; then
                echo "configure: warning: " 1>&2
                JARSIGNER=${FALSE}
            else
                { echo "configure: error: jarsigner binary not found in ${JDK_HOME}" 1>&2; exit 1; }
            fi
        fi
    
fi


    echo "$ac_t""${JARSIGNER}" 1>&6
    

    

        

    OPTION=JARSIGNER
    OPTION="${OPTION}_OPT"

    if ${TEST} "${JAVA_PLATFORM}" = "2" && ${TEST} "${JIKES}" = "false" ; then
    	JARSIGNERX="${JARSIGNER} \${$OPTION} -classpath \${TARGET_CLASSPATH}"
    else
        if ${TEST} -z "${TCSETA}" && ${TEST} -r "${JDK_HOME}/lib/classes.zip" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/lib/classes.zip"
            TCSETA="true"
        fi

                
        if ${TEST} -z "${TCSETB}" && ${TEST} -r "${JDK_HOME}/jre/lib/rt.jar" ; then
            TARGET_CLASSPATH="$TARGET_CLASSPATH:${JDK_HOME}/jre/lib/rt.jar"
            TCSETB="true"
        fi

        JARSIGNERX="CLASSPATH=\${CLASSPATH}:\${TARGET_CLASSPATH} ${JARSIGNER} \${$OPTION}"
    fi

    


echo $ac_n "checking signer identity""... $ac_c" 1>&6
echo "configure:2802: checking signer identity" >&5

case "$withval" in

    YES | yes | TRUE | true )
        JAR_SIGNER=`whoami`
        echo "$ac_t""${JAR_SIGNER} (default)" 1>&6
        ;;

    *)
        JAR_SIGNER=$withval
        echo "$ac_t""$withval" 1>&6
        ;;
esac



fi


CLASSPATH=${JAVA_HOME}/lib:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/classes:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/src/java:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/demo:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/parser.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/jaxp.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/jaas.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/jta-spec1_0_1.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/ejb2.0.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/jms.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/xtdash.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/omquery.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/servlet.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/connector.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/test.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/xmlBlaster.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/jacorb.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/idl.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/gnu-regexp-1.0.8.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/xmlrpc.jar:${CLASSPATH}
CLASSPATH=${XMLBLASTER_HOME}/lib/xmlBlaster.jar:${CLASSPATH}



CLASS_DIR='${XMLBLASTER_HOME}/classes'


JAVA_FLAGS='-d ${CLASS_DIR}'



XMLBLASTER_CLASSES=${LIBEXECDIR}/${PACKAGE}.jar





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 <<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.

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
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "Makefile \
          src/Makefile \
          src/c++/Makefile \
          src/c++/generated/Makefile \
          src/c++/util/Makefile \
          src/c++/client/Makefile \
          src/java/Makefile \
          src/java/org/Makefile \
          src/java/org/xmlBlaster/Makefile \
          src/java/org/xmlBlaster/j2ee/Makefile \
          src/java/org/xmlBlaster/j2ee/k2/Makefile \
          src/java/org/xmlBlaster/j2ee/k2/client/Makefile \
          src/java/org/xmlBlaster/util/Makefile \
          src/java/org/xmlBlaster/util/cpp/Makefile \
          src/java/org/xmlBlaster/util/servlet/Makefile \
          src/java/org/xmlBlaster/util/protocol/Makefile \
          src/java/org/xmlBlaster/protocol/Makefile \
          src/java/org/xmlBlaster/protocol/rmi/Makefile \
          src/java/org/xmlBlaster/protocol/http/Makefile \
          src/java/org/xmlBlaster/protocol/http/javascript/Makefile \
          src/java/org/xmlBlaster/protocol/http/persistentWindow/Makefile \
          src/java/org/xmlBlaster/protocol/jdbc/Makefile \
          src/java/org/xmlBlaster/protocol/corba/Makefile \
          src/java/org/xmlBlaster/protocol/corba/serverIdl/Makefile \
          src/java/org/xmlBlaster/protocol/corba/clientIdl/Makefile \
          src/java/org/xmlBlaster/protocol/corba/authenticateIdl/Makefile \
          src/java/org/xmlBlaster/protocol/email/Makefile \
          src/java/org/xmlBlaster/protocol/xmlrpc/Makefile \
          src/java/org/xmlBlaster/protocol/nativ/Makefile \
          src/java/org/xmlBlaster/client/Makefile \
          src/java/org/xmlBlaster/client/protocol/Makefile \
          src/java/org/xmlBlaster/client/protocol/rmi/Makefile \
          src/java/org/xmlBlaster/client/protocol/corba/Makefile \
          src/java/org/xmlBlaster/client/protocol/xmlrpc/Makefile \
          src/java/org/xmlBlaster/client/reader/Makefile \
          src/java/org/xmlBlaster/client/feeder/Makefile \
          src/java/org/xmlBlaster/engine/Makefile \
          src/java/org/xmlBlaster/engine/xml2java/Makefile \
          src/java/org/xmlBlaster/engine/helper/Makefile \
          src/java/org/xmlBlaster/engine/persistence/Makefile \
          src/java/org/xmlBlaster/engine/persistence/mudb/Makefile \
          src/java/org/xmlBlaster/engine/persistence/mudb/dom/Makefile \
          src/java/org/xmlBlaster/engine/persistence/mudb/file/Makefile \
          src/java/org/xmlBlaster/engine/persistence/mudb/cache/Makefile \
          src/java/org/xmlBlaster/engine/persistence/filestore/Makefile \
          src/java/org/xmlBlaster/engine/callback/Makefile \
          src/java/org/xmlBlaster/authentication/Makefile \
          src/java/org/jutils/Makefile \
          src/java/org/jutils/collection/Makefile \
          src/java/org/jutils/collection/validators/Makefile \
          src/java/org/jutils/debugging/Makefile \
          src/java/org/jutils/init/Makefile \
          src/java/org/jutils/io/Makefile \
          src/java/org/jutils/jdbc/Makefile \
          src/java/org/jutils/log/Makefile \
          src/java/org/jutils/media/Makefile \
          src/java/org/jutils/net/Makefile \
          src/java/org/jutils/pool/Makefile \
          src/java/org/jutils/runtime/Makefile \
          src/java/org/jutils/servlet/Makefile \
          src/java/org/jutils/text/Makefile \
          src/java/org/jutils/time/Makefile \
          src/java/org/jutils/xml/Makefile \
          demo/Makefile \
          demo/javaclients/Makefile \
          demo/javaclients/jsp/Makefile \
          demo/javaclients/rmi/Makefile \
          demo/javaclients/chat/Makefile \
          demo/javaclients/j2ee/Makefile \
          demo/javaclients/j2ee/k2/Makefile \
          demo/javaclients/jdbc/Makefile \
          demo/javaclients/corba/Makefile \
          demo/javaclients/HelloWorldApplet/Makefile \
          demo/javaclients/xmlrpc/Makefile \
          testsuite/org/xmlBlaster/query/Makefile \
          testsuite/org/xmlBlaster/Makefile \
          testsuite/org/Makefile \
          testsuite/Makefile \
          testsuite/c++/Makefile
" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 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%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
s%@ACLOCAL@%$ACLOCAL%g
s%@AUTOCONF@%$AUTOCONF%g
s%@AUTOMAKE@%$AUTOMAKE%g
s%@AUTOHEADER@%$AUTOHEADER%g
s%@MAKEINFO@%$MAKEINFO%g
s%@SET_MAKE@%$SET_MAKE%g
s%@XMLBLASTER_HOME@%$XMLBLASTER_HOME%g
s%@ECHO@%$ECHO%g
s%@FIND@%$FIND%g
s%@SED@%$SED%g
s%@TEST@%$TEST%g
s%@RM@%$RM%g
s%@MKDIR@%$MKDIR%g
s%@HEAD@%$HEAD%g
s%@TR@%$TR%g
s%@GREP@%$GREP%g
s%@CUT@%$CUT%g
s%@TOUCH@%$TOUCH%g
s%@LN@%$LN%g
s%@CAT@%$CAT%g
s%@CP@%$CP%g
s%@MAKE@%$MAKE%g
s%@CHMOD@%$CHMOD%g
s%@IDL@%$IDL%g
s%@USE_CPP@%$USE_CPP%g
s%@CXX@%$CXX%g
s%@MICOSETUP@%$MICOSETUP%g
s%@MICO_CXX@%$MICO_CXX%g
s%@MICO_IDL@%$MICO_IDL%g
s%@MICO_LD@%$MICO_LD%g
s%@MICODIR@%$MICODIR%g
s%@MICOVERSION@%$MICOVERSION%g
s%@MICOSHAREDDIR@%$MICOSHAREDDIR%g
s%@MICO_INCLUDE@%$MICO_INCLUDE%g
s%@MICO_CFLAGS@%$MICO_CFLAGS%g
s%@MICO_LIB@%$MICO_LIB%g
s%@MICOCOSS_LIB@%$MICOCOSS_LIB%g
s%@MICO_USE_MINISTL@%$MICO_USE_MINISTL%g
s%@MICO_QTLIB@%$MICO_QTLIB%g
s%@XERCESC_DEF@%$XERCESC_DEF%g
s%@XERCESCDIR@%$XERCESCDIR%g
s%@XERCESCVERSION@%$XERCESCVERSION%g
s%@XERCESC_INCLUDE@%$XERCESC_INCLUDE%g
s%@XERCESC_LIB@%$XERCESC_LIB%g
s%@USE_CPP_TRUE@%$USE_CPP_TRUE%g
s%@USE_CPP_FALSE@%$USE_CPP_FALSE%g
s%@JAVACX_OPT@%$JAVACX_OPT%g
s%@DEBUGGING_TRUE@%$DEBUGGING_TRUE%g
s%@DEBUGGING_FALSE@%$DEBUGGING_FALSE%g
s%@JDK_HOME@%$JDK_HOME%g
s%@FALSE@%$FALSE%g
s%@JAVA@%$JAVA%g
s%@JAVAX@%$JAVAX%g
s%@JAVAC@%$JAVAC%g
s%@JAVACX@%$JAVACX%g
s%@JAVADOC@%$JAVADOC%g
s%@JAVADOCX@%$JAVADOCX%g
s%@JAR@%$JAR%g
s%@JARX@%$JARX%g
s%@RMIC@%$RMIC%g
s%@RMICX@%$RMICX%g
s%@OVERVIEW@%$OVERVIEW%g
s%@JARSIGNER@%$JARSIGNER%g
s%@JARSIGNERX@%$JARSIGNERX%g
s%@JAR_SIGNER@%$JAR_SIGNER%g
s%@CLASSPATH@%$CLASSPATH%g
s%@CLASS_DIR@%$CLASS_DIR%g
s%@JAVA_FLAGS@%$JAVA_FLAGS%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 <<EOF

CONFIG_FILES=\${CONFIG_FILES-"Makefile \
          src/Makefile \
          src/c++/Makefile \
          src/c++/generated/Makefile \
          src/c++/util/Makefile \
          src/c++/client/Makefile \
          src/java/Makefile \
          src/java/org/Makefile \
          src/java/org/xmlBlaster/Makefile \
          src/java/org/xmlBlaster/j2ee/Makefile \
          src/java/org/xmlBlaster/j2ee/k2/Makefile \
          src/java/org/xmlBlaster/j2ee/k2/client/Makefile \
          src/java/org/xmlBlaster/util/Makefile \
          src/java/org/xmlBlaster/util/cpp/Makefile \
          src/java/org/xmlBlaster/util/servlet/Makefile \
          src/java/org/xmlBlaster/util/protocol/Makefile \
          src/java/org/xmlBlaster/protocol/Makefile \
          src/java/org/xmlBlaster/protocol/rmi/Makefile \
          src/java/org/xmlBlaster/protocol/http/Makefile \
          src/java/org/xmlBlaster/protocol/http/javascript/Makefile \
          src/java/org/xmlBlaster/protocol/http/persistentWindow/Makefile \
          src/java/org/xmlBlaster/protocol/jdbc/Makefile \
          src/java/org/xmlBlaster/protocol/corba/Makefile \
          src/java/org/xmlBlaster/protocol/corba/serverIdl/Makefile \
          src/java/org/xmlBlaster/protocol/corba/clientIdl/Makefile \
          src/java/org/xmlBlaster/protocol/corba/authenticateIdl/Makefile \
          src/java/org/xmlBlaster/protocol/email/Makefile \
          src/java/org/xmlBlaster/protocol/xmlrpc/Makefile \
          src/java/org/xmlBlaster/protocol/nativ/Makefile \
          src/java/org/xmlBlaster/client/Makefile \
          src/java/org/xmlBlaster/client/protocol/Makefile \
          src/java/org/xmlBlaster/client/protocol/rmi/Makefile \
          src/java/org/xmlBlaster/client/protocol/corba/Makefile \
          src/java/org/xmlBlaster/client/protocol/xmlrpc/Makefile \
          src/java/org/xmlBlaster/client/reader/Makefile \
          src/java/org/xmlBlaster/client/feeder/Makefile \
          src/java/org/xmlBlaster/engine/Makefile \
          src/java/org/xmlBlaster/engine/xml2java/Makefile \
          src/java/org/xmlBlaster/engine/helper/Makefile \
          src/java/org/xmlBlaster/engine/persistence/Makefile \
          src/java/org/xmlBlaster/engine/persistence/mudb/Makefile \
          src/java/org/xmlBlaster/engine/persistence/mudb/dom/Makefile \
          src/java/org/xmlBlaster/engine/persistence/mudb/file/Makefile \
          src/java/org/xmlBlaster/engine/persistence/mudb/cache/Makefile \
          src/java/org/xmlBlaster/engine/persistence/filestore/Makefile \
          src/java/org/xmlBlaster/engine/callback/Makefile \
          src/java/org/xmlBlaster/authentication/Makefile \
          src/java/org/jutils/Makefile \
          src/java/org/jutils/collection/Makefile \
          src/java/org/jutils/collection/validators/Makefile \
          src/java/org/jutils/debugging/Makefile \
          src/java/org/jutils/init/Makefile \
          src/java/org/jutils/io/Makefile \
          src/java/org/jutils/jdbc/Makefile \
          src/java/org/jutils/log/Makefile \
          src/java/org/jutils/media/Makefile \
          src/java/org/jutils/net/Makefile \
          src/java/org/jutils/pool/Makefile \
          src/java/org/jutils/runtime/Makefile \
          src/java/org/jutils/servlet/Makefile \
          src/java/org/jutils/text/Makefile \
          src/java/org/jutils/time/Makefile \
          src/java/org/jutils/xml/Makefile \
          demo/Makefile \
          demo/javaclients/Makefile \
          demo/javaclients/jsp/Makefile \
          demo/javaclients/rmi/Makefile \
          demo/javaclients/chat/Makefile \
          demo/javaclients/j2ee/Makefile \
          demo/javaclients/j2ee/k2/Makefile \
          demo/javaclients/jdbc/Makefile \
          demo/javaclients/corba/Makefile \
          demo/javaclients/HelloWorldApplet/Makefile \
          demo/javaclients/xmlrpc/Makefile \
          testsuite/org/xmlBlaster/query/Makefile \
          testsuite/org/xmlBlaster/Makefile \
          testsuite/org/Makefile \
          testsuite/Makefile \
          testsuite/c++/Makefile
"}
EOF
cat >> $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

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  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
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*

EOF
cat >> $CONFIG_STATUS <<EOF

EOF
cat >> $CONFIG_STATUS <<\EOF

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

