diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-01-14 10:59:36 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-01-14 10:59:36 +0000 |
commit | aa7bbf0e9b00afeeab12fb092b62976cf24fb439 (patch) | |
tree | c18d4ee9d969c2fca65036c7d9194d0961df61a3 /Build/source/libs/gd/libgd-2.1.1/bootstrap.sh | |
parent | 51f86fe156c11e441cc74238dc38b99f9576d1a9 (diff) |
libgd 2.1.1
git-svn-id: svn://tug.org/texlive/trunk@36054 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.1/bootstrap.sh')
-rwxr-xr-x | Build/source/libs/gd/libgd-2.1.1/bootstrap.sh | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.1/bootstrap.sh b/Build/source/libs/gd/libgd-2.1.1/bootstrap.sh new file mode 100755 index 00000000000..dac639eeaa4 --- /dev/null +++ b/Build/source/libs/gd/libgd-2.1.1/bootstrap.sh @@ -0,0 +1,53 @@ +#!/bin/sh -- +# $Id$ +# Small shell script to build gd from source + +# Generate the manual (unless naturaldocs isn't installed). Source +# dists should include the docs so that end users don't need to +# install naturaldocs. At the same time, we tolerate it being missing +# so that random hackers don't need it just to build the code. +if which naturaldocs > /dev/null; then + echo "Generation user docs:" + (cd docs/naturaldocs; bash run_docs.sh) +else + echo "Can't find naturaldocs; not generating user manual." +fi + + +# allow importing from the environment, e.g. +# "AUTOCONF=autoconf259 ... ./bootstrap.sh" +if echo $OSTYPE | grep -q '^darwin' ; then + echo Having trouble on OS X? Try brew install autoconf libtool automake gettext apple-gcc42 pkg-config cmake + LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize} +fi +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 |