AC_INIT(path-reader, 1.0)
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AM_INIT_AUTOMAKE
LT_INIT
PKG_CHECK_MODULES([GLIB], [glib-2.0])

AM_CONFIG_HEADER([config.h])
	AC_MSG_CHECKING([for NSSharedPublicDirectory via NSSearchPathDirectory])
# it's an enum do we can't just ifdef or use a normal typedef test
AC_TRY_LINK(
[#include <NSSystemDirectories.h>],
[NSSearchPathDirectory foo = NSSharedPublicDirectory;],
[
  AC_DEFINE(HAVE_SUFFICIENT_NSSYSTEMDIRECTORIES, 1, [define to 1 if NSSystemDirectories is new enough])
  AC_MSG_RESULT([yes])
],
[AC_MSG_RESULT([no])])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT
