]> matita.cs.unibo.it Git - helm.git/blob - helm/gtkmathview-bonobo/configure.ac
db0e236ffb8bd8ba66807c9b55f1fae50699324c
[helm.git] / helm / gtkmathview-bonobo / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(gtkmathview-bonobo, [0.0.1])
3 AC_CONFIG_SRCDIR(src/GNOME_GtkMathView.server.in)
4 AM_INIT_AUTOMAKE($AC_PACKAGE_NAME, $AC_PACKAGE_VERSION)
5
6 PACKAGE=$PACKAGE_NAME
7 VERSION=$PACKAGE_VERSION
8 AC_SUBST(PACKAGE)
9 AC_SUBST(VERSION)
10
11 GTKMATHVIEW_BONOBO_VERSION_INFO=`echo $VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
12 AC_SUBST(GTKMATHVIEW_BONOBO_VERSION_INFO)
13
14 GTKMATHVIEW_BONOBO_IDL_INTERFACE_VERSION=`echo $VERSION | awk -F. '{ printf "%d.%d", $1, $2 }'`
15 AC_SUBST(GTKMATHVIEW_BONOBO_IDL_INTERFACE_VERSION)
16
17 AC_ARG_ENABLE(
18         profile,
19         [  --enable-profile[=ARG]  include profiling information [default=no]],
20         profile=$enableval,
21         profile=no
22 )
23
24 AC_ARG_ENABLE(
25         debug,
26         [  --enable-debug[=ARG]    include debugging debug [default=yes]],
27         enable_debug=$enableval,
28         enable_debug=yes
29 )
30
31 if test "x$enable_debug" = "xyes"; then
32    AC_DEFINE(ENABLE_DEBUG,,[Define to 1 if you want to enable validity checks while running])
33 fi
34
35 dnl AC_CONFIG_HEADERS([config.h])
36 AM_CONFIG_HEADER(config.h)
37
38 AH_TOP([
39 /* This file is part of GtkMathView-Bonobo, an implementation of
40  * some Bonobo interfaces for GtkMathView.
41  * 
42  * Copyright (C) 2003 Luca Padovani <lpadovan@cs.unibo.it>,
43  *                    Pouria Masoudi <pmasoudi@cs.unibo.it>.
44  *
45  * This library is free software; you can redistribute it and/or
46  * modify it under the terms of the GNU Lesser General Public
47  * License as published by the Free Software Foundation; either
48  * version 2.1 of the License, or (at your option) any later version.
49  *
50  * This library is distributed in the hope that it will be useful,
51  * but WITHOUT ANY WARRANTY; without even the implied warranty of
52  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
53  * Lesser General Public License for more details.
54  *
55  * You should have received a copy of the GNU Lesser General Public
56  * License along with this library; if not, write to the Free Software
57  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
58  *
59  * For more information, please visit the project's home page
60  * http://helm.cs.unibo.it/gtkmathview-bonobo/
61  * or send an email to <lpadovan@cs.unibo.it>
62  */
63
64 #ifndef config_h
65 #define config_h
66 ])
67
68 AH_BOTTOM([
69 #endif /* config_h */
70 ])
71
72 AC_PROG_CC
73 AC_PROG_CXX
74 AC_PROG_INSTALL
75 AC_HEADER_STDC([])
76
77 AC_SUBST(CFLAGS)
78 AC_SUBST(CPPFLAGS)
79 AC_SUBST(LDFLAGS)
80
81 AM_PROG_LIBTOOL
82
83 PKG_CHECK_MODULES(GTKMATHVIEW, gtkmathview >= 0.4.3)
84 AC_SUBST(GTKMATHVIEW_CFLAGS)
85 AC_SUBST(GTKMATHVIEW_LIBS)
86
87 PKG_CHECK_MODULES(BONOBO, libbonobo-2.0)
88 AC_SUBST(BONOBO_CFLAGS)
89 AC_SUBST(BONOBO_LIBS)
90
91 PKG_CHECK_MODULES(BONOBOUI, libbonoboui-2.0)
92 AC_SUBST(BONOBOUI_CFLAGS)
93 AC_SUBST(BONOBOUI_LIBS)
94
95 AC_CONFIG_FILES([
96  Makefile 
97  gtkmathview-bonobo.pc
98  src/Makefile
99  src/GNOME_GtkMathView.server
100 ])
101 AC_OUTPUT