#!/bin/sh

if [ $# -ne 1 ]; then
    echo "Usage:  $0 locker"
    echo "   where locker is the name of the locker (e.g., \"gtk_v1.0\")"
    exit -1
fi

LOCKER=$1

GTKROOT=/mit/${LOCKER}

if [ ! -d ${GTKROOT} ]; then
	echo "Couldn't access ${GTKROOT}"
	exit -1;
fi


#includedir=${GTKROOT}/share/include
#libdir=${GTKROOT}/arch/${ATHENA_SYS}/lib

./configure \
	--prefix=${GTKROOT}					\
	--exec-prefix=${GTKROOT}/arch/@sys	          	\
	--bindir=${GTKROOT}/bin                                 \
	--sbindir=${GTKROOT}/sbin                               \
	--libexec=${GTKROOT}/libexec                            \
	--libdir=${GTKROOT}/lib                                 \
	--datadir=${GTKROOT}/share/libdata			\
	--sysconfdir=${GTKROOT}/share/etc			\
	--sharedstatedir=${GTKROOT}/share/com			\
	--localstatedir=${GTKROOT}/share/var			\
	--includedir=${GTKROOT}/include				\
	--infodir=${GTKROOT}/info				\
	--mandir=${GTKROOT}/man					

echo
echo "Athena notes:"
echo "*** Make sure to run:"
echo "***    ${GTKROOT}/share/gtk+-build-scripts/00postinstall"
echo "*** after doing a \"gmake install\""
echo "*** This will cause the installed gtk-config program to get modified."
