Systemd/autogen.sh

36 lines
652 B
Bash
Raw Normal View History

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