#!/bin/sh
prefix=/opt/local
exec_prefix=/opt/local/bin
libdir=/opt/local/lib

usage()
{
	cat <<EOF
Usage: pdal-config [OPTIONS]
Options:
	[--cflags]
	[--cxxflags]
	[--defines]
	[--includes]
	[--libs]
	[--plugin-dir]
	[--version]
EOF
	exit $1
}

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

case $1 in
  --libs)
    echo -L/opt/local/lib -lpdalcpp
    ;;

  --plugin-dir)
    echo lib
    ;;

  --prefix)
    echo ${prefix}
     ;;

  --ldflags)
    echo -L${libdir}
    ;;

  --defines)
    echo 
    ;;

  --includes)
    echo -I/opt/local/include -I/opt/local/include -I/opt/local/include/libxml2
    ;;

  --cflags)
    echo -pipe -I/opt/local/libexec/openssl3/include -Os -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/libcxx/v1 -nostdinc++ -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -g 
    ;;

  --cxxflags)
    echo -pipe -I/opt/local/libexec/openssl3/include -Os -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/libcxx/v1 -nostdinc++ -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -g -stdlib=libc++ 
    ;;

  --version)
    echo 2.9.2
    ;;

  *)
    usage 1 1>&2
    ;;

esac
