kmod/autogen.sh
2011-12-12 17:23:19 -02:00

18 lines
306 B
Bash
Executable File

#!/bin/sh -e
autoreconf --install --symlink
MYCFLAGS="-g -O2 -Werror"
libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
}
args="--prefix=/usr \
--sysconfdir=/etc \
--libdir=$(libdir /usr/lib)"
if [ -z "$NOCONFIGURE" ]; then
exec ./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" "$@"
fi