* builds/unix/freetype2.m4: Some portability fixes.

This commit is contained in:
Werner Lemberg 2001-12-12 15:15:44 +00:00
parent fa4ca88346
commit 2f5d1b76ca
4 changed files with 53 additions and 40 deletions

View File

@ -1,3 +1,7 @@
2001-12-12 Werner Lemberg <wl@gnu.org>
* builds/unix/freetype2.m4: Some portability fixes.
2001-12-11 Jouk Jansen <joukj@hrem.stm.tudelft.nl> 2001-12-11 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
* src/base/descrip.mms (OBJS): Add ftdebug.obj. * src/base/descrip.mms (OBJS): Add ftdebug.obj.
@ -13,9 +17,9 @@
* docs/FTL.TXT: Simple fix (change "LICENSE.TXT" to "FTL.TXT"). * docs/FTL.TXT: Simple fix (change "LICENSE.TXT" to "FTL.TXT").
* builds/unix/freetype2.m4: Added autoconf macro; we need to install * builds/unix/freetype2.m4: New file for checking configure paths.
it in $(prefix)/share/aclocal/freetype2.m4 but I didn't modify We need to install it in $(prefix)/share/aclocal/freetype2.m4 but I
builds/unix/install.mk yet. didn't modify builds/unix/install.mk yet.
* INSTALL: Updated the instructions to build shared libraries with * INSTALL: Updated the instructions to build shared libraries with
Jam. They were simply wrong. Jam. They were simply wrong.

View File

@ -14,8 +14,10 @@ AC_ARG_WITH(freetype-prefix,
AC_ARG_WITH(freetype-exec-prefix, AC_ARG_WITH(freetype-exec-prefix,
[ --with-ft-exec-prefix=PFX Exec prefix where FreeType is installed (optional)], [ --with-ft-exec-prefix=PFX Exec prefix where FreeType is installed (optional)],
ft_config_exec_prefix="$withval", ft_config_exec_prefix="") ft_config_exec_prefix="$withval", ft_config_exec_prefix="")
AC_ARG_ENABLE(freetypetest, [ --disable-freetypetest Do not try to compile and run a test FreeType program],[], AC_ARG_ENABLE(freetypetest,
enable_fttest=yes) [ --disable-freetypetest Do not try to compile and run
a test FreeType program],
[], enable_fttest=yes)
if test x$ft_config_exec_prefix != x ; then if test x$ft_config_exec_prefix != x ; then
ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix" ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
@ -52,15 +54,23 @@ else
ft_min_micro_version=`echo $min_ft_version | \ ft_min_micro_version=`echo $min_ft_version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_fttest" = "xyes" ; then if test "x$enable_fttest" = "xyes" ; then
ft_config_version=$(( \ ft_config_is_lt=no
$ft_config_major_version*10000 + \ if test $ft_config_major_version -lt $ft_min_major_version ; then
$ft_config_minor_version*100 + \ ft_config_is_lt=yes
$ft_config_micro_version)) else
ft_min_version=$(( \ if test $ft_config_major_version -eq $ft_min_major_version ; then
$ft_min_major_version*10000 + \ if test $ft_config_minor_version -lt $ft_min_minor_version ; then
$ft_min_minor_version*100 + \ ft_config_is_lt=yes
$ft_min_micro_version)) else
if test $ft_config_version -lt $ft_min_version ; then if test $ft_config_minor_version -eq $ft_min_minor_version ; then
if test $ft_config_micro_version -lt $ft_min_micro_version ; then
ft_config_is_lt=yes
fi
fi
fi
fi
fi
if test "x$ft_config_is_lt" = "xyes" ; then
ifelse([$3], , :, [$3]) ifelse([$3], , :, [$3])
else else
ac_save_CFLAGS="$CFLAGS" ac_save_CFLAGS="$CFLAGS"
@ -68,7 +78,7 @@ else
CFLAGS="$CFLAGS $FT2_CFLAGS" CFLAGS="$CFLAGS $FT2_CFLAGS"
LIBS="$FT2_LIBS $LIBS" LIBS="$FT2_LIBS $LIBS"
dnl dnl
dnl Sanity checks the results of freetype-config to some extent dnl Sanity checks for the results of freetype-config to some extent
dnl dnl
AC_TRY_RUN([ AC_TRY_RUN([
#include <ft2build.h> #include <ft2build.h>
@ -77,20 +87,20 @@ dnl
#include <stdlib.h> #include <stdlib.h>
int int
main () main()
{ {
FT_Library library; FT_Library library;
FT_Error error; FT_Error error;
error = FT_Init_FreeType( &library ); error = FT_Init_FreeType(&library);
if ( error ) if (error)
{ return 1;
return 1; else
} else { {
FT_Done_FreeType( library ); FT_Done_FreeType(library);
return 0; return 0;
} }
} }
],, no_ft=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) ],, no_ft=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS" CFLAGS="$ac_save_CFLAGS"
@ -104,8 +114,8 @@ if test "x$no_ft" = x ; then
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
if test "$FT2_CONFIG" = "no" ; then if test "$FT2_CONFIG" = "no" ; then
echo "*** The freetype-config script installed by FT2 could not be found" echo "*** The freetype-config script installed by FreeType 2 could not be found."
echo "*** If FT2 was installed in PREFIX, make sure PREFIX/bin is in" echo "*** If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the FT2_CONFIG environment variable to the" echo "*** your path, or set the FT2_CONFIG environment variable to the"
echo "*** full path to freetype-config." echo "*** full path to freetype-config."
else else

View File

@ -1,16 +1,15 @@
LATEST CHANGES BETWEEN 2.0.6 and 2.0.5 LATEST CHANGES BETWEEN 2.0.6 and 2.0.5
- the caching sub-system has been completely re-designed and its API - The caching sub-system has been completely re-designed, and its API has
has evolved (the old one is still supported for bacwards compatibility evolved (the old one is still supported for backwards).
though..)
- a new charmap cache is provided too - A new charmap cache is provided too.
- A new Postscript hinter module has been added to support native hints in - A new Postscript hinter module has been added to support native hints in
the following formats: Postscript Type 1, Postscript CID and CFF/CEF. the following formats: Postscript Type 1, Postscript CID and CFF/CEF.
(For now, only the Type 1 driver uses it; the "cid" and "cff" drivers For now, only the Type 1 driver uses it; the "cid" and "cff" drivers
will be updated shortly.) will be updated shortly.
- "glnames.py" still contained a bug that made FreeType return invalid - "glnames.py" still contained a bug that made FreeType return invalid
names for certain glyphs. names for certain glyphs.

View File

@ -93,12 +93,12 @@ Legal Terms
authorize others to exercise some or all of the rights granted authorize others to exercise some or all of the rights granted
herein, subject to the following conditions: herein, subject to the following conditions:
o Redistribution of source code must retain this license file o Redistribution of source code must retain this license file
(`FTL.TXT') unaltered; any additions, deletions or changes (`FTL.TXT') unaltered; any additions, deletions or changes to
to the original files must be clearly indicated in the original files must be clearly indicated in accompanying
accompanying documentation. The copyright notices of the documentation. The copyright notices of the unaltered,
unaltered, original files must be preserved in all copies of original files must be preserved in all copies of source
source files. files.
o Redistribution in binary form must provide a disclaimer that o Redistribution in binary form must provide a disclaimer that
states that the software is based in part of the work of the states that the software is based in part of the work of the