summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 18370ceabdad8a2606b4138d5eec0f538e850e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh -e

gtkdocize --docdir libkmod/docs
autoreconf --install --symlink

libdir() {
	echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
}

args="--prefix=/usr \
--sysconfdir=/etc \
--libdir=$(libdir /usr/lib)"

echo
echo "----------------------------------------------------------------"
echo "Initialized build system. For a common configuration please run:"
echo "----------------------------------------------------------------"
echo
echo "# ./configure CFLAGS='-g -O2' \\"
echo "		$args"
echo

echo "If you are debugging or hacking on kmod, consider configuring"
echo "like below:"
echo
echo "# ./configure CFLAGS='-g -O2 -Werror' \\"
echo "		$args \\"
echo "		--enable-debug"
echo