1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

build-sys: support local ./configure arguments

I often want to use the awesome "./autogen.sh [cmd]" arguments, but have
to append some custom ./configure options. For now, I always had to edit
autogen.sh manually, or copy the full commands out of it and run it
myself.

As I think this is super annoying, this commit adds support for
".config.args" files in $topdir. If it exists, any content is just
appended to $args, thus to any ./configure invokation of autogen.sh.

Maybe autotools provide something similar out-of-the-box. In that case,
feel free to revert this and lemme know!
This commit is contained in:
David Herrmann 2014-11-24 15:39:00 +01:00
parent d4f5a1f47d
commit 9a20fcbcd1
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@
*.swp
*.trs
*~
.config.args
.deps/
.dirstamp
.libs/

View File

@ -50,6 +50,10 @@ args="\
--libdir=$(libdir /usr/lib) \
$gtkdocargs"
if [ -f "$topdir/.config.args" ]; then
args="$args $(cat $topdir/.config.args)"
fi
if [ ! -L /bin ]; then
args="$args \
--with-rootprefix= \