Hash :
521e2bc8
Author :
Date :
2000-04-10T12:11:33
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
dnl This file is part of the FreeType project.
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
dnl This file must be processed from the top FreeType 2 directory. E.g:
dnl
dnl % autoconf config/unix/configure.in > config/unix/configure
dnl
AC_INIT(ftconfig.in)
cnl Configuration file - stay in 8.3 limit
AC_CONFIG_HEADER(ftconfig.h:ftconfig.in)
dnl Due to a bug in autoconf we must set $srcdir explicitly to an absolute
dnl path.
srcdir=`pwd`
dnl Checks for system type.
AC_CANONICAL_SYSTEM
dnl Checks for programs.
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
AC_PROG_LN_S
dnl Checks for libraries.
sinclude(net.m4)
AC_LIBRARY_NET
dnl Checks for header files.
AC_PATH_XTRA
AC_CHECK_HEADERS(stdlib.h fcntl.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
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
FT_SYSTEM_COMPONENT=ftsystem.c
else
FT_SYSTEM_COMPONENT=config/unix/ftsystem.c
fi
AC_SUBST(FT_SYSTEM_COMPONENT)
AC_CHECK_FUNCS(memcpy memmove)
# Turn off shared libraries during beta testing, since they
# make the build process take too long
#
# AC_DISABLE_SHARED
AM_PROG_LIBTOOL
dnl Another bug: to make --srcdir work correctly we have to create the
dnl directory hierarchy first since autoconf only uses mkdir.
dnl $srcdir/config/unix/mkinstalldirs lib/arch/unix test/arch/unix
dnl Create the Unix-specific sub-Makefile "config/unix/unix.mk" that will be
dnl used by the build system..
dnl
AC_OUTPUT( unix.mk:unix.in )
dnl end of configure.in