]> git.ipfire.org Git - location/libloc.git/blame - autogen.sh
location update: Remove double conversion of timestamps
[location/libloc.git] / autogen.sh
CommitLineData
46aded9a
MT
1#!/bin/sh
2
3set -e
4
5if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
6 cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
7 chmod +x .git/hooks/pre-commit && \
8 echo "Activated pre-commit hook."
9fi
10
2bb7d64e 11intltoolize --force --automake
46aded9a
MT
12autoreconf --install --symlink
13
14libdir() {
15 echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
16}
17
18args="--prefix=/usr \
19--sysconfdir=/etc \
20--libdir=$(libdir /usr/lib)"
21
22echo
23echo "----------------------------------------------------------------"
24echo "Initialized build system. For a common configuration please run:"
25echo "----------------------------------------------------------------"
26echo
27echo "./configure CFLAGS='-g -O0' $args"
28echo