# set variables depending on perl's version
_perl_list="add_funclist"

add_funclist=
if test -n "$perl"; then
  res=`$perl -e 'print "OK" if ($] >= 5.005);'`;
  if test $? != 0; then
    echo "###"
    echo "### $perl seems to be broken"
    echo "###"
    perl=
  fi
  if test "$res" = OK; then add_funclist=yes; fi
fi
if test -z "$runtime_perl"; then
  runtime_perl=$perl
fi
if test -z "$add_funclist" -a ! -f "../src/language/init.h"; then
  echo "###"
  echo "### Please install 'perl' to build from GIT sources"
  echo "###"
  exit 1
fi
