File: configure.ac

package info (click to toggle)
rote 0.2.8-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 332 kB
  • ctags: 110
  • sloc: ansic: 758; makefile: 118; sh: 50
file content (38 lines) | stat: -rw-r--r-- 873 bytes parent folder | download
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT([rote], 0.2.8)

AC_SUBST(PACKAGE_NAME)
AC_SUBST(PACKAGE_VERSION)

AC_CONFIG_SRCDIR([rote.c])

dnl Checks for programs.
AC_PROG_CC

dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_STDBOOL
AC_CHECK_HEADERS([sys/types.h unistd.h stdlib.h string.h])

dnl Check for libraries
AC_CHECK_LIB([ncurses], [initscr], [],
                AC_MSG_ERROR([Need ncurses to compile librote.]))
AC_CHECK_LIB([util], [forkpty], [],
      AC_MSG_ERROR([Need util library (forkpty function) to compile librote.]))

dnl Checks for library functions
AC_CHECK_FUNCS([memset select setenv])
AC_FUNC_MALLOC
AC_FUNC_SELECT_ARGTYPES

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIGNAL

AC_CONFIG_FILES([Makefile rote-config])
AC_OUTPUT