home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / ft-beta.zip / freetype / configure.in < prev    next >
Text File  |  1997-10-06  |  1KB  |  53 lines

  1. dnl This file is part of the FreeType project.
  2. dnl
  3. dnl Process this file with autoconf to produce a configure script.
  4.  
  5. AC_INIT(lib/freetype.h)
  6.  
  7. dnl Checks for system type.
  8. AC_CANONICAL_SYSTEM
  9.  
  10. dnl Checks for programs.
  11. AC_PROG_CC
  12.  
  13. dnl get Compiler flags right.
  14.  
  15. if test "x$CC" = xgcc; then
  16.     XX_CFLAGS="-Wall -pedantic -ansi"
  17. else
  18.     case "$host" in
  19.           alpha-dec-osf*)
  20.             XX_CFLAGS="-std1 -O2 -g3"
  21.                ;;
  22.           *)
  23.               XX_CFLAGS=
  24.                ;;
  25.     esac
  26. fi
  27.  
  28. AC_SUBST(XX_CFLAGS)
  29.  
  30. dnl Check for RANLIB.
  31. AC_PROG_RANLIB
  32.  
  33. dnl Checks for libraries.
  34.  
  35. dnl Checks for header files.
  36. AC_PATH_XTRA
  37. AC_HEADER_STDC
  38. AC_CHECK_HEADERS(fcntl.h unistd.h getopt.h)
  39.  
  40. dnl Checks for typedefs, structures, and compiler characteristics.
  41. AC_C_CONST
  42. AC_C_BIGENDIAN
  43. AC_CHECK_SIZEOF(int)
  44. AC_CHECK_SIZEOF(long)
  45.  
  46. dnl Checks for library functions.
  47. AC_FUNC_MMAP
  48. AC_CHECK_FUNCS(memcpy)
  49. AC_REPLACE_FUNCS(basename)
  50.  
  51. AC_CONFIG_HEADER(ft_conf.h)
  52. AC_OUTPUT(Makefile lib/Makefile test/Makefile)
  53.