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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([dpkg], [1.13.19~], [debian-dpkg@lists.debian.org])
AC_CONFIG_SRCDIR([lib/dpkg.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
AC_CANONICAL_SYSTEM
AC_GNU_SOURCE
DPKG_ARCHITECTURE
AM_INIT_AUTOMAKE([1.8 gnu])
AM_GNU_GETTEXT_VERSION(0.14.5)
AM_GNU_GETTEXT()
# Allow compilation without dselect
AC_ARG_WITH(dselect,
AS_HELP_STRING([--without-dselect],
[don't build dselect package-management frontend]),
[build_dselect=$with_dselect],
[build_dselect=yes])
AM_CONDITIONAL(WITH_DSELECT, [test "x$build_dselect" = "xyes"])
# Allow compilation without start-stop-daemon
AC_ARG_WITH(start-stop-daemon,
AS_HELP_STRING([--without-start-stop-daemon],
[don't build or use start-stop-daemon]),
[build_start_stop_daemon=$with_start_stop_daemon],
[build_start_stop_daemon=yes])
AM_CONDITIONAL(WITH_START_STOP_DAEMON,
[test "x$build_start_stop_daemon" = "xyes"])
if test "x$build_start_stop_daemon" = "xyes"; then
AC_DEFINE(WITH_START_STOP_DAEMON, 1,
[Define to 1 if start-stop-daemon is compiled.])
else
AC_DEFINE(WITH_START_STOP_DAEMON, 0)
fi
# Allow alternate admin directory
admindir="${localstatedir}/${PACKAGE_NAME}"
AC_ARG_WITH(admindir,
AS_HELP_STRING([--with-admindir=DIR],
[dpkg database directory [[LOCALSTATEDIR/dpkg]]]),
[case "$with_admindir" in
"") AC_MSG_ERROR([invalid admindir specified]) ;;
*) admindir="$with_admindir" ;;
esac])
AC_SUBST(admindir)
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
DPKG_PROG_PERL
# Checks for operating system services and capabilities.
AC_SYS_LARGEFILE
# Checks for libraries.
DPKG_LIB_ZLIB
DPKG_LIB_BZ2
DPKG_LIB_SELINUX
if test "x$build_dselect" = "xyes"; then
DPKG_LIB_CURSES
fi
if test "x$build_start_stop_daemon" = "xyes"; then
DPKG_LIB_SSD
fi
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([error.h sys/cdefs.h kvm.h])
DPKG_CHECK_DEFINE(TIOCNOTTY, [sys/ioctl.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN
AC_C_CONST
AC_C_INLINE
AC_C_VOLATILE
DPKG_C_C99
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
DPKG_TYPE_PTRDIFF_T
AC_CHECK_SIZEOF(unsigned int)
AC_CHECK_SIZEOF(unsigned long)
DPKG_DECL_SYS_SIGLIST
DPKG_C_ATTRIBUTE
# Checks for library functions.
DPKG_FUNC_VA_COPY
AC_CHECK_FUNCS([vsnprintf snprintf strerror strsignal scandir alphasort])
AC_CHECK_FUNCS([unsetenv lchown setsid bcopy isascii memcpy])
SJR_COMPILER_WARNINGS
SJR_COMPILER_OPTIMISATIONS
SJR_LINKER_OPTIMISATIONS
AC_CONFIG_FILES([ Makefile
dpkg-deb/Makefile
dpkg-split/Makefile
dselect/Makefile
dselect/methods/Makefile
dselect/po/Makefile.in
getopt/Makefile
intl/Makefile
lib/Makefile
man/Makefile
man/C/Makefile
man/de/Makefile
man/es/Makefile
man/fr/Makefile
man/hu/Makefile
man/ja/Makefile
man/pl/Makefile
man/pt_BR/Makefile
man/ru/Makefile
man/sv/Makefile
origins/Makefile
po/Makefile.in
scripts/Makefile
src/Makefile
utils/Makefile ])
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT
|