autogen.sh modified.

This commit is contained in:
Roland Jax
2014-01-22 21:22:14 +01:00
parent 0be193b56e
commit 08170378a0
9 changed files with 16 additions and 2322 deletions
+5 -63
View File
@@ -1,64 +1,6 @@
#!/bin/sh
#
# Copyright (C) Roland Jax 2012-2013 <roland.jax@liwest.at>
#
# This file is part of ebusd.
#
# ebusd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ebusd 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ebusd. If not, see http://www.gnu.org/licenses/.
#
#!/bin/sh -e
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
exists()
{
if command $1
then
return 1
else
printf " command not found\n";
exit
fi
}
run()
{
$1
if [ $? -eq 0 ]
then
printf " done\n";
else
printf " command failed\n";
exit
fi
}
printf ">>> aclocal";
exists aclocal
run aclocal
printf ">>> autoconf";
exists autoconf;
run autoconf
printf ">>> autoheader";
exists autoheader
run autoheader
printf ">>> automake";
exists automake
run automake
printf ">>> configure\n";
./configure
printf ">>> make\n";
run make
autoreconf --force --install --verbose "$srcdir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"