]> git.ipfire.org Git - thirdparty/systemd.git/blame - configure.ac
build-sys: fix build without -Wl,--gc-sections
[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],
71c47486 23 [197],
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
8d7e170a
LP
89AC_PATH_TOOL(OBJCOPY, objcopy)
90AC_PATH_TOOL(STRINGS, strings)
91AC_PATH_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
6a179865
ZJS
138AS_CASE([$CFLAGS], [*-O[[12345\ ]]*], [
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 \
5a45a936
LP
147 -Wl,--gc-sections \
148 -Wl,-z,relro \
149 -Wl,-z,now])
150AC_SUBST([OUR_LDFLAGS], $with_ldflags)
47be870b 151
c937e0d5
ZJS
152# ------------------------------------------------------------------------------
153# we use python to build the man page index, and for systemd-python
154have_python=no
155have_python_devel=no
156
157AC_ARG_WITH([python],
158 [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
159
160AS_IF([test "x$with_python" != "xno"], [
161 AM_PATH_PYTHON(,, [:])
162 AS_IF([test "$PYTHON" != :], [have_python=yes])
163])
164AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
165AS_IF([test "x$PYTHON_BINARY" = "x"],
166 [AS_IF([test "x$have_python" = "xyes"],
167 [PYTHON_BINARY="`which "$PYTHON"`"],
168 [PYTHON_BINARY=/usr/bin/python])])
169AC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
170
171AS_IF([test "x$with_python" != "xno"], [
172 AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config)
173 AS_IF([test -n "$PYTHON_CONFIG"], [
174 have_python_devel=yes
175 PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags` $python_extra_cflags"
176 PYTHON_LIBS="`$PYTHON_CONFIG --ldflags`"
177 AC_SUBST(PYTHON_CFLAGS)
178 AC_SUBST(PYTHON_LIBS)
179 ])
180])
181AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
182
183# ------------------------------------------------------------------------------
184
e1718709 185AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
afea26ad 186AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
85f19d82
MB
187
188save_LIBS="$LIBS"
189LIBS=
47be870b
LP
190AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
191AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
85f19d82
MB
192CAP_LIBS="$LIBS"
193LIBS="$save_LIBS"
194AC_SUBST(CAP_LIBS)
47be870b 195
9388e99e 196AC_CHECK_FUNCS([fanotify_init fanotify_mark])
4db17f29 197AC_CHECK_FUNCS([__secure_getenv secure_getenv])
9388e99e 198AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
a8348796 199#include <unistd.h>
9388e99e
MO
200#include <sys/mount.h>
201#include <fcntl.h>]])
a8348796 202
b237ef2c 203# This makes sure pkg.m4 is available.
a9b5b032 204m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca0 205
3e214785 206PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
e3043162
TG
207
208# ------------------------------------------------------------------------------
209have_kmod=no
210AC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
211if test "x$enable_kmod" != "xno"; then
212 PKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ],
213 [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available]) have_kmod=yes], have_kmod=no)
214 if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
215 AC_MSG_ERROR([*** kmod support requested but libraries not found])
216 fi
217fi
218AM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
f553b3b1
AO
219
220# ------------------------------------------------------------------------------
221have_blkid=no
222AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
223if test "x$enable_blkid" != "xno"; then
224 PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
225 [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
226 if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
227 AC_MSG_ERROR([*** blkid support requested but libraries not found])
228 fi
229fi
230AM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
728beb28 231
3e214785 232# ------------------------------------------------------------------------------
81611586
RS
233have_ima=yes
234AC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
235 [case "${enableval}" in
236 yes) have_ima=yes ;;
237 no) have_ima=no ;;
238 *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
239 esac],
240 [have_ima=yes])
241
242if test "x${have_ima}" != xno ; then
243 AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
244fi
245
77e68fa2
LP
246# ------------------------------------------------------------------------------
247have_chkconfig=yes
248AC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
249 [case "${enableval}" in
250 yes) have_chkconfig=yes ;;
251 no) have_chkconfig=no ;;
252 *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
253 esac],
254 [AC_PATH_PROG(CHKCONFIG, chkconfig)
255 if test -z "$CHKCONFIG"; then
256 have_chkconfig=no
257 else
258 have_chkconfig=yes
259 fi])
260
261if test "x${have_chkconfig}" != xno ; then
262 AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
263fi
264
3e214785 265# ------------------------------------------------------------------------------
591622d7
LP
266have_selinux=no
267AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
268if test "x$enable_selinux" != "xno"; then
3f8cc098 269 PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
591622d7 270 [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
591622d7
LP
271 if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
272 AC_MSG_ERROR([*** SELinux support requested but libraries not found])
273 fi
56cf987f 274fi
591622d7 275AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
ed061a8d
MS
276if test "x${have_selinux}" != xno ; then
277 sushell=/sbin/sushell
278else
279 sushell=/bin/bash
280fi
281AC_SUBST(sushell)
56cf987f 282
3e214785 283# ------------------------------------------------------------------------------
807e17f0
LP
284have_xz=no
285AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
286if test "x$enable_xz" != "xno"; then
287 PKG_CHECK_MODULES(XZ, [ liblzma ],
288 [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
807e17f0
LP
289 if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
290 AC_MSG_ERROR([*** Xz support requested but libraries not found])
291 fi
292fi
293AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
294
3e214785 295# ------------------------------------------------------------------------------
0213c3f8
LP
296AC_ARG_ENABLE([tcpwrap],
297 AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
298 [case "${enableval}" in
5b6319dc
LP
299 yes) have_tcpwrap=yes ;;
300 no) have_tcpwrap=no ;;
0213c3f8
LP
301 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
302 esac],
5b6319dc 303 [have_tcpwrap=auto])
0213c3f8 304
5b6319dc 305if test "x${have_tcpwrap}" != xno ; then
0213c3f8
LP
306 ACX_LIBWRAP
307 if test "x${LIBWRAP_LIBS}" = x ; then
5b6319dc
LP
308 if test "x$have_tcpwrap" = xyes ; then
309 AC_MSG_ERROR([*** TCP wrappers support not found.])
0213c3f8 310 fi
812cce32 311 have_tcpwrap=no
0213c3f8 312 else
5b6319dc 313 have_tcpwrap=yes
0213c3f8
LP
314 fi
315else
5b6319dc 316 LIBWRAP_LIBS=
0213c3f8 317fi
0213c3f8
LP
318AC_SUBST(LIBWRAP_LIBS)
319
3e214785 320# ------------------------------------------------------------------------------
5b6319dc
LP
321AC_ARG_ENABLE([pam],
322 AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
323 [case "${enableval}" in
324 yes) have_pam=yes ;;
325 no) have_pam=no ;;
326 *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
327 esac],
328 [have_pam=auto])
329
330if test "x${have_pam}" != xno ; then
331 AC_CHECK_HEADERS(
332 [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
333 [have_pam=yes],
334 [if test "x$have_pam" = xyes ; then
335 AC_MSG_ERROR([*** PAM headers not found.])
336 fi])
337
338 AC_CHECK_LIB(
339 [pam],
340 [pam_syslog],
341 [have_pam=yes],
342 [if test "x$have_pam" = xyes ; then
343 AC_MSG_ERROR([*** libpam not found.])
344 fi])
345
346 if test "x$have_pam" = xyes ; then
347 PAM_LIBS="-lpam -lpam_misc"
348 AC_DEFINE(HAVE_PAM, 1, [PAM available])
812cce32
LP
349 else
350 have_pam=no
5b6319dc
LP
351 fi
352else
353 PAM_LIBS=
354fi
355AC_SUBST(PAM_LIBS)
356AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
357
3e214785 358# ------------------------------------------------------------------------------
5eda94dd
LP
359AC_ARG_ENABLE([acl],
360 AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
361 [case "${enableval}" in
362 yes) have_acl=yes ;;
363 no) have_acl=no ;;
364 *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
365 esac],
366 [have_acl=auto])
367
368if test "x${have_acl}" != xno ; then
369 AC_CHECK_HEADERS(
370 [sys/acl.h acl/libacl.h],
371 [have_acl=yes],
372 [if test "x$have_acl" = xyes ; then
373 AC_MSG_ERROR([*** ACL headers not found.])
374 fi])
375
376 AC_CHECK_LIB(
377 [acl],
378 [acl_get_file],
379 [have_acl=yes],
380 [if test "x$have_acl" = xyes ; then
381 AC_MSG_ERROR([*** libacl not found.])
382 fi])
383
384 if test "x$have_acl" = xyes ; then
385 ACL_LIBS="-lacl"
386 AC_DEFINE(HAVE_ACL, 1, [ACL available])
387 else
388 have_acl=no
389 fi
390else
391 ACL_LIBS=
392fi
393AC_SUBST(ACL_LIBS)
394AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
395
fb0951b0
LP
396# ------------------------------------------------------------------------------
397AC_ARG_ENABLE([xattr],
398 AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
399 [case "${enableval}" in
400 yes) have_xattr=yes ;;
401 no) have_xattr=no ;;
402 *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
403 esac],
404 [have_xattr=auto])
405
406if test "x${have_xattr}" != xno ; then
407 AC_CHECK_HEADERS(
408 [attr/xattr.h],
409 [have_xattr=yes],
410 [if test "x$have_xattr" = xyes ; then
411 AC_MSG_ERROR([*** XATTR headers not found.])
412 fi])
413
414 AC_CHECK_LIB(
415 [attr],
416 [fsetxattr],
417 [have_xattr=yes],
418 [if test "x$have_xattr" = xyes ; then
419 AC_MSG_ERROR([*** libattr not found.])
420 fi])
421
422 if test "x$have_xattr" = xyes ; then
423 XATTR_LIBS="-lattr"
424 AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
425 else
426 have_xattr=no
427 fi
428else
429 XATTR_LIBS=
430fi
431AC_SUBST(XATTR_LIBS)
432AM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
433
7560fffc 434# ------------------------------------------------------------------------------
feb12d3e 435AC_ARG_ENABLE([gcrypt],
7560fffc
LP
436 AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
437 [case "${enableval}" in
438 yes) have_gcrypt=yes ;;
439 no) have_gcrypt=no ;;
440 *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
441 esac],
442 [have_gcrypt=auto])
443
444if test "x${have_gcrypt}" != xno ; then
445 AM_PATH_LIBGCRYPT(
446 [1.4.5],
447 [have_gcrypt=yes],
448 [if test "x$have_gcrypt" = xyes ; then
449 AC_MSG_ERROR([*** GCRYPT headers not found.])
450 fi])
451
452 if test "x$have_gcrypt" = xyes ; then
453 GCRYPT_LIBS="$LIBGCRYPT_LIBS"
454 GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
455 AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
456 else
457 have_gcrypt=no
458 fi
459else
460 GCRYPT_LIBS=
461 GCRYPT_CFLAGS=
462fi
463AC_SUBST(GCRYPT_LIBS)
464AC_SUBST(GCRYPT_CFLAGS)
465AM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
466
3e214785 467# ------------------------------------------------------------------------------
4927fcae
LP
468AC_ARG_ENABLE([audit],
469 AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
470 [case "${enableval}" in
471 yes) have_audit=yes ;;
472 no) have_audit=no ;;
473 *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
474 esac],
475 [have_audit=auto])
476
477if test "x${have_audit}" != xno ; then
478 AC_CHECK_HEADERS(
479 [libaudit.h],
480 [have_audit=yes],
481 [if test "x$have_audit" = xyes ; then
482 AC_MSG_ERROR([*** AUDIT headers not found.])
483 fi])
484
485 AC_CHECK_LIB(
486 [audit],
487 [audit_open],
488 [have_audit=yes],
489 [if test "x$have_audit" = xyes ; then
490 AC_MSG_ERROR([*** libaudit not found.])
491 fi])
492
493 if test "x$have_audit" = xyes ; then
494 AUDIT_LIBS="-laudit"
495 AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
496 else
497 have_audit=no
498 fi
499else
500 AUDIT_LIBS=
501fi
502AC_SUBST(AUDIT_LIBS)
503
3e214785 504# ------------------------------------------------------------------------------
7f4e0805
LP
505have_libcryptsetup=no
506AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
507if test "x$enable_libcryptsetup" != "xno"; then
880a599e 508 PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ],
7f4e0805 509 [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
7f4e0805 510 if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
591622d7 511 AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
7f4e0805
LP
512 fi
513fi
514AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
515
f6a971bc
LP
516# ------------------------------------------------------------------------------
517have_qrencode=no
518AC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
519if test "x$enable_qrencode" != "xno"; then
520 PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
521 [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
522 if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
523 AC_MSG_ERROR([*** qrencode support requested but libraries not found])
524 fi
525fi
526AM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
527
7b17a7d7
LP
528# ------------------------------------------------------------------------------
529have_microhttpd=no
530AC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
531if test "x$enable_microhttpd" != "xno"; then
59bb9d9a 532 PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
7b17a7d7
LP
533 [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
534 if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
535 AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
536 fi
537fi
538AM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
539
3e214785 540# ------------------------------------------------------------------------------
27669061
MV
541have_binfmt=no
542AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
543if test "x$enable_binfmt" != "xno"; then
be31376e 544 have_binfmt=yes
27669061
MV
545fi
546AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
547
3e214785 548# ------------------------------------------------------------------------------
e5e83e83
LP
549have_vconsole=no
550AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
551if test "x$enable_vconsole" != "xno"; then
be31376e 552 have_vconsole=yes
e5e83e83
LP
553fi
554AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
555
3e214785 556# ------------------------------------------------------------------------------
e5e83e83
LP
557have_readahead=no
558AC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
559if test "x$enable_readahead" != "xno"; then
be31376e 560 have_readahead=yes
e5e83e83
LP
561fi
562AM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
563
83fdc450
AK
564# ------------------------------------------------------------------------------
565have_bootchart=no
566AC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
567if test "x$enable_bootchart" != "xno"; then
568 have_bootchart=yes
569fi
570AM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
571
3e214785 572# ------------------------------------------------------------------------------
4de85612
LP
573have_quotacheck=no
574AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
575if test "x$enable_quotacheck" != "xno"; then
be31376e 576 have_quotacheck=yes
4de85612
LP
577fi
578AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
579
3e214785 580# ------------------------------------------------------------------------------
4de85612
LP
581have_randomseed=no
582AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
583if test "x$enable_randomseed" != "xno"; then
be31376e 584 have_randomseed=yes
4de85612
LP
585fi
586AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
587
3e214785 588# ------------------------------------------------------------------------------
2a018e83
KS
589have_logind=no
590AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
591if test "x$enable_logind" != "xno"; then
be31376e 592 have_logind=yes
2a018e83
KS
593fi
594AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
4c80c73c 595AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
2a018e83 596
3e214785 597# ------------------------------------------------------------------------------
b2e9fb99
MV
598have_hostnamed=no
599AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
600if test "x$enable_hostnamed" != "xno"; then
be31376e 601 have_hostnamed=yes
b2e9fb99
MV
602fi
603AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
604
3e214785 605# ------------------------------------------------------------------------------
f47cd184
MV
606have_timedated=no
607AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
608if test "x$enable_timedated" != "xno"; then
be31376e 609 have_timedated=yes
f47cd184
MV
610fi
611AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
612
3e214785 613# ------------------------------------------------------------------------------
4cd1eaa5
MV
614have_localed=no
615AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
616if test "x$enable_localed" != "xno"; then
be31376e 617 have_localed=yes
4cd1eaa5
MV
618fi
619AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
620
3e214785 621# ------------------------------------------------------------------------------
f5e04665
LP
622have_coredump=no
623AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
624if test "x$enable_coredump" != "xno"; then
be31376e 625 have_coredump=yes
f5e04665
LP
626fi
627AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
628
b1c4ca25
LP
629# ------------------------------------------------------------------------------
630AC_ARG_WITH(rc-local-script-path-start,
631 AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
632 [Path to /etc/rc.local]),
633 [RC_LOCAL_SCRIPT_PATH_START="$withval"],
634 [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
635
636AC_ARG_WITH(rc-local-script-path-stop,
637 AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
bc270841 638 [Path to /usr/sbin/halt.local]),
b1c4ca25 639 [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
bc270841 640 [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
b1c4ca25
LP
641
642AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
bc270841 643AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
b1c4ca25
LP
644
645AC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
646AC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
647
a382332e
LP
648# ------------------------------------------------------------------------------
649AC_ARG_WITH(kbd-loadkeys,
650 AS_HELP_STRING([--with-kbd-loadkeys=PATH],
651 [Path to loadkeys]),
652 [KBD_LOADKEYS="$withval"],
653 [KBD_LOADKEYS="/usr/bin/loadkeys"])
654
655AC_ARG_WITH(kbd-setfont,
656 AS_HELP_STRING([--with-kbd-setfont=PATH],
657 [Path to setfont]),
658 [KBD_SETFONT="$withval"],
659 [KBD_SETFONT="/usr/bin/setfont"])
660
661AC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
662AC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
663
664AC_SUBST(KBD_LOADKEYS)
665AC_SUBST(KBD_SETFONT)
666
d562955e
TG
667# ------------------------------------------------------------------------------
668have_myhostname=no
f8c5a581 669AC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
d562955e
TG
670if test "x$enable_myhostname" != "xno"; then
671 AC_HEADER_STDC
672 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])
673
674 AC_C_CONST
675 AC_TYPE_SIZE_T
676 AC_HEADER_TIME
677
678 AC_FUNC_MALLOC
679 AC_FUNC_SELECT_ARGTYPES
680 AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
681
682 have_myhostname=yes
683fi
684AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
685
3e214785
KS
686# ------------------------------------------------------------------------------
687AC_ARG_WITH(firmware-path,
688 AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
689 [Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),
690 [], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"])
691OLD_IFS=$IFS
692IFS=:
693for i in $with_firmware_path; do
694 if test "x${FIRMWARE_PATH}" = "x"; then
695 FIRMWARE_PATH="\\\"${i}/\\\""
696 else
697 FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
698 fi
699done
700IFS=$OLD_IFS
701AC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
702
703# ------------------------------------------------------------------------------
704AC_ARG_ENABLE([gudev],
705 AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
706 [], [enable_gudev=yes])
707AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0]) ])
3e214785
KS
708AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
709
710# ------------------------------------------------------------------------------
711AC_ARG_ENABLE([keymap],
712 AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
713 [], [enable_keymap=yes])
714AS_IF([test "x$enable_keymap" = "xyes"], [
715 AC_PATH_PROG([GPERF], [gperf])
716 if test -z "$GPERF"; then
717 AC_MSG_ERROR([gperf is needed])
718 fi
719
720 AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
721 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}')])
722])
723AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
724
725# ------------------------------------------------------------------------------
75db9a77 726have_manpages=no
4c2b0e4e 727AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
fe1fed02
ZJS
728AS_IF([test "x$enable_manpages" != xno], [
729 AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
730 AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
731 ])
732 AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
733])
734AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
75db9a77 735
3e214785 736# ------------------------------------------------------------------------------
d1ab0ca0 737
34eff652
LP
738# Location of the init scripts as mandated by LSB
739SYSTEM_SYSVINIT_PATH=/etc/init.d
f1dd0c3f 740SYSTEM_SYSVRCND_PATH=/etc/rc.d
f975e971 741M4_DEFINES=
12e84679 742
136337ff 743AC_ARG_WITH([sysvinit-path],
be31376e 744 [AS_HELP_STRING([--with-sysvinit-path=PATH],
bc270841 745 [Specify the path to where the SysV init scripts are located])],
be31376e
KS
746 [SYSTEM_SYSVINIT_PATH="$withval"],
747 [])
136337ff 748
dee4c244
LP
749AC_ARG_WITH([sysvrcnd-path],
750 [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
bc270841 751 [Specify the path to the base directory for the SysV rcN.d directories])],
136337ff
TFH
752 [SYSTEM_SYSVRCND_PATH="$withval"],
753 [])
754
07459bb6
FF
755if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
756 AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
757 SYSTEM_SYSV_COMPAT="yes"
f975e971 758 M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
07459bb6 759elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
dee4c244 760 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
761else
762 SYSTEM_SYSV_COMPAT="no"
763fi
764
bc270841
LP
765AC_SUBST(SYSTEM_SYSVINIT_PATH)
766AC_SUBST(SYSTEM_SYSVRCND_PATH)
767AC_SUBST(M4_DEFINES)
768
769AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
770
bef2733f 771AC_ARG_WITH([tty-gid],
a05ea46d 772 [AS_HELP_STRING([--with-tty-gid=GID],
bef2733f
LP
773 [Specify the numeric GID of the 'tty' group])],
774 [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
775 [])
776
d2d12cd1
LP
777AC_ARG_WITH([dbuspolicydir],
778 AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
779 [],
780 [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
d122948d 781
d2d12cd1
LP
782AC_ARG_WITH([dbussessionservicedir],
783 AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
784 [],
785 [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
d122948d 786
d2d12cd1
LP
787AC_ARG_WITH([dbussystemservicedir],
788 AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
789 [],
790 [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
d122948d 791
d2d12cd1
LP
792AC_ARG_WITH([dbusinterfacedir],
793 AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
794 [],
795 [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
d122948d 796
b8079ae1
KS
797AC_ARG_WITH([rootprefix],
798 AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
39ad55a9 799 [], [with_rootprefix=${ac_default_prefix}])
d2d12cd1 800
ae446765
KS
801AC_ARG_WITH([rootlibdir],
802 AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
803 [],
804 [with_rootlibdir=${libdir}])
805
9d3203b4 806AC_ARG_WITH([pamlibdir],
b0cca7d8 807 AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
9d3203b4
KS
808 [],
809 [with_pamlibdir=${with_rootlibdir}/security])
810
bc9bdbba
MG
811AC_ARG_ENABLE([split-usr],
812 AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
813 [],
814 [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
815 enable_split_usr=yes
816 ], [
817 enable_split_usr=no
818 ])])
819
820AS_IF([test "x${enable_split_usr}" = "xyes"], [
2c6db6fb 821 AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
bc9bdbba 822])
2c6db6fb 823
6fc00209
ZJS
824# Work around intltoolize and gtk-doc problems in VPATH builds
825AM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
826 [Define to do gtk-doc tests])
827AS_IF([test "x$0" != "x./configure"], [
828 AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
829])
830
d2d12cd1
LP
831AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
832AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
833AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
834AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
8c6db833 835AC_SUBST([pamlibdir], [$with_pamlibdir])
b8079ae1 836AC_SUBST([rootprefix], [$with_rootprefix])
ae446765 837AC_SUBST([rootlibdir], [$with_rootlibdir])
8c4a3079 838
3e214785
KS
839AC_CONFIG_FILES([
840 Makefile po/Makefile.in
bb061708
KS
841 docs/libudev/Makefile
842 docs/libudev/version.xml
843 docs/gudev/Makefile
844 docs/gudev/version.xml
3e214785
KS
845])
846
a45a909f 847AC_OUTPUT
ae446765 848AC_MSG_RESULT([
0571e011
LP
849 $PACKAGE_NAME $VERSION
850
7f4e0805 851 libcryptsetup: ${have_libcryptsetup}
5b6319dc
LP
852 tcpwrap: ${have_tcpwrap}
853 PAM: ${have_pam}
12716238 854 AUDIT: ${have_audit}
81611586 855 IMA: ${have_ima}
12716238 856 SELinux: ${have_selinux}
807e17f0 857 XZ: ${have_xz}
5eda94dd 858 ACL: ${have_acl}
fb0951b0 859 XATTR: ${have_xattr}
7560fffc 860 GCRYPT: ${have_gcrypt}
f6a971bc 861 QRENCODE: ${have_qrencode}
7b17a7d7 862 MICROHTTPD: ${have_microhttpd}
77e68fa2 863 CHKCONFIG: ${have_chkconfig}
27669061 864 binfmt: ${have_binfmt}
e5e83e83
LP
865 vconsole: ${have_vconsole}
866 readahead: ${have_readahead}
83fdc450 867 bootchart: ${have_bootchart}
4de85612
LP
868 quotacheck: ${have_quotacheck}
869 randomseed: ${have_randomseed}
2a018e83 870 logind: ${have_logind}
b2e9fb99 871 hostnamed: ${have_hostnamed}
f47cd184 872 timedated: ${have_timedated}
4cd1eaa5 873 localed: ${have_localed}
f5e04665 874 coredump: ${have_coredump}
e3043162 875 kmod: ${have_kmod}
f553b3b1 876 blkid: ${have_blkid}
d562955e 877 nss-myhostname: ${have_myhostname}
3e214785
KS
878 gudev: ${enable_gudev}
879 gintrospection: ${enable_introspection}
880 keymap: ${enable_keymap}
8d7e170a
LP
881 Python: ${have_python}
882 Python Headers: ${have_python_devel}
2f4da3e6
ZJS
883 man pages: ${have_manpages}
884 gtk-doc: ${enable_gtk_doc}
885 Split /usr: ${enable_split_usr}
886 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
3e214785 887
8c4a3079 888 prefix: ${prefix}
b8079ae1 889 rootprefix: ${with_rootprefix}
3e214785
KS
890 sysconf dir: ${sysconfdir}
891 datarootdir: ${datarootdir}
892 includedir: ${includedir}
893 include_prefix: ${INCLUDE_PREFIX}
ae446765
KS
894 lib dir: ${libdir}
895 rootlib dir: ${with_rootlibdir}
2f4da3e6
ZJS
896 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
897 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
898 Build Python: ${PYTHON}
899 Installation Python: ${PYTHON_BINARY}
900 firmware path: ${FIRMWARE_PATH}
2c6db6fb 901 PAM modules dir: ${with_pamlibdir}
2c6db6fb
LP
902 D-Bus policy dir: ${with_dbuspolicydir}
903 D-Bus session dir: ${with_dbussessionservicedir}
904 D-Bus system dir: ${with_dbussystemservicedir}
905 D-Bus interfaces dir: ${with_dbusinterfacedir}
b1c4ca25
LP
906 Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
907 Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
66be6554 908
5a45a936
LP
909 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
910 CPPLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
911 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
568c7e02
ZJS
912 PYTHON_CFLAGS: ${PYTHON_CFLAGS}
913 PYTHON_LIBS: ${PYTHON_LIBS}
ae446765 914])