- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------------ ##
-## Report this to the AC_PACKAGE_NAME lists. ##
-## ------------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- eval "$as_ac_Header=\$ac_header_preproc"
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
- HAVE_FREETYPE_FREETYPE_H=1
-fi
-
-done
-
-if test "x${HAVE_LIB_FREETYPE}" != "x";then
-if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
- HAVE_FREETYPE=1
-fi
-fi
-
-if test "x${HAVE_FREETYPE}" = "x1"; then
- if test "x{$FREETYPE_CONFIG}" != "x"; then
- LIBS="$LIBS "`freetype-config --libs`
- else
- LIBS="$LIBS -lfreetype"
- fi
-
- echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
-echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
-
- cat > conftest.c << EOF
-#include <freetype/freetype.h>
-#include <freetype/ftglyph.h>
-#include <freetype/ftsnames.h>
-#include <freetype/ttnameid.h>
-#include <freetype/ftoutln.h>
-
-int main()
-{
- FT_Library ftlibrary;
- FT_Face face;
- FT_Error error;
- FT_ULong charcode;
- FT_UInt gindex;
- FT_Glyph glyph;
- FT_BBox bbox;
- FT_Matrix matrix;
- FT_UInt i;
- char* name = 0;
- char italic, bold;
-
- FT_Init_FreeType(&ftlibrary);
- FT_New_Face(ftlibrary, "filename", 0, &face);
- i = face->num_glyphs - 1;
- italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
- bold = face->style_flags&FT_STYLE_FLAG_BOLD;
- FT_Get_Postscript_Name(face);
- FT_Get_Char_Index(face, 33);
- FT_Get_First_Char(face, &i);
- FT_Get_Next_Char(face, 33, &i);
- if(FT_HAS_GLYPH_NAMES(face)) {
- FT_Get_Glyph_Name(face, 33, name, 127);
- }
- FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
- FT_Get_Glyph(face->glyph, &glyph);
- FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
- FT_Done_Glyph(glyph);
- FT_Done_Face(face);
- FT_Done_FreeType(ftlibrary);
- return 0;
-}
-EOF
-
- ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
- if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
-#define HAVE_FREETYPE 1
-_ACEOF
-
- cat >>confdefs.h <<_ACEOF
-#define USE_FREETYPE 1
-_ACEOF
- # for ttf2tp1
- else
- echo "configure: failed program was:" >&5
- cat conftest.c >&5
- HAVE_FREETYPE=0
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
- fi
- rm -f conftest*
-fi
-
-# if the above didn't work out, reset all changes to the compiler variables.
-if test "x${HAVE_FREETYPE}" "!=" "x1"; then
- CPPFLAGS=$OLDCPPFLAGS
- LIBS=$OLDLIBS
-fi
-
-
-
-echo "$as_me:$LINENO: checking for byte order" >&5
-echo $ECHO_N "checking for byte order... $ECHO_C" >&6
-if test "$cross_compiling" = yes; then
- CROSSCOMPILE=1
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int main (int argc, char *argv[])
-{
- int i = 1;
- return *(char*)&i;
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- BIGENDIAN=1
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-LITTLEENDIAN=1
-fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-export CROSSCOMPILE
-
-if test "x${CROSSCOMPILE}" = "x1"; then
- echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
-echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
- echo "$as_me:$LINENO: checking target system type" >&5
-echo $ECHO_N "checking target system type... $ECHO_C" >&6
-if test "${ac_cv_target+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_target_alias=$target_alias
-test "x$ac_cv_target_alias" = "x" &&
- ac_cv_target_alias=$ac_cv_host_alias
-ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
-echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
- { (exit 1); exit 1; }; }
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_target" >&5
-echo "${ECHO_T}$ac_cv_target" >&6
-target=$ac_cv_target
-target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
-
-# The aliases save the names the user supplied, while $host etc.
-# will get canonicalized.
-test -n "$target_alias" &&
- test "$program_prefix$program_suffix$program_transform_name" = \
- NONENONEs,x,x, &&
- program_prefix=${target_alias}-
- echo "$as_me:$LINENO: checking for byte order, try 2" >&5
-echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
- case "${target}" in
- *86* | *-pc-* )
- LITTLEENDIAN=1
- ;;
- *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
- BIGENDIAN=1
- ;;
- esac
-fi
-
-export LITTLEENDIAN
-if test "x${LITTLEENDIAN}" = "x1"; then
-echo "$as_me:$LINENO: result: little endian" >&5
-echo "${ECHO_T}little endian" >&6
-BYTEORDERCHECKOK=1
-fi
-export BIGENDIAN
-if test "x${BIGENDIAN}" = "x1"; then
-echo "$as_me:$LINENO: result: big endian" >&5
-echo "${ECHO_T}big endian" >&6
-BYTEORDERCHECKOK=1
-WORDS_BIGENDIAN=1
-export WORDS_BIGENDIAN
-cat >>confdefs.h <<_ACEOF
-#define WORDS_BIGENDIAN 1
-_ACEOF
-
-fi
-if test "x${BYTEORDERCHECKOK}" != "x1"; then
-echo "$as_me:$LINENO: result: unknown" >&5
-echo "${ECHO_T}unknown" >&6
-echo Byte order could not determined.
-exit 1
-fi
-
-
-
-echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
-echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
-if test "$cross_compiling" = yes; then
- CROSSCOMPILE=1
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include "stdlib.h"
-int main (int argc, char*argv[])
-{
- return system("test `touch config.tmp2`");
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- OK=OK