X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=autogen.sh;h=f99d0d031ff5b04c052249289e2bd0dda7c6d2e0;hp=8a88a34475810e206c919aacabe44fbe5ceb72d0;hb=51e8372fb6cca277dc7afc6e83f48a1a2b6d4dbe;hpb=3b22396a4b2767a98172f6915929c47738cb0a1e diff --git a/autogen.sh b/autogen.sh index 8a88a3447..f99d0d031 100755 --- a/autogen.sh +++ b/autogen.sh @@ -28,7 +28,37 @@ cd $topdir # chmod +x .git/hooks/pre-commit && \ # echo "Activated pre-commit hook." || : #fi + 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