Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 76 lines (57 sloc) 1.437 kb
2163055 @pipelka autogen.sh: check for needed binaries
authored
1 found_bin=""
2
3 checkbin() {
4 echo -n "Checking for $1 ... "
5 found_bin=`which $1`
6
7 if [ "x$found_bin" != "x" ] ; then
8 echo $found_bin
9 return 0
10 fi
11
12 echo "not found !"
13 return 1
14 }
15
16 # check for libtoolize
17
18 checkbin libtoolize || {
19 checkbin glibtoolize || {
20 echo "neither \"libtoolize\" nor \"glibtoolize\" found !"
21 exit 1
22 }
23 }
24 LIBTOOLIZE=$found_bin
25
26 # check for aclocal
27
28 checkbin aclocal || {
29 exit 1
30 }
31 ACLOCAL=$found_bin
32
33 # check for automake
34
35 checkbin automake || {
36 exit 1
37 }
38 AUTOMAKE=$found_bin
39
40 # check for autoconf
41
42 checkbin autoconf || {
43 exit 1
44 }
45 AUTOCONF=$found_bin
46
47 echo
48
7a1696d @pipelka added build scripts
authored
49 echo "Generating build information ..."
50 cd `dirname $0`
51 aclocalinclude="$ACLOCAL_FLAGS"
52 mkdir -p autotools
53
54 echo "Running libtoolize ..."
2163055 @pipelka autogen.sh: check for needed binaries
authored
55 $LIBTOOLIZE --copy --force --automake || exit 1
7a1696d @pipelka added build scripts
authored
56
57 echo "Running aclocal $aclocalinclude ..."
2163055 @pipelka autogen.sh: check for needed binaries
authored
58 $ACLOCAL $aclocalinclude || {
7a1696d @pipelka added build scripts
authored
59 echo
60 echo "**Error**: aclocal failed. This may mean that you have not"
61 echo "installed all of the packages you need, or you may need to"
62 echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
63 echo "for the prefix where you installed the packages whose"
64 echo "macros were not found"
65 exit 1
66 }
67
68 echo "Running automake ..."
2163055 @pipelka autogen.sh: check for needed binaries
authored
69 $AUTOMAKE -c -a --foreign || ( echo "***ERROR*** automake failed." ; exit 1 )
7a1696d @pipelka added build scripts
authored
70
71 echo "Running autoconf ..."
2163055 @pipelka autogen.sh: check for needed binaries
authored
72 $AUTOCONF || ( echo "***ERROR*** autoconf failed." ; exit 1 )
7a1696d @pipelka added build scripts
authored
73
74 echo
75 echo "Please run ./configure now."
Something went wrong with that request. Please try again.