configure.ac 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. define(FIBERS_CONFIGURE_COPYRIGHT,[[
  2. Copyright (C) 2016 Andy Wingo <wingo@pobox.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Lesser General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with this program. If not, see
  13. <http://www.gnu.org/licenses/>.
  14. ]])
  15. AC_PREREQ(2.52)
  16. AC_INIT([fibers], [1.0.0])
  17. AC_CONFIG_SRCDIR([env.in])
  18. AC_CONFIG_AUX_DIR([build-aux])
  19. AC_CONFIG_MACRO_DIRS([m4])
  20. AM_INIT_AUTOMAKE([serial-tests])
  21. AC_COPYRIGHT(FIBERS_CONFIGURE_COPYRIGHT)
  22. AM_CONFIG_HEADER(config.h)
  23. AC_DISABLE_STATIC
  24. AC_ISC_POSIX
  25. AC_PROG_CC
  26. AC_STDC_HEADERS
  27. AC_PROG_LIBTOOL
  28. AC_CHECK_HEADERS([sys/epoll.h])
  29. AC_CHECK_FUNCS([epoll_create epoll_create1])
  30. WARN_CFLAGS=-Wall
  31. AC_ARG_ENABLE([Werror], AC_HELP_STRING([--disable-Werror],[Don't stop the build on errors]),
  32. [], WARN_CFLAGS="-Wall -Werror")
  33. AC_SUBST(WARN_CFLAGS)
  34. #
  35. # Check for Guile
  36. #
  37. GUILE_PKG([3.0 2.2])
  38. GUILE_FLAGS
  39. GUILE_PROGS
  40. AC_CONFIG_FILES([env],[chmod +x env])
  41. AC_CONFIG_FILES(Makefile)
  42. AC_OUTPUT