summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-2.1.0-rc1/bootstrap.sh
blob: 3092064cfcfb18d4610cd56515352599bb76dde5 (plain)
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 --
# $Id$
# Small shell script to build gd from source

# allow importing from the environment, e.g.
# "AUTOCONF=autoconf259 ... ./bootstrap.sh"
ACLOCAL=${ACLOCAL:-aclocal}
AUTOCONF=${AUTOCONF:-autoconf}
AUTOHEADER=${AUTOHEADER:-autoheader}
AUTOMAKE=${AUTOMAKE:-automake}
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}

# might handle this differently
AUTOMAKE_FLAGS="--add-missing --copy"

#
CLEANFILES="Makefile.in aclocal.m4 autom4te.cache configure libtool config/Makefile.in \
tests/Makefile.in src/Makefile.in"

#
rm -rf ${CLEANFILES}

#
if ${ACLOCAL} -I m4 \
   && ${LIBTOOLIZE} --automake --copy --force \
   && ${ACLOCAL} -I m4 \
   && ${AUTOHEADER} \
   && ${AUTOMAKE} ${AUTOMAKE_FLAGS} \
   && ${AUTOCONF} --force && [ -f configure ]
then
  echo Now run configure and make
else
  echo Failed
  exit 1
fi

exit 0