#!/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.12"
    ;;
  --target)
    echo "amd64-portbld-freebsd7.1"
    ;;
  --build)
    echo "amd64-portbld-freebsd7.1"
    ;;
  --host)
    echo "amd64-portbld-freebsd7.1"
    ;;
  --cxx)
    echo "c++"
    ;;
  --cxxflags)
    echo "-I/usr/local/include  -O2 -fno-strict-aliasing -pipe  -Wall  -Wno-unused -D_REENTRANT -D_THREAD_SAFE  "
    ;;
  --picflags)
    echo "-fPIC"
    ;;
  --libs)
    echo " -L/usr/local/lib -lmico2.3.12  -rpath=/usr/lib:/usr/local/lib  -lcompat -lssl -lcrypto -lelf -lm  -lpthread"
    ;;
  --cosslibs)
    echo " -L/usr/local/lib -lmicocoss2.3.12 -lmico2.3.12  -rpath=/usr/lib:/usr/local/lib  -lcompat -lssl -lcrypto -lelf -lm  -lpthread"
    ;;
  --help)
    usage
    ;;
  esac
done
