summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 47b59561c0a6aa4f719fe6b166c88a311e0eb068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AC_INIT([assignment-list-tui], [0.1], [lshprung@tutanota.com])
AC_CONFIG_SRCDIR([src/group.h])

AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AX_WITH_CURSES
if test "x$ax_cv_curses" != xyes; then
	AC_MSG_ERROR([requires an X/Open-compatible Curses library])
fi

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL

# Checks for library functions.

# Setting default buffer size
bufsize=1024
AC_ARG_ENABLE([custom-bufsize],
			  [AS_HELP_STRING([--enable-custom-bufsize],
							  [set buffer size (default is 1024)])],
							  [bufsize=$enableval])
AC_DEFINE_UNQUOTED([BUF_LEN], [1024], ["Buffer Size"])

AC_CONFIG_FILES([
	Makefile
	src/Makefile
])

AC_OUTPUT