Advertisement
Guest User

Detect uuid libs

a guest
Nov 29th, 2010
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # Universally Unique Identifier
  2. PKG_CHECK_MODULES(e2fsprogs_uuid, [uuid >= 1.36], [
  3. AC_DEFINE(USE_E2FSPROGS_UUID, [1], [Define to 1 if you have the e2fsprogs implementation of the UUID generator.])
  4. AC_SUBST([uuid_CFLAGS], [$e2fsprogs_uuid_CFLAGS])
  5. AC_SUBST([uuid_LIBS], [$e2fsprogs_uuid_LIBS])
  6. ], [
  7. PKG_CHECK_MODULES(ossp_uuid, [ossp-uuid >= 1.5], [
  8. AC_DEFINE(USE_OSSP_UUID, [1], [Define to 1 if you have the OSSP implementation of the UUID generator.])
  9. AC_SUBST([uuid_CFLAGS], [$ossp_uuid_CFLAGS])
  10. AC_SUBST([uuid_LIBS], [$ossp_uuid_LIBS])
  11. ], [
  12. AC_MSG_ERROR(dnl
  13. [Your system doesn't have a suitable UUID generator library.
  14.  
  15. Download and install either one of these two packages:
  16.  
  17. e2fsprogs >= 1.36
  18. ossp-uuid >= 1.5
  19. ])
  20. ])
  21. ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement