From: David Herrmann Date: Mon, 24 Nov 2014 14:39:00 +0000 (+0100) Subject: build-sys: support local ./configure arguments X-Git-Tag: v218~382 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=9a20fcbcd1b010ad88bfbb8b7f0417bec7327fb4 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! --- diff --git a/.gitignore b/.gitignore index 2293dedd8..e5953d308 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ *.swp *.trs *~ +.config.args .deps/ .dirstamp .libs/ diff --git a/autogen.sh b/autogen.sh index 0fc6e5702..7b62449be 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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= \