#!/bin/sh
prefix=/ucrt64
exec_prefix=/ucrt64/bin
libdir=/ucrt64/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/ucrt64/lib -lpdalcpp
    ;;

  --plugin-dir)
    echo /ucrt64/bin
    ;;

  --prefix)
    echo ${prefix}
     ;;

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

  --defines)
    echo 
    ;;

  --includes)
    echo -I/ucrt64/include -ID:/a/msys64/ucrt64/include -ID:/a/msys64/ucrt64/include/libxml2
    ;;

  --cflags)
    echo -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong
    ;;

  --cxxflags)
    echo -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong
    ;;

  --version)
    echo 2.6.3
    ;;

  *)
    usage 1 1>&2
    ;;

esac
