~ubuntu-branches/ubuntu/feisty/monodevelop/feisty

« back to all changes in this revision

Viewing changes to Extras/MonoDevelop.Autotools/templates/autogen.sh.template

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-08-18 00:51:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060818005123-5iit07y0j7wjg55f
Tags: 0.11+svn20060818-0ubuntu1
* New SVN snapshot
  + Works with Gtk# 2.9.0
* debian/control:
  + Updated Build-Depends
* debian/patches/use_nunit2.2.dpatch,
  debian/patches/use_real_libs.dpatch:
  + Updated
* debian/patches/versioncontrol_buildfix.dpatch:
  + Fix build failure in the version control addin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
PROJECT=%%NAME%%
 
4
FILE=%%TESTFILE%%
 
5
CONFIGURE=configure.ac
 
6
 
 
7
: ${AUTOCONF=autoconf}
 
8
: ${AUTOHEADER=autoheader}
 
9
: ${AUTOMAKE=automake}
 
10
: ${LIBTOOLIZE=libtoolize}
 
11
: ${ACLOCAL=aclocal}
 
12
: ${LIBTOOL=libtool}
 
13
 
 
14
srcdir=`dirname $0`
 
15
test -z "$srcdir" && srcdir=.
 
16
 
 
17
ORIGDIR=`pwd`
 
18
cd $srcdir
 
19
TEST_TYPE=-f
 
20
aclocalinclude="-I . $ACLOCAL_FLAGS"
 
21
 
 
22
DIE=0
 
23
 
 
24
($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
 
25
        echo
 
26
        echo "You must have autoconf installed to compile $PROJECT."
 
27
        echo "Download the appropriate package for your distribution,"
 
28
        echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
 
29
        DIE=1
 
30
}
 
31
 
 
32
($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
 
33
        echo
 
34
        echo "You must have automake installed to compile $PROJECT."
 
35
        echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
 
36
        echo "(or a newer version if it is available)"
 
37
        DIE=1
 
38
}
 
39
 
 
40
(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
 
41
  ($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
 
42
    echo
 
43
    echo "**Error**: You must have \`libtool' installed to compile $PROJECT."
 
44
    echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
 
45
    echo "(or a newer version if it is available)"
 
46
    DIE=1
 
47
  }
 
48
}
 
49
 
 
50
if test "$DIE" -eq 1; then
 
51
        exit 1
 
52
fi
 
53
                                                                                
 
54
#test $TEST_TYPE $FILE || {
 
55
#        echo "You must run this script in the top-level $PROJECT directory"
 
56
#        exit 1
 
57
#}
 
58
 
 
59
if test -z "$*"; then
 
60
        echo "I am going to run ./configure with no arguments - if you wish "
 
61
        echo "to pass any to it, please specify them on the $0 command line."
 
62
fi
 
63
 
 
64
case $CC in
 
65
*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
 
66
esac
 
67
 
 
68
(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
 
69
    echo "Running $LIBTOOLIZE ..."
 
70
    $LIBTOOLIZE --force --copy
 
71
}
 
72
 
 
73
echo "Running $ACLOCAL $aclocalinclude ..."
 
74
$ACLOCAL $aclocalinclude
 
75
 
 
76
echo "Running $AUTOMAKE --gnu $am_opt ..."
 
77
$AUTOMAKE --add-missing --gnu $am_opt
 
78
 
 
79
echo "Running $AUTOCONF ..."
 
80
$AUTOCONF
 
81
 
 
82
echo Running $srcdir/configure $conf_flags "$@" ...
 
83
$srcdir/configure --enable-maintainer-mode $conf_flags "$@" \
 
84