1 dnl This file is part of the FreeType project.
3 dnl Process this file with autoconf to produce a configure script.
8 dnl Configuration file -- stay in 8.3 limit
9 AC_CONFIG_HEADER(ftconfig.h:ftconfig.in)
12 AC_SUBST(version_info)
14 dnl checks for system type
17 dnl checks for programs
21 dnl get Compiler flags right.
22 if test "x$CC" = xgcc; then
24 XX_ANSIFLAGS="-pedantic -ansi"
28 XX_CFLAGS="-std1 -O2 -g3"
38 AC_SUBST(XX_ANSIFLAGS)
40 AC_CHECK_PROG(RMF, rm, rm -f)
41 AC_CHECK_PROG(RMDIR, rmdir, rmdir)
44 dnl checks for header files
46 AC_CHECK_HEADERS(fcntl.h unistd.h)
48 dnl checks for typedefs, structures, and compiler characteristics
53 dnl Checks for library functions.
55 dnl Here we check whether we can use our mmap file component.
57 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
58 FTSYS_SRC='$(BASE_)ftsystem.c'
60 FTSYS_SRC='$(BUILD)/ftsystem.c'
64 AC_CHECK_FUNCS(memcpy memmove)
68 dnl create the Unix-specific sub-Makefile `builds/unix/unix.mk' that will be
69 dnl used by the build system
71 AC_OUTPUT(unix.mk:unix.in)
74 dnl end of configure.in