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])
23 AC_CHECK_DECL(PR_SET_NAME, AC_DEFINE([HAVE_PR_SET_NAME], 1, [pr_set_name]), [],
24 [[#include <sys/prctl.h>]])
26 AC_SEARCH_LIBS([initscr], [ncursesw ncurses], [], [
27 AC_MSG_ERROR([requires either ncursesw or ncurses library])
30 AC_CHECK_LIB(tls, tls_init, [], [
31 AC_MSG_ERROR([requires libtls])
34 AC_CHECK_LIB(event, event_init, [], [
35 AC_MSG_ERROR([requires libevent])
38 AC_CHECK_LIB(util, imsg_init, [], [
40 AC_LIBOBJ(imsg-buffer)
43 AC_CONFIG_HEADERS([config.h])