You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.ac 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. AC_INIT([mfcuk], [0.3.8], [zveriu@gmail.com])
  2. AC_CONFIG_MACRO_DIR([m4])
  3. AC_PROG_CC
  4. AC_CONFIG_HEADERS([config.h])
  5. AM_INIT_AUTOMAKE
  6. m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
  7. # Checks for pkg-config modules.
  8. LIBNFC_REQUIRED_VERSION=1.7.0
  9. PKG_CHECK_MODULES([libnfc], [libnfc >= $LIBNFC_REQUIRED_VERSION], [], [AC_MSG_ERROR([libnfc >= $LIBNFC_REQUIRED_VERSION is mandatory.])])
  10. PKG_CONFIG_REQUIRES="libnfc"
  11. AC_SUBST([PKG_CONFIG_REQUIRES])
  12. # Checks for typedefs, structures, and compiler characteristics.
  13. AC_C_INLINE
  14. AC_HEADER_STDBOOL
  15. AC_TYPE_SIZE_T
  16. AC_TYPE_UINT16_T
  17. AC_TYPE_UINT32_T
  18. AC_TYPE_UINT64_T
  19. AC_TYPE_UINT8_T
  20. # Checks for library functions.
  21. AC_FUNC_MALLOC
  22. AC_FUNC_REALLOC
  23. AC_CHECK_HEADERS([sys/time.h])
  24. AC_CHECK_FUNCS([memset strchr strtoul])
  25. # Checks for endianness convertion
  26. AC_CHECK_HEADERS([endian.h sys/endian.h CoreFoundation/CoreFoundation.h])
  27. if test $ac_cv_header_endian_h = "no" -a $ac_cv_header_sys_endian_h = "no" -a $ac_cv_header_CoreFoundation_CoreFoundation_h = "no"; then
  28. AC_MSG_ERROR(["Can't locate usable header file for endianness convertions."]);
  29. fi
  30. AC_CHECK_HEADERS([byteswap.h])
  31. AC_DEFINE([_XOPEN_SOURCE], [600], [Define to 500 if Single Unix conformance is wanted, 600 for sixth revision.])
  32. # Help us to write great code ;-)
  33. CFLAGS="$CFLAGS -Wall -pedantic -Wextra -std=c99"
  34. AC_CONFIG_FILES([Makefile
  35. src/Makefile])
  36. AC_OUTPUT