File: configure.ac

package info (click to toggle)
prerex 6.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,408 kB
  • sloc: ansic: 17,653; sh: 12,090; cpp: 442; makefile: 89
file content (57 lines) | stat: -rw-r--r-- 1,368 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.63)
AC_INIT([prerex],[6.4.0],[rdt@cs.queensu.ca])
AM_INIT_AUTOMAKE(prerex,6.4.0)
AC_CONFIG_HEADERS([config.h])


m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O

# Checks for libraries.

AC_CHECK_LIB(tinfo, tgetent,,
  [AC_CHECK_LIB(terminfo, tgetent,,
    [AC_CHECK_LIB(termcap, tgetent,,
       [AC_CHECK_LIB(termlib, tgetent,,
           [AC_CHECK_LIB(curses, tgetent,,
               [AC_CHECK_LIB(ncurses, tgetent,,
                   [AC_MSG_ERROR([libcurses or libncurses are required!])]
               )]
           )]
       )]
    )]
  )]
)

# Debian: Use system libedit
PKG_CHECK_MODULES(LIBEDIT, libedit)

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h limits.h malloc.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h curses.h ncurses.h sys/cdefs.h termcap.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T


# Checks for library functions.
AC_CHECK_FUNCS([strstr])
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC

AC_CONFIG_FILES([Makefile])
# Debian: Use system libedit
# AC_CONFIG_SUBDIRS([libedit])
AC_OUTPUT