#!/bin/sh

## helper utilities ..
INSTALL="@INSTALL@"
MKDIR="@MKDIR@"
RM="@RM@"
TAR="@TAR@"
TOUCH="@TOUCH@"
CHMOD="@CHMOD@"
SED="@SED@"
GREP="@GREP@"
CAT="@CAT@"
CHMOD="@CHMOD@"

# usual dribble
prefix="@prefix@"
exec_prefix="@exec_prefix@"
program_transform_name="@program_transform_name@"
bindir="@bindir@"
sbindir="@sbindir@"
libexecdir="@libexecdir@"
datadir="@datadir@"
sysconfdir="@sysconfdir@"
sharedstatedir="@sharedstatedir@"
localstatedir="@localstatedir@"
libdir="@libdir@"
includedir="@includedir@"
oldincludedir="@oldincludedir@"
infodir="@infodir@"
mandir="@mandir@"
build_alias="@build_alias@"
host_alias="@host_alias@"
target_alias="@target_alias@"
build="@build@"
build_cpu="@build_cpu@"
build_vendor="@build_vendor@"
build_os="@build_os@"
host="@host@"
host_cpu="@host_cpu@"
host_vendor="@host_vendor@"
host_os="@host_os@"
just_make="@just_make@"

# Version stuff...
VERSION="@VERSION@"
SUBVERSION="@SUBVERSION@"
PATCHLEVEL="@PATCHLEVEL@"
PACKAGE_NAME="@PACKAGE_NAME@"
PACKAGE_VERSION="@PACKAGE_VERSION@"
versioneddir="@PACKAGE_NAME@-@PACKAGE_VERSION@"

ANTLR_JAR="@libdir@/antlr.jar"

case @build_os@ in
  cygwin|mingw|msys)
    ANTLR_JAR="`cygpath -m $ANTLR_JAR`"
    ;;
  *)
    ;;
esac

if test "x$CLASSPATH" = x; then
	CLASSPATH="${ANTLR_JAR}"
else
	CLASSPATH="${ANTLR_JAR}@PATH_SEPARATOR@${CLASSPATH}"
fi
export CLASSPATH
@JAVA@ antlr.Tool $*
