kmod/bootstrap
Lucas De Marchi 15cfa1d19c build-sys: set -e separately, rather than putting -e in the shebang line
Like a008d76 (autogen.sh: set -e separately, rather than putting -e in
the shebang line) in libabc by Josh Triplett.
2014-12-25 23:41:34 -02:00

31 lines
683 B
Bash
Executable File

#!/bin/sh
set -e
gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
autoreconf --install --symlink
libdir() {
(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
}
args="--prefix=/usr \
--sysconfdir=/etc \
--libdir=$(libdir /usr/lib)"
hackargs="--enable-debug --enable-python --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" $args $hackargs
EOC