2008-07-30 06:45:23 +07:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2009-06-15 18:22:21 +07:00
|
|
|
gtkdocize
|
2008-12-29 11:47:53 +07:00
|
|
|
autoreconf --install --symlink
|
2008-07-30 06:45:23 +07:00
|
|
|
|
2009-06-17 02:29:13 +07:00
|
|
|
MYCFLAGS="-g -Wall \
|
2008-08-12 16:19:32 +07:00
|
|
|
-Wmissing-declarations -Wmissing-prototypes \
|
|
|
|
-Wnested-externs -Wpointer-arith \
|
|
|
|
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
|
2009-02-06 01:01:27 +07:00
|
|
|
-Wstrict-prototypes -Wshadow \
|
2011-03-19 23:04:56 +07:00
|
|
|
-Wformat-security -Wtype-limits"
|
2008-12-06 10:03:08 +07:00
|
|
|
|
2009-06-17 02:29:13 +07:00
|
|
|
case "$CFLAGS" in
|
|
|
|
*-O[0-9]*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
MYCFLAGS="$MYCFLAGS -O2"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2009-06-17 07:25:07 +07:00
|
|
|
libdir() {
|
|
|
|
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
|
|
|
|
}
|
|
|
|
|
|
|
|
args="--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--sbindir=/sbin \
|
|
|
|
--libdir=$(libdir /usr/lib) \
|
|
|
|
--with-rootlibdir=$(libdir /lib) \
|
|
|
|
--libexecdir=/lib/udev \
|
|
|
|
--with-selinux \
|
|
|
|
--enable-gtk-doc"
|
2009-06-16 19:19:19 +07:00
|
|
|
|
2009-06-17 02:29:13 +07:00
|
|
|
export CFLAGS="$CFLAGS $MYCFLAGS"
|
2009-06-16 19:19:19 +07:00
|
|
|
./configure $args $@
|