2 dnl Process this file with autoconf to generate configure.
4 dnl The AX_* macros are defined in files in the top-level m4
7 #####################################################################
8 # Set up configuration system
9 #####################################################################
11 AC_INIT([oscopy], [0.71.0], [arnaud@oscopy.org])
12 AC_CONFIG_AUX_DIR([build-tools])
13 AM_INIT_AUTOMAKE([-Wall foreign])
16 AC_CONFIG_MACRO_DIR([m4])
19 [AC_HELP_STRING([--with-doc],
20 [build documentation (LaTeX and graphviz required)])],
25 can_build_documentation=$with_doc
29 src/oscopy_ipython/Makefile
30 src/oscopy_ipython/gui/Makefile
33 src/oscopy/graphs/Makefile
34 src/oscopy/readers/Makefile
35 src/oscopy/writers/Makefile
39 doc/ioscopy/tex/Makefile
40 doc/ioscopy/pdf/Makefile
41 doc/oscopy-api/Makefile
42 doc/oscopy-api/tex/Makefile
43 doc/oscopy-api/pdf/Makefile
48 #####################################################################
49 # Check whether documentation can be build
50 #####################################################################
51 AC_MSG_CHECKING([whether documentation shall be built])
52 AM_CONDITIONAL([CAN_BUILD_DOC], [test x$with_doc = xyes])
53 AC_MSG_RESULT($can_build_documentation)
54 AC_SUBST(can_build_documentation)
56 #####################################################################
57 # Check for compiling & linking tools
58 #####################################################################
60 AC_PATH_PROGS([M4], [gm4 m4], [m4])
63 AM_PATH_IPYTHON([0.13])
64 AM_CHECK_MATPLOTLIB([1.1])
66 AM_CHECK_DBUS_PYTHON([1.1])
67 #####################################################################
68 # Check for libraries that use pkg-config
69 #####################################################################
73 PKG_CHECK_MODULES(PYGTK, [pygtk-2.0 >= 2.10.0], ,
74 AC_MSG_ERROR([PyGTK 2.10.0 or later is required.]))
76 ###################################
77 ### Internationalization
78 ###################################
79 GETTEXT_PACKAGE=oscopy
80 AC_SUBST([GETTEXT_PACKAGE])
81 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Gettext package])
83 IT_PROG_INTLTOOL([0.41.0])