forked from CUBRID/cubrid-9.3.9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.sh
executable file
·54 lines (48 loc) · 838 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
run ()
{
echo "** Running $1"
(cd $srcdir && eval $*)
if test $? -ne 0 ; then
echo "** ERROR: while running '$*'"
return 1
fi
}
{
run libtoolize --automake --copy
} &&
{
run aclocal -I config
} &&
{
run autoheader
} &&
{
run autoconf --force
} &&
{
run automake --add-missing --copy -Wall
}
if test $? -eq 0 ; then
echo "** SUCCESS: $0 completed"
if test $# -eq 0 ; then
echo
echo "** Please run $srcdir/configure and make to build"
else
echo "** Running $srcdir/configure $@"
$srcdir/configure "$@"
if test $? -eq 0 ; then
echo
echo "** Please run make to compile"
else
echo
echo "** ERROR: while running 'configure'"
exit 1
fi
fi
else
echo "** ERROR: $0 failed"
exit 1
fi