2012-01-13 03:23:32 +07:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
|
|
|
|
autoreconf --install --symlink
|
|
|
|
|
|
|
|
libdir() {
|
2012-06-09 00:17:28 +07:00
|
|
|
(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
|
2012-01-13 03:23:32 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
args="--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libdir=$(libdir /usr/lib)"
|
|
|
|
|
|
|
|
hackargs="--enable-debug --with-xz --with-zlib"
|
|
|
|
|
|
|
|
cat <<EOC
|
|
|
|
|
|
|
|
----------------------------------------------------------------
|
|
|
|
Initialized build system. For a common configuration please run:
|
|
|
|
----------------------------------------------------------------
|
|
|
|
|
|
|
|
./configure CFLAGS='-g -O2' $args
|
|
|
|
|
|
|
|
If you are debugging or hacking on kmod, consider configuring
|
|
|
|
like below:
|
|
|
|
|
|
|
|
./configure CFLAGS="-g -O2 -Werror" $args $hackargs
|
|
|
|
|
|
|
|
EOC
|