[systemd-devel] Reusing systemd utils in a non-systemd application?
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Oct 20 03:46:17 PDT 2014
On 20/10/14 08:19, Chaiken, Alison wrote:
> ../systemd/src/shared/util.h:51:4: error: #error Unknown pid_t size
> # error Unknown pid_t size
> ^
> In file included from ../systemd/src/shared/util.h:87:0,
> from ../systemd/src/shared/log.c:33:
> ../systemd/src/shared/missing.h:282:6: error: #error "neither secure_getenv nor __secure_getenv are available"
> # error "neither secure_getenv nor __secure_getenv are available"
> ^
> ===
> and so on. Is it necessary to understand libtool to proceed in
> this direction [...]?
It is necessary to (at least partially) understand Autoconf, and have
some of the same Autoconf feature-checks that are in systemd's configure.ac.
See Autoconf documentation for details of how configure.ac is
preprocessed to create configure, and how the results of those checks
are passed through config.h{.in,} into the relevant compilation units.
This is fairly standard Autoconf usage, and is not systemd-specific.
S
More information about the systemd-devel
mailing list