#!/bin/sh
#
# Program to spawn the correct script depending on if the user has Perl 
# or not.  (Perl is obviously better, though...)  So shoot me, I like
# Perl.  :-P

# Change this line in case you have Perl....  Put the full path in there,
# though.  This next line does not work with csh.

DIALOG=`which dialog`

if [ $DIALOG ]; then
    `pwd`/scripts/Configure.pl $1 $2
else
    echo "Uh oh..  You don't have perl.  This configuration requires that"
    echo "you have Perl installed.  Please get the latest version from"
    echo "sunsite.unc.edu, compile and install it, then re-run this."
    echo
    echo "If you don't like this, tough.  Don't run cfingerd.  Hundreds of"
    echo "other people have this running, and they love it.  You will just"
    echo "be left out."
    echo
fi
