1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-04 22:21:55 +03:00
systemd/autogen.sh

35 lines
656 B
Bash
Executable File

#!/bin/sh -e
gtkdocize
autoreconf --install --symlink
MYCFLAGS="-g -Wall \
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \
-Wformat-security -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"
./configure $args CFLAGS="${CFLAGS} ${MYCFLAGS}" $@