configure.in 810 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(otf2bdf.c)
  3. AC_PROG_CC
  4. OLDLIBS=$LIBS
  5. LIBS="$LIBS `freetype-config --libs`"
  6. CPPFLAGS="$CPPFLAGS `freetype-config --cflags`"
  7. AC_CHECK_LIB(freetype, FT_Init_FreeType, LIBS="$LIBS -lfreetype",[
  8. AC_MSG_ERROR([Can't find Freetype library! Compile FreeType first.])])
  9. AC_SUBST(LIBS)
  10. dnl get Compiler flags right.
  11. if test "x$CC" = xgcc; then
  12. XX_CFLAGS="-Wall -pedantic"
  13. else
  14. case "$host" in
  15. alpha-dec-osf*)
  16. XX_CFLAGS="-std1 -O2 -g3"
  17. ;;
  18. *)
  19. XX_CFLAGS=
  20. ;;
  21. esac
  22. fi
  23. AC_SUBST(XX_CFLAGS)
  24. AC_CHECK_PROG(RM, rm, rm)
  25. AC_CHECK_PROG(CP, cp, cp)
  26. dnl Checks for header files.
  27. AC_HEADER_STDC
  28. AC_CHECK_HEADERS(unistd.h)
  29. dnl Checks for library functions.
  30. AC_FUNC_MEMCMP
  31. AC_OUTPUT(Makefile)