blob: e80de4613f28fd166cf1e06a8c9988407e77bc54 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(free.c)
AM_CONFIG_HEADER(config.h)
dnl sets package name and version
AM_INIT_AUTOMAKE(procps,3.0)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AM_PROG_LIBTOOL
dnl Checks for libraries.
dnl Replace `main' with a function in -lc:
#AC_CHECK_LIB(c, main)
dnl Replace `main' with a function in -lefence:
#AC_CHECK_LIB(efence, main)
dnl Replace `main' with a function in -lproc:
#AC_CHECK_LIB(proc, main)
dnl Checks for header files.
#AC_HEADER_DIRENT
#AC_HEADER_STDC
#AC_HEADER_SYS_WAIT
#AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
#AC_C_CONST
#AC_TYPE_UID_T
#AC_C_INLINE
#AC_TYPE_PID_T
#AC_TYPE_SIZE_T
#AC_STRUCT_ST_RDEV
#AC_HEADER_TIME
#AC_STRUCT_TM
dnl Checks for library functions.
#AC_FUNC_GETPGRP
#AC_PROG_GCC_TRADITIONAL
#AC_HEADER_MAJOR
#AC_FUNC_MMAP
#AC_TYPE_SIGNAL
#AC_FUNC_STRFTIME
#AC_FUNC_VPRINTF
#AC_CHECK_FUNCS(gettimeofday regcomp select strcspn strdup strerror strspn strstr strtod strtol strtoul uname)
AC_SUBST(NCURSES_LIB)
AC_CHECK_LIB(ncurses, initscr,NCURSES_LIB="-lncurses",AC_MSG_ERROR(Need ncurses to compile this program))
AC_OUTPUT(Makefile ps/Makefile proc/Makefile)
|