aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ode-0.9/autogen.sh')
-rwxr-xr-xlibraries/ode-0.9/autogen.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/libraries/ode-0.9/autogen.sh b/libraries/ode-0.9/autogen.sh
new file mode 100755
index 0000000..68a9759
--- /dev/null
+++ b/libraries/ode-0.9/autogen.sh
@@ -0,0 +1,42 @@
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"