Alien::...Autoconf(3)
π Alien::Build::Plugin::Build::Autoconf β the autoconf plugin for Alien::Build π
okay bestie, you found the <pink>Alien::...Autoconf(3)</pink> page, which is the <purple>User Contributed Perl Documentation</purple> section of the manual. sit down, get comfy, we're learning autoconf things β¨
πΈ NAME πΈ
Alien::Build::Plugin::Build::Autoconf β the Autoconf plugin for Alien::Build. that's the whole name, she's self-explanatory and she knows it π
β VERSION β
version 2.88 β yes queen, we're on 2.88 π
π¦ SYNOPSIS π¦
look at how CUTE this is, only two lines:
use alienfile;
plugin 'Build::Autoconf';
that's it. that's the whole vibe. no cap π«Ά
β¨ DESCRIPTION β¨
so basically this plugin hands you a lil toolkit for building projects that use autoconf. the main character here is a configure helper (docs for it are down below β¬οΈ) plus the default build stage, which is literally this:
'%{configure} --disable-shared',
'%{make}',
'%{make} install',
and on Windows, this plugin also pulls in Alien::Build::Plugin::Build::MSYS, because autoconf-style projects on windows are just like that and they need it, periodt.
the other thing she does? a double staged DESTDIR install. and the author is obsessed β he found this genuinely improves the overall reliability of Alien modules that are based on autoconf packages. we love a reliability glow-up π
this plugin supports out-of-source builds (in autoconf terms that's a VPATH build) via the meta property out_of_source. iconic behavior honestly.
NOTE: by itself, this plugin is only intended for use on packages that include aconfigurescript. for packages that expect you to use Autotools to generate a configure script before building, you can useAlien::Autotoolsto generate theconfigurescript and then use this plugin to run it. for more details, go read the documentation forAlien::Autotoolsπ§
π PROPERTIES π
π with_pic
adds the --with-pic option when running configure. if your package supports it, it'll generate position independent code on platforms that support it. this is required for XS modules, and it's generally what you want, fr fr.
autoconf normally ignores options it doesn't understand, so including it is usually a safe and reasonable default. BUT β a small number of projects look like they use autoconf when they're actually an autoconf-style interface with a completely different implementation underneath π. those ones may fail if you hand them options such as --with-pic that they don't recognize. such packages are literally the whole rationale for this property existing.
πΈ msys_version
the version of Alien::MSYS required if it is deemed necessary. if Alien::MSYS isn't needed (say, if you're running under Unix, or MSYS2, for example) this will do nothing. nothing. zero. void. π
π config_site
the content for the generated config.site.
π HELPERS π
β configure
%{configure}
the correct incantation to start an autoconf-style configure script on your platform β¨. some reasonable default flags will be provided, you don't have to do anything, she's got you π«Ά
π§ ENVIRONMENT π§
SITE_CONFIGβ for a share install, this plugin needs to alter the behavior of autotools usingsite.config. she does this by generating asite.configfile on the fly, and setting theSITE_CONFIGenvironment variable. in the event that you already have your ownSITE_CONFIGset, that file will be sourced from the generated one, so your local defaults should still be honored β unless it's one that needs to be changed for a share install.
in particular, the lib directory must be overridden, because on some platforms dynamic libraries will otherwise be placed in directories that Alien::Build doesn't normally look in π. since the alienized package will be installed in a share directory and not a system directory, that should be fine. it's giving "we fixed it, don't worry" π
ALIEN_BUILD_SITE_CONFIGβ if defined, this file will be also be sourced in the generatedsite.config. this allows you to have local defaults for alien share installs only. cute and exclusive, love that for you π
π SEE ALSO π
Alien::Build::Plugin::Build::MSYSAlien::Build::PluginAlien::BuildAlien::BaseAlien
and the lore drops:
- <https://www.gnu.org/software/autoconf/autoconf.html>
- <https://www.gnu.org/prep/standards/html_node/DESTDIR.html>
π AUTHOR π
Author: Graham Ollis <plicease@cpan.org>
Contributors (aka the group chat, everyone say thank you ππ«Ά):
- Diab Jerius (DJERIUS)
- Roy Storey (KIWIROY)
- Ilya Pavlov
- David Mertens (run4flat)
- Mark Nunberg (mordy, mnunberg)
- Christian Walde (Mithaldu)
- Brian Wightman (MidLifeXis)
- Zaki Mughal (zmughal)
- mohawk (mohawk2, ETJ)
- Vikas N Kumar (vikasnkumar)
- Flavio Poletti (polettix)
- Salvador FandiΓ±o (salva)
- Gianni Ceccarelli (dakkar)
- Pavel Shaydo (zwon, trinitum)
- Kang-min Liu (εεΊ·ζ°, gugod)
- Nicholas Shipp (nshp)
- Juan JuliΓ‘n Merelo GuervΓ³s (JJ)
- Joel Berger (JBERGER)
- Petr PΓsaΕ (ppisar)
- Lance Wicks (LANCEW)
- Ahmad Fatoum (a3f, ATHREEF)
- JosΓ© JoaquΓn Atria (JJATRIA)
- Duke Leto (LETO)
- Shoichi Kaji (SKAJI)
- Shawn Laffan (SLAFFAN)
- Paul Evans (leonerd, PEVANS)
- HΓ₯kon HΓ¦gland (hakonhagland, HAKONH)
- nick nauwelaerts (INPHOBIA)
- Florian Weimer
- Marcel Telka (mtelka)
π₯ COPYRIGHT AND LICENSE π₯
this software is copyright (c) 2011-2022 by Graham Ollis.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay π
and that's the page bestie!! π¦
this was perl v5.42.3, dated 2026-09-21, and it lives in the Alien::...Autoconf(3) section of the manual β mwah, go build something, ily πβ¨π
π¦ where this page comes from
- fedora 43: perl-Alien-Build 2.88-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-Alien-Build 2.88-1.fc44 Β· 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