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])
21 AC_CHECK_DECL(PR_SET_NAME, AC_DEFINE([HAVE_PR_SET_NAME], 1, [pr_set_name]), [],
22 [[#include <sys/prctl.h>]])
24 AC_SEARCH_LIBS([initscr], [ncursesw ncurses], [], [
25 AC_MSG_ERROR([requires either ncursesw or ncurses library])
28 AC_CHECK_LIB(tls, tls_init, [], [
29 AC_MSG_ERROR([requires libtls])
32 AC_CHECK_LIB(event, event_init, [], [
33 AC_MSG_ERROR([requires libevent])
36 AC_CHECK_LIB(util, imsg_init, [], [
38 AC_LIBOBJ(imsg-buffer)
41 AC_CONFIG_HEADERS([config.h])