configure.ac 906 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. m4_define([NOVEL_MAJOR_VERSION], [0])
  2. m4_define([NOVEL_MINOR_VERSION], [0])
  3. m4_define([NOVEL_MICRO_VERSION], [0])
  4. m4_define([NOVEL_VERSION], [NOVEL_MAJOR_VERSION.NOVEL_MINOR_VERSION.NOVEL_MICRO_VERSION])
  5. m4_define([NOVEL_EMAIL], franparpe@openmailbox.org)
  6. AC_INIT([unnamed_book], [NOVEL_VERSION], [NOVEL_EMAIL])
  7. AM_INIT_AUTOMAKE([-Wall -Werror foreign])
  8. AM_EXTRA_RECURSIVE_TARGETS([latex])
  9. AC_CONFIG_HEADERS([config.h])
  10. AC_PATH_PROG([INKSCAPE], [inkscape])
  11. if test x"$INKSCAPE" = x; then
  12. AC_MSG_ERROR(['inkscape' not found.])
  13. fi
  14. AC_PATH_PROG([SPHINX], [sphinx-build])
  15. if test x"$SPHINX" = x; then
  16. AC_MSG_ERROR(['sphinx' not found.])
  17. fi
  18. AC_CONFIG_FILES([
  19. Makefile
  20. src/Makefile
  21. ])
  22. AC_SUBST([PAPERSIZE], [b5paper])
  23. AC_ARG_WITH([a4paper],
  24. [AS_HELP_STRING([--with-a4paper],
  25. [Compiles the book with the A4 papersize])],
  26. [AC_SUBST([PAPERSIZE], [a4paper])],
  27. [])
  28. AC_CONFIG_FILES([src/conf.py])
  29. AC_OUTPUT