#!/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 "x86_64-unknown-openbsd5.7"
    ;;
  --build)
    echo "x86_64-unknown-openbsd5.7"
    ;;
  --host)
    echo "x86_64-unknown-openbsd5.7"
    ;;
  --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
