No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.ac 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. AC_INIT([lodel2], [0.1], [contact@openedition.org])
  2. AM_INIT_AUTOMAKE
  3. AC_CONFIG_FILES([Makefile \
  4. lodel/buildconf.py \
  5. lodel/Makefile \
  6. lodel/auth/Makefile \
  7. lodel/editorial_model/Makefile \
  8. lodel/editorial_model/translator/Makefile \
  9. lodel/leapi/Makefile \
  10. lodel/leapi/datahandlers/Makefile \
  11. lodel/plugin/Makefile \
  12. lodel/settings/Makefile \
  13. lodel/utils/Makefile \
  14. ])
  15. m4_include([m4/python.m4])
  16. AM_PATH_PYTHON([3.4.2], [3.5])
  17. PC_INIT([3.4.2], [3.5])
  18. AC_SUBST([PYTHON], [$PYTHON])
  19. PC_PYTHON_CHECK_MODULE([lxml], ,
  20. AC_MSG_ERROR([Module lxml not found but mandatory for lodel2]))
  21. #Webui deps
  22. AC_SUBST([WEBUI], 'OK')
  23. PC_PYTHON_CHECK_MODULE([jinja2], ,
  24. AC_MSG_WARN([Module jinja2 not found but mandatory for default web interface])
  25. AC_SUBST([WEBUI], ''))
  26. PC_PYTHON_CHECK_MODULE([werkzeug], ,
  27. AC_MSG_WARN([Module werkzeug not found but mandatory for default web interface])
  28. AC_SUBST([WEBUI], ''))
  29. #Mongo datasource deps
  30. AC_SUBST([MONGODB], 'True')
  31. PC_PYTHON_CHECK_MODULE([pymongo], ,
  32. AC_MSG_WARN([Module pymongo not found. The mongodb datasource will not be able to work])
  33. AC_SUBST([MONGODB], 'False'))
  34. #Documentation checks
  35. AC_SUBST([DOCOK], 'OK')
  36. AC_CHECK_PROGS([DOXYGEN], [doxygen])
  37. if test -z "$DOXYGEN";
  38. then
  39. AC_MSG_WARN([Doxygen not found - You will not be able to generate documentation])
  40. AC_SUBST([DOCOK], '')
  41. fi
  42. AC_CHECK_PROGS([GRAPHVIZ], [dot neato twopi])
  43. if test -z "$GRAPHVIZ";
  44. then
  45. AC_MSG_WARN([Graphviz not found (dot executable missing) - You will not be able to generate documentation])
  46. AC_SUBST([DOCOK], '')
  47. fi
  48. AC_CHECK_PROGS([DOXYPY], [docypy])
  49. if test -z "$DOXYPY";
  50. then
  51. AC_MSG_WARN([Doxypy script not found (https://pypi.python.org/pypi/doxypy/0.3) - You will not be able to generate documentation])
  52. AC_SUBST([DOCOK], '')
  53. fi
  54. AC_OUTPUT
  55. if test -z "$DOCOK";
  56. then AC_MSG_WARN([You will not be able to generate doxygen documentation. See up for reasons])
  57. fi
  58. if test -z "$WEBUI";
  59. then AC_MSG_WARN([Mandatory components are missing for running default web UI. See up for reasons])
  60. fi