3 # Copyright 2005, 2006, 2007, 2008 by
4 # David Turner, Robert Wilhelm, and Werner Lemberg.
6 # This file is part of the FreeType project, and may only be used, modified,
7 # and distributed under the terms of the FreeType project license,
8 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
9 # indicate that you have read the license and understand and accept it
17 if test $?
!= 0 ; then
18 echo "error while running \`$*'"
23 if test ! -f .
/builds
/unix
/configure.raw
; then
24 echo "You must be in the same directory as \`autogen.sh'."
25 echo "Bootstrapping doesn't work if srcdir != builddir."
29 # This sets freetype_major, freetype_minor, and freetype_patch.
30 eval `sed -nf version.sed include/freetype/freetype.h`
32 # We set freetype-patch to an empty value if it is zero.
33 if test "$freetype_patch" = ".0"; then
39 echo "generating \`configure.ac'"
40 sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
41 < configure.raw
> configure.ac
43 # On MacOS X, the GNU libtool is named `glibtool'.
46 if test "$HOSTOS"x
= Darwinx
; then
47 LIBTOOLIZE
=glibtoolize
50 run aclocal
-I .
--force
51 run
$LIBTOOLIZE --force --copy --install
54 chmod +x mkinstalldirs