Changeset 130

Show
Ignore:
Timestamp:
12/06/02 16:01:38 (6 years ago)
Author:
jajcus
Message:

- simplified

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/autogen.sh

    r68 r130  
    11#!/bin/sh 
    2 # Run this to generate all the initial makefiles, etc. 
    32 
    43( cd libxode ; ./autogen.sh ) || exit 1 
    54 
    6 PROJECT=jabber-gg-transport 
    7 TEST_TYPE=-r 
    8 FILE=configure.ac 
    9  
    10 DIE=0 
    11  
    12 (autoconf --version) < /dev/null > /dev/null 2>&1 || { 
    13         echo 
    14         echo "You must have autoconf installed to compile $PROJECT." 
    15         echo "Download the appropriate package for your distribution," 
    16         echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 
    17         DIE=1 
    18 } 
    19  
    20 (libtool --version) < /dev/null > /dev/null 2>&1 || { 
    21         echo 
    22         echo "You must have libtool installed to compile $PROJECT." 
    23         echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz" 
    24         echo "(or a newer version if it is available)" 
    25         DIE=1 
    26 } 
    27  
    28 (automake --version) < /dev/null > /dev/null 2>&1 || { 
    29         echo 
    30         echo "You must have automake installed to compile $PROJECT." 
    31         echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz" 
    32         echo "(or a newer version if it is available)" 
    33         DIE=1 
    34 } 
    35  
    36 if test "$DIE" -eq 1; then 
    37         exit 1 
    38 fi 
    39  
    40 test $TEST_TYPE $FILE || { 
    41         echo "You must run this script in the top-level $PROJECT directory" 
    42         exit 1 
    43 } 
    44  
    45 if test -z "$*"; then 
    46         echo "I am going to run ./configure with no arguments - if you wish " 
    47         echo "to pass any to it, please specify them on the $0 command line." 
    48 fi 
    49  
    50 case $CC in 
    51 *lcc | *lcc\ *) am_opt=--include-deps;; 
    52 esac 
    53  
    54 #echo "Running gettextize...  Ignore non-fatal messages." 
    55 # Hmm, we specify --force here, since otherwise things don't 
    56 # get added reliably, but we don't want to overwrite intl 
    57 # while making dist. 
    58 # echo "no" | gettextize --copy --force 
    59  
    60 echo "Running libtoolize" 
    615libtoolize --copy --force 
    62  
    63 aclocal $ACLOCAL_FLAGS 
    64  
    65 # optionally feature autoheader 
    66 (autoheader --version)  < /dev/null > /dev/null 2>&1 && autoheader 
    67  
    68 automake -a $am_opt 
     6aclocal  
     7autoheader 
     8automake -a  
    699autoconf 
    70  
    71 ./configure --with-efence "$@" 
    72  
    73 echo  
    74 echo "Now type 'make' to compile $PROJECT." 
    75