diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2012-11-15 14:51:20 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-11-15 14:51:20 -0500 |
commit | b7b2cc298c71189c881150723708b49ca4c6112c (patch) | |
tree | 2b5c0b388bbe7cb9b66984a8baf3f00bc3620ff1 /autogen.sh | |
parent | 7d4a62f8c1404ed426500b97af03d4ef8d034a71 (diff) |
Initial revamping of the build system
This is the first pass attempting to keep as much of the build system
as is necessary for only udev from the fork. Emphasis was given to
configure.ac. Gutting had to be done to Makefile.am but this needs
work to be broken out into SUBDIR Makefile.am which each address those
pieces.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 70 |
1 files changed, 6 insertions, 64 deletions
diff --git a/autogen.sh b/autogen.sh index 33d8fcda23..a4d6b8eaaf 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,67 +1,9 @@ #!/bin/sh -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. -# -# systemd is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with systemd; If not, see <http://www.gnu.org/licenses/>. - set -e - -if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then - # This part is allowed to fail - cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ - chmod +x .git/hooks/pre-commit && \ - echo "Activated pre-commit hook." || : -fi - -if which gtkdocize >/dev/null 2>/dev/null; then - gtkdocize --docdir docs/ - gtkdocargs=--enable-gtk-doc -else - echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation." - rm -f docs/gtk-doc.make - echo 'EXTRA_DIST =' > docs/gtk-doc.make -fi - -intltoolize --force --automake -autoreconf --force --install --symlink - -libdir() { - echo $(cd "$1/$(gcc -print-multi-os-directory)"; pwd) -} - -args="\ ---sysconfdir=/etc \ ---localstatedir=/var \ ---libdir=$(libdir /usr/lib) \ -$gtkdocargs" - -if [ ! -L /bin ]; then -args="$args \ ---with-rootprefix= \ ---with-rootlibdir=$(libdir /lib) \ -" -fi - -if [ "x$1" = "xc" ]; then - ./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args - make clean -else - echo - echo "----------------------------------------------------------------" - echo "Initialized build system. For a common configuration please run:" - echo "----------------------------------------------------------------" - echo - echo "./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args" - echo -fi + +aclocal && \ +autoheader && \ +autoconf && \ +libtoolize --copy && \ +automake --add-missing --copy |