[svn] / branches / dev-api-4 / xvidcore / build / generic / bootstrap.sh Repository:
ViewVC logotype

Annotation of /branches/dev-api-4/xvidcore/build/generic/bootstrap.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1154 - (view) (download) (as text)

1 : edgomez 825 #!/bin/sh
2 :     #
3 :     # This file builds the configure script and copies all needed files
4 :     # provided by automake/libtoolize
5 :     #
6 : edgomez 1154 # $Id: bootstrap.sh,v 1.3.2.2 2003-09-28 13:21:59 edgomez Exp $
7 : edgomez 825
8 : edgomez 877
9 :     ##############################################################################
10 :     # Detect the right autoconf script
11 :     ##############################################################################
12 :    
13 : edgomez 880 # Find a suitable autoconf
14 : edgomez 950 AUTOCONF="autoconf2.50"
15 :     $AUTOCONF --version 2>/dev/null 1>/dev/null
16 :    
17 : edgomez 880 if [ $? -ne 0 ] ; then
18 : edgomez 950 AUTOCONF="autoconf"
19 : edgomez 1154 $AUTOCONF --version 2>/dev/null 1>/dev/null
20 : edgomez 950
21 : edgomez 880 if [ $? -ne 0 ] ; then
22 : edgomez 1154 echo "'autoconf' not found"
23 : edgomez 880 exit -1
24 : edgomez 877 fi
25 : edgomez 880 fi
26 : edgomez 877
27 : edgomez 880 # Tests the autoconf version
28 :     AC_VER=`$AUTOCONF --version | head -1 | sed 's/'^[^0-9]*'/''/'`
29 :     AC_MAJORVER=`echo $AC_VER | cut -f1 -d'.'`
30 :     AC_MINORVER=`echo $AC_VER | cut -f2 -d'.'`
31 : edgomez 877
32 : edgomez 880 if [ "$AC_MAJORVER" -lt "2" ]; then
33 :     echo "This bootstrapper needs Autoconf >= 2.50 (detected $AC_VER)"
34 :     exit -1
35 :     fi
36 : edgomez 877
37 : edgomez 880 if [ "$AC_MINORVER" -lt "50" ]; then
38 :     echo "This bootstrapper needs Autoconf >= 2.50 (detected $AC_VER)"
39 :     exit -1
40 : edgomez 877 fi
41 :    
42 : edgomez 1154 LIBTOOLIZE="libtoolize"
43 :     $LIBTOOLIZE --version 1>/dev/null 2>/dev/null
44 :    
45 :     if [ $? -ne 0 ] ; then
46 :     LIBTOOLIZE="glibtoolize"
47 :     $LIBTOOLIZE --version 1>/dev/null 2>/dev/null
48 :    
49 :     if [ $? -ne 0 ] ; then
50 :     echo "'libtoolize' not found"
51 :     exit -1
52 :     fi
53 :     fi
54 :    
55 : edgomez 877 ##############################################################################
56 :     # Bootstraps the configure script
57 :     ##############################################################################
58 :    
59 : edgomez 825 echo "Creating ./configure"
60 : edgomez 877 $AUTOCONF
61 : edgomez 825
62 :     echo "Copying files provided by automake"
63 :     automake -c -a 1>/dev/null 2>/dev/null
64 :    
65 :     echo "Copying files provided by libtool"
66 : edgomez 1154 $LIBTOOLIZE -f -c 1>/dev/null 2>/dev/null
67 : edgomez 825
68 :     echo "Removing files that are not needed"
69 :     rm -rf autom4*
70 :     rm -rf ltmain.sh

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4