2008-07-29 16:45:23 -07:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2009-06-15 04:22:21 -07:00
|
|
|
gtkdocize
|
2008-12-28 20:47:53 -08:00
|
|
|
autoreconf --install --symlink
|
2008-07-29 16:45:23 -07:00
|
|
|
|
2009-06-16 12:29:13 -07:00
|
|
|
MYCFLAGS="-g -Wall \
|
2008-08-12 02:19:32 -07:00
|
|
|
-Wmissing-declarations -Wmissing-prototypes \
|
|
|
|
-Wnested-externs -Wpointer-arith \
|
|
|
|
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
|
2009-02-05 10:01:27 -08:00
|
|
|
-Wstrict-prototypes -Wshadow \
|
|
|
|
-Wformat=2 -Wtype-limits"
|
2008-12-05 19:03:08 -08:00
|
|
|
|
2009-06-16 12:29:13 -07:00
|
|
|
case "$CFLAGS" in
|
|
|
|
*-O[0-9]*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
MYCFLAGS="$MYCFLAGS -O2"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2009-06-16 17: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 05:19:19 -07:00
|
|
|
|
2009-06-16 12:29:13 -07:00
|
|
|
export CFLAGS="$CFLAGS $MYCFLAGS"
|
2009-06-16 05:19:19 -07:00
|
|
|
./configure $args $@
|