1 dnl This file is part of the FreeType project.
3 dnl Process this file with autoconf to produce a configure script.
7 AC_CONFIG_SRCDIR([ftconfig.in])
9 dnl configuration file -- stay in 8.3 limit
10 AC_CONFIG_HEADER(ftconfig.h:ftconfig.in)
12 dnl Don't forget to update VERSION.DLL!
14 AC_SUBST(version_info)
15 ft_version=`echo $version_info | tr : .`
18 dnl checks for system type
19 AC_CANONICAL_TARGET([])
21 dnl checks for programs
25 dnl get Compiler flags right.
26 if test "x$CC" = xgcc; then
28 XX_ANSIFLAGS="-pedantic -ansi"
43 AC_SUBST(XX_ANSIFLAGS)
45 AC_CHECK_PROG(RMF, rm, rm -f)
46 AC_CHECK_PROG(RMDIR, rmdir, rmdir)
48 dnl Since this file will be finally moved to another directory we make
49 dnl the path of the install script absolute. This small code snippet has
50 dnl been taken from automake's `ylwrap' script.
56 INSTALL="`pwd`/$INSTALL" ;;
59 dnl checks for header files
61 AC_CHECK_HEADERS(fcntl.h unistd.h)
63 dnl checks for typedefs, structures, and compiler characteristics
68 dnl checks for library functions
70 dnl Here we check whether we can use our mmap file component.
72 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
73 FTSYS_SRC='$(BASE_)ftsystem.c'
75 FTSYS_SRC='$(BUILD)/ftsystem.c'
82 AC_CHECK_FUNCS(memcpy memmove)
85 dnl Check for system zlib
87 [ --without-zlib use internal zlib instead of system-wide])
88 if test x$with_zlib != xno && test -z "$LIBZ"; then
89 AC_CHECK_LIB(z, gzsetparams, [AC_CHECK_HEADER(zlib.h, LIBZ='-lz')])
91 if test x$with_zlib != xno && test -n "$LIBZ"; then
92 CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
93 LDFLAGS="$LDFLAGS $LIBZ"
105 dnl create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
106 dnl and 'builds/unix/unix-cc.mk' that will be used by the build system
108 AC_CONFIG_FILES([unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config])
110 dnl re-generate the Jamfile to use libtool now
112 dnl AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
116 dnl end of configure.ac