chiark / gitweb /
core: rework unit timeout handling, and add new setting RuntimeMaxSec=
[elogind.git] / autogen.sh
index 9d2c652a9b4ab7070e4f7c0ddd97eb63f699b647..f99d0d031ff5b04c052249289e2bd0dda7c6d2e0 100755 (executable)
@@ -31,3 +31,34 @@ cd $topdir
 
 intltoolize --force --automake
 autoreconf --force --install --symlink
+
+libdir() {
+        echo $(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
+}
+
+args="\
+--sysconfdir=/etc \
+--localstatedir=/var \
+--libdir=$(libdir /usr/lib) \
+"
+
+if [ -f "$topdir/.config.args" ]; then
+        args="$args $(cat $topdir/.config.args)"
+fi
+
+if [ ! -L /bin ]; then
+args="$args \
+--with-rootprefix=/ \
+--with-rootlibdir=$(libdir /lib) \
+"
+fi
+
+cd $oldpwd
+
+echo
+echo "----------------------------------------------------------------"
+echo "Initialized build system. For a common configuration please run:"
+echo "----------------------------------------------------------------"
+echo
+echo "$topdir/configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args"
+echo