AC_CANONICAL_HOST
AC_ARG_WITH(with_libical, [ --with-libical use libical calendaring library])
+AC_ARG_WITH(with_newt, [ --with-newt use newt window library])
dnl Set some system-specific variables which are OK to set before compiler
dnl checks:
)
fi
+dnl Checks for the newt window library.
+if test "x$with_newt" != xno ; then
+ AC_CHECK_HEADERS(newt.h,
+ [AC_CHECK_LIB(newt, newtInit,
+ [ok_newt=yes],,
+ )])
+fi
+
+if test "x$ok_newt" = xyes ; then
+ SETUP_LIBS="-lnewt $SETUP_LIBS"
+ AC_DEFINE(HAVE_NEWT)
+fi
+
+
+
+AC_SUBST(SETUP_LIBS)
+
AC_OUTPUT(Makefile)