configure.ac 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. AC_INIT(fusezipfs3, 0.0.5)
  2. AM_INIT_AUTOMAKE
  3. AM_CONFIG_HEADER(config.h)
  4. AC_PROG_CC
  5. AC_PROG_CPP
  6. AC_PROG_INSTALL
  7. AC_PROG_LN_S
  8. AC_PROG_MAKE_SET
  9. AC_PROG_LIBTOOL
  10. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
  11. PKG_CHECK_MODULES(FUSE, [fuse3])
  12. CFLAGS="$CFLAGS -Wall -W -Wno-sign-compare -D_REENTRANT $FUSE_CFLAGS -D _FILE_OFFSET_BITS=64"
  13. LIBS="$FUSE_LIBS"
  14. # Checks for header files.
  15. AC_HEADER_STDC
  16. AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
  17. # Checks for typedefs, structures, and compiler characteristics.
  18. AC_C_CONST
  19. AC_TYPE_UID_T
  20. AC_C_INLINE
  21. AC_TYPE_MODE_T
  22. AC_TYPE_OFF_T
  23. AC_TYPE_SIZE_T
  24. AC_CHECK_MEMBERS([struct stat.st_blksize])
  25. AC_STRUCT_ST_BLOCKS
  26. AC_CHECK_MEMBERS([struct stat.st_rdev])
  27. AC_HEADER_TIME
  28. AC_STRUCT_TM
  29. #AC_TYPE_UINT32_T
  30. #AC_TYPE_UINT64_T
  31. #AC_TYPE_UINT8_T
  32. # Checks for library functions.
  33. AC_FUNC_CHOWN
  34. AC_FUNC_MALLOC
  35. AC_FUNC_MKTIME
  36. AC_FUNC_REALLOC
  37. AC_FUNC_SELECT_ARGTYPES
  38. AC_FUNC_STRFTIME
  39. AC_FUNC_UTIME_NULL
  40. AC_CHECK_FUNCS([mkstemp memset strdup time memcpy snprintf])
  41. AC_CONFIG_FILES([Makefile src/Makefile])
  42. AC_OUTPUT