function print_message
{
echo " " $@
}
function print_topic
{
echo -n "(II) " $@
}
function print_ack
{
echo "...ok"
}
function print_nack
{
echo "...failed"
}
function print_error
{
echo "(EE) " $@
}
function print_warning
{
echo "(WW) " $@
}
function print_info
{
if [ $VERBOSE == "yes" ]; then
echo " " $@
fi
}
function print_exit
{
echo " => fatal error occured - see (WW) and (EE) tags for more info"
echo " => for support send a bugreport with this output to"
echo " $SUPPORT_ADDRESS"
echo " => exiting gracefuly..."
}
function print_separator
{
echo "--------------------------------------------------------------"
}
function print_small_separator
{
echo " ---"
}
function print_newline
{
echo ""
}
#### Command Line Options
function check_command_line_options
{
local arg
for arg in $@; do
case $arg in
--enable-glut )
ENABLE_GLUT="yes"
;;
--disable-glut )
ENABLE_GLUT="no"
;;
--enable-gtk )
ENABLE_GTK="yes"
;;
--disable-gtk )
ENABLE_GTL="no"
;;
-v )
VERBOSE="yes"
;;
--verbose )
VERBOSE="yes"
;;
*)
print_command_line_options
exit 1
;;
esac
done
}
function print_command_line_options
{
echo ""
echo "USAGE:"
echo "--enable-