1 AC_INIT([telescope], [0.1], [telescope@omarpolo.com], [telescope], [gemini://telescope.omarpolo.com])
2 AC_CONFIG_LIBOBJ_DIR(compat)
3 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
22 AC_CHECK_DECL(PR_SET_NAME, AC_DEFINE([HAVE_PR_SET_NAME], 1, [pr_set_name]), [],
23 [[#include <sys/prctl.h>]])
25 AC_SEARCH_LIBS([initscr], [ncursesw ncurses], [], [
26 AC_MSG_ERROR([requires either ncursesw or ncurses library])
29 AC_CHECK_LIB(tls, tls_init, [], [
30 AC_MSG_ERROR([requires libtls])
33 AC_CHECK_LIB(event, event_init, [], [
34 AC_MSG_ERROR([requires libevent])
37 AC_CHECK_LIB(util, imsg_init, [], [
39 AC_LIBOBJ(imsg-buffer)
42 AC_CONFIG_HEADERS([config.h])