chiark / gitweb /
sd-device: enumerator - match only on initialized devices by default
[elogind.git] / autogen.sh
index 9869c156ae80f668a1edce627e4a6b5cd2930f63..3997db30e0de41921e4998a0dc65564b329c023b 100755 (executable)
 
 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,36 +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' $args
-        make clean
-elif [ "x$1" = "xg" ]; then
-        ./configure CFLAGS='-g -Og' $args
-        make clean
-else
-        echo
-        echo "----------------------------------------------------------------"
-        echo "Initialized build system. For a common configuration please run:"
-        echo "----------------------------------------------------------------"
-        echo
-        echo "./configure CFLAGS='-g -O0' $args"
-        echo
-fi