1
0

configure.ac 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.61)
  4. AC_INIT(u3-tool, 0.2, daviedev@users.sourceforge.net)
  5. AM_INIT_AUTOMAKE
  6. AC_CONFIG_SRCDIR([config.h.in])
  7. AC_CONFIG_HEADER([config.h])
  8. # Checks for programs.
  9. AC_PROG_CC
  10. AM_PROG_CC_C_O
  11. AC_PROG_INSTALL
  12. # Checks for libraries.
  13. PKG_CHECK_MODULES([LIBUSB], [libusb],
  14. [
  15. LIBUSB_MSG=yes
  16. ],
  17. [ LIBUSB_MSG=no ])
  18. AM_CONDITIONAL(HAVE_LIBUSB, [test x$LIBUSB_MSG = xyes])
  19. # Checks for header files.
  20. AC_HEADER_STDC
  21. AC_CHECK_HEADERS([arpa/inet.h fcntl.h stdint.h stdlib.h string.h sys/ioctl.h termios.h unistd.h])
  22. # Checks for typedefs, structures, and compiler characteristics.
  23. AC_C_CONST
  24. AC_TYPE_SIZE_T
  25. AC_TYPE_UINT16_T
  26. AC_TYPE_UINT32_T
  27. AC_TYPE_UINT64_T
  28. AC_TYPE_UINT8_T
  29. # Checks for library functions.
  30. AC_PROG_GCC_TRADITIONAL
  31. AC_FUNC_MALLOC
  32. AC_FUNC_MEMCMP
  33. AC_FUNC_STAT
  34. AC_CHECK_FUNCS([memset regcomp strdup strerror strtoul])
  35. AC_CONFIG_FILES([Makefile
  36. doc/Makefile
  37. src/Makefile])
  38. AC_OUTPUT
  39. echo ""
  40. echo "Options:"
  41. echo "LibUSB used: ${LIBUSB_MSG}"
  42. echo ""