File: configure.in

package info (click to toggle)
sendfile 2.1-20.3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,304 kB
  • ctags: 695
  • sloc: ansic: 12,371; sh: 2,569; perl: 790; makefile: 136; java: 36
file content (61 lines) | stat: -rw-r--r-- 1,347 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
58
59
60
61
dnl Process this file with autoconf to produce a configure script.
AC_INIT(../src/sendfile.c)
AM_CONFIG_HEADER(../src/config.h)

dnl Set this for automake
PACKAGE=sendfile
AC_SUBST(PACKAGE)
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")

VERSION=2.1
AC_SUBST(VERSION)
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")

REVISION=19990215
AC_SUBST(REVISION)
AC_DEFINE_UNQUOTED(REVISION, "$REVISION")

AC_CANONICAL_SYSTEM

SYSTEM="$build_alias"
AC_SUBST(SYSTEM)
AC_DEFINE_UNQUOTED(SYSTEM, "$SYSTEM")

dnl Checks for programs.
AC_PROG_CC
dnl AM_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

AC_ARG_PROGRAM

dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(stdlib.h stddef.h unistd.h stdarg.h getopt.h string.h fcntl.h paths.h sys/time.h sys/statvfs.h)

dnl Checks for libraries.
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, gethostbyname)
AC_CHECK_LIB(readline, readline, , , -ltermcap)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_STRUCT_ST_BLKSIZE
AC_HEADER_TIME
AC_STRUCT_TM

dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_TYPE_SIGNAL
AC_FUNC_UTIME_NULL
dnl AC_CHECK_FUNCS(gethostname gettimeofday mkdir socket uname strerror)
AC_CHECK_FUNCS(snprintf)

AC_OUTPUT()
dnl AC_OUTPUT([Makefile src/Makefile doc/Makefile])