configure.in 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Process this file with autoconf to produce a configure script.
  2. AC_INIT(mbfl/mbfilter.c)
  3. AM_INIT_AUTOMAKE(libmbfl, 1.1.0)
  4. AC_CONFIG_SRCDIR(mbfl/mbfilter.c)
  5. AM_CONFIG_HEADER(config.h)
  6. # SHLIB isn't a version number but the API reference
  7. # Read http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
  8. SHLIB_VERSION="1:1:0"
  9. AC_SUBST(SHLIB_VERSION)
  10. # Checks for programs.
  11. AC_PROG_CC
  12. AC_PROG_CXX
  13. AC_PROG_LIBTOOL
  14. AC_PROG_RANLIB
  15. # Checks for libraries.
  16. # Checks for header files.
  17. AC_HEADER_STDC
  18. AC_CHECK_HEADERS([stdlib.h stddef.h assert.h])
  19. # Checks for typedefs, structures, and compiler characteristics.
  20. AC_C_CONST
  21. AC_TYPE_SIZE_T
  22. # Checks for library functions.
  23. AC_FUNC_MALLOC
  24. AC_FUNC_REALLOC
  25. AC_CHECK_FUNCS([strcasecmp strchr])
  26. AC_CHECK_PROGS([FETCH_VIA_FTP], [wget curl ncftpget])
  27. if test "$FETCH_VIA_FTP" = "curl"; then
  28. FETCH_VIA_FTP="curl -O"
  29. fi
  30. AC_CONFIG_FILES([
  31. Makefile
  32. mbfl/Makefile
  33. filters/Makefile
  34. nls/Makefile
  35. tests/Makefile
  36. tests/conv_encoding.tests/Makefile
  37. tests/conv_kana.tests/Makefile
  38. tests/strwidth.tests/Makefile
  39. tests/strcut.tests/Makefile])
  40. AC_OUTPUT