2000-07-08 02:22:20 +02:00
|
|
|
dnl This file is part of the FreeType project.
|
|
|
|
dnl
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_INIT(ftconfig.in)
|
|
|
|
|
2000-07-20 18:06:54 +02:00
|
|
|
dnl Configuration file -- stay in 8.3 limit
|
2000-07-08 02:22:20 +02:00
|
|
|
AC_CONFIG_HEADER(ftconfig.h:ftconfig.in)
|
|
|
|
|
2000-07-20 18:06:54 +02:00
|
|
|
version_info='6:0:0'
|
2000-07-20 08:57:41 +02:00
|
|
|
AC_SUBST(version_info)
|
2000-07-08 02:22:20 +02:00
|
|
|
|
2000-07-20 08:57:41 +02:00
|
|
|
dnl checks for system type
|
2000-07-08 02:22:20 +02:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
2000-07-20 08:57:41 +02:00
|
|
|
dnl checks for programs
|
2000-07-08 02:22:20 +02:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CPP
|
|
|
|
|
|
|
|
dnl get Compiler flags right.
|
|
|
|
if test "x$CC" = xgcc; then
|
|
|
|
XX_CFLAGS="-Wall"
|
|
|
|
XX_ANSIFLAGS="-pedantic -ansi"
|
|
|
|
else
|
|
|
|
case "$host" in
|
|
|
|
*-dec-osf*)
|
|
|
|
XX_CFLAGS="-std1 -O2 -g3"
|
|
|
|
XX_ANSIFLAGS=
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
XX_CFLAGS=
|
|
|
|
XX_ANSIFLAGS=
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AC_SUBST(XX_CFLAGS)
|
|
|
|
AC_SUBST(XX_ANSIFLAGS)
|
|
|
|
|
|
|
|
AC_CHECK_PROG(RMF, rm, rm -f)
|
|
|
|
AC_CHECK_PROG(RMDIR, rmdir, rmdir)
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
2000-07-20 08:57:41 +02:00
|
|
|
dnl checks for header files
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS(fcntl.h unistd.h)
|
2000-07-08 02:22:20 +02:00
|
|
|
|
2000-07-20 08:57:41 +02:00
|
|
|
dnl checks for typedefs, structures, and compiler characteristics
|
2000-07-08 02:22:20 +02:00
|
|
|
AC_C_CONST
|
|
|
|
AC_CHECK_SIZEOF(int)
|
|
|
|
AC_CHECK_SIZEOF(long)
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
|
|
|
|
dnl Here we check whether we can use our mmap file component.
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
|
2000-07-20 08:57:41 +02:00
|
|
|
FTSYS_SRC='$(BASE_)ftsystem.c'
|
2000-07-08 02:22:20 +02:00
|
|
|
else
|
2000-07-20 08:57:41 +02:00
|
|
|
FTSYS_SRC='$(BUILD)/ftsystem.c'
|
2000-07-08 02:22:20 +02:00
|
|
|
fi
|
2000-07-20 08:57:41 +02:00
|
|
|
AC_SUBST(FTSYS_SRC)
|
2000-07-08 02:22:20 +02:00
|
|
|
|
|
|
|
AC_CHECK_FUNCS(memcpy memmove)
|
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
2000-07-20 08:57:41 +02:00
|
|
|
dnl create the Unix-specific sub-Makefile `builds/unix/unix.mk' that will be
|
|
|
|
dnl used by the build system
|
2000-07-08 02:22:20 +02:00
|
|
|
dnl
|
2000-07-20 08:57:41 +02:00
|
|
|
AC_OUTPUT(unix.mk:unix.in)
|
2000-07-08 02:22:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
dnl end of configure.in
|