7554d91998-10-31Mirar (Pontus Hagland) #
806b181999-02-09Henrik Grubbström (Grubba) # $Id: configure.in,v 1.4 1999/02/09 16:10:20 grubba Exp $
7554d91998-10-31Mirar (Pontus Hagland) # AC_INIT(image_ttf.c) AC_CONFIG_HEADER(config.h)
7b8c791998-11-01Per Hedbor AC_ARG_WITH(ttflib, [ --with(out)-ttflib Support TTF via ttf.lib (freetype) (Image.TTF)],[],[with_ttflib=yes])
7554d91998-10-31Mirar (Pontus Hagland) 
7b8c791998-11-01Per Hedbor AC_MODULE_INIT()
7554d91998-10-31Mirar (Pontus Hagland)  if test x$with_ttflib = xyes ; then AC_CHECK_HEADERS(freetype.h)
8714491998-11-08Mirar (Pontus Hagland)  AC_CHECK_HEADERS(ftxkern.h) if test $ac_cv_header_freetype_h = yes -a \ $ac_cv_header_ftxkern_h = yes ; then
7554d91998-10-31Mirar (Pontus Hagland)  AC_CHECK_LIB(ttf, Load_TrueType_Names, [ AC_DEFINE(HAVE_LIBTTF) LIBS="${LIBS-} -lttf"
806b181999-02-09Henrik Grubbström (Grubba)  ]) AC_MSG_CHECKING([if TT_Horizontal_Header has the member Reserved0]) AC_CACHE_VAL(pike_cv_tt_hh_reserved0, [ AC_TRY_COMPILE([ #include <freetype.h> ],[ extern TT_Horizontal_Header *horiz; horiz->Reserved0 = 0; ],[ pike_cv_tt_hh_reserved0=yes ], [ pike_cv_tt_hh_reserved0=no
7b8c791998-11-01Per Hedbor  ])
806b181999-02-09Henrik Grubbström (Grubba)  ]) if test "x$pike_cv_tt_hh_reserved0" = "xyes"; then AC_DEFINE(HAVE_TT_H_H_Reserved0) else :; fi
8714491998-11-08Mirar (Pontus Hagland)  elif test $ac_cv_header_freetype_h = yes -a \ $ac_cv_header_ftxkern_h = no ; then AC_MSG_WARN(Detected freetype library (libttf), but too old version)
7554d91998-10-31Mirar (Pontus Hagland)  fi fi AC_OUTPUT(Makefile,echo FOO >stamp-h )