Update miniature screenshot
[oscopy.git] / configure.ac
blob90c71d1a2678e31ed0561c1e6a897a4dfd816a96
1 dnl                                                      -*-Autoconf-*-
2 dnl Process this file with autoconf to generate configure.
3 dnl
4 dnl The AX_* macros are defined in files in the top-level m4
5 dnl directory.
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])
15 AC_PROG_LN_S
16 AC_CONFIG_MACRO_DIR([m4])
18 AC_ARG_WITH([doc],
19         [AC_HELP_STRING([--with-doc],
20                          [build documentation (LaTeX and graphviz required)])],
21                          [with_doc=yes],
22                          [with_doc=no])
23 AC_SUBST(with_doc)
25 can_build_documentation=$with_doc
27 AC_CONFIG_FILES([
28         Makefile
29         src/oscopy_ipython/Makefile
30         src/oscopy_ipython/gui/Makefile
31         src/Makefile
32         src/oscopy/Makefile
33         src/oscopy/graphs/Makefile
34         src/oscopy/readers/Makefile
35         src/oscopy/writers/Makefile
36         scheme/Makefile
37         doc/Makefile
38         doc/ioscopy/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
44         po/Makefile.in
45         data/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])
61 AM_PATH_PYTHON([2.5])
63 AM_PATH_IPYTHON([0.13])
64 AM_CHECK_MATPLOTLIB([1.1])
65 AM_CHECK_NUMPY([1.6])
66 AM_CHECK_DBUS_PYTHON([1.1])
67 #####################################################################
68 # Check for libraries that use pkg-config
69 #####################################################################
71 PKG_PROG_PKG_CONFIG
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])
82 AM_GLIB_GNU_GETTEXT
83 IT_PROG_INTLTOOL([0.41.0])
85 AC_OUTPUT