summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: bdc52587c4fda4c564aa7ed6709c97518ce9d231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
AC_INIT([sx], [0.1], [genjix@riseup.net])
AC_USE_SYSTEM_EXTENSIONS
AC_LANG(C++)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_PROG_CXX
AC_GNU_SOURCE
AX_CXX_COMPILE_STDCXX_11(noext,mandatory)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AX_WITH_CURSES
if test "x$ax_cv_ncursesw" != xyes && test "x$ax_cv_ncurses" != xyes; then
    AC_MSG_ERROR([requires either NcursesW or Ncurses library])
fi
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([libbitcoin], [libbitcoin])
PKG_CHECK_MODULES([libwallet], [libwallet])
PKG_CHECK_MODULES([libobelisk], [libobelisk],
    [enable_obelisk="yes"], [enable_obelisk="no"])
AM_CONDITIONAL([HAVE_OBELISK], [test $enable_obelisk = "yes"])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT