-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
49 lines (39 loc) · 1.09 KB
/
configure.ac
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
38
39
40
41
42
43
44
45
46
47
48
49
dnl Process this file with autoconf to produce a configure script.
AC_INIT([nct], [1.4a], [[email protected]])
AC_CONFIG_SRCDIR([src/nct.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
WITH_DEBUG=no
AC_ARG_WITH(debug,
[ --with-debug enable debug info],
[WITH_DEBUG="$withval"])
if test x$WITH_DEBUG = xno; then
: ${CFLAGS=-O} ${LDFLAGS=-s}
fi
dnl Checks for programs.
AC_PROG_CC
if test x$GCC = xyes; then
CFLAGS="$CFLAGS -Wall"
fi
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
dnl Checks for libraries.
AX_WITH_CURSES
if test "x$ax_cv_curses" != xyes; then
AC_MSG_ERROR([cannot find (n)curses library])
fi
LIBS="$LIBS $CURSES_LIB"
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME
dnl Checks for library functions.
AC_FUNC_MMAP
AC_CHECK_FUNCS([gettimeofday use_default_colors])
if test $prefix = /usr -a $localstatedir = '${prefix}/var'; then
localstatedir = /var
fi
AC_CONFIG_FILES([Makefile m4/Makefile src/Makefile])
AC_OUTPUT