2014-12-26 08:12:22 +07:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2012-01-13 03:23:32 +07:00
|
|
|
|
|
|
|
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)"
|
|
|
|
|
2014-04-07 03:14:23 +07:00
|
|
|
hackargs="--enable-debug --enable-python --with-xz --with-zlib"
|
2012-01-13 03:23:32 +07:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
2014-03-24 17:58:32 +07:00
|
|
|
./configure CFLAGS="-g -O2" $args $hackargs
|
2012-01-13 03:23:32 +07:00
|
|
|
|
|
|
|
EOC
|