[svn] / trunk / xvidcore / build / generic / bootstrap.sh Repository:
ViewVC logotype

Annotation of /trunk/xvidcore/build/generic/bootstrap.sh

Parent Directory Parent Directory | Revision Log Revision Log


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

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

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