#!/bin/sh -f

usage()
{
        cat <<EOF
Usage: mico-config [OPTIONS]
Options:
        [--prefix]
        [--version]
	[--target]
	[--build]
	[--host]
	[--cxx]
	[--cxxflags]
	[--picflags]
        [--libs]
	[--cosslibs]
EOF
        exit $1
}

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


for arg
do
  case "$arg" in
  --prefix)
    echo "/usr/local"
    ;;
  --version)
    echo "2.3.13"
    ;;
  --target)
    echo "mips64el-unknown-openbsd4.9"
    ;;
  --build)
    echo "mips64el-unknown-openbsd4.9"
    ;;
  --host)
    echo "mips64el-unknown-openbsd4.9"
    ;;
  --cxx)
    echo "c++"
    ;;
  --cxxflags)
    echo "-I/usr/local/include  -Wall -Wwrite-strings -O2 -pipe -fno-strict-aliasing -D_REENTRANT -D_THREAD_SAFE "
    ;;
  --picflags)
    echo "-fPIC"
    ;;
  --libs)
    echo " -L/usr/local/lib -lmico2.3.13   -lssl -lcrypto -lm  -lpthread"
    ;;
  --cosslibs)
    echo " -L/usr/local/lib -lmicocoss2.3.13 -lmico2.3.13   -lssl -lcrypto -lm  -lpthread"
    ;;
  --help)
    usage
    ;;
  esac
done
