#!/bin/sh

case "$*" in
	--cflags)
		echo -I/usr/pkg/include
		;;
	--ldflags)
		echo -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib  -rdynamic
		;;
	--ldlibs)
		echo  -lspl -lm -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lpcre -lreadline -lcurses -lintl
		;;
	--moddir)
		echo /usr/pkg/lib/spl_modules
		;;
	*)
		echo "Usage: $0 { --cflags | --ldflags | --ldlibs | --moddir }"
		exit 1
esac

exit 0

