~ubuntu-branches/ubuntu/raring/xiphos/raring

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs, Jonathan Marsden, Dmitrijs Ledkovs
  • Date: 2010-11-25 21:26:48 UTC
  • mfrom: (2.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20101125212648-mc64wvs0nw3xp7bx
Tags: 3.1.4-1
[ Jonathan Marsden ]
* New upstream release 3.1.4
* Removed debian/patch/* since the one patch was included upstream.
* Bumped Standards-Version to 3.9.1 (no changes required).
* debian/README.Debian: Corrected spelling and reworded for clarity.
* debian/control: Add Jonathan Marsden back into Uploaders.

[ Dmitrijs Ledkovs ]
* Added local options dpkg-source to unapply patches and fail on
  upstream source changes (ignoring false positives).
* Added bzr-builddeb hook to generate source-format before build. If you
  are not using bzr-builddeb, you must run "./debian/rules clean" before
  building.
* patches/xul-2.0.patch: bump UPPER_RANGE to allow running against xul20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT([xiphos],[3.1.3],[http://sourceforge.net/tracker/?group_id=5528&atid=105528])
2
 
AC_PREREQ(2.60)
3
 
 
4
 
AC_CONFIG_SRCDIR([src/gnome2/xiphos.c])
5
 
AC_CONFIG_HEADERS([config.h])
6
 
 
7
 
AM_INIT_AUTOMAKE([foreign dist-bzip2])
8
 
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
9
 
AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \$(ACLOCAL_FLAGS)"])
10
 
 
11
 
AC_PROG_CC
12
 
AM_PROG_CC_C_O
13
 
AC_PROG_CXX
14
 
 
15
 
AC_CHECK_FUNCS(strcasestr, [AM_CONDITIONAL(HAVE_STRCASESTR, true)], [AM_CONDITIONAL(HAVE_STRCASESTR, false)])
16
 
 
17
 
IT_PROG_INTLTOOL([])
18
 
AC_PROG_LIBTOOL dnl using old name instead of LT_INIT for compatability
19
 
 
20
 
AC_SUBST([GETTEXT_PACKAGE], [xiphos])
21
 
AM_GLIB_GNU_GETTEXT
22
 
AC_DEFINE([GETTEXT_PACKAGE],  [PACKAGE_TARNAME], [Define to the gettext package name.])
23
 
 
24
 
PKG_PROG_PKG_CONFIG([])
25
 
GNOME_DOC_INIT
26
 
 
27
 
AC_SUBST(DIRS, [["backend gecko editor main gnome2"]])
28
 
AC_SUBST(xiphos_exec, [[xiphos]])
29
 
 
30
 
REQUIRED_LIBS="glib-2.0 gtk+-2.0 >= 2.14 libxml-2.0 libglade-2.0 libgtkhtml-3.14 >= 3.23  sword dbus-glib-1 libgsf-1 gtkhtml-editor"
31
 
 
32
 
AC_ARG_WITH([gecko], AS_HELP_STRING([--without-gecko], [Compile using gtkhtml backend instead]))
33
 
 
34
 
AS_IF([test "x$with_gecko" != "xno"], [
35
 
            AC_DEFINE(USE_GTKMOZEMBED, 1, [Define if you want to use gtkmozembed])
36
 
            PKG_CHECK_MODULES(GECKO, libxul-embedding > 1.9.0)
37
 
            GECKO_CFLAGS="`$PKG_CONFIG --define-variable=includetype=unstable --cflags libxul-embedding`"
38
 
            GECKO_HOME="`$PKG_CONFIG --variable=sdkdir libxul-embedding`"
39
 
            AC_DEFINE_UNQUOTED(GECKO_HOME, ["$GECKO_HOME"], [Gecko sdkdir])
40
 
            have_gecko=true
41
 
            ],[
42
 
            AC_MSG_CHECKING([[for GECKO]])
43
 
            AC_MSG_RESULT([[disabled as requested]])
44
 
            AC_DEFINE(GTKHTML, 1, [Define if wish to use gtkhtml instead of gtkmozembed])])
45
 
 
46
 
AM_CONDITIONAL(HAVE_GECKO, test x$have_gecko = xtrue)
47
 
 
48
 
AC_DEFINE(HAVE_DBUS, 1, [Define to enable dbus])
49
 
 
50
 
AS_CASE([$host_os], [mingw*],
51
 
                    [REQUIRED_LIBS="$REQUIRED_LIBS gmodule-no-export-2.0"],
52
 
                    [REQUIRED_LIBS="$REQUIRED_LIBS gmodule-export-2.0"])
53
 
 
54
 
AC_MSG_CHECKING([for gtk+-unix-print])
55
 
PKG_CHECK_EXISTS(gtk+-unix-print-2.0,
56
 
                [AC_DEFINE(USE_GTKUPRINT, 1, [Define if you want to use gtk-unix-print])
57
 
                        [REQUIRED_LIBS="$REQUIRED_LIBS gtk+-unix-print-2.0"]
58
 
                        AC_MSG_RESULT([yes])],
59
 
                [AC_MSG_RESULT([no])])
60
 
 
61
 
 
62
 
PKG_CHECK_MODULES(XIPHOS, "$REQUIRED_LIBS")
63
 
 
64
 
AC_MSG_CHECKING([for SWORD multiverse])
65
 
PKG_CHECK_EXISTS(sword > 1.5.11,
66
 
                [AC_DEFINE(SWORD_MULTIVERSE, 1, [Define if sword has multiverse support])
67
 
                        AC_MSG_RESULT([yes])],
68
 
                [AC_MSG_RESULT([no])])
69
 
 
70
 
AC_SUBST(XIPHOS_LIBS)
71
 
AC_SUBST(XIPHOS_CFLAGS)
72
 
 
73
 
AM_MAINTAINER_MODE([enable])
74
 
GNOME_COMPILE_WARNINGS
75
 
GNOME_CXX_WARNINGS
76
 
 
77
 
AC_MSG_CHECKING([for debug build])
78
 
AC_ARG_ENABLE([debug],
79
 
        AS_HELP_STRING([--enable-debug], [Enable debugging @<:@default=no@:>@]))
80
 
AS_IF([test "x$enable_debug" = "xyes"], [
81
 
            AC_DEFINE(DEBUG, 1, [Enable additional debugging at the expense of performance and size])
82
 
                        AC_MSG_RESULT([yes])],
83
 
            [AC_MSG_RESULT([no])])
84
 
 
85
 
AC_ARG_ENABLE([as-needed],
86
 
        AS_HELP_STRING([--enable-as-needed], [Pass -Wl --as-needed to linker @<:@default=no@:>@]))
87
 
AS_IF([test "x$enable_as_needed" = "xyes"], [AC_SUBST([AM_LDFLAGS],[[-Wl,--as-needed]])])
88
 
 
89
 
AC_CONFIG_FILES([
90
 
Makefile
91
 
po/Makefile.in
92
 
doc/Makefile
93
 
help/Makefile
94
 
pixmaps/Makefile
95
 
src/Makefile
96
 
src/backend/Makefile
97
 
src/gecko/Makefile
98
 
src/editor/Makefile
99
 
src/gnome2/Makefile
100
 
src/main/Makefile
101
 
ui/Makefile
102
 
xiphos.desktop.in
103
 
xiphos.spec
104
 
])
105
 
AC_OUTPUT