database: Unmap all mapped sections when freeing database
[people/ms/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
11autoreconf --install --symlink
12
13libdir() {
14 echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
15}
16
17args="--prefix=/usr \
18--sysconfdir=/etc \
19--libdir=$(libdir /usr/lib)"
20
21echo
22echo "----------------------------------------------------------------"
23echo "Initialized build system. For a common configuration please run:"
24echo "----------------------------------------------------------------"
25echo
26echo "./configure CFLAGS='-g -O0' $args"
27echo