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.in)
4 AM_INIT_AUTOMAKE($AC_PACKAGE_NAME, $AC_PACKAGE_VERSION)
7 VERSION=$PACKAGE_VERSION
11 GTKMATHVIEW_CONTROL_VERSION_INFO=`echo $VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
12 AC_SUBST(GTKMATHVIEW_CONTROL_VERSION_INFO)
14 GTKMATHVIEW_API_VERSION="1.0"
15 AC_SUBST(GTKMATHVIEW_API_VERSION)
16 AC_DEFINE_UNQUOTED(MATH_VIEW_API_VERSION, "$GTKMATHVIEW_API_VERSION", [Version number of the API implemented])
20 [ --enable-profile[=ARG] include profiling information [default=no]],
27 [ --enable-debug[=ARG] include debugging debug [default=yes]],
28 enable_debug=$enableval,
32 if test "x$enable_debug" = "xyes"; then
33 AC_DEFINE(ENABLE_DEBUG,,[Define to 1 if you want to enable validity checks while running])
36 dnl AC_CONFIG_HEADERS([config.h])
37 AM_CONFIG_HEADER(config.h)
40 /* This file is part of GtkMathView-Bonobo, an implementation of
41 * some Bonobo interfaces for GtkMathView.
43 * Copyright (C) 2003 Luca Padovani <lpadovan@cs.unibo.it>,
44 * Pouria Masoudi <pmasoudi@cs.unibo.it>.
46 * This library is free software; you can redistribute it and/or
47 * modify it under the terms of the GNU Lesser General Public
48 * License as published by the Free Software Foundation; either
49 * version 2.1 of the License, or (at your option) any later version.
51 * This library is distributed in the hope that it will be useful,
52 * but WITHOUT ANY WARRANTY; without even the implied warranty of
53 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
54 * Lesser General Public License for more details.
56 * You should have received a copy of the GNU Lesser General Public
57 * License along with this library; if not, write to the Free Software
58 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
60 * For more information, please visit the project's home page
61 * http://helm.cs.unibo.it/gtkmathview-bonobo/
62 * or send an email to <lpadovan@cs.unibo.it>
84 PKG_CHECK_MODULES(GTKMATHVIEW, gtkmathview >= 0.5.0)
85 AC_SUBST(GTKMATHVIEW_CFLAGS)
86 AC_SUBST(GTKMATHVIEW_LIBS)
88 PKG_CHECK_MODULES(BONOBO, libbonobo-2.0)
89 AC_SUBST(BONOBO_CFLAGS)
92 PKG_CHECK_MODULES(BONOBOUI, libbonoboui-2.0)
93 AC_SUBST(BONOBOUI_CFLAGS)
94 AC_SUBST(BONOBOUI_LIBS)
96 PKG_CHECK_MODULES(GNOMEUI, libgnomeui-2.0)
97 AC_SUBST(GNOMEUI_CFLAGS)
98 AC_SUBST(GNOMEUI_LIBS)
100 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
103 BONOBO_IDL_INCLUDES="-I`$PKG_CONFIG --variable=idldir libbonobo-2.0` -I`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
104 AC_SUBST(BONOBO_IDL_INCLUDES)
108 gtkmathview-bonobo.pc
111 src/GNOME_GtkMathView.server.in