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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

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