/[gcjwebplugin]/gcjwebplugin/autogen.sh
ViewVC logotype

Diff of /gcjwebplugin/autogen.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by mkoch, Sun Jun 27 12:49:40 2004 UTC revision 1.12 by fitzsim, Tue Jul 6 02:26:17 2004 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    # Run this to generate all the initial makefiles, etc.
3    
4  set -e  srcdir=`dirname $0`
5    test -z "$srcdir" && srcdir=.
6    
7  echo "libtoolize ..."  ORIGDIR=`pwd`
8  libtoolize --force --copy  cd $srcdir
9    PROJECT=gcjwebplugin
10  echo "aclocal ..."  TEST_TYPE=-f
11  aclocal  FILE=src/gcjwebplugin.cc
12    
13  echo "autoheader ..."  DIE=0
14  autoheader  
15    have_libtool=false
16  echo "automake ..."  if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
17  automake --add-missing          libtool_version=`libtoolize --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
18            case $libtool_version in
19  echo "autoconf ..."              1.5*)
20  autoconf                  have_libtool=true
21                    ;;
22  echo "Finished"          esac
23    fi
24    if $have_libtool ; then : ; else
25            echo
26            echo "You must have libtool 1.5 installed to compile $PROJECT."
27            echo "Install the appropriate package for your distribution,"
28            echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
29            DIE=1
30    fi
31    
32    (autoconf --version) < /dev/null > /dev/null 2>&1 || {
33            echo
34            echo "You must have autoconf installed to compile $PROJECT."
35            echo "Install the appropriate package for your distribution,"
36            echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
37            DIE=1
38    }
39    
40    if automake-1.8 --version < /dev/null > /dev/null 2>&1 ; then
41        AUTOMAKE=automake-1.8
42        ACLOCAL=aclocal-1.8
43    else
44            echo
45            echo "You must have automake 1.8 installed to compile $PROJECT."
46            echo "Install the appropriate package for your distribution,"
47            echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
48            DIE=1
49    fi
50    
51    if test "$DIE" -eq 1; then
52            exit 1
53    fi
54    
55    test $TEST_TYPE $FILE || {
56            echo "You must run this script in the top-level $PROJECT directory"
57            exit 1
58    }
59    
60    if test -z "$AUTOGEN_SUBDIR_MODE"; then
61            if test -z "$*"; then
62                    echo "I am going to run ./configure with no arguments - if you wish "
63                    echo "to pass any to it, please specify them on the $0 command line."
64            fi
65    fi
66    
67    if test -z "$ACLOCAL_FLAGS"; then
68    
69            acdir=`$ACLOCAL --print-ac-dir`
70            m4list="glib-2.0.m4 glib-gettext.m4"
71    
72            for file in $m4list
73            do
74                    if [ ! -f "$acdir/$file" ]; then
75                            echo "WARNING: aclocal's directory is $acdir, but..."
76                            echo "         no file $acdir/$file"
77                            echo "         You may see fatal macro warnings below."
78                            echo "         If these files are installed in /some/dir, set the ACLOCAL_FLAGS "
79                            echo "         environment variable to \"-I /some/dir\", or install"
80                            echo "         $acdir/$file."
81                            echo ""
82                    fi
83            done
84    fi
85    
86    $ACLOCAL $ACLOCAL_FLAGS || exit $?
87    
88    libtoolize --force || exit $?
89    
90    autoheader || exit $?
91    
92    $AUTOMAKE --add-missing || exit $?
93    autoconf || exit $?
94    cd $ORIGDIR || exit $?
95    
96    if test -z "$AUTOGEN_SUBDIR_MODE"; then
97            $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
98    
99            echo
100            echo "Now type 'make' to compile $PROJECT."
101    fi

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26