blob: b26ff8ca0343871356aee5feb3bdb8e8e6d53c07 [file] [log] [blame]
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02001#!/bin/sh -e
2
Lucas De Marchi4fb900c2012-01-10 12:55:13 -02003gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02004autoreconf --install --symlink
5
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02006libdir() {
Dave Reisnerb7d830b2012-06-08 13:17:28 -04007 (cd "$1/$(gcc -print-multi-os-directory)"; pwd)
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02008}
9
10args="--prefix=/usr \
11--sysconfdir=/etc \
Lucas De Marchi63dc8322012-01-09 13:00:28 -020012--libdir=$(libdir /usr/lib)"
Lucas De Marchiecd40ee2011-11-21 12:35:15 -020013
Lucas De Marchi21e14d32012-01-11 17:54:05 -020014hackargs="--enable-debug --with-xz --with-zlib"
Lucas De Marchiae2612e2012-01-09 13:26:06 -020015
Lucas De Marchi21e14d32012-01-11 17:54:05 -020016cat <<EOC
17
18----------------------------------------------------------------
19Initialized build system. For a common configuration please run:
20----------------------------------------------------------------
21
22./configure CFLAGS='-g -O2' $args
23
24If you are debugging or hacking on kmod, consider configuring
25like below:
26
Lucas De Marchi6d59d9d2014-03-24 07:58:32 -030027./configure CFLAGS="-g -O2" $args $hackargs
Lucas De Marchi21e14d32012-01-11 17:54:05 -020028
29EOC