]>
Commit | Line | Data |
---|---|---|
01618658 KS |
1 | #!/bin/sh -e |
2 | ||
12dda308 | 3 | autoreconf --install --symlink |
01618658 | 4 | |
b929e83a | 5 | CFLAGS="-g -Wall \ |
e231a5db KS |
6 | -Wmissing-declarations -Wmissing-prototypes \ |
7 | -Wnested-externs -Wpointer-arith \ | |
8 | -Wpointer-arith -Wsign-compare -Wchar-subscripts \ | |
9dc4a84a KS |
9 | -Wstrict-prototypes -Wshadow \ |
10 | -Wformat=2 -Wtype-limits" | |
5d89ef7b KS |
11 | args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux" |
12 | libdir=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd)) | |
13 | ||
14 | case "$1" in | |
15 | *install|"") | |
16 | args="$args --with-libdir-name=$libdir" | |
17 | export CFLAGS="$CFLAGS -O2" | |
18 | echo " configure: $args" | |
19 | echo | |
20 | ./configure $args | |
21 | ;; | |
22 | *devel) | |
23 | args="$args --enable-debug --with-libdir-name=$libdir" | |
24 | export CFLAGS="$CFLAGS -O0" | |
25 | echo " configure: $args" | |
26 | echo | |
27 | ./configure $args | |
28 | ;; | |
29 | *clean) | |
30 | ./configure | |
31 | make maintainer-clean | |
d4e7bda7 | 32 | git clean -f -X |
5d89ef7b KS |
33 | exit 0 |
34 | ;; | |
35 | *) | |
36 | echo "Usage: $0 [--install|--devel|--clean]" | |
37 | exit 1 | |
38 | ;; | |
39 | esac |