configure.ac 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This file is part of rehash
  2. # Copyright (C) 2020 Maxime Devos (<maxime.devos@student.kuleuven.be>)
  3. # SPDX-License-Identifier: FSFAP
  4. # Copying and distribution of this file, with or without modification,
  5. # are permitted in any medium without royalty provided the copyright
  6. # notice and this notice are preserved. This file is offered as-is,
  7. # without any warranty.
  8. AC_PREREQ([2.61])
  9. AC_INIT([rehash], [0], [])
  10. AC_CONFIG_AUX_DIR([build-aux])
  11. AC_CONFIG_MACRO_DIRS([m4])
  12. AM_INIT_AUTOMAKE([foreign subdir-objects])
  13. AC_CONFIG_HEADERS([rehash_config.h])
  14. AC_PROG_CC
  15. # Dynamic library support
  16. # TODO: doesn't pick up system libtool automatically
  17. LT_INIT
  18. # Check for GNUnet libraries
  19. PKG_CHECK_MODULES([GNUNETDHT], [gnunetdht])
  20. PKG_CHECK_MODULES([GNUNETUTIL], [gnunetutil])
  21. PKG_CHECK_MODULES([GNUNETDATASTORE], [gnunetdatastore])
  22. # TODO perhaps include gnunetcrypto as well
  23. # And some GNUnet dependencies
  24. PKG_CHECK_MODULES([LIBEXTRACTOR], [libextractor])
  25. # Check for Guile presence
  26. # TODO perhaps implement some language bindings:
  27. # [ ] haskell
  28. # [ ] guile (+ other schemes) (<-- priority)
  29. # [ ] common lisp
  30. # [ ] emacs
  31. # [ ] rust
  32. GNUNETUTIL_LIBDIR="`$PKG_CONFIG --variable libdir gnunetutil`"
  33. AC_SUBST([GNUNETUTIL_LIBDIR])
  34. AC_CONFIG_FILES([scheme-binding/rehash/config.scm])
  35. AC_OUTPUT([Makefile])