File: bootstrap

package info (click to toggle)
kmod 18-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,092 kB
  • ctags: 1,586
  • sloc: ansic: 13,387; xml: 1,848; makefile: 430; sh: 209; python: 7
file content (29 lines) | stat: -rwxr-xr-x 679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh -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