chiark / gitweb /
unit: properly update references to units which are merged
[elogind.git] / autogen.sh
index 74f814d..3b9dd1f 100755 (executable)
@@ -48,9 +48,9 @@ if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
     echo "Activated pre-commit hook."
 fi
 
-if type -p colorgcc > /dev/null ; then
-   export CC=colorgcc
-fi
+libdir() {
+    echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
+}
 
 if [ "x$1" = "xam" ] ; then
     run_versioned automake "$AM_VERSION" -a -c --foreign
@@ -60,13 +60,21 @@ else
     rm -f config.cache
 
     libtoolize -c --force
+    intltoolize -c -f
     run_versioned aclocal "$AM_VERSION" -I m4
     run_versioned autoconf "$AC_VERSION" -Wall
     run_versioned autoheader "$AC_VERSION"
     run_versioned automake "$AM_VERSION" --copy --foreign --add-missing
 
     if [ "x$1" != "xac" ]; then
-        CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var --with-rootdir= "$@"
+        CFLAGS="$CFLAGS -g -O0" ./configure \
+          --with-rootprefix= \
+          --sysconfdir=/etc \
+          --localstatedir=/var \
+          --libdir=$(libdir /usr/lib) \
+          --with-rootlibdir=$(libdir /lib) \
+          --libexecdir=/usr/lib \
+          "$@"
         make clean
     fi
 fi