X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=autogen.sh;h=f99d0d031ff5b04c052249289e2bd0dda7c6d2e0;hp=9d2c652a9b4ab7070e4f7c0ddd97eb63f699b647;hb=de49e5fdca40c6e5652bd4996a4ba735fef58cb0;hpb=1cfc78c91965df340cdde100ad6cb3ed50b28927 diff --git a/autogen.sh b/autogen.sh index 9d2c652a9..f99d0d031 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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