#!/bin/sh
# 							-*- shell-script -*-

# 
# s t k l o s - c o n f i g
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
# USA.
#
#           Author: Erick Gallesio [eg@unice.fr]
#    Creation date: 27-Jul-2000 23:58 (eg)
# Last file update: 15-Aug-2000 13:49 (eg)


prefix=/usr

function usage()
{
    cat <<EOF
Usage: stklos-config [OPTIONS]
Options:
	[--prefix | -p]
	[--version | -v]
	[--compile | -c]
	[--link | -l]
	[--shared-suffix | -s]
	[--help | -h | -?]
EOF
    exit $1
}


if test $# -eq 0; then
    usage 1 1>&2
fi

while test $# -gt 0; do
    case $1 in
	--prefix|-p)
	    echo ${prefix}
	    ;;
	--version|-v)
	    echo 0.51
	    ;;
	--compile|-c)
	    echo gcc -fpic
	    ;;
	--link|-l)
	    echo ld -shared -o
	    ;;
	--shared-suffix|-s)
	    echo so
	    ;;
	--help|-h|-\?)
	    usage 0 1>&2
	    ;;
	*)
	    echo "bad option $1" 1>&2
	    usage 1 1>&2
	    ;;
    esac
    shift
done
exit 0
