chiark / gitweb /
udevadm: test - print list of properties
[elogind.git] / autogen.sh
1 #!/bin/sh -e
2
3 gtkdocize
4 autoreconf --install --symlink
5
6 MYCFLAGS="-g -Wall \
7 -Wmissing-declarations -Wmissing-prototypes \
8 -Wnested-externs -Wpointer-arith \
9 -Wpointer-arith -Wsign-compare -Wchar-subscripts \
10 -Wstrict-prototypes -Wshadow \
11 -Wformat=2 -Wtype-limits"
12
13 case "$CFLAGS" in
14         *-O[0-9]*)
15                 ;;
16         *)
17                 MYCFLAGS="$MYCFLAGS -O2"
18                 ;;
19 esac
20
21 libdir() {
22         echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
23 }
24
25 args="--prefix=/usr \
26 --sysconfdir=/etc \
27 --sbindir=/sbin \
28 --libdir=$(libdir /usr/lib) \
29 --with-rootlibdir=$(libdir /lib) \
30 --libexecdir=/lib/udev \
31 --with-selinux \
32 --enable-gtk-doc"
33
34 export CFLAGS="$CFLAGS $MYCFLAGS"
35 ./configure $args $@