]>
Commit | Line | Data |
---|---|---|
15cfa1d1 LDM |
1 | #!/bin/sh |
2 | set -e | |
e5603189 LDM |
3 | |
4 | gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make | |
5 | autoreconf --install --symlink | |
6 | ||
7 | libdir() { | |
b7d830bc | 8 | (cd "$1/$(gcc -print-multi-os-directory)"; pwd) |
e5603189 LDM |
9 | } |
10 | ||
11 | args="--prefix=/usr \ | |
12 | --sysconfdir=/etc \ | |
13 | --libdir=$(libdir /usr/lib)" | |
14 | ||
6ca7c092 | 15 | hackargs="--enable-debug --enable-python --with-xz --with-zlib" |
e5603189 LDM |
16 | |
17 | cat <<EOC | |
18 | ||
19 | ---------------------------------------------------------------- | |
20 | Initialized build system. For a common configuration please run: | |
21 | ---------------------------------------------------------------- | |
22 | ||
23 | ./configure CFLAGS='-g -O2' $args | |
24 | ||
25 | If you are debugging or hacking on kmod, consider configuring | |
26 | like below: | |
27 | ||
6d59d9d0 | 28 | ./configure CFLAGS="-g -O2" $args $hackargs |
e5603189 LDM |
29 | |
30 | EOC |