#! /bin/sh
# Matrix-config.  Generated from Matrix-config.in by configure.


prefix=/usr/local
exec_prefix=${prefix}
includedir=${prefix}/include

usage()
{
    cat  <<EOF
Usage: Matrix-config [OPTION]

Known values for OPTION are:

  --prefix              show installation prefix
  --cxx                 print C++ compilation command
  --cpp                 print pre-processor commands
  --cppflags            print pre-processor flags
  --cxxflags            print C++ compiler flags
  --ldflags             print linker flags
  --libs                print libraries to link against
  --help                display this help and exit
  --version             output version information

EOF

    exit $1
}

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

while test $# -gt 0; do
    case "$1" in
    -*=*)
        optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
	;;
    *) 
        optarg=
	;;
    esac

    case "$1" in
    --prefix=*)
	prefix="$optarg"
	;;

    --prefix)
	echo "$prefix"
	;;

    --version)
	echo Matrix 2.1.0.1
	exit 0
	;;

    --help)
	usage 0
	;;

    --cxx)
       	echo c++  -ansi -pedantic -Wall -O2 -pipe -fno-strict-aliasing
       	;;

    --cpp)
       	echo c++ -E  -I${prefix}/include
       	;;

    --cppflags)
       	echo  -I${prefix}/include
       	;;

    --cxxflags)
       	echo -ansi -pedantic -Wall -O2 -pipe -fno-strict-aliasing
       	;;

    --ldflags)
       	echo    -L${exec_prefix}/lib
       	;;

    --libs)
       	echo  -lCLHEP-Matrix-2.1.0.1 -lCLHEP-Random-2.1.0.1 -lCLHEP-Vector-2.1.0.1 -lm
       	;;

    *)
	usage
	exit 1
	;;
    esac
    shift
done

exit 0
