File: autogen.sh

package info (click to toggle)
libgringotts 1.2.1-12
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,664 kB
  • ctags: 261
  • sloc: sh: 9,008; ansic: 2,006; makefile: 83
file content (37 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
# Generate the Makefiles and configure files
if !( aclocal --version ) </dev/null > /dev/null 2>&1; then
    echo "aclocal not found -- aborting"
    exit
fi

if !( autoheader --version ) </dev/null > /dev/null 2>&1; then
    echo "autoheader not found -- aborting"
    exit
fi

if !( automake --version ) </dev/null > /dev/null 2>&1; then
    echo "automake not found -- aborting"
    exit
fi

if !( libtoolize --version ) </dev/null > /dev/null 2>&1; then
    echo "libtoolize not found -- aborting"
    exit
fi

if !( autoconf --version ) </dev/null > /dev/null 2>&1; then
    echo "autoconf not found -- aborting"
    exit
fi
echo "Building macros" && aclocal && \
echo "Building config header template" && autoheader && \
echo "Building Makefiles" && automake -a --copy && \
echo "Building ltmain" && libtoolize --force --copy && \
echo "Building configure" && autoconf
RES=$?
if [ $RES != 0 ]; then
    echo "Autogeneration failed (exit code $RES)"
    exit $RES
fi
echo 'run "./configure; make"'