1 # Process this file with autoconf to produce a configure script.
3 m4_pattern_forbid([^_?DPKG_])
6 AC_INIT([dpkg], m4_esyscmd([./get-version]), [debian-dpkg@lists.debian.org])
7 AC_SUBST([PACKAGE_COPYRIGHT_HOLDER], ['Dpkg Developers'])
8 AC_CONFIG_SRCDIR([lib/dpkg/dpkg.h])
9 AC_CONFIG_MACRO_DIR([m4])
10 AC_CONFIG_AUX_DIR([build-aux])
12 AC_USE_SYSTEM_EXTENSIONS
14 AM_INIT_AUTOMAKE([1.11 -Wall foreign nostdinc no-dist-gzip dist-xz])
15 AM_SILENT_RULES([yes])
17 # Do not unconditionally use the following macro, as Debian jessie does not
18 # have a recent enough gettext.
20 AM_GNU_GETTEXT_REQUIRE_VERSION
22 AM_GNU_GETTEXT_REQUIRE_VERSION([0.19])
24 # We cannot remove the following macro due to backwards compatibility reasons.
25 # In the future when the gettext version is bumped, we have to set the above
26 # macro unconditionally to the minimal version, and set the below to 0.19.6,
27 # the first version introducing the AM_GNU_GETTEXT_REQUIRE_VERSION macro.
28 AM_GNU_GETTEXT_VERSION([0.19])
29 AM_GNU_GETTEXT([external])
30 DPKG_DIST_CHECK([test "$GMSGFMT" = ":" && test "$USE_NLS" = "yes"],
31 [gettext required when NLS support enabled])
33 # Shared libraries are disabled on purpose, currently there is no ABI stability
34 # guarantee, and it will be broken at will. The infrastructure is in place just
35 # to be able to test that its future activation will work.
37 LT_INIT([disable-shared])
38 DPKG_BUILD_SHARED_LIBS
40 DPKG_LINKER_VERSION_SCRIPT
42 # Allow compilation without optional programs
43 DPKG_BUILD_PROG([dselect])
44 DPKG_BUILD_PROG([start-stop-daemon])
45 DPKG_BUILD_PROG([update-alternatives])
47 DPKG_BUILD_RELEASE_DATE
50 # Allow alternate directories
51 DPKG_WITH_DIR([devlibdir], [${libdir}],
52 [dpkg development library directory [LIBDIR]])
53 DPKG_WITH_DIR([pkgconfdir], [${sysconfdir}/${PACKAGE_NAME}],
54 [dpkg configuration directory [SYSCONFDIR/dpkg]])
55 DPKG_WITH_DIR([admindir], [${localstatedir}/lib/${PACKAGE_NAME}],
56 [dpkg database directory [LOCALSTATEDIR/lib/dpkg]])
57 DPKG_WITH_DIR([logdir], [${localstatedir}/log],
58 [system logging directory [LOCALSTATEDIR/log]])
60 # Set default dpkg-deb values
61 DPKG_DEB_COMPRESSOR([xz])
64 # Checks for programs.
70 AC_CHECK_PROGS([DOXYGEN], [doxygen])
71 AC_CHECK_PROG([HAVE_DOT], [dot], [YES], [NO])
77 # Checks for operating system services and capabilities.
80 # Checks for libraries.
86 AS_IF([test "x$build_dselect" = "xyes"], [
89 AS_IF([test "x$build_start_stop_daemon" = "xyes"], [
94 # Checks for header files.
112 AC_CHECK_HEADERS([sys/proc.h], [], [], [
113 #ifdef HAVE_SYS_PARAM_H
114 #include <sys/param.h>
118 AS_IF([test "x$build_dselect" = "xyes"], [
120 AC_CHECK_HEADERS([cxxabi.h])
124 # Checks for typedefs, structures, and compiler characteristics.
134 AC_CHECK_SIZEOF([unsigned int])
135 AC_CHECK_SIZEOF([unsigned long])
136 DPKG_DECL_SYS_SIGLIST
137 DPKG_DECL_SYS_ERRLIST
139 # Checks for library functions.
141 DPKG_FUNC_C99_SNPRINTF
142 DPKG_CHECK_DECL([offsetof], [stddef.h])
143 DPKG_CHECK_DECL([makedev], [sys/types.h])
144 DPKG_CHECK_DECL([WCOREDUMP], [sys/wait.h])
145 DPKG_CHECK_DECL([TIOCNOTTY], [sys/ioctl.h])
146 DPKG_CHECK_DECL([O_NOFOLLOW], [fcntl.h])
147 DPKG_CHECK_DECL([F_ALLOCSP64], [fcntl.h])
148 DPKG_CHECK_DECL([F_PREALLOCATE], [fcntl.h])
149 DPKG_CHECK_DECL([P_tmpdir], [stdio.h])
151 DPKG_CHECK_COMPAT_FUNCS([\
164 AC_CHECK_FUNCS([memcpy lchown],
165 [], [AC_MSG_ERROR([missing required function])])
179 AS_IF([test "x$build_dselect" = "xyes"], [
181 AC_CHECK_FUNCS([__cxa_pure_virtual])
186 DPKG_USE_DISK_PREALLOCATE
188 # Checks for the build machinery.
189 AC_DEFINE([LIBDPKG_VOLATILE_API], [1], [Acknowledge the volatility of the API.])
190 DPKG_COMPILER_WARNINGS
191 DPKG_COMPILER_OPTIMIZATIONS
192 DPKG_LINKER_OPTIMIZATIONS
194 AC_DEFINE([PACKAGE_RELEASE], [PACKAGE_VERSION " (" ARCHITECTURE ")"],
195 [Define the project release information, version and architecture])
197 AC_CONFIG_TESTDIR([t-func])
198 AM_MISSING_PROG([AUTOM4TE], [autom4te])
207 dselect/methods/Makefile
208 dselect/po/Makefile.in
219 scripts/po/Makefile.in
223 AC_CONFIG_HEADERS([config.h])
226 # Print the current configuration
231 native language support . . . : $USE_NLS
232 unicode support . . . . . . . : $USE_UNICODE
233 development documentation . . : $build_devel_docs
234 code coverage . . . . . . . . : $enable_coverage
235 build shared libraries . . . : $enable_shared
236 mmap loaders . . . . . . . . : $enable_mmap
237 disk pre-allocation . . . . . : $enable_disk_preallocate
238 default dpkg-deb compressor . : $with_dpkg_deb_compressor
241 devlibdir . . . . . . . . . . : $devlibdir
242 pkgconfdir . . . . . . . . . : $pkgconfdir
243 admindir . . . . . . . . . . : $admindir
244 logdir . . . . . . . . . . . : $logdir
245 perl interpreter . . . . . . : $PERL
246 perl libdir . . . . . . . . . : $PERL_LIBDIR
249 update-alternatives . . . . . : $build_update_alternatives
250 start-stop-daemon . . . . . . : $build_start_stop_daemon
251 dselect . . . . . . . . . . . : $build_dselect
254 libps . . . . . . . . . . . . : ${have_libps:-no}
255 libkvm . . . . . . . . . . . : ${have_libkvm:-no}
256 libselinux . . . . . . . . . : $have_libselinux
257 libmd . . . . . . . . . . . . : $have_libmd
258 libz . . . . . . . . . . . . : $have_libz
259 liblzma . . . . . . . . . . . : $have_liblzma
260 libbz2 . . . . . . . . . . . : $have_libbz2
261 libcurses . . . . . . . . . . : ${have_libcurses:-no}