# file: ISIP_ENV.sh.in
#

# setup the environment
#
ISIP_PROTO=@prefix@;

# ISIP_PROTO points to the install point for the ISIP prototype
# system
#
if [ "$ISIP_PROTO" = "." ]; then
   ISIP_PROTO=`pwd`;
fi

if [ -z "$ISIP_PROTO" ]; then
   ISIP_PROTO=`pwd`;
fi

export ISIP_PROTO;

# define the C++ compiler
#
ISIP_CPLUS_COMPILER=@CXX@;

# define the location of g++ as the default compiler
#
if [ -z "$ISIP_CPLUS_COMPILER" ]; then
   ISIP_CPLUS_COMPILER=g++;
fi
export ISIP_CPLUS_COMPILER


# define a binary directory. if uname does not work on your system,
# you need to create some arbitrary string which will be unique across
# each architecture you use. our values for ISIP_BINARY are
# i386_SunOS_5.6 or sparc_SunOS_5.6. 
#
ISIP_BINARY=@target@;
if [ -z "$ISIP_BINARY" ]; then
   ISIP_BINARY="`uname -p`_`uname -s`_`uname -r`";
fi
export ISIP_BINARY;

# define include directory
#
ISIP_INCLUDE="$ISIP_INCLUDE -I$ISIP_PROTO/include";
export ISIP_INCLUDE;

# define library directory
#
ISIP_LIBS="$ISIP_LIBS -L$ISIP_PROTO/lib/$ISIP_BINARY -l_proto -lm";
export ISIP_LIBS;

# update PATH
#
PATH="$PATH:$ISIP_PROTO/bin/$ISIP_BINARY:$ISIP_PROTO/bin/scripts";
export PATH;

# report results
#
echo "ISIP_PROTO =" $ISIP_PROTO;
echo "ISIP_CPLUS_COMPILER =" $ISIP_CPLUS_COMPILER;
echo "ISIP_BINARY =" $ISIP_BINARY;
echo "ISIP_INCLUDE =" $ISIP_INCLUDE;
echo "ISIP_LIBS =" $ISIP_LIBS;
echo "PATH =" $PATH;

#
# end of file
