traduct into english part of the introduction.rst
[hkl.git] / configure.ac
blobec7cbd22cd851848b9fda2037e1e82f330eac140
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT([hkl],[4.0.3],[picca@synchrotron-soleil.fr])
6 AC_CONFIG_SRCDIR([config.h.in])
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_MACRO_DIR([m4])
9 AC_CONFIG_AUX_DIR(config)
11 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
13 # Checks for programs.
14 AC_PROG_CXX
15 AC_PROG_AWK
16 AC_PROG_CC
17 AC_PROG_CPP
18 AC_PROG_INSTALL
19 AC_PROG_LN_S
20 AC_PROG_MAKE_SET
21 AC_PROG_LIBTOOL
22 AC_PROG_RANLIB
24 # Checks for libraries.
25 AX_PATH_GSL
27 # Checks for header files.
28 AC_HEADER_STDBOOL
29 AC_HEADER_STDC
30 AC_HEADER_TIME
31 AC_CHECK_HEADERS([float.h stdlib.h string.h sys/time.h])
33 # Checks for typedefs, structures, and compiler characteristics.
34 AC_C_CONST
35 AC_C_INLINE
36 AC_TYPE_SIZE_T
38 # Checks for library functions.
39 AC_FUNC_ALLOCA
40 AC_FUNC_MALLOC
41 AC_FUNC_REALLOC
42 AC_FUNC_VPRINTF
43 AC_CHECK_FUNCS([floor gettimeofday memmove memset sqrt strdup])
45 # gtk-doc
46 GTK_DOC_CHECK([1.9],[--flavour no-tmpl])
48 dnl ***********
49 dnl *** asy ***
50 dnl ***********
52 AC_PATH_PROG([ASY], [asy], [echo])
54 # add an option for the ghkl build
55 AC_ARG_ENABLE([ghkl],
56         AS_HELP_STRING([--enable-ghkl],
57                         [turn on the ghkl gui [[default=yes]]]),
58         [case "${enableval}" in
59               yes) ghkl=true ;;
60               no)  ghkl=false ;;
61               *) AC_MSG_ERROR([bad value ${enableval} for --enable-ghkl]) ;;
62         esac],[ghkl=true])
63 AM_CONDITIONAL([GHKL], [test x$ghkl = xtrue])
65 # gtkmm + glademm
66 AM_COND_IF([GHKL],
67         [PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.18])])
69 AC_CONFIG_FILES([Makefile
70                  hkl/Makefile
71                  test/Makefile
72                  hkl.pc
73                  Documentation/Makefile
74                  Documentation/api/Makefile
75                  Documentation/figures/Makefile
76                  Documentation/sphinx/Makefile
77                  Documentation/sphinx/source/conf.py
78                  gui/Makefile
81 AC_OUTPUT