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

  --plugin-dir)
    echo bin
    ;;

  --prefix)
    echo ${prefix}
     ;;

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

  --defines)
    echo 
    ;;

  --includes)
    echo -I/clangarm64/include -IC:/M/msys64/clangarm64/include -IC:/M/msys64/clangarm64/include/libxml2
    ;;

  --cflags)
    echo -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1
    ;;

  --cxxflags)
    echo -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1
    ;;

  --version)
    echo 2.9.0
    ;;

  *)
    usage 1 1>&2
    ;;

esac
