2012-01-10 04:34:15 +04:00
#!/bin/sh -e
2008-07-30 03:45:23 +04:00
2012-01-05 22:22:03 +04:00
if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
2012-01-10 04:34:15 +04:00
cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
chmod +x .git/hooks/pre-commit && \
echo "Activated pre-commit hook."
2012-01-05 22:22:03 +04:00
fi
2009-06-15 15:22:21 +04:00
gtkdocize
2008-12-29 07:47:53 +03:00
autoreconf --install --symlink
2008-07-30 03:45:23 +04:00
2009-06-17 04:25:07 +04:00
libdir( ) {
2012-01-10 04:34:15 +04:00
echo $( cd $1 /$( gcc -print-multi-os-directory) ; pwd )
2009-06-17 04:25:07 +04:00
}
2011-12-25 23:41:52 +04:00
args = " \
--prefix= /usr \
--with-rootprefix= \
2009-06-17 04:25:07 +04:00
--sysconfdir= /etc \
2011-12-23 06:40:31 +04:00
--bindir= /sbin \
2009-06-17 04:25:07 +04:00
--libdir= $( libdir /usr/lib) \
2011-12-23 06:40:31 +04:00
--with-rootlibdir= $( libdir /lib) \
2012-01-05 22:13:41 +04:00
--libexecdir= /lib \
2011-12-23 16:38:46 +04:00
--with-systemdsystemunitdir= /lib/systemd/system \
2009-06-17 04:25:07 +04:00
--with-selinux \
--enable-gtk-doc"
2009-06-16 16:19:19 +04:00
2011-12-23 16:38:46 +04:00
echo
2012-01-10 02:17:56 +04:00
echo "----------------------------------------------------------------"
echo "Initialized build system. For a common configuration please run:"
echo "----------------------------------------------------------------"
2011-12-23 16:38:46 +04:00
echo
2012-01-10 05:05:08 +04:00
echo " ./configure CFLAGS='-g -O1' $args "
2011-12-23 16:38:46 +04:00
echo