Alien::pkgconf(3)
π Alien::pkgconf π
okay bestie, so this is Alien::pkgconf, and it lives in the User Contributed Perl Documentation section (section 3, iykyk β that's the C-library-adjacent corner of the man pages π«Ά).
β¨ NAME β¨
Alien::pkgconf β it discovers pkgconf + libpkgconf for you, or straight up downloads and installs them if your system is being uncooperative π
πΈ SYNOPSIS πΈ
use Alien::pkgconf;
my $cflags = Alien::pkgconf->cflags;
my $libs = Alien::pkgconf->libs;
like. that's it. that's the whole vibe check. π
π¦ DESCRIPTION π¦
So this module hands you everything you need to either invoke pkgconf or link against libpkgconf. Easy.
But listen β it is not meant to be used directly by you, gorgeous. It's meant to be the behind-the-scenes supplier for a CPAN module that needs libpkgconf, like PkgConfig::LibPkgConf. It's giving backstage crew, not main character. π
π METHODS π
cflags
my $cflags = Alien::pkgconf->cflags;
The compiler flags for compiling against libpkgconf. Slap these on your compiler and go β¨
libs
my $libs = Alien::pkgconf->libs;
The linker flags for linking against libpkgconf. Chef's kiss for your link step π₯
dynamic_libs
my($dll) = Alien::pkgconf->dynamic_libs;
The .so, .dll or .dynlib shared/dynamic library β the one you'd use via FFI. no cap. π«
version
my $version = Alien::pkgconf->version;
The libpkgconf version. literally just that. π
bin_dir
my($dir) = Alien::pkgconf->bin_dir;
The directory where you can find pkgconf β that's for when it's not already chillin' in your PATH. Drop this into PATH and suddenly tools that require pkgconf justβ¦ work. iconic behavior fr fr. π«Ά
install_type
my $type = Alien::pkgconf->install_type;
The type of install. Should be either "share" or "system". That's the whole menu bestie πΈ
π§ HELPERS π§
pkgconf
%{pkgconf}
The name of the pkgconf binary. Usually it's just pkgconf. humble. understated. we love her. π
β SEE ALSO β
PkgConfig::LibPkgConfβ go look, bestie π
π PLATFORM NOTES π
Solaris
ngl you may need the GNU version of nm installed, which ships with GNU binutils. not me having to say that in 2025 π but here we are.
π ACKNOWLEDGMENTS π
Huge huge thanks to the pkgconf developers for their efforts, fr fr:
<https://github.com/pkgconf/pkgconf/graphs/contributors>
go send them some love π
π AUTHOR π
Graham Ollis
Contributors:
- Thibault Duponchelle (tib)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2016 Graham Ollis.
This is free software; you may redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go wild (respectfully) π«Ά
and that's the whole page, bestie π this was perl v5.42.0, dated 2025-08-12 β you're all caught up, go compile something gorgeous β¨πΈ
π¦ where this page comes from
- fedora 43: perl-Alien-pkgconf 0.21-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms