X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=autogen.sh;h=3997db30e0de41921e4998a0dc65564b329c023b;hp=91df10a26be7c3536cbce4815ec6746b2e42e335;hb=7c1bdaf7addb55f8f06117199da4cfbbb6a3fb6b;hpb=bd3539b222e0c9bcb97fe35b4fdf79cfceade179 diff --git a/autogen.sh b/autogen.sh index 91df10a26..3997db30e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -17,6 +17,10 @@ set -e +oldpwd=$(pwd) +topdir=$(dirname $0) +cd $topdir + if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then # This part is allowed to fail cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ @@ -35,42 +39,3 @@ 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) \ -$gtkdocargs" - -if [ ! -L /bin ]; then -args="$args \ ---with-rootprefix= \ ---with-rootlibdir=$(libdir /lib) \ -" -fi - -if [ "x$1" = "xc" ]; then - ./configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args - make clean -elif [ "x$1" = "xg" ]; then - ./configure CFLAGS='-g -Og -ftrapv' --enable-kdbus $args - make clean -elif [ "x$1" = "xa" ]; then - ./configure CFLAGS='-g -O0 -Wsuggest-attribute=pure -Wsuggest-attribute=const -ftrapv' --enable-kdbus $args - make clean -elif [ "x$1" = "xl" ]; then - ./configure CC=clang CFLAGS='-g -O0 -ftrapv -Wno-cast-align -Wno-gnu' --enable-kdbus $args - make clean -else - echo - echo "----------------------------------------------------------------" - echo "Initialized build system. For a common configuration please run:" - echo "----------------------------------------------------------------" - echo - echo "./configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args" - echo -fi