|
Packit Service |
88ab54 |
#!/bin/sh
|
|
Packit Service |
88ab54 |
# Run this to generate all the initial makefiles, etc.
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
PROJECT=lasso
|
|
Packit Service |
88ab54 |
TEST_TYPE=-f
|
|
Packit Service |
88ab54 |
FILE=lasso.pc.in
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
# a silly hack that generates autoregen.sh but it's handy
|
|
Packit Service |
88ab54 |
echo "#!/bin/sh" > autoregen.sh
|
|
Packit Service |
88ab54 |
echo "./autogen.sh $@ \$@" >> autoregen.sh
|
|
Packit Service |
88ab54 |
chmod +x autoregen.sh
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
DIE=0
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
srcdir=`dirname $0`
|
|
Packit Service |
88ab54 |
test -z "$srcdir" && srcdir=.
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
THEDIR="`pwd`"
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
cd "$srcdir"
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
Packit Service |
88ab54 |
echo
|
|
Packit Service |
88ab54 |
echo "You must have autoconf installed to compile $PROJECT."
|
|
Packit Service |
88ab54 |
echo "Download the appropriate package for your distribution,"
|
|
Packit Service |
88ab54 |
echo "or get the source tarball at ftp://ftp.gnu.org/gnu/autoconf/"
|
|
Packit Service |
88ab54 |
DIE=1
|
|
Packit Service |
88ab54 |
}
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
if automake-1.16 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.16
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.16
|
|
Packit Service |
88ab54 |
elif automake-1.15 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.15
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.15
|
|
Packit Service |
88ab54 |
elif automake-1.14 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.14
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.14
|
|
Packit Service |
88ab54 |
elif automake-1.13 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.13
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.13
|
|
Packit Service |
88ab54 |
elif automake-1.12 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.12
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.12
|
|
Packit Service |
88ab54 |
elif automake-1.11 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.11
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.11
|
|
Packit Service |
88ab54 |
elif automake-1.10 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.10
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.10
|
|
Packit Service |
88ab54 |
elif automake-1.9 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.9
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.9
|
|
Packit Service |
88ab54 |
elif automake-1.8 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.8
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.8
|
|
Packit Service |
88ab54 |
elif automake-1.7 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.7
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.7
|
|
Packit Service |
88ab54 |
elif automake-1.6 --version < /dev/null > /dev/null 2>&1; then
|
|
Packit Service |
88ab54 |
AUTOMAKE=automake-1.6
|
|
Packit Service |
88ab54 |
ACLOCAL=aclocal-1.6
|
|
Packit Service |
88ab54 |
else
|
|
Packit Service |
88ab54 |
echo
|
|
Packit Service |
88ab54 |
echo "You must have automake installed to compile $PROJECT."
|
|
Packit Service |
88ab54 |
echo "Download the appropriate package for your distribution,"
|
|
Packit Service |
88ab54 |
echo "or get the source tarball at ftp://ftp.gnu.org/gnu/automake/"
|
|
Packit Service |
88ab54 |
DIE=1
|
|
Packit Service |
88ab54 |
fi
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
if test "$DIE" -eq 1; then
|
|
Packit Service |
88ab54 |
exit 1
|
|
Packit Service |
88ab54 |
fi
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
test $TEST_TYPE $FILE || {
|
|
Packit Service |
88ab54 |
echo "You must run this script in the top-level $PROJECT directory"
|
|
Packit Service |
88ab54 |
exit 1
|
|
Packit Service |
88ab54 |
}
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
if test "$#" = 0; then
|
|
Packit Service |
88ab54 |
echo "I am going to run ./configure with no arguments - if you wish "
|
|
Packit Service |
88ab54 |
echo "to pass any to it, please specify them on the $0 command line."
|
|
Packit Service |
88ab54 |
fi
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
# to support timj aclocal setup we are shipping gnome-doc-utils.m4
|
|
Packit Service |
88ab54 |
# and making sure automake picks it up ;)
|
|
Packit Service |
88ab54 |
# this is bad as -I prepends to the search path
|
|
Packit Service |
88ab54 |
echo "* Running libtoolize"
|
|
Packit Service |
88ab54 |
libtoolize --copy --force
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
GTKDOCIZE=`which gtkdocize`
|
|
Packit Service |
88ab54 |
if test -z $GTKDOCIZE; then
|
|
Packit Service |
88ab54 |
echo "You don't have gtk-doc installed, and thus"
|
|
Packit Service |
88ab54 |
echo "won't be able to generate the documentation."
|
|
Packit Service |
88ab54 |
touch gtk-doc.make
|
|
Packit Service |
88ab54 |
else
|
|
Packit Service |
88ab54 |
echo "* Running gtkdocize"
|
|
Packit Service |
88ab54 |
$GTKDOCIZE --flavour no-tmpl || exit $?
|
|
Packit Service |
88ab54 |
fi
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
echo "* Running $ACLOCAL"
|
|
Packit Service |
88ab54 |
$ACLOCAL $ACLOCAL_FLAGS -I m4 || exit $?
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
echo "* Running autoconf"
|
|
Packit Service |
88ab54 |
autoconf || exit $?
|
|
Packit Service |
88ab54 |
(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
echo "* Running $AUTOMAKE"
|
|
Packit Service |
88ab54 |
$AUTOMAKE --add-missing -Wno-portability $am_opt || exit $?
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
cd "$THEDIR"
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
if [ "$1" != "noconfig" ]; then
|
|
Packit Service |
88ab54 |
$srcdir/configure --enable-gtk-doc --enable-maintainer-mode "$@" || exit $?
|
|
Packit Service |
88ab54 |
fi
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
echo
|
|
Packit Service |
88ab54 |
echo "Now type 'make install' to install $PROJECT."
|