]> git.ipfire.org Git - thirdparty/systemd.git/blame - configure.ac
always unconditionally create /dev/rtc and use it internally
[thirdparty/systemd.git] / configure.ac
CommitLineData
fb0951b0 1#
47be870b
LP
2# This file is part of systemd.
3#
3e214785
KS
4# Copyright 2010-2012 Lennart Poettering
5# Copyright 2010-2012 Kay Sievers
47be870b
LP
6#
7# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
8# under the terms of the GNU Lesser General Public License as published by
9# the Free Software Foundation; either version 2.1 of the License, or
47be870b
LP
10# (at your option) any later version.
11#
12# systemd is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 15# Lesser General Public License for more details.
47be870b 16#
5430f7f2 17# You should have received a copy of the GNU Lesser General Public License
47be870b
LP
18# along with systemd; If not, see <http://www.gnu.org/licenses/>.
19
4e949c11
JJ
20AC_PREREQ([2.64])
21
22AC_INIT([systemd],
ef3b5246 23 [202],
4e949c11
JJ
24 [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
25 [systemd],
26 [http://www.freedesktop.org/wiki/Software/systemd])
47be870b 27
78a825f2 28AC_CONFIG_SRCDIR([src/core/main.c])
47be870b
LP
29AC_CONFIG_MACRO_DIR([m4])
30AC_CONFIG_HEADERS([config.h])
a80db8bd
JJ
31AC_CONFIG_AUX_DIR([build-aux])
32
4db6d587 33AC_USE_SYSTEM_EXTENSIONS
907dd195 34AC_SYS_LARGEFILE
eb7bbee6 35AC_PREFIX_DEFAULT([/usr])
bbd9b8c2 36AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
3e214785 37AM_SILENT_RULES([yes])
47be870b 38AC_CANONICAL_HOST
22be093f 39AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b 40AS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
41 test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
42 [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
47be870b 43
3e214785 44LT_PREREQ(2.2)
8666abb4 45LT_INIT([disable-static])
47be870b 46
1c7dde3e
BN
47# i18n stuff for the PolicyKit policy files
48IT_PROG_INTLTOOL([0.40.0])
49
50GETTEXT_PACKAGE=systemd
51AC_SUBST(GETTEXT_PACKAGE)
52
e9da3678
LP
53AC_PROG_MKDIR_P
54AC_PROG_LN_S
55AC_PROG_SED
3ce4fad8 56AC_PROG_GREP
f975e971 57AC_PROG_AWK
e9da3678 58
47be870b
LP
59AC_PROG_CC
60AC_PROG_CC_C99
61AM_PROG_CC_C_O
62AC_PROG_GCC_TRADITIONAL
47be870b 63
3e214785 64AC_PATH_PROG([M4], [m4])
fe1fed02 65AC_PATH_PROG([XSLTPROC], [xsltproc])
92ec4495 66
86b2e20a
LP
67AC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
68AC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
b51fc639 69
86b2e20a
LP
70AC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
71
c1c02e07 72AC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
96ede260 73
80a5cbac 74# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
92ec4495 75m4_ifdef([GTK_DOC_CHECK], [
9e45e7d8 76GTK_DOC_CHECK([1.18],[--flavour no-tmpl])
6e92b23f 77], [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
92ec4495 78
fe1fed02
ZJS
79AS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
80 AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
81])
82
6e92b23f 83m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
0eaeca1f 84GOBJECT_INTROSPECTION_CHECK([1.31.1])
d66ee73a
ZJS
85], [
86 AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
87 enable_introspection=no])
3e214785 88
ac714a78
MJ
89AC_CHECK_TOOL(OBJCOPY, objcopy)
90AC_CHECK_TOOL(STRINGS, strings)
91AC_CHECK_TOOL(GPERF, gperf)
b62cfcea
MB
92if test -z "$GPERF" ; then
93 AC_MSG_ERROR([*** gperf not found])
94fi
9a60da28 95
eb2e280f 96CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
be1a67d9 97 -pipe \
d1ab0ca0 98 -Wall \
d1ab0ca0 99 -Wextra \
27765dfc 100 -Wno-inline \
d1ab0ca0 101 -Wundef \
780040dc 102 "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
d1ab0ca0
LP
103 -Wlogical-op \
104 -Wsign-compare \
d1ab0ca0 105 -Wmissing-include-dirs \
d1ab0ca0
LP
106 -Wold-style-definition \
107 -Wpointer-arith \
108 -Winit-self \
109 -Wdeclaration-after-statement \
110 -Wfloat-equal \
111 -Wmissing-prototypes \
112 -Wstrict-prototypes \
113 -Wredundant-decls \
114 -Wmissing-declarations \
115 -Wmissing-noreturn \
116 -Wshadow \
117 -Wendif-labels \
118 -Wcast-align \
119 -Wstrict-aliasing=2 \
120 -Wwrite-strings \
be1a67d9
LP
121 -Wno-long-long \
122 -Wno-overlength-strings \
d1ab0ca0 123 -Wno-unused-parameter \
be1a67d9 124 -Wno-missing-field-initializers \
8745297f 125 -Wno-unused-result \
d200735e 126 -Werror=overflow \
be1a67d9 127 -ffast-math \
d1ab0ca0
LP
128 -fno-common \
129 -fdiagnostics-show-option \
9b85fc6a
GSB
130 -fno-strict-aliasing \
131 -fvisibility=hidden \
132 -ffunction-sections \
5a45a936 133 -fdata-sections \
c1663b9d
LP
134 -fstack-protector \
135 --param=ssp-buffer-size=4])
5a45a936
LP
136AC_SUBST([OUR_CFLAGS], $with_cflags)
137
7cb20866 138AS_CASE([$CFLAGS], [*-O[[12345g\ ]]*], [
6a179865
ZJS
139 CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
140 -Wp,-D_FORTIFY_SOURCE=2])], [
c937e0d5 141 python_extra_cflags=-Wp,-U_FORTIFY_SOURCE
6a179865 142 AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
5a45a936 143AC_SUBST([OUR_CPPFLAGS], $with_cppflags)
9e7adc3a
LDM
144
145CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
9b85fc6a 146 -Wl,--as-needed \
9d2d0fe1 147 -Wl,--no-undefined \
5a45a936
LP
148 -Wl,--gc-sections \
149 -Wl,-z,relro \
150 -Wl,-z,now])
151AC_SUBST([OUR_LDFLAGS], $with_ldflags)
47be870b 152
c937e0d5
ZJS
153# ------------------------------------------------------------------------------
154# we use python to build the man page index, and for systemd-python
155have_python=no
156have_python_devel=no
157
158AC_ARG_WITH([python],
159 [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
160
161AS_IF([test "x$with_python" != "xno"], [
162 AM_PATH_PYTHON(,, [:])
163 AS_IF([test "$PYTHON" != :], [have_python=yes])
164])
165AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
166AS_IF([test "x$PYTHON_BINARY" = "x"],
167 [AS_IF([test "x$have_python" = "xyes"],
25ee45f9 168 [PYTHON_BINARY="$(which "$PYTHON")"],
c937e0d5
ZJS
169 [PYTHON_BINARY=/usr/bin/python])])
170AC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
171
172AS_IF([test "x$with_python" != "xno"], [
173 AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config)
174 AS_IF([test -n "$PYTHON_CONFIG"], [
175 have_python_devel=yes
25ee45f9
MB
176 PYTHON_CFLAGS="$($PYTHON_CONFIG --cflags) $python_extra_cflags"
177 PYTHON_LIBS="$($PYTHON_CONFIG --ldflags)"
c937e0d5
ZJS
178 AC_SUBST(PYTHON_CFLAGS)
179 AC_SUBST(PYTHON_LIBS)
603c0b7b 180 AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
c937e0d5
ZJS
181 ])
182])
183AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
184
185# ------------------------------------------------------------------------------
186
e1718709 187AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
afea26ad 188AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
85f19d82
MB
189
190save_LIBS="$LIBS"
191LIBS=
47be870b
LP
192AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
193AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
85f19d82
MB
194CAP_LIBS="$LIBS"
195LIBS="$save_LIBS"
196AC_SUBST(CAP_LIBS)
47be870b 197
9388e99e 198AC_CHECK_FUNCS([fanotify_init fanotify_mark])
4db17f29 199AC_CHECK_FUNCS([__secure_getenv secure_getenv])
9388e99e 200AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
a8348796 201#include <unistd.h>
9388e99e
MO
202#include <sys/mount.h>
203#include <fcntl.h>]])
a8348796 204
b237ef2c 205# This makes sure pkg.m4 is available.
a9b5b032 206m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca0 207
3e214785 208PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
e3043162
TG
209
210# ------------------------------------------------------------------------------
211have_kmod=no
212AC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
213if test "x$enable_kmod" != "xno"; then
214 PKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ],
215 [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available]) have_kmod=yes], have_kmod=no)
216 if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
217 AC_MSG_ERROR([*** kmod support requested but libraries not found])
218 fi
219fi
220AM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
f553b3b1
AO
221
222# ------------------------------------------------------------------------------
223have_blkid=no
224AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
225if test "x$enable_blkid" != "xno"; then
226 PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
227 [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
228 if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
229 AC_MSG_ERROR([*** blkid support requested but libraries not found])
230 fi
231fi
232AM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
728beb28 233
3e214785 234# ------------------------------------------------------------------------------
81611586
RS
235have_ima=yes
236AC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
237 [case "${enableval}" in
238 yes) have_ima=yes ;;
239 no) have_ima=no ;;
240 *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
241 esac],
242 [have_ima=yes])
243
244if test "x${have_ima}" != xno ; then
245 AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
246fi
247
77e68fa2
LP
248# ------------------------------------------------------------------------------
249have_chkconfig=yes
250AC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
251 [case "${enableval}" in
252 yes) have_chkconfig=yes ;;
253 no) have_chkconfig=no ;;
254 *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
255 esac],
256 [AC_PATH_PROG(CHKCONFIG, chkconfig)
257 if test -z "$CHKCONFIG"; then
258 have_chkconfig=no
259 else
260 have_chkconfig=yes
261 fi])
262
263if test "x${have_chkconfig}" != xno ; then
264 AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
265fi
266
3e214785 267# ------------------------------------------------------------------------------
591622d7
LP
268have_selinux=no
269AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
270if test "x$enable_selinux" != "xno"; then
3f8cc098 271 PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
591622d7 272 [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
591622d7
LP
273 if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
274 AC_MSG_ERROR([*** SELinux support requested but libraries not found])
275 fi
56cf987f 276fi
591622d7 277AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
ed061a8d 278if test "x${have_selinux}" != xno ; then
5ec6b15b 279 SUSHELL=/sbin/sushell
ed061a8d 280else
5ec6b15b 281 SUSHELL=/bin/sh
ed061a8d 282fi
5ec6b15b 283AC_SUBST(SUSHELL)
56cf987f 284
3e214785 285# ------------------------------------------------------------------------------
807e17f0
LP
286have_xz=no
287AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
288if test "x$enable_xz" != "xno"; then
289 PKG_CHECK_MODULES(XZ, [ liblzma ],
290 [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
807e17f0
LP
291 if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
292 AC_MSG_ERROR([*** Xz support requested but libraries not found])
293 fi
294fi
295AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
296
3e214785 297# ------------------------------------------------------------------------------
0213c3f8
LP
298AC_ARG_ENABLE([tcpwrap],
299 AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
300 [case "${enableval}" in
5b6319dc
LP
301 yes) have_tcpwrap=yes ;;
302 no) have_tcpwrap=no ;;
0213c3f8
LP
303 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
304 esac],
5b6319dc 305 [have_tcpwrap=auto])
0213c3f8 306
5b6319dc 307if test "x${have_tcpwrap}" != xno ; then
0213c3f8
LP
308 ACX_LIBWRAP
309 if test "x${LIBWRAP_LIBS}" = x ; then
5b6319dc
LP
310 if test "x$have_tcpwrap" = xyes ; then
311 AC_MSG_ERROR([*** TCP wrappers support not found.])
0213c3f8 312 fi
812cce32 313 have_tcpwrap=no
0213c3f8 314 else
5b6319dc 315 have_tcpwrap=yes
0213c3f8
LP
316 fi
317else
5b6319dc 318 LIBWRAP_LIBS=
0213c3f8 319fi
0213c3f8
LP
320AC_SUBST(LIBWRAP_LIBS)
321
3e214785 322# ------------------------------------------------------------------------------
5b6319dc
LP
323AC_ARG_ENABLE([pam],
324 AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
325 [case "${enableval}" in
326 yes) have_pam=yes ;;
327 no) have_pam=no ;;
328 *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
329 esac],
330 [have_pam=auto])
331
332if test "x${have_pam}" != xno ; then
333 AC_CHECK_HEADERS(
334 [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
335 [have_pam=yes],
336 [if test "x$have_pam" = xyes ; then
337 AC_MSG_ERROR([*** PAM headers not found.])
338 fi])
339
340 AC_CHECK_LIB(
341 [pam],
342 [pam_syslog],
343 [have_pam=yes],
344 [if test "x$have_pam" = xyes ; then
345 AC_MSG_ERROR([*** libpam not found.])
346 fi])
347
348 if test "x$have_pam" = xyes ; then
349 PAM_LIBS="-lpam -lpam_misc"
350 AC_DEFINE(HAVE_PAM, 1, [PAM available])
812cce32
LP
351 else
352 have_pam=no
5b6319dc
LP
353 fi
354else
355 PAM_LIBS=
356fi
357AC_SUBST(PAM_LIBS)
358AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
359
3e214785 360# ------------------------------------------------------------------------------
5eda94dd
LP
361AC_ARG_ENABLE([acl],
362 AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
363 [case "${enableval}" in
364 yes) have_acl=yes ;;
365 no) have_acl=no ;;
366 *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
367 esac],
368 [have_acl=auto])
369
370if test "x${have_acl}" != xno ; then
371 AC_CHECK_HEADERS(
372 [sys/acl.h acl/libacl.h],
373 [have_acl=yes],
374 [if test "x$have_acl" = xyes ; then
375 AC_MSG_ERROR([*** ACL headers not found.])
376 fi])
377
378 AC_CHECK_LIB(
379 [acl],
380 [acl_get_file],
381 [have_acl=yes],
382 [if test "x$have_acl" = xyes ; then
383 AC_MSG_ERROR([*** libacl not found.])
384 fi])
385
386 if test "x$have_acl" = xyes ; then
387 ACL_LIBS="-lacl"
388 AC_DEFINE(HAVE_ACL, 1, [ACL available])
389 else
390 have_acl=no
391 fi
392else
393 ACL_LIBS=
394fi
395AC_SUBST(ACL_LIBS)
396AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
397
fb0951b0
LP
398# ------------------------------------------------------------------------------
399AC_ARG_ENABLE([xattr],
400 AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
401 [case "${enableval}" in
402 yes) have_xattr=yes ;;
403 no) have_xattr=no ;;
404 *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
405 esac],
406 [have_xattr=auto])
407
408if test "x${have_xattr}" != xno ; then
409 AC_CHECK_HEADERS(
410 [attr/xattr.h],
411 [have_xattr=yes],
412 [if test "x$have_xattr" = xyes ; then
413 AC_MSG_ERROR([*** XATTR headers not found.])
414 fi])
415
416 AC_CHECK_LIB(
417 [attr],
418 [fsetxattr],
419 [have_xattr=yes],
420 [if test "x$have_xattr" = xyes ; then
421 AC_MSG_ERROR([*** libattr not found.])
422 fi])
423
424 if test "x$have_xattr" = xyes ; then
425 XATTR_LIBS="-lattr"
426 AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
427 else
428 have_xattr=no
429 fi
430else
431 XATTR_LIBS=
432fi
433AC_SUBST(XATTR_LIBS)
434AM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
435
7560fffc 436# ------------------------------------------------------------------------------
feb12d3e 437AC_ARG_ENABLE([gcrypt],
7560fffc
LP
438 AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
439 [case "${enableval}" in
440 yes) have_gcrypt=yes ;;
441 no) have_gcrypt=no ;;
442 *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
443 esac],
444 [have_gcrypt=auto])
445
446if test "x${have_gcrypt}" != xno ; then
447 AM_PATH_LIBGCRYPT(
448 [1.4.5],
449 [have_gcrypt=yes],
450 [if test "x$have_gcrypt" = xyes ; then
451 AC_MSG_ERROR([*** GCRYPT headers not found.])
452 fi])
453
454 if test "x$have_gcrypt" = xyes ; then
455 GCRYPT_LIBS="$LIBGCRYPT_LIBS"
456 GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
457 AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
458 else
459 have_gcrypt=no
460 fi
461else
462 GCRYPT_LIBS=
463 GCRYPT_CFLAGS=
464fi
465AC_SUBST(GCRYPT_LIBS)
466AC_SUBST(GCRYPT_CFLAGS)
467AM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
468
3e214785 469# ------------------------------------------------------------------------------
4927fcae
LP
470AC_ARG_ENABLE([audit],
471 AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
472 [case "${enableval}" in
473 yes) have_audit=yes ;;
474 no) have_audit=no ;;
475 *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
476 esac],
477 [have_audit=auto])
478
479if test "x${have_audit}" != xno ; then
480 AC_CHECK_HEADERS(
481 [libaudit.h],
482 [have_audit=yes],
483 [if test "x$have_audit" = xyes ; then
484 AC_MSG_ERROR([*** AUDIT headers not found.])
485 fi])
486
487 AC_CHECK_LIB(
488 [audit],
489 [audit_open],
490 [have_audit=yes],
491 [if test "x$have_audit" = xyes ; then
492 AC_MSG_ERROR([*** libaudit not found.])
493 fi])
494
495 if test "x$have_audit" = xyes ; then
496 AUDIT_LIBS="-laudit"
497 AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
498 else
499 have_audit=no
500 fi
501else
502 AUDIT_LIBS=
503fi
504AC_SUBST(AUDIT_LIBS)
505
3e214785 506# ------------------------------------------------------------------------------
7f4e0805
LP
507have_libcryptsetup=no
508AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
509if test "x$enable_libcryptsetup" != "xno"; then
880a599e 510 PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ],
7f4e0805 511 [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
7f4e0805 512 if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
591622d7 513 AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
7f4e0805
LP
514 fi
515fi
516AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
517
f6a971bc
LP
518# ------------------------------------------------------------------------------
519have_qrencode=no
520AC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
521if test "x$enable_qrencode" != "xno"; then
522 PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
523 [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
524 if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
525 AC_MSG_ERROR([*** qrencode support requested but libraries not found])
526 fi
527fi
528AM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
529
7b17a7d7
LP
530# ------------------------------------------------------------------------------
531have_microhttpd=no
532AC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
533if test "x$enable_microhttpd" != "xno"; then
59bb9d9a 534 PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
7b17a7d7
LP
535 [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
536 if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
537 AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
538 fi
539fi
540AM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
541
3e214785 542# ------------------------------------------------------------------------------
27669061
MV
543have_binfmt=no
544AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
545if test "x$enable_binfmt" != "xno"; then
be31376e 546 have_binfmt=yes
27669061
MV
547fi
548AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
549
3e214785 550# ------------------------------------------------------------------------------
e5e83e83
LP
551have_vconsole=no
552AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
553if test "x$enable_vconsole" != "xno"; then
be31376e 554 have_vconsole=yes
e5e83e83
LP
555fi
556AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
557
3e214785 558# ------------------------------------------------------------------------------
e5e83e83
LP
559have_readahead=no
560AC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
561if test "x$enable_readahead" != "xno"; then
be31376e 562 have_readahead=yes
e5e83e83
LP
563fi
564AM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
565
83fdc450
AK
566# ------------------------------------------------------------------------------
567have_bootchart=no
568AC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
569if test "x$enable_bootchart" != "xno"; then
570 have_bootchart=yes
571fi
572AM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
573
3e214785 574# ------------------------------------------------------------------------------
4de85612
LP
575have_quotacheck=no
576AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
577if test "x$enable_quotacheck" != "xno"; then
be31376e 578 have_quotacheck=yes
4de85612
LP
579fi
580AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
581
3e214785 582# ------------------------------------------------------------------------------
4de85612
LP
583have_randomseed=no
584AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
585if test "x$enable_randomseed" != "xno"; then
be31376e 586 have_randomseed=yes
4de85612
LP
587fi
588AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
589
3e214785 590# ------------------------------------------------------------------------------
2a018e83
KS
591have_logind=no
592AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
593if test "x$enable_logind" != "xno"; then
be31376e 594 have_logind=yes
2a018e83
KS
595fi
596AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
4c80c73c 597AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
2a018e83 598
3e214785 599# ------------------------------------------------------------------------------
b2e9fb99
MV
600have_hostnamed=no
601AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
602if test "x$enable_hostnamed" != "xno"; then
be31376e 603 have_hostnamed=yes
b2e9fb99
MV
604fi
605AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
606
3e214785 607# ------------------------------------------------------------------------------
f47cd184
MV
608have_timedated=no
609AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
610if test "x$enable_timedated" != "xno"; then
be31376e 611 have_timedated=yes
f47cd184
MV
612fi
613AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
614
3e214785 615# ------------------------------------------------------------------------------
4cd1eaa5
MV
616have_localed=no
617AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
618if test "x$enable_localed" != "xno"; then
be31376e 619 have_localed=yes
4cd1eaa5
MV
620fi
621AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
622
3e214785 623# ------------------------------------------------------------------------------
f5e04665
LP
624have_coredump=no
625AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
626if test "x$enable_coredump" != "xno"; then
be31376e 627 have_coredump=yes
f5e04665
LP
628fi
629AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
630
46ba8aae
LP
631# ------------------------------------------------------------------------------
632have_polkit=no
633AC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
634if test "x$enable_polkit" != "xno"; then
635 AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
636 have_polkit=yes
637fi
638AM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
639
b872e9a0
LP
640# ------------------------------------------------------------------------------
641have_efi=no
642AC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
643if test "x$enable_efi" != "xno"; then
644 AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
645 have_efi=yes
646fi
647AM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
648
b1c4ca25
LP
649# ------------------------------------------------------------------------------
650AC_ARG_WITH(rc-local-script-path-start,
651 AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
652 [Path to /etc/rc.local]),
653 [RC_LOCAL_SCRIPT_PATH_START="$withval"],
654 [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
655
656AC_ARG_WITH(rc-local-script-path-stop,
657 AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
bc270841 658 [Path to /usr/sbin/halt.local]),
b1c4ca25 659 [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
bc270841 660 [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
b1c4ca25
LP
661
662AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
bc270841 663AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
b1c4ca25
LP
664
665AC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
666AC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
667
a382332e
LP
668# ------------------------------------------------------------------------------
669AC_ARG_WITH(kbd-loadkeys,
670 AS_HELP_STRING([--with-kbd-loadkeys=PATH],
671 [Path to loadkeys]),
672 [KBD_LOADKEYS="$withval"],
673 [KBD_LOADKEYS="/usr/bin/loadkeys"])
674
675AC_ARG_WITH(kbd-setfont,
676 AS_HELP_STRING([--with-kbd-setfont=PATH],
677 [Path to setfont]),
678 [KBD_SETFONT="$withval"],
679 [KBD_SETFONT="/usr/bin/setfont"])
680
681AC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
682AC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
683
684AC_SUBST(KBD_LOADKEYS)
685AC_SUBST(KBD_SETFONT)
686
4ad61fd1
CR
687AC_ARG_WITH(telinit,
688 AS_HELP_STRING([--with-telinit=PATH],
689 [Path to telinit]),
690 [TELINIT="$withval"],
691 [TELINIT="/lib/upstart/telinit"])
692
693AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
694
695AC_SUBST(TELINIT)
696
7211f918
LP
697AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h])
698
d562955e
TG
699# ------------------------------------------------------------------------------
700have_myhostname=no
f8c5a581 701AC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
d562955e
TG
702if test "x$enable_myhostname" != "xno"; then
703 AC_HEADER_STDC
704 AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h])
705
706 AC_C_CONST
707 AC_TYPE_SIZE_T
708 AC_HEADER_TIME
709
710 AC_FUNC_MALLOC
711 AC_FUNC_SELECT_ARGTYPES
712 AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
713
714 have_myhostname=yes
715fi
716AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
717
3e214785
KS
718# ------------------------------------------------------------------------------
719AC_ARG_WITH(firmware-path,
720 AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
a3bd8447
TG
721 [Firmware search path (default="")]),
722 [], [with_firmware_path=""])
3e214785
KS
723OLD_IFS=$IFS
724IFS=:
725for i in $with_firmware_path; do
726 if test "x${FIRMWARE_PATH}" = "x"; then
727 FIRMWARE_PATH="\\\"${i}/\\\""
728 else
729 FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
730 fi
731done
732IFS=$OLD_IFS
a3bd8447 733AC_SUBST(FIRMWARE_PATH)
d8d4bee7 734AS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ])
a3bd8447 735AM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"])
3e214785
KS
736
737# ------------------------------------------------------------------------------
738AC_ARG_ENABLE([gudev],
739 AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
740 [], [enable_gudev=yes])
de1c301e 741AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0]) ])
3e214785 742AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
de1c301e
LP
743AS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
744
3e214785
KS
745# ------------------------------------------------------------------------------
746AC_ARG_ENABLE([keymap],
747 AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
748 [], [enable_keymap=yes])
749AS_IF([test "x$enable_keymap" = "xyes"], [
750 AC_PATH_PROG([GPERF], [gperf])
751 if test -z "$GPERF"; then
752 AC_MSG_ERROR([gperf is needed])
753 fi
754
755 AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
756 AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')])
757])
758AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
759
d95fd3df 760# ------------------------------------------------------------------------------
5ec6b15b 761DEBUGTTY=/dev/tty9
d95fd3df
UTL
762AC_ARG_WITH([debugshelltty],
763 [AS_HELP_STRING([--with-debugshelltty=PATH],
764 [Specify the tty device for debug shell])],
5ec6b15b 765 [DEBUGTTY="$withval"],
d95fd3df 766 [])
5ec6b15b 767AC_SUBST(DEBUGTTY)
d95fd3df 768
3e214785 769# ------------------------------------------------------------------------------
75db9a77 770have_manpages=no
4c2b0e4e 771AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
fe1fed02
ZJS
772AS_IF([test "x$enable_manpages" != xno], [
773 AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
774 AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
775 ])
776 AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
777])
778AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
75db9a77 779
3e214785 780# ------------------------------------------------------------------------------
d1ab0ca0 781
34eff652
LP
782# Location of the init scripts as mandated by LSB
783SYSTEM_SYSVINIT_PATH=/etc/init.d
f1dd0c3f 784SYSTEM_SYSVRCND_PATH=/etc/rc.d
f975e971 785M4_DEFINES=
12e84679 786
136337ff 787AC_ARG_WITH([sysvinit-path],
be31376e 788 [AS_HELP_STRING([--with-sysvinit-path=PATH],
bc270841 789 [Specify the path to where the SysV init scripts are located])],
be31376e
KS
790 [SYSTEM_SYSVINIT_PATH="$withval"],
791 [])
136337ff 792
dee4c244
LP
793AC_ARG_WITH([sysvrcnd-path],
794 [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
bc270841 795 [Specify the path to the base directory for the SysV rcN.d directories])],
136337ff
TFH
796 [SYSTEM_SYSVRCND_PATH="$withval"],
797 [])
798
07459bb6
FF
799if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
800 AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
801 SYSTEM_SYSV_COMPAT="yes"
f975e971 802 M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
07459bb6 803elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
dee4c244 804 AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcnd-path=PATH to enable SysV compatibility support, or both empty to disable it.])
07459bb6
FF
805else
806 SYSTEM_SYSV_COMPAT="no"
807fi
808
bc270841
LP
809AC_SUBST(SYSTEM_SYSVINIT_PATH)
810AC_SUBST(SYSTEM_SYSVRCND_PATH)
811AC_SUBST(M4_DEFINES)
812
813AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
814
bef2733f 815AC_ARG_WITH([tty-gid],
a05ea46d 816 [AS_HELP_STRING([--with-tty-gid=GID],
bef2733f
LP
817 [Specify the numeric GID of the 'tty' group])],
818 [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
819 [])
820
d2d12cd1
LP
821AC_ARG_WITH([dbuspolicydir],
822 AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
823 [],
25ee45f9 824 [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
d122948d 825
d2d12cd1
LP
826AC_ARG_WITH([dbussessionservicedir],
827 AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
828 [],
25ee45f9 829 [with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)])
d122948d 830
d2d12cd1
LP
831AC_ARG_WITH([dbussystemservicedir],
832 AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
833 [],
03c14914 834 [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
d122948d 835
d2d12cd1
LP
836AC_ARG_WITH([dbusinterfacedir],
837 AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
838 [],
03c14914 839 [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
d122948d 840
db059f1b
MB
841AC_ARG_WITH([bashcompletiondir],
842 AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
843 [],
25ee45f9
MB
844 [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
845 with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
db059f1b
MB
846 ] , [
847 with_bashcompletiondir=${datadir}/bash-completion/completions
848 ])])
849
b8079ae1
KS
850AC_ARG_WITH([rootprefix],
851 AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
39ad55a9 852 [], [with_rootprefix=${ac_default_prefix}])
d2d12cd1 853
ae446765
KS
854AC_ARG_WITH([rootlibdir],
855 AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
856 [],
857 [with_rootlibdir=${libdir}])
858
9d3203b4 859AC_ARG_WITH([pamlibdir],
b0cca7d8 860 AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
9d3203b4
KS
861 [],
862 [with_pamlibdir=${with_rootlibdir}/security])
863
bc9bdbba
MG
864AC_ARG_ENABLE([split-usr],
865 AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
866 [],
867 [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
868 enable_split_usr=yes
869 ], [
870 enable_split_usr=no
871 ])])
872
873AS_IF([test "x${enable_split_usr}" = "xyes"], [
2c6db6fb 874 AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
bc9bdbba 875])
2c6db6fb 876
6fc00209
ZJS
877# Work around intltoolize and gtk-doc problems in VPATH builds
878AM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
879 [Define to do gtk-doc tests])
880AS_IF([test "x$0" != "x./configure"], [
881 AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
882])
883
cee22bd3
HGB
884AC_ARG_ENABLE(tests,
885 [AC_HELP_STRING([--disable-tests], [disable tests])],
886 enable_tests=$enableval, enable_tests=yes)
887AM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes])
888
d2d12cd1
LP
889AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
890AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
891AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
892AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
db059f1b 893AC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
8c6db833 894AC_SUBST([pamlibdir], [$with_pamlibdir])
b8079ae1 895AC_SUBST([rootprefix], [$with_rootprefix])
ae446765 896AC_SUBST([rootlibdir], [$with_rootlibdir])
8c4a3079 897
3e214785
KS
898AC_CONFIG_FILES([
899 Makefile po/Makefile.in
bb061708
KS
900 docs/libudev/Makefile
901 docs/libudev/version.xml
902 docs/gudev/Makefile
903 docs/gudev/version.xml
3e214785
KS
904])
905
a45a909f 906AC_OUTPUT
ae446765 907AC_MSG_RESULT([
0571e011
LP
908 $PACKAGE_NAME $VERSION
909
7f4e0805 910 libcryptsetup: ${have_libcryptsetup}
5b6319dc
LP
911 tcpwrap: ${have_tcpwrap}
912 PAM: ${have_pam}
12716238 913 AUDIT: ${have_audit}
81611586 914 IMA: ${have_ima}
12716238 915 SELinux: ${have_selinux}
807e17f0 916 XZ: ${have_xz}
5eda94dd 917 ACL: ${have_acl}
fb0951b0 918 XATTR: ${have_xattr}
7560fffc 919 GCRYPT: ${have_gcrypt}
f6a971bc 920 QRENCODE: ${have_qrencode}
7b17a7d7 921 MICROHTTPD: ${have_microhttpd}
77e68fa2 922 CHKCONFIG: ${have_chkconfig}
27669061 923 binfmt: ${have_binfmt}
e5e83e83
LP
924 vconsole: ${have_vconsole}
925 readahead: ${have_readahead}
83fdc450 926 bootchart: ${have_bootchart}
4de85612
LP
927 quotacheck: ${have_quotacheck}
928 randomseed: ${have_randomseed}
2a018e83 929 logind: ${have_logind}
b2e9fb99 930 hostnamed: ${have_hostnamed}
f47cd184 931 timedated: ${have_timedated}
4cd1eaa5 932 localed: ${have_localed}
f5e04665 933 coredump: ${have_coredump}
46ba8aae 934 polkit: ${have_polkit}
b872e9a0 935 efi: ${have_efi}
e3043162 936 kmod: ${have_kmod}
f553b3b1 937 blkid: ${have_blkid}
d562955e 938 nss-myhostname: ${have_myhostname}
3e214785
KS
939 gudev: ${enable_gudev}
940 gintrospection: ${enable_introspection}
941 keymap: ${enable_keymap}
8d7e170a
LP
942 Python: ${have_python}
943 Python Headers: ${have_python_devel}
2f4da3e6
ZJS
944 man pages: ${have_manpages}
945 gtk-doc: ${enable_gtk_doc}
946 Split /usr: ${enable_split_usr}
947 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
3e214785 948
8c4a3079 949 prefix: ${prefix}
b8079ae1 950 rootprefix: ${with_rootprefix}
3e214785
KS
951 sysconf dir: ${sysconfdir}
952 datarootdir: ${datarootdir}
953 includedir: ${includedir}
954 include_prefix: ${INCLUDE_PREFIX}
ae446765
KS
955 lib dir: ${libdir}
956 rootlib dir: ${with_rootlibdir}
2f4da3e6
ZJS
957 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
958 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
959 Build Python: ${PYTHON}
960 Installation Python: ${PYTHON_BINARY}
961 firmware path: ${FIRMWARE_PATH}
2c6db6fb 962 PAM modules dir: ${with_pamlibdir}
2c6db6fb
LP
963 D-Bus policy dir: ${with_dbuspolicydir}
964 D-Bus session dir: ${with_dbussessionservicedir}
965 D-Bus system dir: ${with_dbussystemservicedir}
966 D-Bus interfaces dir: ${with_dbusinterfacedir}
db059f1b 967 Bash completions dir: ${with_bashcompletiondir}
b1c4ca25
LP
968 Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
969 Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
66be6554 970
5a45a936 971 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
1f048a6b 972 CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
5a45a936 973 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
568c7e02
ZJS
974 PYTHON_CFLAGS: ${PYTHON_CFLAGS}
975 PYTHON_LIBS: ${PYTHON_LIBS}
ae446765 976])