#!/bin/csh
#
#  Creates configuration Makefile. Before attempting to make anything
#  in this directory, enter
#
#   ./configure
#
#  !REVISION HISTORY
#
#  14mar02   Sawyer     Initial code (adapted from gfio/configure)
#
#.....................................................................

if ( $#argv >= 1 ) then
	cd ../include
	if($status) exit 1
	echo "Usage: "
        echo "           configure "
	echo " "
        exit 1
endif

# First try a site specific Makefile.conf
# ---------------------------------------
  set makeconf = Makefile.conf.`uname -n`

# If there is no such a thing, try an Architecture dependent
# ----------------------------------------------------------
  if ( ! (-e $makeconf) ) set makeconf = Makefile.conf.`uname -s`


# Just make the symlink()
# -----------------------
  if ( -e $makeconf ) then
	rm -f Makefile.conf
        ln -s $makeconf Makefile.conf
        echo " "
	echo "configure: successful configuration - Makefile.conf is $makeconf"
        echo " "

  else
        echo " "
        echo error: cannot find site or arch dependent Makefile.conf
        echo " "
        exit 1

  endif

# All done
# --------
  exit 0
