lilypond-0.0.39
[lilypond.git] / configure
blobfec8a5617d930894208dcd8848636971e3b91891
1 #!/bin/sh
3 # script to setup library and auto generated files.
5 function setversion() {
6 eval `sed -n 's/^\([A-Z]*\)=\([p0-9].*\)$/\1=\2/p' Variables.make`
7 NEWVER=$MAJVER.$MINVER.$PATCHLEVEL
8 echo
9 echo "Current version ("`pwd`") is $NEWVER"
10 echo
13 MAKE=${MAKE:-make}
14 PREFIX=${PREFIX:-.}
15 NEEDFLOWERVER=1.1.4
17 echo using PREFIX=$PREFIX
18 echo I need Flower version $NEEDFLOWERVER
20 flowertar=flower-$NEEDFLOWERVER
21 here=`pwd`
22 cd ..
24 if [ -x flower ]
25 then
26 echo Found flowerdir
27 else
29 if [ ! -d $flowertar ]
30 then
31 echo "can't find $flowertar"
32 exit 1;
34 rm flower
35 ln -s $flowertar flower
38 echo Compiling Library
40 cd flower;
41 setversion
42 if [ $NEWVER != $NEEDFLOWERVER ]; then
43 echo "You seem to be having an incorrect version of the Flower library"
44 else
45 echo "You got the correct Flower version."
47 $MAKE
50 cd $here
52 echo '#define LIBDIR "'$PREFIX'/"'> hdr/config.hh
53 touch Site.make
54 $MAKE -f Initial.make
56 echo "The sources are ready for compiling. "
57 echo "To make sure that you don't have any stale dependencies: do"
58 echo " make clean"