#!/bin/sh
#
# Created `Tue Oct 22 19:13:54 MET DST 1996' by `mmaurer'.
# Copyright (c) 1995 By The LiDIA Group -- All Rights Reserved.
# Author --  Markus Maurer (MM)
#

if test "$1" = "libI" ; then

echo " "
echo "For the correct compilation of the libI - assembler code " 
echo "we need to know whether your system has ELF assembly format."
echo " "
echo "Please enter <y>, <n>, or to use " 
echo "the [default entry], just type <return>."
echo " "

ELFFORMAT="y"
SUCCESS="n"

while test "$SUCCESS" != "y" ;
do 
  echo -n "ELF assembly format ? [$ELFFORMAT] : "
  read ANSWER
  if test "$ANSWER" = "y" -o "$ANSWER" = "n" ; then
    ELFFORMAT=$ANSWER
    SUCCESS=y
  elif test "$ANSWER" = "" ; then
    SUCCESS=y
  else
    echo "Please enter <y>, <n>, or just type <return>." 
    ELFFORMAT="y"
  fi
done

else
ELFFORMAT="n"
fi

if test "$ELFFORMAT" = "y" ; then
  echo "-DHAVE_ELF" > ./ELF_FRMT
else
  echo "-DUMMY" > ./ELF_FRMT 
fi

