[AdgModel] Enhanced docs
[adg.git] / configure.ac
blob4c1424212a2a569bcc49b0936e0dbf0b912a01bb
1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([ADG],[0.5.0],[ntd at entidi.it],[adg],[http://adg.entidi.com/])
4 AC_CONFIG_SRCDIR([configure.ac])
5 AC_CONFIG_HEADERS([config.h])
6 AC_CONFIG_MACRO_DIR([m4])
7 AM_INIT_AUTOMAKE
10 # Check for programs
12 AC_PROG_CC
13 AC_DISABLE_STATIC
14 AC_PROG_LIBTOOL
15 PKG_PROG_PKG_CONFIG
18 # Check for functions
20 dnl Alloca is required by cpml, so it should be removed
21 dnl in case the adg and cpml libraries will be splitted
22 AC_FUNC_ALLOCA
25 # I18n
27 AM_GNU_GETTEXT([external])
28 AM_GNU_GETTEXT_VERSION([0.15])
31 # Check required packages
33 GTK_DOC_CHECK([1.9])
34 PKG_CHECK_MODULES([GOBJECT2],[gobject-2.0 >= 2.4.0])
35 PKG_CHECK_MODULES([CAIRO],[cairo >= 1.7.4])
38 # Check for optional GTK+2 support
40 AC_ARG_ENABLE([gtk2],
41               [AS_HELP_STRING([--enable-gtk2],
42                               [include GKT+2 specific widgets @<:@default=check@:>@])],
43               [],[enable_gtk2=check])
44 AS_IF([test "x$enable_gtk2" != "xno"],
45       [PKG_CHECK_MODULES([GTK2],[gtk+-2.0 >= 2.12.0],
46                          [enable_gtk2=yes],
47                          [AS_IF([test "x$enable_gtk2" = "xyes"],
48                                 [AC_MSG_ERROR([$GTK2_PKG_ERRORS but GTK+2 support requested])],
49                                 [enable_gtk2=no])])])
50 AM_CONDITIONAL([HAVE_GTK2],[test "x$enable_gtk2" = "xyes"])
53 # Final step
55 SHAVE_INIT([],[enable])
56 AC_CONFIG_FILES([shave
57                  shave-libtool
58                  Makefile
59                  cpml/Makefile
60                  adg/Makefile
61                  demo/Makefile
62                  docs/Makefile
63                  docs/adg/Makefile
64                  docs/adg/bookinfo.xml
65                  docs/cpml/Makefile
66                  docs/cpml/bookinfo.xml
67                  po/Makefile.in])
68 AC_OUTPUT