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