3 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
5 echo "You must have autoconf installed to generate the build system."
9 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
11 echo "You must have libtool installed to generate the build system."
15 (autoheader --version) < /dev/null > /dev/null 2>&1 || {
17 echo "You must have autoheader installed to generate the build system."
21 (automake --version) < /dev/null > /dev/null 2>&1 || {
23 echo "You must have automake installed to generate the build system."
28 test -f udev/udevd.c || {
29 echo "You must run this script in the top-level source directory"
33 echo " aclocal: $(aclocal --version | head -1)"
35 echo " autoconf: $(autoconf --version | head -1)"
37 echo " libtool: $(automake --version | head -1)"
39 echo " autoheader: $(autoheader --version | head -1)"
41 echo " automake: $(automake --version | head -1)"
42 automake --add-missing
45 -Wmissing-declarations -Wmissing-prototypes \
46 -Wnested-externs -Wpointer-arith \
47 -Wpointer-arith -Wsign-compare -Wchar-subscripts \
48 -Wstrict-prototypes -Wshadow"
50 args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux"
51 libdir=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd))
55 args="$args --with-libdir-name=$libdir"
56 export CFLAGS="$CFLAGS -O2"
57 echo " configure: $args"
62 args="$args --enable-debug --with-libdir-name=$libdir"
63 export CFLAGS="$CFLAGS -O0"
64 echo " configure: $args"
71 find . -name Makefile.in | xargs -r rm
72 rm -f depcomp aclocal.m4 config.h.in configure install-sh
73 rm -f missing config.guess config.sub ltmain.sh
77 echo "Usage: $0 [--install|--devel|--clean]"