mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
30 lines
727 B
Bash
Executable File
30 lines
727 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
|
|
autoreconf --install --symlink
|
|
|
|
libdir() {
|
|
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
|
|
}
|
|
|
|
args="--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libdir=$(libdir /usr/lib)"
|
|
|
|
echo
|
|
echo "----------------------------------------------------------------"
|
|
echo "Initialized build system. For a common configuration please run:"
|
|
echo "----------------------------------------------------------------"
|
|
echo
|
|
echo "# ./configure CFLAGS='-g -O2' \\"
|
|
echo " $args"
|
|
echo
|
|
|
|
echo "If you are debugging or hacking on kmod, consider configuring"
|
|
echo "like below:"
|
|
echo
|
|
echo "# ./configure CFLAGS='-g -O2 -Werror' \\"
|
|
echo " $args \\"
|
|
echo " --enable-debug"
|
|
echo
|