#!/bin/sh

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

exit 0

