#!/bin/sh
#
# CTPP2 Configurator
#
PREFIX=/usr
CXXFLAGS="  -Wall -pedantic -Wno-long-long -Wno-inline -finline-functions   --param large-function-growth=5000 --param inline-unit-growth=600 -finline-limit=2000  -O3 "
MAKE=/usr/bin/make
CC=/usr/bin/cc
CXX=/usr/bin/c++
INCLUDE="/usr/include /usr/include /usr/include/ctpp2"
INCLUDE2="-I/usr/include -I/usr/include -I/usr/include/ctpp2"
LIBS="/usr/lib"
VERSION="2.8.3"

if test "x$1" = "x"; then
  echo "Usage:"
  echo "  ctpp2-config [--flags] [--cc] [--cxx] [--make] [--libs] [--includes] [--version]"
  echo "                  ... [see below for complete flag list]"
  echo ""
  echo "    --version         displays the ctpp2 version number"
  echo "    --flags           displays C++ compiler flags"
  echo "    --cc              displays executable name of C compiler"
  echo "    --cxx             displays executable name of C++ compiler"
  echo "    --make            displays executable name of make"
  echo "    --libs            displays list of libraries"
  echo "    --includes        displays list of include dirs"
  echo "    --includes2       displays list of include dirs with '-I' prefixes"
  echo ""
else
   while test "x$done" = "x" -a "x$1" != "x"; do
       case $1 in
           --version*)
           echo ${VERSION}
           ;;

           --flags*)
           echo ${CXXFLAGS}
           ;;

           --cc*)
           echo ${CC}
           ;;

           --cxx*)
           echo ${CXX}
           ;;

           --make*)
           echo ${MAKE}
           ;;

           --libs*)
           echo ${LIBS}
           ;;

           --includes2*)
           echo ${INCLUDE2}
           ;;

           --includes*)
           echo ${INCLUDE}
           ;;

       esac
       shift
   done
fi
