#!/bin/sh

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

LOCKER=$1

attach ${LOCKER} 1> /dev/null

GTKROOT=/mit/${LOCKER}

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


#if [ -x ./configure ] ; then
#    echo "Couldn't run ./configure"
#    exit -2;
#fi


#includedir=${GTKROOT}/share/include
#libdir=${GTKROOT}/arch/${ATHENA_SYS}/lib
# athdir /mit/gtk_v1.0


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

./configure                                                   \
        --prefix=${GTKROOT}                                     \
        --exec-prefix=${GTKROOT}/arch/${ATHENA_SYS}             


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

