chiark / gitweb /
udevd: remove check for dev_t, DEVPATH_OLD takes care of that
[elogind.git] / autogen.sh
1 #!/bin/sh -e
2
3 autoreconf --install --symlink
4
5 CFLAGS="-g -Wall \
6 -Wmissing-declarations -Wmissing-prototypes \
7 -Wnested-externs -Wpointer-arith \
8 -Wpointer-arith -Wsign-compare -Wchar-subscripts \
9 -Wstrict-prototypes -Wshadow \
10 -Wformat=2 -Wtype-limits"
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
32                 git clean -f -X
33                 exit 0
34                 ;;
35         *)
36                 echo "Usage: $0 [--install|--devel|--clean]"
37                 exit 1
38                 ;;
39 esac