Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ode/ode-0.9/autogen.sh @ 216

Last change on this file since 216 was 216, checked in by mathiask, 16 years ago

[Physik] add ode-0.9

File size: 1.3 KB
Line 
1#!/bin/sh
2
3# The version nr detection is not working.
4# It fails if there is a '-' char in the version nr e.g.
5# We should not use it until fixed. - Bram
6
7## The reason this uses sed instead of "grep --only-matches"
8## is because MinGW's grep is an old version and does not contain that flag.
9#automake_version=`automake --version | grep --regexp='[+0-9].[+0-9].[+0-9]' | sed -n 's/[* ()A-Za-z]//g;p'`
10#automake_mayor=${automake_version%.*.*}
11#automake_minor=${automake_version%.*}
12#automake_minor=${automake_minor##*.}
13#automake_revision=${automake_version##*.}
14#echo "AutoMake Version: $automake_mayor.$automake_minor.$automake_revision"
15#
16#if [ $automake_mayor -eq 1 ]; then
17#    if [ $automake_minor -lt 8 ]; then
18#       echo "Automake must be 1.8.2 or higher, please upgrade"
19#       exit
20#    else
21#       if [ $automake_minor -eq 8 ] && [ $automake_revision -lt 2 ]; then
22#           echo "Automake must be 1.8.2 or higher, please upgrade"
23#           exit
24#       fi
25#    fi
26#fi
27
28echo "Please make sure that you use automake 1.8.2 or later"
29echo "Warnings about underquoted definitions are harmless"
30 
31echo "Running aclocal"
32aclocal -I . || exit 1
33echo "Running autoheader"
34autoheader || exit 1
35echo "Running automake"
36automake --foreign --include-deps --add-missing --copy || exit 1
37echo "Running autoconf"
38autoconf || exit 1
39
40#./configure $*
41
42echo "Now you are ready to run ./configure"
Note: See TracBrowser for help on using the repository browser.