]>
Commit | Line | Data |
---|---|---|
46aded9a MT |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | if [ -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." | |
9 | fi | |
10 | ||
11 | autoreconf --install --symlink | |
12 | ||
13 | libdir() { | |
14 | echo $(cd $1/$(gcc -print-multi-os-directory); pwd) | |
15 | } | |
16 | ||
17 | args="--prefix=/usr \ | |
18 | --sysconfdir=/etc \ | |
19 | --libdir=$(libdir /usr/lib)" | |
20 | ||
21 | echo | |
22 | echo "----------------------------------------------------------------" | |
23 | echo "Initialized build system. For a common configuration please run:" | |
24 | echo "----------------------------------------------------------------" | |
25 | echo | |
26 | echo "./configure CFLAGS='-g -O0' $args" | |
27 | echo |